    :root {
        /* Core colours */
        --primary: #b32121;
        --primary-600: #b91c1c;
        --primary-700: #7f1d1d;
        --primary-dark: #630000;
        --accent: #f59e0b;
        --accent-600: #d97706;
        --brand-blue: #2563eb;
        --bg: #fdf7f2;
        --bg-alt: #ffffff;
        --surface: #ffffff;
        --surface-alt: #fff8f1;
        --border: rgba(0, 0, 0, 0.08);
        --text-main: #111827;
        --text-muted: #4b5563;
        --header-space: 104px;
        --radius: 0.6rem;
        --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        --transition: 0.3s ease;
        --float-base: 96px;
        --float-gap: 64px;
    }

    * {
        box-sizing: border-box;
    }

    /* Prevent accidental horizontal scrolling from positioned elements */
    html {
        overflow-x: hidden;
    }

    body {
        margin: 0;
        padding-top: var(--header-space);
        font-family: "Neue Montreal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: var(--text-main);
        background: var(--bg);
        overflow-x: hidden;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    section {
        transition: background-color var(--transition);
    }

    section:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }

    h1,
    h2,
    h3,
    h4 {
        margin: 0;
        font-weight: 600;
    }

    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: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        gap: 3.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.06em;
        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: 1rem;
        margin: 0;
        padding: 0;
    }

    .nav ul li {
        cursor: pointer;
        font-size: 0.9rem;
        position: relative;
        padding-bottom: 6px;
        display: inline-block;
    }

    /* Mobile nav behaviour: hide the full menu and show hamburger */
    @media (max-width: 900px) {
        .hamburger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav ul {
            display: none;
            position: absolute;
            top: calc(var(--header-space));
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.98);
            flex-direction: column;
            gap: 0.5rem;
            padding: 1rem 1.25rem 1.25rem;
            z-index: 1999;
            box-shadow: 0 8px 28px rgba(0,0,0,0.08);
        }

        .nav ul.active {
            display: flex;
        }

        .nav ul li {
            display: block;
            padding: 0.6rem 0;
            font-size: 1rem;
        }

        /* reduce header space on smaller screens */
        :root { --header-space: 72px; }
    }

    /* 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;
    }

    .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;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .language-toggle {
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text-main);
        border-radius: 999px;
        padding: 6px 12px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        margin-right: 8px;
    }

    .language-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    }

    .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;
        }
    }

    @media (max-width: 900px) {
        .logo img {
            display: none;
        }
    }

    /* Hero */
    .hero {
        display: grid;
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        padding: 4rem 1rem 5rem;
        gap: 2rem;
        align-items: center;
        position: relative;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-text {
        max-width: 640px;
    }

    /* .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);
        }
    }

    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content h1 span {
        background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
        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 1.5rem;
    }

    .hero-highlight {
        color: var(--primary-700);
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
        justify-content: center;
        align-items: center;
    }

    .twobtn,
    .table-cta,
    .cta .cta-buttons {
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    @media (max-width: 640px) {
        .hero-buttons,
        .twobtn,
        .table-cta,
        .cta .cta-buttons,
        .cta-group {
            flex-direction: column !important;
            align-items: center;
        }

        .hero-buttons .btn-main,
        .hero-buttons .btn-outline,
        .twobtn .btn-main,
        .twobtn .btn-outline,
        .table-cta .btn-main,
        .cta-group .btn-main,
        .cta-group .btn-outline,
        .cta .cta-buttons .btn-main,
        .cta .cta-buttons .btn-outline {
            width: 100%;
            max-width: 280px;
        }
    }

    .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);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: 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);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: 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);
    }

    @media (max-width: 768px) {
        .hero {
            display: flex;
            flex-direction: column;
            padding: 2.5rem 1rem 3.5rem;
        }

        .hero-content {
            display: contents;
        }

        .hero-image {
            order: 1;
        }

        .hero-buttons {
            order: 2;
            width: 100%;
        }

        .hero-text {
            order: 3;
        }
    }


    .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 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;
        min-width: 200px;
        flex: 0 0 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .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;
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    /* Highlighted name style (as requested) */
    .highlight {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 10px;
        background: linear-gradient(90deg, var(--primary-600), var(--primary-700));
        color: white;
        box-shadow: 0 6px 18px rgba(179, 33, 33, 0.06);
        text-align: center;
    }

        /* 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(--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%);
        display: none;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(17, 24, 39, 0.08);
        background: rgba(255, 255, 255, 0.7);
        color: #111827;
        cursor: pointer;
        z-index: 10;
        font-size: 1.15rem;
        font-weight: 600;
        display: none;
        align-items: center;
        justify-content: center;
        transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
        box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
        backdrop-filter: blur(8px);
    }

    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(17, 24, 39, 0.18);
        color: var(--primary);
        transform: translateY(-50%) scale(1.03);
        box-shadow: 0 10px 20px rgba(17, 24, 39, 0.12);
    }

    .carousel-btn:active {
        transform: translateY(-50%) scale(0.98);
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    @media (max-width: 768px) {
        .carousel-btn {
            display: inline-flex;
        }
    }

    .carousel {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        overflow: hidden;
    }

    .carousel-track {
        display: flex;
        gap: 1.2rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0.6rem 0 0.8rem;
        scroll-padding: 0;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        align-items: stretch;
        scrollbar-width: none;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-scrollbar {
        height: 5px;
        margin: 0 1.6rem 0.6rem;
        background: rgba(0, 0, 0, 0.12);
        border-radius: 999px;
        overflow: hidden;
    }

    .carousel-scrollbar span {
        display: block;
        height: 100%;
        width: 20%;
        background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
        border-radius: 999px;
        transition: width 200ms ease, transform 200ms ease;
    }

    .carousel-track > * {
        scroll-snap-align: center;
        flex: 0 0 auto;
    }

    .carousel-track > *:first-child {
        margin-left: 1.4rem;
    }

    .carousel-track > *:last-child {
        margin-right: 1.4rem;
    }

    .alumni-carousel .carousel-track,
    .demo-carousel .carousel-track {
        justify-content: flex-start;
    }

    .alumni-carousel .carousel-track {
        scroll-padding: 0;
    }

    /* Keep arrows visible on small screens to indicate scroll */
    @media (max-width: 480px) {
        .carousel-btn {
            width: 38px;
            height: 38px;
            font-size: 1rem;
        }

        .carousel-track {
            padding: 0.6rem 0 0.8rem;
            scroll-padding: 0;
        }

        .carousel-scrollbar {
            margin: 0 0.8rem 0.6rem;
        }

        .carousel-track > *:first-child {
            margin-left: 1rem;
        }

        .carousel-track > *:last-child {
            margin-right: 1rem;
        }
    }

    .about,
    .pain-card,
    .feature-card,
    .flow-grid .card,
    .testimonial-card,
    .alumni-card,
    .who-list,
    .table-wrap table,
    .cta,
    .demo-lecture .video-wrapper,
    .demo-lecture .video-card {
        transition: transform var(--transition), box-shadow var(--transition);
    }

    .about:hover,
    .pain-card:hover,
    .feature-card:hover,
    .flow-grid .card:hover,
    .testimonial-card:hover,
    .alumni-card:hover,
    .who-list:hover,
    .table-wrap table:hover,
    .cta:hover,
    .demo-lecture .video-wrapper:hover,
    .demo-lecture .video-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    }
    /* Sections */
    section {
        padding: 2rem 1rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-header {
        text-align: center;
    }

    .section-header .tag {
        font-size: 0.85rem;
        color: var(--primary-700);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
        position: relative;
        display: inline-block;
        padding: 0 1rem;
        z-index: 1;
    }

    /* 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, var(--primary-700), transparent);
    }

    .section-header .tag::after {
        left: 100%;
        margin-left: 12px;
        background: linear-gradient(to right, var(--primary-700), 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.5rem;
    }

    .section-header p {
        font-size: 1rem;
        color: var(--text-muted);
        max-width: 720px;
        margin: 0 auto;
    }

    /* 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;
        }
    }

    /* About section */
    .about {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .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.6;
        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(auto-fit, minmax(280px, 1fr));
        gap: 1.6rem;
    }

    .pain-card {
        background: var(--bg-alt);
        border-radius: var(--radius);
        padding: 1.4rem 1.2rem;
        box-shadow: var(--shadow);
        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(auto-fit, minmax(280px, 1fr));
        gap: 1.6rem;
    }

    .feature-card {
        background: var(--bg-alt);
        border-radius: var(--radius);
        padding: 1.6rem 1.4rem 1.8rem;
        box-shadow: var(--shadow);
        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;
    }

    .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: 1.25rem;
        justify-content: center;
        margin-top: 1rem;
        width: 100%;
    }

    .flow-grid .card {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: 1.4rem;
        border-radius: 12px;
        background: var(--surface);
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        border: 1px solid var(--border);
    }

    .flow-grid .card h3 {
        color: var(--primary-600);
    }

    @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 table */
    .table-wrap {
        display: flex;
        justify-content: center;
        padding: 1.8rem 1rem 1.2rem;
        position: relative;
        animation: tableFloat 6s ease-in-out infinite;
    }

    .table-wrap table {
        width: 100%;
        max-width: 920px;
        border-collapse: collapse;
        background: var(--surface);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid var(--border);
        transition: var(--transition);
    }

    .table-wrap table:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    }

    .table-wrap thead th {
        background: linear-gradient(135deg, rgba(179, 33, 33, 0.16), rgba(179, 33, 33, 0.05));
        color: var(--primary-dark);
        text-align: left;
        padding: 16px 20px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    .table-wrap tbody td {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border);
        font-size: 0.96rem;
        color: var(--text-main);
    }

    .table-wrap tbody tr:nth-child(even) {
        background: rgba(0, 0, 0, 0.02);
    }

    .table-wrap tbody tr {
        transition: var(--transition);
    }

    .table-wrap tbody tr:hover {
        background: rgba(179, 33, 33, 0.06);
    }

    .table-wrap::after {
        content: "↓";
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--surface);
        color: var(--primary);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        animation: nudgeDown 1.8s ease-in-out infinite;
    }

    .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.8rem 0.7rem 1.4rem;
            animation: none;
        }

        .table-wrap table {
            width: 100%;
        }

        .table-wrap thead {
            display: none;
        }

        .table-wrap tbody tr {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            padding: 1rem 1rem 1.05rem;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: var(--surface);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
            margin-bottom: 0.9rem;
            position: relative;
            overflow: hidden;
            animation: tableCardIn 420ms ease both;
        }

        .table-wrap tbody tr::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), #ff7b7b);
            opacity: 0.85;
        }

        .table-wrap tbody tr:nth-child(1) { animation-delay: 80ms; }
        .table-wrap tbody tr:nth-child(2) { animation-delay: 160ms; }
        .table-wrap tbody tr:nth-child(3) { animation-delay: 240ms; }

        .table-wrap tbody td {
            padding: 0;
            border: none;
            font-size: 0.95rem;
            line-height: 1.3;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.6rem;
        }

        .table-wrap tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: none;
            letter-spacing: 0.02em;
        }

        .table-wrap tbody td:nth-child(1) {
            justify-content: flex-start;
            gap: 0.6rem;
            font-weight: 700;
        }

        .table-wrap tbody td:nth-child(1)::before {
            display: none;
        }

        .table-wrap tbody td:nth-child(1) {
            background: rgba(37, 99, 235, 0.08);
            color: #1d4ed8;
            border-radius: 999px;
            padding: 0.4rem 0.8rem;
            font-size: 0.82rem;
            width: fit-content;
        }

        .table-wrap tbody td:nth-child(4) {
            justify-content: space-between;
            background: rgba(179, 33, 33, 0.08);
            border-radius: 10px;
            padding: 0.6rem 0.75rem;
            font-weight: 700;
            color: var(--primary-dark);
        }
    }

    @keyframes tableCardIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.99);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .table-wrap tbody tr {
            animation: none;
        }
    }

    .table-cta .btn-main {
        position: relative;
        animation: ctaPulse 3.2s ease-in-out infinite;
    }

    .table-cta .btn-main:nth-child(2) {
        animation-delay: 0.6s;
    }

    @keyframes tableFloat {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-6px);
        }
    }

    @keyframes nudgeDown {
        0%, 100% {
            transform: translate(-50%, 0);
        }
        50% {
            transform: translate(-50%, 6px);
        }
    }

    @keyframes ctaPulse {
        0%, 100% {
            box-shadow: 0 12px 28px rgba(179, 33, 33, 0.2);
        }
        50% {
            box-shadow: 0 18px 36px rgba(179, 33, 33, 0.35);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .table-wrap,
        .table-wrap::after,
        .table-cta .btn-main {
            animation: none;
        }
    }

    /* 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(--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 styles are defined earlier; avoid duplicate definitions here. */

    /* 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;
    }

    .theme-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #1b1f3a, #2a2149);
        color: #fff;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 12px 28px rgba(27, 31, 58, 0.6), 0 0 0 6px rgba(110, 203, 255, 0.12);
        z-index: 4000;
        animation: popPulse 2.6s ease-in-out infinite;
    }

    .theme-toggle:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(27, 31, 58, 0.72), 0 0 0 8px rgba(110, 203, 255, 0.16);
        animation-play-state: paused;
    }

    .theme-toggle .theme-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .theme-toggle.floating {
        position: fixed;
        left: 20px;
        bottom: calc(var(--float-base, 90px) + var(--float-gap, 52px));
    }

    .back-to-top {
        position: fixed;
        right: 20px;
        bottom: calc(var(--float-base, 90px) + var(--float-gap, 52px));
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: #f3b1ad;
        color: var(--text-main);
        font-size: 1.2rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(179, 33, 33, 0.28);
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
        transition: var(--transition);
        z-index: 4000;
    }

    .back-to-top.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(179, 33, 33, 0.35);
    }

    @media (max-width: 480px) {
        .theme-toggle.floating {
            left: 12px;
            bottom: 64px;
            width: 48px;
            height: 48px;
        }

        .back-to-top {
            right: 12px;
            bottom: 64px;
            width: 40px;
            height: 40px;
        }
    }

    /* 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 {
        max-width: 800px;
        margin: 0 auto;
    }

    .faq-item {
        background: var(--bg-alt);
        margin-bottom: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .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;
    }

    /* 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;
    }

    .alumni-marks {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
        text-align: center;
    }

    .alumni-badge {
        display: inline-block;
        margin-left: 0.5rem;
        padding: 0.12rem 0.5rem;
        background: linear-gradient(90deg,var(--accent),var(--primary));
        color: #fff;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 700;
        vertical-align: middle;
    }

    @media (max-width: 640px) {
        .alumni-card img { width: 110px; height:110px; }
        .alumni-card { min-width: 140px; }
    }

    /* Special styling for highlighted achiever (Ravi) */
    .alumni-card.special {
        background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
        border-radius: 14px;
        padding: 1rem;
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        transform-origin: center;
        position: relative;
        transition: transform 360ms ease, box-shadow 360ms ease;
        grid-row: span 1;
    }

    .alumni-card.special:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 28px 60px rgba(0,0,0,0.18); }

    .alumni-card.special .alumni-name { font-size: 1.05rem; letter-spacing: 0.01em; }
    .alumni-card.special .alumni-marks { font-size: 0.95rem; color: var(--text-main); margin-top: 0.5rem; }

    /* Decorative ribbon for rank */
    .alumni-card .ribbon {
        position: absolute;
        left: 12px;
        top: 12px;
        background: linear-gradient(90deg, var(--primary), var(--primary-700));
        color: #fff;
        padding: 6px 10px;
        border-radius: 8px;
        font-weight: 800;
        font-size: 0.8rem;
        box-shadow: 0 6px 18px rgba(179,33,33,0.18);
    }

    .alumni-card .alumni-highlight {
        margin-top: 0.5rem;
        font-size: 0.82rem;
        color: var(--primary-700);
        font-weight: 700;
        text-align: center;
    }

    /* Make the first (special) card span more space on wide screens */
    @media (min-width: 960px) {
        .alumni-grid { grid-template-columns: repeat(4, 1fr); }
        .alumni-grid .alumni-card.special { grid-column: span 2; align-self: start; }
    }

    /* Stack nicely on small screens */
    @media (max-width: 640px) {
        .alumni-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
        .alumni-grid .alumni-card.special { grid-column: span 2; }
        .alumni-card { padding: 0.6rem; }
        .alumni-card .ribbon { left: 8px; top: 8px; font-size: 0.7rem; padding: 4px 8px; }
    }

    /* New alumni layout: featured + list */
    .alumni-layout { display: grid; gap: 1rem; align-items: start; }
    .alumni-layout .featured { display: flex; gap: 1rem; align-items: center; padding: 1rem; }
    .featured-media img { width: 170px; height:170px; object-fit:cover; border-radius: 50%; border:8px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.14); }
    .featured-body { flex:1; }
    .featured-cta a { display:inline-block; margin-top:0.75rem; background:var(--primary); color:#fff; padding:8px 12px; border-radius:8px; font-weight:700; text-decoration:none; }

    .alumni-list { display:grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .alumni-list .alumni-card { display:flex; gap:0.8rem; align-items:center; padding:0.6rem; border-radius:12px; background:linear-gradient(180deg,#fff,#fff); box-shadow:0 10px 26px rgba(0,0,0,0.06); }
    .alumni-list .alumni-card img { width:72px; height:72px; border-radius:50%; border:4px solid #fff; box-shadow:0 12px 24px rgba(0,0,0,0.08); }
    .alumni-list .alumni-name { font-size:0.98rem; font-weight:700; }
    .alumni-list .alumni-marks { font-size:0.85rem; color:var(--text-muted); margin-top:4px; }

    @media (min-width: 960px) {
        .alumni-layout { grid-template-columns: 1fr 1fr; }
        .alumni-list { grid-template-columns: repeat(2, 1fr); }
        .alumni-layout .featured { padding:1.5rem; }
    }

    @media (max-width: 640px) {
        .alumni-layout { grid-template-columns: 1fr; }
        .alumni-list { grid-template-columns: 1fr 1fr; }
        .featured-media img { width:120px; height:120px; }
    }

    /* Cinematic featured hero + portrait grid redesign */
    .alumni-section-hero {
        background: linear-gradient(90deg, rgba(11,22,39,0.98), rgba(41,26,59,0.98));
        color: #fff;
        border-radius: 14px;
        padding: 2rem;
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
        align-items: center;
        box-shadow: 0 30px 80px rgba(2,6,23,0.45);
    }

    .alumni-section-hero .hero-photo img { width: 200px; height:200px; object-fit:cover; border-radius: 50%; border:6px solid rgba(255,255,255,0.08); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }

    .alumni-section-hero .hero-body .alumni-name { font-size: 1.55rem; color: #fff; margin-bottom: 0.25rem; }
    .alumni-section-hero .hero-body .alumni-sub { font-size: 1rem; color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; }
    .alumni-section-hero .hero-body .alumni-scores { display:flex; gap:0.6rem; flex-wrap:wrap; margin-bottom:0.6rem; }
    .alumni-section-hero .hero-body .alumni-scores .score-pill { background: rgba(255,255,255,0.08); padding:6px 10px; border-radius:999px; font-weight:700; color:#fff; }
    .alumni-section-hero .hero-body .alumni-highlight { margin-top:0.5rem; color: var(--accent); font-weight:800; }
    .alumni-section-hero .hero-cta a { display:inline-block; margin-top:0.8rem; background: #fff; color: var(--primary); padding:10px 14px; border-radius:10px; font-weight:800; text-decoration:none; }

    .alumni-portraits { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
    .alumni-portrait { background: #fff; border-radius:12px; padding:14px; display:flex; gap:12px; align-items:center; box-shadow: 0 12px 30px rgba(2,6,23,0.06); }
    .alumni-portrait img { width:72px; height:72px; object-fit:cover; border-radius:50%; border:4px solid #fff; box-shadow: 0 8px 22px rgba(2,6,23,0.08); }
    .alumni-portrait .meta { display:flex; flex-direction:column; }
    .alumni-portrait .meta .name { font-weight:700; color:var(--text-main); }
    .alumni-portrait .meta .marks { color: var(--text-muted); font-size:0.9rem; margin-top:4px; }

    @media (max-width: 980px) {
        .alumni-section-hero { grid-template-columns: 140px 1fr; padding:1.25rem; }
        .alumni-section-hero .hero-photo img { width:120px; height:120px; }
        .alumni-portraits { grid-template-columns: repeat(2,1fr); }
    }

    @media (max-width: 560px) {
        .alumni-section-hero { grid-template-columns: 1fr; text-align:center; }
        .alumni-section-hero .hero-photo { justify-self:center; }
        .alumni-section-hero .hero-body { text-align:center; }
        .alumni-portraits { grid-template-columns: 1fr; }
    }

    /* ── Alumni Carousel v3 – Premium Dark Cards ── */
    .alumni-carousel-new {
        position: relative;
        max-width: 860px;
        margin: 1rem auto 0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 24px 64px rgba(2, 6, 23, 0.22);
    }

    /* thin autoplay progress bar */
    .carousel-progress {
        height: 3px;
        background: rgba(255,255,255,0.12);
        position: relative;
        overflow: hidden;
    }
    .carousel-progress-bar {
        position: absolute;
        inset: 0;
        width: 0%;
        background: var(--accent);
        border-radius: 0;
        transition: width linear;
    }

    .alumni-carousel-new .carousel-viewport { overflow: hidden; }

    .carousel-track-new { display: flex; transition: transform 540ms cubic-bezier(.25,.9,.2,1); }

    .alumni-slide {
        min-width: 100%;
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 0;
        align-items: stretch;
        min-height: 320px;
    }

    /* left photo panel – dark gradient */
    .slide-media {
        position: relative;
        overflow: hidden;
        background: linear-gradient(160deg, #0d1b2a, #1e133a);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 24px;
    }
    .slide-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, transparent 60%, rgba(15,18,35,0.85));
        pointer-events: none;
    }
    .slide-media img {
        width: 170px;
        height: 170px;
        object-fit: cover;
        border-radius: 50%;
        border: 5px solid rgba(255,255,255,0.12);
        box-shadow: 0 24px 64px rgba(0,0,0,0.6);
        position: relative;
        z-index: 1;
    }

    /* right body panel */
    .slide-body {
        background: linear-gradient(135deg, #0f1223 0%, #1a0e2e 100%);
        padding: 36px 42px 36px 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.6rem;
        color: #fff;
    }

    .alumni-slide .alumni-name {
        font-size: 1.7rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.02em;
        line-height: 1.2;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .alumni-slide .alumni-sub {
        font-size: 1rem;
        color: rgba(255,255,255,0.65);
        margin: 0;
    }

    .alumni-scores { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }

    .score-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.14);
        color: #fff;
        padding: 7px 14px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.9rem;
        backdrop-filter: blur(4px);
    }

    .alumni-slide .alumni-highlight {
        color: var(--accent);
        font-weight: 700;
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }

    .slide-cta { margin-top: 0.5rem; }
    .slide-cta a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--primary);
        color: #fff;
        padding: 10px 18px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 800;
        font-size: 0.95rem;
        box-shadow: 0 10px 28px rgba(179,33,33,0.28);
        transition: transform 220ms ease, box-shadow 220ms ease;
    }
    .slide-cta a:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(179,33,33,0.38); }

    /* ribbon & small-meta inside slides */
    .alumni-slide .ribbon {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: linear-gradient(90deg, var(--accent), #f97316);
        color: #000;
        padding: 4px 10px;
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(245,158,11,0.35);
        position: static;
    }
    .alumni-slide .small-meta {
        font-size: 0.72rem;
        font-weight: 700;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.18);
        color: #fff;
        padding: 4px 10px;
        border-radius: 999px;
    }

    /* controls – float outside on sides */
    .carousel-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.07);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 30;
        transition: background 220ms ease, transform 220ms ease;
        line-height: 1;
    }
    .carousel-control:hover { background: rgba(255,255,255,0.18); transform: translateY(-50%) scale(1.08); }
    .carousel-control.prev { left: 14px; }
    .carousel-control.next { right: 14px; }

    /* pill dots */
    .carousel-dots {
        display: flex;
        gap: 6px;
        justify-content: center;
        padding: 12px 0 16px;
        background: #0f1223;
    }
    .carousel-dots button {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        border: none;
        background: rgba(255,255,255,0.2);
        cursor: pointer;
        transition: width 280ms ease, background 280ms ease;
        padding: 0;
    }
    .carousel-dots button.active {
        width: 28px;
        background: var(--accent);
    }

    /* responsive */
    @media (max-width: 860px) {
        .alumni-slide { grid-template-columns: 180px 1fr; min-height: 260px; }
        .slide-media img { width: 130px; height: 130px; }
        .slide-body { padding: 24px 20px 24px 18px; }
        .alumni-slide .alumni-name { font-size: 1.3rem; }
    }

    @media (max-width: 560px) {
        .alumni-slide { grid-template-columns: 1fr; min-height: unset; }
        .slide-media { padding: 28px 24px 16px; }
        .slide-media::after { background: linear-gradient(to bottom, transparent 50%, rgba(15,18,35,0.9)); }
        .slide-body { padding: 16px 20px 24px; }
        .alumni-slide .alumni-name { font-size: 1.2rem; }
        .carousel-control {
            top: unset;
            bottom: 56px;
            transform: none;
            width: 36px;
            height: 36px;
            font-size: 1.2rem;
        }
        .carousel-control:hover { transform: scale(1.08); }
        .carousel-control.prev { left: 10px; }
        .carousel-control.next { right: 10px; }
        /* mobile emphasis tweaks */
        .slide-media img { width: 160px; height: 160px; }
        .alumni-scores .score-pill { font-size: 1rem; padding: 10px 14px; }
        .slide-cta a { display:block; width:100%; text-align:center; padding:12px 16px; }
        .carousel-progress { height: 6px; }
        .carousel-dots { padding: 8px 0 12px; }
        /* active-slide animations */
        .alumni-slide { opacity: 0.96; }
        .alumni-slide .slide-body { transition: transform 360ms ease, opacity 360ms ease; transform: translateY(6px); opacity: 0.78; }
        .alumni-slide.active-slide .slide-body { transform: none; opacity: 1; }
        .alumni-slide .slide-media img { transition: transform 420ms cubic-bezier(.2,.9,.2,1); }
        .alumni-slide.active-slide .slide-media img { transform: scale(1.06); }
    }

    /* 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 - Enhanced for Mobile & Aesthetics */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 6000; /* Higher than floating buttons (4000) */
        padding: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal.active {
        display: flex;
        opacity: 1;
    }

    .modal-content {
        background: var(--bg-alt);
        border-radius: 20px;
        max-width: 480px;
        width: 100%;
        padding: 2.25rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
        transform: scale(0.95);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal.active .modal-content {
        transform: scale(1);
        opacity: 1;
    }

    /* Webkit Scrollbar for Modal */
    .modal-content::-webkit-scrollbar {
        width: 6px;
    }
    .modal-content::-webkit-scrollbar-track {
        background: transparent;
    }
    .modal-content::-webkit-scrollbar-thumb {
        background-color: var(--text-muted);
        border-radius: 10px;
        opacity: 0.3;
    }

    .modal-content h3 {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
        color: var(--primary);
        line-height: 1.3;
        text-align: center;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .modal-content p {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 1.75rem;
        line-height: 1.5;
        text-align: center;
    }

    /* Fee note inside modal (GST-inclusive) */
    .modal form .fee-receipt {
        text-align: left;
        margin-bottom: 0.5rem;
        display: block;
    }

    .modal form .fee-receipt #fee-value {
        display: block;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-main);
    }

    .modal form .fee-note {
        display: block;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-top: 6px;
        font-style: italic;
        font-weight: 500;
        opacity: 0.95;
    }

    @media (max-width: 420px) {
        .modal form .fee-note { font-size: 0.8rem; }
        .modal form .fee-receipt #fee-value { font-size: 1rem; }
    }

    /* Elegant clean Close Button */
    .close-modal {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05); /* very subtle */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1;
        padding-bottom: 2px;
        border: 1px solid transparent;
    }

    .close-modal:hover {
        background: rgba(179, 33, 33, 0.08); /* slight primary tint */
        color: var(--primary);
        border-color: rgba(179, 33, 33, 0.1);
        transform: rotate(90deg);
    }

    /* Modern Inputs */
    .modal form input,
    .modal form select,
    .modal form textarea {
        width: 100%;
        margin-bottom: 1rem;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1.5px solid var(--border);
        background-color: var(--surface);
        color: var(--text-main);
        font-size: 1rem;
        transition: all 0.25s ease;
        font-family: inherit;
    }

    /* Focus State - Classy Glow */
    .modal form input:focus,
    .modal form select:focus,
    .modal form textarea:focus {
        outline: none;
        border-color: var(--primary);
        background-color: var(--bg);
        box-shadow: 0 0 0 4px rgba(179, 33, 33, 0.08);
    }

    /* Modern Select Dropdowns */
    .modal form select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    .modal form select:focus {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b32121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    }

    /* Row Fields for compact side-by-side inputs */
    .row-fields {
        display: flex;
        gap: 1rem;
        margin-bottom: 0px; /* Reduced margin */
    }
    
    .row-fields select, 
    .row-fields input {
        flex: 1;
        width: 100%;
        min-width: 0; /* Prevent flex overflow */
    }
    
    @media (max-width: 480px) {  
        .row-fields {
            gap: 0.75rem;
        }
        
        /* Make selects slightly taller on mobile for easier tap */
        .modal form select {
            padding-top: 12px;
            padding-bottom: 12px;
        }
    }
    
    /* Segmented Control Styling */
    .segmented-control {
        display: flex;
        background: rgba(0,0,0,0.06);
        padding: 4px;
        border-radius: 12px;
        margin-bottom: 1.2rem;
        position: relative;
    }

    .segmented-control label {
        flex: 1;
        text-align: center;
        padding: 10px 4px;
        font-size: 0.95rem;
        cursor: pointer;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        color: var(--text-muted);
        font-weight: 500;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
    
    .segmented-control label:hover {
        color: var(--text-main);
    }

    .segmented-control input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* Selected state via :has() */
    .segmented-control label:has(input:checked) {
        background: #fff;
        color: var(--primary);
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    }

    /* Form Section Title */
    .form-section-title {
        font-size: 0.9rem;
        color: var(--text-main);
        margin-bottom: 0.5rem;
        font-weight: 600;
        opacity: 0.85;
    }

    /* Fee Receipt Style */
    .fee-receipt {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: linear-gradient(to right, rgba(179,33,33,0.05), rgba(179,33,33,0.02));
        border-radius: 12px;
        border: 1px dashed rgba(179,33,33,0.2);
        margin-bottom: 0.5rem;
    }

    .fee-receipt span:first-child {
        font-size: 0.9rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .fee-receipt #fee-value {
        font-size: 1.2rem;
        color: var(--primary);
        font-weight: 700;
    }
    
    /* Dark mode adjustments for segmented control */
    [data-theme="dark"] .segmented-control {
        background: rgba(255,255,255,0.08); /* slightly lighter than bg */
    }
    
    [data-theme="dark"] .segmented-control label:has(input:checked) {
        background: var(--surface-alt);
        color: #fff;
    }

    /* Submit Button - Gradient & Shadow */
    .modal form button {
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        padding: 15px;
        border-radius: 12px;
        border: none;
        font-size: 1.05rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 4px 14px rgba(179, 33, 33, 0.25);
        margin-top: 0.5rem;
        letter-spacing: 0.02em;
    }

    .modal form button:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 8px 20px rgba(179, 33, 33, 0.35);
    }

    .thank-you-notification {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--bg-alt); /* match theme */
        border-radius: 20px;
        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;
    }

    /* WhatsApp floating button */
    .whatsapp-btn {
        position: fixed;
        left: 20px;
        bottom: var(--float-base, 90px);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #25D366;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55), 0 0 0 6px rgba(37, 211, 102, 0.12);
        z-index: 4000;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        animation: popPulse 2.6s ease-in-out infinite;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
        display: block;
    }

    .whatsapp-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.18);
        animation-play-state: paused;
    }

    /* Call floating button */
    .call-btn {
        position: fixed;
        right: 20px;
        bottom: var(--float-base, 90px);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 28px rgba(179, 33, 33, 0.55), 0 0 0 6px rgba(179, 33, 33, 0.12);
        z-index: 4000;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        animation: popPulse 2.6s ease-in-out infinite;
    }

    .call-btn svg {
        width: 28px;
        height: 28px;
        display: block;
        fill: #fff;
    }

    .call-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(179, 33, 33, 0.65), 0 0 0 8px rgba(179, 33, 33, 0.18);
        animation-play-state: paused;
    }

    @keyframes popPulse {
        0% {
            transform: translateY(0) scale(1);
        }
        45% {
            transform: translateY(-4px) scale(1.07);
        }
        100% {
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 480px) {
        :root {
            --float-base: 110px;
            --float-gap: 60px;
        }

        /* Tighter Modal for Mobile */
        .modal-content {
            padding: 1.5rem 1.25rem;
            max-width: 92vw;
            border-radius: 16px;
        }

        .modal-content h3 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .modal-content p {
            font-size: 0.9rem;
            margin-bottom: 1.2rem;
            line-height: 1.4;
        }

        .modal form input,
        .modal form select,
        .modal form textarea {
            padding: 12px;
            margin-bottom: 0.8rem;
            font-size: 0.95rem;
        }

        .radio-group {
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .radio-group .radio-label {
            padding: 8px 4px;
            font-size: 0.85rem;
            gap: 0.2rem;
        }

        .close-modal {
            top: 12px;
            right: 12px;
            width: 28px;
            height: 28px;
            font-size: 1.2rem;
        }

        .theme-toggle.floating {
            left: 12px;
            bottom: calc(var(--float-base, 72px) + var(--float-gap, 56px));
            width: 48px;
            height: 48px;
        }

        .back-to-top {
            right: 12px;
            bottom: calc(var(--float-base, 72px) + var(--float-gap, 56px));
            width: 40px;
            height: 40px;
        }

        .whatsapp-btn {
            left: 12px;
            bottom: var(--float-base, 110px);
            width: 48px;
            height: 48px;
        }

        .whatsapp-btn svg {
            width: 24px;
            height: 24px;
        }

        .call-btn {
            right: 12px;
            bottom: var(--float-base, 110px);
            width: 48px;
            height: 48px;
        }

        .call-btn svg {
            width: 24px;
            height: 24px;
        }
    }


    /* ---------------------------------
   Responsive helper rules (mobile)
   --------------------------------- */

    @media (max-width: 900px) {

        /* Header: show hamburger and collapse nav */
        .hamburger {
            display: block;
        }

        .nav ul {
            display: none;
            flex-direction: column;
            gap: 0;
            background: rgba(255, 255, 255, 0.98) !important;
            position: absolute;
            top: var(--header-space);
            left: 0;
            right: 0;
            padding: 0.75rem 1rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            z-index: 2100;
            backdrop-filter: blur(10px);
        }

        .nav ul.active {
            display: flex;
        }

        .nav ul li {
            display: block;
            padding: 10px 6px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        }

        .nav-right {
            display: none;
        }

        /* Reduce hero paddings and scale headings */
        .hero {
            padding: 2.5rem 1.2rem 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;
        }
    }

    @media (max-width: 640px) {
        :root {
            --header-space: 64px;
        }

        section {
            padding: 1.5rem 1.3rem;
        }

        .section-header h2 {
            font-size: 1.4rem;
        }

        .hero-content h1 {
            font-size: 1.3rem;
        }

        .hero-content p {
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

        .about {
            text-align: center;
        }

        .about-text {
            text-align: center;
        }

        .about-text > div {
            justify-content: center;
        }

        #who .who-list ul li {
            text-align: left;
        }

        .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;
        }

        /* Stack hero layout vertically */
        .hero {
            grid-template-columns: 1fr;
            text-align: left;
        }

        .hero-content {
            order: 0;
            padding: 24px;
        }

        .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;
        }
    }

    @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;
        }
    }

    /* Utility: avoid very long text in small screens */
    @media (max-width: 520px) {

        .section-header p,
        .about-text,
        .hero-content p {
            font-size: 0.95rem;
        }
    }


    .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: responsive embedded videos (play inline, no redirect) */
    .demo-lecture .demo-video-grid {
        display: flex;
        gap: 1rem;
        align-items: stretch;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem 1.25rem;
    }

    .demo-lecture .video-wrapper {
        position: relative;
        flex: 0 0 560px;
        width: 560px;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

    .demo-lecture .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    @media (max-width: 640px) {
        .demo-lecture .demo-video-grid { gap: 0.75rem; }
        .demo-lecture .video-wrapper {
            flex: 0 0 100%;
            width: 100%;
            aspect-ratio: 16 / 9;
        }
    }

    @media (max-width: 420px) {
        .demo-lecture .video-wrapper {
            flex: 0 0 96%;
            width: 96%;
        }
    }

    @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) {
        .nav {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            gap: 0.65rem;
        }

        .logo {
            font-size: 1rem;
            order: 1;
            justify-items: center;
        }

        .nav-right {
            order: 2;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-left: auto;
        }

        .hamburger {
            display: block;
            order: 3;
        }

        .nav ul {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            width: 100%;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.98) !important;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-top: 0.5rem;
            padding: 1rem 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .nav ul.active {
            display: flex;
            z-index: 1201;
        }

        .nav ul li {
            width: 100%;
            text-align: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .nav ul li:last-child {
            border-bottom: none;
        }

        .nav-mentor-form {
            order: 3;
            margin-left: auto;
        }

        .nav-mentor-form input {
            display: none;
        }

        .nav-mentor-form button {
            font-size: 0.85rem;
            padding: 6px 12px;
        }

        .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 {
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-main,
        .btn-outline {
            width: 100%;
            max-width: 250px;
            font-size: 0.9rem;
            padding: 10px 18px;
        }

        .hero-image img {
            width: 100%;
            max-width: 280px;
        }

        section {
            padding: 2rem 1rem;
        }

        .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;
        }

        .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.8rem 1rem;
        }

        .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;
            gap: 0.5rem;
        }

        .cta .cta-buttons button {
            width: 100%;
            max-width: 250px;
            font-size: 0.9rem;
            padding: 10px 18px;
        }

        .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;
            margin-top: 15px;
        }

        .hero-content h1 {
            font-size: 1.6rem;
        }

        .hero-content p {
            font-size: 0.85rem;
        }

        .hero-image img {
            max-width: 250px;
        }

        section {
            padding: 1.6rem 1.35rem;
        }

        .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;
        }
    }

    /* Dark mode */
    [data-theme="dark"] {
        --bg: #0f1115;
        --bg-alt: #121620;
        --surface: #161b26;
        --surface-alt: #1b2230;
        --border: rgba(255, 255, 255, 0.08);
        --text-main: #f8fafc;
        --text-muted: #cbd5e1;
        --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    }

    [data-theme="dark"] body {
        background: var(--bg);
        color: var(--text-main);
    }

    [data-theme="dark"] header {
        background: rgba(15, 17, 21, 0.92);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    }

    /* Ensure hamburger icon remains visible in dark mode */
    [data-theme="dark"] .hamburger {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
        z-index: 2500;
    }

    [data-theme="dark"] .hamburger:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    [data-theme="dark"] .section-header .tag {
        color: #fcd34d;
    }

    [data-theme="dark"] .section-header .tag::before,
    [data-theme="dark"] .section-header .tag::after {
        background: linear-gradient(to right, rgba(252, 211, 77, 0.7), transparent);
    }

    [data-theme="dark"] .section-header .tag::before {
        background: linear-gradient(to left, rgba(252, 211, 77, 0.7), transparent);
    }

    [data-theme="dark"] .hero-highlight {
        color: #fcd34d;
    }

    [data-theme="dark"] .pain-card h3,
    [data-theme="dark"] .feature-card h3,
    [data-theme="dark"] .flow-grid .card h3 {
        color: #fcd34d;
    }

    [data-theme="dark"] .about-text strong,
    [data-theme="dark"] .feature-span strong,
    [data-theme="dark"] .pain-card strong {
        color: #fcd34d;
    }

    [data-theme="dark"] .highlight {
        background: linear-gradient(90deg, #7f1d1d, #991b1b);
        color: #fff;
    }

    [data-theme="dark"] .logo-black {
        color: #ffffff;
    }

    [data-theme="dark"] .language-toggle {
        background: var(--surface);
        color: var(--text-main);
        border-color: var(--border);
    }

    /* Ensure mobile nav dropdown is visible in dark mode */
    [data-theme="dark"] .nav ul.active {
        background: rgba(15, 17, 21, 0.98) !important;
        backdrop-filter: blur(10px);
    }

    [data-theme="dark"] .nav ul li {
        color: var(--text-main);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    [data-theme="dark"] .nav ul li::after {
        background: #fcbf49;
    }

    [data-theme="dark"] .theme-toggle {
        background: linear-gradient(135deg, #6ecbff, #3b82f6);
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
    }

    [data-theme="dark"] .back-to-top {
        background: #2b2f38;
        color: #f9fafb;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
    }

    [data-theme="dark"] section:hover {
        background-color: rgba(255, 255, 255, 0.02);
    }

    [data-theme="dark"] .hero-image img,
    [data-theme="dark"] .alumni-card img,
    [data-theme="dark"] .demo-lecture .video-card,
    [data-theme="dark"] .table-wrap table {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    }

    [data-theme="dark"] .table-wrap thead th {
        color: #f2f4f8;
        background: linear-gradient(135deg, rgba(252, 191, 73, 0.18), rgba(252, 191, 73, 0.06));
    }

    [data-theme="dark"] .table-wrap tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.03);
    }

    [data-theme="dark"] .table-wrap tbody tr:hover {
        background: rgba(252, 191, 73, 0.12);
    }

    [data-theme="dark"] .table-wrap::after {
        background: var(--surface-alt);
        color: #fcbf49;
    }

    [data-theme="dark"] .carousel-track {
        scrollbar-color: #fcd34d rgba(255, 255, 255, 0.12);
    }

    [data-theme="dark"] .carousel-track::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #fcd34d, #f59e0b);
    }

    [data-theme="dark"] .carousel-track::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.12);
    }

    @media (max-width: 640px) {
        [data-theme="dark"] .table-wrap tbody tr {
            background: var(--surface);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
        }

        [data-theme="dark"] .table-wrap tbody td:nth-child(1) {
            background: rgba(59, 130, 246, 0.2);
            color: #bfdbfe;
        }

        [data-theme="dark"] .table-wrap tbody td:nth-child(4) {
            background: rgba(252, 191, 73, 0.16);
            color: #f2f4f8;
        }
    }

    [data-theme="dark"] .flow-grid .card,
    [data-theme="dark"] .feature-card,
    [data-theme="dark"] .pain-card,
    [data-theme="dark"] .testimonial-card,
    [data-theme="dark"] .testimonials,
    [data-theme="dark"] .about,
    [data-theme="dark"] .who-list,
    [data-theme="dark"] .cta,
    [data-theme="dark"] .demo-lecture .video-card,
    [data-theme="dark"] .modal-content {
        background: var(--surface);
        border-color: var(--border);
        color: var(--text-main);
    }

    [data-theme="dark"] .testimonials {
        background: var(--surface-alt);
    }

    [data-theme="dark"] .faq-item summary,
    [data-theme="dark"] .faq-item p {
        color: var(--text-main);
    }

    [data-theme="dark"] .timeline::before {
        background: rgba(255, 255, 255, 0.15);
    }

    @media (min-width: 1024px) {
        .carousel-btn {
            width: 44px;
            height: 44px;
            background: rgba(0, 0, 0, 0.55);
            color: #fff;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        }

        .carousel-btn:hover {
            background: rgba(0, 0, 0, 0.75);
        }

        .carousel-btn.prev {
            left: -12px;
        }

        .carousel-btn.next {
            right: -12px;
        }

        @media (max-width: 768px) {
            .carousel-btn {
                display: inline-flex;
            }
        }

        .demo-lecture .video-wrapper {
            flex: 0 0 380px;
            width: 380px;
        }

        .demo-lecture .demo-video-grid {
            justify-content: center;
        }
    }

    .demo-carousel .carousel-track {
        padding: 0.6rem 0 0.8rem;
        scroll-padding: 0;
    }

/* Banners and countdowns: standardized styles for result/start banners */
.result-banner,
.start-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 720px;
    margin: 0.5rem auto 0.75rem auto;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.result-banner { background: #fff9e6; border: 1px solid #ffe4a3; color: #6b4a00; }
.start-banner { background: #eef7ff; border: 1px solid #cfe8ff; color: #064887; }

.countdown {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.countdown .count-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:64px;
    padding:8px 10px;
    border-radius:8px;
    background: linear-gradient(180deg, rgba(6,42,77,0.06), rgba(6,42,77,0.02));
}

.countdown .count-num{
    font-size:1.05rem;
    font-weight:800;
    color:#062a4d;
    line-height:1;
}

.countdown .count-label{
    font-size:0.65rem;
    color:#064887;
    margin-top:4px;
}

.btn-inline {
    background: transparent;
    border: none;
    color: var(--brand-blue);
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    padding: 0;
}

@media (max-width: 720px) {
    .result-banner, .start-banner { max-width: calc(100% - 32px); padding: 10px 12px; font-size: 0.95rem; }
    .hero-content h1 { font-size: 1.8rem; }
}