#top-content{
    grid-area: top-content;
}
#news-section{
    grid-area: news;
}
#life-tips-section{
    grid-area: life-tips;
}
#top-aside-ads-section{
    grid-area: top-aside-ads;
}
#premium-nav-section{
    grid-area: premium-nav;
}
#promotions-section{
    grid-area: promotions;
}
#home-ranking-section{
    grid-area: home-ranking;
}
#home-mid-ads-section{
    grid-area: home-mid-ads;
}
#widget-section{
    grid-area: widget;
}
#events-section{
    grid-area: events;
}
#mid-ads-sections{
    grid-area: mid-ads;
}
#life-categories-section{
    grid-area: life-categories;
}
#classifieds-section{
    grid-area: classifieds;
}
#featured-section{
    grid-area: featured;
}

#mobile-middle-banner-section {
    grid-area: mobile-middle
}

#home-grid-container a{
    display: block;
}
[id*=-section][class*=rounded]{
    overflow: hidden;
}
#home-grid-container .section-title{
    font-size: calc(7 * (100vw - 320px)/1600 + 1rem);
    height: 56px;
    display: flex;
    align-items: center;
    border-left: 3px solid var(--poste);
    border-bottom: 1px solid #dee2e6;
    margin: -1rem -1rem 1rem;
    padding-left: calc(1rem - 3px);
}
#home-grid-container .section-title .btn:focus, #home-grid-container .section-title .btn:active{
    border:0 !important;
    box-shadow: none !important;
}
#home-grid-container .section-footer{
    margin: 1rem -1rem -1rem;
    justify-self: flex-end;
}
#home-grid-container{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-areas:
    'top-content'
    'home-mid-ads'
    'promotions'
    'events'
    'widget'
    'life-categories'
    'classifieds'
    'featured';
}
#top-content{
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: 1fr 1fr auto;
    grid-template-areas:
    'news' 'life-tips'
    'mobile-middle'
    'premium-nav';
}
@media (min-width: 576px){
    #home-grid-container{
        grid-template-columns: repeat(1,1fr);
        grid-template-areas:
        'top-content'
        'home-mid-ads'
        'promotions'
        'events'
        'widget'
        'life-categories'
        'classifieds'
        'featured';
    }
    #top-content{
        grid-template-columns: repeat(1,1fr);
        grid-template-rows: 1fr 1fr auto;
        grid-template-areas:
        'news' 'life-tips'
        'premium-nav';
    }
}
@media (min-width: 768px){
    #home-grid-container{
        grid-template-columns: repeat(2,1fr);
        grid-template-areas:
        'top-content top-content'
        'home-mid-ads home-mid-ads'
        'promotions events'
        'promotions widget'
        'promotions life-categories'
        'classifieds classifieds'
        'featured featured';
    }
    #top-content{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: 1fr auto;
        grid-template-areas:
        'news life-tips'
        'premium-nav premium-nav';
    }
}
@media (min-width: 992px){
    #home-grid-container{
        grid-template-columns: repeat(4,1fr);
        grid-template-areas:
        'top-content top-content top-content top-aside-ads'
        'promotions promotions mid-ads home-ranking'
        'home-mid-ads home-mid-ads home-mid-ads widget'
        'events events life-categories life-categories'
        'classifieds classifieds classifieds classifieds'
        'featured featured featured featured';
    }
    #top-content{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: auto;
        grid-template-areas:
        'news life-tips'
        'premium-nav premium-nav';
    }
}
@media (min-width: 1200px){
    #home-grid-container{
        grid-template-columns: repeat(4,1fr);
        grid-template-areas:
        'top-content top-content top-content top-aside-ads'
        'promotions promotions mid-ads home-ranking'
        'home-mid-ads home-mid-ads home-mid-ads widget'
        'events events life-categories life-categories'
        'classifieds classifieds classifieds classifieds'
        'featured featured featured featured';
    }
    #top-content{
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: auto;
        grid-template-areas:
        'news life-tips'
        'premium-nav premium-nav';
    }
}

.btn-premium-list{
    position: absolute;
    top: 59%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    transform: scale(.75) translateY(-8px);
}
@media (min-width:375px){
    .btn-premium-list{
        transform: scale(.85) translateY(-5px);
    }
}
@media (min-width:768px){
    .btn-premium-list{
        transform: scale(1) translateY(0);
    }
}
.btn-premium-list > .btn{
    border-radius: 100px;
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    padding: .5rem 1rem;
    margin: 0 .5rem;
    min-width: 80px;
    transition: .2s;
}
.btn-hcm {
    background: #f65361;
}
.btn-hn {
    background: #f4cc2f;
}
.btn-dn {
    background: #3fc6a3;
}

#home-grid-container .life-tip-item{
    color: var(--dark);
    font-weight: 600;
    font-size: 80%;
}
#home-grid-container .life-tip-item:hover{
    color: var(--primary);
    text-decoration: none;
}
#home-grid-container .life-tip-item:last-child{
    margin: 0 !important;
}

#news-section .news-item:hover > h6, #news-section .news-item:hover > h5{
    height: 100% !important;
    display: flex;
    align-items: flex-end;
    color: var(--primary);
}


#promotions-section .promo-item{
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--dark);
    position: relative;
}
#promotions-section .promo-item:hover{
    color: var(--danger);
}
#promotions-section .promo-item:first-of-type{
    grid-row: 1 / span 2;
    border: 1px solid var(--light);
}
@media (min-width:992px){
    #promotions-section .promo-item:first-of-type .media-wrapper-1x1{
        height: 100%;
        padding: 0;
    }
}
#promotions-section .promo-item > div:last-of-type{
    padding-right: 0;
}
#promotions-section .promo-item:first-of-type > div:first-of-type{
    max-width: 100%;
    flex: 1;
}
#promotions-section .promo-item:first-of-type > div:last-of-type{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-width: 100%;
    padding: 1rem;
    border-bottom-right-radius: .25rem;
    border-bottom-left-radius: .25rem;
    font-weight: 600;
    background: rgba(255,255,255,.9);
}
#promotions-section .promo-item::before{
    content: attr(city);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10px;
    background: var(--light);
    padding: .25rem;
    z-index: 1;
    opacity: .9;
    border-top-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
}


#home-ranking-section .rank-item{
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--dark);
    position: relative;
}
#home-ranking-section .nav-link.active {
    background: #fff;
    color: var(--poste);
    font-weight: bold;
}
#home-ranking-section .nav-link:hover {
    color: var(--primary);
}
#home-ranking-section .nav-item * {
    font-size: 11px !important;
}
#home-ranking-section .nav-link {
    height: 56px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: url('../../images/poste/bg_soc.png') repeat;
    color: var(--secondary);
    border: 0;
}
#home-ranking-section .rank-item:nth-child(1) [class*="media-wrapper"]::before {
    color: var(--warning);
}
#home-ranking-section .rank-item:nth-child(2) [class*="media-wrapper"]::before {
    color: var(--orange);
}
#home-ranking-section .rank-item:nth-child(3) [class*="media-wrapper"]::before {
    color: var(--danger);
}
#home-ranking-section .rank-item [class*="media-wrapper"]::before {
    counter-increment: rank-counter;
    content: counter(rank-counter);
    position: absolute;
    bottom: 0;
    left: 0;
    padding: .25rem .5rem;
    background: #fff;
    color: var(--gray);
    font-weight: 800;
    font-family: var(--sans-serif);
    font-size: 1.25rem;
    border-top-right-radius: .5rem;
    z-index: 1;
    line-height: 1;
}

#life-categories-section a{
    display: grid;
    grid-gap: .5rem;
    align-items: center;
    align-content: center;
    text-decoration: none;
    background: var(--grey);
    border-radius: .25rem;
    color: #000;
    transition: .1s;
}
#life-categories-section a:hover{
    box-shadow: var(--shadow);
}
#life-categories-section a img{
    max-width: calc(12 * (100vw - 320px)/1600 + 24px);
}

#events-section #events-swiper{
    position: relative;
}
#events-section .swiper-pagination-bullet-active{
    background: var(--danger);
}
#events-section .swiper-button-next, #events-section .swiper-container-rtl #events-section .swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23dc3545'%2F%3E%3C%2Fsvg%3E");
    right: 0;
    left: auto;
    background-color: var(--dark);
}
#events-section .swiper-button-prev, #events-section .swiper-container-rtl #events-section .swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23dc3545'%2F%3E%3C%2Fsvg%3E");
    left: 0;
    right: auto;
    background-color: var(--dark);
}
#events-section .swiper-button-next, #events-section .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 50px;
    z-index: 10;
    cursor: pointer;
    background-size: 20px 30px;
    background-position: center;
    background-repeat: no-repeat;
}
#events-section .swiper-button-next{
    right: -30px;
}
#events-section .swiper-button-prev{
    left: -30px;
}
#events-section:hover .swiper-button-next{
    right: 0;
}
#events-section:hover .swiper-button-prev{
    left: 0;
}
#events-section .swiper-button-next{
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
}
#events-section .swiper-button-prev{
    border-top-right-radius: .5rem;
    border-bottom-right-radius: .5rem;
}

#classifieds-section .classify-item{
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: .5rem;
    overflow: hidden;
}
#classifieds-section .classify-item:nth-last-of-type(-n+2){
    display: none;
}
@media (min-width:992px){
    #classifieds-section .classify-item:nth-last-of-type(-n+2){
        display: flex;
    }
}
#classifieds-section .classify-item .label-list{
    display: inline-flex;
    list-style: none;
    margin: 0;
}
#classifieds-section .classify-item .label-list > li{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: .7rem;
    padding: .15rem .25rem;
    border: 1px solid;
}
#classifieds-section .classify-item .label-list > li:last-of-type{
    border-bottom-right-radius: .5rem;
}
#classifieds-section .classify-item a{
    color: var(--dark);
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
#classifieds-section #personal-trading-section .classify-item a:hover{
    color: var(--primary);
}
#classifieds-section #bullboard-section .classify-item a:hover{
    color: var(--success);
}
#classifieds-section #real-estate-section .classify-item a:hover{
    color: var(--warning);
}
#classifieds-section #job-searching-section .classify-item a:hover{
    color: var(--danger);
}
#classifieds-section #personal-trading-section .section-title{
    color: var(--primary);
    border-left-color: var(--primary);
}
#classifieds-section #bullboard-section .section-title{
    color: var(--success);
    border-left-color: var(--success);
}
#classifieds-section #real-estate-section .section-title{
    color: var(--warning);
    border-left-color: var(--warning);
}
#classifieds-section #job-searching-section .section-title{
    color: var(--danger);
    border-left-color: var(--danger);
}
#classifieds-section .classify-item.new::before{
    top: 0;
    right: 0;
    border-radius: 0 .5rem 0 .5rem;
    clip-path: none;
    font-size: .8rem;
}
#classifieds-section #personal-trading-section .classify-item .label-list > li:nth-of-type(odd){
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
#classifieds-section #personal-trading-section .classify-item .label-list > li:nth-of-type(even){
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}
#classifieds-section #bullboard-section .classify-item .label-list > li:nth-of-type(odd){
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
#classifieds-section #bullboard-section .classify-item .label-list > li:nth-of-type(even){
    background: #fff;
    border-color: var(--success);
    color: var(--success);
}
#classifieds-section #real-estate-section .classify-item .label-list > li:nth-of-type(odd){
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
}
#classifieds-section #real-estate-section .classify-item .label-list > li:nth-of-type(even){
    background: #fff;
    border-color: var(--warning);
    color: var(--warning);
}
#classifieds-section #job-searching-section .classify-item .label-list > li:nth-of-type(odd){
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}
#classifieds-section #job-searching-section .classify-item .label-list > li:nth-of-type(even){
    background: #fff;
    border-color: var(--danger);
    color: var(--danger);
}
#classifieds-section .classify-item > div:last-of-type{
    color: rgba(0,0,0,.4);
}

#cinema-section .cinema-caption{
    position: absolute;
    top: calc(100% - 45px - 5rem);
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #000, rgba(0,0,0,0));
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 4rem 1rem 1rem;
}
#cinema-section:hover .cinema-caption{
    background: rgba(0,0,0,.8);
    top: 0;
    padding: 1rem;
}
#cinema-section .cinema-caption > .cap{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: 0s;
}
#cinema-section:hover .cinema-caption > .cap{
    margin-bottom: 1.5rem;
}
#cinema-section .cinema-caption > .des{
    font-size: .9rem;
    overflow-y: auto;
    display: none;
    max-height: 70%;
}
#cinema-section .cinema-caption > .cap > a{
    display: none;
}
#cinema-section:hover .cinema-caption > .cap > a, #cinema-section:hover .cinema-caption > .des{
    display: inline-block;
}

@media (min-width:992px){
    /* #bb-bg-section > div.d-grid{
        max-height: calc(100% - 56px);
    } */
    .position-absolute-lg{
        position: absolute;
    }
}

/* @media (min-width:992px){
    #home-bottom-container div.d-grid.x3-lg{
        grid-template-columns: 1fr auto 1fr;
    }
} */

#faq-section{
    position: relative;
}
#faq-section .more{
    color: #fff;
    position: absolute;
    bottom: 0;
    right: 1rem;
    height: 0;
    overflow: hidden;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0 0 .5rem .5rem;
    z-index: 2;
}
#faq-section:hover .more{
    height: 1.2rem;
    border: 1px solid #dee2e6;
    bottom: calc(-1.2rem + 1px);
    border-top:0;
    color: rgba(0,0,0,.5);
}
#faq-section li, #faq-section a{
    list-style: circle;
    padding: 0;
    font-size: .9rem;
    color: rgba(0,0,0,.5);
}
#faq-section li:hover, #faq-section a:hover, #faq-section a.more:hover{
    color: var(--primary);
    list-style: disc;
}
