    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
    body { background-color: #0b0d12; color: #e0e0e0; padding-bottom: 60px; position: relative; }

    /* ============================= LOCKED HERO BACKGROUND =============================
       title_card.jpg is fixed behind everything with a dark scrim. Sections below the
       hero use their normal opaque backgrounds, so the image naturally disappears under
       them as you scroll -- no JS needed to fake the "gets darker as you scroll" effect. */
    .fixed-bg {
        position: fixed; inset: 0; z-index: -2;
        background: url('title_card.jpg') center center / cover no-repeat;
    }
    .fixed-bg-scrim {
        position: fixed; inset: 0; z-index: -1;
        background: linear-gradient(to bottom, rgba(3,5,8,0.72) 0%, rgba(3,5,8,0.85) 35%, rgba(5,8,12,0.95) 65%, #0b0d12 100%);
    }

    /* Film grain overlay -- subtle, sits above everything but never blocks clicks */
    .grain-overlay {
        position: fixed; inset: 0; z-index: 9997; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* Cursor-follow soft glow, tracks the mouse across the whole page */
    .cursor-glow {
        position: fixed; width: 420px; height: 420px; border-radius: 50%; z-index: 1; pointer-events: none;
        background: radial-gradient(circle, rgba(99,179,237,0.14) 0%, transparent 70%);
        transform: translate(-50%, -50%); left: 50%; top: 30%; transition: opacity 0.3s ease; opacity: 0;
    }
    .cursor-glow.active { opacity: 1; }

    /* Scroll progress bar */
    .scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, #63b3ed, #2b6cb0); z-index: 10010; transition: width 0.1s ease; }

    /* Scroll-reveal (replaces the "Motion" library with plain CSS + IntersectionObserver) */
    .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    /* Top Navigation Header -- sticky + blurred so the fixed background shows through softly */
    header {
        position: sticky; top: 0; z-index: 100;
        background: rgba(20, 24, 36, 0.72);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #2a3448;
        padding: 0 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 65px;
    }
    .header-promo {
        background: #1e293b;
        color: #93c5fd;
        padding: 8px 18px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid #334155;
        border-radius: 20px;
    }
    .header-promo .promo-text { display: inline-block; transition: opacity 0.4s ease; }
    nav a { color: #8a99ad; text-decoration: none; margin-left: 25px; font-size: 14px; font-weight: 600; position: relative; padding-bottom: 4px; transition: color 0.2s ease; }
    nav a:hover { color: #63b3ed; }
    nav a.active { color: #63b3ed; }
    nav a.active::after {
        content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
        background: linear-gradient(90deg, #63b3ed, #2b6cb0); border-radius: 2px;
    }

    /* Hero Section -- transparent so the fixed title_card.jpg + scrim shows through */
    .hero {
        text-align: center;
        padding: 40px 20px 20px 20px;
        position: relative;
        z-index: 2;
    }
    /* Stat strip under the hero */
    .stat-strip {
        display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
        max-width: 900px; margin: 10px auto 0 auto; padding: 0 20px;
    }
    .stat-box {
        background: rgba(20, 24, 36, 0.55); backdrop-filter: blur(6px);
        border: 1px solid rgba(99, 179, 237, 0.18); border-radius: 8px;
        padding: 16px 22px; min-width: 150px; text-align: center;
    }
    .stat-box .stat-number { font-size: 26px; font-weight: 800; color: #fff; }
    .stat-box .stat-label { font-size: 11px; color: #8a99ad; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
    /* Logo inside the hero, centered, above the headline.
       logo.png is cropped tight to the badge, so this is plain responsive
       sizing — no scale() hacks needed. */
    .hero-logo-container {
        width: 100%;
        max-width: 420px;
        margin: 0 auto 30px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero-logo {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 8px 24px rgba(0,0,0,0.8));
    }
    .hero h1 {
        font-size: 56px;
        font-weight: 900;
        letter-spacing: -1.2px;
        line-height: 1.1;
        margin: 20px auto 20px auto;
        max-width: 900px;
        background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }
    .hero p { font-size: 17px; color: #8a99ad; max-width: 650px; margin: 0 auto 35px auto; line-height: 1.6; font-weight: 400; }
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #2b6cb0); color: #fff; padding: 14px 28px; border-radius: 6px;
        text-decoration: none; font-weight: 600; margin: 0 10px; display: inline-block;
        box-shadow: 0 4px 14px rgba(43, 108, 176, 0.4); border: none; cursor: pointer; font-size: 14px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn-primary:hover { box-shadow: 0 6px 20px rgba(43, 108, 176, 0.55); }
    .btn-primary.is-disabled {
        opacity: 0.45; cursor: not-allowed; pointer-events: none; box-shadow: none;
    }
    .btn-secondary {
        background: rgba(255,255,255,0.03); border: 1px solid #4a5568; color: #cbd5e0; padding: 14px 28px; border-radius: 6px;
        text-decoration: none; font-weight: 600; margin: 0 10px; display: inline-block; cursor: pointer; font-size: 14px;
        transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .btn-secondary:hover { border-color: #63b3ed; color: #63b3ed; }
    /* Magnetic pull is applied via inline transform from JS on mousemove; these two
       classes just make sure the transition feels smooth and resets cleanly. */
    .btn-primary, .btn-secondary { will-change: transform; }

    /* Section Containers */
    .section-title { text-align: center; font-size: 26px; color: #fff; margin: 70px 0 25px 0; font-weight: 800; letter-spacing: -0.5px; }
    .grid-3 { display: flex; justify-content: center; gap: 25px; padding: 0 80px; flex-wrap: wrap; }
    .grid-4 { display: flex; justify-content: center; gap: 20px; padding: 0 60px; flex-wrap: wrap; }
    .outline-card { background: rgba(20,24,36,0.6); backdrop-filter: blur(10px); border: 1px solid #2a3448; border-radius: 8px; padding: 24px; width: 260px; text-align: left; }
    .outline-card h3 { font-size: 16px; color: #fff; margin-bottom: 4px; font-weight: 700; }
    .outline-card .outline-effective { font-size: 11px; color: #63b3ed; font-weight: 600; margin-bottom: 14px; display: block; }
    .outline-domains { list-style: none; margin: 0 0 18px 0; padding: 0; }
    .outline-domains li { display: flex; justify-content: space-between; font-size: 12px; color: #8a99ad; padding: 5px 0; border-bottom: 1px solid #1e2536; }
    .outline-domains li:last-child { border-bottom: none; }
    .outline-domains li span:last-child { color: #cbd5e0; font-weight: 700; }
    .outline-download { display: block; text-align: center; background: linear-gradient(135deg, #3b82f6, #2b6cb0); border: none; color: #fff; padding: 10px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(43, 108, 176, 0.4); transition: box-shadow 0.2s, transform 0.15s ease; }
    .outline-download:hover { box-shadow: 0 6px 20px rgba(43, 108, 176, 0.55); }

    /* Course Cards -- glass style with hover lift + glow border + subtle 3D tilt (tilt applied via JS) */
    .card {
        background: rgba(20, 24, 36, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(99, 179, 237, 0.15); border-radius: 8px; padding: 30px; width: 320px; text-align: center;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        transform-style: preserve-3d; will-change: transform;
    }
    .card:hover { border-color: rgba(99, 179, 237, 0.5); box-shadow: 0 16px 36px rgba(43, 108, 176, 0.25); }
    .card-icon {
        width: 46px; height: 46px; margin: 0 auto 14px auto; border-radius: 50%;
        background: linear-gradient(135deg, rgba(99,179,237,0.2), rgba(43,108,176,0.1));
        border: 1px solid rgba(99,179,237,0.3);
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; font-weight: 800; color: #63b3ed;
    }
    .card-thumb {
        width: calc(100% + 60px); margin: -30px -30px 20px -30px; height: 160px;
        object-fit: cover; display: block; border-radius: 8px 8px 0 0;
        border-bottom: 1px solid rgba(99,179,237,0.15);
        opacity: 0; transform: translateY(45px) scale(0.94);
        transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .card-thumb.thumb-visible { opacity: 1; transform: translateY(0) scale(1); }
    .card-thumb.thumb-floating { animation: thumbBob 4.5s ease-in-out infinite; }
    @keyframes thumbBob {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    .card h3 { font-size: 18px; color: #fff; margin-bottom: 10px; font-weight: 700; }
    .card p { font-size: 13px; color: #8a99ad; margin-bottom: 20px; }
    .coupon-box { background: #0b0d12; border: 1px dashed #4a5568; padding: 8px; font-size: 12px; color: #63b3ed; font-weight: 600; margin-bottom: 20px; border-radius: 4px; }

    /* Exam Simulator Widget (on-page form) */
    .sim-box { background: #141824; border: 1px solid #2a3448; max-width: 800px; margin: 0 auto; padding: 40px; border-radius: 8px; }
    .form-control { width: 100%; padding: 12px; background: #0b0d12; border: 1px solid #2a3448; color: #fff; border-radius: 4px; margin-bottom: 15px; outline: none; font-size: 14px; }
    .form-error { color: #ef4444; font-size: 13px; margin: -8px 0 15px 0; display: none; }
    .policy-note { font-size: 12px; color: #8a99ad; text-align: center; margin: 14px 0 0 0; line-height: 1.5; }
    .lock-notice { background: #2d1b1b; border: 1px solid #742a2a; color: #fca5a5; border-radius: 6px; padding: 12px 14px; font-size: 13px; margin: -8px 0 15px 0; line-height: 1.5; }

    /* Certificate verification */
    .verify-box { background: #0b0d12; border: 1px solid #2a3448; border-radius: 6px; padding: 18px; text-align: center; line-height: 1.6; color: #cbd5e0; font-size: 14px; }
    .verify-valid { border-color: #2f855a; }
    .verify-valid strong { font-size: 20px; color: #ffffff; }
    .verify-invalid { border-color: #742a2a; color: #fca5a5; }

    /* The Inner Circle (formerly "Community & Social Funnel") */
    .social-flex { display: flex; justify-content: center; gap: 18px; padding: 0 40px; flex-wrap: wrap; }
    .social-box {
        background: rgba(20, 24, 36, 0.6); backdrop-filter: blur(8px);
        border: 1px solid #2a3448; width: 200px; padding: 20px 14px; border-radius: 8px; text-align: center;
        position: relative; overflow: hidden;
        transition: transform 0.25s ease, border-color 0.25s ease;
    }
    .social-box h3 { font-size: 15px; }
    .social-box .btn-primary { padding: 10px 8px; font-size: 12px; margin: 0; }
    .social-box:hover { transform: translateY(-6px); border-color: rgba(99,179,237,0.4); }
    .social-box::before {
        content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
        background: linear-gradient(90deg, transparent, #63b3ed, transparent);
        transition: left 0.6s ease;
    }
    .social-box:hover::before { left: 100%; }
    .social-icon {
        width: 44px; height: 44px; margin: 0 auto 12px auto; border-radius: 50%;
        background: radial-gradient(circle, rgba(99,179,237,0.3), rgba(99,179,237,0.05));
        display: flex; align-items: center; justify-content: center; font-size: 18px;
        animation: pulseGlow 2.4s ease-in-out infinite;
    }
    @keyframes pulseGlow {
        0%, 100% { box-shadow: 0 0 0 0 rgba(99,179,237,0.25); }
        50% { box-shadow: 0 0 0 10px rgba(99,179,237,0); }
    }
    .social-icon.icon-youtube {
        background: radial-gradient(circle, rgba(255,0,0,0.35), rgba(255,0,0,0.05));
    }
    .social-icon.icon-tiktok {
        background: radial-gradient(circle, rgba(37,244,238,0.18), rgba(254,44,85,0.15));
    }
    .social-icon.icon-facebook {
        background: radial-gradient(circle, rgba(24,119,242,0.35), rgba(24,119,242,0.05));
    }
    .social-icon.icon-linkedin {
        background: radial-gradient(circle, rgba(10,102,194,0.35), rgba(10,102,194,0.05));
    }
    .social-icon.icon-x {
        background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
    }
    .yt-play { transform-origin: center; animation: ytPulse 2s ease-in-out infinite; }
    @keyframes ytPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.15); }
    }
    .tt-cyan { animation: ttCyanShift 2.4s ease-in-out infinite; }
    .tt-pink { animation: ttPinkShift 2.4s ease-in-out infinite; }
    @keyframes ttCyanShift {
        0%, 40%, 100% { transform: translate(0,0); }
        50% { transform: translate(-1.4px,-1.4px); }
    }
    @keyframes ttPinkShift {
        0%, 40%, 100% { transform: translate(0,0); }
        50% { transform: translate(1.4px,1.4px); }
    }

    footer { text-align: center; color: #4a5568; font-size: 12px; margin-top: 80px; padding: 20px; }

    /* ============================= MODALS ============================= */
    .modal-overlay {
        position: fixed; inset: 0; background: rgba(3, 5, 8, 0.85);
        display: none; align-items: center; justify-content: center;
        z-index: 9999; padding: 20px;
    }
    .modal-overlay.open { display: flex; }
    .exam-container {
        background: #141824; border: 1px solid #2a3448; border-radius: 10px;
        width: 100%; max-width: 900px; max-height: 92vh; overflow-y: auto;
        padding: 30px; box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    }
    .exam-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a3448; padding-bottom: 18px; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
    .timer-box { background: #0b0d12; border: 1px solid #2a3448; padding: 8px 16px; border-radius: 6px; font-weight: 700; color: #fff; font-size: 14px; }
    .timer-box.low-time { border-color: #ef4444; color: #ef4444; }
    .btn-review-summary { background: transparent; border: 1px solid #4a5568; color: #cbd5e0; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; }
    .btn-review-summary:hover { border-color: #63b3ed; color: #63b3ed; }

    .question-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    #question-number { color: #8a99ad; font-weight: 600; font-size: 14px; }
    .btn-flag { background: transparent; border: 1px solid #4a5568; color: #cbd5e0; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
    .btn-flag.active { background: #ed8936; border-color: #ed8936; color: #fff; }
    .question-stem { font-size: 17px; line-height: 1.6; color: #fff; margin-bottom: 22px; font-weight: 600; }
    .options-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
    .option-item {
        background: #0b0d12; border: 1px solid #2a3448; border-radius: 6px;
        padding: 14px 16px; cursor: pointer; display: flex; align-items: center;
        gap: 12px; transition: border-color 0.15s ease, background 0.15s ease;
        font-size: 14px; color: #cbd5e0;
    }
    .option-item:hover { border-color: #63b3ed; }
    .option-item.selected { border-color: #2b6cb0; background: rgba(43, 108, 176, 0.15); color: #fff; }
    .option-letter {
        width: 26px; height: 26px; border-radius: 50%; background: #0b0d12;
        border: 1px solid #4a5568; display: flex; align-items: center;
        justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0;
    }
    .option-item.selected .option-letter { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }

    .exam-footer { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid #2a3448; gap: 10px; flex-wrap: wrap; }

    .palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 18px 0; }
    .palette-btn {
        width: 44px; height: 44px; border-radius: 6px; border: 1px solid #2a3448;
        background: #0b0d12; color: #cbd5e0; font-weight: 700; font-size: 13px; cursor: pointer;
    }
    .palette-btn.answered { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
    .palette-btn.flagged { box-shadow: inset 0 0 0 2px #ed8936; }
    .palette-btn.current { outline: 2px solid #63b3ed; outline-offset: 1px; }
    .legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 15px 0; font-size: 13px; }
    .legend span { display: inline-flex; align-items: center; gap: 6px; color: #8a99ad; }
    .legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

    /* Flagged-count badge next to the question counter (replaces the old jump-around palette button) */
    .flag-badge { background: #ed8936; color: #1a1200; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 10px; display: none; }
    .flag-badge.show { display: inline-block; }

    /* Per-question action bar: Mark For Review / Reset / Next (forward-only, no Previous anywhere) */
    .action-bar { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid #2a3448; gap: 10px; flex-wrap: wrap; }
    .action-bar-left { display: flex; gap: 10px; flex-wrap: wrap; }
    .btn-save-exit { background: transparent; border: 1px solid #2f855a; color: #9ae6b4; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
    .btn-save-exit:hover { background: #2f855a; color: #fff; }
    .pmes-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: #16a34a; color: #fff; padding: 14px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; z-index: 99999; box-shadow: 0 8px 24px rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; max-width: 90vw; text-align: center; }
    .pmes-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* Neutral "selected" state shared by matching / hot-spot so nothing hints right or wrong */
    .neutral-selected { border-color: #4a5568 !important; background: #1c2331 !important; color: #fff !important; }

    /* Matching engine */
    .matching-wrap { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
    .matching-col { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
    .matching-col-label { font-size: 12px; color: #8a99ad; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
    .match-item {
        background: #0b0d12; border: 1px solid #2a3448; border-radius: 6px;
        padding: 12px 14px; cursor: pointer; font-size: 14px; color: #cbd5e0;
        transition: border-color 0.15s ease, background 0.15s ease;
    }
    .match-item:hover { border-color: #63b3ed; }
    .match-item.picking { border-color: #63b3ed; background: rgba(99, 179, 237, 0.12); }
    .match-item.paired { opacity: 0.6; cursor: default; }

    /* Hot-spot engine */
    .hotspot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 10px; }
    .hotspot-zone {
        background: #0b0d12; border: 1px solid #2a3448; border-radius: 6px;
        padding: 18px 12px; cursor: pointer; font-size: 14px; color: #cbd5e0;
        text-align: center; font-weight: 600; transition: border-color 0.15s ease, background 0.15s ease;
    }
    .hotspot-zone:hover { border-color: #63b3ed; }
    .hotspot-diagram { background: #0f1420; border: 1px solid #2a3448; border-radius: 8px; padding: 16px; margin-bottom: 16px; }

    /* Comic-strip engine */
    .comic-panels { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
    .comic-panel {
        flex: 1; min-width: 150px; background: #0b0d12; border: 1px dashed #4a5568; border-radius: 6px;
        padding: 14px; min-height: 110px; display: flex; flex-direction: column; justify-content: center;
    }
    .comic-panel-label { font-size: 10px; color: #63b3ed; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 700; }
    .comic-panel-caption { font-size: 12px; color: #8a99ad; line-height: 1.4; }
    .comic-note { font-size: 12px; color: #4a5568; margin: -10px 0 20px 0; font-style: italic; }
    .comic-image-wrap { margin-bottom: 20px; border-radius: 8px; overflow: hidden; border: 1px solid #2a3448; }
    .comic-image { display: block; width: 100%; height: auto; }

    .results-score { text-align: center; padding: 20px 0; }
    .results-score .big-number { font-size: 64px; font-weight: 900; line-height: 1; }
    .results-score .big-number.pass { color: #48bb78; }
    .results-score .big-number.fail { color: #ef4444; }
    .results-score .status-label { font-size: 20px; font-weight: 700; margin-top: 10px; }
    .results-breakdown { display: flex; justify-content: center; gap: 30px; margin: 25px 0; flex-wrap: wrap; text-align: center; }
    .results-breakdown div strong { display: block; font-size: 22px; color: #fff; }
    .results-breakdown div span { font-size: 12px; color: #8a99ad; text-transform: uppercase; letter-spacing: 1px; }

    /* ============================= CERTIFICATE ============================= */
    .certificate-container {
        width: 1056px; max-width: 100%; height: 816px; max-height: 78vh;
        background: linear-gradient(135deg, #09121a 0%, #030508 100%);
        padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); position: relative;
        margin: 0 auto;
    }
    .certificate-border { width: 100%; height: 100%; border: 2px solid #94a3b8; padding: 10px; }
    .certificate-inner-border {
        width: 100%; height: 100%; border: 1px solid rgba(148, 163, 184, 0.4);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 50px 70px; text-align: center;
        background: radial-gradient(circle at center, rgba(9, 18, 26, 0) 0%, rgba(3, 5, 8, 0.6) 100%);
        position: relative;
    }
    .cert-header-row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 25px; }
    .cert-logo-wrapper { width: 170px; display: flex; justify-content: center; align-items: center; }
    .cert-logo { width: 100%; height: auto; }
    .cert-brand-text { font-size: 16px; font-weight: 700; color: #8a99ad; letter-spacing: 4px; text-transform: uppercase; }
    .certificate-inner-border h1 {
        font-family: 'Playfair Display', serif; font-size: 60px; white-space: nowrap;
        font-weight: 800; color: #e2e8f0; margin-bottom: 10px; letter-spacing: 1px;
        background: none; -webkit-text-fill-color: #e2e8f0; filter: none;
    }
    .cert-subtitle { font-size: 18px; color: #cbd5e0; margin-bottom: 35px; font-weight: 300; letter-spacing: 1px; }
    .cert-student-name {
        font-family: 'Playfair Display', serif; font-size: 58px; color: #ffffff;
        font-style: italic; border-bottom: 1px solid #4a5568; padding-bottom: 15px;
        margin-bottom: 25px; width: 80%;
    }
    .cert-course-description { font-size: 19px; color: #8a99ad; line-height: 1.6; max-width: 750px; margin-bottom: 40px; }
    .cert-highlight { color: #63b3ed; font-weight: 600; }
    .cert-footer-grid { display: flex; justify-content: center; align-items: flex-end; width: 100%; margin-top: auto; }
    .cert-signature-block { text-align: center; width: 280px; }
    .cert-signature-line { border-top: 1px solid #8a99ad; padding-top: 10px; margin-bottom: 5px; }
    .cert-signature-text { font-size: 13px; color: #8a99ad; text-transform: uppercase; letter-spacing: 1.5px; }
    .cert-meta-data { margin-top: 25px; font-size: 10px; color: #4a5568; text-align: center; letter-spacing: 1px; line-height: 1.4; }
    .cert-actions { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

    /* Print isolation: only #certificate-print-area shows when printing.
       Forces landscape + zero margins so the certificate fills one clean
       page edge-to-edge instead of printing squashed across several
       portrait pages. */
    @page { size: landscape; margin: 0; }
    @media print {
        html, body { width: 100%; height: 100%; background: #030508 !important; }
        body * { visibility: hidden; }
        #certificate-print-area, #certificate-print-area * { visibility: visible; }
        #certificate-print-area {
            position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
            margin: 0; padding: 0; display: flex; align-items: center; justify-content: center;
        }
        .certificate-container { width: 100vw; height: 100vh; max-height: none; box-shadow: none; }
        .cert-actions { display: none !important; }
    }

.policy-section { max-width: 820px; margin: 60px auto; padding: 0 20px; color: #b8c2d0; font-size: 14px; line-height: 1.7; }
.policy-section h2 { color: #ffffff; font-size: 26px; margin-bottom: 6px; }
.policy-section .policy-updated { color: #6b7a8f; font-size: 12px; margin-bottom: 24px; }
.policy-section h3 { color: #ffffff; font-size: 17px; margin: 28px 0 8px 0; }
.policy-section p, .policy-section li { color: #b8c2d0; }
.policy-section ul { padding-left: 20px; margin: 8px 0; }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #8a99ad; text-decoration: none; margin: 0 8px; font-size: 12px; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }


/* ============================================================================
   MULTI-PAGE NAV + FOOTER (added when the site was split into separate pages
   for Udemy Courses and the legal pages -- Paddle's verification required
   Terms/Privacy to live on their own URLs, not just in-page anchors)
   ============================================================================ */
nav a.nav-external { }

/* ============================================================================
   DECORATIVE SECTION GLOW -- a soft vector blob behind each section title.
   Purely CSS (no image asset), same blue accent family as the rest of the
   site, so section breaks read as designed rather than a flat list of cards.
   ============================================================================ */
.section-glow-wrap { position: relative; }
.section-glow-wrap::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    width: 520px; height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(99,179,237,0.16) 0%, rgba(99,179,237,0.05) 45%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.section-glow-wrap > * { position: relative; z-index: 1; }

/* Wavy section divider -- subtle vector rule used between major sections
   instead of a plain margin gap, so the page reads as art-directed. */
.section-divider { display: block; width: 100%; height: 28px; margin: 10px 0; opacity: 0.35; }
.section-divider path { stroke: #2b6cb0; stroke-width: 1.5; fill: none; }

/* ============================================================================
   COURSE CREATOR SUITE (CCS APP) SECTION
   ============================================================================ */
.app-badge {
    width: 64px; height: 64px; margin: 0 auto 18px auto; border-radius: 16px;
    background: linear-gradient(135deg, rgba(99,179,237,0.25), rgba(43,108,176,0.12));
    border: 1px solid rgba(99,179,237,0.35);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(43,108,176,0.25);
}
.app-intro { max-width: 720px; margin: 0 auto 40px auto; text-align: center; }
.app-intro p { font-size: 15px; color: #8a99ad; line-height: 1.7; }
.app-name { text-align: center; font-size: 20px; font-weight: 700; color: #fff; margin: -10px 0 28px 0; }
.app-feature-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; max-width: 900px; margin: 0 auto 45px auto; }
.app-feature {
    display: flex; align-items: center; gap: 10px; background: rgba(20,24,36,0.5);
    border: 1px solid #2a3448; border-radius: 30px; padding: 10px 18px 10px 12px;
    font-size: 12.5px; color: #cbd5e0; font-weight: 600;
}
.app-feature .feat-icon { width: 22px; height: 22px; flex-shrink: 0; }

.platform-flex { display: flex; justify-content: center; gap: 25px; padding: 0 80px; flex-wrap: wrap; }
.platform-flex-note { text-align: center; margin-top: 14px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.platform-flex-note a { color: #63b3ed; text-decoration: underline; }
.platform-box {
    background: rgba(20, 24, 36, 0.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 179, 237, 0.15); border-radius: 8px;
    width: 280px; padding: 30px; text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-box:hover { border-color: rgba(99, 179, 237, 0.5); box-shadow: 0 16px 36px rgba(43, 108, 176, 0.25); transform: translateY(-4px); }
.platform-box.is-pending { opacity: 0.6; }
.platform-icon {
    width: 46px; height: 46px; margin: 0 auto 14px auto; border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,179,237,0.2), rgba(43,108,176,0.1));
    border: 1px solid rgba(99,179,237,0.3);
    display: flex; align-items: center; justify-content: center;
}
.platform-box h3 { font-size: 17px; color: #fff; margin-bottom: 6px; font-weight: 700; }
.platform-box .platform-price { font-size: 13px; color: #63b3ed; font-weight: 700; margin-bottom: 14px; }
.platform-box .platform-note { font-size: 11px; color: #6b7a8f; margin-top: 10px; }
.platform-status {
    display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 10px; margin-bottom: 14px;
}
.platform-status.status-live { background: rgba(72,187,120,0.15); color: #68d391; border: 1px solid rgba(72,187,120,0.35); }
.platform-status.status-pending { background: rgba(237,137,54,0.15); color: #f6ad55; border: 1px solid rgba(237,137,54,0.35); }

/* ============================================================================
   COURSES PAGE (dedicated page, moved off the homepage)
   ============================================================================ */
.courses-page-intro { max-width: 640px; margin: 0 auto 10px auto; text-align: center; color: #8a99ad; font-size: 14px; }

/* ============================================================================
   CCS APP DETAIL PAGE
   ============================================================================ */
.ccs-hero { max-width: 780px; margin: 0 auto; text-align: center; padding: 50px 20px 10px 20px; }
.ccs-hero .eyebrow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #63b3ed; font-weight: 700; margin-bottom: 14px; }
.ccs-hero h1 { font-size: 40px; color: #fff; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.ccs-hero p.lede { font-size: 16px; color: #8a99ad; line-height: 1.65; margin-bottom: 30px; }

.stat-callout {
    max-width: 700px; margin: 0 auto 40px auto; padding: 26px 30px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(99,179,237,0.12), rgba(43,108,176,0.06));
    border: 1px solid rgba(99,179,237,0.3); text-align: center;
}
.stat-callout .stat-numbers { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.stat-callout .stat-old { font-size: 22px; color: #8a99ad; text-decoration: line-through; font-weight: 600; }
.stat-callout .stat-arrow { color: #63b3ed; font-size: 20px; }
.stat-callout .stat-new { font-size: 32px; color: #68d391; font-weight: 800; }
.stat-callout .stat-caption { font-size: 13.5px; color: #cbd5e0; line-height: 1.6; }
.stat-callout .stat-source { font-size: 11.5px; color: #6b7a8f; margin-top: 10px; font-style: italic; }

.ccs-section { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.ccs-section h2.section-title { margin-top: 0; }
.ccs-section p.section-sub { max-width: 640px; margin: -10px auto 30px auto; text-align: center; color: #8a99ad; font-size: 14px; }

.benefit-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.benefit-card {
    background: rgba(20,24,36,0.6); backdrop-filter: blur(8px); border: 1px solid rgba(99,179,237,0.15);
    border-radius: 8px; padding: 22px; width: 280px; text-align: left;
}
.benefit-card .b-icon { font-size: 22px; margin-bottom: 10px; }
.benefit-card h3 { font-size: 15px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.benefit-card p { font-size: 13px; color: #8a99ad; line-height: 1.55; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.gallery-item {
    background: rgba(20,24,36,0.6); border: 1px solid rgba(99,179,237,0.15); border-radius: 8px;
    overflow: hidden; cursor: zoom-in; transition: transform 0.2s ease, border-color 0.2s ease;
}
.gallery-item:hover { transform: translateY(-3px); border-color: rgba(99,179,237,0.5); }
.gallery-item img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.gallery-item .g-cap { padding: 10px 14px; font-size: 12.5px; color: #cbd5e0; font-weight: 600; }

.lightbox-overlay {
    display: none; position: fixed; inset: 0; background: rgba(5,7,12,0.92); z-index: 500;
    align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 86vh; border-radius: 8px; border: 1px solid rgba(99,179,237,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-overlay .lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #cbd5e0; font-size: 14px; }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: #cbd5e0; font-size: 30px; cursor: pointer; line-height: 1; }

.included-list { max-width: 640px; margin: 0 auto; list-style: none; }
.included-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.included-list li:last-child { border-bottom: none; }
.included-list .inc-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.included-list .t { font-size: 14.5px; color: #fff; font-weight: 700; margin-bottom: 3px; }
.included-list .d { font-size: 13px; color: #8a99ad; line-height: 1.5; }

.ccs-faq { max-width: 700px; margin: 0 auto; }
.ccs-faq details { background: rgba(20,24,36,0.5); border: 1px solid rgba(99,179,237,0.12); border-radius: 8px; padding: 16px 20px; margin-bottom: 10px; }
.ccs-faq summary { cursor: pointer; font-size: 14.5px; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ccs-faq summary::-webkit-details-marker { display: none; }
.ccs-faq summary .plus { color: #63b3ed; font-size: 18px; }
.ccs-faq details[open] summary .plus { transform: rotate(45deg); }
.ccs-faq .faq-a { font-size: 13.5px; color: #8a99ad; line-height: 1.6; margin-top: 12px; }

.ccs-final-cta { text-align: center; padding: 50px 20px 70px 20px; }
.ccs-final-cta h2 { font-size: 26px; color: #fff; font-weight: 800; margin-bottom: 12px; }
.ccs-final-cta p { color: #8a99ad; font-size: 14px; margin-bottom: 26px; }
