* =========================================================
   VIDYAKUL — BATCH CATALOG V3
   ========================================================= */

.catalog-page {
    margin: 0;
    background: #f6f7fb;
    color: #172033;
    font-family: "DM Sans", Arial, sans-serif;
}

.catalog-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}


/* =========================
   SIDEBAR
   ========================= */

.catalog-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #111827;
    color: #dbe4f0;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #202a3b;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        #6955e9,
        #18b9a1
    );
    font-weight: 900;
    font-size: 20px;
    box-shadow:
        0 10px 30px rgba(105,85,233,.28);
}

.brand-text strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.brand-text small {
    display: block;
    margin-top: 5px;
    color: #73829a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}

.sidebar-title {
    padding: 15px 12px 8px;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.catalog-sidebar nav {
    display: grid;
    gap: 4px;
}

.catalog-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: #9aa8bb;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.catalog-sidebar nav a:hover {
    color: #fff;
    background: #1b2638;
}

.catalog-sidebar nav a.active {
    color: #fff;
    background: linear-gradient(
        90deg,
        #6754e8,
        #5745c7
    );
    box-shadow:
        0 10px 28px rgba(92,70,210,.25);
}

.nav-icon {
    width: 21px;
    text-align: center;
    font-size: 17px;
}

.sidebar-section + .sidebar-section {
    margin-top: 14px;
}

.sidebar-promo {
    margin-top: auto;
    padding: 18px;
    border-radius: 17px;
    border: 1px solid #263449;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(99,102,241,.2),
            transparent 50%
        ),
        #162133;
}

.promo-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #26395b;
    color: #aebcff;
    margin-bottom: 11px;
}

.sidebar-promo strong {
    color: #fff;
    font-size: 13px;
}

.sidebar-promo p {
    color: #8190a5;
    font-size: 11px;
    line-height: 1.55;
    margin: 7px 0 0;
}

.mobile-close {
    display: none;
}


/* =========================
   HEADER
   ========================= */

.catalog-main {
    min-width: 0;
}

.catalog-header {
    position: sticky;
    top: 0;
    z-index: 50;

    height: 76px;

    display: flex;
    align-items: center;
    gap: 22px;

    padding: 0 30px;

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid #e8ebf0;
}

.header-context {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #9aa4b3;
    font-size: 13px;
}

.header-context strong {
    color: #202b3c;
}

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    width: min(370px, 32vw);
    height: 43px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 13px;

    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 12px;

    transition: .2s ease;
}

.search-box:focus-within {
    border-color: #7563eb;
    box-shadow:
        0 0 0 4px rgba(117,99,235,.09);
}

.search-icon {
    color: #8791a0;
    font-size: 22px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font-size: 13px;
}

.dashboard-button {
    padding: 10px 13px;
    color: #4c596b;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-button span {
    margin-left: 5px;
}

.login-button {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
}

.signup-button {
    padding: 11px 15px;
    border-radius: 10px;
    background: #172033;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.profile-button {
    display: flex;
}

.profile-button span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #fff;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #f0ad48,
            #9b5d40
        );
}

.mobile-menu {
    display: none;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 10px;

    background: #f0f2f6;

    cursor: pointer;
}


/* =========================
   CONTENT
   ========================= */

.catalog-content {
    width: min(
        1550px,
        calc(100% - 70px)
    );

    margin: 0 auto;

    padding: 38px 0 70px;
}

.catalog-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;

    margin-bottom: 32px;
}

.intro-label {
    margin-bottom: 9px;

    color: #6b5be7;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .16em;
}

.catalog-intro h1 {
    margin: 0;

    color: #172033;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(
        38px,
        4vw,
        54px
    );

    line-height: 1;
    letter-spacing: -.055em;
}

.catalog-intro h1 span {
    color: #6c5ce7;
}

.catalog-intro p {
    max-width: 620px;

    margin: 14px 0 0;

    color: #7d8796;

    font-size: 14px;
}

.batch-count {
    min-width: 145px;

    padding: 17px 19px;

    background: #fff;

    border: 1px solid #e5e8ee;
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(25,35,55,.04);
}

.batch-count strong {
    display: block;

    font-family: "Space Grotesk", sans-serif;
    font-size: 29px;
    line-height: 1;
}

.batch-count span {
    display: block;

    margin-top: 6px;

    color: #8b95a4;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* =========================
   FILTER
   ========================= */

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 21px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-button {
    border: 1px solid #e0e4eb;
    background: #fff;

    color: #667386;

    padding: 9px 14px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition: .18s ease;
}

.filter-button:hover {
    border-color: #bfc7d5;
    color: #202b3c;
}

.filter-button.active {
    background: #172033;
    border-color: #172033;
    color: #fff;
}

.sort-select {
    height: 38px;

    padding: 0 12px;

    border: 1px solid #e0e4eb;
    border-radius: 10px;

    background: #fff;

    color: #5d6879;

    font-size: 11px;
    font-weight: 700;

    outline: 0;
}


/* =========================
   COURSE GRID
   ========================= */

.course-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 19px;
}

.course-card {
    min-width: 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid #e1e5ec;
    border-radius: 18px;

    box-shadow:
        0 5px 18px rgba(20,28,45,.035);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.course-card:hover {
    transform: translateY(-5px);

    border-color: #d2d7e3;

    box-shadow:
        0 22px 50px rgba(20,28,45,.12);
}


/* =========================
   COVER
   ========================= */

.course-cover {
    height: 190px;

    position: relative;

    overflow: hidden;

    padding: 18px;

    color: #fff;
}

.course-cover.violet {
    background:
        linear-gradient(
            135deg,
            #5945c8,
            #a084ff
        );
}

.course-cover.blue {
    background:
        linear-gradient(
            135deg,
            #1855b9,
            #45a4ff
        );
}

.course-cover.teal {
    background:
        linear-gradient(
            135deg,
            #087f86,
            #35c9ae
        );
}

.course-cover.orange {
    background:
        linear-gradient(
            135deg,
            #a45b12,
            #f2bd55
        );
}

.course-cover.pink {
    background:
        linear-gradient(
            135deg,
            #9a3b61,
            #ed809e
        );
}

.course-cover.green {
    background:
        linear-gradient(
            135deg,
            #24634c,
            #6dbb78
        );
}

.course-cover.indigo {
    background:
        linear-gradient(
            135deg,
            #35478f,
            #7292ee
        );
}

.course-cover.red {
    background:
        linear-gradient(
            135deg,
            #9f3333,
            #ed6969
        );
}

.cover-pattern {
    position: absolute;
    inset: 0;

    opacity: .16;

    background-image:
        linear-gradient(
            rgba(255,255,255,.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.5) 1px,
            transparent 1px
        );

    background-size: 30px 30px;
}

.cover-header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cover-tag {
    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(255,255,255,.15);

    border: 1px solid rgba(255,255,255,.25);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
}

.cover-symbol {
    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(255,255,255,.17);

    font-weight: 900;
}

.cover-content {
    position: absolute;

    left: 19px;
    right: 70px;
    bottom: 17px;

    z-index: 3;
}

.cover-content small {
    display: block;

    margin-bottom: 5px;

    opacity: .75;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.cover-content h2 {
    margin: 0;

    font-family: "Space Grotesk", sans-serif;

    font-size: 25px;
    line-height: 1.03;

    letter-spacing: -.04em;
}

.cover-content p {
    overflow: hidden;

    margin: 6px 0 0;

    white-space: nowrap;
    text-overflow: ellipsis;

    opacity: .78;

    font-size: 10px;
}

.cover-shape {
    position: absolute;

    border-radius: 50%;

    border: 26px solid rgba(255,255,255,.12);
}

.shape-one {
    width: 170px;
    height: 170px;

    right: -75px;
    bottom: -85px;
}

.shape-two {
    width: 100px;
    height: 100px;

    right: 18px;
    top: -70px;

    border-width: 17px;
    opacity: .5;
}


/* =========================
   CARD CONTENT
   ========================= */

.course-content {
    padding: 17px 18px 16px;
}

.course-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.course-category {
    color: #6b59e6;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.course-status {
    color: #7d8795;
    font-size: 10px;
}

.course-status i {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 5px;

    border-radius: 50%;

    background: #20b477;
}

.course-content h3 {
    margin: 8px 0 7px;

    color: #172033;

    font-family: "Space Grotesk", sans-serif;

    font-size: 20px;
    line-height: 1.18;
}

.course-description {
    min-height: 35px;

    margin: 0;

    color: #7c8695;

    font-size: 11px;
    line-height: 1.55;
}

.course-features {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin: 14px 0 17px;
}

.course-features span {
    padding: 5px 7px;

    background: #f5f7fa;

    border: 1px solid #e8ebf0;

    border-radius: 7px;

    color: #697587;

    font-size: 9px;
}

.course-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 10px;

    padding-top: 14px;

    border-top: 1px solid #edf0f4;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.price-row strong {
    color: #172033;
    font-size: 20px;
}

.price-row del {
    color: #9ba4b0;
    font-size: 10px;
}

.discount {
    display: block;

    margin-top: 2px;

    color: #159860;

    font-size: 9px;
    font-weight: 900;
}

.course-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 13px;

    border-radius: 10px;

    background: #172033;
    color: #fff;

    font-size: 10px;
    font-weight: 900;

    white-space: nowrap;

    transition: .2s ease;
}

.course-button:hover {
    background: #6b59e6;
    transform: translateY(-1px);
}

.course-button span {
    font-size: 13px;
}


/* =========================
   EMPTY
   ========================= */

.no-results {
    margin-top: 20px;

    padding: 60px 20px;

    text-align: center;

    background: #fff;

    border: 1px dashed #d8dee8;
    border-radius: 18px;
}

.no-results[hidden] {
    display: none;
}

.no-results > div {
    font-size: 30px;
}

.no-results h3 {
    margin: 10px 0 5px;
}

.no-results p {
    margin: 0;

    color: #8791a0;
    font-size: 13px;
}


/* =========================
   MOBILE
   ========================= */

.sidebar-overlay {
    display: none;
}

@media (max-width: 1150px) {

    .course-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .catalog-content {
        width: calc(100% - 50px);
    }

    .search-box {
        width: 270px;
    }
}

@media (max-width: 820px) {

    .catalog-app {
        display: block;
    }

    .catalog-sidebar {
        position: fixed;

        left: -270px;
        top: 0;

        width: 255px;

        transition: left .25s ease;

        box-shadow:
            20px 0 50px rgba(0,0,0,.25);
    }

    .catalog-sidebar.open {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;

        position: fixed;
        inset: 0;

        z-index: 90;

        background: rgba(0,0,0,.4);
    }

    .mobile-menu {
        display: block;
    }

    .mobile-close {
        display: block;

        border: 0;
        background: transparent;

        color: #fff;

        font-size: 28px;

        cursor: pointer;
    }

    .header-context {
        display: none;
    }

    .catalog-header {
        padding: 0 15px;
    }

    .header-actions {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .dashboard-button {
        display: none;
    }

    .catalog-content {
        width: calc(100% - 30px);
        padding-top: 28px;
    }

    .catalog-intro {
        align-items: start;
    }
}

@media (max-width: 650px) {

    .course-grid {
        grid-template-columns: 1fr;
    }

    .catalog-intro {
        display: block;
    }

    .batch-count {
        margin-top: 18px;
        width: max-content;
    }

    .filter-bar {
        display: block;
    }

    .sort-select {
        width: 100%;
        margin-top: 10px;
    }

    .catalog-intro h1 {
        font-size: 36px;
    }
}

@media (max-width: 470px) {

    .catalog-content {
        width: calc(100% - 20px);
    }

    .catalog-header {
        height: 68px;
    }

    .signup-button {
        display: none;
    }

    .search-box {
        height: 40px;
    }

    .course-cover {
        height: 175px;
    }
}