/*====================================================
HERO
====================================================*/

@media (max-width:1400px){

    .hero{
        width:100%;
        max-width:1332px;
        padding:0 20px;
        box-sizing:border-box;
        grid-template-columns:minmax(170px,.82fr) minmax(0,2.35fr) minmax(220px,1.15fr);
        column-gap:20px;
        height:auto;
    }

    .hero-center,
    .hero-right{
        width:100%;
    }
}

@media (max-width:1024px){

    .hero{
        grid-template-columns:1fr;
        row-gap:26px;
        height:auto;
    }

    .hero-left,
    .hero-center,
    .hero-right{
        width:100%;
    }

    .hero-left{
        order:1;
        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .hero-center{
        order:2;
    }

    .hero-right{
        display:none !important;
    }
}

/*====================================================
CARDS
====================================================*/

@media (max-width:1400px){

    .small-card,
    .small-content{
        width:100%;
    }

    .small-thumb{
        width:100%;
        aspect-ratio:16/9;
        height:auto;
    }

    .small-thumb img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    .featured-card{
        width:100%;
        height:auto;
    }

    .featured-card img{
        width:100%;
        aspect-ratio:16/9;
        height:auto;
        object-fit:cover;
    }

    .featured-overlay{
        width:clamp(380px,78%,520px);
        height:auto;
    }

    .trending{
        width:100%;
        height:auto;
    }

    .trending-header{
        width:100%;
    }

    .trending-item{
        grid-template-columns:20px minmax(0,1fr) 140px;
    }

    .trend-info,
    .trend-info h4{
        width:auto;
    }

    .trend-thumb{
        width:140px;
        height:80px;
        margin-right:0;
    }
}

@media (max-width:1024px){

    .small-card,
    .small-content{
        width:100%;
    }

    .small-thumb{
        width:100%;
        height:auto;
    }

    .small-thumb img{
        width:100%;
        height:auto;
    }

    .featured-card{
        width:100%;
        height:auto;
        padding-bottom:68px;
        overflow:visible;
    }

    .featured-card img{
        width:100%;
        height:auto;
    }

    .featured-overlay{
        width:90%;
        min-height:120px;
        bottom:0;
        padding:32px 24px 24px;
    }

    .featured-overlay h2{
        font-size:26px;
    }

    .trending{
        display:none !important;
    }

    .trending-header{
        border-radius:18px 18px 0 0;
    }
}

@media (max-width:768px){

    .small-card{
        width:100%;
        margin:0;
        display:flex;
        flex-direction:column;
    }

    .small-thumb{
        width:100%;
        aspect-ratio:16/9;
        height:auto;
    }

    .small-thumb img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    .small-content{
        width:100%;
        min-height:auto;
        padding-top:10px;
    }

    .small-category{
        font-size:12px;
        margin-bottom:6px;
    }

    .small-content h3{
        margin:0;
    }

    .small-content h3 a{
        font-size:15px;
        line-height:1.35;
        display:-webkit-box;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .featured-card{
        position:relative;
        width:100%;
        height:auto;
        padding-bottom:70px;
        margin-bottom:30px;
        overflow:visible;
    }

    .featured-card > a{
        display:block;
        width:100%;
        overflow:hidden;
    }

    .featured-card img{
        width:100%;
        height:auto;
        aspect-ratio:16/9;
        object-fit:cover;
        object-position:center;
        display:block;
        border-radius:0;
    }

    .featured-overlay{
        position:absolute;
        left:50%;
        bottom:0;
        transform:translateX(-50%);
        width:88%;
        min-height:122px;
        margin:0;
        padding:34px 20px 24px;
        background:#fff;
        border-radius:0;
        box-shadow:0 10px 30px rgba(0,0,0,.12);
        z-index:20;
        box-sizing:border-box;
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
    }

    .featured-overlay::after{
        display:block;
        left:14px;
        right:14px;
        bottom:-10px;
        height:10px;
    }

    .featured-category{
        position:absolute;
        top:-15px;
        left:50%;
        transform:translateX(-50%);
        width:auto;
        min-width:96px;
        height:30px;
        padding:0 16px;
        margin:0;
        background:#dd111a;
        color:#fff;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:12px;
        font-weight:800;
        text-transform:uppercase;
        white-space:nowrap;
        box-shadow:0 4px 12px rgba(221,17,26,.35);
        z-index:30;
    }

    .featured-overlay h2{
        width:100%;
        margin:0;
        font-size:22px;
        font-weight:800;
        line-height:1.18;
        text-align:center;
        letter-spacing:-.25px;
    }

    .trending{
        display:none !important;
    }
}

@media (max-width:480px){

    .featured-card{
        padding-bottom:64px;
        margin-bottom:26px;
    }

    .featured-overlay{
        width:90%;
        min-height:112px;
        padding:30px 16px 21px;
    }

    .featured-overlay h2{
        font-size:20px;
        line-height:1.2;
    }

    .featured-category{
        min-width:92px;
        height:28px;
        padding:0 14px;
        font-size:11px;
    }
}

/*====================================================
CATEGORY GRID
====================================================*/

@media (max-width:1400px){

    .category-grid-section{
        width:100%;
        max-width:1300px;
        padding:0 16px;
        margin:60px auto;
        box-sizing:border-box;
    }

    .category-grid{
        width:100%;
        grid-template-columns:repeat(3,minmax(0,1fr));
        column-gap:28px;
        row-gap:36px;
        box-sizing:border-box;
    }

    .category-block,
    .category-inner,
    .category-heading,
    .category-featured-title,
    .category-list,
    .category-list li{
        width:100%;
    }

    .category-featured-image,
    .category-featured-image img{
        width:100%;
        height:210px;
    }

    .category-list a{
        width:100%;
    }
}

@media (max-width:980px){

    .category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:28px;
    }

    .category-featured-image,
    .category-featured-image img{
        height:190px;
    }

    .category-featured-title{
        margin:10px 0;
    }

    .category-featured-title a{
        display:block;
        color:#111;
        text-decoration:none;
        font-size:18px;
        font-weight:800;
        line-height:1.28;
        letter-spacing:-.2px;
    }

    .category-list li{
        padding:8px 0 8px 18px;
    }
}

@media (max-width:768px){

    .hero{
        width:100%;
        display:flex;
        flex-direction:column;
        gap:28px;
        padding:0 16px;
        margin:24px auto;
        height:auto;
    }

    .hero-left{
        order:1;
        width:100%;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
    }

    .hero-left-slider{
        grid-column:1 / -1;
    }

    .hero-left-track{
        flex-direction:row;
        gap:14px;
    }

    .hero-left-slide{
        width:calc((100% - 14px) / 2);
        min-width:calc((100% - 14px) / 2);
    }

    .hero-center{
        order:2;
        width:100%;
    }

    .hero-right{
        display:none !important;
    }

    .category-grid{
        width:100%;
        display:grid;
        grid-template-columns:1fr;
        gap:26px;
        box-sizing:border-box;
    }

    .category-block,
    .category-heading,
    .category-inner,
    .category-featured-title,
    .category-list,
    .category-list li{
        width:100%;
    }

    .category-heading{
        height:42px;
    }

    .category-heading h2{
        font-size:18px;
    }

    .category-view{
        font-size:13px;
        font-weight:800;
        letter-spacing:.8px;
        gap:10px;
    }

    .category-view img{
        width:16px;
        height:16px;
    }

    .category-featured-image,
    .category-featured-image img{
        width:100%;
        height:auto;
        aspect-ratio:16/9;
        object-fit:cover;
    }

    .category-featured-title{
        margin:10px 0;
    }

    .category-featured-title a{
        font-size:18px;
        line-height:1.3;
    }

    .category-list li{
        padding:10px 0 10px 18px;
    }

    .category-list a{
        width:100%;
        font-size:15px;
        line-height:1.45;
    }
}
