
/*=========================================================
ROOT
=========================================================*/

:root{

    --academy-primary:#4f46e5;

    --academy-primary-dark:#3730a3;

    --academy-bg:#f5f7fb;

    --academy-card:#ffffff;

    --academy-border:#e7edf5;

    --academy-text:#1f2937;

    --academy-muted:#6b7280;

    --academy-shadow:
    0 18px 45px rgba(15,23,42,.08);

}

/*=========================================================
BODY
=========================================================*/

body{

    background:var(--academy-bg) !important;

    font-family:
    Inter,
    "Segoe UI",
    sans-serif;

    color:var(--academy-text);

}

/*=========================================================
PAGE
=========================================================*/

.academy-popular-page{

    padding-top:10px;

    padding-bottom:70px;

}


/*=========================================================
BREADCRUMB
=========================================================*/

.academy-breadcrumb{

    display:flex;

    align-items:center;

    gap:8px;

    flex-wrap:wrap;

    margin-bottom:14px;

    font-size:.85rem;

}

.academy-breadcrumb a{

    color:#64748b;

    text-decoration:none;

    transition:.25s;

}

.academy-breadcrumb a:hover{

    color:#2563eb;

}

.academy-breadcrumb span{

    color:#cbd5e1;

}

.academy-breadcrumb .active{

    color:#2563eb;

    font-weight:700;

}

/*=========================================================
BACK BUTTON
=========================================================*/

.academy-back-wrapper{

    display:flex;

    justify-content:flex-end;

    margin-bottom:14px;

}

.academy-back-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    background:#fff;

    border:1px solid #e7edf5;

    border-radius:12px;

    color:#334155;

    text-decoration:none;

    font-size:.88rem;

    font-weight:600;

    transition:.25s;

    box-shadow:0 4px 14px rgba(15,23,42,.05);

}

.academy-back-btn:hover{

    background:#2563eb;

    border-color:#2563eb;

    color:#fff;

    transform:translateY(-2px);

}

/*=========================================================
POPULAR HERO
=========================================================*/

.academy-popular-hero{

    background:#fff;

    border:1px solid #e7edf5;

    border-radius:20px;

    padding:22px;

    margin-bottom:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:18px;

    flex-wrap:wrap;

    box-shadow:0 8px 24px rgba(15,23,42,.06);

}

.academy-popular-hero__left{

    display:flex;

    align-items:center;

    gap:16px;

}

.academy-popular-icon{

    width:62px;

    height:62px;

    border-radius:16px;

    background:linear-gradient(135deg,#fff7ed,#ffedd5);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:30px;

    flex-shrink:0;

}

.academy-popular-hero h1{

    margin:0;

    font-size:1.45rem;

    font-weight:700;

}

.academy-popular-hero p{

    margin:4px 0 0;

    color:#64748b;

    font-size:.90rem;

    max-width:520px;

}

/*=========================================================
HERO STATS
=========================================================*/

.academy-popular-stats{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

}

.academy-stat{

    min-width:95px;

    background:#f8fafc;

    border:1px solid #e7edf5;

    border-radius:14px;

    padding:12px;

    text-align:center;

    transition:.25s;

}

.academy-stat:hover{

    transform:translateY(-2px);

}

.academy-stat-number{

    font-size:1rem;

    font-weight:700;

    color:#2563eb;

    line-height:1.2;

}

.academy-stat-label{

    margin-top:3px;

    font-size:.72rem;

    color:#64748b;

}

/*=========================================================
SEARCH
=========================================================*/

.academy-search-card{

    background:#fff;

    border:1px solid #e7edf5;

    border-radius:18px;

    padding:18px;

    margin-bottom:22px;

    box-shadow:0 6px 20px rgba(15,23,42,.05);

}

.academy-search-box{

    display:flex;

    gap:12px;

    align-items:center;

}

.academy-search-input{

    flex:1;

    height:46px;

    border:1px solid #dbe3ee;

    border-radius:12px;

    padding:0 16px;

    transition:.25s;

}

.academy-search-input:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.10);

}

.academy-search-btn{

    height:46px;

    min-width:130px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:.88rem;

    font-weight:600;

    transition:.25s;

}

.academy-search-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.academy-reset-btn{

    height:46px;

    min-width:120px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    border:1px solid #dbe3ee;

    background:#fff;

    color:#334155;

    text-decoration:none;

    font-size:.88rem;

    font-weight:600;

    transition:.25s;

}

.academy-reset-btn:hover{

    background:#f8fafc;

    color:#2563eb;

}

.academy-search-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:12px;

    font-size:.82rem;

    color:#64748b;

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media(max-width:768px){

.academy-back-wrapper{

    justify-content:center;

}

.academy-popular-hero{

    padding:18px;

}

.academy-popular-hero__left{

    width:100%;

}

.academy-popular-stats{

    width:100%;

    justify-content:space-between;

}

.academy-stat{

    flex:1;

    min-width:90px;

}

.academy-search-box{

    flex-wrap:wrap;

}

.academy-search-input{

    width:100%;

    flex:unset;

}

.academy-search-btn,

.academy-reset-btn{

    flex:1;

}

}


/*=========================================================
POPULAR COURSE CARDS PREMIUM
=========================================================*/

.course-card{

    background:#fff;

    border:1px solid #e8edf5;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 24px rgba(15,23,42,.05);

    transition:.25s ease;

    height:100%;

    display:flex;

    flex-direction:column;

}

.course-card:hover{

    transform:translateY(-4px);

    box-shadow:0 16px 34px rgba(15,23,42,.10);

}

/*=========================================================
IMAGE
=========================================================*/

.course-cover{

    position:relative;

    overflow:hidden;

    height:160px;

}

.course-cover img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.35s;

}

.course-card:hover .course-cover img{

    transform:scale(1.05);

}

/*=========================================================
BADGES
=========================================================*/

.course-badges{

    position:absolute;

    top:12px;

    left:12px;

    display:flex;

    gap:6px;

    flex-wrap:wrap;

}

.course-badge{

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(8px);

    border-radius:999px;

    padding:4px 10px;

    font-size:.72rem;

    font-weight:600;

    color:#334155;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

/*=========================================================
BODY
=========================================================*/

.course-body{

    padding:16px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.course-language{

    font-size:.76rem;

    color:#2563eb;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.3px;

    margin-bottom:6px;

}

.course-title{

    font-size:1.05rem;

    font-weight:700;

    color:#0f172a;

    margin-bottom:8px;

    line-height:1.35;

}

.course-description{

    color:#64748b;

    font-size:.86rem;

    line-height:1.55;

    margin-bottom:16px;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

/*=========================================================
STATS
=========================================================*/

.course-stats{

    display:flex;

    align-items:center;

    gap:14px;

    flex-wrap:wrap;

    margin-bottom:16px;

}

.course-stat{

    display:flex;

    align-items:center;

    gap:5px;

    font-size:.80rem;

    color:#64748b;

    font-weight:600;

}

.course-stat i{

    color:#2563eb;

}

/*=========================================================
BUTTON
=========================================================*/

.course-footer{

    margin-top:auto;

    display:flex;

    justify-content:flex-start;

}

.course-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    height:40px;

    padding:0 18px;

    margin-top:6px;

    border-radius:10px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    font-size:.84rem;

    font-weight:600;

    transition:.25s;

}

.course-btn:hover{

    background:#1d4ed8;

    color:#fff;

    transform:translateY(-2px);

}

.course-btn:hover{

    background:#1d4ed8;

    color:#fff;

    transform:translateY(-2px);

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media(max-width:768px){

.course-cover{

    height:145px;

}

.course-body{

    padding:14px;

}

.course-title{

    font-size:1rem;

}

.course-description{

    font-size:.84rem;

}

.course-stats{

    gap:10px;

}

.course-btn{

    height:40px;

}

}


/*=========================================================
EMPTY STATE PREMIUM
=========================================================*/

.academy-empty-state{

    max-width:620px;

    margin:50px auto;

    padding:40px 28px;

    text-align:center;

    background:#fff;

    border:1px solid #e7edf5;

    border-radius:22px;

    box-shadow:0 12px 28px rgba(15,23,42,.06);

}

.academy-empty-icon{

    width:74px;

    height:74px;

    margin:0 auto 18px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

    border-radius:18px;

    background:#eef4ff;

}

.academy-empty-state h3{

    margin-bottom:10px;

    font-size:1.45rem;

    font-weight:700;

    color:#0f172a;

}

.academy-empty-state p{

    margin:0 auto 24px;

    max-width:420px;

    color:#64748b;

    line-height:1.6;

    font-size:.92rem;

}

.academy-empty-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:44px;

    padding:0 22px;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    font-size:.88rem;

    font-weight:600;

    transition:.25s;

}

.academy-empty-btn:hover{

    background:#1d4ed8;

    color:#fff;

    transform:translateY(-2px);

}

/*=========================================================
SHOW MORE
=========================================================*/

.academy-show-more{

    display:flex;

    justify-content:center;

    margin-top:35px;

}

.academy-show-more-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    min-width:230px;

    height:46px;

    padding:0 26px;

    border-radius:14px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    font-size:.90rem;

    font-weight:600;

    box-shadow:0 8px 20px rgba(37,99,235,.16);

    transition:.25s;

}

.academy-show-more-btn:hover{

    background:#1d4ed8;

    color:#fff;

    transform:translateY(-2px);

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media(max-width:768px){

.academy-empty-state{

    margin:35px auto;

    padding:30px 20px;

}

.academy-empty-btn{

    width:100%;

}

.academy-show-more{

    margin-top:28px;

}

.academy-show-more-btn{

    width:100%;

    min-width:unset;

}

}


/*=========================================================
PREMIUM ANIMATIONS
=========================================================*/

.academy-popular-hero,
.academy-search-card,
.course-card,
.academy-empty-state{

    animation:academyFadeIn .45s ease both;

}

.course-card:nth-child(2){

    animation-delay:.05s;

}

.course-card:nth-child(3){

    animation-delay:.10s;

}

.course-card:nth-child(4){

    animation-delay:.15s;

}

@keyframes academyFadeIn{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*=========================================================
GLOBAL HOVER
=========================================================*/

.course-card,
.academy-search-card,
.academy-popular-hero,
.academy-empty-state{

    transition:
    transform .25s ease,
    box-shadow .25s ease;

}

.course-card:hover,
.academy-search-card:hover,
.academy-popular-hero:hover,
.academy-empty-state:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 38px rgba(15,23,42,.10);

}

/*=========================================================
SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eef2f7;

}

::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#94a3b8;

}

/*=========================================================
TABLET
=========================================================*/

@media(max-width:992px){

.container{

    max-width:95%;

}

.academy-popular-hero{

    flex-direction:column;

    align-items:flex-start;

}

.academy-popular-stats{

    width:100%;

    justify-content:space-between;

}

.course-card{

    margin-bottom:6px;

}

}

/*=========================================================
PHONE
=========================================================*/

@media(max-width:768px){

.academy-popular-page{

    padding-bottom:40px;

}

.academy-breadcrumb{

    font-size:.80rem;

}

.academy-popular-hero{

    padding:18px;

}

.academy-popular-icon{

    width:54px;

    height:54px;

    font-size:24px;

}

.academy-popular-hero h1{

    font-size:1.25rem;

}

.academy-popular-hero p{

    font-size:.84rem;

}

.academy-search-card{

    padding:15px;

}

.course-cover{

    height:140px;

}

.course-body{

    padding:14px;

}

.course-title{

    font-size:1rem;

}

.course-description{

    font-size:.83rem;

    -webkit-line-clamp:2;

}

.course-stats{

    gap:8px;

}

.course-stat{

    font-size:.78rem;

}

.course-btn{

    height:38px;

    font-size:.82rem;

    padding:0 16px;

}

}

/*=========================================================
SMALL PHONE
=========================================================*/

@media(max-width:480px){

.academy-popular-stats{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;

}

.academy-stat{

    width:100%;

}

.course-cover{

    height:130px;

}

.course-title{

    font-size:.95rem;

}

.course-description{

    font-size:.80rem;

}

}

/*=========================================================
FINAL SPACING
=========================================================*/

.course-card+.course-card{

    margin-top:0;

}

.course-body>*:last-child{

    margin-bottom:0;

}

.academy-search-footer{

    border-top:1px solid #eef2f7;

    padding-top:12px;

}
    
   