/**
 * ----------------------------------------------------
 * TK Category Module
 * File: tk-category.css
 * ----------------------------------------------------
 */

/* ===== SECTION ===== */

.tkcat-section{

    padding:70px 0;

    background:#f8fafc;

}

.tkcat-section .container{

    width:100%;

    max-width:1600px;

    margin:0 auto;

    padding:0 30px;

}

/* ===== HEADER ===== */

.tkcat-header{
    text-align:center;
    margin-bottom:50px;
}

.tkcat-title{

    margin:0 0 16px;

    font-size:42px;

    font-weight:800;

    line-height:1.2;

    color:#0f172a;

    letter-spacing:-0.5px;

}

.tkcat-subtitle{

    max-width:1200px;

    margin:0 auto 60px;

    font-size:20px;

    line-height:1.8;

    color:#64748b;

}

/* ===== GRID ===== */

.tkcat-grid{

    display:grid;

    grid-template-columns:repeat(5,minmax(0,1fr));

    gap:24px;

    align-items:stretch;

}

/* ===== CARD ===== */

.tkcat-card{

    display:grid;

    grid-template-rows:

        70px   /* Title */

        90px   /* Description */

        auto   /* Divider */

        1fr    /* Course */

        auto;  /* Footer */

}
.tkcat-name{

    margin:0;

}

.tkcat-description{

    margin:0;

}

.tkcat-card{

    background:#fff;

    border-radius:18px;

    padding:30px;

    box-shadow:

        0 24px 60px rgba(15,23,42,.12);

    transition:.25s;

}

.tkcat-card{

    position:relative;
    overflow:hidden;

}

.tkcat-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:4px;

    background:var(--tkcat-color);
    border-radius:20px 20px 0 0;

}

.tkcat-card:hover{

    transform:translateY(-6px);

    border-color:var(--tkcat-color);

    box-shadow:

        0 22px 55px rgba(15,23,42,.12);

}

.tkcat-card:hover .tkcat-button{

    color:#0f766e;

}

/* ===== LINE ===== */

.tkcat-line{
    height:1px;
    background:#edf2f7;
    margin:18px 0 22px;
}

/* ===== TITLE ===== */

.tkcat-name{

    margin:0 0 14px;

    font-size:20px;

    font-weight:700;

    line-height:1.4;

    min-height:56px;

    display:flex;

    align-items:flex-start;

}

/* ===== DESCRIPTION ===== */

.tkcat-description{

    min-height:72px;
    margin-bottom:18px;
    line-height:1.8;

    color:#6b7280;

}

/* ===== COURSE LIST ===== */

.tkcat-course-list{

    margin:0 0 20px;
    margin-top:18px;
    padding:0;

    list-style:none;

}

.tkcat-course-item{

    display:flex;

    align-items:flex-start;

    gap:10px;

    margin-bottom:10px;

}

.tkcat-course-item{

    transition:.25s;

}

.tkcat-course-item:hover{

    padding-left:5px;

    color:#0f766e;

}

.tkcat-course-item:last-child{
    margin-bottom:0;
}

.tkcat-check{
    flex:0 0 18px;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:2px;
}

.tkcat-check i{
    color:var(--tkcat-color);
    font-size:14px;
}

.tkcat-course-title{
    flex:1;
}

.tkcat-empty{
    color:#9ca3af;
    font-style:italic;
}

/* ===== FOOTER ===== */

.tkcat-footer{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    margin-top:auto;

}
.tkcat-count{

    display:inline-flex;

    align-items:baseline;

    gap:8px;

    color:var(--tkcat-color);

}

.tkcat-count strong{

    font-size:30px;

    font-weight:700;

    line-height:1;

}

.tkcat-count span{

    font-size:13px;

    color:#64748b;

    font-weight:500;

    white-space:nowrap;

}
/* ===== BUTTON ===== */

.tkcat-button{

    display:flex;

    align-items:center;

    gap:6px;

    transition:.25s;

}

.tkcat-button i{

    transition:.25s;

}

.tkcat-card:hover .tkcat-button i{

    transform:translateX(5px);

}

/* ===== RESPONSIVE ===== */

/* Desktop lớn */

.tkcat-grid{

    grid-template-columns:repeat(5,1fr);

}

/* Laptop */

@media (max-width:1400px){

    .tkcat-grid{

        grid-template-columns:repeat(4,1fr);

    }

}

/* Tablet ngang */

@media (max-width:1024px){

    .tkcat-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* Mobile */

@media (max-width:768px){

    .tkcat-grid{

        grid-template-columns:1fr;

    }

}