﻿/* Global theme */
:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --surface-2: #f8f7f4;
    --text: #1f3f72; /* deep navy */
    --text-muted: #5a6f8a; /* slate grey */
    --primary: #1f3f72;
    --primary-dark: #162f51;
    --accent: #c5a059; /* gold */
    --alert: #dfbe7a;
    --border: #dbe0eb;
    --shadow: 0 10px 25px rgba(31, 63, 114, 0.12);
    --radius: 13px;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
    margin: 0;
    padding-top: 70px;
    font-family: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 90%;
}

.container,
.page-content {
    width: min(1140px, 96%); /* Changed from 96vw */
    margin: 0 auto 24px auto;
    padding: 0 16px 40px;
}

.header-inner {
    max-width: min(1140px, 96%); /* Changed from 96vw */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
}

.panel {
    background: var(--surface);
    border: 1px solid rgba(173, 184, 205, 0.32);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(31, 63, 114, 0.08);
    padding: 22px;
    margin: 20px auto; /* Changed from 20px 0 */
    max-width: 100%;
}

.panel > *:first-child { margin-top: 0; }
.panel > *:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent); }

.brand {
    font-family: "Iosevka Charon Mono", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.48rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(31, 63, 114, 0.16);
}

.main-nav a {
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(137, 157, 184, 0.36);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(197, 160, 89, 0.15);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.80);
    border-bottom: 1px solid rgba(165, 146, 98, 0.4);
    backdrop-filter: blur(14px);
}

.brand-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    display: block;
}

.header-inner {
    max-width: min(1140px, 96vw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
}

.main-nav {
    display: flex;
    gap: 16px;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(137, 157, 184, 0.36);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
    margin: 0 !important; /* Kills the global 12px margin-top causing the height stretch */
    width: 38px !important; /* Slightly smaller width */
    height: 38px !important; /* Slightly smaller height */
    padding: 0 !important;
}

.panel {
    background: var(--surface);
    border: 1px solid rgba(173, 184, 205, 0.32);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(31, 63, 114, 0.08);
    padding: 22px;
    margin: 20px 0;
    max-width: 100%;
}

.centered-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 12px;
    box-sizing: border-box;
}

.centered-container .btn,
.centered-container .btn-alt,
.centered-container .skip-btn {
    min-width: 160px;
    max-width: 100%;
    margin: 8px auto 12px;
}

.error-view,
.toc-panel {
    padding: 20px;
}

.toc-panel .toc-content,
.error-view {
    padding-bottom: 14px;
}

.error-view .btn-alt,
.toc-panel .centered-container .btn-alt {
    width: min(280px, 100%);
    margin-bottom: 16px;
}

/* Form spacing and sizing */
.form-group,
.payment-grid,
.step-wizard {
    width: 100%;
    margin-bottom: 16px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select,
button,
.btn,
.btn-alt,
.skip-btn,
.tertiary {
    width: 100%;
    max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    padding: 12px 14px;
    margin-bottom: 12px;
}

button,
.btn,
.btn-alt,
.skip-btn,
.tertiary {
    margin-top: 12px;
}

/* Payment layout */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.qr-image {
    width: min(90vw, 600px);
    min-width: 400px;
    height: auto;
    max-height: 680px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.payment-info {
    text-align: left;
    background: rgba(242, 251, 248, 0.95);
    border: 1px solid rgba(29, 135, 94, 0.32);
    border-radius: 10px;
    padding: 10px;
    margin: 12px 0;
    max-height: 250px;
    overflow: auto;
    width: 100%;
    font-size: 0.84rem;
}

.payment-info h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--primary-dark);
}

.payment-info-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(120px, 150px) 1fr;
    gap: 6px 12px;
}

.payment-info-list dt {
    margin: 0;
    font-weight: 700;
    color: #2a7057;
}

.payment-info-list dd {
    margin: 0;
    color: #344f4a;
    overflow-wrap: anywhere;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.payment-timer {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.small-muted {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 10px;
}

@media (min-width: 720px) {
    .payment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
        justify-items: start;
    }
    .payment-actions {
        align-items: flex-start;
    }
    .qr-image {
        width: min(600px, 100%);
        max-width: 600px;
        max-height: 680px;
    }
}

.panel h2,
.panel h1,
.panel h3 { margin-top: 0; }

.btn,
button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(28, 163, 130, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover,
button:hover,
.cta-button:hover {
    transform: translateY(-1px);
    background-color: var(--primary-dark);
    box-shadow: 0 12px 20px rgba(28, 163, 130, 0.35);
}

.btn-alt,
.skip-btn,
.tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 8px 16px rgba(28, 163, 130, 0.22);
    text-decoration: none;
}

.btn-alt:hover,
.skip-btn:hover,
.tertiary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(28, 163, 130, 0.3);
}

.error-view .btn-alt:hover {
    background: var(--primary-dark);
}

.btn:hover,
button:hover,
.cta-button:hover {
    transform: translateY(-1px);
    background-color: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(28, 163, 130, 0.35);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 163, 130, 0.16);
}

.hero-section {
    margin-top: 24px;
    padding: 72px 20px 48px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #146453;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 10px auto 24px;
    line-height: 1.56;
}

.hero-note {
    color: #5d8873;
    font-size: 0.95rem;
    margin-top: 10px;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    padding: 22px 12px 48px;
}

.step-wizard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 10px;
}

.step-wizard .step-meta {
    display: none;
}

.step {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text);
    padding: 6px 0;
    min-width: 85px;
}

.step span {
    background: rgba(197, 160, 89, 0.22);
    color: var(--primary);
    border: none;
}

.step.active,
.step.completed {
    background: transparent;
    color: var(--primary);
}

.step.active span,
.step.completed span {
    background: var(--accent);
    color: #fff;
}

.step-status {
    font-size: 0.95rem;
    color: #1a5544;
    margin: 8px 0 16px;
    line-height: 1.3;
}

.section-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(28, 163, 130, 0.16), rgba(20, 20, 20, 0.12) 65%, rgba(0,0,0,0.42) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.section-backdrop.visible {
    opacity: 1;
}

.score-summary {
    margin: 12px 0 14px;
}

.score-chart {
    width: 100%;
    height: 12px;
    background: #e9f6f0;
    border-radius: 999px;
    border: 1px solid #c7e9d8;
    overflow: hidden;
    margin-bottom: 8px;
}

.score-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #18b063, #127e57);
    transition: width 0.4s ease;
}

.score-info {
    color: #1f5443;
    font-size: 0.93rem;
    margin: 0;
}

.notice {
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.93rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.95;
}

.notice.hidden { display: none !important; }

.notice.info { background: #eafaf4; color: #1e5a47; border-color: #a8e4d4; }
.notice.success { background: #dff6ec; color: #1a654a; border-color: #7fd3b9; }
.notice.warn { background: #fff7e5; color: #7d5b1e; border-color: #f0da8d; }
.notice.error { background: #ffe8e6; color: #7f1c1a; border-color: #e2a7a4; }

.global-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 27, 0.53);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 10px;
    backdrop-filter: blur(5px);
}

.global-modal.hidden {
    display: none;
}

.modal-card {
    background: rgba(248, 255, 251, 0.98);
    border: 1px solid #a7e0cf;
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(18, 64, 52, 0.24);
    width: min(440px, 95vw);
    max-width: 480px;
    padding: 18px;
    text-align: left;
    animation: popIn 0.22s ease;
    position: relative;
}

.modal-card h3 {
    margin-top: 0;
    color: #125a48;
}

.modal-content {
    margin-top: 10px;
    margin-bottom: 12px;
    color: #1f5946;
    font-size: 0.94rem;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-close {
    border: 0;
    background: transparent;
    color: #0f5b46;
    font-size: 1.3rem;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.15s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}


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

.payment-progress-bar {
    width: 100%;
    background: #eaf9f0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
}

.payment-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2ebc90, #28a678);
    transition: width 0.6s ease;
}

#progress-bg {
    width: 100%;
    height: 12px;
    background: #eaf9f0;
    border-radius: 99px;
    overflow: hidden;
    margin: 0 0 12px;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #21b081, #177a58);
    transition: width 0.25s ease;
}

.fade-in {
    animation: fadeInUp 0.35s ease both;
}

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

.step {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 10px;
    color: #5f8272;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1px solid #d4e9dd;
}

.step span {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #d8f3e6;
    margin-bottom: 4px;
    font-weight: 700;
    color: #147a62;
}

.step small { display: block; font-size: 0.75rem; color: #4f7d6e; margin-top: 2px; }

.step.active {
    background: rgba(28, 163, 130, 0.14);
    border-color: #1ca382;
    color: #144f44;
}

.step.active span {
    background: #1ca382;
    color: #fff;
}

.step.completed {
    background: #d4f1e7;
    border-color: #8ed6c1;
    color: #0f5748;
}

.step.completed span {
    background: #1ca382;
    color: #fff;
}

.feature-card {
    background: #fdfefe;
    border: 1px solid #d4e9dd;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(32, 109, 92, 0.13);
    padding: 22px;
}

.feature-icon { font-size: 1.9rem; }
.feature-title { font-size: 1.2rem; color: #187f6a; margin-bottom: 10px; }
.feature-text { color: #5f8272; line-height: 1.5; }

.section-cta {
    text-align: center;
    padding: 42px 16px 52px;
}

/* Replace your current .fixed-width-test with this */
.fixed-width-test {
    max-width: 960px;
    width: min(960px, 100%); /* Changed from 96vw to 100% to respect parent containers */
    margin: 18px auto;
    padding: 24px;
    box-shadow: 0 3px 12px rgba(31, 63, 114, 0.08);
    border: 1px solid rgba(173, 184, 205, 0.32);
    border-radius: var(--radius);
    background: var(--surface);
    box-sizing: border-box; /* Ensures padding stays inside the width */
}

@media (max-width: 840px) {
    .fixed-width-test {
        width: 100%;
        padding: 20px;
        margin: 12px auto;
    }
}

.test-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 12px;
}

.test-illustration {
    min-height: 240px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.test-illustration canvas,
.test-illustration img {
    max-width: 100%;
    max-height: 100%;
}

.test-question-block {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#question-text {
    text-align: left;
}

.test-question-block .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d9efe7;
    padding-bottom: 8px;
}

/* 1. Make the question bigger and highly readable */
#question-text {
    font-size: 1.35rem; 
    line-height: 1.5;
    color: var(--primary-dark);
}

.answers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin-top: 16px;
}

/* 2. Upgrade answers to clean, selectable cards */
.answers-grid button {
    background: #ffffff;
    color: var(--text);
    border: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    padding: 16px 20px;
    box-shadow: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hover state for the new answer cards */
.answers-grid button:hover,
.answers-grid button:focus {
    background: #f4f8fa; /* Very subtle blue tint */
    border-color: #2f8ec0;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 142, 192, 0.12);
}

/* 3. Make the Skip button a secondary "ghost" style */
.skip-btn {
    background: transparent;
    border: 2px solid #cbd4e1;
    color: var(--text-muted);
    box-shadow: none;
    font-weight: 600;
}

.skip-btn:hover {
    background: #f1f4f8;
    border-color: var(--text-muted);
    color: var(--text);
    box-shadow: none;
}

/* 4. Layout tweak: If you hide the illustration, let the question take full width */
.test-top-grid:has(.test-illustration.hidden) {
    grid-template-columns: 1fr;
}
.disclaimer-list li {
    cursor: pointer;
    border: 1px solid #d4e9dd;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.disclaimer-list li:hover {
    background: #e5f7f0;
}

.disclaimer-list li.acknowledged {
    background: #e0f5ec;
    border-color: #1ca382;
    color: #0f5b46;
}

#section-disclaimer button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #b1d7c6;
}

.test-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.test-actions .skip-btn {
    width: auto;
    min-width: 200px;
}

#options-container {
    margin-top: 4px;
}

@media (max-width: 840px) {
    .test-top-grid {
        grid-template-columns: 1fr;
    }

    .fixed-width-test {
        width: 100%; /* Changed to 100% */
    }
}

.section-cta h2 { color: #186852; margin-bottom: 12px; }

.footer-inner {
    max-width: min(1140px, 96vw);
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #65786f;
    font-size: 0.87rem;
}

.site-footer {
    background: transparent;
    border-top: 1px solid rgba(173, 184, 205, 0.35);
    padding: 14px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.footer-links span { color: #a3c6b8; margin: 0 6px; }

@media (max-width: 840px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        position: relative;
    }

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

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        background: var(--surface);
        border: 1px solid rgba(173, 184, 205, 0.4);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 10px 20px rgba(31, 63, 114, 0.12);
        padding: 14px 12px 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.25s ease;
        opacity: 0;
        z-index: 210;
    }

    .main-nav.open {
        max-height: 260px;
        opacity: 1;
    }

    .main-nav a {
        width: 100%;
        max-width: 280px;
        padding: 8px 14px;
    }

    .footer-inner { flex-direction: column; gap: 8px; justify-content: center; }

    .container,
    .page-content {
        width: 100%;
        padding: 0 16px 24px;
        text-align: left;
    }

    .panel {
        width: 100%;
        padding: 18px 16px;
        display: block;
        text-align: left;
    }

    .panel > * {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .panel input,
    .panel textarea,
    .panel select,
    .panel button,
    .panel .btn,
    .panel .btn-alt,
    .panel .skip-btn {
        width: 100%;
        min-width: 0;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .qr-image {
        min-width: unset;
        width: 92vw;
        max-width: 100%;
    }

    .payment-actions,
    .score-summary,
    .step-wizard,
    .feature-card,
    .section-cta,
    .footer-inner {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 14px;
    }
    .container {
        padding: 0 8px 16px;
    }
    .step-wizard {
        flex-wrap: wrap;
        gap: 6px;
    }
    .step {
        min-width: 48%;
        margin-bottom: 6px;
    }
    .payment-grid {
        grid-template-columns: 1fr;
    }
    .qr-image {
        width: 92vw;        min-width: unset;        max-width: 92vw;
        max-height: 420px;
    }
    .panel {
        padding: 16px;
    }
    .btn,
    .btn-alt,
    .skip-btn {
        font-size: 0.92rem;
    }

    .answers-grid {
        grid-template-columns: 1fr !important; /* Stacks vertically on small screens */
    }
}

@media (max-width: 320px) {
    .step {
        min-width: 100%;
    }
    .main-nav {
        justify-content: center;
        gap: 9px;
    }
}

/* 1. Remove padding from the card so the image can touch the edges */
.feature-card {
    padding: 0 !important;
    overflow: hidden; /* This ensures the image respects the card's rounded corners */
    display: flex;
    flex-direction: column;
}

/* 2. Turn the icon container into a full-width header block */
.feature-card .feature-icon {
    width: 100%;
    height: 180px; /* This fixed height combined with object-fit will crop it! */
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Soft background color in case your PNGs are transparent */
    border: none;
    border-radius: 0;
}

/* 3. Scale and crop the image to fit the new header */
.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This mathematically zooms and crops the image to fill the space */
    object-position: center 15%; /* Focuses on the top/face of the character, cropping the bottom */
    display: block;
    max-width: none;
    max-height: none;
}

/* 4. Restore the padding to the text, since we removed it from the parent card */
.feature-card .feature-title {
    padding: 24px 24px 8px 24px;
    margin: 0;
}

.feature-card .feature-text {
    padding: 0 24px 28px 24px;
    margin: 0;
}

/* Reserves space to prevent the button from jumping up and down */
.hero-text-container {
    min-height: 240px; /* Adjust this number if your longest text needs more room on mobile */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Authentic blinking cursor effect */
.typewriter-cursor {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary); /* Uses your navy blue theme color */
    animation: blink 1s step-end infinite;
    margin-top: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}