    :root {
        /* Core colours */
        --primary: #b32121;
        --primary-dark: #630000;
        --accent: #fcbf49;
        --bg: #fafafa;
        --bg-alt: #ffffff;
        --section-bg: #ffffff;
        --card-bg: #ffffff;
        --card-border: rgba(0, 0, 0, 0.1);
        --section-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
        --text-main: #222222;
        --text-muted: #666666;
        --header-space: 66px;
        --radius: 0.6rem;
        --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        --transition: 0.3s ease;
    }

    * {
        box-sizing: border-box;
    }

    html {
        width: 100%;
        height: 100%;
        font-size: 16px;
        overflow-x: hidden;
    }

    body {
        width: 100%;
        margin: 0;
        padding: var(--header-space) 0 0;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-main);
        background: var(--bg);
        overflow-x: hidden;
    }

    /* Join modal refresh */
    .join-modal {
        border-radius: 20px;
        max-width: 520px;
        max-height: 90vh;
        overflow: auto;
        padding: 1.2rem 1.3rem 1rem;
        background: #fff;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
        -webkit-overflow-scrolling: touch;
    }

    .join-modal .close-modal {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #ffecec;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        top: 12px;
        right: 12px;
    }

    .join-modal-header {
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .join-modal-header h3 {
        font-size: 1.35rem;
        margin-bottom: 0.3rem;
        color: var(--primary);
        font-weight: 700;
    }

    .join-modal-header p {
        margin: 0;
        color: #6b7280;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .join-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin-bottom: 0.8rem;
    }

    .join-field {
        display: grid;
        gap: 0.35rem;
        font-size: 0.85rem;
        color: #4b5563;
        font-weight: 600;
    }

    .join-field.full {
        grid-column: 1 / -1;
    }

    .join-field input {
        margin-bottom: 0;
        background: #eaf1ff;
        border: 1px solid #d7e3fb;
        border-radius: 14px;
        padding: 0.75rem 0.95rem;
        font-size: 0.93rem;
        color: #1f2937;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .join-field input:focus {
        outline: none;
        border-color: #cbd5f7;
        box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.08);
    }

    .join-optional {
        font-weight: 400;
        color: var(--text-muted);
        font-size: 0.8rem;
    }

    .join-mode {
        margin-bottom: 0.8rem;
    }

    .join-mode-title {
        font-size: 0.88rem;
        font-weight: 700;
        color: #374151;
        margin-bottom: 0.5rem;
    }

    .join-mode-options {
        display: flex;
        gap: 0.6rem;
        background: #f3f4f6;
        padding: 0.4rem;
        border-radius: 14px;
    }

    .join-mode-option {
        flex: 1;
        position: relative;
        display: flex;
    }

    .join-mode-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .join-mode-label {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.55rem 0.75rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.88rem;
        color: #6b7280;
        background: transparent;
        transition: all 0.2s ease;
    }

    .join-mode-option input:checked + .join-mode-label {
        background: #ffffff;
        color: var(--primary);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .join-mode-sub {
        margin-top: 0.5rem;
        padding: 0.65rem 0.85rem;
        background: #fff7f7;
        border: 1px solid rgba(179, 33, 33, 0.15);
        border-radius: 10px;
        font-size: 0.82rem;
        color: #6b7280;
        line-height: 1.45;
        display: none;
    }

    .join-fee {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.7rem 0.9rem;
        border-radius: 14px;
        background: #fff7f7;
        border: 1px dashed rgba(179, 33, 33, 0.35);
        margin-bottom: 0.8rem;
    }

    .join-fee-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #6b7280;
    }

    .join-fee-value {
        font-size: 1.15rem;
        font-weight: 700;
        color: #d61f1f;
    }

    .join-submit {
        margin-top: 0;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        font-size: 0.98rem;
        font-weight: 700;
        background: linear-gradient(135deg, #ff3b3b, #b31313);
        box-shadow: 0 12px 24px rgba(179, 33, 33, 0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .join-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(179, 33, 33, 0.3);
    }

    @media (max-width: 640px) {
        .join-modal {
            max-width: 92vw;
            padding: 1rem 1rem 0.9rem;
        }

        .join-modal-header {
            margin-bottom: 0.7rem;
        }

        .join-modal-header h3 {
            font-size: 1.12rem;
            margin-bottom: 0.25rem;
        }
        
        .join-modal-header p {
            font-size: 0.84rem;
        }

        .join-form-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.55rem 0.65rem;
            margin-bottom: 0.7rem;
        }
        
        .join-field input {
            padding: 0.7rem 0.85rem;
            font-size: 0.88rem;
        }
        
        .join-mode {
            margin-bottom: 0.7rem;
        }
        
        .join-mode-sub {
            margin-top: 0.45rem;
            padding: 0.6rem 0.75rem;
            font-size: 0.78rem;
        }
        
        .join-fee {
            padding: 0.65rem 0.8rem;
            margin-bottom: 0.7rem;
        }

        .join-mode-options {
            gap: 0.4rem;
        }

        .join-mode-label {
            font-size: 0.85rem;
        }

        .join-fee-value {
            font-size: 1.05rem;
        }
    }
    .nav-mentor-form button {
        padding: 6px 16px;
        border-radius: 8px;
        border: none;
        font-weight: 600;
        font-size: 0.7rem;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
        cursor: pointer;
        transition: var(--transition);
        white-space: nowrap;
    }

    .nav-mentor-form button:hover {
        box-shadow: 0 12px 28px rgba(179, 33, 33, 0.3);
        transform: translateY(-2px);
    }

    .nav-cta-btn {
        padding: 8px 14px;
        border-radius: 5px;
        border: none;
        font-weight: 600;
        font-size: 0.95rem;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 8px 20px rgba(179, 33, 33, 0.12);
        white-space: nowrap;
    }

    .nav-cta-btn:hover {
        box-shadow: 0 14px 32px rgba(179, 33, 33, 0.22);
        transform: translateY(-2px);
    }

    @media (max-width: 768px) {
        .nav-cta-btn {
            padding: 8px 12px;
            font-size: 0.7rem;
        }
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-mobile-only {
        display: none;
    }

    .nav-lang-btn {
        color: var(--primary);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 6px;
        transition: var(--transition);
        border: 1px solid rgba(179, 33, 33, 0.3);
        background: transparent;
        line-height: 1;
    }

    .nav-lang-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    }

    .nav {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 0.75rem;
    }

    .hamburger {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary);
        padding: 5px;
    }

    .logo {
        font-family: 'Montserrat', system-ui, sans-serif;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: 0;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .logo-black {
        color: #000000;
    }

    .logo-red {
        color: var(--primary);
    }

    .nav ul {
        list-style: none;
        display: flex;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .nav ul li {
        cursor: pointer;
        font-size: 0.85rem;
        position: relative;
        padding-bottom: 6px;
        display: inline-block;
    }

    .nav ul .nav-mobile-only {
        display: none;
    }

    /* Underline that grows from center: use a pseudo-element */
    .nav ul li::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: var(--primary);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
        border-radius: 2px;
        pointer-events: none;
        opacity: 0.95;
    }

    .nav ul li:hover::after,
    .nav ul li:focus::after,
    .nav ul li.active::after {
        transform: scaleX(1);
    }

    /* Nav mentor form */
    .nav-mentor-form {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
    }

    .nav-mentor-form input {
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.18);
        font-size: 0.85rem;
        min-width: 140px;
    }

    /* Hero */
    .hero {
        display: grid;
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        padding: 2.5rem clamp(0.75rem, 6vw, 3.5rem) 3rem;
        gap: 1.5rem;
        align-items: center;
        position: relative;
        text-align: center;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 16px;
        background: transparent;
    }

    .hero:hover {
        background: #ffffff;
        box-shadow: 0 20px 50px rgba(179, 33, 33, 0.08), 0 0 0 1px rgba(179, 33, 33, 0.06);
        transform: translateY(-2px);
    }

    /* .hero::before {
      content: "";
      position: absolute;
      top: -100px;
      right: -200px;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(252, 191, 73, 0.4), transparent 70%);
      animation: pulse 6s infinite;
      z-index: -1;
    } */

    @keyframes pulse {
        0% {
            transform: scale(0.9);
        }

        50% {
            transform: scale(1);
        }

        100% {
            transform: scale(0.9);
        }
    }

    /* Ensure hero bullets are left-aligned but the list remains centered visually */
    .hero-content .hero-list {
        display: inline-block;
        text-align: left;
        list-style-position: outside;
        padding-left: 1.15rem;
        margin: 8px auto 12px auto;
    }

    /* Support for alternate hero bullets class used in edits */
    .hero-content .hero-bullets {
        display: inline-block;
        text-align: left;
        list-style-position: outside;
        padding-left: 1.15rem;
        margin: 8px auto 12px auto;
        max-width: 520px;
    }

    /* Countdown badge styles */
    .countdown {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 6px 10px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(179,33,33,0.06), rgba(255,255,255,0.02));
        border: 1px solid rgba(179,33,33,0.09);
        font-size: 0.95rem;
    }

    @media (max-width: 640px) {
        .countdown { font-size: 0.92rem; padding: 6px 10px; }
    }

    /* Hero countdown: separate desktop and mobile placements */
    .hero-countdown--mobile {
        margin-top: 0.6rem;
        display: flex;
        justify-content: center;
    }

    .hero-countdown--desktop { display: none; }

    @media (min-width: 900px) {
        /* Center the desktop countdown under the small hero-highlight strip
           and nudge it slightly right so it visually aligns with the strip's centre. */
        .hero-content .hero-countdown--desktop {
            display: flex;
            justify-content: center;
            margin-top: 6px;
            transform: translateX(6%);
            width: 100%;
        }
        .hero-content .hero-countdown--mobile { display: none; }
    }
    /* Hindi-specific tighten: reduce vertical spacing and image size to lower hero height without changing content */
    :lang(hi) .hero {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
        gap: 1rem;
    }

    :lang(hi) .hero-content h1 {
        margin: 0 0 6px 0;
        font-size: 1.9rem;
        line-height: 1.08;
        letter-spacing: 0.2px;
    }

    :lang(hi) .hero-content p,
    :lang(hi) .hero-content .hero-sub {
        margin: 0 0 8px 0;
        line-height: 1.45;
        color: #4b5563;
    }

    :lang(hi) .hero-content .hero-closing {
        margin-top: 8px;
    }

    :lang(hi) .hero-image img {
        width: 84%;
        max-width: 360px;
    }

    /* Hindi hero fine-tuning: use fixed left column and centre the whole hero */
    :lang(hi) .hero {
        /* fixed left column keeps content width consistent and centers both columns on the page */
        grid-template-columns: 560px 420px !important;
        justify-content: center;
        max-width: 1100px;
        margin: 0 auto;
        align-items: center;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
        gap: 1rem;
    }

    :lang(hi) .hero-content {
        max-width: 560px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin: 0;
    }

    /* Center-align hero content for Hindi page */
    :lang(hi) .hero-content {
        align-items: center;
        text-align: center;
    }

    :lang(hi) .hero-highlight {
        display: block;
        background: linear-gradient(90deg, rgba(179,33,33,0.04), rgba(255,255,255,0.02));
        padding: 6px 12px;
        border-radius: 10px;
        font-weight: 700;
        color: var(--primary);
        margin: 0 auto 10px auto;
        width: fit-content;
    }

    /* Nudge the top strip slightly right on wide screens so it visually aligns
       with the centered hero content beneath (small positive X translation). */
    @media (min-width: 900px) {
        :lang(hi) .hero-highlight { transform: translateX(8%); }
    }

    @media (max-width: 899px) {
        :lang(hi) .hero-highlight { transform: translateX(4%); }
    }

    /* center and gently nudge the desktop countdown for Hindi so it visually sits under the highlight */
    :lang(hi) .hero-content .hero-countdown--desktop {
        justify-content: center;
        transform: translateX(0%);
        margin-top: 8px;
        width: 100%;
    }

    :lang(hi) .hero-image { display:flex; align-items:center; justify-content:center }

    :lang(hi) .hero-emphasis { margin-top: 6px; }

    :lang(hi) .hero-buttons { gap: 0.9rem; margin-top: 8px; justify-content: center; }

    :lang(hi) .hero-buttons .btn-main { padding: 12px 20px; border-radius: 999px; }
    :lang(hi) .hero-buttons .btn-outline { padding: 12px 20px; border-radius: 999px; }

    /* Offline disclaimer styling (subtle, positioned under offer price) */
    .offline-disclaimer {
        display: block;
        font-size: 0.9rem;
        color: #475569;
        line-height: 1.32;
        margin: 0.45rem 0 0.6rem 0;
        padding: 0.45rem 0.6rem;
        background: rgba(250,250,250,0.6);
        border-radius: 8px;
        border: 1px solid rgba(0,0,0,0.04);
        text-align: left;
    }

    @media (min-width: 900px) {
        .offline-disclaimer { font-size: 0.95rem; margin-left: 0; padding: 0.5rem 0.7rem; }
    }

    /* Emphasize booking amount and icon */
    .offline-disclaimer .booking-amount {
        color: var(--primary);
        font-weight: 800;
        font-size: 1.02rem;
        margin: 0 0.15rem;
    }

    .offline-disclaimer .booking-icon {
        display: inline-block;
        margin-right: 0.45rem;
        font-size: 1rem;
        vertical-align: middle;
        opacity: 0.95;
    }

    /* Ensure equal emphasis in Hindi pages */
    :lang(hi) .offline-disclaimer .booking-amount {
        color: var(--primary);
        font-weight: 900;
        font-size: 1.06rem;
        letter-spacing: 0.2px;
    }

    :lang(hi) .offline-disclaimer .booking-icon {
        font-size: 1.06rem;
        margin-right: 0.45rem;
        opacity: 0.98;
    }


    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content h1 span {
        background: linear-gradient(90deg, var(--primary), #e59c00);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-muted);
        max-width: 520px;
        margin: 0 auto 1rem;
    }

    /* Hindi-specific: slightly more line-height for hero paragraph to avoid any clipping */
    :lang(hi) .hero-content p {
        line-height: 1.65;
    }

/* Hindi-specific typographic fixes: use Devanagari font and increase heading line-height
   to avoid clipping of matras/diacritics on some browsers */
:lang(hi) body {
    font-family: 'Noto Sans Devanagari', 'Montserrat', sans-serif;
}

:lang(hi) .hero-content h1 {
    /* increase line-height slightly for tall Devanagari glyphs */
    line-height: 1.28;
}

    .offer-validity {
        color: #b22222;
        font-weight: 600;
        display: inline-block;
        transform: translateY(-1px);
        background: none;
        text-shadow: none;
        --offer-glow: rgba(178, 34, 34, 0.45);
        animation: offerGlow 2.8s ease-in-out infinite;
    }

    @keyframes offerShine {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    @keyframes offerGlow {
        0% { text-shadow: 0 0 0 rgba(0, 0, 0, 0); }
        50% { text-shadow: 0 0 12px var(--offer-glow); }
        100% { text-shadow: 0 0 0 rgba(0, 0, 0, 0); }
    }

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 0.75rem;
        justify-content: center;
    }

    /* Ensure hero CTAs match size on desktop while still wrapping on small screens */
    .hero-buttons .btn-main,
    .hero-buttons .btn-outline {
        min-width: 220px;
    }

    .btn-main {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
        padding: 12px 22px;
        border: none;
        border-radius: 999px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: var(--transition);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-main:hover {
        box-shadow: 0 14px 32px rgba(179, 33, 33, 0.28);
        transform: translateY(-2px);
    }

    .btn-outline {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        color: #fff;
        padding: 12px 22px;
        border: none;
        border-radius: 999px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: var(--transition);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-outline:hover {
        background: var(--primary-dark);
        color: #fff;
        box-shadow: 0 14px 32px rgba(179, 33, 33, 0.28);
        transform: translateY(-2px);
    }

    .hero-image {
        text-align: center;
        position: relative;
    }

    .hero-image img {
        width: 90%;
        max-width: 420px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }


    .feature-icon{
        width: 52px;
        height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(179, 33, 33, 0.1);
        color: var(--primary);
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

        /* Alumni / Achievers section */
    .alumni {
        padding: 0.5rem 1rem;
        max-width: 1200px;
        margin: 0 auto 1rem;
    }

    .alumni-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.2rem;
        align-items: start;
        justify-items: center;
    }

    .alumni-card {
        text-align: center;
        transition: transform 220ms var(--transition), box-shadow 220ms var(--transition);
        will-change: transform;
    }

    .alumni-card img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
        border: 6px solid #fff;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
        transition: transform 220ms var(--transition), box-shadow 220ms var(--transition);
        display: block;
    }

    .alumni-card:hover img {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    }

    .alumni-name {
        margin-top: 0.5rem;
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Highlighted name style (as requested) */
    .highlight {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 10px;
        background: linear-gradient(90deg, var(--primary), var(--primary-dark));
        color: white;
        box-shadow: 0 6px 18px rgba(179, 33, 33, 0.06);
    }

        /* Testimonial section */
    .testimonials {
        background: #fff8f1;
        border-radius: var(--radius);
        padding: 3rem 2rem;
        box-shadow: var(--shadow);
        overflow: hidden;
        position: relative;
        text-align: center;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .testimonials:hover {
        background: #ffffff;
        box-shadow: 0 24px 60px rgba(179, 33, 33, 0.1), 0 0 0 1px rgba(179, 33, 33, 0.08);
        transform: translateY(-3px);
    }

    .testimonial-slider {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 5rem;
        padding-bottom: 1rem;
        justify-content: center;
    }

    .testimonial-card {
        flex: 0 0 300px;
        scroll-snap-align: center;
        background: var(--bg-alt);
        border-radius: var(--radius);
        padding: 1.4rem;
        box-shadow: var(--shadow);
        position: relative;
        text-align: left;
    }

    .testimonial-card::after {
        content: "\201C";
        position: absolute;
        top: -10px;
        left: 4px;
        font-size: 4rem;
        color: rgba(179, 33, 33, 0.15);
    }

    .testimonial-card p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 0.8rem;
    }

    .testimonial-card strong {
        display: block;
        font-size: 0.85rem;
        color: var(--primary-dark);
    }

    /* Carousel arrows (desktop) */
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary);
        color: #fff;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .carousel-btn:hover {
        background: var(--primary-dark);
    }

    .carousel-btn.prev {
        left: 12px;
    }

    .carousel-btn.next {
        right: 12px;
    }

    /* Hide arrows on small screens; mobile will use touch/swipe */
    @media (max-width: 480px) {
        .carousel-btn {
            display: none;
        }
    }

    /* Demo Videos Carousel */
    /* Demo Carousel Container */
    .demo-carousel-container {
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        width: 100%;
    }

    .demo-video-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1.2rem;
        padding: 1rem 0;
        flex: 1;
        scroll-behavior: smooth;
        width: 100%;
    }

    /* Hide scrollbar */
    .demo-video-grid::-webkit-scrollbar {
        height: 6px;
    }

    .demo-video-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .demo-video-grid::-webkit-scrollbar-thumb {
        background: rgba(179, 33, 33, 0.3);
        border-radius: 10px;
    }

    .demo-video-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(179, 33, 33, 0.5);
    }

    .video-wrapper {
        flex: 0 0 300px;
        scroll-snap-align: center;
        background: var(--card-bg);
        border-radius: var(--radius);
        padding: 0.6rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--card-border);
        text-align: center;
        min-width: 300px;
    }

    .video-wrapper iframe {
        width: 100%;
        height: 170px;
        border-radius: var(--radius);

    }

    .video-wrapper p {
        margin-top: 0.5rem;
        font-weight: 600;
        color: var(--primary-dark);
        font-size: 0.85rem;
    }

    /* Sections */
    section {
        padding: 0.9rem 1rem;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }

    :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq) {
        background: var(--section-bg);
        border: 1px solid var(--card-border);
        border-radius: 16px;
        box-shadow: var(--section-shadow);
        padding: 1.6rem 1.5rem;
        margin: 1.35rem auto;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq):hover {
        background: #ffffff;
        border-color: rgba(179, 33, 33, 0.2);
        box-shadow: 0 24px 60px rgba(179, 33, 33, 0.12), 0 0 0 1px rgba(179, 33, 33, 0.08);
        transform: translateY(-4px) scale(1.01);
    }

    body.dark-mode section,
    body.dark-mode header,
    body.dark-mode .testimonial-card,
    body.dark-mode .feature-card,
    body.dark-mode .pain-card,
    body.dark-mode .batch-card,
    body.dark-mode .modal-content {
        background: var(--bg-alt);
        border-color: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode header {
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    }

    body.dark-mode {
        --bg: #0b0f14;
        --bg-alt: #141a22;
        --section-bg: #141a22;
        --card-bg: #1a2332;
        --card-border: rgba(255, 255, 255, 0.08);
        --text-main: #e6e9ee;
        --text-muted: #a0a8b5;
    }

    body.dark-mode :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq):hover {
        background: #1f2937;
        border-color: rgba(179, 33, 33, 0.4);
        box-shadow: 0 24px 60px rgba(179, 33, 33, 0.25), 0 0 0 1px rgba(179, 33, 33, 0.3), 0 0 30px rgba(179, 33, 33, 0.15);
        transform: translateY(-4px) scale(1.01);
    }

    body.dark-mode .hero:hover {
        background: #1a2332;
        box-shadow: 0 20px 50px rgba(179, 33, 33, 0.2), 0 0 0 1px rgba(179, 33, 33, 0.25), 0 0 25px rgba(179, 33, 33, 0.1);
        transform: translateY(-2px);
    }

    body.dark-mode .testimonials:hover {
        background: #1a2332;
        box-shadow: 0 24px 60px rgba(179, 33, 33, 0.2), 0 0 0 1px rgba(179, 33, 33, 0.25), 0 0 30px rgba(179, 33, 33, 0.12);
        transform: translateY(-3px);
    }

    body.dark-mode .philosophy-section:hover {
        background: #12151c;
        box-shadow: 0 20px 50px rgba(179, 33, 33, 0.2), 0 0 25px rgba(179, 33, 33, 0.1);
        transform: translateY(-2px);
    }

    body.dark-mode .cta:hover {
        background: linear-gradient(135deg, #ff3b3b, #a00000);
        box-shadow: 0 28px 70px rgba(255, 59, 59, 0.4), 0 0 50px rgba(255, 59, 59, 0.25);
        transform: translateY(-4px) scale(1.01);
    }

    body.dark-mode .nav ul {
        background: var(--bg-alt);
    }

    body.dark-mode .nav ul li::after {
        background: var(--primary);
    }

    body.dark-mode .section-header .tag {
        color: #d7b07a;
    }

    body.dark-mode .section-header .tag::before {
        background: linear-gradient(to left, rgba(225, 90, 90, 0.5), transparent);
    }

    body.dark-mode .section-header .tag::after {
        background: linear-gradient(to right, rgba(225, 90, 90, 0.5), transparent);
    }

    body.dark-mode .hero-content h1 span {
        background: linear-gradient(90deg, #ff6b6b, #ffc470);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    body.dark-mode .feature-card,
    body.dark-mode .pain-card,
    body.dark-mode .batch-card,
    body.dark-mode .testimonial-card {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    }

    body.dark-mode .btn-main,
    body.dark-mode .nav-cta-btn,
    body.dark-mode .batch-enroll-btn,
    body.dark-mode .btn-outline {
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    }

    /* Ensure primary CTA text is clearly white in dark mode */
    body.dark-mode .btn-main {
        color: #ffffff !important;
    }

    /* Also ensure Hindi-scoped hero CTA shows white text in dark mode */
    body.dark-mode :lang(hi) .btn-main {
        color: #ffffff !important;
    }

    /* Also make outlined CTAs readable in dark mode */
    body.dark-mode .btn-outline,
    body.dark-mode :lang(hi) .btn-outline {
        color: #ffffff !important;
        border-color: rgba(255,255,255,0.08) !important;
        background: transparent !important;
    }

    body.dark-mode .btn-outline {
        background: linear-gradient(135deg, #6b1f1f, #d15a5a);
    }

    /* Improve contrast for card headings in dark mode: use a complementary warm yellow */
    body.dark-mode .pain-card h3,
    body.dark-mode .feature-card h3,
    body.dark-mode .batch-card h3,
    body.dark-mode .testimonial-card h3 {
        color: #ffd166 !important; /* high-contrast complementary yellow */
    }
    body.dark-mode .pain-card p,
    body.dark-mode .feature-card p,
    body.dark-mode .pain-card .card-body {
        color: var(--text-muted);
    }

    body.dark-mode .nav-lang-btn {
        border-color: rgba(255, 255, 255, 0.28);
        color: var(--text-main);
    }

    body.dark-mode .nav-lang-btn:hover {
        background: var(--primary);
        color: #fff;
    }

    body.dark-mode .logo-black {
        color: var(--text-main);
    }

    body.dark-mode input,
    body.dark-mode select,
    body.dark-mode textarea {
        background: #0f141b;
        color: var(--text-main);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.dark-mode input::placeholder,
    body.dark-mode textarea::placeholder {
        color: #7e8794;
    }

    body.dark-mode .flow-grid .card {
        background: var(--bg-alt);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
        color: var(--text-main);
    }

    body.dark-mode .flow-grid .card p {
        color: var(--text-muted);
    }

    body.dark-mode .pricing-section {
        background: #0f141b;
        border-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .offer-price {
        background: rgba(225, 90, 90, 0.12);
        border-left-color: var(--primary);
    }

    body.dark-mode .batch-badge,
    body.dark-mode .batch-badge.special {
        background: rgba(225, 90, 90, 0.12);
        color: #f1b3b3;
    }

    body.dark-mode .batch-card h3,
    body.dark-mode .batch-detail .value,
    body.dark-mode .offer-label {
        color: var(--text-main);
    }

    body.dark-mode .batch-subtitle,
    body.dark-mode .batch-detail .label,
    body.dark-mode .price-label,
    body.dark-mode .price-value {
        color: var(--text-muted);
    }

    body.dark-mode .savings-badge,
    body.dark-mode .savings-badge.special {
        background: rgba(46, 204, 113, 0.12);
        color: #8ee6a6;
        border-color: rgba(46, 204, 113, 0.3);
    }

    body.dark-mode .batch-cta {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .batch-note {
        background: linear-gradient(135deg, rgba(255, 156, 90, 0.12), rgba(255, 215, 160, 0.08));
        border-left-color: var(--primary);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    }

    body.dark-mode .batch-note p {
        color: var(--text-muted);
    }

    body.dark-mode .philosophy-section {
        background: #0f141b;
    }

    body.dark-mode .philosophy-container {
        background: var(--bg-alt);
        border-left-color: var(--primary);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    }

    body.dark-mode .philosophy-container::before {
        color: rgba(225, 90, 90, 0.06);
    }

    body.dark-mode .philosophy-tag {
        background: rgba(225, 90, 90, 0.12);
        color: #f3c2c2;
        border: 1px solid rgba(225, 90, 90, 0.25);
    }

    body.dark-mode .philosophy-section h2 {
        color: var(--text-main);
    }

    body.dark-mode .philosophy-section p {
        color: var(--text-muted);
    }

    body.dark-mode .philosophy-highlight {
        color: #f3c2c2;
        background: none;
    }

    body.dark-mode .testimonials {
        background: var(--bg-alt);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

    body.dark-mode .testimonial-card::after {
        color: rgba(225, 90, 90, 0.2);
    }

    body.dark-mode .faq-section-toggle {
        background: var(--bg-alt);
        color: var(--text-main);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    body.dark-mode .faq-section-toggle::after {
        background: rgba(225, 90, 90, 0.2);
        color: #f1b3b3;
    }

    body.dark-mode .faq-section-wrapper[open] .faq-section-toggle {
        color: var(--text-muted);
    }

    body.dark-mode .faq-section-wrapper[open] .faq-section-toggle::after {
        background: rgba(255, 255, 255, 0.12);
        color: var(--text-muted);
    }

    body.dark-mode .faq-item summary {
        color: var(--text-main);
    }

    body.dark-mode .table-wrap table {
        background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box, linear-gradient(to bottom, #3a2a22, #0f141b) border-box;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    }

    body.dark-mode .table-wrap thead th {
        background: rgba(225, 90, 90, 0.12);
        color: var(--text-main);
        border-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .table-wrap tbody td {
        border-color: rgba(255, 255, 255, 0.08);
        color: var(--text-muted);
    }

    body.dark-mode .table-wrap tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.02);
    }

    body.dark-mode .table-wrap td .pill {
        background: rgba(225, 90, 90, 0.16);
        color: #f1b3b3;
    }

    body.dark-mode .timeline::before {
        background: rgba(255, 255, 255, 0.15);
    }

    body.dark-mode .timeline-item h3 {
        color: var(--primary);
    }

    body.dark-mode .offer-validity {
        background: none;
        color: #f2c17b;
        text-shadow: none;
        --offer-glow: rgba(242, 193, 123, 0.5);
    }

    body.dark-mode .hero-highlight {
        color: #f0b3b3 !important;
    }

    body.dark-mode .video-wrapper p {
        color: var(--text-main);
    }

    body.dark-mode .demo-video-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
    }

    .section-header {
        text-align: center;
    }

    .section-header .tag {
        font-size: 0.85rem;
        color: var(--primary-dark);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
        position: relative;
        display: inline-block;
        padding: 0 1rem;
        z-index: 1;
    }

/* Hindi-specific: ensure small tag text has comfortable line-height for Devanagari */
:lang(hi) .section-header .tag {
    line-height: 1.3;
}

    /* Faded horizontal lines on both sides of the small 'tag' label */
    .section-header .tag::before,
    .section-header .tag::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 250px;
        height: 2px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .section-header .tag::before {
        right: 100%;
        margin-right: 12px;
        background: linear-gradient(to left, rgb(116, 0, 0), transparent);
    }

    .section-header .tag::after {
        left: 100%;
        margin-left: 12px;
        background: linear-gradient(to right, rgb(124, 0, 0), transparent);
    }

    @media (max-width: 480px) {

        .section-header .tag::before,
        .section-header .tag::after {
            width: 90px;
            margin-left: 8px;
            margin-right: 8px;
        }
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    /* Hindi-specific: increase line-height for section headings to avoid matra clipping */
    :lang(hi) .section-header h2 {
        line-height: 1.28;
    }

    .section-header p {
        font-size: 1rem;
        color: var(--text-muted);
        max-width: 720px;
        margin: 0.1rem auto 0;
    }

    /* Who list: center container and justify text (UI only) */
    #who .who-list {
        display: flex;
        justify-content: center;
    }

    #who .who-list ul {
        max-width: 760px;
        margin: 0.5rem auto 0;
        padding-left: 1.25rem;
        list-style: disc;
        text-align: justify;
        text-justify: inter-word;
    }

    #who .who-list ul li {
        display: list-item;
        text-align: justify;
        margin: 0.35rem 0;
        font-size: 1rem;
        color: var(--text-main);
    }

    #who .who-list ul::marker {
        color: var(--primary);
        font-weight: 700;
    }

    @media (max-width: 520px) {
        #who .who-list ul {
            padding-left: 1rem;
            text-align: left;
            text-justify: auto;
        }

        #who .who-list ul li {
            text-align: left;
        }
    }

    /* About section */
    .about {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
        gap: 1rem;
        align-items: start;
        text-align: center;
        margin-top: 1.1rem;
    }

    .about-image {
        position: relative;
    }

    .about-image::after {
        content: "";
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, rgba(252, 191, 73, 0.4), transparent 70%);
        border-radius: 50%;
        z-index: -1;
        animation: pulse 5s infinite;
    }

    .about-image img {
        width: 100%;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
        line-height: 1.55;
        color: var(--text-muted);
        max-width: 600px;
        margin: 0 auto;
    }


    .about-text strong {
        color: var(--primary);
    }

    /* Pain points */
    .pain-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
        margin-top: 0.85rem;
    }

    .pain-card {
        background: var(--card-bg);
        border-radius: var(--radius);
        padding: 1.2rem 1.05rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--card-border);
        transform: translateY(10px);
        opacity: 0;
        animation: fadeUp 0.6s forwards;
        transition: transform var(--transition), box-shadow var(--transition);
        text-align: center;
    }

    .pain-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    }

    .pain-card:nth-child(odd) {
        animation-delay: 0.2s;
    }

    .pain-card:nth-child(even) {
        animation-delay: 0.4s;
    }

    .pain-card h3 {
        margin-bottom: 0.5rem;
        color: var(--primary-dark);
    }

    .pain-card p {
        font-size: 0.88rem;
        color: var(--text-muted);
    }

    @keyframes fadeUp {
        0% {
            opacity: 0;
            transform: translateY(12px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Feature cards section */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.95rem;
    }

    .feature-card {
        background: var(--card-bg);
        border-radius: var(--radius);
        padding: 1.35rem 1.2rem 1.5rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--card-border);
        position: relative;
        transition: transform var(--transition), box-shadow var(--transition);
        text-align: center;
    }

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    }

    .feature-card .icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(179, 33, 33, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        color: var(--primary);
        margin: 0 auto 1rem;
    }

    .feature-card h3 {
        margin-bottom: 0.5rem;
    }

/* Hindi-specific: ensure feature headings have slightly larger line-height */
:lang(hi) .feature-card h3 {
    line-height: 1.26;
}

    .feature-card p {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .feature-card button {
        background: var(--primary);
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: var(--transition);
    }

    .feature-card button:hover {
        background: var(--primary-dark);
    }

    /* 'How' section: responsive flow grid */
    .flow-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.75rem;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
    }

    .flow-grid .card {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: 1.4rem;
        border-radius: 12px;
        background: var(--card-bg);
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        border: 1px solid var(--card-border);
    }

    @media (max-width: 900px) {
        .demo-carousel-container .carousel-btn {
            display: none;
            pointer-events: none;
        }
    }

    @media (max-width: 640px) {
        .flow-grid { grid-template-columns: 1fr; gap: 1rem; }
        .flow-grid .card { padding: 1rem 0.9rem; max-width: none; text-align: center; }
        .flow-grid .card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
        .flow-grid .card p { font-size: 0.95rem; }
    }

    /* Batch & Fee Section - Modern Sleek Design */
    @keyframes float-up {
        0% { opacity: 0; transform: translateY(30px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes sheen {
        0% { transform: translateX(-150%) skewX(-15deg); }
        50% { transform: translateX(150%) skewX(-15deg); }
        100% { transform: translateX(150%) skewX(-15deg); }
    }

    @keyframes btn-heartbeat {
        0% { transform: scale(1); }
        5% { transform: scale(1.03); }
        10% { transform: scale(1); }
        15% { transform: scale(1.03); }
        20% { transform: scale(1); }
        100% { transform: scale(1); }
    }    

    @keyframes pulse-action {
        0% { box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(178, 34, 34, 0); }
        100% { box-shadow: 0 0 0 0 rgba(178, 34, 34, 0); }
    }

    .batch-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
        margin: 1rem auto;
        max-width: 880px;
        padding: 0 0.75rem;
    }

    .batch-card {
        background: var(--card-bg);
        border-radius: 10px;
        padding: 0.75rem;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--card-border);
        display: flex;
        flex-direction: column;
        animation: float-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }

    /* Section entrance animation */
    #batch .section-header {
        animation: float-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }

    .batch-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .batch-card:nth-child(2) {
        animation-delay: 0.25s;
    }

    .batch-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--primary);
        opacity: 0.7;
    }

    .batch-card.featured::before {
        background: var(--primary);
        opacity: 0.7;
    }

    .batch-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .batch-card.featured:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .batch-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(179, 33, 33, 0.06);
        color: var(--primary-dark);
        padding: 0.2rem 0.5rem;
        border-radius: 999px;
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        margin-bottom: 0.55rem;
        align-self: flex-start;
    }

    .batch-badge.special {
        background: rgba(179, 33, 33, 0.06);
        color: var(--primary-dark);
    }

    .batch-card h3 {
        font-size: 1.05rem;
        color: #1a1a1a;
        margin-bottom: 0.2rem;
        font-weight: 700;
        letter-spacing: -0.2px;
    }

    .batch-subtitle {
        color: #666;
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
        font-weight: 500;
    }

    .batch-info {
        margin-bottom: 0.55rem;
        flex-grow: 1;
    }


    .batch-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.45rem;
        gap: 1rem;
    }

    .batch-detail:last-child {
        margin-bottom: 0;
    }

    .batch-detail .label {
        font-weight: 600;
        color: #555;
        font-size: 0.8rem;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .batch-detail .value {
        text-align: right;
        font-weight: 500;
        color: #1a1a1a;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .pricing-section {
        background: #fafafa;
        border-radius: 7px;
        padding: 0.6rem;
        margin: 0.55rem 0 0.45rem;
        border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .base-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.6rem;
    }

    .price-label {
        font-size: 0.8rem;
        color: #666;
        font-weight: 500;
    }

    .price-value {
        font-size: 0.9rem;
        color: #999;
        font-weight: 600;
    }

    .price-value.strike {
        text-decoration: line-through;
    }

    .offer-price {
        background: rgba(179, 33, 33, 0.04);
        padding: 0.65rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
        border-left: 3px solid var(--primary);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .batch-card.featured .offer-price {
        background: rgba(179, 33, 33, 0.04);
        border-left: 3px solid var(--primary);
    }

    .offer-label {
        display: block;
        font-size: 0.75rem;
        color: #444;
        font-weight: 600;
        margin-bottom: 0;
    }

    .offer-value {
        display: block;
        font-size: 1.05rem;
        color: var(--primary);
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .batch-card.featured .offer-value {
        color: var(--primary);
    }

    .savings-badge {
        background: #f0f7f2;
        color: #1b5e20;
        padding: 0.45rem 0.65rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        text-align: center;
        border: 1px solid rgba(46, 204, 113, 0.15);
    }

    .savings-badge.special {
        background: #f0f7f2;
        color: #1b5e20;
        border: 1px solid rgba(46, 204, 113, 0.15);
    }

    .batch-enroll-btn {
        width: 100%;
        margin-top: auto;
        padding: 0.7rem 1.1rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 7px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 3px 10px rgba(179, 33, 33, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        position: relative;
        overflow: hidden;
    }

    .batch-enroll-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-20deg) translateX(-250%);
        pointer-events: none;
        animation: sheen 3s infinite 2s;
    }

    @media (max-width: 640px) {
        .batch-enroll-btn {
            animation: btn-heartbeat 4s infinite;
        }
    }

    .batch-card.featured .batch-enroll-btn {
        background: var(--primary);
        box-shadow: 0 6px 16px rgba(179, 33, 33, 0.2);
    }

    .batch-enroll-btn .arrow {
        font-size: 1.25rem;
        transition: transform 0.3s ease;
        margin-left: 0.35rem;
    }

    .batch-enroll-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }

    .batch-card.featured .batch-enroll-btn:hover {
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }

    .batch-enroll-btn:hover .arrow {
        transform: translateX(4px);
    }

    .batch-enroll-btn:active {
        transform: translateY(0);

    }

    .batch-cta {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0.8rem 0 0.5rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .batch-cta .btn-main {
        padding: 14px 32px;
        font-size: 1rem;
        box-shadow: 0 8px 20px rgba(179, 33, 33, 0.12);
    }

    .batch-cta .btn-main:hover {
        box-shadow: 0 12px 32px rgba(179, 33, 33, 0.2);
    }

    .batch-note {
        background: linear-gradient(135deg, #fff3e0, #fff8f0);
        border-left: 3px solid var(--primary);
        padding: 0.95rem;
        border-radius: 8px;
        text-align: center;
        margin-top: 0.9rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 4px 12px rgba(252, 191, 73, 0.08);
    }

    .batch-note p {
        margin: 0;
        font-size: 0.95rem;
        color: #666;
        line-height: 1.6;
        font-weight: 500;
    }

    /* Batch table */
    .table-wrap {
        display: flex;
        justify-content: center;
        padding: 1.2rem 1rem;
    }

    .table-wrap table {
        width: 100%;
        max-width: 920px;
        border-collapse: collapse;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
        border-radius: 10px;
        overflow: hidden;
        border: 2px solid transparent;
        background: linear-gradient(white, white) padding-box, linear-gradient(to bottom, #d2b48c, white) border-box;
    }

    .table-wrap thead th {
        background: rgba(179, 33, 33, 0.06);
        color: var(--primary-dark);
        text-align: left;
        padding: 14px 18px;
        font-weight: 600;
        border: 1px solid #f0f0f0;
    }

    .table-wrap tbody td {
        padding: 12px 18px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 0.95rem;
        border: 1px solid #f0f0f0;
    }

    .table-wrap tbody tr:nth-child(even) {
        background: #fbfbfb;
    }

    .table-wrap td .pill {
        display: inline-block;
        background: rgba(179, 33, 33, 0.08);
        color: var(--primary-dark);
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 0.8rem;
    }

    @media (max-width: 640px) {
        .table-wrap {
            padding: 0.5rem 0.5rem;
        }

        .table-wrap table {
            width: 100%;
        }

        .table-wrap thead th {
            padding: 14px 18px;
            font-size: 0.95rem;
        }

        .table-wrap tbody td {
            padding: 12px 18px;
            font-size: 0.95rem;
            line-height: 1.25;
        }

        .batch-options {
            grid-template-columns: 1fr;
            gap: 0.9rem;
            padding: 0 0.5rem;
        }

        .batch-card {
            padding: 0.9rem;
        }

        .batch-card h3 {
            font-size: 1.3rem;
        }

        .batch-subtitle {
            font-size: 0.85rem;
        }

        .batch-detail {
            flex-direction: row; /* Keep row for compactness if space allows, or wrap */
            align-items: center;
            gap: 1rem;
        }

        .batch-detail .value {
            text-align: right;
        }

        .pricing-section {
            padding: 0.6rem;
        }

        .offer-value {
            font-size: 1.1rem;
        }

        .batch-enroll-btn {
            padding: 0.8rem 1rem;
            font-size: 0.9rem;
        }

        .batch-cta {
            flex-direction: column;
            align-items: center;
        }

        .batch-cta .btn-main,
        .batch-cta .btn-outline {
            width: 100%;
            max-width: 280px;
        }
    }

    /* Philosophy Section - Clean/Modern Style */
    .philosophy-section {
        background: #fafafa;
        padding: 2.2rem 1rem;
        position: relative;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 16px;
    }

    .philosophy-section:hover {
        background: #f5f5f5;
        box-shadow: 0 20px 50px rgba(179, 33, 33, 0.08);
        transform: translateY(-2px);
    }

    .philosophy-container {
        max-width: 900px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        border-left: 5px solid var(--primary);
        padding: 2rem 2rem;
        text-align: center;
        overflow: hidden;
    }

    /* Subtle background accent inside the card */
    .philosophy-container::before {
        content: "Online = Offline";
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 5rem;
        font-weight: 900;
        color: rgba(178, 34, 34, 0.08);
        z-index: -1;
        white-space: nowrap;
        pointer-events: none;
        user-select: none;
        font-family: inherit;
    }

    .philosophy-tag {
        display: inline-block;
        color: var(--primary);
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        background: rgba(179, 33, 33, 0.08);
        padding: 6px 14px;
        border-radius: 999px;
    }

    .philosophy-section h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        color: #222;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .philosophy-section p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #555;
        margin-bottom: 1rem;
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }

    .philosophy-section p:last-child {
        margin-bottom: 0;
    }

    .philosophy-highlight {
        color: var(--primary);
        font-weight: 700;
        background: none;
        padding: 0 4px;
    }

    @media (max-width: 768px) {
        .philosophy-section {
            padding: 1.75rem 1rem;
        }
        .philosophy-container {
            padding: 1.5rem 1.25rem;
        }
        .philosophy-section h2 {
            font-size: 1.7rem;
        }
        .philosophy-container::before {
            font-size: 2.6rem;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            color: rgba(178, 34, 34, 0.06);
        }
    }

    /* Timeline */
    .timeline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
        position: relative;
    }

    .timeline::before {
        content: "";
        position: absolute;
        left: 28px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(0, 0, 0, 0.1);
    }

    .timeline-item {
        padding-left: 60px;
        position: relative;
    }

    .timeline-item::before {
        content: "";
        position: absolute;
        left: 22px;
        top: 5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--primary);
    }

    .timeline-item h3 {
        margin-bottom: 0.3rem;
        color: var(--primary-dark);
    }

    .timeline-item p {
        font-size: 0.88rem;
        color: var(--text-muted);
    }

    /* Testimonial section */
    .testimonials {
        background: #fff8f1;
        border-radius: var(--radius);
        padding: 3rem 2rem;
        box-shadow: var(--shadow);
        overflow: hidden;
        position: relative;
        text-align: center;
    }

    .testimonial-slider {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 5rem;
        padding-bottom: 1rem;
        justify-content: center;
    }

    .testimonial-card {
        flex: 0 0 300px;
        scroll-snap-align: center;
        background: var(--card-bg);
        border-radius: var(--radius);
        padding: 1.4rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--card-border);
        position: relative;
        text-align: left;
    }

    .testimonial-card::after {
        content: "\201C";
        position: absolute;
        top: -10px;
        left: 4px;
        font-size: 4rem;
        color: rgba(179, 33, 33, 0.15);
    }

    .testimonial-card p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 0.8rem;
    }

    .testimonial-card strong {
        display: block;
        font-size: 0.85rem;
        color: var(--primary-dark);
    }

    /* Carousel arrows (desktop) */
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary);
        color: #fff;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .carousel-btn:hover {
        background: var(--primary-dark);
    }

    .carousel-btn.prev {
        left: 12px;
    }

    .carousel-btn.next {
        right: 12px;
    }

    /* Hide arrows on small screens; mobile will use touch/swipe */
    @media (max-width: 480px) {
        .carousel-btn {
            display: none;
        }
    }

    /* Floating action buttons (WhatsApp left, Call right) */
    .fab {
        position: fixed;
        bottom: 18px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        z-index: 1300;
        transition: transform var(--transition), box-shadow var(--transition);
        text-decoration: none;
    }

    .fab:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    }

    .fab.whatsapp {
        left: 16px;
        background: #94ffbb;
    }

    .fab.call {
        right: 16px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    }

    .fab svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    /* Language toggle button (fixed below header on the right) */
    .lang-toggle-wrapper {
        position: fixed;
        top: calc(var(--header-space) + 8px);
        /* sits just below the fixed header */
        right: 16px;
        z-index: 2200;
        /* above header so button remains clickable on desktop */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lang-toggle {
        --lang-translate: -52px;
        /* default visual offset (keeps previous positioning) */
        background: #fff;
        color: var(--text-main);
        border: 1px solid rgba(0, 0, 0, 0.212);
        padding: 8px 12px;
        border-radius: 4px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.055);
        cursor: pointer;
        margin-top: 0;
        transform: translateY(var(--lang-translate));
        font-weight: 700;
        letter-spacing: 0.04em;
        transition: transform 180ms cubic-bezier(.2, .9, .2, 1), box-shadow 180ms ease, background-color 180ms ease;
        will-change: transform;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 2201;
        /* ensure button itself sits above header overlay */
    }

    /* subtle hover that composes with the visual offset (uses CSS variable) */
    .lang-toggle:hover {
        transform: translateY(calc(var(--lang-translate) - 4px));
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
        background-color: rgba(0, 0, 0, 0.02);
    }

    /* active / pressed state (also useful for touch when toggled) */
    .lang-toggle:active,
    .lang-toggle.is-active {
        transform: translateY(calc(var(--lang-translate) - 2px)) scale(0.998);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    @media (max-width: 480px) {
        .lang-toggle-wrapper {
            top: calc(var(--header-space) - 8px);
            right: 12px;
        }

        .lang-toggle {
            --lang-translate: 0;
            /* remove visual offset on small screens but keep transforms composable */
            padding: 6px 10px;
            font-size: 0.85rem;
            transform: translateY(var(--lang-translate));
            margin-top: 10px;
        }
    }

    /* Reduce size on very small screens */
    @media (max-width: 360px) {
        .fab {
            width: 48px;
            height: 48px;
        }

        .fab svg {
            width: 20px;
            height: 20px;
        }
    }

    /* Error notification */
    .error-notification {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: var(--radius);
        padding: 2.5rem 2rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 3000;
        text-align: center;
        max-width: 400px;
        width: 90%;
        animation: slideUp 0.5s ease;
        border-left: 4px solid #e74c3c;
    }

    .error-notification h2 {
        color: #e74c3c;
        margin-bottom: 0.5rem;
        font-size: 1.6rem;
    }

    .error-notification p {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .error-notification .error-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(231, 76, 60, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 2rem;
        color: #e74c3c;
    }

    /* FAQ section */
    .faq-section-wrapper {
        max-width: 800px;
        margin: 0 auto;
    }

    .faq-section-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: fit-content;
        margin: 0 auto;
        padding: 16px 36px;
        background: #ffffff;
        color: #333;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 100px;
        font-weight: 700;
        font-size: 1.05rem;
        cursor: pointer;
        list-style: none;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-align: center;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
    }

    .faq-section-toggle::after {
        content: '+';
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: rgba(179, 33, 33, 0.1);
        border-radius: 50%;
        font-size: 1.2rem;
        line-height: 1;
        color: var(--primary);
        transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
    }

    .faq-section-toggle:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px -10px rgba(179, 33, 33, 0.15);
        color: var(--primary);
        border-color: rgba(179, 33, 33, 0.1);
    }

    .faq-section-toggle:hover::after {
        background: var(--primary);
        color: white;
        transform: rotate(90deg);
    }

    .faq-section-toggle::-webkit-details-marker {
        display: none;
    }

    .faq-section-wrapper[open] .faq-section-toggle {
        margin-bottom: 2.5rem;
        background: transparent;
        box-shadow: none;
        border-color: transparent;
        color: var(--text-muted);
    }

    .faq-section-wrapper[open] .faq-section-toggle::after {
        transform: rotate(45deg); /* Turns to X */
        background: #eee;
        color: #888;
    }

    .faq-section-wrapper[open] .faq-section-toggle:hover::after {
        background: #ddd;
        color: #555;
        transform: rotate(45deg) scale(1.1);
    }

    .faq {
        max-width: 800px;
        margin: 0 auto;
        animation: slideDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .faq-item {
        background: var(--card-bg);
        margin-bottom: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--card-border);
    }

    .faq-item summary {
        padding: 1rem 1.2rem;
        cursor: pointer;
        font-weight: 600;
        color: var(--primary-dark);
        list-style: none;
    }

    .faq-item summary::marker,
    .faq-item summary::-webkit-details-marker {
        display: none;
    }

    .faq-item p {
        padding: 0 1.2rem 1rem;
        font-size: 0.88rem;
        color: var(--text-muted);
    }

    /* CTA final with animated gradient */
    .cta {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        background-size: 200% 200%;
        color: #fff;
        padding: 3rem 2rem;
        text-align: center;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        animation: ctaGlow 10s ease-in-out infinite;
        position: relative;
        overflow: hidden;
        z-index: 1;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cta:hover {
        background: linear-gradient(135deg, #d61f1f, #8a0000);
        box-shadow: 0 28px 70px rgba(179, 33, 33, 0.35), 0 0 40px rgba(179, 33, 33, 0.2);
        transform: translateY(-4px) scale(1.01);
    }

    /* Alumni / Achievers section */
    .alumni {
        padding: 0.5rem 1rem;
        max-width: 1200px;
        margin: 0 auto 1.5rem;
    }

    .alumni-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.2rem;
        align-items: start;
        justify-items: center;
    }

    .alumni-card {
        text-align: center;
        transition: transform 220ms var(--transition), box-shadow 220ms var(--transition);
        will-change: transform;
    }

    .alumni-card img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
        border: 6px solid #fff;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
        transition: transform 220ms var(--transition), box-shadow 220ms var(--transition);
        display: block;
    }

    .alumni-card:hover img {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    }

    .alumni-name {
        margin-top: 0.5rem;
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Highlighted name style (as requested) */
    .highlight {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 10px;
        background: linear-gradient(90deg, var(--primary), var(--primary-dark));
        color: white;
        box-shadow: 0 6px 18px rgba(179, 33, 33, 0.06);
    }


    .cta::before {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        background: radial-gradient(circle, #c2524e 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
        animation: spin 20s linear infinite;
        z-index: -1;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: #ffd8c8;
    }

    .cta .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer {
        text-align: center;
        padding: 2rem 1rem;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    /* Modal styles (unchanged, kept for future use if needed) */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2000;
    }

    .modal.active {
        display: flex;
    }

    .modal:target {
        display: flex;
    }

    .modal.active .mentor-modal {
        animation: modal-pop 0.3s ease-out;
    }

    .modal:target .modal-content {
        animation: modal-pop 0.3s ease-out;
    }

    .modal-content {
        background: var(--bg-alt);
        border-radius: var(--radius);
        max-width: 460px;
        width: 90%;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        position: relative;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-content h3 {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 1rem;
    }

    .close-modal {
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 1.4rem;
        color: var(--primary);
        cursor: pointer;
        z-index: 3;
        text-decoration: none;
        line-height: 1;
    }

    .modal form input,
    .modal form select,
    .modal form textarea {
        width: 100%;
        margin-bottom: 0.8rem;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        font-size: 0.9rem;
    }

    .modal form button {
        width: 100%;
        background: var(--primary);
        color: #fff;
        padding: 10px;
        border-radius: 8px;
        border: none;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

    .modal form button:hover {
        background: var(--primary-dark);
    }

    /* Mentor modal refresh */
    .mentor-modal {
        border-radius: 20px;
        padding: 0;
        overflow: auto;
        max-width: 520px;
        max-height: 90vh;
        background: #fff;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
        animation: modal-pop 0.28s ease-out;
        -webkit-overflow-scrolling: touch;
    }

    .mentor-modal h3,
    .mentor-modal p,
    .mentor-modal form {
        position: relative;
        z-index: 2;
    }

    .mentor-header {
        padding: 1.6rem 1.6rem 0.8rem;
        text-align: center;
    }

    .mentor-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(179, 33, 33, 0.08);
        color: var(--primary);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        padding: 0.3rem 0.7rem;
        border-radius: 999px;
        margin-bottom: 0.7rem;
    }

    .mentor-modal::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(178, 34, 34, 0.06), rgba(252, 191, 73, 0.06));
        z-index: 1;
    }

    .mentor-modal h3 {
        margin: 0 0 0.35rem;
        padding: 0;
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: -0.2px;
    }

    .mentor-modal p {
        margin: 0 0 0.9rem;
        padding: 0;
        color: #6b7280;
        font-size: 0.95rem;
    }

    .mentor-highlights {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .mentor-highlights li {
        background: #f3f4f6;
        border-radius: 999px;
        padding: 0.35rem 0.6rem;
        text-align: center;
    }

    .mentor-modal form {
        padding: 0 1.6rem 1.3rem;
        display: grid;
        gap: 0.7rem;
    }

    .mentor-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem 0.9rem;
    }

    .mentor-field {
        display: grid;
        gap: 0.35rem;
        font-size: 0.85rem;
        color: #4b5563;
        font-weight: 600;
    }

    .mentor-optional {
        color: #888;
        font-weight: 400;
        font-size: 0.75rem;
    }

    .mentor-modal input,
    .mentor-modal select {
        border: 1px solid #d7e3fb;
        border-radius: 14px;
        padding: 0.85rem 1rem;
        background: #eaf1ff;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .mentor-modal input:focus,
    .mentor-modal select:focus {
        outline: none;
        border-color: #cbd5f7;
        box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.08);
        transform: translateY(-1px);
    }

    .mentor-modal form button {
        margin-top: 0.1rem;
        padding: 0.95rem 1rem;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 700;
        background: linear-gradient(135deg, #ff3b3b, #b31313);
        box-shadow: 0 12px 24px rgba(179, 33, 33, 0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .mentor-actions {
        display: grid;
        gap: 0.5rem;
    }

    .mentor-actions .arrow {
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }

    .mentor-actions button:hover .arrow {
        transform: translateX(4px);
    }

    .mentor-note {
        margin: 0;
        font-size: 0.75rem;
        color: #6b7280;
        text-align: center;
    }

    .mentor-modal form button:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(179, 33, 33, 0.3);
    }

    .mentor-modal .close-modal {
        top: 12px;
        right: 12px;
        color: var(--primary);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #ffecec;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    @keyframes modal-pop {
        from {
            opacity: 0;
            transform: translateY(8px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 768px) {
        .mentor-modal {
            max-width: 92vw;
        }

        .mentor-header {
            padding: 1rem 1.2rem 0.5rem;
        }

        .mentor-modal h3 {
            font-size: 1.15rem;
        }

        .mentor-modal p {
            font-size: 0.85rem;
            margin-bottom: 0.6rem;
        }

        .mentor-highlights {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.4rem;
            font-size: 0.7rem;
        }

        .mentor-modal form {
            padding: 0 1.2rem 1rem;
            gap: 0.5rem;
        }

        .mentor-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.6rem 0.7rem;
        }
        
        .mentor-modal input,
        .mentor-modal select {
            padding: 0.7rem 0.85rem;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        .modal-content {
            width: 92vw;
            max-width: 360px;
            padding: 1.1rem;
            max-height: 85vh;
        }

        .mentor-modal {
            max-width: 360px;
        }

        .mentor-header {
            padding: 0.9rem 1rem 0.4rem;
        }

        .mentor-modal h3 {
            font-size: 1.05rem;
            margin-bottom: 0.25rem;
        }

        .mentor-modal p {
            font-size: 0.82rem;
            margin-bottom: 0.6rem;
        }

        .mentor-highlights {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.3rem;
            font-size: 0.68rem;
        }
        
        .mentor-highlights li {
            padding: 0.3rem 0.5rem;
        }

        .mentor-modal form {
            padding: 0 1rem 0.9rem;
            gap: 0.45rem;
        }
        
        .mentor-grid {
            gap: 0.5rem 0.6rem;
        }

        .mentor-modal input,
        .mentor-modal select {
            padding: 0.65rem 0.8rem;
            font-size: 0.86rem;
        }

        .mentor-modal form button {
            padding: 0.75rem 0.9rem;
            font-size: 0.92rem;
        }

        .join-modal {
            max-width: 360px;
            padding: 0.9rem 0.85rem 0.8rem;
        }

        .join-modal-header {
            margin-bottom: 0.6rem;
        }

        .join-modal-header h3 {
            font-size: 1.02rem;
            margin-bottom: 0.2rem;
        }
        
        .join-modal-header p {
            font-size: 0.79rem;
        }
        
        .join-form-grid {
            gap: 0.45rem 0.55rem;
            margin-bottom: 0.6rem;
        }
        
        .join-field input {
            padding: 0.65rem 0.75rem;
            font-size: 0.84rem;
        }
        
        .join-mode {
            margin-bottom: 0.6rem;
        }
        
        .join-mode-title {
            margin-bottom: 0.4rem;
        }
        
        .join-mode-sub {
            margin-top: 0.4rem;
            padding: 0.55rem 0.7rem;
            font-size: 0.73rem;
            line-height: 1.4;
        }
        
        .join-fee {
            padding: 0.6rem 0.75rem;
            margin-bottom: 0.6rem;
        }
        
        .join-submit {
            padding: 0.75rem 0.9rem;
            font-size: 0.92rem;
        }

        .join-mode-options {
            gap: 0.45rem;
        }

        .join-mode-option {
            padding: 0.45rem 0.75rem;
            min-width: 120px;
        }

        .join-mode-label {
            font-size: 0.9rem;
        }

        .join-mode-sub {
            font-size: 0.75rem;
        }
    }

    @media (max-width: 360px) {
        .mentor-modal {
            max-width: 340px;
        }
        
        .mentor-header {
            padding: 0.8rem 0.9rem 0.35rem;
        }
        
        .mentor-modal h3 {
            font-size: 1rem;
            margin-bottom: 0.2rem;
        }
        
        .mentor-modal p {
            font-size: 0.78rem;
            margin-bottom: 0.5rem;
        }
        
        .mentor-highlights {
            gap: 0.25rem;
            font-size: 0.65rem;
        }
        
        .mentor-highlights li {
            padding: 0.25rem 0.4rem;
        }
        
        .mentor-modal form {
            padding: 0 0.9rem 0.8rem;
            gap: 0.4rem;
        }
        
        .mentor-grid {
            gap: 0.45rem 0.5rem;
        }
        
        .mentor-field {
            font-size: 0.8rem;
        }
        
        .mentor-modal input,
        .mentor-modal select {
            padding: 0.6rem 0.7rem;
            font-size: 0.82rem;
            border-radius: 10px;
        }
        
        .mentor-modal form button {
            padding: 0.7rem 0.85rem;
            font-size: 0.88rem;
        }
        
        .join-modal {
            max-width: 340px;
            padding: 0.9rem 0.8rem;
        }
        
        .join-modal-header h3 {
            font-size: 1rem;
        }
        
        .join-modal-header p {
            font-size: 0.78rem;
        }
        
        .join-form-grid {
            gap: 0.45rem 0.5rem;
            margin-bottom: 0.6rem;
        }
        
        .join-field {
            font-size: 0.8rem;
        }
        
        .join-field input {
            padding: 0.65rem 0.75rem;
            font-size: 0.84rem;
        }
        
        .join-mode-sub {
            margin-top: 0.4rem;
            padding: 0.55rem 0.7rem;
            font-size: 0.73rem;
            line-height: 1.4;
        }
    }

    .thank-you-notification {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: var(--radius);
        padding: 2.5rem 2rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 3000;
        text-align: center;
        max-width: 400px;
        width: 90%;
        animation: slideUp 0.5s ease;
    }

    /* Animation for floating buttons */
    @keyframes floatPulse {
        0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
        50% { transform: scale(1.1); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); }
    }

    /* WhatsApp floating button */
    .whatsapp-btn {
        position: fixed;
        left: 20px;
        bottom: 50px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #25D366;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        z-index: 4000;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        animation: floatPulse 2s infinite ease-in-out;
    }

    .whatsapp-btn svg {
        width: 32px;
        height: 32px;
        display: block;
    }

    .whatsapp-btn:hover {
        animation: none; /* Pause animation on hover */
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    /* Call floating button */
    .call-btn {
        position: fixed;
        right: 20px;
        bottom: 50px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        z-index: 4000;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        animation: floatPulse 2s infinite ease-in-out;
        animation-delay: 1s; /* Alternate pulse with whatsapp */
    }

    .call-btn svg {
        width: 30px;
        height: 30px;
        display: block;
        fill: #fff;
    }

    .theme-toggle-btn {
        position: fixed;
        bottom: 120px;
        left: 20px;
        right: auto;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #2f4f9a, #6e8fd6);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        z-index: 4000;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        animation: togglePulse 3.2s ease-in-out infinite;
    }

    .theme-toggle-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
        animation: none;
    }

    .theme-toggle-btn svg {
        width: 26px;
        height: 26px;
        fill: currentColor;
        color: #fff;
    }

    .theme-toggle-btn .icon-sun {
        display: none;
    }

    body.dark-mode .theme-toggle-btn .icon-moon {
        display: none;
    }

    body.dark-mode .theme-toggle-btn .icon-sun {
        display: inline-block;
    }

    @keyframes togglePulse {
        0% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
        50% { transform: scale(1.05); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26); }
        100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
    }

    .call-btn:hover {
        animation: none;
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 480px) {
        .whatsapp-btn {
            left: 16px;
            bottom: 40px;
            width: 54px;
            height: 54px;
        }

        .whatsapp-btn svg {
            width: 28px;
            height: 28px;
        }

        .call-btn {
            right: 16px;
            bottom: 40px;
            width: 54px;
            height: 54px;
        }

        .call-btn svg {
            width: 26px;
            height: 26px;
        }

        .theme-toggle-btn {
            bottom: 104px;
            left: 16px;
            right: auto;
            width: 54px;
            height: 54px;
        }

        .theme-toggle-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
            color: #fff;
        }
    }

    .back-to-top {
        position: fixed;
        bottom: 120px;
        right: 20px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        z-index: 4000;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .back-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 480px) {
        .back-to-top {
            bottom: 104px;
            right: 16px;
            width: 54px;
            height: 54px;
        }
    }


    /* ---------------------------------
   Responsive helper rules (mobile)
   --------------------------------- */

    @media (max-width: 900px) {
        /* Mobile header: logo + CTA/lang + hamburger on one line */
        .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.6rem;
            padding: 10px 12px;
            position: relative;
        }

        .logo {
            font-size: 1rem;
            white-space: nowrap;
            order: 1;
        }

        .logo img {
            height: 32px;
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-left: auto;
            margin-right: 8px;
            flex-shrink: 0;
            order: 2;
        }

        .nav-cta-btn {
            font-size: 0.78rem;
            padding: 7px 12px;
        }

        .nav-lang-btn {
            font-size: 0.8rem;
            padding: 6px 10px;
        }

        .hamburger {
            display: block;
            position: relative;
            margin-left: 0;
            z-index: 2101;
            order: 3;
            pointer-events: auto;
        }

        .nav ul {
            display: none;
            flex-direction: column;
            gap: 0;
            background: rgba(255, 255, 255, 0.98);
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            padding: 0.75rem 1rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            z-index: 2100;
        }

        .nav ul.active {
            display: flex;
        }

        .nav ul li {
            display: block;
            padding: 10px 6px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            text-align: center;
        }

        .nav ul li:last-child {
            border-bottom: none;
        }

        .nav ul .nav-mobile-only {
            display: none;
        }

        /* Reduce hero paddings and scale headings */
        .hero {
            padding: 2.5rem 1.75rem 3rem;
        }

        .hero-content h1 {
            font-size: 1.6rem;
        }

        .hero-content p {
            font-size: 0.95rem;
            max-width: 420px;
        }

        .hero-image img {
            max-width: 320px;
            width: 100%;
        }

        /* Card spacing */
        .pain-grid,
        .features-grid {
            gap: 1rem;
        }

        /* Videos full width */
        .video-grid {
            gap: 1rem;
        }

        .video-card iframe {
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
        }

        :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq) {
            padding: 1.4rem 1.2rem;
            margin: 1.15rem auto;
        }
    }

    @media (max-width: 640px) {
        :root {
            --header-space: 64px;
        }

        section {
            padding: 1.2rem .75rem;
        }

        :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq) {
            padding: 1.2rem 0.9rem;
            margin: 1rem 0.5rem;
            border-radius: 12px;
        }

        .section-header h2 {
            font-size: 1.4rem;
        }

        .hero-content h1 {
            font-size: 1.3rem;
        }

        .hero-content p {
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

        .btn-main,
        .btn-outline {
            padding: 10px 14px;
            font-size: 0.95rem;
        }

        /* Make modal full-width with comfortable padding */
        .modal-content {
            width: calc(100% - 2rem);
            max-width: 520px;
            margin: 0 1rem;
            padding: 1.25rem;
            border-radius: 12px;
        }

        /* Keep table format on small screens (mobile-first). Avoid overflow and ensure proper wrapping */
        .table-wrap {
            display: flex;
            justify-content: center;
            padding: 0.5rem 0.25rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%;
        }

        .table-wrap table {
            width: 100%;
            border: none;
            box-shadow: 0 8px 20px rgba(0,0,0,0.04);
            table-layout: fixed;
            min-width: 0;
        }

        .table-wrap thead {
            display: table-header-group;
        }

        .table-wrap tbody tr {
            display: table-row;
            background: transparent;
            box-shadow: none;
            padding: 0;
            margin-bottom: 0;
        }

        .table-wrap thead th,
        .table-wrap tbody td {
            padding: 14px 8px;
            font-size: 0.7rem;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        /* Prefer readable column widths on small screens (adjust as needed) */
        .table-wrap th:nth-child(1){ width: 30%; }
        .table-wrap th:nth-child(2){ width: 23%; }
        .table-wrap th:nth-child(3){ width: 23%; }
        .table-wrap th:nth-child(4){ width: 24%; }

        .table-wrap td .pill { display: inline-block; }

        /* Stack hero layout vertically */
        .hero {
            grid-template-columns: 1fr;
            text-align: left;
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .hero-content {
            order: 0;
            padding: 20px 0;
        }

        .hero-image {
            order: 1;
            text-align: center;
        }

        /* Make join/mentor buttons stack */
        .hero-buttons {
            justify-content: flex-start;
            flex-direction: column;
            align-items: stretch;
        }

        .hero-buttons .btn-main,
        .hero-buttons a.btn-main {
            width: 100%;
            text-align: center;
        }

        /* Floating buttons adjustments to avoid overlapping important UI */
        /* Removed to keep buttons consistent and higher up */

    }

    @media (max-width:420px) {
        .hero-content h1 {
            font-size: 1.15rem;
        }

        .section-header h2 {
            font-size: 1.2rem;
        }

        .nav ul li {
            font-size: 0.95rem;
        }

        .logo {
            font-size: 1rem;
        }

        .logo img {
            display: none;
        }
    }

    /* Utility: avoid very long text in small screens */
    @media (max-width: 520px) {

        .section-header p,
        .about-text,
        .hero-content p {
            font-size: 0.95rem;
        }

        .about-text {
            text-align: center;
        }
    }

    /* Keep table layout even on very narrow screens; ensure wrapping and avoid overflow */
    @media (max-width: 360px) {
        body, html {
            overflow-x: hidden;
        }

        .nav {
            padding: 10px 8px;
            gap: 0.5rem;
        }

        .hero {
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        section {
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        .table-wrap {
            padding: 0.4rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table-wrap table {
            width: 100%;
            border: none;
            box-shadow: 0 6px 16px rgba(0,0,0,0.04);
            table-layout: fixed;
            min-width: 0;
        }

        .table-wrap thead {
            display: table-header-group;
        }

        .table-wrap thead th,
        .table-wrap tbody td {
            padding: 14px 18px;
            font-size: 0.95rem;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
        }
    }


    .thank-you-notification h2 {
        color: var(--primary);
        margin-bottom: 0.5rem;
        font-size: 1.6rem;
    }

    .thank-you-notification p {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .thank-you-notification .checkmark {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(179, 33, 33, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 2rem;
        color: var(--primary);
    }

    /* Demo Lecture: Horizontal Carousel Strip */
    .demo-lecture .demo-video-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1.5rem;
        padding: 1rem 0 1.25rem 0;
        scroll-behavior: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: auto;
        overscroll-behavior-x: contain;
    }

    .demo-lecture .demo-video-grid::-webkit-scrollbar {
        height: 6px;
    }

    .demo-lecture .demo-video-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .demo-lecture .demo-video-grid::-webkit-scrollbar-thumb {
        background: rgba(179, 33, 33, 0.3);
        border-radius: 10px;
    }

    .demo-lecture .demo-video-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(179, 33, 33, 0.5);
    }

    .demo-lecture .video-wrapper {
        flex: 0 0 420px;
        min-width: 420px;
        width: 420px;
        height: 236px;
        position: relative;
        background: var(--card-bg);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        scroll-snap-align: center;
    }

    .demo-lecture .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        pointer-events: auto;
    }

    @media (max-width: 768px) {
        .demo-lecture .video-wrapper { 
            flex: 0 0 300px; 
            min-width: 300px; 
            width: 300px;
            height: 169px;
        }
    }

    @media (max-width: 768px) {
        .demo-lecture .demo-video-grid {
            flex-direction: row;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x proximity;
            scroll-behavior: auto;
            gap: 1rem;
        }
    }

    @media (max-width: 480px) {
        .demo-lecture .demo-video-grid { gap: 0.75rem; }
        .demo-lecture .video-wrapper { 
            flex: 0 0 280px; 
            min-width: 280px; 
            width: 280px;
            height: 157px;
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    .notification-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 2999;
        display: none;
    }

    .notification-overlay.active {
        display: block;
    }

    /* Responsive tweaks */
    @media (max-width: 768px) {

        .hero {
            padding-top: 2rem;
            padding-bottom: 3rem;
            grid-template-columns: 1fr;
            text-align: center;
            gap: 1rem;
        }

        .hero-content h1 {
            font-size: 1.8rem;
        }

        .hero-content p {
            font-size: 0.9rem;
        }

        .hero-buttons,
        .twobtn {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-align: center;
        }

        .btn-main,
        .btn-outline {
            width: 100%;
            max-width: 250px;
            font-size: 0.9rem;
            padding: 10px 18px;
            text-align: center;
        }

        .hero-image img {
            width: 100%;
            max-width: 280px;
        }

        section {
            padding: 2rem 1rem;
        }

        :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq) {
            padding: 1.5rem 1.2rem;
            margin: 1.2rem auto;
        }

        .section-header {
            margin-bottom: 2rem;
        }

        .section-header h2 {
            font-size: 1.6rem;
        }

        .section-header p {
            font-size: 0.9rem;
        }

        .about {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .about-text > div {
            flex-direction: column;
            width: auto;
            gap: 0.5rem;
        }

        .about-text a.btn-main,
        .about-text button.btn-main {
            width: 100%;
            max-width: 280px;
        }

        .pain-grid,
        .features-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .pain-card,
        .feature-card {
            padding: 1rem;
        }

        .timeline::before {
            left: 18px;
        }

        .timeline-item {
            padding-left: 48px;
        }

        .timeline-item h3 {
            font-size: 1rem;
        }

        .timeline-item p {
            font-size: 0.85rem;
        }

        .testimonials {
            padding: 2rem 1rem;
        }

        /* Keep testimonials as a horizontal carousel on mobile with snap + touch scrolling */
        .testimonial-slider {
            flex-direction: row;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            gap: 1rem;
            padding-bottom: 0;
            justify-content: flex-start;
        }

        .testimonial-card {
            flex: 0 0 85%;
            max-width: 85%;
            scroll-snap-align: center;
            margin: 0;
        }

        .faq-item summary {
            font-size: 0.9rem;
            padding: 0.65rem 0.9rem;
        }

        .faq-item p {
            font-size: 0.85rem;
            padding: 0 1rem 0.8rem;
        }

        .cta {
            padding: 2rem 1rem;
        }

        .cta h2 {
            font-size: 1.5rem;
        }

        .cta p {
            font-size: 0.9rem;
        }

        .cta .cta-buttons {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-align: center;
        }

        .cta .cta-buttons button {
            width: 100%;
            max-width: 280px;
            font-size: 0.9rem;
            padding: 10px 18px;
            text-align: center;
        }

        .footer {
            padding: 1.5rem 1rem;
            font-size: 0.75rem;
        }

        .modal-content {
            width: 95%;
            padding: 1.5rem;
        }
    }

    /* Demo lecture / video grid */
    .demo-lecture .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
        align-items: start;
        margin-top: 1rem;
    }

    .demo-lecture .video-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    }

    .demo-lecture .video-card iframe {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        display: block;
        border: 0;
    }

    @media (max-width: 480px) {
        .demo-lecture .video-grid {
            gap: 0.6rem;
        }
    }

    /* Extra small screens */
    @media (max-width: 480px) {


        .hamburger {
            font-size: 1.3rem;
        }

        .logo {
            font-size: 0.9rem;
        }

        .nav-mentor-form button {
            font-size: 0.8rem;
            padding: 5px 10px;
        }

        .hero {
            padding-top: 1.5rem;
            padding-bottom: 2rem;
            gap: 0.8rem;
        }

        .hero-content h1 {
            font-size: 1.6rem;
        }

        .hero-content p {
            font-size: 0.85rem;
        }

        .hero-image img {
            max-width: 250px;
        }

        section {
            padding: 1.5rem 0.8rem;
        }

        :is(#overview, #batch, #pain, #structure, #how, #demo-lecture, #who, #faq) {
            padding: 1rem 0.75rem;
            margin: 0.9rem auto;
            border-radius: 10px;
        }

        .section-header h2 {
            font-size: 1.4rem;
        }

        .section-header p {
            font-size: 0.85rem;
        }

        .pain-card,
        .feature-card {
            padding: 0.8rem;
        }

        .timeline-item {
            padding-left: 40px;
        }

        .timeline::before {
            left: 15px;
        }

        .timeline-item::before {
            left: 9px;
        }

        .testimonials {
            padding: 1.5rem 0.8rem;
        }

        .testimonial-card {
            padding: 1rem;
        }

        .faq-item summary {
            padding: 0.7rem 0.8rem;
            font-size: 0.85rem;
        }

        .faq-item p {
            padding: 0 0.8rem 0.7rem;
            font-size: 0.8rem;
        }

        .cta {
            padding: 1.5rem 0.8rem;
        }

        .cta h2 {
            font-size: 1.3rem;
        }

        .cta p {
            font-size: 0.85rem;
        }

        .cta .cta-buttons button {
            max-width: 220px;
            font-size: 0.85rem;
            padding: 8px 16px;
        }

        .footer {
            padding: 1rem 0.8rem;
            font-size: 0.7rem;
        }

        .modal-content {
            width: 98%;
            padding: 1rem;
        }

        .modal-content h3 {
            font-size: 1.1rem;
        }

        .modal-content p {
            font-size: 0.85rem;
        }
    }

@media (max-width: 768px) {
  /* Mobile Hero Reordering: Image -> Buttons -> Text */
  .hero {
    display: flex;
    flex-direction: column;
  }
  
  .hero-content {
    display: contents;
  }

  /* 1. Image at top */
  .hero-image {
    order: -2;
    margin-bottom: 1.5rem;
  }

  /* 2. Buttons below image */
  .hero-buttons {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 0;
  }

  /* Ensure text elements fall into place with natural order 0 */
}


/* ===== Hindi page UI fixes =====
     These rules reinstate primary layout and controls for pages using
     <html lang="hi"> without changing the English styling. Keep these
     minimal and specific so they only affect Hindi pages. */

:lang(hi) header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

:lang(hi) .nav {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 0.75rem;
}

@media (min-width: 901px) {
:lang(hi) .nav ul {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
}

:lang(hi) .nav ul li {
        cursor: pointer;
        font-size: 0.85rem;
        padding-bottom: 6px;
}

:lang(hi) .nav-right { display: flex; align-items: center; gap: 0.75rem; }

:lang(hi) .hero {
        display: grid;
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        padding: 2rem clamp(0.75rem, 6vw, 3.5rem) 2.5rem;
        gap: 1.25rem;
        align-items: center;
        text-align: center;
}

/* Make hero responsive to hover like other cards/sections */
:lang(hi) .hero { transition: transform var(--transition), box-shadow var(--transition); }
:lang(hi) .hero:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(0,0,0,0.12); }

/* Dark-mode shadow is subtler */
body.dark-mode :lang(hi) .hero:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.32); transform: translateY(-4px); }

:lang(hi) .hero-content { text-align: left; }

:lang(hi) .hero-content h1 { font-size: 2.1rem; margin-bottom: 0.6rem; }

:lang(hi) .hero-content .hero-sub,
:lang(hi) .hero-content p { color: var(--text-muted); max-width: 560px; }

:lang(hi) .hero-buttons { justify-content: flex-start; }

/* Visual polish for Hindi hero: card, accent bar, refined type and CTAs */
:lang(hi) .hero {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,250,250,0.8));
    border-radius: 18px;
    padding: 2.2rem clamp(1rem, 6vw, 3.5rem) 2.6rem;
    box-shadow: 0 22px 60px rgba(179,33,33,0.06);
}

:lang(hi) .hero-content {
    position: relative;
    padding: 0 0.6rem;
}

/* Decorative vertical accent for larger screens */
:lang(hi) .hero-content::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 6px;
    bottom: 6px;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 18px rgba(179,33,33,0.08);
    display: none;
}

@media (min-width: 900px) {
    :lang(hi) .hero-content::before { display: block; }
}

:lang(hi) .hero-highlight {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(179,33,33,0.06);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 0.65rem;
}

/* Force-centering for the top strip on desktop to override earlier left-aligned rules */
@media (min-width: 900px) {
    :lang(hi) .hero-content { text-align: center !important; }
    :lang(hi) .hero-content > .hero-highlight {
        display: inline-block !important;
        margin: 0 auto 10px auto !important;
        transform: translateX(8%) !important;
    }
    :lang(hi) .hero-buttons { justify-content: center !important; }
}

:lang(hi) .hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.05;
    margin: 0.15rem 0 0.6rem 0;
    font-weight: 700;
}

:lang(hi) .hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), #e59c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

:lang(hi) .hero-sub {
    font-size: 1.02rem;
    color: #374151;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

:lang(hi) .hero-content p { color: #4b5563; max-width: 640px; }

:lang(hi) .hero-buttons .btn-main {
    padding: 14px 26px;
    font-size: 1.02rem;
    box-shadow: 0 12px 32px rgba(179,33,33,0.18);
}

:lang(hi) .hero-buttons .btn-outline {
    padding: 12px 22px;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(179,33,33,0.12);
}

:lang(hi) .hero-image { display: flex; align-items: center; justify-content: center; }
:lang(hi) .hero-image img {
    max-width: 420px;
    width: 100%;
    transform: translateY(0);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-radius: 14px;
}

/* Subtle entrance animation for prominence */
@media (prefers-reduced-motion: no-preference) {
    :lang(hi) .hero { animation: heroEnter 650ms ease both; }
    @keyframes heroEnter {
        from { transform: translateY(6px); opacity: 0.98; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* Tweak spacing on small screens so card feels roomy */
@media (max-width: 640px) {
    :lang(hi) .hero { padding: 1rem 0.8rem 1.2rem; border-radius: 12px; }
    :lang(hi) .hero-content h1 { font-size: 1.8rem; }
    :lang(hi) .hero-content p, :lang(hi) .hero-sub { max-width: 100%; }
    :lang(hi) .hero-content::before { display: none; }
}

/* Extra small / handset polish for Hindi hero */
@media (max-width: 480px) {
    :lang(hi) .hero {
        padding: 0.9rem 0.9rem 1rem;
        border-radius: 10px;
        box-shadow: 0 18px 44px rgba(179,33,33,0.05);
    }

    :lang(hi) .hero-content {
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
    }

    :lang(hi) .hero-highlight {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    :lang(hi) .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.06;
        margin-bottom: 0.45rem;
        letter-spacing: 0.2px;
    }

    :lang(hi) .hero-sub {
        font-size: 0.98rem;
        margin-bottom: 0.5rem;
    }

    :lang(hi) .hero-content p {
        font-size: 0.95rem;
        color: #4b5563;
    }

    :lang(hi) .hero-content .hero-list {
        margin: 8px auto 12px auto;
        padding-left: 1rem;
        font-size: 0.95rem;
    }

    :lang(hi) .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
        margin-top: 0.9rem;
    }

    :lang(hi) .hero-buttons .btn-main,
    :lang(hi) .hero-buttons .btn-outline {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }

    /* Place hero image below content and reduce size on very small screens */
    :lang(hi) .hero-image { margin-top: 0.8rem; }
    :lang(hi) .hero-image img { max-width: 320px; width: 86%; }

    /* Slightly increase contrast for readability on small displays */
    :lang(hi) .hero-content h1 span { opacity: 0.98; }
}

/* Hero meta cards (dates / fee / medium / mentor) - Hindi page */
:lang(hi) .hero-meta { margin-top: 0.9rem; }

:lang(hi) .meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0.9rem;
    align-items: stretch;
}

:lang(hi) .meta-card {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

:lang(hi) .meta-icon {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(180deg, rgba(250,240,240,0.9), rgba(255,250,250,0.9));
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

:lang(hi) .meta-body { display: flex; flex-direction: column; }
:lang(hi) .meta-label { font-size: 0.72rem; color: #8b8b8b; font-weight: 700; letter-spacing: 0.6px; }
:lang(hi) .meta-value { font-size: 0.95rem; font-weight: 800; color: #111827; margin-top: 2px; }

/* Accent borders for the first two cards to match the design */
:lang(hi) .meta-card:nth-child(1) { border-left: 6px solid rgba(179,33,33,0.12); }
:lang(hi) .meta-card:nth-child(2) { border-left: 6px solid rgba(34,179,33,0.08); }
:lang(hi) .meta-card:nth-child(3) { border-left: 6px solid rgba(33,107,179,0.08); }
:lang(hi) .meta-card:nth-child(4) { border-left: 6px solid rgba(238,180,15,0.08); }

@media (max-width: 900px) {
    :lang(hi) .meta-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 480px) {
    :lang(hi) .meta-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    :lang(hi) .meta-card { padding: 10px 12px; }
    :lang(hi) .meta-icon { flex: 0 0 36px; height: 36px; font-size: 16px; }
    :lang(hi) .meta-value { font-size: 0.95rem; }
}

/* Highlight booking card to draw attention */
:lang(hi) .meta-card.booking {
    background: linear-gradient(90deg, rgba(179,33,33,0.95), rgba(179,33,33,0.82));
    color: #fff;
    border: none;
}

:lang(hi) .meta-card.booking .meta-icon { background: rgba(255,255,255,0.12); color: #fff; }
:lang(hi) .meta-card.booking .meta-label { color: rgba(255,255,255,0.9); }
:lang(hi) .meta-card.booking .meta-value { color: #fff; }

@media (max-width: 900px) {
    :lang(hi) .meta-card.booking { order: 4; }
}

/* === Oval bullet box (replaces meta-cards as requested) === */
:lang(hi) .hero-oval-wrap { margin-top: 1rem; }

:lang(hi) .hero-oval {
    display: inline-block;
    background: var(--card-bg);
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid rgba(179,33,33,0.06);
    box-shadow: 0 10px 28px rgba(16,24,40,0.04);
    position: relative;
    max-width: 760px;
}

:lang(hi) .hero-oval::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: -8px;
    bottom: -8px;
    border-radius: 999px;
    border: 2px solid rgba(179,33,33,0.12);
    opacity: 0.95;
    pointer-events: none;
    animation: pulseRing 2200ms ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.98); opacity: 0.9; }
    60% { transform: scale(1.02); opacity: 0.18; }
    100% { transform: scale(1.04); opacity: 0; }
}

:lang(hi) .oval-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
:lang(hi) .oval-list li { font-weight: 700; color: #0f172a; padding: 6px 8px; }

/* slight float animation for the bullets */
@keyframes floatBullet { 0% { transform: translateY(0); } 50% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
:lang(hi) .oval-list li { animation: floatBullet 3200ms ease-in-out infinite; }

/* Respect user pref for reduced motion */
@media (prefers-reduced-motion: reduce) {
    :lang(hi) .hero-oval::after,
    :lang(hi) .oval-list li { animation: none !important; }
}

/* Dark mode */
body.dark-mode :lang(hi) .hero-oval {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.36);
    color: #f8fafc;
}
body.dark-mode :lang(hi) .hero-oval::after { border-color: rgba(179,33,33,0.28); }
body.dark-mode :lang(hi) .oval-list li { color: #f8fafc; }

/* Responsive: full-width oval on small screens */
@media (max-width: 640px) {
    :lang(hi) .hero-oval { display: block; width: 100%; padding: 10px 14px; }
    :lang(hi) .hero-oval::after { left: -6px; right: -6px; top: -6px; bottom: -6px; }
    :lang(hi) .oval-list li { font-size: 0.95rem; }
}

/* Mobile overrides: keep left-aligned content and readable layout */
@media (max-width: 900px) {
    :lang(hi) .hero {
        text-align: left;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    :lang(hi) .hero-content {
        text-align: left;
        margin: 0;
        max-width: 100%;
        padding-left: 0;
    }

    /* Ensure bullet lists remain left-aligned */
    :lang(hi) .hero-content .hero-list {
        display: block;
        margin: 8px 0 12px 0;
        text-align: left;
        padding-left: 1.15rem;
    }

    :lang(hi) .hero-buttons { justify-content: flex-start; }

    :lang(hi) .hero-image img { margin: 0; display: block; }
}

:lang(hi) .btn-main,
:lang(hi) .btn-outline { min-height: 44px; padding: 12px 20px; border-radius: 999px; }

:lang(hi) .hero-image { text-align: center; }

:lang(hi) section { padding: 0.9rem 1rem; max-width: 1200px; }

/* Ensure language switch and CTA visible */
:lang(hi) .nav-lang-btn { display: inline-block; }

/* Small screens: ensure hero remains compact */
@media (max-width: 640px) {
        :lang(hi) .hero { padding-top: 1rem; padding-bottom: 1rem; }
        :lang(hi) .hero-content h1 { font-size: 1.4rem; }
}

/* === Hindi hero: modern, minimal, and readable refinements === */
:lang(hi) .hero {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 12px 28px rgba(16,24,40,0.06);
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

:lang(hi) .hero-content {
    padding: 0.15rem 0.5rem;
}

:lang(hi) .hero-highlight {
    display: inline-block;
    background: rgba(179,33,33,0.06);
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

:lang(hi) .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.08;
    margin: 0 0 0.45rem 0;
    color: #0f172a;
    font-weight: 700;
}

:lang(hi) .hero-sub {
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.6rem;
}

:lang(hi) .hero-content p {
    color: #475569;
    margin-bottom: 0.6rem;
    max-width: 740px;
    font-size: 0.98rem;
}

:lang(hi) .hero-list { padding-left: 1.2rem; margin: 8px 0 12px 0; }
:lang(hi) .hero-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.45rem; color: #0f172a; font-weight: 600; }
:lang(hi) .hero-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); transform: translateY(-50%); }

/* Apply oval/pulsing effect to hero's central bullet list (avoid duplicate markup) */
:lang(hi) .hero .hero-list {
    display: inline-block;
    background: var(--card-bg);
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid rgba(179,33,33,0.06);
    box-shadow: 0 10px 22px rgba(16,24,40,0.04);
    position: relative;
    margin-left: 0;
}

:lang(hi) .hero .hero-list::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: -8px;
    bottom: -8px;
    border-radius: 999px;
    border: 2px solid rgba(179,33,33,0.12);
    pointer-events: none;
    animation: pulseRing 2200ms ease-out infinite;
}

:lang(hi) .hero .hero-list li { padding: 6px 8px 6px 28px; display: block; }
:lang(hi) .hero .hero-list li::before { left: 8px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; }

@media (prefers-reduced-motion: reduce) {
    :lang(hi) .hero .hero-list::after,
    :lang(hi) .hero .hero-list li { animation: none !important; }
}

@media (max-width: 640px) {
    /* Keep oval shrink-wrapped on small screens; allow it to wrap content but not overflow */
    :lang(hi) .hero .hero-list { display: inline-block; width: auto; padding: 8px 12px; max-width: 100%; }
    :lang(hi) .hero .hero-list::after { left: -6px; right: -6px; top: -6px; bottom: -6px; }
    :lang(hi) .hero .hero-list li { font-size: 0.95rem; }
}

:lang(hi) .hero-buttons { justify-content: flex-start; margin-top: 1rem; }

:lang(hi) .btn-main { padding: 10px 20px; font-size: 1rem; border-radius: 999px; box-shadow: 0 8px 18px rgba(179,33,33,0.08); display:inline-flex; align-items:center; justify-content:center; gap:0.6rem; white-space:nowrap; }
:lang(hi) .btn-outline { background: transparent; color: var(--primary); border: 1px solid rgba(179,33,33,0.18); padding: 8px 16px; display:inline-flex; align-items:center; justify-content:center; gap:0.5rem; border-radius:999px; white-space:nowrap; }

/* Ensure CTAs wrap to their content and are visually centered */
.btn-main, .btn-outline { width: auto; min-width: 0; }

/* Slight hover states to match design */
:lang(hi) .btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(179,33,33,0.12); }
:lang(hi) .btn-outline:hover { background: rgba(179,33,33,0.04); border-color: rgba(179,33,33,0.24); }

:lang(hi) .hero-image { text-align: right; }
:lang(hi) .hero-image img { width: 100%; max-width: 420px; border-radius: 12px; box-shadow: 0 12px 30px rgba(16,24,40,0.06); }

@media (min-width: 900px) {
    :lang(hi) .hero { grid-template-columns: 1fr 420px; padding: 2rem 2.25rem; }
    :lang(hi) .hero-content { padding-right: 1rem; }
}

@media (max-width: 640px) {
    :lang(hi) .hero { padding: 1rem; box-shadow: none; border-radius: 8px; }
    :lang(hi) .hero-content h1 { font-size: 1.45rem; }
    :lang(hi) .hero-image { text-align: center; }
}

/* === Option B: Magazine-style, left-aligned hero for Hindi page === */
/* Make this visually consistent with other section cards and dark-mode */

:lang(hi) .hero {
    display: grid;
    /* left column constrained, right column for image */
    grid-template-columns: minmax(0, 740px) 360px;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.4rem;
    background: var(--section-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--section-shadow);
    text-align: left;
}

:lang(hi) .hero-content {
    position: relative;
    padding-left: 1rem;
    max-width: 720px;
}

/* Vertical accent line (subtle) */
:lang(hi) .hero-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    opacity: 0.08;
}

:lang(hi) .hero-highlight { margin-left: 8px; }


:lang(hi) .hero-content h1 { margin-left: 8px; font-size: 2.1rem; }

:lang(hi) .hero-sub { margin-left: 8px; font-size: 1.02rem; }

:lang(hi) .hero-content p { margin-left: 8px; color: var(--text-muted); }

:lang(hi) .hero-list { margin: 10px 0 12px 12px; }
:lang(hi) .hero-list li { margin-bottom: 0.45rem; padding-left: 0.9rem; font-weight: 600; color: #0f172a; }
:lang(hi) .hero-list li::before { display: none; }

:lang(hi) .hero-buttons { margin-left: 8px; justify-content: flex-start; }

:lang(hi) .btn-main {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 26px rgba(179,33,33,0.08);
    border: none;
}
:lang(hi) .btn-outline { background: transparent; border: 1px solid rgba(16,24,40,0.06); color: var(--primary); }

:lang(hi) .hero-image { text-align: right; }
:lang(hi) .hero-image img { width: 100%; max-width: 360px; height: auto; border-radius: 12px; object-fit: cover; }

/* Ensure Hindi hero collapses on small screens — explicit override */
@media (max-width: 768px) {
    :lang(hi) .hero {
        display: flex !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 0.8rem !important;
        align-items: stretch;
        box-shadow: none !important;
        border-radius: 8px !important;
    }
    :lang(hi) .hero-content {
        display: contents !important;
        padding-left: 0 !important;
        max-width: 100% !important;
    }
    :lang(hi) .hero-image { order: -2 !important; margin-bottom: 1rem !important; text-align: center !important; }
    :lang(hi) .hero-buttons { order: -1 !important; width: 100% !important; justify-content: center !important; margin-bottom: 1rem !important; }
    :lang(hi) .hero-content h1 { font-size: 1.6rem !important; }
    :lang(hi) .hero-image img { max-width: 280px !important; }
}

/* Dark mode parity */
body.dark-mode :lang(hi) .hero {
    background: var(--section-bg);
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

body.dark-mode :lang(hi) .hero-content::before {
    opacity: 0.14;
}

body.dark-mode :lang(hi) .hero-content h1,
body.dark-mode :lang(hi) .hero-list li { color: var(--text-main); }

@media (max-width: 900px) {
    :lang(hi) .hero { grid-template-columns: 1fr; }
    :lang(hi) .hero-image { order: 2; text-align: center; margin-top: 1rem; }
    :lang(hi) .hero-content::before { display: none; }
    :lang(hi) .hero { padding: 1rem; box-shadow: none; }
}





