/*==================================================
GM24 NEWS PREMIUM V6
CATEGORY SECTION
==================================================*/

/*==============================
SECTION
==============================*/

.category-section{
    margin:70px auto;
}

/*==============================
HEADER
==============================*/

.category-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    padding-bottom:15px;
    border-bottom:3px solid var(--primary);
}

.category-header h2{
    margin:0;
    font-size:34px;
    font-weight:800;
    color:var(--text);
    line-height:1.2;
}

.category-header a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--primary);
    font-size:15px;
    font-weight:700;
    transition:var(--transition);
}

.category-header a:hover{
    color:var(--black);
}

/*==============================
GRID
==============================*/

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

/*==============================
CARD
==============================*/

.category-card{
    position:relative;
    background:var(--white);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.35s;
    display:flex;
    flex-direction:column;
    height:100%;
}

.category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

/*==============================
IMAGE
==============================*/

.category-thumb{
    display:block;
    overflow:hidden;
}

.category-thumb img{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
    transition:.45s;
}

.category-card:hover .category-thumb img{
    transform:scale(1.08);
}

/*==============================
CONTENT
==============================*/

.category-content{
    padding:18px;
    flex:1;
    display:flex;
    flex-direction:column;
}

.category-content h3{
    margin:0;
    font-size:19px;
    line-height:1.5;
    font-weight:700;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;

    min-height:58px;
}

.category-content h3 a{
    color:var(--text);
    transition:.3s;
}

.category-content h3 a:hover{
    color:var(--primary);
}
/*==============================
SMALL EFFECTS
==============================*/

.category-card:hover .category-content h3 a{
    color:var(--primary);
}


.category-card::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:3px;
    background:var(--primary);
    transition:.35s;
}

.category-card:hover::after{
    width:100%;
}

/*==============================
RESPONSIVE
==============================*/

@media (max-width:1200px){

    .category-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}

@media (max-width:991px){

    .category-section{
        margin:50px auto;
    }

    .category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px;
    }

    .category-header{
        margin-bottom:22px;
    }

    .category-header h2{
        font-size:28px;
    }

    .category-thumb img{
        height:170px;
    }

}

@media (max-width:576px){

    .category-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .category-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .category-header h2{
        font-size:24px;
    }

    .category-header a{
        font-size:14px;
    }

    .category-content{
        padding:16px;
    }

    .category-content h3{
        font-size:17px;
        min-height:auto;
    }

    .category-thumb img{
        height:220px;
    }

}

/*==============================
END
==============================*/