/* ========================================
   Reset & Base Styles
   ======================================== */

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

:root {
    /* Light Premium Theme */
    --color-primary: #1b2a4a;
    --color-accent: #c8a250;
    --color-secondary: #2563eb;
    --color-success: #16a34a;
    --color-danger: #dc2626;

    --color-text: #1a1a2e;
    --color-text-light: #5a6578;
    --color-text-muted: #9ca3af;

    --color-bg: #ffffff;
    --color-bg-light: #f7f8fa;
    --color-bg-elevated: #ffffff;
    --color-bg-dark: #1b2a4a;
    --color-border: #e5e7eb;
    --color-border-light: #f0f1f3;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Montserrat', var(--font-primary);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.05);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ========================================
   Container
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

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

.btn--primary:hover {
    background-color: #b8932e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(200, 162, 80, 0.35);
}

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

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.2);
}

.btn--accent {
    background-color: var(--color-accent);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(200, 162, 80, 0.4);
}

.btn--accent:hover {
    background-color: #b8932e;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 162, 80, 0.55);
}

.btn--large {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    background-color: var(--color-bg-dark);
    color: white;
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.03em;
    transition: opacity 0.3s ease;
}

.nav__logo:hover {
    opacity: 0.85;
}

.nav__menu {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav__link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav__link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav__link--active {
    color: var(--color-accent);
    background-color: rgba(200, 162, 80, 0.1);
}

.nav__link--cta {
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
}

.nav__link--cta:hover {
    background-color: #b8932e;
    color: white;
    box-shadow: 0 2px 12px rgba(200, 162, 80, 0.35);
}

/* Dropdown */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav__dropdown-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav__dropdown:hover .nav__dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    padding: var(--spacing-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.25s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

/* Two-column wide dropdown (Enlistment Guide) */
.nav__dropdown-menu--wide {
    min-width: 480px;
    padding: var(--spacing-xs) 0 0 0;
}

.nav__dropdown-menu--astbe {
    min-width: 560px;
}

.nav__dropdown-columns {
    display: flex;
    gap: 0;
}

.nav__dropdown-col {
    flex: 1;
    min-width: 0;
}

.nav__dropdown-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 0.4rem 1.25rem 0.25rem;
}

.nav__dropdown-wide-footer {
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-xs);
    padding: 0.5rem 0;
}

.nav__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav__dropdown-link:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.nav__dropdown-link--child {
    padding-left: 2.35rem;
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.nav__dropdown-link--child:hover {
    padding-left: 2.6rem;
}

.nav__dropdown-link--centered {
    justify-content: center;
    text-align: center;
}

.nav__dropdown-link--centered:hover {
    padding-left: 1.25rem;
}

.nav__dropdown-link svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.nav__dropdown-link:hover svg {
    color: var(--color-accent);
}

.nav__dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--spacing-xs) 0;
}

.nav__dropdown-footer {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
}

.nav__dropdown-footer:hover {
    background: var(--color-bg-light);
}

/* Mobile hamburger toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    z-index: 1002;
}

.nav__toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav__menu--open {
        display: flex;
    }

    .nav__link {
        padding: 0.75rem 1rem;
        width: 100%;
        display: block;
    }

    .nav__menu > li {
        width: 100%;
    }

    .nav__link--cta {
        margin-top: var(--spacing-xs);
        text-align: center;
        display: block;
        width: auto;
    }

    .nav__dropdown-menu {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
        margin-top: 0;
        min-width: 100%;
        padding: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    }

    .nav__dropdown-menu--open {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: var(--spacing-xs) 0;
    }

    .nav__dropdown-link {
        color: rgba(255, 255, 255, 0.7);
        padding: 0.55rem 1.25rem;
    }

    .nav__dropdown-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
        padding-left: 1.5rem;
    }

    .nav__dropdown-link--child {
        padding-left: 2.1rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .nav__dropdown-link--child:hover {
        padding-left: 2.35rem;
    }

    .nav__dropdown-link--centered {
        justify-content: center;
        text-align: center;
    }

    .nav__dropdown-link--centered:hover {
        padding-left: 1.25rem;
    }

    .nav__dropdown-link svg {
        color: rgba(255, 255, 255, 0.4);
    }

    .nav__dropdown-divider {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav__dropdown-menu--wide {
        min-width: 100%;
    }

    .nav__dropdown-columns {
        flex-direction: column;
    }

    .nav__dropdown-col-title {
        color: rgba(255, 255, 255, 0.4);
    }

    .nav__dropdown-wide-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .nav__dropdown-footer {
        color: var(--color-accent);
    }

    .nav__dropdown-footer:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Disable hover-based dropdown on mobile */
    .nav__dropdown:hover .nav__dropdown-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
    }

    .nav__dropdown:hover .nav__dropdown-menu.nav__dropdown-menu--open {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
    }

    .nav {
        position: relative;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(160deg, #1b2a4a 0%, #243656 40%, #2c4066 70%, #1f3050 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(200, 162, 80, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 3.25rem;
    margin-bottom: var(--spacing-md);
    color: white;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__cta .btn--secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.hero__cta .btn--secondary:hover {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg-elevated);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card__title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-card__description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   Tests Overview
   ======================================== */

.tests-overview {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tests-grid {
        grid-template-columns: 1fr;
    }
}

.test-card {
    background: var(--color-bg-elevated);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.test-card:hover .test-card__icon {
    background: rgba(200, 162, 80, 0.12);
    border-color: rgba(200, 162, 80, 0.35);
}

.test-card:hover .test-card__icon svg {
    color: var(--color-accent);
}

.test-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    align-self: center;
    transition: all 0.3s ease;
}

.test-card__icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.test-card__title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.test-card__description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.tests-overview__cta {
    text-align: center;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(160deg, #1b2a4a 0%, #243656 50%, #1f3050 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200, 162, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.cta-section__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn--secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-section .btn--secondary:hover {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 992px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__section--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer__content {
        grid-template-columns: 1fr;
    }
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-accent);
}

.footer__subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: white;
    font-weight: 600;
}

.footer__description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.footer__links li {
    margin-bottom: 0.35rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__links a.footer__link--highlight {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ========================================
   Content Pages (About, Test details)
   ======================================== */

.features h2,
.tests-overview h2 {
    color: var(--color-primary);
}

.features p,
.tests-overview p {
    color: var(--color-text-light);
}

.features ul li,
.tests-overview ul li {
    color: var(--color-text-light);
}

.features ul li strong {
    color: var(--color-text);
}

/* Content cards used in test detail pages */
.content-card {
    background: var(--color-bg-elevated);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-card h3 {
    color: var(--color-primary);
}

.content-card p {
    color: var(--color-text-light);
}

/* Info box used in tests/index */
.info-box {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.info-box h2 {
    color: var(--color-primary);
}

.info-box p {
    color: var(--color-text-light);
}

/* CTA banner used at bottom of test detail pages */
.cta-banner {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(160deg, #1b2a4a 0%, #243656 50%, #1f3050 100%);
    border-radius: var(--radius-md);
    color: white;
}

.cta-banner h2 {
    color: white;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-banner .btn {
    background: var(--color-accent);
    color: white;
    border: none;
}

.cta-banner .btn:hover {
    background: #b8932e;
    box-shadow: 0 4px 20px rgba(200, 162, 80, 0.4);
}

/* ========================================
   Contact Page
   ======================================== */

.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-elevated);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.contact-container h2 {
    color: var(--color-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-bg);
    color: var(--color-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 162, 80, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-light);
}

.contact-info strong {
    color: var(--color-text);
}

/* ========================================
   Guide Page — Tables
   ======================================== */

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    font-size: 0.95rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.guide-table thead {
    background: var(--color-primary);
    color: white;
}

.guide-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.guide-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-light);
    vertical-align: top;
    line-height: 1.6;
}

.guide-table tbody tr:last-child td {
    border-bottom: none;
}

.guide-table tbody tr:nth-child(even) {
    background-color: var(--color-bg-light);
}

.guide-table tbody tr:hover {
    background-color: rgba(200, 162, 80, 0.06);
}

@media (max-width: 768px) {
    .guide-table {
        font-size: 0.85rem;
    }
    .guide-table th,
    .guide-table td {
        padding: 0.65rem 0.75rem;
    }
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   Guide Page — Timeline
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    border-radius: 2px;
}

.timeline__step {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline__step:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline__step:last-child {
    margin-bottom: 0;
}

.timeline__step::before {
    content: attr(data-step);
    position: absolute;
    left: -2.5rem;
    top: 1.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(200, 162, 80, 0.3);
}

.timeline__step h4 {
    color: var(--color-primary);
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.timeline__step p {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Guide Page — Score Example Box
   ======================================== */

.score-example {
    background: linear-gradient(160deg, #1b2a4a 0%, #243656 50%, #1f3050 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: white;
    margin: var(--spacing-md) 0;
}

.score-example h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.score-example p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.score-example .score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.score-example .score-row:last-child {
    border-bottom: none;
}

.score-example .score-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.score-example .score-value {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.score-example .score-result {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-example .score-result .score-value {
    font-size: 1.5rem;
}

/* ========================================
   Guide Page — FAQ
   ======================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.faq-item {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.05rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--color-bg-light);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 300px;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ========================================
   Guide Page — Section Styles
   ======================================== */

.guide-section {
    padding: var(--spacing-lg) 0;
}

.guide-section:nth-child(even) {
    background-color: var(--color-bg-light);
}

.guide-section__header {
    margin-bottom: var(--spacing-md);
}

.guide-section__header h2 {
    font-size: 1.85rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.guide-section__header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 750px;
}

.guide-section .content-text {
    max-width: 800px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.guide-section .content-text p {
    margin-bottom: var(--spacing-sm);
}

/* Branch score cards */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.branch-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.branch-card__name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.branch-card__score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

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

/* Retest decision box */
.decision-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

@media (max-width: 600px) {
    .decision-box {
        grid-template-columns: 1fr;
    }
}

.decision-option {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border-light);
}

.decision-option--go {
    border-color: var(--color-success);
}

.decision-option--wait {
    border-color: var(--color-accent);
}

.decision-option h4 {
    margin-bottom: 0.75rem;
}

.decision-option ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.decision-option ul li {
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Carousel — Preview Questions
   ======================================== */

.carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    padding: 0 60px;
    box-sizing: border-box;
}

.carousel__viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
}

.carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    width: 500%; /* 5 slides x 100% */
}

.carousel__slide {
    width: 20%; /* 100% / 5 slides */
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
}

.carousel__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(27, 42, 74, 0.85);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel__btn:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel__btn svg {
    width: 22px;
    height: 22px;
}

.carousel__btn--prev {
    left: 0;
}

.carousel__btn--next {
    right: 0;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--spacing-sm) 0;
    background: var(--color-bg-light);
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel__dot--active {
    background: var(--color-accent);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel {
        padding: 0 44px;
    }

    .carousel__btn {
        width: 36px;
        height: 36px;
    }

    .carousel__btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel__btn--prev {
        left: 0;
    }

    .carousel__btn--next {
        right: 0;
    }
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: #c5c9d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a5af;
}

/* ========================================
   Selection
   ======================================== */

::selection {
    background: rgba(200, 162, 80, 0.2);
    color: var(--color-primary);
}
