:root {
    --blue: #2073B7;
    --blue-dark: #175A91;
    --gold: #F4AF36;
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --text: #1B1B1F;
    --muted: #6B7280;
    --border: #E2E6EC;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 30px rgba(27, 27, 31, 0.08);
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; color: var(--text); }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.5px; }
h1 .highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
}
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
p { margin: 0 0 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
    background: var(--gold);
    color: #1B1B1F;
    box-shadow: 0 6px 18px rgba(244, 175, 54, 0.35);
}
.btn-accent:hover { background: #e39d24; color: #1B1B1F; }
.btn-outline {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 26px; width: auto; }
.main-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    flex: 1;
}
.main-nav a {
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
}
.main-nav a:hover { color: var(--blue); }
.nav-cta { flex-shrink: 0; padding: 10px 22px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
    background: #12233A;
    color: rgba(255,255,255,0.75);
    margin-top: 60px;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    font-size: 13.5px;
}
.footer-inner a { color: rgba(255,255,255,0.85); }
.footer-inner a:hover { color: #fff; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin: 24px 0 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { color: var(--text); font-weight: 600; }

/* ---------- Blog: hero / listing ---------- */
.blog-hero {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 56px 0 44px;
    text-align: center;
}
.blog-hero h1 { color: #fff; margin-bottom: 8px; }
.blog-hero p { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0; }

.blog-listing { padding: 40px 20px 60px; }

.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.blog-filters a {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
}
.blog-filters a.active,
.blog-filters a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.blog-empty { color: var(--muted); text-align: center; padding: 40px 0; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,27,31,0.12); }
.blog-card-link { color: inherit; display: block; }
.blog-card img { width: 100%; aspect-ratio: 400/220; object-fit: cover; }
.blog-card-body { padding: 18px 20px 22px; }
.blog-card-cat {
    display: inline-block;
    background: rgba(32, 115, 183, 0.1);
    color: var(--blue);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.blog-card h2 { font-size: 18px; margin-bottom: 8px; }
.blog-card p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.blog-card time { color: var(--muted); font-size: 12.5px; }

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.blog-pagination a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
}
.blog-pagination a.active,
.blog-pagination a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Blog: single post ---------- */
.blog-post { max-width: 760px; padding-bottom: 60px; }
.blog-post h1 { margin: 6px 0 10px; }
.blog-post > time { color: var(--muted); font-size: 13.5px; }
.blog-post-cover {
    width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    aspect-ratio: 800/420;
    object-fit: cover;
}
.blog-post-body { font-size: 16px; }
.blog-post-body h2 { margin-top: 32px; }
.blog-post-body h3 { margin-top: 24px; font-size: 18px; }
.blog-post-body ul, .blog-post-body ol { padding-left: 22px; }
.blog-post-body img { border-radius: var(--radius); margin: 16px 0; }

.blog-post-body .tldr-box {
    background: var(--bg);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 22px;
    margin: 20px 0 28px;
}
.blog-post-body .tldr-box p { margin: 0; }
.blog-post-body .tldr-box strong { color: var(--blue); }

.blog-post-body .table-scroll { overflow-x: auto; margin: 24px 0; }
.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 560px;
}
.blog-post-body th, .blog-post-body td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.blog-post-body th {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}
.blog-post-body tr:nth-child(even) td { background: var(--bg); }
.blog-post-body tr.table-highlight td {
    background: rgba(244, 175, 54, 0.12);
    font-weight: 600;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}
.blog-post-cta { margin-top: 40px; text-align: center; }

/* ---------- Courses: index ---------- */
.courses-hero {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 56px 0 44px;
    text-align: center;
}
.courses-hero h1 { color: #fff; margin-bottom: 8px; }
.courses-hero p { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0 auto; max-width: 640px; }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    padding: 40px 20px 60px;
}
.course-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,27,31,0.12); }
.course-tile img { width: 100%; aspect-ratio: 400/240; object-fit: cover; }
.course-tile-body { padding: 20px 22px 24px; }
.course-tile-body h2 { font-size: 19px; margin-bottom: 8px; }
.course-tile-body p { color: var(--muted); font-size: 14px; }
.course-tile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--muted);
}
.course-tile-price { font-size: 20px; font-weight: 800; color: var(--blue); }

/* ---------- Course: single page ---------- */
.course-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding-bottom: 40px; }
.course-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding-top: 8px;
}
.course-subtitle { font-size: 17px; color: var(--muted); }
.course-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.course-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
}
.course-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 800;
}
.course-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.course-price-original { text-decoration: line-through; color: var(--muted); font-size: 16px; }
.course-price-offer { font-size: 30px; font-weight: 800; color: var(--blue); }
.course-price-emi { font-size: 13.5px; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.course-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 520/400; object-fit: cover; }

.course-highlights { padding: 44px 20px; }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.highlight-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.highlight-card h3 { font-size: 16px; color: var(--blue); margin-bottom: 8px; }
.highlight-card p { font-size: 14px; color: var(--muted); margin: 0; }

.course-meta { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 20px 44px; }
.meta-card {
    flex: 1;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-card-wide { flex-basis: 100%; }
.meta-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); font-weight: 700; }
.meta-value { font-size: 15px; font-weight: 700; }

.course-syllabus, .course-faqs { padding: 20px 20px 50px; max-width: 820px; margin: 0 auto; }
.syllabus-accordion, .faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.syllabus-item, .faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 20px;
}
.syllabus-item summary, .faq-item summary {
    padding: 16px 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.syllabus-item summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.syllabus-item summary::after, .faq-item summary::after { content: "+"; float: right; color: var(--blue); font-weight: 800; }
.syllabus-item[open] summary::after, .faq-item[open] summary::after { content: "−"; }
.syllabus-item ul { margin: 0 0 16px; padding-left: 20px; }
.syllabus-item li { margin-bottom: 6px; font-size: 14.5px; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

.course-cta {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}
.course-cta h2 { color: #fff; max-width: 600px; margin: 0 auto 20px; }

@media (max-width: 860px) {
    .course-hero-grid { grid-template-columns: 1fr; }
    .course-hero-media { order: -1; }
}

/* ---------- Scroll-reveal (below-the-fold only) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.section { padding: 56px 20px; }
.sec-h { text-align: center; }
.sec-sub { text-align: center; color: var(--muted); max-width: 560px; margin: -8px auto 32px; }

/* ---------- Hero (above-the-fold: transform/opacity keyframes only) ---------- */
@keyframes heroEnterFade {
    from { transform: translateY(14px); }
    to { transform: translateY(0); }
}
.hero {
    background: linear-gradient(180deg, #EAF2FA 0%, var(--bg) 100%);
    padding: 64px 0 40px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.hero-copy { animation: heroEnterFade 0.6s ease both; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(32, 115, 183, 0.1);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.hero h1 { font-size: clamp(30px, 4.5vw, 48px); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-outline-blue {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    text-align: center;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 560/420;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--bg);
    animation: heroEnterFade 0.7s ease both;
}
.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero-carousel-slide.active { opacity: 1; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--blue); padding: 34px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.3px; }

/* ---------- Reels / video section ---------- */
.reels-section { padding: 60px 0; background: #0f172a; overflow: hidden; }
.reels-header { text-align: center; margin-bottom: 32px; }
.sec-eyebrow {
    display: inline-block;
    background: rgba(244, 175, 54, 0.15);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.reels-wrapper { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 50px; }
.reels-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    justify-content: center;
    scrollbar-width: none;
}
.reels-track::-webkit-scrollbar { display: none; }
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.scroll-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.scroll-arrow.left { left: 0; }
.scroll-arrow.right { right: 0; }
.reel-card {
    flex: 0 0 auto;
    width: 240px;
    height: 420px;
    border-radius: var(--radius-lg);
    background: #111;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.reel-card:hover { transform: translateY(-6px); }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
}
.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.reel-card.playing .play-overlay { opacity: 0; transform: scale(1.2); }
.play-btn {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    padding-left: 3px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.reel-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; padding: 18px; }
.reel-tag {
    display: inline-block;
    background: var(--gold);
    color: #1B1B1F;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.reel-title { color: #fff; font-weight: 800; font-size: 15px; line-height: 1.3; }
.reel-mute {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- Homepage course grid (reuses .course-tile) ---------- */
.courses-grid-home {
    padding: 0;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ---------- Why-us ---------- */
.why-us { background: var(--surface); }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}
.why-copy p { font-size: 16px; color: var(--muted); }
.why-cards { display: grid; gap: 16px; }
.why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.why-card h3 { font-size: 16px; color: var(--blue); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Enquiry section ---------- */
.enquiry-section { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.enquiry-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.enquiry-cta-inner h2 { color: #fff; }
.enquiry-cta-inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.enquiry-copy h2 { color: #fff; text-align: left; }
.enquiry-copy p { color: rgba(255,255,255,0.85); }
.enquiry-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow);
}
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-row textarea { min-height: 64px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: #DC2626; font-size: 13px; margin: 0; display: none; }
.form-error:not(:empty) { display: block; }
.form-success { color: #166534; font-size: 13px; margin: 0; display: none; }
.form-success:not(:empty) { display: block; }

/* ---------- Lead modal ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.lead-modal[hidden] { display: none; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 35, 0.55); }
.lead-modal-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lead-modal-card h3 { margin: 0; }
.lead-modal-card p { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.lead-modal-card form { display: flex; flex-direction: column; gap: 12px; }
.lead-modal-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    background: var(--bg);
}
.lead-modal-card input:focus { outline: none; border-color: var(--blue); background: #fff; }
.lead-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

/* ---------- Nav toggle (mobile hamburger) ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

@media (max-width: 860px) {
    .why-grid, .enquiry-grid { grid-template-columns: 1fr; }
    .courses-grid-home { grid-template-columns: repeat(2, 1fr); }
    .reel-card { width: 220px; height: 380px; }
}

@media (max-width: 640px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .form-row-2 { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
    }
    .main-nav.nav-open { display: flex; }
    .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
    .header-inner { flex-wrap: wrap; position: relative; }
    .nav-cta { order: 3; margin-left: auto; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
    .courses-grid-home { grid-template-columns: 1fr; }
    .courses-grid-home .course-tile { max-width: 420px; margin: 0 auto; }

    .reels-wrapper { padding: 0 12px; }
    .reels-track { justify-content: flex-start; padding: 10px 4px; }
    .scroll-arrow { display: none; }
    .reel-card { width: 200px; height: 350px; }

    .section { padding: 40px 16px; }
}

/* ---------- Floating CTA + social-proof toasts ---------- */
@keyframes attentionPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(32, 115, 183, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(32, 115, 183, 0.7); }
}
.sticky-widget { position: fixed; bottom: 24px; right: 24px; z-index: 150; }
.changing-cta-btn {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 16px 28px;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(32, 115, 183, 0.4);
    animation: attentionPulse 2.5s infinite;
    min-width: 240px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.changing-cta-btn:hover { transform: scale(1.05); animation: none; }
#changingCtaText { transition: opacity 0.4s ease-in-out; }

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.proof-toast {
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 280px;
}
.proof-toast.show { transform: translateX(0); opacity: 1; }
.pt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.pt-text { display: flex; flex-direction: column; }
.pt-text strong { font-size: 13px; line-height: 1.2; }
.pt-text p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.2; }

@media (max-width: 640px) {
    .sticky-widget { bottom: 16px; right: 16px; }
    .changing-cta-btn { min-width: 0; padding: 14px 20px; font-size: 13px; }
    .toast-container { left: 16px; right: 16px; align-items: flex-start; }
    .proof-toast { max-width: 100%; }
}

/* ---------- AI tools: floating glass bento grid with 3D hover-tilt ---------- */
@keyframes aiCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes aiCardShimmer {
    0%, 82% { left: -150%; }
    100% { left: 150%; }
}

.ai-orbit-section {
    background: #0f172a;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.ai-orbit-section::before {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle at 30% 20%, rgba(32, 115, 183, 0.25), transparent 55%),
                radial-gradient(circle at 75% 80%, rgba(244, 175, 54, 0.15), transparent 50%);
    pointer-events: none;
}
.ai-orbit-header { text-align: center; margin-bottom: 36px; position: relative; z-index: 1; }
.ai-orbit-header h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); max-width: 720px; margin: 0 auto 10px; }
.ai-orbit-header p { color: rgba(255, 255, 255, 0.65); margin: 0; }

.ai-orbit-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    perspective: 800px;
}
.ai-tool-card {
    animation: aiCardFloat 5s ease-in-out infinite;
}
.ai-tool-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.ai-tool-card-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    animation: aiCardShimmer 7s ease-in-out infinite;
    pointer-events: none;
}
.ai-tool-card:nth-child(5n+1) .ai-tool-card-inner::after { animation-delay: 0s; }
.ai-tool-card:nth-child(5n+2) .ai-tool-card-inner::after { animation-delay: 1.4s; }
.ai-tool-card:nth-child(5n+3) .ai-tool-card-inner::after { animation-delay: 2.8s; }
.ai-tool-card:nth-child(5n+4) .ai-tool-card-inner::after { animation-delay: 4.2s; }
.ai-tool-card:nth-child(5n+5) .ai-tool-card-inner::after { animation-delay: 5.6s; }
.ai-tool-card:hover .ai-tool-card-inner {
    transform: perspective(600px) rotateX(-6deg) rotateY(6deg) scale(1.08) translateY(-4px);
    border-color: var(--gold);
    background: rgba(244, 175, 54, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(244, 175, 54, 0.3);
}
.ai-tool-card img { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.ai-tool-fallback {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-tool-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: rgba(255, 255, 255, 0.9); }

/* ---------- Light variant (homepage) ---------- */
.ai-orbit-section-light { background: var(--bg); }
.ai-orbit-section-light::before {
    background: radial-gradient(circle at 30% 20%, rgba(32, 115, 183, 0.08), transparent 55%),
                radial-gradient(circle at 75% 80%, rgba(244, 175, 54, 0.08), transparent 50%);
}
.ai-orbit-section-light .ai-orbit-header h2,
.ai-orbit-section-light .ai-orbit-header .sec-h { color: var(--text); }
.ai-orbit-section-light .ai-orbit-header p { color: var(--muted); }
.ai-orbit-section-light .ai-tool-card-inner {
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 14px rgba(27, 27, 31, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.ai-orbit-section-light .ai-tool-card-inner::after {
    background: linear-gradient(120deg, transparent, rgba(32, 115, 183, 0.12), transparent);
}
.ai-orbit-section-light .ai-tool-card:hover .ai-tool-card-inner {
    border-color: var(--blue);
    background: rgba(32, 115, 183, 0.06);
    box-shadow: 0 16px 34px rgba(32, 115, 183, 0.18);
}
.ai-orbit-section-light .ai-tool-name { color: var(--text); }

@media (max-width: 640px) {
    .ai-orbit-section { padding: 44px 0; }
    .ai-tool-card-inner { padding: 9px 14px; }
    .ai-tool-name { font-size: 12.5px; }
    .ai-tool-card:hover .ai-tool-card-inner { transform: scale(1.05) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .ai-tool-card { animation: none; }
    .ai-tool-card-inner::after { animation: none; display: none; }
}

/* ---------- Success story detail page (full narrative + emotional banner) ---------- */
.story-hero {
    position: relative;
    height: clamp(420px, 60vh, 620px);
    overflow: hidden;
}
.story-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(11, 19, 41, 0.15) 0%, rgba(11, 19, 41, 0.55) 55%, rgba(11, 19, 41, 0.92) 100%);
    padding-bottom: 44px;
}
.story-hero-content { max-width: 760px; }
.story-breadcrumbs { color: rgba(255, 255, 255, 0.7); margin: 0 0 16px; }
.story-breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.story-breadcrumbs span { color: #fff; }
.story-tag {
    display: inline-block;
    background: var(--gold);
    color: #1b1b1f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.story-hero-content h1 { color: #fff; font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 24px; }
.story-founder-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(11, 19, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px 8px 8px;
    border-radius: 999px;
    width: fit-content;
}
.story-founder-badge img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.story-founder-badge .name { display: block; color: #fff; font-weight: 700; font-size: 14px; }
.story-founder-badge .title { display: block; color: rgba(255, 255, 255, 0.7); font-size: 12px; }

.story-body { max-width: 740px; padding: 56px 20px 70px; font-size: 16.5px; line-height: 1.8; }
.story-body h2 { margin-top: 44px; font-size: clamp(22px, 3vw, 28px); }
.story-intro { font-size: 19px; font-weight: 600; color: var(--text); }
.story-quote {
    margin: 40px 0;
    padding: 28px 32px;
    background: var(--bg);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 18px;
    color: var(--text);
}
.story-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted); }
.story-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 44px; }

@media (max-width: 640px) {
    .story-hero { height: 70vh; min-height: 380px; }
    .story-body { padding: 40px 16px 50px; }
    .story-quote { padding: 22px 20px; font-size: 16px; }
}
