/**
 * Education4U — loaded last in layout (after theme CSS).
 */

/* Full-screen preloader must not intercept clicks while JS fades it out */
#preloader {
    pointer-events: none;
}

/* Fade/slide heroes stack slides — only the active slide should receive clicks */
.edu-home-hero-swiper .swiper-slide:not(.swiper-slide-active) {
    pointer-events: none;
}

:root {
    --tg-theme-primary: #001b44;
    --tg-theme-secondary: #2563eb;
    --tg-common-color-white: #fff;
    --edu-header-action-icon: #001b44;
    --edu-header-action-ring: #cbd5e1;
    --edu-header-search-bg: #001b44;
    --edu-header-search-hover: #002451;
    --edu-header-tier2-bg: #001b44;
    --edu-header-tier2-border: rgba(255, 255, 255, 0.08);
    --edu-header-nav-link: rgba(255, 255, 255, 0.88);
    --edu-header-nav-link-hover: #ffffff;
    /* Blog accents align with site navy — no separate orange/coral palette */
    --edu-blog-accent: #001b44;
    --edu-blog-accent-hover: #002d6b;
}

/* —— Auth pages (sign in / register) —— */
.edu-auth-page {
    min-height: calc(100vh - 200px);
    background: linear-gradient(165deg, #eef2f7 0%, #f8fafc 45%, #f1f5f9 100%);
}

@media (max-width: 575.98px) {
    .edu-auth-page {
        min-height: auto;
    }
}

.edu-auth-card {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09) !important;
    overflow: hidden;
}

.edu-auth-card__title {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.edu-auth-card__lead {
    line-height: 1.55;
    max-width: 34rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .edu-auth-card__lead {
        margin-inline: 0;
    }
}

.edu-auth-form .form-label {
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.edu-auth-input.form-control,
.edu-auth-input.form-select {
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-color: #e2e8f0;
    font-size: 0.95rem;
}

.edu-auth-input.form-control:focus,
.edu-auth-input.form-select:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.edu-auth-btn-primary {
    padding: 0.72rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.98rem;
    border: none;
    background: linear-gradient(180deg, #002855 0%, #001b44 100%);
    color: #fff !important;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.edu-auth-btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(0, 27, 68, 0.28);
    color: #fff !important;
}

.edu-auth-btn-primary:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.edu-auth-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.edu-auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.edu-auth-note {
    background: #f8fafc;
    border: 1px solid #e8eef4;
}

/* Skip to content (keyboard / a11y) */
.edu-skip-link {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 100000;
    padding: 0.55rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff !important;
    background: var(--tg-theme-primary);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 27, 68, 0.35);
}

.edu-skip-link:focus {
    left: 0.75rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* —— Site header: full-width bands (white tier · navy nav band) —— */
.edu-site-header {
    position: relative;
    z-index: 1030;
}

/* Announcement scroller: match tier-2 nav band (navy); theme hides generic .tg-header__top below lg */
.edu-site-header > .edu-site-header__ticker.tg-header__top {
    padding: 0.5rem 0;
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    background-color: var(--edu-header-tier2-bg);
    border-bottom: 1px solid var(--edu-header-tier2-border);
}

.edu-site-header > .edu-site-header__ticker .edu-header-ticker__viewport {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    line-height: 1.45;
}

.edu-site-header > .edu-site-header__ticker.tg-header__top .edu-header-ticker__item {
    color: var(--edu-header-nav-link);
}

@media (max-width: 991.98px) {
    /* Theme sets .tg-header__top { display: none } below lg — keep announcements visible */
    .edu-site-header > .edu-site-header__ticker.tg-header__top {
        display: block !important;
    }
}

.edu-site-header__sticky.tg-header__area {
    background: #fff;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
}

.edu-site-header__sticky.tg-header__area.sticky-menu {
    box-shadow: 0 10px 32px rgba(0, 27, 68, 0.12);
}

.edu-site-header__tier1 {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.edu-site-header__tier1-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
}

@media (max-width: 991.98px) {
    /* Lower menu bar is redundant with the slide-out menu on small screens */
    .edu-site-header__tier2 {
        display: none;
    }
}

.edu-site-header__logo img {
    max-height: 46px;
    width: auto;
    height: auto;
}

.edu-site-header__search-form {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.edu-site-header__search-pill {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: min(720px, 100%);
    margin-inline: auto;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.edu-site-header__search-pill:focus-within {
    border-color: rgba(0, 27, 68, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 27, 68, 0.08), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.edu-site-header__search-select {
    flex: 0 0 clamp(7.5rem, 22vw, 11rem);
    border: 0;
    background: #f8fafc;
    padding: 0.55rem 0.65rem 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    padding-right: 1.75rem;
}

.edu-site-header__search-select:focus {
    outline: none;
    box-shadow: none;
}

.edu-site-header__search-vrule {
    width: 1px;
    align-self: stretch;
    background: #e2e8f0;
    flex-shrink: 0;
}

.edu-site-header__search-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.5rem 0 0.75rem;
    background: transparent;
}

.edu-site-header__search-input-icon {
    color: #94a3b8;
    font-size: 0.95rem;
}

.edu-site-header__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0.65rem 0.35rem;
    font-size: 0.95rem;
    background: transparent;
}

.edu-site-header__search-input:focus {
    outline: none;
    box-shadow: none;
}

.edu-site-header__search-submit {
    flex-shrink: 0;
    border: 0;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    background: var(--edu-header-search-bg);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.edu-site-header__search-submit:hover {
    background: var(--edu-header-search-hover);
    box-shadow: none;
    color: #fff;
}

.edu-site-header__tier1-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    min-width: 0;
}

.edu-site-header__social {
    gap: 0.35rem;
}

.edu-site-header__social-link {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #64748b;
    background: #f1f5f9;
    transition: color 0.15s ease, background 0.15s ease;
}

.edu-site-header__social-link:hover {
    color: var(--tg-theme-primary);
    background: #e8eef5;
}

.edu-site-header__btn-register {
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 27, 68, 0.98);
    color: #fff !important;
    background: var(--tg-theme-primary);
    box-shadow: none;
}

.edu-site-header__btn-register:hover {
    background: var(--edu-header-search-hover);
    border-color: var(--edu-header-search-hover);
    color: #fff !important;
}

.edu-site-header__btn-login {
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155 !important;
}

.edu-site-header__btn-login:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a !important;
}

/*
 * Udemy-like responsive header (< xl): single compact row —
 * [menu] · [logo centred] · [Log in?] [search] [cart/account]
 * Full search pill is desktop-only; tablet/phone use search icon → drawer field.
 */
@media (max-width: 1199.98px) {
    .edu-site-header__tier1 {
        padding: 0.45rem 0;
    }

    .edu-site-header__tier1 .edu-site-header__search-form {
        display: none !important;
    }

    .edu-site-header__tier1-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem 0.65rem;
    }

    .edu-site-header__mobile-start {
        flex-shrink: 0;
    }

    .edu-site-header__logo {
        justify-self: center;
        min-width: 0;
    }

    .edu-site-header__logo img {
        max-height: 32px;
        width: auto;
    }

    .edu-site-header__tier1-end {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.15rem;
        flex-shrink: 0;
        min-width: 0;
    }

    .edu-site-header__icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 999px;
        background: #fff;
        color: #1e293b !important;
        box-shadow: inset 0 0 0 1px #e2e8f0;
        cursor: pointer;
        transition:
            background 0.15s ease,
            box-shadow 0.15s ease,
            color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .edu-site-header__icon-btn:hover {
        background: #f8fafc;
        box-shadow: inset 0 0 0 1px #cbd5e1;
        color: #0f172a !important;
    }

    .edu-site-header__icon-btn:focus-visible {
        outline: 2px solid rgba(0, 27, 68, 0.45);
        outline-offset: 2px;
    }

    .edu-site-header__icon-btn .fas {
        font-size: 1.05rem;
        line-height: 1;
    }

    .edu-site-header__mobile-login-link {
        padding: 0.35rem 0.4rem;
        margin-right: 0.15rem;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: var(--tg-theme-primary) !important;
        white-space: nowrap;
        border-radius: 0.35rem;
    }

    .edu-site-header__mobile-login-link:hover {
        color: var(--edu-header-search-hover) !important;
        text-decoration: underline !important;
    }

    /* Slide-in panel from the left (Udemy-style), narrower readable width */
    .tgmobile__menu {
        left: 0;
        right: auto;
        padding-right: 0;
        width: min(100vw - 1.25rem, 400px);
        max-width: 100%;
        -webkit-transform: translateX(-101%);
        transform: translateX(-101%);
    }

    .mobile-menu-visible .tgmobile__menu {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    .tgmobile__menu-box {
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
    }

    .tgmobile__menu .close-btn {
        left: auto;
        right: 16px;
        top: 16px;
    }

    .tgmobile__menu .nav-logo {
        padding: 1rem 1.25rem 0.75rem;
        border-bottom: 1px solid #eef2f7;
    }

    .tgmobile__menu .nav-logo img {
        width: 128px;
        max-width: 55vw;
    }

    .edu-site-header__mobile-search.tgmobile__search {
        padding: 2.65rem 1.25rem 1.25rem;
        margin: 0;
        border-bottom: 1px solid #eef2f7;
        background: #fafbfc;
    }

    .edu-site-header__mobile-search .form-select {
        border-radius: 0.5rem;
        border-color: #e2e8f0;
        font-size: 0.9rem;
    }

    .edu-site-header__mobile-search .form-control {
        border-radius: 0.5rem 0 0 0.5rem;
        border-color: #e2e8f0;
        font-size: 0.95rem;
    }

    .edu-site-header__mobile-search .btn-primary {
        border-radius: 0 0.5rem 0.5rem 0;
        padding-left: 1rem;
        padding-right: 1rem;
        background-color: var(--tg-theme-primary) !important;
        border-color: var(--tg-theme-primary) !important;
        box-shadow: none !important;
    }

    .edu-site-header__mobile-search .btn-primary:hover,
    .edu-site-header__mobile-search .btn-primary:focus {
        background-color: var(--edu-header-search-hover) !important;
        border-color: var(--edu-header-search-hover) !important;
        color: #fff !important;
    }

    /*
     * Theme main.css + frontend.css style legacy mobile search (absolute icon). We use
     * Bootstrap .input-group — reset parent form + kill frontend.css `button { top: 75px }`.
     */
    .edu-site-header__mobile-search.tgmobile__search form {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }

    /*
     * Theme main.css styles .tgmobile__search as: full-width input + absolutely positioned
     * icon button inside the field. We use Bootstrap .input-group (field + side button), so
     * reset those rules so the control stays on one row and the icon is visible (white on navy).
     */
    .edu-site-header__mobile-search.tgmobile__search .input-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        width: 100%;
    }

    .edu-site-header__mobile-search.tgmobile__search .input-group > .form-control {
        flex: 1 1 auto !important;
        min-width: 0;
        width: 1% !important;
        height: auto;
        display: block;
    }

    .edu-site-header__mobile-search.tgmobile__search .input-group > .btn {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        flex: 0 0 auto;
        z-index: auto;
        min-width: 2.75rem;
    }

    .edu-site-header__mobile-search.tgmobile__search .input-group > .btn .fas,
    .edu-site-header__mobile-search.tgmobile__search .input-group > .btn i {
        color: #fff !important;
    }

    .tgmobile__menu .mobile_menu_login {
        padding: 0.75rem 1.25rem 1rem;
        margin: 0;
        gap: 0.5rem;
    }

    .tgmobile__menu .mobile_menu_login li a {
        border-radius: 0.5rem;
        font-weight: 600;
    }

    .tgmobile__menu .navigation > li > a {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
    }

    .tgmobile__menu .navigation > li:first-child {
        border-top: none;
    }

    .tgmobile__menu .tgmobile__menu-outer {
        padding-bottom: 2rem;
    }
}

.edu-site-header__inline-actions .cart-count {
    width: 44px;
    height: 44px;
}

.edu-site-header__tier2 {
    width: 100%;
    background: linear-gradient(180deg, #002451 0%, var(--edu-header-tier2-bg) 55%, #001530 100%);
    border-top: 1px solid var(--edu-header-tier2-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.edu-site-header__menu-shell {
    padding: 0;
}

.edu-site-header__tier2-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    min-height: 3.35rem;
    padding: 0.35rem 0;
}

.edu-site-header__tier2 .tgmenu__navbar-wrap {
    margin: 0;
}

/* Theme (.tgmenu__navbar-wrap ul li a) sets heading color + huge padding — override for navy bar */
html body header.edu-site-header .edu-site-header__tier2 .tgmenu__navbar-wrap ul.navigation.edu-site-header__nav-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body header.edu-site-header .edu-site-header__tier2 .tgmenu__navbar-wrap ul.navigation.edu-site-header__nav-list > li > a {
    display: inline-block !important;
    padding: 0.55rem 0 0.65rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.01em !important;
    color: var(--edu-header-nav-link) !important;
    text-decoration: none !important;
    text-transform: none !important;
    position: relative !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
    z-index: 1 !important;
    transition: color 0.15s ease !important;
}

html body header.edu-site-header .edu-site-header__tier2 .tgmenu__navbar-wrap ul.navigation.edu-site-header__nav-list > li > a:hover {
    color: var(--edu-header-nav-link-hover) !important;
}

html body header.edu-site-header .edu-site-header__tier2 .tgmenu__navbar-wrap ul.navigation.edu-site-header__nav-list > li.active > a {
    color: var(--edu-header-nav-link-hover) !important;
    font-weight: 700 !important;
}

html body header.edu-site-header .edu-site-header__tier2 .tgmenu__navbar-wrap ul.navigation.edu-site-header__nav-list > li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
}

.edu-site-header__nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem clamp(1rem, 2vw, 1.65rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Navy band: outlined CTA → fills white on hover */
.edu-site-header__tier2 .edu-site-header__teach-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: transparent;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.edu-site-header__tier2 .edu-site-header__teach-cta:hover {
    background: #fff;
    border-color: #fff;
    color: var(--tg-theme-primary) !important;
}

.edu-site-header__tier2 .edu-site-header__teach-cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

/* Mobile drawer / light surfaces: solid navy pill */
.edu-site-header__mobile-teach .edu-site-header__teach-cta {
    border: 1px solid rgba(0, 27, 68, 0.98);
    background: var(--tg-theme-primary);
    color: #fff !important;
}

.edu-site-header__mobile-teach .edu-site-header__teach-cta:hover {
    background: var(--edu-header-search-hover);
    border-color: var(--edu-header-search-hover);
    color: #fff !important;
}

.edu-site-header__mobile-teach .edu-site-header__teach-cta:focus-visible {
    outline: 2px solid var(--tg-theme-primary);
    outline-offset: 2px;
}

/* Drawer: explicit button chrome (not a plain tinted strip) */
.edu-site-header__teach-cta--drawer {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 27, 68, 0.15);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.edu-site-header__teach-cta--drawer:hover {
    box-shadow: 0 2px 6px rgba(0, 27, 68, 0.18);
}

#header-fixed-height.active-height {
    height: 156px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #header-fixed-height.active-height {
        height: 136px;
    }
}

@media (max-width: 991.98px) {
    #header-fixed-height.active-height {
        height: 96px;
    }
}

@media (max-width: 575.98px) {
    #header-fixed-height.active-height {
        height: 84px;
    }
}

/* Cart + user circles: navy icons, lighter slate ring (less muddy gray) */
html body header #sticky-header .tgmenu__action ul.list-wrap > li.mini-cart-icon > a.cart-count {
    color: var(--edu-header-action-icon) !important;
    border-color: var(--edu-header-action-ring) !important;
}

html body header #sticky-header .tgmenu__action ul.list-wrap > li.mini-cart-icon > a.cart-count:hover {
    border-color: var(--tg-theme-primary) !important;
    color: var(--tg-common-color-white) !important;
}

html body header #sticky-header .tgmenu__action ul.list-wrap > li.mini-cart-icon > a.cart-count .fa-shopping-cart,
html body header #sticky-header .tgmenu__action ul.list-wrap > li.mini-cart-icon > a.cart-count .fa-user {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

/* Count pill: dark navy (not bright blue) */
html body header #sticky-header .tgmenu__action ul.list-wrap li.mini-cart-icon > a.cart-count > span.mini-cart-count {
    background-color: #001b44 !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html body header #sticky-header .tgmenu__action ul.list-wrap li.mini-cart-icon > a.cart-count:hover > span.mini-cart-count {
    background-color: #ffffff !important;
    color: #001b44 !important;
}

/* Blog article HTML from Summernote / legacy LMS */
.blog-article-body img {
    max-width: 100%;
    height: auto;
}

.blog-article-body h2,
.blog-article-body h3 {
    margin-top: 1.25rem;
}

/* Blog index — list layout (featured image + excerpt row) */
.edu-blog-list__media {
    background: #f1f5f9;
}

.edu-blog-list__thumb-link {
    min-height: 200px;
}

.edu-blog-list__thumb-img {
    display: block;
    height: 100%;
    min-height: 200px;
    max-height: 280px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .edu-blog-list__thumb-link {
        min-height: 220px;
    }

    .edu-blog-list__thumb-img {
        min-height: 220px;
        max-height: none;
    }
}

/* Blog index — Bootstrap pagination */
.edu-blog-pagination .pagination {
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.edu-blog-pagination .page-link {
    border-radius: 0.375rem;
}

.edu-blog-pagination .page-item.active .page-link {
    background-color: var(--edu-blog-accent);
    border-color: var(--edu-blog-accent);
    color: #fff;
}

.edu-blog-pagination .page-link:hover {
    color: var(--edu-blog-accent);
}

/* Blog index (/blog): white page, unified navy palette */
.edu-blog-index--problogger {
    background: #fff;
}

/* Theme blog cards (home / widgets): category tag — navy chip, white label */
.post-tag-four {
    background-color: var(--edu-blog-accent) !important;
    color: #fff !important;
}

.post-tag-four:hover {
    background-color: var(--edu-blog-accent-hover) !important;
    color: #fff !important;
}

.edu-udemy-list-instructor-avatar {
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.edu-instructor-directory-card__photo {
    border: 1px solid #e5e7eb;
}

.edu-instructor-directory-card__photo-placeholder {
    border: 1px dashed #e2e8f0;
}

/* Instructor profile (/instructors/{id}) — Udemy-style hero + overlapping sidebar card */
.edu-instructor-profile__hero {
    background: linear-gradient(180deg, #f3f2fb 0%, #ebe9f7 100%);
    padding: 2.25rem 0 6rem;
    border-bottom: 1px solid rgba(91, 33, 182, 0.06);
}

.edu-instructor-profile__kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.edu-instructor-profile__name {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #2d2f31;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.edu-instructor-profile__headline {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 42rem;
    line-height: 1.45;
}

.edu-instructor-profile__body {
    background: #fff;
    padding-bottom: 4rem;
}

.edu-instructor-profile__row {
    margin-top: -5rem;
}

.edu-instructor-profile__stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: #2d2f31;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.edu-instructor-profile__stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.edu-instructor-profile__sidebar-col {
    margin-top: -7rem;
}

.edu-instructor-profile__sidebar {
    border-radius: 0.5rem;
    position: sticky;
    top: calc(5.5rem + env(safe-area-inset-top, 0px));
    z-index: 2;
}

.edu-instructor-profile__avatar {
    border: 4px solid #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.edu-instructor-profile__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.35rem;
    border: 1px solid #c4b5fd;
    color: #6d28d9;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.edu-instructor-profile__social-btn:hover {
    background: #f5f3ff;
    border-color: #7c3aed;
    color: #5b21b6;
}

.edu-instructor-profile__details summary {
    list-style: none;
}

.edu-instructor-profile__details summary::-webkit-details-marker {
    display: none;
}

.edu-instructor-profile__summary {
    cursor: pointer;
    color: var(--edu-blog-accent, #5624d0);
    font-weight: 600;
    font-size: 0.875rem;
}

.edu-instructor-profile__summary:hover {
    text-decoration: underline;
}

.edu-instructor-profile__course-card {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.edu-instructor-profile__course-card:hover {
    border-color: #d8b4fe !important;
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.08);
}

@media (max-width: 991.98px) {
    .edu-instructor-profile__row {
        margin-top: 0;
    }

    .edu-instructor-profile__hero {
        padding-bottom: 2rem;
    }

    .edu-instructor-profile__sidebar-col {
        margin-top: 0;
        margin-bottom: 2rem;
        order: -1;
    }

    .edu-instructor-profile__sidebar {
        position: relative;
        top: auto;
    }
}

/* Slim breadcrumb bar with light illustrated wash (SVG), no hero title block */
.edu-blog-breadcrumb-strip {
    background-color: #f6f8fb;
    background-image: url("../img/blog/breadcrumb-strip-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Sidebar column: no outer “merged” box — each widget is its own panel below */
.edu-blog-sidebar-pro {
    background: transparent;
    padding: 0;
    min-width: 0;
}

.edu-blog-pro-sidebar-divider {
    border-color: rgba(0, 27, 68, 0.12) !important;
}

.edu-blog-pro-breadcrumb {
    font-size: 0.875rem;
}

.edu-blog-pro-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    color: #94a3b8;
}

.edu-blog-card-pro__shell {
    border-color: #e2e8f0 !important;
}

.edu-blog-card-pro__hero {
    min-height: 220px;
}

.edu-blog-card-pro__hero-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    min-height: 220px;
}

.edu-blog-card-pro__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 27, 68, 0.94) 0%, rgba(0, 27, 68, 0.42) 48%, rgba(0, 27, 68, 0.12) 100%);
    pointer-events: none;
}

.edu-blog-card-pro__hero-caption {
    padding-bottom: 1rem !important;
}

.edu-blog-card-pro__accent-bar {
    width: 5px;
    border-radius: 2px;
    background: var(--edu-blog-accent);
}

.edu-blog-card-pro__overlay-heading {
    font-size: clamp(0.95rem, 2.4vw, 1.35rem);
    letter-spacing: 0.05em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post meta: one horizontal row; icons inline with text (Flaticon defaults can stack lines) */
.edu-blog-card-pro__meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.edu-blog-card-pro__meta-part {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.edu-blog-card-pro__meta-part i[class*="flaticon"],
.edu-blog-card-pro__meta-icon {
    display: inline-block !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.edu-blog-card-pro__meta-icon {
    margin-right: 0;
    opacity: 0.88;
}

@media (max-width: 575.98px) {
    .edu-blog-card-pro__meta {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }
}

.edu-blog-card-pro__meta-sep {
    margin: 0;
    opacity: 0.45;
    flex-shrink: 0;
    user-select: none;
}

.edu-blog-card-pro__read-more {
    background-color: var(--edu-blog-accent);
    border: 1px solid var(--edu-blog-accent);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.edu-blog-card-pro__read-more:hover,
.edu-blog-card-pro__read-more:focus-visible {
    background-color: var(--edu-blog-accent-hover);
    border-color: var(--edu-blog-accent-hover);
    color: #fff !important;
}

/* Each sidebar block is its own rounded panel (not one merged column) */
.edu-blog-widget-panel {
    background: #f5f7fb;
    border: 1px solid rgba(0, 27, 68, 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem 1.15rem;
    margin-bottom: 1rem;
    min-width: 0;
    overflow: hidden;
}

.edu-blog-sidebar-pro > .edu-blog-widget-panel:last-child {
    margin-bottom: 0;
}

.edu-blog-widget-panel__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--edu-blog-accent);
}

.edu-blog-widget-panel__title .edu-blog-widget-panel__title-icon {
    color: var(--edu-blog-accent);
    opacity: 0.85;
}

.edu-blog-pro-input {
    background: #fff;
}

.edu-blog-pro-search-btn {
    color: #64748b;
}

.edu-blog-help-tile {
    background: #fff;
    border: 1px solid rgba(0, 27, 68, 0.12);
    color: var(--edu-blog-accent);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.edu-blog-help-tile:hover {
    background: #fff;
    border-color: var(--edu-blog-accent);
    color: var(--edu-blog-accent);
}

.edu-blog-help-tile__icon {
    font-size: 1.45rem;
    color: var(--edu-blog-accent);
    transition: color 0.2s ease;
}

.edu-blog-help-tile:hover .edu-blog-help-tile__icon {
    color: var(--edu-blog-accent-hover);
}

.edu-blog-help-tile__label {
    color: inherit;
}

.edu-blog-pro-cat-link {
    color: var(--edu-blog-accent);
}

.edu-blog-pro-cat-link:hover {
    color: var(--edu-blog-accent-hover);
}

.edu-blog-pro-cat-count {
    color: #64748b;
}

.edu-blog-pro-cat-list .edu-blog-pro-cat-item:last-child {
    border-bottom: none !important;
}

.edu-blog-pro-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 27, 68, 0.14);
    color: #475569;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.edu-blog-pro-tag:hover {
    border-color: var(--edu-blog-accent);
    color: var(--edu-blog-accent);
}

/* Latest posts row: flex child must shrink + wrap so titles never spill past the card */
.edu-blog-pro-pop-row {
    max-width: 100%;
}

.edu-blog-pro-pop-body {
    flex: 1 1 0%;
    min-width: 0;
}

.edu-blog-pro-pop-snippet {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--edu-blog-accent);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.edu-blog-pro-pop-more,
.edu-blog-pro-pop-title-link {
    color: var(--edu-blog-accent);
}

.edu-blog-pro-pop-more:hover,
.edu-blog-pro-pop-title-link:hover {
    color: var(--edu-blog-accent-hover);
}

.edu-blog-pro-pop-more {
    white-space: nowrap;
}

.edu-blog-sidebar-pro .edu-blog-pro-pop-row:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Single post: meta row aligns like index (theme list-wrap often stacks) */
.edu-blog-show-meta-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    list-style: none;
}

.edu-blog-show-meta-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #64748b;
}

.edu-blog-show-meta-list li i {
    display: inline-block;
    line-height: 1;
    flex-shrink: 0;
}

/* Flat UI: no box/text shadows (theme buttons, Bootstrap forms, tags, social icons, cards) */
html body *,
html body *::before,
html body *::after {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
}

/* Theme: course grid hover uses filter drop-shadow instead of box-shadow */
.courses__item:hover {
    filter: none !important;
}

/* Flat UI override: restore subtle shadows on Udemy-style course surfaces only */
html body .edu-udemy-list-card.card,
html body .edu-udemy-sidebar-card,
html body .edu-udemy-stats.card,
html body .edu-udemy-panel {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07) !important;
}

/* Blog ProBlogger overlay: readable white title on photo (overrides global text-shadow:none) */
html body .edu-blog-card-pro .edu-blog-card-pro__overlay-heading {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75) !important;
}

/* —— PYQ catalog (aligned with blog accent) —— */
.edu-pyq-hero-title {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.edu-pyq-hero-lead {
    max-width: 42rem;
}

.edu-pyq-stat-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 27, 68, 0.06);
    color: var(--edu-blog-accent);
    font-weight: 600;
}

.edu-pyq-card__shell {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.edu-pyq-card__shell:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 27, 68, 0.18) !important;
}

.edu-pyq-card__title {
    color: #0f172a;
}

.edu-pyq-card__title:hover {
    color: var(--edu-blog-accent);
}

.edu-pyq-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(0, 27, 68, 0.08);
    color: var(--edu-blog-accent);
}

.edu-pyq-chip--muted {
    background: #f1f5f9;
    color: #475569;
}

.edu-pyq-chip--year {
    background: #e0f2fe;
    color: #0369a1;
}

.edu-pyq-price {
    font-size: 1.25rem;
    color: var(--edu-blog-accent);
}

.edu-pyq-btn-solid {
    background: var(--edu-blog-accent);
    color: #fff !important;
    border: none;
    font-weight: 600;
}

.edu-pyq-btn-solid:hover {
    background: var(--edu-blog-accent-hover);
    color: #fff !important;
}

.edu-pyq-btn-outline {
    border: 1px solid var(--edu-blog-accent);
    color: var(--edu-blog-accent) !important;
    background: transparent;
    font-weight: 600;
}

.edu-pyq-btn-outline:hover {
    background: rgba(0, 27, 68, 0.06);
    color: var(--edu-blog-accent-hover) !important;
}

.edu-pyq-widget-panel {
    border-radius: 12px;
}

.edu-pyq-sidebar-link {
    color: #0f172a;
}

.edu-pyq-sidebar-link:hover {
    color: var(--edu-blog-accent);
}

.edu-pyq-show-title {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.edu-pyq-price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--edu-blog-accent);
}

.edu-pyq-back-link {
    color: var(--edu-blog-accent);
}

.edu-pyq-back-link:hover {
    color: var(--edu-blog-accent-hover);
}

.edu-pyq-show-about-heading {
    letter-spacing: 0.04em;
}

.edu-pyq-summary br {
    line-height: 1.75;
}

/* PYQ shop catalog — e-commerce style listing */
.edu-pyq-index--shop {
    background: #fff;
}

.edu-pyq-shop-panel__heading {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.6875rem !important;
}

.edu-pyq-browse-list__item {
    margin-bottom: 0.35rem;
}

.edu-pyq-browse-list__link {
    display: block;
    padding: 0.35rem 0;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 2px solid transparent;
}

.edu-pyq-browse-list__link:hover {
    color: var(--edu-blog-accent);
}

.edu-pyq-browse-list__link.is-active {
    color: var(--edu-blog-accent);
    font-weight: 700;
    border-bottom-color: var(--edu-blog-accent);
}

.edu-pyq-filter-accordion .accordion-item {
    background: transparent;
}

.edu-pyq-filter-accordion__btn {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: transparent !important;
}

.edu-pyq-filter-accordion__btn:not(.collapsed) {
    color: var(--edu-blog-accent) !important;
}

.edu-pyq-filter-accordion .accordion-button::after {
    filter: opacity(0.55);
}

.edu-pyq-filter-accordion .accordion-body {
    padding-top: 0 !important;
}

.edu-pyq-shop-count {
    color: #64748b;
}

.edu-pyq-shop-count__num {
    font-weight: 700;
    color: #0f172a;
}

.edu-pyq-sort-select {
    min-width: 11.5rem;
    border-color: rgba(0, 27, 68, 0.18);
    font-size: 0.8125rem;
}

.edu-pyq-product-card__shell {
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.edu-pyq-product-card__shell:hover {
    border-color: rgba(0, 27, 68, 0.22) !important;
    transform: translateY(-3px);
}

.edu-pyq-product-card__thumb {
    background: linear-gradient(
        145deg,
        hsl(var(--edu-pyq-hue, 210), 42%, 93%) 0%,
        hsl(calc(var(--edu-pyq-hue, 210) + 38), 38%, 88%) 100%
    );
}

.edu-pyq-product-card__thumb-icon {
    font-size: 2.75rem;
    color: rgba(0, 27, 68, 0.35);
}

.edu-pyq-product-card__badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.55rem;
    border-radius: 0.25rem;
    background: var(--edu-blog-accent);
    color: #fff;
}

.edu-pyq-product-card__title-link {
    font-weight: 700;
    color: #0f172a !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edu-pyq-product-card__title-link:hover {
    color: var(--edu-blog-accent) !important;
}

.edu-pyq-product-card__divider {
    width: 2rem;
    height: 1px;
    background: rgba(15, 23, 42, 0.15);
}

.edu-pyq-product-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #64748b;
}

.edu-pyq-product-card__actions {
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .edu-pyq-shop-toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .edu-pyq-sort-form {
        justify-content: space-between;
    }
}

/* List pagination (PYQ, blog, courses): controls first, range summary centered underneath */
.edu-pagination-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.edu-pagination-footer__nav {
    width: 100%;
}

.edu-pagination-footer__nav .pagination {
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.edu-pagination-footer__nav .page-link {
    min-width: 2.5rem;
    text-align: center;
    border-color: transparent;
    background: transparent;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--edu-blog-accent);
}

.edu-pagination-footer__nav .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(0, 27, 68, 0.06);
    border-color: transparent;
    color: var(--edu-blog-accent-hover);
}

.edu-pagination-footer__nav .page-item.disabled .page-link {
    color: #94a3b8;
    background: transparent;
}

.edu-pagination-footer__nav .page-item.active .page-link {
    box-shadow: 0 1px 2px rgba(0, 27, 68, 0.12);
}

.edu-pagination-footer__summary {
    text-align: center;
    letter-spacing: 0.01em;
}

.edu-pagination-footer__range,
.edu-pagination-footer__total {
    font-weight: 700;
    color: #0f172a;
}

/* —— Course catalog (/courses): grid alignment, full-bleed thumbs, framed crops —— */
.edu-catalog-courses {
    --edu-catalog-thumb-ratio: 16 / 9;
}

@media (min-width: 992px) {
    .edu-catalog-courses__sidebar-inner {
        position: sticky;
        top: calc(5.5rem + env(safe-area-inset-top, 0px));
        z-index: 2;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }
}

.edu-catalog-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: var(--tg-common-color-white);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.edu-catalog-course-card:hover {
    border-color: rgba(0, 27, 68, 0.28);
}

.edu-catalog-course-card__media {
    position: relative;
    aspect-ratio: var(--edu-catalog-thumb-ratio);
    background: #f1f5f9;
    overflow: hidden;
}

.edu-catalog-course-card__thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.edu-catalog-course-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

.edu-catalog-course-card__tag {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--edu-blog-accent);
    color: #fff;
    line-height: 1.2;
    pointer-events: none;
}

.edu-catalog-course-card__body {
    padding: 1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.edu-catalog-course-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
}

.edu-catalog-course-card__title a {
    color: inherit;
}

.edu-catalog-course-card__title a:hover {
    color: var(--edu-blog-accent);
}

.edu-catalog-course-card__price {
    font-size: 1.125rem;
    color: #0f172a;
}

/* Unified breadcrumb strip — cross-links between Courses ↔ PYQ's */
.edu-site-breadcrumb-crosslinks__a {
    color: var(--edu-blog-accent);
    font-weight: 600;
}

.edu-site-breadcrumb-crosslinks__a:hover {
    color: var(--edu-blog-accent-hover);
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* —— Udemy-style course catalog list + course landing —— */
/* Courses sidebar: full Udemy-style filters — desktop always visible; mobile collapsible */
@media (min-width: 992px) {
    .edu-catalog-sidebar-filters.collapse {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
    }
}

.edu-udemy-filter-panel {
    border: 1px solid #d1d7dc;
    border-radius: 0.5rem;
    background: #fff;
}

.edu-udemy-filter-mobile-toggle {
    border: 1px solid #d1d7dc;
    background: #fff;
    color: #1c1d1f;
    border-radius: 0.35rem;
    padding: 0.65rem 1rem;
}

.edu-udemy-filter-mobile-toggle:hover {
    border-color: var(--edu-blog-accent);
    color: var(--edu-blog-accent);
}

.edu-udemy-filter-accordion .accordion-button {
    font-size: 0.875rem;
    box-shadow: none !important;
    background: transparent;
    color: #1c1d1f;
    padding-left: 0;
    padding-right: 0;
}

.edu-udemy-filter-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #1c1d1f;
}

.edu-udemy-filter-accordion .accordion-button::after {
    margin-left: auto;
}

.edu-udemy-filter-accordion .accordion-item {
    background: transparent;
}

.edu-udemy-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.edu-udemy-filter-option .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.edu-udemy-filter-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.edu-udemy-catalog-toolbar {
    border-color: #e2e8f0 !important;
}

.edu-udemy-catalog-sort {
    min-width: 12rem;
    border-radius: 0.25rem;
}

.edu-udemy-filter-apply {
    background: var(--edu-blog-accent);
    color: #fff;
    border: none;
    font-weight: 600;
}

.edu-udemy-filter-apply:hover {
    background: var(--edu-blog-accent-hover);
    color: #fff;
}

.edu-udemy-list-card__thumb-wrap {
    background: #0f172a;
}

.edu-udemy-list-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.edu-udemy-list-card__title:hover {
    color: var(--edu-blog-accent);
}

.edu-udemy-cta-outline {
    border-color: var(--edu-blog-accent);
    color: var(--edu-blog-accent);
    font-weight: 600;
}

.edu-udemy-cta-outline:hover {
    background: var(--edu-blog-accent);
    color: #fff;
}

.edu-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    flex-wrap: wrap;
    vertical-align: middle;
}

.edu-star-rating__on {
    color: #f69c2d;
    font-size: 0.82rem;
}

.edu-star-rating__off {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.edu-star-rating__num {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    color: #0f172a;
}

.edu-star-rating__count {
    margin-left: 0.15rem;
}

.edu-udemy-hero {
    background: #1c1d1f;
    padding-bottom: 11rem;
}

.edu-udemy-muted-light {
    color: rgba(255, 255, 255, 0.88);
}

.edu-udemy-muted-dim {
    color: rgba(255, 255, 255, 0.62);
}

.edu-udemy-breadcrumb__link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.edu-udemy-breadcrumb__link:hover {
    color: #fff;
    text-decoration: underline;
}

.edu-udemy-breadcrumb__sep {
    opacity: 0.55;
    margin: 0 0.35rem;
}

.edu-udemy-hero__title {
    color: #fff;
    letter-spacing: -0.02em;
}

.edu-udemy-hero__accent-link {
    color: #d6d9ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.edu-udemy-hero__accent-link:hover {
    color: #fff;
}

.edu-udemy-body {
    background: #fff;
}

.edu-udemy-body__row {
    margin-top: -10rem;
}

@media (max-width: 991.98px) {
    .edu-udemy-hero {
        padding-bottom: 2.5rem;
    }

    .edu-udemy-body__row {
        margin-top: 0;
    }
}

.edu-udemy-stats {
    border-radius: 0.35rem;
    border: 1px solid #e5e7eb !important;
}

.edu-udemy-stats__badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.55rem;
    border-radius: 0.25rem;
}

.edu-udemy-stats__badge--accent {
    background: #f3e8ff;
    color: #6b21a8;
}

.edu-udemy-inline-link {
    color: var(--edu-blog-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.edu-udemy-panel {
    border: 1px solid #d1d7dc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: #fff;
}

.edu-udemy-learn .edu-udemy-check {
    color: #1c1d1f;
    font-size: 0.85rem;
}

.edu-udemy-includes li {
    font-size: 0.9375rem;
    color: #374151;
}

.edu-udemy-accordion .accordion-button {
    font-size: 0.95rem;
    box-shadow: none !important;
}

.edu-udemy-accordion .accordion-item {
    border-color: #e5e7eb;
}

.edu-udemy-lesson-list .list-group-item {
    font-size: 0.875rem;
    border-color: #f1f5f9;
}

.edu-udemy-preview-pill {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--edu-blog-accent);
}

.edu-udemy-topic-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #d1d7dc;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1c1d1f;
    text-decoration: none;
}

.edu-udemy-topic-pill:hover {
    border-color: var(--edu-blog-accent);
    color: var(--edu-blog-accent);
}

.edu-udemy-description {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #374151;
}

.edu-udemy-instructor-photo {
    border-color: #e5e7eb !important;
}

.edu-udemy-rating-big {
    font-size: 2.75rem;
    line-height: 1;
    color: #1c1d1f;
}

.scroll-margin {
    scroll-margin-top: 6rem;
}

.edu-udemy-sidebar {
    top: calc(5.5rem + env(safe-area-inset-top, 0px));
    z-index: 3;
}

.edu-udemy-sidebar-card {
    border-radius: 0.35rem;
    overflow: hidden;
    border: 1px solid #d1d7dc !important;
}

.edu-udemy-preview-wrap {
    position: relative;
}

.edu-udemy-preview-iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.edu-udemy-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.edu-udemy-cta {
    background: #5624d0;
    color: #fff !important;
    border: none;
    border-radius: 0.25rem;
}

.edu-udemy-cta:hover {
    background: #401b9c;
    color: #fff !important;
}

.edu-udemy-discount-badge {
    background: #eceb98;
    color: #3d3c0a;
    font-weight: 700;
    font-size: 0.75rem;
}

.edu-udemy-related__thumb {
    background: #f1f5f9;
}

.edu-udemy-related__thumb-wrap {
    background: #0f172a;
    border-radius: 0;
    overflow: hidden;
}

.edu-udemy-related__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.edu-udemy-related.card {
    overflow: hidden;
}

.edu-instructor-profile__course-card .edu-udemy-related__thumb-wrap {
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 992px) {
    .edu-udemy-list-card .col-lg-3 {
        max-width: 260px;
    }
}

/* Static / legal policy pages — centered readable column, title + body aligned */
.edu-legal-page {
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 14rem);
}

.edu-legal-page__container {
    max-width: 1140px;
}

.edu-legal-page__shell {
    max-width: 48rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.edu-legal-page__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.edu-legal-page__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.25;
}

.edu-site-static .edu-legal-prose {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.edu-legal-page__shell .edu-legal-prose--document {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: start;
}

.edu-legal-prose--document > :last-child {
    margin-bottom: 0 !important;
}

.edu-legal-prose h2 {
    color: #0f172a;
}

.edu-legal-prose--document p,
.edu-legal-prose--document li {
    font-size: 1rem;
}

.edu-legal-prose--document ol,
.edu-legal-prose--document ul {
    padding-left: 1.25rem;
}

.edu-legal-prose--document ol li::marker,
.edu-legal-prose--document ul li::marker {
    color: #64748b;
}

.edu-legal-prose--document a {
    color: var(--edu-blog-accent);
    text-underline-offset: 0.15em;
}

.edu-legal-prose--document a:hover {
    color: var(--edu-blog-accent-hover);
}

.edu-faq-accordion .accordion-button {
    font-weight: 600;
    color: #0f172a;
}

.edu-faq-accordion .accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: var(--edu-blog-accent);
}

.edu-faq-accordion .accordion-body {
    padding-top: 0.75rem;
}

/* —— Contact page — light hero (matches blog / legal strips) —— */
.edu-contact-hero {
    --edu-contact-ink: #0f172a;
    background: #f6f8fb;
    min-height: auto;
}

@media (min-width: 992px) {
    .edu-contact-hero-inner {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .edu-about-hero-inner {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

.edu-contact-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 70% at 12% 18%, rgba(29, 107, 245, 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 65% 55% at 88% 35%, rgba(29, 107, 245, 0.05) 0%, transparent 52%);
    pointer-events: none;
}

.edu-contact-hero__eyebrow {
    letter-spacing: 0.12em;
    color: var(--edu-blog-accent, #1d6bf5);
}

.edu-contact-hero__title {
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0f172a;
}

.edu-contact-hero__lead {
    max-width: 40rem;
    color: #64748b;
}

.edu-contact-pill {
    background: #fff !important;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.edu-contact-main {
    margin-top: 0;
    position: relative;
    z-index: 1;
    background: #fff;
}

.edu-founder-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.edu-founder-panel__photo-wrap {
    aspect-ratio: 4 / 5;
    background: #0f172a;
}

.edu-founder-panel__img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.edu-founder-panel__photo-gradient {
    height: 55%;
    background: linear-gradient(to top, rgba(6, 20, 36, 0.92) 0%, transparent 100%);
    pointer-events: none;
}

.edu-founder-panel__photo-caption {
    z-index: 2;
}

.edu-founder-panel__quote {
    border-left: 4px solid var(--edu-blog-accent, #1d6bf5);
    padding-left: 1.25rem;
    margin-left: 0.1rem;
}

.edu-contact-channel {
    background: #fff;
    border: 1px solid #e8eef4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.edu-contact-channel:hover {
    border-color: rgba(29, 107, 245, 0.45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.edu-contact-channel--static {
    cursor: default;
}

.edu-contact-channel__icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(145deg, #f1f5f9 0%, #e8eef8 100%);
    color: var(--edu-blog-accent, #1d6bf5);
    font-size: 1.15rem;
}

.edu-contact-form-card {
    border: 1px solid #e8eef4 !important;
}

.edu-contact-form .form-control:focus {
    border-color: rgba(29, 107, 245, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(29, 107, 245, 0.12);
}

/* —— About page — light overview, minimal chrome —— */
.edu-about-hero {
    background: #f6f8fb;
    position: relative;
}

.edu-about-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 70% at 12% 18%, rgba(29, 107, 245, 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 88% 35%, rgba(29, 107, 245, 0.05) 0%, transparent 52%);
    pointer-events: none;
}

.edu-about-hero__eyebrow {
    letter-spacing: 0.12em;
    color: var(--edu-blog-accent, #1d6bf5);
}

.edu-about-hero__title {
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
}

.edu-about-hero__lead {
    max-width: 42rem;
}

.edu-about-body {
    background: #fff;
}

.edu-about-section-label {
    letter-spacing: 0.06em;
}

/* Founder portrait — fixed-size circular avatar inside a light card (About page) */
.edu-about-founder__card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1.25rem 1.75rem;
    text-align: center;
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%);
    border: 1px solid #e8eef4;
    border-radius: 1.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .edu-about-founder__card {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
}

.edu-about-founder__avatar-wrap {
    display: flex;
    justify-content: center;
}

.edu-about-founder__avatar {
    position: relative;
    width: min(240px, 72vw);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #e8eef8 0%, #f1f5f9 100%);
    box-shadow:
        0 0 0 4px #fff,
        0 0 0 5px #e2e8f0,
        0 10px 28px rgba(15, 23, 42, 0.12);
}

@media (min-width: 992px) {
    .edu-about-founder__avatar {
        width: min(220px, 100%);
    }
}

.edu-about-founder__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.edu-about-founder__name {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.edu-about-founder__quote {
    border-color: var(--edu-blog-accent, #1d6bf5) !important;
}

/* Full-viewport-width band: founder quote sits outside the narrow content column */
.edu-about-founder-quote-band {
    width: 100%;
    margin: 0;
    background: linear-gradient(165deg, #f5f3ff 0%, #eef2ff 48%, #e8ecf8 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.edu-about-founder-quote-band .container {
    position: relative;
}

.edu-about-founder__quote--full {
    position: relative;
    border-color: #0f172a !important;
    border-left-width: 6px !important;
    padding-right: 3.25rem !important;
    background: transparent;
}

.edu-about-founder__quote--full::before {
    content: "\201C";
    position: absolute;
    top: 0.5rem;
    right: 0.35rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 10vw, 4.25rem);
    line-height: 1;
    color: rgba(29, 107, 245, 0.18);
    pointer-events: none;
}

@media (min-width: 992px) {
    .edu-about-founder__quote--full {
        padding-left: 1.75rem !important;
        padding-right: 4rem !important;
    }
}

.edu-about-mv {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.edu-about-yt {
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.06);
}

.edu-about-stat {
    background: #f8fafc;
    border: 1px solid #e8eef4;
}

.edu-about-stat__value {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.edu-about-stat__label {
    margin-top: 0.35rem;
}

.edu-about-inline-link {
    color: var(--edu-blog-accent, #1d6bf5);
}

.edu-about-inline-link:hover {
    color: var(--edu-blog-accent-hover, #155dcf);
}

/* —— Homepage — hero (full-width carousel + overlays) —— */
.edu-home-hero--carousel {
    --edu-hero-font: 'Plus Jakarta Sans', var(--tg-heading-font-family, 'Poppins', system-ui), sans-serif;
    --edu-hero-ease: cubic-bezier(0.4, 0, 0.2, 1);
    background: #0c1929;
}

.edu-home-hero__viewport {
    position: relative;
    isolation: isolate;
    min-height: min(86vh, 880px);
}

.edu-home-hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.edu-home-hero-swiper .swiper-wrapper,
.edu-home-hero-swiper .swiper-slide {
    height: 100%;
}

.edu-home-hero-slide {
    position: relative;
    overflow: hidden;
}

.edu-home-hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lighter treatment: strong readability on the copy side, photo visible toward the opposite edge */
.edu-home-hero-slide__copy {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.edu-home-hero-slide__copy .container {
    pointer-events: auto;
}

.edu-home-hero-slide__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(8, 24, 52, 0.78) 0%,
        rgba(8, 24, 52, 0.4) 42%,
        rgba(8, 24, 52, 0.12) 64%,
        rgba(8, 24, 52, 0.05) 100%
    );
}

@media (max-width: 767.98px) {
    .edu-home-hero-slide__scrim {
        background: linear-gradient(
            180deg,
            rgba(8, 24, 52, 0.82) 0%,
            rgba(8, 24, 52, 0.46) 52%,
            rgba(8, 24, 52, 0.26) 100%
        );
    }
}

.edu-home-hero__inner {
    font-family: var(--edu-hero-font);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: min(86vh, 880px);
    padding-top: clamp(2rem, 6vw, 3.5rem);
    padding-bottom: clamp(4rem, 10vw, 6.5rem);
}

@media (max-width: 991.98px) {
    .edu-home-hero__viewport {
        min-height: min(90vh, 800px);
    }

    .edu-home-hero__inner {
        min-height: min(90vh, 800px);
    }
}

.edu-home-hero--carousel .edu-home-hero__badge {
    margin-bottom: 1.25rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.edu-home-hero--carousel .edu-home-hero__badge i {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.9rem;
}

.edu-home-hero__title {
    margin: 0 0 1.125rem;
    max-width: min(36rem, 100%);
    font-family: var(--edu-hero-font);
    font-size: clamp(2.125rem, 4.6vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
}

.edu-home-hero__tagline {
    margin: 0 0 1.35rem;
    max-width: min(36rem, 100%);
    font-family: var(--edu-hero-font);
    font-size: clamp(1.125rem, 2.2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
    text-wrap: balance;
}

.edu-home-hero__lead {
    margin: 0 0 2rem;
    max-width: min(34rem, 100%);
    font-family: var(--edu-hero-font);
    font-size: clamp(0.9875rem, 1.35vw, 1.125rem);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.88);
}

.edu-home-hero__cta-row {
    gap: 0.85rem 1rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .edu-home-hero__cta-row {
        gap: 1rem 1.15rem;
    }
}

.edu-home-hero__cta-row .btn-lg {
    border-radius: 999px;
    padding-left: 1.65rem !important;
    padding-right: 1.65rem !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    font-family: var(--edu-hero-font);
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.edu-home-hero--carousel .edu-home-hero__cta-primary {
    border: none;
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.35),
        0 12px 28px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.2s var(--edu-hero-ease),
        box-shadow 0.2s var(--edu-hero-ease),
        filter 0.2s var(--edu-hero-ease);
}

.edu-home-hero--carousel .edu-home-hero__cta-primary:hover {
    border: none;
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.45),
        0 16px 36px rgba(0, 0, 0, 0.22);
}

.edu-home-hero--carousel .edu-home-hero__cta-primary-icon {
    font-size: 0.82em;
    opacity: 0.88;
    font-weight: 600;
    transition: transform 0.2s var(--edu-hero-ease);
}

.edu-home-hero--carousel .edu-home-hero__cta-primary:hover .edu-home-hero__cta-primary-icon {
    transform: translateX(3px);
}

.edu-home-hero--carousel .edu-home-hero__cta-secondary {
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, 0.42);
    color: rgba(255, 255, 255, 0.96) !important;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.edu-home-hero--carousel .edu-home-hero__cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff !important;
}

.edu-home-hero__viewport .edu-home-hero__pagination.swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.35rem;
    z-index: 7;
}

.edu-home-hero__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.edu-home-hero__pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 26px;
    border-radius: 999px;
}

.edu-home-hero__nav {
    z-index: 7;
    width: 3rem;
    height: 3rem;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff !important;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.edu-home-hero__nav::after {
    font-size: 0.85rem !important;
    font-weight: 700;
}

.edu-home-hero__nav:hover {
    background: rgba(255, 255, 255, 0.26) !important;
}

.edu-home-hero__nav--prev {
    left: 1rem !important;
}

.edu-home-hero__nav--next {
    right: 1rem !important;
}

@media (max-width: 767.98px) {
    .edu-home-hero__nav {
        display: none;
    }
}

.edu-home-hero__strip {
    margin-top: 0;
}

.edu-home-hero__strip--light {
    background: #f8fafc;
    border-color: #e2e8f0 !important;
    color: #0f172a;
}

.edu-home-hero__strip--light .edu-home-hero__feature-title {
    color: #0f172a;
}

.edu-home-hero__strip--light .edu-home-hero__feature-text {
    color: #64748b;
}

.edu-home-hero__feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.65rem;
    background: rgba(0, 27, 68, 0.08);
    color: var(--tg-theme-primary);
    font-size: 1.15rem;
}

.edu-home-hero__feature-title {
    font-size: 0.98rem;
}

.edu-home-hero__feature-text {
    display: block;
    margin-top: 0.2rem;
    line-height: 1.45;
}

.edu-home-section--muted {
    background: #fafbfc;
}

.edu-home-see-all {
    color: var(--edu-blog-accent, #1d6bf5);
    font-size: 0.95rem;
}

.edu-home-see-all:hover {
    color: var(--edu-blog-accent-hover, #155dcf);
}

.edu-home-course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-home-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12) !important;
}

.edu-home-course-card .edu-home-course-card__thumb-link {
    display: block;
}

.edu-home-pyq-card {
    border-color: #e8eef4 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-home-pyq-card:hover {
    border-color: rgba(29, 107, 245, 0.35) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.edu-home-instructor {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.edu-home-instructor:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

.edu-home-teach {
    background: linear-gradient(180deg, #eef3fb 0%, #ffffff 72%);
}

/* —— Home: category discovery grid —— */
/* Replaces theme section-py-120 here + on Popular (was ~120px + ~120px between sections). */
.edu-home-categories-section {
    padding-top: 3.25rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .edu-home-categories-section {
        padding-top: 3.75rem;
        padding-bottom: 2.5rem;
    }
}

.edu-home-popular {
    padding-top: 2.25rem;
    padding-bottom: 4rem;
}

@media (min-width: 992px) {
    .edu-home-popular {
        padding-top: 2.75rem;
        padding-bottom: 5rem;
    }
}

.edu-home-categories-section__eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    color: #64748b;
}

.edu-home-categories-section__intro {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 40rem;
}

/* Solid CTA — avoids theme outline-primary resolving to dark-on-dark */
.edu-home-categories-section__all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: var(--tg-theme-primary) !important;
    border: 1px solid var(--tg-theme-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 27, 68, 0.22);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-home-categories-section__all-link:hover {
    background: #002451 !important;
    border-color: #002451 !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0, 27, 68, 0.28);
}

.edu-home-categories-section__all-link-icon {
    color: rgba(255, 255, 255, 0.92);
}

.edu-home-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem 1.25rem 1.35rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.edu-home-category-card:hover {
    border-color: rgba(0, 27, 68, 0.35);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
    color: inherit;
}

.edu-home-category-card:focus-visible {
    outline: 3px solid rgba(0, 27, 68, 0.35);
    outline-offset: 3px;
}

.edu-home-category-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--tg-theme-primary);
    background: rgba(0, 27, 68, 0.08);
    flex-shrink: 0;
}

.edu-home-categories-section .col:nth-child(6n + 2) .edu-home-category-card__icon {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.edu-home-categories-section .col:nth-child(6n + 3) .edu-home-category-card__icon {
    background: rgba(14, 116, 144, 0.12);
    color: #0e7490;
}

.edu-home-categories-section .col:nth-child(6n + 4) .edu-home-category-card__icon {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

.edu-home-categories-section .col:nth-child(6n + 5) .edu-home-category-card__icon {
    background: rgba(180, 83, 9, 0.12);
    color: #b45309;
}

.edu-home-categories-section .col:nth-child(6n + 6) .edu-home-category-card__icon {
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.edu-home-category-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}

.edu-home-category-card__name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.edu-home-category-card:hover .edu-home-category-card__name {
    color: var(--tg-theme-primary);
}

.edu-home-category-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

.edu-home-category-card:hover .edu-home-category-card__cta {
    color: var(--tg-theme-primary);
}

.edu-home-category-card__arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.edu-home-category-card:hover .edu-home-category-card__arrow {
    transform: translateX(4px);
}

/* —— Student workspace (panel + course player) —— */
.edu-student-body .main-area {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 32%);
}

.edu-student-panel {
    --edu-quiz-accent: #b45309;
}

.edu-student-hero {
    background: transparent;
}

.edu-student-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, #001b44 0%, #1e3a5f 42%, #2563eb 120%);
    opacity: 1;
}

.edu-student-hero .card-body {
    position: relative;
    z-index: 1;
}

.edu-student-hero__avatar-placeholder {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.2);
}

.edu-student-sidebar .edu-student-nav .nav-link {
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #334155;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.edu-student-sidebar .edu-student-nav .nav-link:hover {
    background: rgba(0, 27, 68, 0.06);
    color: var(--tg-theme-primary);
}

.edu-student-sidebar .edu-student-nav .nav-link.active {
    background: rgba(0, 27, 68, 0.1);
    color: var(--tg-theme-primary);
}

.edu-student-sidebar .edu-student-logout:hover {
    color: #b91c1c !important;
}

.edu-student-stat .edu-student-stat__icon {
    font-size: 1.35rem;
}

.edu-student-btn-primary {
    background: var(--tg-theme-primary);
    border-color: var(--tg-theme-primary);
    color: #fff !important;
}

.edu-student-btn-primary:hover {
    background: #002451;
    border-color: #002451;
    color: #fff !important;
}

.edu-student-table thead th {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.edu-student-thumb-wrap {
    width: 96px;
    height: 64px;
    border-radius: 0.5rem;
}

.edu-student-course-card__thumb {
    min-height: 180px;
    background: #f1f5f9;
}

@media (min-width: 576px) {
    .edu-student-course-card__thumb {
        min-height: 100%;
    }
}

.edu-course-player__toc .list-group-item {
    border-left: 0;
    border-right: 0;
}

.edu-course-player__lesson-ico {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

/* Course learn hub — full-width hero + curriculum (student_layout full) */
.edu-course-player--full .edu-course-player__hero-slab {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 42%, #0c4a6e 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.edu-course-player__hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.edu-course-player__hero-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.edu-course-player__hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
}

.edu-course-player__hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

.edu-course-player__hero-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.55;
}

.edu-course-player__hero-meta {
    color: rgba(255, 255, 255, 0.82);
}

.edu-course-player__hero-thumb {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    .edu-course-player__hero-thumb {
        max-width: 320px;
    }
}

.edu-course-player__toc.sticky-lg-top {
    top: 1rem;
    z-index: 2;
}

.edu-course-player__toc-scroll {
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.edu-course-player__preview-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 27, 68, 0.08);
    color: var(--tg-theme-primary);
}

.edu-course-player__outcome-check {
    color: #15803d;
}

.edu-course-player__start-panel {
    min-height: 280px;
}

.edu-lesson-view .tg-typography-default img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .edu-student-sidebar {
        margin-bottom: 1rem;
    }

    .edu-student-sidebar .card-body {
        padding-bottom: 0.5rem !important;
    }

    .edu-student-sidebar .edu-student-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .edu-student-sidebar .edu-student-nav .nav-item {
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
    }

    .edu-student-sidebar .edu-student-nav .nav-link {
        text-align: center;
        font-size: 0.8125rem;
        padding: 0.5rem 0.35rem;
    }

    .edu-student-sidebar .text-uppercase {
        width: 100%;
        flex-basis: 100%;
        margin-top: 0.75rem !important;
    }
}

/* —— Instructor workspace —— */
.edu-instructor-body .main-area {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 32%);
}

.edu-instructor-panel {
    --edu-instructor-accent: #0f766e;
}

.edu-instructor-hero {
    background: transparent;
}

.edu-instructor-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, #0f766e 0%, #115e59 38%, #001b44 115%);
    opacity: 1;
}

.edu-instructor-hero .card-body {
    position: relative;
    z-index: 1;
}

.edu-instructor-hero__avatar-placeholder {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.2);
}

.edu-instructor-sidebar .edu-instructor-nav .nav-link {
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #334155;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.edu-instructor-sidebar .edu-instructor-nav .nav-link:hover {
    background: rgba(15, 118, 110, 0.08);
    color: var(--tg-theme-primary);
}

.edu-instructor-sidebar .edu-instructor-nav .nav-link.active {
    background: rgba(15, 118, 110, 0.12);
    color: var(--tg-theme-primary);
}

.edu-instructor-logout:hover {
    color: #b91c1c !important;
}

.edu-instructor-btn-primary {
    background: var(--tg-theme-primary);
    border-color: var(--tg-theme-primary);
    color: #fff !important;
}

.edu-instructor-btn-primary:hover {
    background: #002451;
    border-color: #002451;
    color: #fff !important;
}

.edu-instructor-table thead th {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.edu-instructor-kpi .card-body {
    padding: 1.15rem 1.25rem;
}

@media (max-width: 991.98px) {
    .edu-instructor-sidebar {
        margin-bottom: 1rem;
    }

    .edu-instructor-sidebar .card-body {
        padding-bottom: 0.5rem !important;
    }

    .edu-instructor-sidebar .edu-instructor-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .edu-instructor-sidebar .edu-instructor-nav .nav-item {
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
    }

    .edu-instructor-sidebar .edu-instructor-nav .nav-link {
        text-align: center;
        font-size: 0.8125rem;
        padding: 0.5rem 0.35rem;
    }

    .edu-instructor-sidebar .text-uppercase {
        width: 100%;
        flex-basis: 100%;
        margin-top: 0.75rem !important;
    }
}
