:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #3730a3;
    --primary-mid: #4338ca;
    --primary-dark: #1e1b4b;
    --accent: #c2410c;
    --line: #e2e8f0;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.07);
    --radius: 10px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 200;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: var(--primary-dark);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

#main-content:focus {
    outline: none;
}

#main-content:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 6px;
}

.section-lead {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: 40px;
    width: 40px;
    flex-shrink: 0;
}

.brand-text {
    margin-left: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:focus-visible {
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 6px;
}

.nav-cta-mobile {
    display: none;
}

.brand:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 44px;
    min-width: 44px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.section {
    padding: 80px 0;
}

.section .container > h2.title-animate {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section .container > h2.title-animate::after {
    transform-origin: center;
}

.alt {
    background: var(--surface);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 48, 163, 0.07), rgba(55, 48, 163, 0));
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 52rem;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.35;
    pointer-events: none;
    transition: transform 0.25s linear;
}

.blob-a {
    width: 160px;
    height: 160px;
    right: 6%;
    top: 20%;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.2), rgba(67, 56, 202, 0));
    animation: none;
}

.blob-b {
    width: 120px;
    height: 120px;
    left: 2%;
    bottom: 12%;
    background: radial-gradient(circle, rgba(100, 116, 139, 0.15), rgba(100, 116, 139, 0));
    animation: none;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--primary-mid);
    margin: 0 0 10px;
}

h1, h2, h3 {
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(2.125rem, 4.5vw, 3.25rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text);
}

h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
}

.title-animate {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.title-animate::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineReveal 0.85s ease forwards;
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 1rem;
}

.lead {
    max-width: 38rem;
    margin-inline: 0;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-2px);
    }
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(55, 48, 163, 0.25);
}

.btn-primary:hover {
    background: var(--primary-mid);
    box-shadow: 0 6px 18px rgba(55, 48, 163, 0.3);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--surface);
}

.btn-ghost:hover {
    border-color: #cbd5e1;
    background: var(--surface-2);
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
}

.stats-marquee {
    animation: none;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    animation: fadeUp 0.55s ease both;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 16px 36px rgba(15, 23, 42, 0.08);
        transform: translateY(-2px);
    }
}

.stats .card:nth-child(1) { animation-delay: 0.05s; }
.stats .card:nth-child(2) { animation-delay: 0.12s; }
.stats .card:nth-child(3) { animation-delay: 0.18s; }
.stats .card:nth-child(4) { animation-delay: 0.24s; }
.stats .card:nth-child(5) { animation-delay: 0.3s; }

.stat-card h3 {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeUp 0.5s ease both;
}

.stat-card p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.25rem 0 1.5rem;
}

.course-tab {
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    border-radius: 999px;
    padding: 11px 20px;
    min-height: 44px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .course-tab:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
    }
}

.course-tab.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(55, 48, 163, 0.22);
}

.course-tab:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.course-panels {
    margin-top: 0.25rem;
}

.course-panel[hidden] {
    display: none !important;
}

.course-panel:not([hidden]) {
    animation: panelFade 0.35s ease;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.categories--cuet {
    margin-top: 1.25rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.chip {
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 999px;
    padding: 8px 14px;
}

.grid {
    display: grid;
    gap: 16px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.cards-5 {
    grid-template-columns: repeat(5, 1fr);
}

.cards-3 .card,
.cards-2 .card,
.cards-5 .card {
    animation: fadeUp 0.55s ease both;
}

.categories {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories span {
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    font-size: 0.8125rem;
    font-weight: 500;
}

.card--teacher {
    text-align: center;
    padding-top: 22px;
}

.teacher-photo {
    width: 132px;
    height: 132px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--line);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    background: var(--surface-2);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature h3 {
    color: var(--text);
}

.testimonial {
    border-left: 3px solid var(--primary);
    background: var(--surface);
}

.testimonial cite {
    margin-top: 8px;
    display: block;
    font-style: normal;
    color: #1f2b4b;
    font-weight: 600;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 46rem;
    margin-inline: auto;
}

details.card.faq {
    padding: 0;
    overflow: hidden;
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    min-height: 52px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
    user-select: none;
    transition: background 0.2s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::marker {
    content: "";
}

.faq-summary:hover {
    background: var(--surface-2);
}

.faq-summary:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(79, 70, 229, 0.35);
}

.faq-summary::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 2px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

details.faq[open] .faq-summary::after {
    transform: rotate(-135deg);
    margin-top: 8px;
}

.faq-body {
    padding: 0 18px 16px;
    border-top: 1px solid var(--line);
}

.faq-body p {
    margin: 14px 0 0;
    padding-top: 4px;
    color: var(--muted);
    line-height: 1.75;
}

.faq-body p:last-child {
    margin-bottom: 0;
}

.cta {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #29324d;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-grid input,
.form-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 14px;
    min-height: 48px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

.form-btn {
    grid-column: 1 / -1;
    border: 0;
    cursor: pointer;
    min-height: 48px;
}

.form-status {
    margin: 16px auto 0;
    max-width: 36rem;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    font-weight: 600;
    text-align: center;
    min-height: 0;
}

.form-status:empty {
    display: none;
}

.site-footer {
    background: #0f172a;
    color: #d7def3;
    padding: 56px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.site-footer h3 {
    color: #fff;
}

.site-footer p {
    color: #c8d1ec;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #c8d1ec;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-address {
    font-style: normal;
}

.footer-address a {
    color: #e0e7ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-address a:hover {
    color: #fff;
}

.footer-address a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-note {
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
}

.copyright {
    text-align: center;
    margin-top: 24px;
    font-size: 0.86rem;
}

.desktop-only {
    display: inline-flex;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px) scale(0.99);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineReveal {
    to { transform: scaleX(1); }
}

/* --- Extra content animations (scroll section = .in-view) --- */

.hero.animate-on-scroll:not(.in-view) .eyebrow,
.hero.animate-on-scroll:not(.in-view) h1,
.hero.animate-on-scroll:not(.in-view) .lead,
.hero.animate-on-scroll:not(.in-view) .hero-actions,
.hero.animate-on-scroll:not(.in-view) .stats {
    opacity: 0;
}

.hero.animate-on-scroll.in-view .eyebrow {
    animation: slideInLeft 0.55s ease forwards;
}

.hero.animate-on-scroll.in-view h1 {
    animation: scaleFade 0.7s ease 0.08s forwards;
}

.hero.animate-on-scroll.in-view .lead {
    animation: slideInRight 0.65s ease 0.16s forwards;
}

.hero.animate-on-scroll.in-view .hero-actions {
    animation: fadeUp 0.55s ease 0.28s forwards;
}

.section.animate-on-scroll:not(.in-view) > .container > p {
    opacity: 0;
    transform: translateY(18px);
}

.section.animate-on-scroll.in-view > .container > p {
    animation: contentRise 0.65s ease forwards;
}

.section.animate-on-scroll.in-view > .container > p:nth-of-type(1) {
    animation-delay: 0.1s;
}

.section.animate-on-scroll.in-view > .container > p:nth-of-type(2) {
    animation-delay: 0.18s;
}

.section.animate-on-scroll:not(.in-view) .chip {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
}

.section.animate-on-scroll.in-view .chip:nth-child(1) {
    animation: chipPop 0.48s ease 0.12s both;
}

.section.animate-on-scroll.in-view .chip:nth-child(2) {
    animation: chipPop 0.48s ease 0.2s both;
}

.section.animate-on-scroll.in-view .chip:nth-child(3) {
    animation: chipPop 0.48s ease 0.28s both;
}

.section.animate-on-scroll.in-view .chip:nth-child(4) {
    animation: chipPop 0.48s ease 0.36s both;
}

.section.animate-on-scroll:not(.in-view) .categories span {
    opacity: 0;
    transform: translateY(10px);
}

.section.animate-on-scroll.in-view .categories span:nth-child(1) {
    animation: tagPop 0.45s ease 0.08s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(2) {
    animation: tagPop 0.45s ease 0.12s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(3) {
    animation: tagPop 0.45s ease 0.16s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(4) {
    animation: tagPop 0.45s ease 0.2s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(5) {
    animation: tagPop 0.45s ease 0.24s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(6) {
    animation: tagPop 0.45s ease 0.28s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(7) {
    animation: tagPop 0.45s ease 0.32s both;
}

.section.animate-on-scroll.in-view .categories span:nth-child(8) {
    animation: tagPop 0.45s ease 0.36s both;
}

.animate-on-scroll.in-view .card h3 {
    opacity: 0;
    animation: headingSlide 0.52s ease forwards;
}

.animate-on-scroll.in-view .cards-3 .card:nth-child(1) h3 { animation-delay: 0.08s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(2) h3 { animation-delay: 0.12s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(3) h3 { animation-delay: 0.16s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(4) h3 { animation-delay: 0.2s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(5) h3 { animation-delay: 0.24s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(6) h3 { animation-delay: 0.28s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(7) h3 { animation-delay: 0.32s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(8) h3 { animation-delay: 0.36s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(9) h3 { animation-delay: 0.4s; }

.animate-on-scroll.in-view .cards-2 .card:nth-child(1) h3 { animation-delay: 0.08s; }
.animate-on-scroll.in-view .cards-2 .card:nth-child(2) h3 { animation-delay: 0.14s; }
.animate-on-scroll.in-view .cards-2 .card:nth-child(3) h3 { animation-delay: 0.2s; }
.animate-on-scroll.in-view .cards-2 .card:nth-child(4) h3 { animation-delay: 0.26s; }

.animate-on-scroll.in-view .cards-5 .card:nth-child(1) h3 { animation-delay: 0.06s; }
.animate-on-scroll.in-view .cards-5 .card:nth-child(2) h3 { animation-delay: 0.1s; }
.animate-on-scroll.in-view .cards-5 .card:nth-child(3) h3 { animation-delay: 0.14s; }
.animate-on-scroll.in-view .cards-5 .card:nth-child(4) h3 { animation-delay: 0.18s; }
.animate-on-scroll.in-view .cards-5 .card:nth-child(5) h3 { animation-delay: 0.22s; }

.animate-on-scroll.in-view .card > p {
    opacity: 0;
    animation: contentRise 0.55s ease forwards;
}

.animate-on-scroll.in-view .cards-3 .card:nth-child(1) > p { animation-delay: 0.22s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(2) > p { animation-delay: 0.26s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(3) > p { animation-delay: 0.3s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(4) > p { animation-delay: 0.34s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(5) > p { animation-delay: 0.38s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(6) > p { animation-delay: 0.42s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(7) > p { animation-delay: 0.46s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(8) > p { animation-delay: 0.5s; }
.animate-on-scroll.in-view .cards-3 .card:nth-child(9) > p { animation-delay: 0.54s; }

.animate-on-scroll.in-view .testimonial p {
    animation: contentRise 0.55s ease forwards;
}

.animate-on-scroll.in-view .testimonial cite {
    opacity: 0;
    animation: fadeSoft 0.55s ease 0.35s forwards;
}

.animate-on-scroll.in-view .faq:nth-child(1) { animation: slideUpCard 0.55s ease 0.06s both; }
.animate-on-scroll.in-view .faq:nth-child(2) { animation: slideUpCard 0.55s ease 0.14s both; }
.animate-on-scroll.in-view .faq:nth-child(3) { animation: slideUpCard 0.55s ease 0.22s both; }

.animate-on-scroll.in-view .form-grid label:nth-child(1) { animation: contentRise 0.5s ease 0.08s both; }
.animate-on-scroll.in-view .form-grid label:nth-child(2) { animation: contentRise 0.5s ease 0.14s both; }
.animate-on-scroll.in-view .form-grid label:nth-child(3) { animation: contentRise 0.5s ease 0.2s both; }
.animate-on-scroll.in-view .form-grid label:nth-child(4) { animation: contentRise 0.5s ease 0.26s both; }
.animate-on-scroll.in-view .form-btn { animation: scaleFade 0.55s ease 0.32s both; }

.site-footer.animate-on-scroll:not(.in-view) .footer-grid > div {
    opacity: 0;
    transform: translateY(16px);
}

.site-footer.animate-on-scroll.in-view .footer-grid > div:nth-child(1) {
    animation: contentRise 0.6s ease 0.1s both;
}

.site-footer.animate-on-scroll.in-view .footer-grid > div:nth-child(2) {
    animation: contentRise 0.6s ease 0.2s both;
}

.site-footer.animate-on-scroll.in-view .copyright {
    opacity: 0;
    animation: fadeSoft 0.7s ease 0.35s forwards;
}

.site-footer.animate-on-scroll.in-view .footer-links a {
    display: inline-block;
    animation: linkPop 0.45s ease both;
}

.site-footer.animate-on-scroll.in-view .footer-links a:nth-child(1) { animation-delay: 0.25s; }
.site-footer.animate-on-scroll.in-view .footer-links a:nth-child(2) { animation-delay: 0.3s; }
.site-footer.animate-on-scroll.in-view .footer-links a:nth-child(3) { animation-delay: 0.35s; }
.site-footer.animate-on-scroll.in-view .footer-links a:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleFade {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chipPop {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.92);
    }
    70% {
        transform: translateY(-3px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tagPop {
    from {
        opacity: 0;
        transform: translateY(12px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes headingSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSoft {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpCard {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes linkPop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none !important;
    }

    .section.animate-on-scroll.in-view .chip,
    .section.animate-on-scroll.in-view .categories span {
        animation: fadeSoft 0.35s ease forwards !important;
    }

    .cards-3 .card,
    .cards-2 .card,
    .cards-5 .card {
        animation: fadeUp 0.4s ease both !important;
    }

    .course-panel:not([hidden]) {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .cards-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 14px 4%;
        display: none;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 6px 4px;
    }

    .nav-cta-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
        padding: 12px 18px;
        border-radius: var(--radius);
        background: var(--primary);
        color: #fff !important;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(55, 48, 163, 0.25);
    }

    .nav-cta-mobile:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 3px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-only {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        animation: none;
    }

    .cards-3,
    .cards-2 {
        grid-template-columns: 1fr;
    }

    .cards-3 .card,
    .cards-2 .card,
    .cards-5 .card {
        animation: fadeUp 0.7s ease both;
    }

    .cards-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 56px 0;
    }

    .stats,
    .cards-5 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .brand-text {
        font-size: 1rem;
    }

    .brand-logo {
        height: 36px;
        width: 36px;
    }
}
