@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

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

:root {
    --navy: #05213A;
    --navy-light: #0a3358;
    --blue: #0177BF;
    --blue-soft: #1a8ad4;
    --green: #3D7A2A;
    --gold: #DFA126;
    --gold-light: #F0DDC0;
    --warm-brown: #B27D45;
    --light-bg: #f4f6f8;
    --white: #FFFFFF;
    --text: #1a2a3a;
    --text-body: #3d4f5f;
    --text-muted: #6b7d8d;
    --blue-tint: rgba(1, 119, 191, 0.06);
    --card-shadow: 0 1px 3px rgba(5, 33, 58, 0.06), 0 4px 12px rgba(5, 33, 58, 0.04);
    --card-shadow-hover: 0 4px 8px rgba(5, 33, 58, 0.08), 0 8px 24px rgba(5, 33, 58, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--light-bg);
    min-height: 100vh;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

a {
    color: var(--blue);
}

/* ── Navbar ────────────────────────────────────────────────────────── */

.navbar {
    background: var(--navy);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.nav-brand {
    color: var(--white);
    text-decoration: none;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    padding: 0.75rem 0;
    letter-spacing: -0.01em;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 1.1rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    min-width: 240px;
    list-style: none;
    overflow: hidden;
    z-index: 200;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.dropdown-menu a:hover {
    background: var(--blue-tint);
    color: var(--blue);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 0.75rem 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.7);
        padding: 0.5rem 1.5rem;
    }

    .dropdown-menu a:hover {
        background: transparent;
        color: var(--white);
    }
}

/* ── Header / Hero ────────────────────────────────────────────────── */

header {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero-header {
    background-size: cover;
    background-position: center;
    padding: 4.5rem 2rem 4rem;
}

.header-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    opacity: 0.85;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}
/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.25rem;
}

.site-footer a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background 0.2s, transform 0.15s;
}

.social-links a:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* ── Main content ──────────────────────────────────────────────────── */

main {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 3.5rem;
    flex: 1;
}

@media (max-width: 768px) {
    main {
        padding: 1.5rem 1.25rem 3rem;
    }
}

/* ── Breadcrumb ────────────────────────────────────────────────────── */

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
    padding: 0.65rem 1.1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    color: #bbb;
}

/* ── Section headings ──────────────────────────────────────────────── */

.section-heading {
    margin: 2.5rem 0 1.25rem;
    color: var(--navy);
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.gold-line {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin-bottom: 1.75rem;
    border-radius: 2px;
}

/* ── Welcome section (Home) ────────────────────────────────────────── */

.welcome-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

.welcome-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.welcome-text {
    flex: 1;
}

.welcome-image {
    flex-shrink: 0;
    width: 220px;
}

.welcome-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(5, 33, 58, 0.1);
}

@media (max-width: 640px) {
    .welcome-content {
        flex-direction: column;
    }

    .welcome-image {
        width: 100%;
    }

    .welcome-section {
        padding: 1.75rem;
    }
}

.welcome-text h2 {
    color: var(--navy);
    font-size: 1.45rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.welcome-text h3 {
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: var(--text-body);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.welcome-text ul {
    padding-left: 1.5rem;
    color: var(--text-body);
}

.welcome-text li {
    margin-bottom: 0.35rem;
}

/* ── Grade cards ───────────────────────────────────────────────────── */

.grade-cards {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 540px) {
    .grade-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grade-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--blue);
    transition: box-shadow 0.25s, transform 0.2s;
    text-align: center;
}

.grade-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.grade-card-image {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(5, 33, 58, 0.1);
}

.grade-book {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.grade-range {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.grade-chapters {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    background: var(--blue-tint);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* ── Book layout (sidebar + content) ───────────────────────────────── */

.book-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.grade-sidebar {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.sidebar-link {
    display: block;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.sidebar-link:hover {
    background: var(--blue-tint);
    border-left-color: var(--blue);
}

.sidebar-link.active {
    background: var(--blue);
    color: var(--white);
    border-left-color: var(--navy);
    font-weight: 600;
}

.book-content {
    flex: 1;
    min-width: 0;
}

.book-content h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
    .book-layout {
        flex-direction: column;
    }

    .grade-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 0.65rem 1rem;
    }

    .sidebar-link:hover {
        border-left: none;
        border-bottom-color: var(--blue);
    }

    .sidebar-link.active {
        border-left: none;
        border-bottom-color: var(--navy);
    }
}

/* ── Grade tabs ───────────────────────────────────────────────────── */

.grade-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.grade-tab {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: var(--white);
    color: var(--text-body);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--card-shadow);
    border: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.grade-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.grade-tab.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    font-weight: 600;
}

/* ── Resource cards ───────────────────────────────────────────────── */

.resource-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--blue);
    transition: box-shadow 0.25s, transform 0.2s;
}

a.resource-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateX(4px);
}


.resource-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 3rem;
    text-align: center;
}

.resource-body {
    flex: 1;
}

.resource-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.resource-detail {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 0.3rem;
}

.resource-detail p {
    margin-bottom: 0.5rem;
}

.resource-detail ul {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.resource-detail li {
    margin-bottom: 0.25rem;
}

.resource-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Book description ─────────────────────────────────────────────── */

.book-description {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ── Chapter list ──────────────────────────────────────────────────── */

.chapter-list {
    display: grid;
    gap: 1rem;
}

.chapter-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--navy);
    transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
}

.chapter-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateX(4px);
    border-left-color: var(--blue);
}

.chapter-number {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.chapter-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}



/* ── Quiz form ─────────────────────────────────────────────────────── */

.quiz-form {
    display: grid;
    gap: 1.25rem;
}

.quiz-contact-group {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    display: grid;
    gap: 1.25rem;
}

.quiz-contact-group .name-field {
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.name-field {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.name-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 0.95rem;
}

.name-field input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #dde3e8;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
}

.name-field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(1, 119, 191, 0.1);
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.quiz-section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.quiz-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dde3e8;
}

.question-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--blue);
}

.question-card.q-matching   { border-left-color: var(--green); }
.question-card.q-mc         { border-left-color: var(--blue); }
.question-card.q-tf         { border-left-color: var(--gold); }
.question-card.q-short      { border-left-color: var(--warm-brown); }

.question-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.question-num-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.q-matching .question-num-badge   { background: var(--green); }
.q-mc .question-num-badge         { background: var(--blue); }
.q-tf .question-num-badge         { background: var(--gold); }
.q-short .question-num-badge      { background: var(--warm-brown); }

.question-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: var(--blue-tint);
    color: var(--blue);
}

.q-matching .question-type-badge   { background: rgba(61, 122, 42, 0.08); color: var(--green); }
.q-mc .question-type-badge         { background: var(--blue-tint); color: var(--blue); }
.q-tf .question-type-badge         { background: rgba(223, 161, 38, 0.1); color: #b8860b; }
.q-short .question-type-badge      { background: rgba(178, 125, 69, 0.08); color: var(--warm-brown); }


.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1.15rem;
    line-height: 1.55;
    color: var(--navy);
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    border: 1px solid #eef1f4;
}

.option-label:last-child {
    margin-bottom: 0;
}

.option-label:hover {
    background: var(--blue-tint);
    border-color: rgba(1, 119, 191, 0.2);
}

.option-label input[type="radio"] {
    accent-color: var(--blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.option-label span {
    font-size: 0.95rem;
    color: var(--text-body);
}

.short-answer-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #dde3e8;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    resize: vertical;
}

.short-answer-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(1, 119, 191, 0.1);
}

select.short-answer-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7d8d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.submit-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.01em;
    width: 100%;
    box-shadow: 0 2px 8px rgba(5, 33, 58, 0.15);
}

.submit-btn:hover {
    background: var(--blue);
    box-shadow: 0 4px 12px rgba(1, 119, 191, 0.25);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ── Results ───────────────────────────────────────────────────────── */

.score-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.score-great { background: linear-gradient(135deg, var(--green), #4a9932); }
.score-good  { background: linear-gradient(135deg, var(--warm-brown), var(--gold)); }
.score-try   { background: linear-gradient(135deg, #c0392b, #e74c3c); }

.score-number {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.score-label {
    font-size: 1.1rem;
    margin-top: 0.4rem;
    opacity: 0.9;
}

.results-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.result-card {
    display: flex;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid #ddd;
    transition: transform 0.15s;
}

.result-card:hover {
    transform: translateX(2px);
}

.result-card.correct   { border-left-color: var(--green); background: rgba(61, 122, 42, 0.02); }
.result-card.incorrect { border-left-color: #d21a1a; background: rgba(210, 26, 26, 0.02); }
.result-card.review    { border-left-color: var(--gold); background: rgba(223, 161, 38, 0.02); }

.result-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.correct .result-status   { color: var(--white); background: var(--green); }
.incorrect .result-status { color: var(--white); background: #d21a1a; }
.review .result-status    { color: var(--white); background: var(--gold); }

.result-body { flex: 1; }

.result-question {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--navy);
    font-size: 0.95rem;
}

.result-answer {
    font-size: 0.9rem;
    color: var(--text-body);
}

.result-correct {
    font-size: 0.9rem;
    color: var(--green);
    margin-top: 0.2rem;
}

.result-note {
    font-size: 0.85rem;
    color: var(--warm-brown);
    font-style: italic;
    margin-top: 0.2rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover { background: var(--blue); }

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* ── About page ────────────────────────────────────────────────────── */

.about-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

.about-section h2 {
    color: var(--navy);
    font-size: 1.45rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.about-section p {
    color: var(--text-body);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.about-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-info-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .about-info-row {
        grid-template-columns: 1fr;
    }
}

.about-info-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.about-info-card h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.about-info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-headshot {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid rgba(1, 119, 191, 0.15);
    margin: 0 auto 1rem;
    display: block;
}

.team-details {
    padding: 1.25rem 1.75rem;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    text-align: left;
}

.team-details p {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.team-details ul {
    padding-left: 1.25rem;
}

.team-details li {
    margin-bottom: 0.35rem;
}

/* ── Contact page ──────────────────────────────────────────────────── */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 540px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--blue);
    transition: box-shadow 0.25s, transform 0.2s;
}

.contact-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.contact-card h3 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-card-role {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 500;
    margin-bottom: 0.85rem;
}

.contact-card-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin: 0 auto 1rem;
    background: var(--blue-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    overflow: hidden;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
}

.contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .contact-info-row {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.contact-info-card h3 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.7;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.contact-map iframe {
    display: block;
    border-radius: var(--radius);
}

/* ── Reflection form ──────────────────────────────────────────────── */

.reflect-intro {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.reflect-contact-group {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.reflect-contact-group .name-field {
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.reflect-contact-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (max-width: 540px) {
    .reflect-contact-row {
        grid-template-columns: 1fr;
    }
}

.session-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #dde3e8;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}

.session-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(1, 119, 191, 0.1);
}

.reflect-options-group {
    display: grid;
    gap: 0;
}

.reflect-option {
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--card-shadow);
    border-left: 4px solid #dde3e8;
    transition: border-color 0.25s, background 0.2s;
    overflow: hidden;
}

.reflect-option:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.reflect-option:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.reflect-option + .reflect-option {
    border-top: 1px solid #eef1f4;
}

.reflect-option.active {
    border-left-color: var(--blue);
    background: var(--blue-tint);
}

.reflect-option-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.reflect-option-header:hover {
    background: var(--blue-tint);
}

.reflect-option-header input[type="radio"] {
    accent-color: var(--blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reflect-option-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef1f4;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.reflect-option.active .reflect-option-number {
    background: var(--blue);
    color: var(--white);
}

.reflect-option-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.reflect-option-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.reflect-option-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
}

.reflect-option-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.reflect-option.active .reflect-option-body {
    max-height: 400px;
    padding: 0 1.5rem 1.5rem;
}

.reflect-option-body textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dde3e8;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reflect-option-body textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(1, 119, 191, 0.1);
}

.reflect-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reflect-prompt-item {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--white);
    border: 1px solid #dde3e8;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-body);
    font-style: italic;
}

/* ── Reflection success ───────────────────────────────────────────── */

.success-card {
    text-align: center;
    padding: 3rem 2.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--green);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-card h2 {
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.success-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

