/* Self-hosted fonts */
@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties — Developer v5 Theme */
:root {
    /* Legacy variable names (mapped to v5 values) */
    --primary-blue: #10b982;
    --primary-blue-hover: #0d9268;
    --primary-blue-dark: #0a7a57;
    --accent-green: #10b982;
    --accent-orange: #1d1d1b;
    --accent-blue: #1d1d1b;
    --dark-bg: #f7f5f0;
    --dark-bg-secondary: #ffffff;
    --text-primary: #1d1d1b;
    --text-secondary: #3a3a37;
    --text-muted: #6b6b65;
    --border-color: #d4d0c8;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --focus-outline: 3px solid #10b982;
    --focus-offset: 2px;

    /* Semantic variables */
    --bg: #f7f5f0;
    --bg-white: #ffffff;
    --bg-warm: #f7f5f0;
    --bg-accent: #1d1d1b;
    --border-light: #d4d0c8;
    --navy: #1d1d1b;
    --navy-light: #3a3a37;
    --green-cert: #10b982;
    --green-light: #f0fdf4;
    --green-badge: #0d9268;
    --accent: #1d1d1b;
    --accent-light: #f0fdf4;
    --ink: #1d1d1b;
    --ink-soft: #3a3a37;
    --ink-muted: #6b6b65;
    --ink-faint: #9c9c95;
    --rule: #d4d0c8;
    --cream: #f7f5f0;
    --green: #10b982;
    --green-bg: #f0fdf4;
    --white: #ffffff;
}

/* Alpine.js x-cloak to prevent FOUC (Flash of Unstyled Content) */
[x-cloak] {
    display: none !important;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 200;
    border-radius: 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    left: 0;
}

/* WCAG 2.1 Compliant Focus Indicators for All Interactive Elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="menuitem"]:focus-visible,
[tabindex]:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* Fallback for browsers that don't support :focus-visible */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus,
[role="tab"]:focus,
[role="menuitem"]:focus,
[tabindex]:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* Ensure focus indicators are visible in high contrast mode */
@media (prefers-contrast: more) {
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible,
    [role="button"]:focus-visible,
    [role="tab"]:focus-visible {
        outline: 4px solid var(--primary-blue);
        outline-offset: 2px;
        box-shadow: 0 0 0 4px var(--bg-white);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--cream);
    min-height: 100vh;
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'JetBrains Mono', 'DejaVu Sans Mono', 'Liberation Mono', monospace;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: var(--ink);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

small, .text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

/* Links */
a {
    color: var(--green);
    text-decoration: none;
}

a:visited {
    color: var(--ink-soft);
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* ── Nav ── */
.topnav {
    border-bottom: 1px solid var(--rule);
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.topnav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.topnav-brand {
    font-family: 'JetBrains Mono', 'DejaVu Sans Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.topnav-brand:hover,
.topnav-brand:visited {
    color: var(--ink);
    text-decoration: none;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topnav-right a,
.topnav-right a:visited {
    font-size: 0.84rem;
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 500;
}

.topnav-right a:hover {
    color: var(--ink);
    text-decoration: none;
}

.topnav-right a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.topnav-right .cta-link,
.topnav-right .cta-link:visited {
    color: var(--green);
    font-weight: 700;
    border-bottom: 2px solid var(--green);
    padding-bottom: 1px;
}

.topnav-right .cta-link:hover {
    color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.topnav-right form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.topnav-right form button {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    padding: 0;
}

.topnav-right form button:hover {
    color: var(--ink);
}

/* Mobile Menu Toggle */
.topnav-mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 4px;
}

.topnav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
}

.topnav-mobile-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 32px;
    flex-direction: column;
    gap: 0.75rem;
}

.topnav-mobile-menu[x-cloak] {
    display: none !important;
}

.topnav-mobile-menu a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.topnav-mobile-menu a:hover {
    color: var(--ink);
}

.topnav-mobile-menu a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.topnav-mobile-menu .cta-link {
    color: var(--green);
    font-weight: 700;
    border-bottom: 2px solid var(--green);
    padding-bottom: 1px;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.topnav-mobile-menu form {
    display: block;
    margin: 0;
    padding: 0;
}

.topnav-mobile-menu form button {
    color: var(--ink-muted);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
}

.topnav-mobile-menu form button:hover {
    color: var(--ink);
}

.topnav-mobile-menu form button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Breadcrumbs Navigation */
.breadcrumbs {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 2rem;
    z-index: 1;
    position: relative;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
}

.breadcrumb-link:hover {
    color: var(--primary-blue-hover);
    background: var(--green-light);
}

.breadcrumb-link:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Main Container */
.main-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 32px 2rem;
}

.page-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-warm);
    border-radius: 0;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.header-decorative {
    position: absolute;
    border-radius: 0;
    opacity: 0.05;
    pointer-events: none;
}

.header-decorative-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.header-decorative-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-green);
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-section h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.header-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--green-light);
    border: 2px solid var(--accent-green);
    border-radius: 0;
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
    min-width: 280px;
}

.header-cta {
    margin-top: 1rem;
}

/* Status Section */
.status-section {
    text-align: center;
    padding: 1.25rem;
    background: var(--green-light);
    border-radius: 0;
    color: var(--accent-green);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: none;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-warm);
    border-radius: 0;
    border: 1px solid var(--border-light);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--ink);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Learning Path */
.learning-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-warm);
    border-radius: 0;
    border: 1px solid var(--border-light);
}

.path-step {
    flex: 1;
    text-align: center;
}

.path-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    color: white;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
    box-shadow: var(--shadow-md);
}

.path-step-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.path-step-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.path-connector {
    flex: 0.5;
    height: 1px;
    background: var(--rule);
    margin-bottom: 3.5rem;
}

/* Certification Selection */
.cert-selection {
    animation: fadeIn 0.3s ease-in;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-selection h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.875rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
}

.cert-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cert-card::before {
    display: none;
}

.cert-card:hover {
    border-color: var(--ink);
}

.cert-card:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.cert-card.architect {
    border-color: var(--border-color);
}

.cert-card.architect:hover {
    border-color: var(--ink);
}

.cert-card.professional {
    border-color: var(--border-color);
}

.cert-card.professional:hover {
    border-color: var(--ink);
}

.cert-icon {
    width: 100%;
    height: 89px;
    margin-bottom: 1.5rem;
    background: transparent;
    border-radius: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon img {
    height: 89px;
    width: auto;
}

.cert-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--green-light);
    border: 1px solid var(--primary-blue);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Associate badge (green) */
.cert-card > .cert-badge {
    background: var(--green-light);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Professional badge (blue) */
.cert-card.professional > .cert-badge {
    background: var(--green-light);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Architect badge (orange) */
.cert-card.architect > .cert-badge {
    background: var(--accent-light);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.cert-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cert-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cert-requirement {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.cert-requirement-icon {
    display: inline-block;
    margin-right: 0.5rem;
}

.cert-cta {
    margin-top: auto;
    position: relative;
    z-index: 1;
    flex: 0 0 auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Test Section */
.test-section {
    animation: fadeIn 0.3s ease-in;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.test-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.question-number {
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--green);
    transition: width 0.3s ease;
}

.question-container h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.option:hover {
    border-color: var(--ink);
}

.option:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.option input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

.option input[type="radio"]:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

.option input[type="radio"]:checked + span {
    color: var(--accent-green);
    font-weight: 600;
}

.option span {
    color: var(--text-secondary);
    flex: 1;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn:hover:not(:disabled) {
    opacity: 0.85;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--ink);
    color: var(--cream) !important;
    border: 2px solid var(--ink);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover:not(:disabled) {
    background: #333330;
    border-color: #333330;
}

/* Force cream text on button links */
a.btn,
a.btn:visited,
a.btn:hover {
    color: var(--cream) !important;
}

a.btn-secondary,
a.btn-secondary:visited,
a.btn-secondary:hover {
    color: #1d1d1b !important;
}

/* Certification card button colors */
.cert-card .btn-primary,
.cert-card.professional .btn-primary,
.cert-card.architect .btn-primary {
    background: var(--ink);
    border-color: var(--ink);
}

.cert-card .btn-primary:hover:not(:disabled),
.cert-card.professional .btn-primary:hover:not(:disabled),
.cert-card.architect .btn-primary:hover:not(:disabled) {
    background: #333330;
    border-color: #333330;
}

.btn-secondary {
    background: transparent;
    color: #1d1d1b;
    border: 2px solid #1d1d1b;
}

.btn-secondary:visited {
    color: #1d1d1b;
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--ink);
}

.btn-success {
    background: var(--green);
    color: var(--cream) !important;
    border: 2px solid var(--green);
}

.btn-success:hover:not(:disabled) {
    background: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
}

.nav-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
}

.nav-mobile-btn {
    width: 100% !important;
}

.doc-link {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 500;
}

.footer-centered {
    text-align: center;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.3s ease-in;
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.results-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.results {
    background: var(--green-light);
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.results p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.results-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.results strong {
    color: var(--accent-green);
    font-weight: 700;
}

.results-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 2rem;
    background: var(--bg-warm);
    border-radius: 0;
    border: 1px solid var(--border-light);
}

.testimonials-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--ink);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 2rem;
    background: var(--bg-warm);
    border-radius: 0;
    border: 1px solid var(--border-light);
}

.faq-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-white);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.faq-question:hover {
    color: var(--green);
}

.faq-question:focus-visible {
    outline: var(--focus-outline) !important;
    outline-offset: 2px !important;
    color: var(--green) !important;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

/* Footer */
/* ── Footer ── */
.footer {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 32px 40px;
    font-size: 0.75rem;
    color: var(--ink-faint);
    line-height: 1.7;
    text-align: center;
    border-top: 1px solid var(--rule);
}

.footer a,
.footer a:visited {
    color: var(--ink-faint);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.75rem;
}

.footer a:hover {
    color: var(--ink-muted);
}

.footer p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 auto 0 auto;
    width: 100%;
    place-items: start;
}

.resource-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.resource-card:hover {
    border-color: var(--ink);
}

.resource-card:focus-within {
    border-color: var(--primary-blue);
    outline: 2px solid var(--primary-blue);
    outline-offset: -1px;
    background: var(--bg-white);
}

.resource-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0;
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.resource-card a {
    margin-top: auto;
    align-self: stretch;
    flex: none;
    width: 100%;
}

/* Study Path Section Box */
section[id*="resources"] {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2rem;
    margin: 0 0 3rem 0;
}

section[id*="resources"] h2 {
    margin-top: 0;
    color: var(--text-primary);
    text-align: center;
}

section[id*="resources"] > p {
    text-align: center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--ink);
}

.blog-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-link:hover {
    color: var(--primary-blue-hover);
}

/* Table accessibility */
.table-responsive {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table thead th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Fieldset accessibility */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
}

/* Form labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    background: var(--bg-white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced focus styles for all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
        --border-color: #666666;
    }

    .option,
    .cert-card,
    .testimonial-card {
        border-width: 3px;
    }
}

/* Color blind friendly - ensure elements aren't distinguished by color alone */
.stat-number {
    font-weight: 700;
}

.score-badge::before {
    content: '✓ ' attr(data-status);
    margin-right: 0.5rem;
}

.score-badge.score-pass {
    border: 2px solid var(--accent-green);
}

.score-badge.score-fail {
    border: 2px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topnav-right a:not(.cta-link) {
        display: none;
    }

    .topnav-right form {
        display: none;
    }

    .topnav-mobile-toggle {
        display: flex;
    }

    .topnav-mobile-menu {
        flex-direction: column;
    }

    .topnav-inner {
        padding: 0 1.5rem;
    }

    .header-section {
        padding: 3rem 1.5rem;
    }

    .header-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .header-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .header-highlights {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .highlight-item {
        font-size: 0.9rem;
    }

    .btn-lg {
        min-width: 100%;
    }

    .header-decorative-1 {
        width: 250px;
        height: 250px;
        top: -80px;
        right: -80px;
    }

    .header-decorative-2 {
        width: 200px;
        height: 200px;
        bottom: -60px;
        left: -60px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .faq-container {
        max-width: 100%;
    }

    .footer {
        padding: 24px 1.5rem 32px;
    }

    h1 {
        font-size: 1.625rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .main-container {
        padding: 0 1rem 1.5rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .study-tips-box {
        max-width: 100% !important;
        padding: 1.5rem !important;
    }

    .learning-path {
        flex-direction: column;
        gap: 1.5rem;
    }

    .path-connector {
        display: none;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .option {
        padding: 1rem;
    }

    .header-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .topnav-inner {
        padding: 0 1rem;
    }

    .topnav-brand {
        font-size: 0.85rem;
    }

    .topnav-right .cta-link {
        font-size: 0.78rem;
    }

    .topnav-mobile-menu {
        padding: 1rem 1rem;
    }

    .header-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .header-section h1 {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }

    .header-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .header-highlights {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .highlight-item {
        font-size: 0.85rem;
        justify-content: center;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-width: auto;
        width: 100%;
    }

    .header-decorative-1,
    .header-decorative-2 {
        display: none;
    }

    .footer {
        padding: 20px 1rem 28px;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    .cert-card {
        padding: 1.5rem;
    }

    .cert-icon {
        height: 89px;
    }

    .cert-icon img {
        height: 89px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Modal Styles (Age Verification, Cookie Consent) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.modal-content input[type="number"] {
    font-size: 1rem;
}

.modal-content input[type="number"]::placeholder {
    color: var(--text-muted);
}

.modal-content input[type="number"]:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 2px solid var(--ink);
    padding: 1.5rem;
    z-index: 999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-banner h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner button {
    white-space: nowrap;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner button {
        width: 100%;
    }
}

/* Exam Error Box */
.exam-error-box {
    margin-bottom: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0;
    padding: 1.5rem;
    color: #ef4444;
}

.exam-error-box h3 {
    margin: 0 0 0.5rem 0;
    color: #dc2626;
}

.exam-error-box p {
    margin: 0 0 1rem 0;
}

.exam-error-box button {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

/* Certification Detail Page Styles - Simplified */
.cert-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.cert-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--green-light);
    border: 2px solid var(--accent-green);
    border-radius: 0;
}

.cert-header.professional {
    background: var(--green-light);
    border-color: var(--accent-blue);
}

.cert-header.professional h1 {
    color: var(--accent-blue);
}

.cert-header.architect {
    background: var(--accent-light);
    border-color: var(--accent-orange);
}

.cert-header.architect h1 {
    color: var(--accent-orange);
}

.cert-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-green);
}

.cert-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.cert-badge-level {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--green-light);
    border: 2px solid var(--accent-green);
    border-radius: 0;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cert-header.professional .cert-badge-level {
    background: var(--green-light);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.cert-header.architect .cert-badge-level {
    background: var(--accent-light);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.cert-overview {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.2rem;
    text-align: center;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.topics-section {
    margin-bottom: 2rem;
}

.topics-section h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.topic-item {
    background: var(--green-light);
    border-left: 3px solid var(--primary-blue);
    padding: 0.8rem;
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sample-questions-section {
    margin-bottom: 2rem;
}

.sample-questions-section h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.question-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.option {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.6rem;
    background: var(--green-light);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.option strong {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.show-answer-btn {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 0.8rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.show-answer-btn:hover {
    background: var(--green-light);
}

.answer-section {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: var(--green-light);
    border-left: 3px solid var(--accent-green);
    border-radius: 0;
}

.answer-label {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.explanation {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.cta-section {
    background: var(--green-light);
    border: 2px solid var(--primary-blue);
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.coupon-section {
    background: var(--green-light);
    border: 1px dashed var(--accent-green);
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.coupon-section h3 {
    color: var(--accent-green);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.coupon-section p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.coupon-code {
    display: inline-block;
    background: var(--green-light);
    border: 2px solid var(--accent-green);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-green);
    font-size: 1.1rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-code:hover {
    background: var(--border-color);
    transform: scale(1.02);
}

/* Checkmark animation */
@keyframes checkmarkPulse {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
        color: var(--accent-green);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        color: var(--accent-green);
    }
}

/* X animation */
@keyframes xShake {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(-15deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cert-detail-container {
        padding: 1rem;
    }

    .cert-header h1 {
        font-size: 1.6rem;
    }

    .cert-details-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Scroll margin for sticky header - ensures anchor links scroll below header */
#certifications,
#creator-message,
#faq {
    scroll-margin-top: 100px;
}
