/* ══════════════════════════════════════════
   NAV — Header, mega menu, mobile nav
   v2.0 — Fixed truncation + improved aesthetics
   ══════════════════════════════════════════ */

/* ── Header ── */
.cg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cg-border);
    height: var(--cg-nav-height);
}

.cg-header-inner {
    max-width: var(--cg-container-wide);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

/* ── Logo ── */
.cg-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cg-logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

/* ── Desktop Nav ── */
.cg-nav-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cg-nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-nav-menu > li {
    position: relative;
}

/* Top-level links */
.cg-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cg-navy);
    padding: 20px 16px;
    transition: color var(--cg-transition);
    white-space: nowrap;
}

.cg-nav-link:hover {
    color: var(--cg-orange);
}

/* Active item underline */
.cg-nav-current > .cg-nav-link,
.cg-nav-ancestor > .cg-nav-link {
    color: var(--cg-orange);
}

.cg-nav-current > .cg-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--cg-orange);
    border-radius: 3px 3px 0 0;
}

/* Dropdown arrow */
.cg-nav-arrow {
    opacity: 0.5;
    transition: transform 0.2s;
}

.cg-has-children:hover .cg-nav-arrow {
    transform: rotate(180deg);
}

/* ══════════════════════════════════════════
   MEGA MENU — Courses dropdown (4-column)
   ══════════════════════════════════════════ */
.cg-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    min-width: 720px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(27,45,79,0.15), 0 0 0 1px rgba(27,45,79,0.06);
    padding: 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    list-style: none;
    overflow: hidden;
}

/* === POSITION FIX: Courses (1st item) aligns left, others center === */
.cg-nav-menu > li:first-child > .cg-mega-menu {
    left: -20px;
    transform: translateY(8px);
}

.cg-nav-menu > li:not(:first-child) > .cg-mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    flex-direction: column;
}

/* Viewport overflow guard */
.cg-mega-menu {
    max-width: calc(100vw - 40px);
}

/* === Show on hover === */
.cg-has-children:hover > .cg-mega-menu {
    display: flex;
    flex-wrap: wrap;
    opacity: 1;
}

.cg-nav-menu > li:first-child:hover > .cg-mega-menu {
    transform: translateY(0);
}

.cg-nav-menu > li:not(:first-child):hover > .cg-mega-menu {
    transform: translateX(-50%) translateY(0);
}

/* === Mega menu header strip === */
.cg-mega-header {
    width: 100%;
    background: linear-gradient(135deg, var(--cg-navy) 0%, #243B66 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cg-mega-header-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.cg-mega-header-link {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.cg-mega-header-link:hover {
    color: #fff;
}

/* === Category columns (depth-1 groups) === */
.cg-mega-menu > li {
    flex: 1 1 25%;
    min-width: 170px;
    padding: 16px 8px 16px 8px;
    list-style: none;
}

/* Non-mega dropdowns (Free Resources etc.) */
.cg-nav-menu > li:not(:first-child) > .cg-mega-menu > li {
    flex: none;
    width: 100%;
    padding: 4px 8px;
}

/* === Category heading (non-clickable) — with colored accent === */
.cg-submenu-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    border-bottom: 2px solid transparent;
}

/* Category color coding */
.cg-mega-menu > li:nth-child(1) .cg-submenu-heading {
    color: var(--cg-blue);
    border-bottom-color: var(--cg-blue);
}

.cg-mega-menu > li:nth-child(2) .cg-submenu-heading {
    color: var(--cg-orange);
    border-bottom-color: var(--cg-orange);
}

.cg-mega-menu > li:nth-child(3) .cg-submenu-heading {
    color: var(--cg-green);
    border-bottom-color: var(--cg-green);
}

.cg-mega-menu > li:nth-child(4) .cg-submenu-heading {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

/* Simple dropdown heading (Free Resources etc.) */
.cg-nav-menu > li:not(:first-child) > .cg-mega-menu .cg-submenu-heading {
    color: var(--cg-text-muted);
    border-bottom-color: var(--cg-border-light);
}

/* === Sub-sub items (actual course/page links) === */
.cg-submenu-inner {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    list-style: none;
}

.cg-submenu-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--cg-text);
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: normal;
    line-height: 1.4;
    position: relative;
}

.cg-submenu-link:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 100%);
    color: var(--cg-navy);
    padding-left: 16px;
}

/* Price highlight in course name */
.cg-submenu-link .cg-mega-price {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--cg-green);
    margin-top: 1px;
}

/* Simple dropdown links (Free Resources) */
.cg-nav-menu > li:not(:first-child) .cg-submenu-link {
    padding: 10px 16px;
    font-size: 14px;
}

.cg-nav-menu > li:not(:first-child) .cg-submenu-link:hover {
    background: var(--cg-bg);
    padding-left: 20px;
}

/* === Scholarship banner (CGSAT link, full-width at bottom) === */
.cg-mega-banner {
    width: 100%;
    flex: 0 0 100%;
    padding: 0;
    margin: 0;
}

.cg-mega-banner > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--cg-navy);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.cg-mega-banner > a:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
    padding-left: 28px;
}

.cg-mega-banner > a .cg-mega-banner-icon {
    font-size: 18px;
    line-height: 1;
}

/* ── Nav Actions (Login/CTA) ── */
.cg-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cg-nav-action-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--cg-navy);
    padding: 8px 12px;
    transition: color var(--cg-transition);
}

.cg-nav-action-link:hover {
    color: var(--cg-orange);
}

.cg-nav-cta {
    background: var(--cg-orange);
    color: #fff;
    border-radius: var(--cg-radius-sm);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    transition: all var(--cg-transition);
}

.cg-nav-cta:hover {
    background: var(--cg-orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.cg-nav-cta-outline {
    background: transparent;
    color: var(--cg-text-light);
    border: 1px solid var(--cg-border);
}

.cg-nav-cta-outline:hover {
    border-color: var(--cg-orange);
    color: var(--cg-orange);
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* ── Hamburger ── */
.cg-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.cg-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cg-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cg-hamburger.active .cg-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cg-hamburger.active .cg-hamburger-line:nth-child(2) {
    opacity: 0;
}

.cg-hamburger.active .cg-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Nav Panel ── */
.cg-mobile-nav {
    display: none;
    position: fixed;
    top: var(--cg-nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cg-mobile-nav.active {
    display: block;
}

.cg-mobile-nav-inner {
    padding: 16px 20px 100px;
}

/* Mobile nav menu overrides */
.cg-mobile-nav .cg-nav-menu {
    flex-direction: column;
    gap: 0;
}

.cg-mobile-nav .cg-nav-link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--cg-border-light);
    width: 100%;
}

/* Mobile submenu — accordion style */
.cg-mobile-nav .cg-mega-menu {
    display: none;
    position: static;
    transform: none;
    min-width: auto;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    opacity: 1;
    flex-direction: column;
    background: transparent;
    max-width: none;
    overflow: visible;
}

.cg-mobile-nav .cg-has-children.open > .cg-mega-menu {
    display: flex;
}

.cg-mobile-nav .cg-mega-menu > li {
    padding: 4px 0;
    min-width: auto;
}

.cg-mobile-nav .cg-submenu-heading {
    padding: 8px 0;
    margin-top: 8px;
    font-size: 12px;
    border-bottom-color: var(--cg-border-light);
}

.cg-mobile-nav .cg-submenu-link {
    padding: 10px 0;
    font-size: 15px;
}

.cg-mobile-nav .cg-submenu-link:hover {
    padding-left: 8px;
    background: transparent;
}

.cg-mobile-nav .cg-submenu-inner {
    padding: 0 0 0 8px;
}

.cg-mobile-nav .cg-mega-banner > a {
    border-radius: 8px;
    margin: 8px 0;
}

/* Mobile nav actions */
.cg-mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cg-border);
}

.cg-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--cg-radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: all var(--cg-transition);
}

.cg-mobile-btn-primary {
    background: var(--cg-orange);
    color: #fff;
}

.cg-mobile-btn-primary:hover {
    background: var(--cg-orange-hover);
    color: #fff;
}

.cg-mobile-btn-outline {
    background: transparent;
    color: var(--cg-navy);
    border: 2px solid var(--cg-border);
}

.cg-mobile-btn-outline:hover {
    border-color: var(--cg-orange);
    color: var(--cg-orange);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cg-nav-desktop {
        display: none;
    }

    .cg-hamburger {
        display: flex;
    }

    .cg-nav-actions {
        margin-left: auto;
        gap: 8px;
    }

    /* Hide desktop login on mobile, mobile nav has its own */
    .cg-nav-action-link {
        display: none;
    }

    .cg-nav-cta {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cg-header-inner {
        padding: 0 12px;
        gap: 12px;
    }

    .cg-logo img {
        max-height: 36px;
    }

    .cg-nav-cta {
        padding: 7px 12px;
        font-size: 11px;
    }
}


/* ════════════════════════════════════════════
   MEGA MENU — PREMIUM REDESIGN (2026-06-10)
   Overrides the base mega-menu rules above.
   ════════════════════════════════════════════ */
.cg-nav-menu > li:first-child > .cg-mega-menu {
    min-width: 916px;
    padding: 18px;
    border-radius: 20px;
    gap: 6px;
    box-shadow: 0 28px 80px rgba(15,23,42,.20), 0 0 0 1px rgba(15,23,42,.05);
    align-items: stretch;
}
.cg-has-children:hover > .cg-mega-menu { align-items: stretch; }

/* ── FEATURED Saath-Saath card (first li = bare fusion link) ── */
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child {
    flex: 0 0 236px;
    min-width: 236px;
    padding: 0 0 56px;
    margin-right: 4px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(155deg, #1B2D4F 0%, #3B2E80 58%, #7C3AED 100%);
    box-shadow: 0 10px 30px rgba(124,58,237,.22);
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child::before {
    content: "\26A1 CLAT + BOARDS";
    position: absolute; top: 15px; left: 17px; z-index: 2;
    font-size: 10px; font-weight: 800; letter-spacing: .10em; color: #fff;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.30);
    padding: 4px 10px; border-radius: 999px;
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link {
    color: #fff !important; background: none !important; transform: none !important;
    font-size: 19px; font-weight: 800; line-height: 1.16;
    padding: 50px 18px 0 17px; border-radius: 0; white-space: normal; display: block;
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link::after {
    content: "Crack CLAT without losing your board % \2014 one integrated plan.";
    display: block; margin-top: 11px; font-size: 12.5px; font-weight: 500;
    color: rgba(255,255,255,.86); line-height: 1.46;
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link::before {
    content: "Explore fusion plans  \2192";
    position: absolute; left: 17px; bottom: 16px;
    font-size: 12px; font-weight: 800; color: #FF6B35; background: #fff;
    padding: 9px 14px; border-radius: 10px; transition: transform .16s ease;
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child:hover > .cg-submenu-link::before {
    transform: translateX(4px);
}

/* ── Group columns ── */
.cg-nav-menu > li:first-child > .cg-mega-menu > li {
    flex: 1 1 0; min-width: 156px; padding: 4px 6px 4px 12px;
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child { flex: 0 0 236px; }

/* ── Group headings: accent dot + clean underline (shifted to nth 2-5) ── */
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-heading {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
    padding: 4px 8px 9px; margin: 2px 0 7px; gap: 8px;
    border-bottom: 1.5px solid #eef1f6;
}
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-heading::before {
    content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: 0 0 7px;
}
.cg-nav-menu > li:first-child > .cg-mega-menu > li:nth-child(2) .cg-submenu-heading { color: #385DFF; border-bottom-color: #385DFF; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:nth-child(3) .cg-submenu-heading { color: #FF6B35; border-bottom-color: #FF6B35; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:nth-child(4) .cg-submenu-heading { color: #16A34A; border-bottom-color: #16A34A; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:nth-child(5) .cg-submenu-heading { color: #7C3AED; border-bottom-color: #7C3AED; }

/* ── Item links: name + price chip ── */
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-link {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    font-size: 13px; font-weight: 600; color: var(--cg-navy);
    padding: 8px 10px; border-radius: 10px; line-height: 1.28;
    transition: background .14s ease, transform .14s ease;
}
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-link:hover {
    background: #F5F3FF; color: #5B21B6; transform: translateX(3px); padding-left: 10px;
}
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-link .cg-mega-name { font-weight: 700; }
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-link .cg-mega-price {
    display: inline-block; font-size: 11px; font-weight: 800; color: #16A34A;
    background: #ECFDF5; padding: 2px 9px; border-radius: 999px; letter-spacing: .01em;
}
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-submenu-link:hover .cg-mega-price {
    background: #fff;
}

/* ── Bottom banner (CGSAT) → rounded card ── */
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-mega-banner { margin: 12px 0 0; padding: 0; }
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-mega-banner > a {
    border-radius: 13px; padding: 14px 20px; gap: 10px; font-size: 13.5px; font-weight: 800;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FED7AA; color: var(--cg-navy);
}
.cg-nav-menu > li:first-child > .cg-mega-menu .cg-mega-banner > a:hover {
    background: linear-gradient(135deg, #FFEDD5 0%, #FDBA74 100%); transform: translateY(-1px); padding-left: 20px;
}


/* Featured fusion card — clearance fix (2026-06-10) */
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child { min-height: 248px; padding-bottom: 64px; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link { font-size: 18px; padding-top: 46px; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link::after { margin-top: 9px; font-size: 12px; line-height: 1.42; }


/* Featured fusion card — flex fill so CTA anchors to card bottom (2026-06-10) */
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child { display: flex; flex-direction: column; min-height: 236px; padding-bottom: 0; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link { flex: 1 1 auto; position: relative; padding: 48px 18px 62px 17px; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link::after { margin-top: 10px; }
.cg-nav-menu > li:first-child > .cg-mega-menu > li:first-child > .cg-submenu-link::before { bottom: 18px; left: 17px; }


/* ════════════════════════════════════════════
   FREE RESOURCES — MEGA MENU (nth-child 2) (2026-06-10)
   ════════════════════════════════════════════ */
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu {
    min-width: 880px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    padding: 18px !important;
    border-radius: 20px;
    align-items: stretch;
    box-shadow: 0 28px 80px rgba(15,23,42,.20), 0 0 0 1px rgba(15,23,42,.05);
}
.cg-nav-menu > li:nth-child(2):hover > .cg-mega-menu { display: flex !important; }

/* featured "free" card */
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child {
    flex: 0 0 232px !important; min-width: 232px !important; width: 232px !important;
    display: flex; flex-direction: column; min-height: 236px;
    border-radius: 16px; overflow: hidden; position: relative; padding: 0 !important; margin-right: 4px;
    background: linear-gradient(155deg, #0E2A47 0%, #1D4ED8 55%, #06B6D4 100%);
    box-shadow: 0 10px 30px rgba(6,182,212,.24);
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child::before {
    content: "\1F381 100% FREE"; position: absolute; top: 15px; left: 17px; z-index: 2;
    font-size: 10px; font-weight: 800; letter-spacing: .09em; color: #fff;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.30); padding: 4px 10px; border-radius: 999px;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child > .cg-submenu-link {
    color: #fff !important; background: none !important; transform: none !important;
    flex: 1 1 auto; position: relative; font-size: 18px; font-weight: 800; line-height: 1.17;
    padding: 48px 18px 62px 17px !important; border-radius: 0; white-space: normal; display: block;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child > .cg-submenu-link::after {
    content: "New practice papers, RC sets & a current-affairs brief \2014 every single day, free.";
    display: block; margin-top: 10px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.88); line-height: 1.42;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child > .cg-submenu-link::before {
    content: "Explore free material  \2192"; position: absolute; left: 17px; bottom: 18px;
    font-size: 12px; font-weight: 800; color: #0E2A47; background: #fff; padding: 9px 14px; border-radius: 10px; transition: transform .16s;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child:hover > .cg-submenu-link::before { transform: translateX(4px); }

/* group columns */
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li {
    flex: 1 1 0 !important; min-width: 156px !important; width: auto !important; padding: 4px 6px 4px 12px !important;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child { flex: 0 0 232px !important; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu .cg-submenu-heading {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
    padding: 4px 8px 9px; margin: 2px 0 7px; gap: 8px; border-bottom: 1.5px solid #eef1f6;
    display: flex; align-items: center;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu .cg-submenu-heading::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: 0 0 7px; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:nth-child(2) .cg-submenu-heading { color: #2563EB; border-bottom-color: #2563EB; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:nth-child(3) .cg-submenu-heading { color: #FF6B35; border-bottom-color: #FF6B35; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:nth-child(4) .cg-submenu-heading { color: #7C3AED; border-bottom-color: #7C3AED; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:nth-child(5) .cg-submenu-heading { color: #16A34A; border-bottom-color: #16A34A; }

/* item links + Free chip */
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu .cg-submenu-link {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    font-size: 13px; font-weight: 600; color: var(--cg-navy);
    padding: 8px 10px !important; border-radius: 10px; line-height: 1.28; transition: background .14s, transform .14s;
}
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu .cg-submenu-link:hover { background: #EFF6FF !important; color: #1D4ED8; transform: translateX(3px); padding-left: 10px !important; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu .cg-submenu-link .cg-mega-name { font-weight: 700; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu .cg-submenu-link .cg-mega-price {
    display: inline-block; font-size: 10.5px; font-weight: 800; color: #16A34A; background: #ECFDF5; padding: 2px 9px; border-radius: 999px;
}

/* ════════════════════════════════════════════
   MOBILE — mega menu polish (both Courses + Free Resources)
   ════════════════════════════════════════════ */
.cg-mobile-nav .cg-mega-menu > li:first-child {
    min-height: auto !important; padding: 0 !important; margin: 0 0 10px !important;
    border-radius: 14px; overflow: hidden; flex: none !important; width: 100% !important;
    background: linear-gradient(135deg, #1B2D4F 0%, #5B21B6 60%, #7C3AED 100%);
}
.cg-mobile-nav .cg-has-children:nth-child(2) .cg-mega-menu > li:first-child {
    background: linear-gradient(135deg, #0E2A47 0%, #1D4ED8 60%, #06B6D4 100%);
}
.cg-mobile-nav .cg-mega-menu > li:first-child > .cg-submenu-link {
    color: #fff !important; padding: 16px 18px !important; font-size: 16px !important; font-weight: 800 !important;
    display: block !important; position: relative; flex: none !important;
}
.cg-mobile-nav .cg-mega-menu > li:first-child > .cg-submenu-link::after {
    display: block; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.85); line-height: 1.4;
}
.cg-mobile-nav .cg-mega-menu > li:first-child > .cg-submenu-link::before {
    position: static !important; display: inline-block; margin-top: 12px; left: auto; bottom: auto;
    background: #fff; padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 800;
}
.cg-mobile-nav .cg-mega-menu .cg-submenu-link { display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; }
.cg-mobile-nav .cg-mega-menu .cg-submenu-link .cg-mega-price {
    display: inline-block; font-size: 11px; font-weight: 800; color: #16A34A; background: #ECFDF5; padding: 2px 9px; border-radius: 999px;
}
.cg-mobile-nav .cg-submenu-heading {
    display: flex !important; align-items: center; gap: 8px; font-weight: 800 !important; letter-spacing: .07em;
}
.cg-mobile-nav .cg-submenu-heading::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--cg-orange); flex: 0 0 6px; }


/* Free Resources mega — position + single-row fix (2026-06-10) */
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu {
    min-width: 1020px !important;
    left: -250px !important;
    transform: translateY(8px) !important;
    flex-wrap: nowrap !important;
}
.cg-nav-menu > li:nth-child(2):hover > .cg-mega-menu { transform: translateY(0) !important; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li { min-width: 150px !important; }
.cg-nav-menu > li:nth-child(2) > .cg-mega-menu > li:first-child { flex: 0 0 224px !important; min-width: 224px !important; width: 224px !important; }
