/* =========================================================
   IPIL ACADEMY — Design Tokens
   Palette: Ink Navy / Royal Blue / Sky Blue / Ice White
   Type: Sora (display) + Inter (body) + IBM Plex Mono (codes)
   Signature: the verification "seal" ring — echoes across
   navbar mark, course badges and the certificate result.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --ink: #0B2545;          /* deep navy - headings */
    --royal: #1E56A0;        /* primary blue - actions */
    --sky: #4C8DD9;          /* secondary blue - accents */
    --ice: #F5F9FD;          /* page background */
    --white: #FFFFFF;
    --slate: #5B6B7C;        /* muted body text */
    --line: #E3EBF3;         /* hairline borders */
    --success: #1F8A4C;
    --danger: #C0392B;

    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 14px;
    --shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 16px 48px rgba(11, 37, 69, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ice);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--royal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--royal);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
    background: var(--royal);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(30, 86, 160, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 86, 160, 0.34); }
.btn-outline {
    background: transparent;
    color: var(--royal);
    border-color: var(--royal);
}
.btn-outline:hover { background: var(--royal); color: var(--white); }
.btn-white {
    background: var(--white);
    color: var(--royal);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Seal / Signature Mark ---------- */
.seal {
    position: relative;
    width: 1em;
    height: 1em;
    display: inline-block;
}
.seal svg { width: 100%; height: 100%; display: block; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
}
.brand .seal { width: 34px; height: 34px; color: var(--royal); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 500;
    font-size: 15px;
}
.nav-links a { color: var(--slate); transition: color 0.15s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--royal); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--royal);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- Hero / Slider ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}
.slide {
    position: relative;
    min-height: 560px;
    display: none;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.slide.active { display: flex; }
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(11,37,69,0.92) 10%, rgba(11,37,69,0.55) 55%, rgba(30,86,160,0.35) 100%);
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
    color: var(--white);
}
.slide-content .eyebrow { color: var(--sky); }
.slide-content .eyebrow::before { background: var(--sky); }
.slide-content h1 {
    font-size: 46px;
    color: var(--white);
    margin-bottom: 18px;
    font-weight: 800;
}
.slide-content p {
    font-size: 17px;
    color: #D7E4F5;
    margin-bottom: 30px;
    max-width: 520px;
}
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.slider-nav {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.slider-dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.slider-dot.active { background: var(--white); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover { background: rgba(255,255,255,0.2); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding-top: 34px;
    padding-bottom: 34px;
}
.stats-grid .stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--royal);
}
.stat-label { font-size: 13px; color: var(--slate); margin-top: 4px; }

/* ---------- Section headers ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 44px;
    gap: 24px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: 32px; font-weight: 700; }
.section-head p { color: var(--slate); margin-top: 8px; max-width: 480px; }

/* ---------- Course Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; height: 180px; background: var(--sky); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11,37,69,0.85);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.discount-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12px; color: var(--royal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.card-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-tag-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mode-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.mode-online { background: #EAF7EE; color: #1F8A4C; }
.mode-offline { background: #EAF1FB; color: var(--royal); }
.mode-hybrid { background: #FDF1E3; color: #B8691C; }

.lang-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.lang-hindi { background: #FDECEC; color: #C0392B; }
.lang-english { background: #EEF0FB; color: #4C3EC7; }
.lang-hinglish { background: #F1ECFB; color: #7B3FBF; }
.card-body h3 { font-size: 19px; }
.card-body p { color: var(--slate); font-size: 14px; flex: 1; }
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--slate);
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 4px;
}
.card-fee { font-weight: 700; color: var(--ink); font-size: 16px; }
.card-fee-strike { font-weight: 500; color: var(--slate); font-size: 13px; text-decoration: line-through !important; margin-left: 6px; }
.discount-badge {
    display: inline-block;
    background: #FBEEEC;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-top: 8px;
}

/* ---------- Gallery ---------- */
.gallery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--slate);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover { background: var(--royal); border-color: var(--royal); color: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,37,69,0.85), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 13px; font-weight: 600; }

/* ---------- Share Buttons ---------- */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}
.share-label { font-size: 13px; font-weight: 600; color: var(--slate); margin-right: 2px; }
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ice);
    border: 1px solid var(--line);
    color: var(--slate);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { transform: translateY(-2px); }
.share-whatsapp:hover { background: #25D366; color: var(--white); border-color: #25D366; }
.share-facebook:hover { background: #1877F2; color: var(--white); border-color: #1877F2; }
.share-twitter:hover { background: #0F1419; color: var(--white); border-color: #0F1419; }
.share-linkedin:hover { background: #0A66C2; color: var(--white); border-color: #0A66C2; }
.share-copy:hover { background: var(--royal); color: var(--white); border-color: var(--royal); }
.share-copied-msg {
    position: absolute;
    left: 0;
    bottom: -26px;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.share-copied-msg.show { opacity: 1; }
.share-buttons.on-dark .share-label { color: #C8D8ED; }
.share-buttons.on-dark .share-btn { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: var(--white); }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,37,69,0.94);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-media { position: relative; display: flex; align-items: center; justify-content: center; max-width: 90%; max-height: 78vh; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: var(--white); margin-top: 18px; font-size: 15px; font-weight: 600; text-align: center; }
.lightbox-counter { color: #9FB6D6; margin-top: 6px; font-size: 12px; font-family: var(--font-mono); }
.lightbox-close {
    position: absolute;
    top: 26px;
    right: 34px;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
@media (max-width: 900px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}

/* ---------- Verify Certificate ---------- */
.verify-box {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 44px;
    border: 1px solid var(--line);
}
.verify-box .seal { width: 46px; height: 46px; color: var(--royal); margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 15px;
    background: var(--ice);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--royal);
    box-shadow: 0 0 0 4px rgba(30,86,160,0.12);
}
textarea.form-control { font-family: var(--font-body); resize: vertical; }

.result-card {
    margin-top: 28px;
    border-radius: 12px;
    padding: 26px;
    border: 1px solid var(--line);
}
.result-valid { background: #EFF8F1; border-color: #CDE8D4; }
.result-invalid { background: #FBEEEC; border-color: #F0CFC9; }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.result-head .seal { width: 34px; height: 34px; }
.result-valid .seal { color: var(--success); }
.result-invalid .seal { color: var(--danger); }
.result-head strong { font-family: var(--font-display); font-size: 18px; }
.result-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.result-row:last-child { border: none; }
.result-row span:first-child { color: var(--slate); }
.result-row span:last-child { font-weight: 600; }
.cert-code-tag {
    font-family: var(--font-mono);
    background: var(--ink);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.03em;
}

/* ---------- Course Details ---------- */
.course-hero {
    background: var(--ink);
    color: var(--white);
    padding: 60px 0;
}
.course-hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.course-hero .container > * { min-width: 0; }
.course-hero h1 { color: var(--white); font-size: 36px; margin-bottom: 14px; overflow-wrap: break-word; }
.course-hero p { color: #C8D8ED; font-size: 15px; overflow-wrap: break-word; }
.course-hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.breadcrumb { font-size: 13px; color: var(--sky); margin-bottom: 16px; }
.breadcrumb a { color: #B9CEE8; }

.course-body { display: grid; grid-template-columns: 1fr 320px; gap: 50px; padding-top: 60px; padding-bottom: 60px; min-width: 0; }
.course-body > * { min-width: 0; }
.course-tags { display: flex; gap: 10px; margin: 16px 0 24px; flex-wrap: wrap; }
.tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: #EAF1FB;
    color: var(--royal);
}
.syllabus-list { margin-top: 10px; }
.syllabus-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.syllabus-num {
    font-family: var(--font-mono);
    color: var(--royal);
    font-weight: 600;
    font-size: 14px;
    min-width: 30px;
    flex-shrink: 0;
}
.syllabus-item span:not(.syllabus-num) {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-price { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.sidebar-list { margin: 20px 0; }
.sidebar-list li { display: flex; gap: 10px; font-size: 14px; color: var(--slate); padding: 7px 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.testimonial-stars { color: #E8A317; font-size: 15px; letter-spacing: 2px; }
.testimonial-quote { color: var(--slate); font-size: 15px; line-height: 1.7; flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.testimonial-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--sky); }
.testimonial-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.testimonial-role { font-size: 12px; color: var(--slate); }

.testimonial-slider { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { flex: 0 0 100%; min-width: 0; }
.testimonial-arrows { display: flex; gap: 10px; }
.slider-arrow-flat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--royal);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.slider-arrow-flat:hover { background: var(--royal); color: var(--white); border-color: var(--royal); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}
.testimonial-dot.active { background: var(--royal); width: 22px; border-radius: 5px; }

/* ---------- Contact / Footer forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.map-embed-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed-wrap iframe { display: block; }

.footer {
    background: var(--ink);
    color: #B9CEE8;
    padding: 70px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer .brand { color: var(--white); }
.footer .brand .seal { color: var(--sky); }
.footer p { font-size: 14px; line-height: 1.7; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: var(--white); }
.footer-follow { margin-top: 22px; }
.footer-follow-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #7E97BC; margin-bottom: 10px; }
.footer-follow-icons { display: flex; gap: 10px; }
.follow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--white);
    transition: transform 0.15s ease, background 0.15s ease;
}
.follow-btn svg { width: 16px; height: 16px; }
.follow-btn:hover { transform: translateY(-2px); background: var(--royal); border-color: var(--royal); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: #EFF8F1; color: #1F8A4C; border: 1px solid #CDE8D4; }
.alert-error { background: #FBEEEC; color: #C0392B; border: 1px solid #F0CFC9; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--ink), #123A6E);
    color: var(--white);
    padding: 64px 0 54px;
}
.page-banner h1 { color: var(--white); font-size: 34px; }
.page-banner .breadcrumb { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .course-hero .container { grid-template-columns: 1fr; }
    .course-body { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid .stat:nth-child(3) { border-left: 1px solid var(--line); }
}

@media (max-width: 980px) {
    .sidebar-card { position: static; }
}

@media (max-width: 720px) {
    .nav-links, .nav-cta .btn-outline { display: none; }
    .nav-toggle { display: block; }
    .slide-content h1 { font-size: 32px; }
    .slide { min-height: 460px; }
    .grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .verify-box { padding: 28px 22px; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .map-embed-wrap iframe { height: 260px; }
    .contact-grid { gap: 30px; }
}

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

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 200;
    padding: 24px;
}
.mobile-nav.active { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav a { display: block; padding: 16px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
