/* ── KLTE Africa Academy — Global Styles ── */

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

:root {
    --primary:      #1a3a5c;
    --primary-dark: #122840;
    --accent:       #e85d04;
    --accent-dark:  #c44d03;
    --success:      #276749;
    --danger:       #c53030;
    --warning:      #b7791f;
    --bg:           #f0f4f8;
    --surface:      #ffffff;
    --border:       #d1dde8;
    --text:         #1a202c;
    --text-muted:   #5a7184;
    --sidebar-w:    240px;
    --header-h:     64px;
    --nav-h:        69px;   /* public header: 68px bar + 1px border */
    --radius:       8px;
    --shadow:       0 2px 8px rgba(0,0,0,.10);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* ── Layout ── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.sidebar-logo-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.sidebar-user {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    color: rgba(255,255,255,.75);
}

.sidebar-user strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav { flex: 1; padding: 10px 0; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-left-color: var(--accent);
}

.sidebar-nav .nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.45);
    padding: 14px 20px 4px;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.sidebar-footer form { margin: 0; }

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
    color: rgba(255,255,255,.85);
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}

.btn-logout:hover { background: rgba(232,93,4,.35); color: #fff; }

.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.page-content { padding: 28px; flex: 1; }

/* ── Cards & Panels ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h2 { font-size: 16px; font-weight: 600; color: var(--primary); }
.card-body { padding: 20px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, background .15s;
    white-space: nowrap;
}

.btn:hover { opacity: .88; }
.btn-primary   { background: var(--primary);  color: #fff; }
.btn-accent    { background: var(--accent);   color: #fff; }
.btn-success   { background: var(--success);  color: #fff; }
.btn-danger    { background: var(--danger);   color: #fff; }
.btn-warning   { background: var(--warning);  color: #fff; }
.btn-outline   { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-sm        { padding: 6px 12px; font-size: 13px; }
.btn-lg        { padding: 12px 28px; font-size: 16px; }
.btn-block     { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,.12);
}

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: 12px; color: var(--danger); margin-top: 4px; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th {
    background: #f7fafd;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #f7fafd; }

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success { background: #f0faf4; border-color: var(--success); color: #1a4731; }
.alert-danger  { background: #fff5f5; border-color: var(--danger);  color: #742a2a; }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #744210; }
.alert-info    { background: #ebf8ff; border-color: #2b6cb0;        color: #1a365d; }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-passed   { background: #d1fae5; color: #064e3b; }
.badge-failed   { background: #fee2e2; color: #7f1d1d; }
.badge-primary  { background: #dbeafe; color: #1e3a8a; }

/* ── Progress bar ── */
.progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 6px 0;
}

.progress-bar {
    height: 100%;
    background: var(--success);
    border-radius: 999px;
    transition: width .4s ease;
}

/* ── Guest (login) layout ── */
.guest-page {
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.guest-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.guest-header {
    background: var(--primary-dark);
    padding: 28px 32px 24px;
    text-align: center;
}

.guest-header img { height: 56px; width: auto; object-fit: contain; margin-bottom: 10px; }

.guest-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.guest-header p { color: rgba(255,255,255,.65); font-size: 13px; }

.guest-body { padding: 28px 32px 32px; }

/* ── Utilities ── */
.flex          { display: flex; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.mt-1          { margin-top: 4px; }
.mt-2          { margin-top: 8px; }
.mt-3          { margin-top: 16px; }
.mt-4          { margin-top: 24px; }
.mb-3          { margin-bottom: 16px; }
.mb-4          { margin-bottom: 24px; }
.text-muted    { color: var(--text-muted); font-size: 13px; }
.text-danger   { color: var(--danger); }
.text-success  { color: var(--success); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.w-full        { width: 100%; }
.sr-only       { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Course description authored as HTML in the admin (portal pages). Mirrors
      the public course card's checkmark list. ── */
.course-desc { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.course-desc > :first-child { margin-top: 0; }
.course-desc > :last-child { margin-bottom: 0; }
.course-desc p { margin-bottom: 10px; }
.course-desc ul, .course-desc ol { list-style: none; margin: 12px 0 0; padding: 0; }
.course-desc ul li {
    position: relative; display: block; padding: 8px 4px 8px 30px;
    border-bottom: 1px solid #f0f2f7; font-size: 14px; line-height: 1.5; color: var(--text);
}
.course-desc ul li:last-child { border-bottom: none; }
.course-desc ul li::before {
    content: "\2713"; position: absolute; left: 0; top: 7px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #e8f0ff; color: #2f6fed; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.course-desc ol { list-style: decimal; padding-left: 20px; }
.course-desc ol li { margin-bottom: 6px; }
.course-desc a { color: var(--primary); font-weight: 600; }
.course-desc strong { color: var(--text); }

/* ── Student dashboard: course grid + locked (unpaid) course cards ── */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course-locked { border: 1px dashed var(--border); background: #fbfdff; }
.course-locked h3 { opacity: .85; }

.lock-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #eef3f8;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.lock-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.lock-price-label { font-size: 12px; color: var(--text-muted); }
.lock-price-value { font-size: 17px; font-weight: 700; color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .page-content { padding: 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }

    .topbar {
        padding: 0 16px;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--primary);
        font-size: 20px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 99;
    }

    .sidebar-overlay.open { display: block; }
}

@media (min-width: 769px) {
    .menu-toggle,
    .sidebar-overlay { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   PUBLIC MARKETING SITE  (home / about / courses / contact / enroll)
   Solid colours only — no gradients. Reuses the tokens above.
   ════════════════════════════════════════════════════════════════════ */

body.public { background: var(--surface); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Top navigation ── */
.site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 60;
}
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: calc(var(--nav-h) - 1px); }

.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand img { height: 40px; width: auto; object-fit: contain; }
.site-brand span { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.site-brand small { display: block; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }

.site-menu { display: flex; align-items: center; gap: 24px; }
.site-menu a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-menu a:hover, .site-menu a.active { color: var(--accent); }
.site-menu a.btn { color: #fff; }
.site-menu a.btn:hover { color: #fff; }
.site-menu-login { color: var(--primary) !important; font-weight: 600 !important; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--primary); transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); opacity: 1; }

/* ── Hero ── */
/* The lab photo sits behind a heavy navy gradient built from the brand colours:
   the room stays readable on the right, the headline keeps its contrast on the
   left. --primary remains the paint-in colour so the hero is never a bare band
   while the photo loads. */
.hero {
    position: relative; isolation: isolate;
    background: var(--primary); color: #fff; padding: 72px 0;

    /* Fills the first screen below the sticky header. min-height rather than
       height so a long headline or a landscape phone can still push it taller.
       svh is the stable small-viewport unit; the vh line is the fallback. */
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex; flex-direction: column; justify-content: center;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(100deg,
            rgba(18,40,64,.96) 0%,
            rgba(18,40,64,.90) 40%,
            rgba(26,58,92,.74) 68%,
            rgba(26,58,92,.55) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover, cover;
    /* 35% rather than centre: the branded wall in the photo sits high in the
       frame and lands flush against the hero's top edge when centred. */
    background-position: center, center 35%;
    background-repeat: no-repeat;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 760px); gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.hero-text h1 { font-size: 42px; line-height: 1.15; font-weight: 700; margin-bottom: 18px; }
.hero-text p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card { background: var(--surface); color: var(--text); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.hero-card-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-card h2, .hero-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 8px; }
.hero-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.hero-card ul { list-style: none; }
.hero-card li { font-size: 14px; padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--border); }
.hero-card li::before { content: "\2714"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ── Generic sections ── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; color: var(--primary); margin-bottom: 10px; }
.section-head p { font-size: 16px; color: var(--text-muted); }

.page-hero { background: var(--primary); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.8); }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.feature-icon { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.feature h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* ── Course cards ── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.course-card-body { padding: 24px; flex: 1; }
.course-card-body h3 { font-size: 19px; color: var(--primary); margin-bottom: 10px; }
.course-card-body p { font-size: 14px; color: var(--text-muted); }
.course-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
.course-price { color: var(--primary); }
.course-price-currency { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.course-price-value { font-size: 24px; font-weight: 700; }

/* ── CTA band ── */
.cta-band { background: var(--primary-dark); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.8); font-size: 15px; }

/* ── Prose / about ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 16px; color: var(--text); margin-bottom: 18px; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-split h2 { font-size: 28px; color: var(--primary); margin-bottom: 14px; }
.about-split p { color: var(--text-muted); margin-bottom: 20px; }
.about-points { display: flex; flex-direction: column; gap: 14px; }
.about-point { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.about-point strong { display: block; color: var(--primary); margin-bottom: 2px; }
.about-point span { font-size: 14px; color: var(--text-muted); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 24px; color: var(--primary); margin-bottom: 8px; }
.contact-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-item strong { display: block; color: var(--primary); font-size: 14px; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.contact-item a:hover { color: var(--accent); }

/* ── Enrollment / payment flow ── */
.enroll-wrap { max-width: 560px; margin: 40px auto; padding: 0 24px; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step { flex: 1; text-align: center; font-size: 13px; color: var(--text-muted); padding-top: 38px; position: relative; }
.step::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 3px; background: var(--border); }
.step-num { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.step.active { color: var(--primary); font-weight: 600; }
.step.active .step-num, .step.done .step-num { background: var(--accent); }
.step.active::before, .step.done::before { background: var(--accent); }

.order-summary { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; }
.order-summary .label { font-size: 13px; color: var(--text-muted); }
.order-summary .course-name { font-weight: 600; color: var(--primary); }
.order-summary .amount { font-size: 22px; font-weight: 700; color: var(--primary); }

.pay-method { display: flex; align-items: center; gap: 12px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; background: #fff8f3; }
.pay-method img { height: 26px; }
.pay-method .pm-name { font-weight: 600; color: var(--primary); }
.pay-method .pm-sub { font-size: 13px; color: var(--text-muted); }

.pay-status { text-align: center; padding: 20px; border-radius: var(--radius); margin-top: 18px; display: none; }
.pay-status.show { display: block; }
.pay-status.waiting { background: #fffbeb; border: 1px solid var(--warning); color: #744210; }
.pay-status.error   { background: #fff5f5; border: 1px solid var(--danger);  color: #742a2a; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.75); margin-top: 0; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 24px 32px; }
.site-footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 14px; line-height: 1.7; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: block; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; padding: 5px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Public responsive ── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-menu {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 8px 0; box-shadow: var(--shadow);
    }
    .site-menu.open { display: flex; }
    .site-menu a { padding: 12px 24px; border-bottom: 1px solid var(--border); }
    .site-menu a.btn { margin: 10px 24px 6px; text-align: center; }

    .hero { padding: 48px 0; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero::before {
        background-image:
            linear-gradient(180deg,
                rgba(18,40,64,.95) 0%,
                rgba(18,40,64,.89) 55%,
                rgba(26,58,92,.84) 100%),
            url('../images/hero-bg-mobile.jpg');
        background-position: center, center;
    }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-text h1 { font-size: 32px; }
    .section { padding: 44px 0; }
    .section-head h2 { font-size: 25px; }
    .about-split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-inner { flex-direction: column; text-align: center; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .prose h2 { font-size: 24px; }
}


/* ── Skip link (keyboard users land on the content, not the whole nav) ── */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 18px;
    border-radius: 0 0 var(--radius) 0; font-size: 14px; font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Breadcrumbs (mirrors the BreadcrumbList JSON-LD) ── */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--border); }
.breadcrumbs ol {
    list-style: none; margin: 0; padding: 12px 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--primary); font-weight: 600; }

/* ── Numbered "how it works" steps ── */
.how-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px;
}
.how-steps li {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 22px;
}
.how-step-num {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
    margin-bottom: 14px;
}
.how-steps h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.how-steps p { font-size: 14px; color: var(--text-muted); }

/* ── FAQ accordion (content is mirrored in FAQPage JSON-LD) ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 12px;
}
.faq summary {
    cursor: pointer; padding: 16px 20px; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16px; font-weight: 600; color: var(--primary); }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 700; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── Long-form copy ── */
.prose h2 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.prose h2:not(:first-child) { margin-top: 32px; }

/* ── Course card bullet list (was an inline <style> repeated once per card) ── */
.course-card-body ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; }
.course-card-body ul li {
    position: relative; display: block; padding: 10px 6px 10px 34px;
    border-bottom: 1px solid #f0f2f7; font-size: 15px; line-height: 1.5; color: #3a4257;
}
.course-card-body ul li:last-child { border-bottom: none; }
.course-card-body ul li::before {
    content: "\2713"; position: absolute; left: 0; top: 8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #e8f0ff; color: #2f6fed; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}


/* ══════════════════════════════════════════════════════════════════════════
   Home page: trust strip, lecturer support, lesson gallery, curriculum, stories
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --whatsapp:      #25d366;
    --whatsapp-dark: #1da851;
    --whatsapp-tint: #edfbf1;
}

/* ── WhatsApp buttons ── */
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37,211,102,.28);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); opacity: 1; color: #fff; }
.btn-whatsapp .wa-icon { flex: none; }
.btn-whatsapp small {
    font-size: 12px; font-weight: 600; opacity: .85;
    padding-left: 8px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,.4);
}

/* Fixed helper. Sits bottom-left so it never collides with the live chat bubble. */
.whatsapp-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 120;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--whatsapp); color: #fff;
    padding: 12px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    transition: background .15s, transform .15s;
}
.whatsapp-float:hover { background: var(--whatsapp-dark); transform: translateY(-2px); color: #fff; }
.whatsapp-float .wa-icon { width: 20px; height: 20px; flex: none; }

/* ── Trust strip under the hero ── */
.trust-strip { background: var(--primary-dark); color: #fff; }
.trust-strip-inner {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 32px; padding: 26px 24px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.trust-item strong { font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.trust-item span { font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.5; }

/* ── Lecturer support section ── */
.support-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.support-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--whatsapp-dark); background: var(--whatsapp-tint);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.support-copy h2 { font-size: 30px; color: var(--primary); margin-bottom: 14px; line-height: 1.2; }
.support-copy p { color: var(--text-muted); margin-bottom: 16px; }

.support-points { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.support-points li {
    position: relative; padding-left: 30px; font-size: 14.5px; color: var(--text-muted); line-height: 1.55;
}
.support-points li::before {
    content: "\2714"; position: absolute; left: 0; top: 1px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--whatsapp-tint); color: var(--whatsapp-dark);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.support-points strong { color: var(--primary); font-weight: 600; }

.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.support-shot { margin: 0; }
.support-shot img {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(26,58,92,.18);
}
.support-shot figcaption { font-size: 13px; color: var(--text-muted); margin-top: 12px; line-height: 1.55; }

/* ── Lesson gallery ── */
.gallery-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px;
}
.gallery-filter {
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}
.gallery-filter:hover { border-color: var(--accent); color: var(--accent); }
.gallery-filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.lesson-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px;
}
.lesson-shot {
    margin: 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.lesson-shot:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,58,92,.15); }
.lesson-shot[hidden] { display: none; }

.lesson-shot-btn {
    display: block; position: relative; width: 100%; padding: 0;
    border: none; background: #0b1622; cursor: pointer; line-height: 0;
}
.lesson-shot-btn img { display: block; width: 100%; height: auto; }

/* The frames are stills, so the card carries the video language instead:
   a scrim, a play button and a recording tag. */
.lesson-shot-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,17,27,.22) 0%, rgba(9,17,27,.06) 45%, rgba(9,17,27,.32) 100%);
    transition: background .15s;
}
.lesson-shot-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(232,93,4,.94);
    box-shadow: 0 6px 22px rgba(0,0,0,.4);
    transition: transform .15s, background .15s;
}
.lesson-shot-play::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid; border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.lesson-shot-btn:hover .lesson-shot-play,
.lesson-shot-btn:focus-visible .lesson-shot-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--accent);
}
.lesson-shot-btn:hover .lesson-shot-scrim {
    background: linear-gradient(180deg, rgba(9,17,27,.12) 0%, rgba(9,17,27,.02) 45%, rgba(9,17,27,.2) 100%);
}
.lesson-shot-tag {
    position: absolute; right: 12px; top: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(9,17,27,.78); color: #fff;
    font-size: 11.5px; font-weight: 600; letter-spacing: .03em; line-height: 1;
    padding: 6px 11px; border-radius: 999px;
}
.lesson-shot-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255,77,77,.22);
}

.lesson-shot figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.lesson-shot-module {
    align-self: flex-start; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--accent); background: #fdf1e7; padding: 4px 10px; border-radius: 999px;
}
.lesson-shot figcaption strong { font-size: 16px; color: var(--primary); }
.lesson-shot-caption { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ── Lightbox ── */
body.lightbox-open { overflow: hidden; }
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(9,17,27,.92);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img {
    display: block; width: 100%; height: auto; max-height: 78vh;
    object-fit: contain; border-radius: 10px;
}
.lightbox figcaption {
    color: rgba(255,255,255,.82); font-size: 14px; text-align: center;
    margin-top: 16px; line-height: 1.6;
}
.lightbox-close {
    position: absolute; top: 18px; right: 22px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; border: none;
    font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }

/* ── Intro: the "what you get" card beside the entity copy ── */
.intro-split {
    display: grid; grid-template-columns: .85fr 1.15fr;
    gap: 48px; align-items: start;
}
/* .prose centres itself and caps its width; inside the grid the column already
   does both, so undo it here rather than forking the prose styles. */
.intro-split .prose { max-width: none; margin: 0; }
.intro-split .prose h2 { margin-top: 0; }

/* The card was designed against the navy hero. On a white section it needs a
   border and a deeper shadow to keep its edges. */
.intro-card {
    border: 1px solid var(--border);
    box-shadow: 0 14px 36px rgba(26,58,92,.13);
    transition: transform .25s ease, box-shadow .25s ease;
}
.intro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(26,58,92,.18);
}

/* ── Scroll reveal, desktop only, and never against the visitor's wishes ──
   Gated on html.js so the card stays visible without scripting. */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    html.js .intro-card {
        opacity: 0;
        transform: translateY(30px) scale(.97);
        transition: opacity .65s ease, transform .65s cubic-bezier(.22,.9,.3,1);
    }
    html.js .intro-card.is-visible { opacity: 1; transform: none; }

    html.js .intro-card .hero-card-badge,
    html.js .intro-card li {
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity .45s ease, transform .45s ease;
    }
    html.js .intro-card.is-visible .hero-card-badge,
    html.js .intro-card.is-visible li { opacity: 1; transform: none; }

    html.js .intro-card.is-visible .hero-card-badge { transition-delay: .15s; }
    html.js .intro-card.is-visible li:nth-child(1) { transition-delay: .26s; }
    html.js .intro-card.is-visible li:nth-child(2) { transition-delay: .34s; }
    html.js .intro-card.is-visible li:nth-child(3) { transition-delay: .42s; }
    html.js .intro-card.is-visible li:nth-child(4) { transition-delay: .50s; }
    html.js .intro-card.is-visible li:nth-child(5) { transition-delay: .58s; }

    /* Hover lift would fight the entrance transform mid-animation. */
    html.js .intro-card:not(.is-visible):hover { transform: translateY(30px) scale(.97); }
}

/* ── Section eyebrow, e.g. "Sample - From across our courses" ── */
.section-tag {
    display: inline-block; margin-bottom: 12px;
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--accent); background: #fdf1e7;
    padding: 5px 13px; border-radius: 999px;
}

/* ── How you actually learn ── */
.learn-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px;
}
.learn-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 26px 22px 22px;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.learn-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(26,58,92,.13);
}
.learn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--bg); font-size: 25px; line-height: 1;
    margin-bottom: 16px;
}
.learn-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.learn-lead { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.learn-body { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.learn-proof {
    margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border);
    font-size: 12.5px; font-weight: 600; color: var(--accent);
}

/* Six cards read better as two rows of three than as four plus two. Scoped to
   the home page so the four-card grid on /courses keeps its single row. */
#why .feature-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ── Student portal screenshots ──
   The two captures have different aspect ratios, so each sits inside a browser
   frame that stretches to the row height. That keeps the captions on one line
   and reads as "this is the portal in your browser" rather than "here is a
   loose image". */
.portal-grid {
    display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start;
}
.portal-shot {
    margin: 0; display: flex; flex-direction: column;
    min-width: min(340px, 100%);
}
.portal-frame {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(26,58,92,.16);
}
.portal-chrome {
    display: block; padding: 11px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.portal-chrome::before {
    content: ""; display: block;
    width: 9px; height: 9px; border-radius: 50%; background: #ff5f57;
    box-shadow: 15px 0 0 #febc2e, 30px 0 0 #28c840;
}
.portal-frame img { display: block; width: 100%; height: auto; }
.portal-shot figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 5px; }
.portal-shot figcaption strong { font-size: 16px; color: var(--primary); }
.portal-shot figcaption span { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ── Highlighted feature card ── */
.feature-highlight {
    border-color: var(--whatsapp);
    box-shadow: 0 6px 18px rgba(37,211,102,.14);
    background: linear-gradient(180deg, var(--whatsapp-tint) 0%, var(--surface) 55%);
}

/* ── Student stories ── */
.stories-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px;
}
.story { margin: 0; display: flex; flex-direction: column; }
.story blockquote {
    position: relative; margin: 0 0 14px;
    background: var(--whatsapp-tint); border: 1px solid #cdeed8;
    border-radius: 12px 12px 12px 2px; padding: 18px 20px;
    font-size: 14.5px; color: #23402f; line-height: 1.65; flex: 1;
}
.story blockquote::after {
    content: ""; position: absolute; left: -1px; bottom: -10px;
    border-width: 10px 12px 0 0; border-style: solid;
    border-color: var(--whatsapp-tint) transparent transparent transparent;
    filter: drop-shadow(-1px 1px 0 #cdeed8);
}
.story figcaption { display: flex; align-items: center; gap: 12px; padding-left: 6px; }
.story-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.story-who { display: flex; flex-direction: column; line-height: 1.3; }
.story-who strong { font-size: 14.5px; color: var(--primary); }
.story-who small { font-size: 12.5px; color: var(--text-muted); }
.stories-note {
    text-align: center; font-size: 13.5px; color: var(--text-muted);
    max-width: 620px; margin: 30px auto 0; line-height: 1.65;
}

/* ── CTA band actions ── */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Home page responsive ── */
@media (max-width: 900px) {
    /* Stacked, the section heading should still be read first. */
    .intro-split { grid-template-columns: 1fr; gap: 32px; }
    .intro-split .intro-prose { order: -1; }
    .support-split { grid-template-columns: 1fr; gap: 32px; }
    .support-shot { order: -1; }
}

@media (max-width: 768px) {
    .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 4px 20px; padding: 22px 24px; }
    .trust-item strong { font-size: 24px; }
    .support-copy h2 { font-size: 25px; }
    .intro-split { grid-template-columns: 1fr; gap: 30px; }
    .lesson-gallery { grid-template-columns: 1fr; gap: 20px; }
    .portal-grid { grid-template-columns: 1fr; gap: 26px; }
    .lesson-shot-play { width: 52px; height: 52px; }
    .gallery-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .gallery-filter { flex: none; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; justify-content: center; }
    .whatsapp-float { left: 14px; bottom: 14px; padding: 12px 14px; }
    .whatsapp-float span { display: none; }
    .lightbox { padding: 24px 14px; }
    .lightbox-close { top: 10px; right: 12px; }
}
