/* ============================================
   CoachOnline.se - Portal Theme
   Light & Warm Design System
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Warm, inviting palette */
    --primary: #B86B4C;
    --primary-hover: #9A5A3F;
    --primary-light: #D4907A;
    --primary-subtle: rgba(184, 107, 76, 0.08);
    --accent: #7A9E8E;
    --accent-hover: #6A8E7E;

    /* Backgrounds */
    --bg-body: #FDFCFA;
    --bg-warm: #F5F2EE;
    --bg-card: #FFFFFF;
    --bg-dark: #2D2A26;

    /* Text */
    --text-primary: #2D2A26;
    --text-secondary: #5A5652;
    --text-muted: #706B66; /* Improved contrast: 4.5:1 vs #FDFCFA */

    /* Borders & Shadows */
    --border-light: rgba(0, 0, 0, 0.05);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Layout */
    --max-width: 1140px;
    --max-width-narrow: 720px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Typographic Scale (Major Third 1.25) */
    --text-h1: 2.441rem;
    --text-h2: 1.953rem;
    --text-h3: 1.563rem;
    --text-h4: 1.25rem;
    --text-h5: 1rem;
    --text-h6: 0.875rem;

    /* Line-height */
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* Optimal line length */
    --measure: 65ch;

    /* Spacing scale (8px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Lazy loading image states */
img[loading="lazy"] {
    background: var(--bg-warm);
    transition: opacity 0.3s ease;
}

/* Dark mode toggle icons */
.icon-sun,
.icon-moon {
    transition: opacity var(--transition-fast);
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block !important;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.topbar {
    background: rgba(253, 252, 250, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.topbar-logo .logo-dot,
.logo-dot {
    color: var(--primary);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.topbar-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-warm);
}

.topbar-nav .topbar-cta {
    background: var(--primary);
    color: white;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 3px 10px rgba(184, 107, 76, 0.3);
    transition: all var(--transition-fast);
}

.topbar-nav .topbar-cta:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 107, 76, 0.4);
}

/* Crisis help button */
.topbar-nav .topbar-crisis-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C75050;
    background: rgba(199, 80, 80, 0.08);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    margin-left: 4px;
}

.topbar-nav .topbar-crisis-btn:hover {
    background: rgba(199, 80, 80, 0.15);
    color: #A84040;
    transform: translateY(-1px);
}

.topbar-nav .topbar-crisis-btn svg {
    flex-shrink: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.topbar-icon-btn:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .topbar-nav { display: none; }
}

@media (max-width: 600px) {
    .topbar-container {
        padding: 0 16px;
        height: 56px;
    }

    .topbar-logo {
        font-size: 1.1rem;
    }

    .topbar-actions {
        gap: 2px;
    }

    .topbar-icon-btn {
        width: 32px;
        height: 32px;
    }

    /* Hide less essential buttons on small screens */
    #topbar-a11y-btn,
    #topbar-faq-btn {
        display: none;
    }
}

@media (max-width: 400px) {
    .topbar-container {
        padding: 0 12px;
    }

    .topbar-logo {
        font-size: 1rem;
    }

    /* Also hide search on very small screens */
    .topbar-search-btn {
        display: none;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: var(--bg-warm);
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    justify-content: center;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--text-muted);
}

/* ============================================
   ARTICLE STYLES
   ============================================ */
.article-page {
    padding: 48px 0 64px;
}

.article-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 24px;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-warm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

/* Info box */
.info-box {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Key facts */
.key-facts {
    background: linear-gradient(135deg, var(--primary-subtle) 0%, #fff 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px !important;
    margin: 0 0 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.key-facts h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-facts h3::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.key-facts ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.key-facts li {
    color: var(--text-primary);
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    padding-left: 16px !important;
    position: relative;
}

.key-facts li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.85em;
}

.key-facts li:last-child {
    margin-bottom: 0 !important;
}

.key-facts li strong {
    color: var(--text-primary);
}

/* Sources */
.sources {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.sources h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: transparent;
}

.section-link:hover {
    gap: 8px;
    background: var(--primary-subtle);
}

.section-intro {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-intro p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Article card */
.article-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.article-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.article-thumb {
    width: 110px;
    height: 80px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-warm);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info { flex: 1; }

.article-tag {
    display: inline-block;
    padding: 2px 7px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.article-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Article card - vertical variant (for category pages) */
.articles-grid .article-card {
    flex-direction: column;
    padding: 24px;
    gap: 0;
}

.articles-grid .article-card:hover {
    transform: translateY(-4px);
}

.articles-grid .article-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.articles-grid .article-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.articles-grid .article-card h3 a:hover {
    color: var(--primary);
}

.articles-grid .article-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.55;
}

.articles-grid .article-card .article-card-icon {
    font-size: 2rem;
    width: auto;
    height: auto;
    margin-bottom: 16px;
    line-height: 1;
    transition: transform var(--transition-normal);
}

.articles-grid .article-card:hover .article-card-icon {
    transform: scale(1.1);
}

.articles-grid .article-card .article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    padding: 0;
    border: none;
    background: none;
    margin: 0;
    transition: gap var(--transition-fast);
}

.articles-grid .article-card .article-card-link:hover {
    gap: 8px;
    box-shadow: none;
    border-color: transparent;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-warm);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* Background variations */
.bg-warm { background: var(--bg-warm); }
.bg-white { background: var(--bg-card); }

/* ============================================
   CRISIS SUPPORT BANNER (subtle)
   ============================================ */
.crisis-banner {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.875rem;
}

.crisis-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.crisis-banner-text {
    color: var(--text-secondary);
}

.crisis-banner-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.crisis-banner-link:hover {
    text-decoration: underline;
}

.crisis-banner-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 500px) {
    .crisis-banner {
        padding: 8px 0;
        font-size: 0.8rem;
    }
}

/* ============================================
   FACT-CHECK & SOURCES (E-E-A-T)
   ============================================ */

/* Fact-checked badge */
.fact-checked {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-medium);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.fact-checked-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact-checked-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.fact-checked-content {
    flex: 1;
}

.fact-checked-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 4px;
}

.fact-checked-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.fact-checked-author a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.fact-checked-author a:hover {
    color: var(--primary);
}

.fact-checked-credentials {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.fact-checked-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sources section (enhanced) */
.sources-section {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
}

.sources-section h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources-list li {
    position: relative;
    padding: 12px 0 12px 32px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sources-list li:last-child {
    border-bottom: none;
}

.sources-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 16px;
    height: 16px;
    background: var(--primary-subtle);
    border-radius: 50%;
}

.sources-list li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 21px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.sources-list a {
    color: var(--primary);
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}

.source-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.source-type.official {
    background: #E3F2FD;
    color: #1565C0;
}

.source-type.research {
    background: #F3E5F5;
    color: #7B1FA2;
}

.source-type.clinical {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Author profile card (for author pages) */
.author-profile {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
}

.author-profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 4px solid var(--bg-warm);
    box-shadow: var(--shadow-md);
}

.author-profile h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-profile-title {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.author-profile-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.author-credential {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.author-credential svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* YMYL Medical disclaimer (enhanced) */
.medical-disclaimer {
    background: #FFF8E1;
    border: 1px solid #FFB300;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.medical-disclaimer-icon {
    flex-shrink: 0;
    color: #F57C00;
}

.medical-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: #5D4037;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .fact-checked {
        flex-direction: column;
        text-align: center;
    }

    .fact-checked-icon {
        margin: 0 auto;
    }

    .sources-section {
        padding: 24px 20px;
    }

    .author-profile {
        padding: 24px;
    }

    .author-profile-image {
        width: 120px;
        height: 120px;
    }
}

/* ============================================
   ARTICLE DATE INFO
   ============================================ */
.article-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.date-published,
.date-modified {
    display: inline-flex;
    align-items: center;
}

.date-separator {
    color: var(--border-medium);
}

.date-modified {
    color: var(--accent);
}

/* Page/Hero/Article Date Display */
.page-date,
.hero-date,
.article-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.page-date time,
.hero-date time,
.article-date time {
    font-weight: 500;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-sticky-cta-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.mobile-sticky-cta-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.mobile-sticky-cta-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-sticky-cta-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Only show on mobile */
@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    /* Add padding to body to prevent content being hidden behind CTA */
    body.has-sticky-cta {
        padding-bottom: 70px;
    }

    /* Hide on booking page */
    body.booking-page .mobile-sticky-cta {
        display: none;
    }
}

/* Hide when cookie consent is visible */
.cookie-consent.visible ~ .mobile-sticky-cta,
body.cookie-consent-visible .mobile-sticky-cta {
    transform: translateY(100%);
}

/* ============================================
   COOKIE CONSENT (GDPR Granular)
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent.hiding {
    transform: translateY(100%);
}

.cookie-consent-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.cookie-consent-header h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-consent-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-hover);
}

.cookie-btn-decline {
    background: var(--bg-warm);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.cookie-btn-decline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-btn-settings:hover {
    color: var(--primary);
}

.cookie-btn-back {
    background: var(--bg-warm);
    color: var(--text-secondary);
}

.cookie-btn-back:hover {
    color: var(--text-primary);
}

/* Cookie Categories */
.cookie-categories {
    margin: 16px 0;
}

.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.cookie-always-on {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(122, 158, 142, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cookie-category p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    padding-left: 52px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-medium);
    transition: 0.3s;
    border-radius: 22px;
}

.cookie-toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: var(--accent);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .cookie-consent-content {
        padding: 16px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-category p {
        padding-left: 0;
        margin-top: 8px;
    }
}

/* ============================================
   GDPR CONSENT MODAL (v2.0)
   ============================================ */
.gdpr-consent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gdpr-consent.active {
    opacity: 1;
    visibility: visible;
}

.gdpr-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.gdpr-modal {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gdpr-consent.active .gdpr-modal {
    transform: translateY(0);
}

.gdpr-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.gdpr-header h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.gdpr-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.gdpr-categories {
    padding: 8px 24px;
}

.gdpr-category {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.gdpr-category:last-child {
    border-bottom: none;
}

.gdpr-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.gdpr-category-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gdpr-category-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.gdpr-required {
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(122, 158, 142, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gdpr-health-badge {
    font-size: 0.7rem;
    color: #C75050;
    background: rgba(199, 80, 80, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gdpr-category p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.gdpr-category-health {
    background: rgba(199, 80, 80, 0.03);
    margin: 0 -24px;
    padding: 16px 24px;
    border-radius: 0;
}

/* Toggle Switch */
.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.gdpr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-medium);
    transition: 0.3s;
    border-radius: 24px;
}

.gdpr-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gdpr-toggle input:checked + .gdpr-slider {
    background-color: var(--accent);
}

.gdpr-toggle input:checked + .gdpr-slider::before {
    transform: translateX(20px);
}

.gdpr-toggle input:disabled + .gdpr-slider {
    background-color: var(--accent);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Actions */
.gdpr-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.gdpr-btn-primary {
    background: var(--primary);
    color: white;
}

.gdpr-btn-primary:hover {
    background: var(--primary-hover);
}

.gdpr-btn-secondary {
    background: var(--bg-warm);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.gdpr-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer */
.gdpr-footer {
    padding: 12px 24px;
    background: var(--bg-warm);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
}

.gdpr-footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

.gdpr-footer a:hover {
    color: var(--primary);
}

.gdpr-footer span {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .gdpr-modal {
        width: 95%;
        max-height: 95vh;
    }

    .gdpr-header,
    .gdpr-categories,
    .gdpr-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gdpr-actions {
        flex-direction: column;
    }

    .gdpr-btn {
        width: 100%;
    }

    .gdpr-category-health {
        margin: 0 -16px;
        padding: 16px;
    }
}

/* Dark mode */
[data-theme="dark"] .gdpr-modal {
    background: var(--bg-card);
}

[data-theme="dark"] .gdpr-footer {
    background: var(--bg-warm);
}

[data-theme="dark"] .gdpr-health-badge {
    background: rgba(232, 112, 112, 0.15);
    color: #E87070;
}

[data-theme="dark"] .gdpr-category-health {
    background: rgba(232, 112, 112, 0.05);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle span::before {
    transform: translateY(-7px);
}

.mobile-menu-toggle span::after {
    transform: translateY(5px);
}

.mobile-menu-toggle.active span {
    background: transparent;
}

.mobile-menu-toggle.active span::before {
    transform: rotate(45deg) translateY(0);
}

.mobile-menu-toggle.active span::after {
    transform: rotate(-45deg) translateY(-2px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav a {
    display: block;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    /* Touch target: min 44px */
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: var(--bg-warm);
    color: var(--primary);
}

.mobile-nav .topbar-cta {
    background: var(--primary);
    color: white;
    text-align: center;
    justify-content: center;
    margin-top: 16px;
}

.mobile-nav .topbar-cta:hover {
    background: var(--primary-hover);
}

.mobile-crisis-link {
    color: #C75050 !important;
    background: rgba(199, 80, 80, 0.08);
    gap: 8px;
    font-weight: 600;
    border-bottom: 2px solid rgba(199, 80, 80, 0.15);
}

.mobile-crisis-link:hover,
.mobile-crisis-link:focus {
    background: rgba(199, 80, 80, 0.15) !important;
    color: #A84040 !important;
}

.mobile-crisis-link svg {
    flex-shrink: 0;
}

[data-theme="dark"] .mobile-crisis-link {
    color: #E87070 !important;
    background: rgba(232, 112, 112, 0.12);
    border-bottom-color: rgba(232, 112, 112, 0.2);
}

[data-theme="dark"] .mobile-crisis-link:hover,
[data-theme="dark"] .mobile-crisis-link:focus {
    background: rgba(232, 112, 112, 0.2) !important;
    color: #F08080 !important;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 600px) {
    .mobile-nav {
        top: 56px;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #F59E0B;
    color: #F59E0B;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-light);
    line-height: 0;
    margin-right: 4px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.testimonials-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.testimonials-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials-rating .stars {
    display: flex;
    gap: 2px;
}

.testimonials-rating svg {
    width: 20px;
    height: 20px;
    fill: #F59E0B;
}

.testimonials-rating strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.testimonials-rating span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-summary {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   SOCIAL SHARING
   ============================================ */
.social-share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.social-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-share-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.social-share-btn.linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.social-share-btn.twitter:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.social-share-btn.email:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.social-share-btn.copy:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.social-share-btn.copied {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Floating share bar */
.social-share.floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-share.floating.visible {
    opacity: 1;
    visibility: visible;
}

.social-share.floating .social-share-label {
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.social-share.floating .social-share-buttons {
    flex-direction: column;
}

@media (max-width: 1200px) {
    .social-share.floating {
        display: none;
    }
}

.share-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.share-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn--facebook {
    background: #1877F2;
    color: white;
}

.share-btn--facebook:hover {
    background: #0d65d9;
}

.share-btn--twitter {
    background: #000;
    color: white;
}

.share-btn--twitter:hover {
    background: #333;
}

.share-btn--linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn--linkedin:hover {
    background: #084d94;
}

.share-btn--copy {
    background: var(--bg-warm);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.share-btn--copy:hover {
    background: var(--primary-subtle);
    border-color: var(--primary-light);
}

.share-btn--copy.copied {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

@media (max-width: 600px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }
}

/* ============================================
   PORTAL HERO (Image Fade Left to Right)
   ============================================ */
.portal-hero {
    position: relative;
    background: var(--bg-warm);
    padding: 64px 0;
}

.portal-hero--fade {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    background: var(--bg-warm);
}

.portal-hero--fade .portal-hero-bg {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.portal-hero--fade .portal-hero-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent 30%,
        rgba(245, 242, 238, 0.4) 45%,
        rgba(245, 242, 238, 0.7) 60%,
        rgba(245, 242, 238, 0.88) 75%
    );
    z-index: 2;
}

/* Removed ::before - no longer needed with full-width gradient */

.portal-hero--fade .container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 48px;
}

.portal-hero--fade .portal-hero-content {
    max-width: 480px;
    padding: 60px 0;
    text-align: left;
    margin-left: auto;
    margin-right: 15%;
}

.portal-hero--fade .portal-hero-eyebrow {
    color: var(--primary);
}

.portal-hero--fade h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.portal-hero--fade .portal-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 28px;
}

.portal-hero--fade .portal-search {
    max-width: 100%;
    margin-bottom: 24px;
}

.portal-hero--fade .quick-paths {
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .portal-hero--fade .container {
        padding: 0 24px;
    }

    .portal-hero--fade .portal-hero-content {
        margin-right: 10%;
        max-width: 420px;
    }

    .portal-hero--fade .portal-hero-fade {
        background: linear-gradient(
            to right,
            transparent 0%,
            transparent 20%,
            rgba(245, 242, 238, 0.4) 40%,
            rgba(245, 242, 238, 0.7) 60%,
            rgba(245, 242, 238, 0.85) 80%
        );
    }
}

@media (max-width: 768px) {
    .portal-hero--fade {
        min-height: auto;
        flex-direction: column;
    }

    .portal-hero--fade .portal-hero-bg {
        position: relative;
        left: 0;
        width: 100%;
        height: 320px;
    }

    .portal-hero--fade .portal-hero-fade {
        width: 100%;
        height: 320px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 40%,
            rgba(245, 242, 238, 0.7) 70%,
            var(--bg-warm) 100%
        );
    }

    .portal-hero--fade .container {
        position: relative;
        min-height: auto;
        max-width: var(--max-width);
        padding: 0 24px;
        margin: 0 auto;
    }

    .portal-hero--fade .portal-hero-content {
        max-width: 100%;
        text-align: center;
        padding: 32px 24px 48px;
        margin-left: auto;
        margin-right: auto;
    }

    .portal-hero--fade h1 {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .portal-hero--fade .quick-paths {
        justify-content: center;
    }

    .portal-hero--fade .portal-search {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   PORTAL HERO (Split Layout)
   ============================================ */

.portal-hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    min-height: 500px;
}

.portal-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.portal-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-hero-content {
    padding: 24px 0;
}

.portal-hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

.portal-hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.portal-hero-content h1 span {
    color: var(--primary);
}

.portal-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.portal-search {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 10px 22px;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 440px;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.portal-search:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.portal-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.portal-search svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.portal-search input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    padding: 8px 0;
}

.portal-search input::placeholder {
    color: var(--text-muted);
}

.quick-paths {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-paths-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quick-path {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.quick-path:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .portal-hero--split {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .portal-hero-image {
        order: -1;
        max-height: 300px;
    }

    .portal-hero-content {
        text-align: center;
    }

    .portal-search {
        margin-left: auto;
        margin-right: auto;
    }

    .quick-paths {
        justify-content: center;
    }
}

/* ============================================
   HUB CARDS
   ============================================ */
.hub-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.hub-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.hub-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-warm);
    transition: transform var(--transition-normal);
}

.hub-card:hover .hub-icon {
    transform: scale(1.05);
}

.hub-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hub-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.hub-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* ============================================
   QUIZ CARDS
   ============================================ */
.quiz-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.quiz-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quiz-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-warm);
    transition: transform var(--transition-normal);
}

.quiz-card:hover .quiz-icon {
    transform: scale(1.05);
}

.quiz-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-content {
    flex: 1;
}

.quiz-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.quiz-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.quiz-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   EXPERT CARDS
   ============================================ */
.expert-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.expert-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.expert-card:hover .expert-avatar {
    border-color: var(--primary-light);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--bg-warm);
}

.expert-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.expert-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.expert-topics {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.expert-topic {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

/* ============================================
   FOOTER CRISIS & DISCLAIMER
   ============================================ */
.footer-crisis {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #c62828;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-crisis p {
    font-size: 0.9rem;
    color: #1a1a1a;
    margin: 0;
}

.footer-crisis a {
    color: #c62828;
    font-weight: 600;
}

.footer-crisis a:hover {
    color: #a01f1f;
    text-decoration: underline;
}

.footer-disclaimer {
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   LANDING PAGE HERO (for articles/sections)
   ============================================ */
.landing-page .landing-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #EDE8E3 100%);
    padding: 20px 0 28px;
}

.landing-page .landing-hero-warm {
    background: linear-gradient(135deg, #F5F2EE 0%, #EDE8E3 100%);
}

.landing-hero .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.landing-hero-content {
    max-width: 720px;
}

.landing-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 6px;
}

.landing-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-byline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.landing-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 12px;
    margin-bottom: 12px;
    max-width: 600px;
}

.landing-hero-meta {
    display: flex;
    gap: 16px;
    margin-top: 0;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    flex-shrink: 0;
}

/* Article Hero - Clean, simple */
.article-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #EDE8E3 100%);
    padding: 20px 0 28px;
}

.article-hero .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.article-hero .breadcrumbs {
    margin-bottom: 16px;
}

.article-hero-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 8px;
}

.article-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 12px;
    max-width: 700px;
}

.article-hero-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 12px;
    max-width: 600px;
}

.article-hero-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .article-hero {
        padding: 16px 0 20px;
    }

    .article-hero .container {
        padding: 0 20px;
    }
}

/* ============================================
   QUICK NAVIGATION
   ============================================ */
.quick-nav {
    background: var(--bg-body);
    padding: 12px 0;
}

.quick-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.quick-nav-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.quick-nav-icon {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.quick-nav-text {
    color: inherit;
}

/* ============================================
   LANDING PAGE CONTENT
   ============================================ */
.landing-content {
    padding: 24px 0 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.main-content {
    max-width: 100%;
}

.main-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-h2);
    font-weight: 500;
    color: var(--text-primary);
    margin: 2.5em 0 0.75em;
    line-height: var(--leading-snug);
    letter-spacing: -0.02em;
}

.main-content h2:first-of-type {
    margin-top: 0;
}

.main-content h3 {
    font-family: var(--font-sans);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin: 2em 0 0.75em;
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

.main-content h4 {
    font-family: var(--font-sans);
    font-size: var(--text-h4);
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.75em 0 0.5em;
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

.main-content h5 {
    font-family: var(--font-sans);
    font-size: var(--text-h5);
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5em 0 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-content h6 {
    font-family: var(--font-sans);
    font-size: var(--text-h6);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.25em 0 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-content p {
    font-size: 1.05rem;
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: 1.5em;
    max-width: var(--measure);
    text-rendering: optimizeLegibility;
}

.main-content ul,
.main-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.main-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.main-content li strong {
    color: var(--text-primary);
}

.main-content sup {
    font-size: 0.75rem;
    color: var(--primary);
}

.main-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(184, 107, 76, 0.3);
    text-underline-offset: 2px;
}

.main-content a:hover {
    text-decoration-color: var(--primary);
}

/* Highlight Box */
.highlight-box {
    background: var(--bg-warm);
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.highlight-box p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-secondary);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #E8F4F0 0%, #F0F7F5 100%);
    border: 1px solid rgba(122, 158, 142, 0.2);
    padding: 24px;
    margin: 32px 0;
    border-radius: var(--radius-md);
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 12px 0;
}

.info-box p {
    font-size: 1rem;
    margin: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Sidebar Profile */
.sidebar-sticky {
    position: sticky;
    top: 88px;
}

.sidebar-profile {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

/* Works for both: div.sidebar-profile-image > img AND img.sidebar-profile-image */
.sidebar-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    object-fit: cover;
}

.sidebar-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* When image has class directly */
img.sidebar-profile-image {
    display: block;
    border-radius: 50%;
}

.sidebar-profile h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-profile-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    margin-top: 16px;
    line-height: 1.6;
}

/* Button spacing in sidebar profile */
.sidebar-profile .btn-book {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(184, 107, 76, 0.25);
}

.sidebar-profile .btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 107, 76, 0.35);
}

/* Sidebar Book */
.sidebar-book {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-book-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.sidebar-book-image img {
    width: 100%;
    height: auto;
}

.sidebar-book h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-book-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ============================================
   CAUSES & SYMPTOMS
   ============================================ */
.causes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.cause-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.cause-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.cause-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.cause-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cause-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   EXERCISE CARDS
   ============================================ */
.exercise-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.exercise-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.exercise-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.exercise-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.exercise-content {
    flex: 1;
    min-width: 0;
}

.exercise-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    padding-top: 2px;
    color: var(--text-primary);
}

.exercise-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.exercise-card p + p {
    margin-top: 12px;
}

/* ============================================
   TIP CARDS
   ============================================ */
.tip-card {
    padding: 24px;
    background: linear-gradient(135deg, #FDF8F5 0%, #FAF5F2 100%);
    border: 1px solid rgba(184, 107, 76, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.tip-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px;
}

.tip-card strong {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.tip-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   COMPARISON GRID
   ============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.comparison-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.comparison-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.comparison-item p,
.comparison-item ul {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.comparison-item ul {
    padding-left: 20px;
    margin: 12px 0 0;
}

.comparison-item li {
    margin-bottom: 8px;
}

/* ============================================
   TREATMENT CARDS
   ============================================ */
.treatment-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.treatment-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.treatment-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   SCHEMA / STEPS
   ============================================ */
.schema-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    transition: all var(--transition-fast);
}

.schema-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.schema-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.schema-item ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.schema-item li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.schema-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.schema-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.schema-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50%;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   REFERENCES
   ============================================ */
.references-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.references-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.references-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.6;
}

.references-list li:last-child {
    border-bottom: none;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.related-articles h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.article-card-link {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.article-card-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.article-card-link h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-card-link p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.article-card-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

/* ============================================
   HELP LINKS
   ============================================ */
.help-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.help-link-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.help-link-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.help-link-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.help-link-arrow {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   BOX BREATHING & INTERACTIVE TOOLS
   ============================================ */
.box-breathing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 300px;
    margin: 24px auto;
}

.box-step {
    padding: 20px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   TEST CARDS (Self-tests)
   ============================================ */
.test-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.test-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.test-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
}

.test-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.test-content {
    padding: 24px;
}

.test-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 16px;
    transition: gap var(--transition-fast);
}

.test-link:hover {
    gap: 8px;
}

/* ============================================
   LIMITATIONS & CAPABILITIES
   ============================================ */
.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.limitation-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.limitation-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.capability-item {
    padding: 20px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
}

.capability-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ============================================
   HELP INDICATORS
   ============================================ */
.help-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.indicator-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.indicator-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ============================================
   WARNING & EVIDENCE BOXES
   ============================================ */
.warning-box {
    padding: 20px 24px;
    background: #FFF5F0;
    border-left: 4px solid #E07050;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.warning-box h4 {
    color: #B84020;
    margin-bottom: 8px;
    font-size: 1rem;
}

.warning-box p {
    color: #6B4030;
    margin: 0;
}

.evidence-box {
    padding: 20px 24px;
    background: linear-gradient(135deg, #F0F8F5 0%, #E8F4F0 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
}

.evidence-box h4 {
    color: var(--accent-hover);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.evidence-box p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   OTHER TESTS & HELP RESOURCES
   ============================================ */
.other-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.other-test-item {
    padding: 20px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.other-test-item:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.help-resources {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
}

.help-resources h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.help-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-resources li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.help-resources li:last-child {
    border-bottom: none;
}

/* Tips Card variant */
.tips-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

/* Landing CTA Warm variant */
.landing-cta-warm {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #EDE8E3 100%);
}

/* Responsive: Test Cards and Grids */
@media (max-width: 768px) {
    .test-header,
    .test-content {
        padding: 16px 20px;
    }

    .limitations-grid,
    .help-indicators {
        grid-template-columns: 1fr;
    }

    .limitation-card,
    .indicator-card {
        padding: 16px 20px;
    }
}

@media (max-width: 400px) {
    .box-breathing {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-book:hover {
    background: var(--primary-hover);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-read-book {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-read-book:hover {
    background: var(--accent-hover);
}

/* ============================================
   LANDING CTA
   ============================================ */
.landing-cta {
    background: var(--bg-dark);
    color: white;
    padding: 64px 0;
    text-align: center;
    margin-top: 64px;
}

.landing-cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 16px;
}

.landing-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.landing-cta-warm {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #EDE8E3 100%);
    color: var(--text-primary);
}

.landing-cta-warm h2,
.landing-cta-warm p {
    color: var(--text-primary);
}

/* ============================================
   QUOTES
   ============================================ */
.article-quote {
    border-left: 4px solid var(--primary);
    padding: 24px 32px;
    margin: 32px 0;
    background: var(--bg-warm);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-quote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Highlight text */
.highlight {
    background: linear-gradient(120deg, rgba(184, 107, 76, 0.15) 0%, rgba(184, 107, 76, 0.15) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.search-modal-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    outline: none;
}

.search-modal-input:focus {
    border-color: var(--primary);
}

.search-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: 50%;
    cursor: pointer;
}

.search-modal-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
}

.search-modal-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.search-modal-hint {
    color: var(--text-muted);
}

.search-modal-link {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   SCHEMA LIST (Enhanced)
   ============================================ */
.schema-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.schema-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.schema-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.schema-header a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.schema-header a:hover {
    color: var(--primary);
}

/* ============================================
   EVIDENCE & WARNING BOXES
   ============================================ */
.evidence-box {
    background: linear-gradient(135deg, #F0F7F5 0%, #E8F4F0 100%);
    border: 1px solid rgba(122, 158, 142, 0.25);
    border-left: 4px solid var(--accent);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.evidence-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 12px 0;
}

.evidence-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
}

.warning-box {
    background: linear-gradient(135deg, #FEF3E8 0%, #FDF0E3 100%);
    border: 1px solid rgba(200, 120, 60, 0.2);
    border-left: 4px solid #C87840;
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.warning-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #B86830;
    margin: 0 0 12px 0;
}

.warning-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
}

.info-box-warm {
    background: linear-gradient(135deg, #FDF8F5 0%, #FAF5F2 100%);
    border: 1px solid rgba(184, 107, 76, 0.15);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-warm);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tr:nth-child(even) td {
    background: rgba(245, 242, 238, 0.5);
}

.comparison-table td {
    color: var(--text-secondary);
}

/* ============================================
   TIPS LIST & GRID
   ============================================ */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.tips-list li {
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.tips-list li h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.tips-list li p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

/* Limit to max 3 columns on wide screens */
@media (min-width: 1200px) {
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tip-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
}

/* ============================================
   RELATED SECTION
   ============================================ */
.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.related-section h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0;
    color: var(--text-primary);
}

.related-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.related-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 64px 0 40px;
    margin-top: 80px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   INFO CARD & CONTENT CARD
   ============================================ */
.info-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.content-card {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.content-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.content-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.content-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.content-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: 12px;
}

/* ============================================
   TECHNIQUE CARD
   ============================================ */
.technique-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.technique-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.technique-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.technique-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(122, 158, 142, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.technique-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================
   SYMPTOM & CATEGORY
   ============================================ */
.symptom-category {
    margin-bottom: 32px;
}

.symptom-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.symptom-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.symptom-category-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.symptom-category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.symptom-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.symptom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symptom-chip {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    margin: 4px;
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    margin: 40px 0;
}

.author-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-box-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box-info {
    flex: 1;
}

.author-box-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-box-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
}

.author-box-articles {
    margin-top: 16px;
}

.author-box-articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   TREATMENT GRID
   ============================================ */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.treatment-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(122, 158, 142, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

/* ============================================
   ARTICLE CTA
   ============================================ */
.article-cta {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #EDE8E3 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 48px 0;
}

.article-cta h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.article-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ARTICLE HEADER & INTRO
   ============================================ */
.article-header {
    margin-bottom: 32px;
}

.article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 12px;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    margin: 48px 0;
}

.faq-section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    cursor: pointer;
    font-weight: 500;
}

.faq-question:hover {
    background: var(--bg-warm);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.step-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50%;
}

.step-example {
    background: var(--bg-warm);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 12px;
}

.step-guide {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
}

/* ============================================
   OPTION CARDS (Quiz/Interactive)
   ============================================ */
.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option:hover {
    border-color: var(--primary);
}

.option.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.option-text {
    font-size: 0.95rem;
}

/* ============================================
   GLOSSARY
   ============================================ */
.glossary-section {
    margin: 48px 0;
}

.glossary-entry {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.glossary-entry:last-child {
    border-bottom: none;
}

.glossary-entry strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

/* ============================================
   MISC COMPONENTS
   ============================================ */
.cause-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cause-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.exercise-box {
    padding: 24px;
    background: linear-gradient(135deg, #F8F6F3 0%, #F5F2EE 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.help-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.praktisk-hjalp-section {
    background: var(--bg-warm);
    padding: 48px 0;
    margin: 48px 0;
}

/* ============================================
   ARTICLE & SUBCATEGORY
   ============================================ */
.article {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 48px 24px;
}

.article-container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
}

/* Note: Responsive styles for .articles-grid are in CATEGORY LANDING PAGES section */

.subcategory-section {
    margin-bottom: 72px;
}

.subcategory-section:last-child {
    margin-bottom: 0;
}

.subcategory-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.subcategory-header h2,
.subcategory-header h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.subcategory-header h3 {
    font-size: 1.4rem;
}

.subcategory-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

/* ============================================
   READING LIST
   ============================================ */
.reading-list-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.reading-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.reading-list-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50%;
}

.reading-list-item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.reading-list-item-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   QUESTION CARDS (Interactive)
   ============================================ */
.question-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   CHECKLIST
   ============================================ */
.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checkbox {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-icon {
    color: var(--primary);
    display: none;
}

.checklist-item.checked .checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.checklist-item.checked .checkbox-icon {
    display: block;
    color: white;
}

.item-content {
    flex: 1;
}

.item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   LEVEL & SUPPORT CARDS
   ============================================ */
.level-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.level-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.level-healthy {
    border-color: var(--accent);
}

.level-low {
    border-color: #C87840;
}

.level-inflated {
    border-color: var(--primary);
}

.support-box {
    padding: 24px;
    background: linear-gradient(135deg, #E8F4F0 0%, #F0F7F5 100%);
    border: 1px solid rgba(122, 158, 142, 0.2);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.support-box h4 {
    color: var(--accent);
    margin-bottom: 12px;
}

/* ============================================
   COURSE MODULES
   ============================================ */
.course-module {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.module-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.module-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.module-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.module-lessons {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.related-terms a {
    padding: 6px 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.related-terms a:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

/* ============================================
   EXAMPLE BOX
   ============================================ */
.example-box {
    padding: 24px;
    background: var(--bg-warm);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.example-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ============================================
   WRITER CARD
   ============================================ */
.writer-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.writer-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.writer-avatar,
.writer-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.writer-avatar img,
.writer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.writer-role,
.role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.writer-ledord {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.writer-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.writer-focus {
    margin-top: 16px;
}

.writer-card-body {
    margin-bottom: 16px;
}

.writer-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.writer-link {
    color: var(--primary);
    font-weight: 500;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   CRISIS CARD
   ============================================ */
.crisis-card {
    padding: 24px;
    background: linear-gradient(135deg, #FEF3E8 0%, #FDF0E3 100%);
    border: 1px solid rgba(200, 120, 60, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.crisis-card h4 {
    color: #B86830;
    margin-bottom: 12px;
}

.crisis-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B86830;
    font-weight: 500;
}

.crisis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.crisis-box {
    padding: 24px;
    background: #FFF5F5;
    border: 1px solid rgba(200, 60, 60, 0.2);
    border-radius: var(--radius-md);
}

.phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   BOOK CARD
   ============================================ */
.book-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.book-cover,
.book-cover-placeholder {
    width: 100px;
    height: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-warm);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    flex: 1;
}

.book-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.book-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.book-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.book-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F5A623;
    font-size: 0.9rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ============================================
   STATS
   ============================================ */
.stat {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-box {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ============================================
   MISC REMAINING
   ============================================ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.focus-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(122, 158, 142, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.condition-group {
    margin-bottom: 32px;
}

.condition-group h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.tema-section {
    margin: 48px 0;
    padding: 48px 0;
    background: var(--bg-warm);
}

.input-group {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
}

.warning-card {
    padding: 20px;
    background: #FFF5F5;
    border: 1px solid rgba(200, 60, 60, 0.15);
    border-radius: var(--radius-md);
}

.hours {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sign-category {
    margin-bottom: 24px;
}

.quick-help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-info {
    flex: 1;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.author-name {
    font-weight: 600;
}

.process-timeline {
    position: relative;
    padding-left: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 999;
    transition: width 0.1s;
}

.distortion-item {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.distortion-item h4 {
    margin-bottom: 8px;
}

.comparison-option {
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comparison-option:hover,
.comparison-option.selected {
    border-color: var(--primary);
}

.model-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.model-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.model-box {
    padding: 24px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.model-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

.model-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 8px 0;
}

.sidebar-profile-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.quiz-start-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.quiz-start-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
}

/* Mobile responsive for new components */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .author-box {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }

    .article-cta {
        padding: 32px 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        gap: 12px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .landing-content {
        padding: 20px 0 60px;
    }

    .main-content h2 {
        font-size: 1.5rem;
        margin: 36px 0 16px;
    }

    .main-content h3 {
        font-size: 1.15rem;
    }

    .main-content p,
    .main-content li {
        font-size: 1rem;
    }

    .quick-nav-grid {
        gap: 8px;
    }

    .quick-nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .exercise-card {
        flex-direction: column;
        gap: 16px;
    }

    .exercise-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cause-item {
        flex-direction: column;
        gap: 12px;
    }

    .schema-item {
        flex-direction: column;
        gap: 12px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        padding: 48px 0;
    }

    .landing-cta h2 {
        font-size: 1.5rem;
    }

    .sidebar-sticky {
        position: static;
    }
}

/* ============================================
   MOBILE UX IMPROVEMENTS
   ============================================ */
/* Ensure proper touch targets (min 44x44px) */
@media (max-width: 900px) {
    .topbar-icon-btn {
        width: 44px;
        height: 44px;
    }

    .quick-path {
        padding: 10px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .hub-card,
    .quiz-card,
    .article-card {
        min-height: 44px;
    }

    /* Better spacing on mobile */
    .section {
        padding: 48px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .portal-hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .portal-search input {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Improve card tap area */
    .card,
    .hub-card,
    .expert-card {
        padding: 20px;
    }
}

/* ============================================
   WORLD-CLASS POLISH
   ============================================ */

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Specific focus states for interactive elements */
.btn:focus-visible,
.btn-book:focus-visible,
.btn-read-book:focus-visible,
.topbar-cta:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--primary-subtle);
}

.quick-nav-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background: var(--primary-subtle);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.faq-question:focus-visible,
.option:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--bg-warm);
}

.search-modal-input:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* Smooth scrolling for anchors */
html {
    scroll-padding-top: 100px;
}

/* Selection styling */
::selection {
    background: rgba(184, 107, 76, 0.2);
    color: var(--text-primary);
}

/* Better link underlines */
.main-content a {
    text-decoration: underline;
    text-decoration-color: rgba(184, 107, 76, 0.3);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
}

.main-content a:hover {
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
}

/* Subtle animations for cards */
@media (prefers-reduced-motion: no-preference) {
    .schema-item,
    .tips-list li,
    .related-card,
    .sidebar-profile,
    .sidebar-book {
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
}

/* Fix image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Reading progress indicator */
.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-light);
    z-index: 999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 16px;
    }
}

/* ============================================
   CATEGORY LANDING PAGES
   ============================================ */
.category-hero {
    padding: 56px 0;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
}

.category-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.category-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: var(--leading-tight);
}

.category-hero-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
}

.category-sections {
    padding: 72px 0;
    background: var(--bg-body);
}

/* Featured Guide Card */
.featured-guide {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    box-shadow: 0 8px 32px rgba(184, 107, 76, 0.25);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-guide:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(184, 107, 76, 0.3);
}

.featured-guide-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.featured-guide-content p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.featured-guide .btn {
    background: white;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-guide .btn:hover {
    background: var(--bg-warm);
    transform: translateY(-1px);
}

/* Info Box (used on category pages) */
.info-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 36px;
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    box-shadow: 0 8px 32px rgba(184, 107, 76, 0.2);
}

.info-box h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: white;
}

.info-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: rgba(255,255,255,0.95);
}

.info-box li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.8);
}

/* Featured Article (for articles landing page) */
.featured-article {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(184, 107, 76, 0.25);
}

.featured-article-content h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: white;
}

.featured-article-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.featured-article .btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-article .btn:hover {
    background: var(--bg-warm);
    transform: translateY(-1px);
}

.featured-article-stats {
    background: rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.featured-article-stats h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
}

.featured-article-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-article-stats li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: rgba(255,255,255,0.95);
}

.featured-article-stats li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.7);
}

/* Article card meta (for listings with date/reading time) */
.article-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* Subcategory sections (enhanced) */
.subcategory-section {
    margin-bottom: 72px;
}

.subcategory-section:last-child {
    margin-bottom: 0;
}

.subcategory-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.subcategory-header h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.subcategory-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

/* Category page article cards */
.category-article-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.category-article-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.category-article-card .article-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.category-article-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.35;
}

.category-article-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.category-article-card h3 a:hover {
    color: var(--primary);
}

.category-article-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.55;
}

/* Article card icon in category grid */
.article-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
    transition: transform var(--transition-normal);
}

.article-card:hover .article-card-icon,
.category-article-card:hover .article-card-icon {
    transform: scale(1.1);
}

/* Responsive category pages */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-sections {
        padding: 48px 0;
    }

    .subcategory-section {
        margin-bottom: 48px;
    }

    .featured-article {
        grid-template-columns: 1fr;
        padding: 32px;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .category-hero {
        padding: 36px 0;
    }

    .category-hero-intro {
        font-size: 1.125rem;
    }

    .featured-guide {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .featured-guide-content h3 {
        font-size: 1.35rem;
    }

    .subcategory-header h2 {
        font-size: 1.5rem;
    }
}

/* Responsive typography scale */
@media (max-width: 768px) {
    :root {
        --text-h1: 2rem;
        --text-h2: 1.5rem;
        --text-h3: 1.25rem;
        --text-h4: 1.1rem;
    }

    .main-content p {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 100%;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .landing-hero h1 {
        letter-spacing: -0.02em;
    }
}

/* ============================================
   SEARCH PAGE STYLES
   ============================================ */

.search-page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-body) 100%);
}

.search-page-header h1 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.search-form {
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    padding-left: 3rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: all var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 107, 76, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-content {
    padding: 3rem 0;
    min-height: 50vh;
    background: var(--bg-card);
}

.search-results-count {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-results-count strong {
    color: var(--text-primary);
}

.search-results-list {
    display: grid;
    gap: 1rem;
}

.search-result-item {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-result-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
}

.search-result-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.search-result-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(184, 107, 76, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.search-result-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.search-result-title mark {
    background: rgba(184, 107, 76, 0.3);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

#searchLoading {
    display: none;
    text-align: center;
    padding: 3rem;
}

.search-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#searchNoResults {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

#searchNoResults p:first-child {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.search-no-results-hint {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.search-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.search-category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 25px;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.search-category-link:hover {
    background: var(--primary);
    color: white;
}

.search-category-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Search Page Responsive */
@media (max-width: 768px) {
    .search-page-header {
        padding: 100px 0 40px;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.875rem 1rem 0.875rem 2.75rem;
    }

    .search-result-link {
        padding: 1rem;
    }

    .search-result-title {
        font-size: 1.125rem;
    }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Hero */
.contact-hero {
    position: relative;
    padding: calc(70px + 64px) 0 64px;
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-warm) 100%);
}

.contact-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-hero-image img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-hero-content .section-label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-hero-content h1 {
    margin-bottom: 1.5rem;
}

.contact-hero-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Contact Info Section */
.contact-info-section {
    padding: 64px 0;
    background-color: var(--bg-card);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--bg-warm);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-info-card .btn {
    margin-top: 1rem;
}

/* Contact Form Styles */
.contact-form-wrapper {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.contact-form-wrapper h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #c44;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 107, 76, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-submit .btn {
    min-width: 200px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    opacity: 0.8;
}

.form-alternative {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.form-alternative p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-alternative a {
    font-weight: 600;
    color: var(--primary);
}

/* Online Badge */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.online-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
    .contact-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-hero-image {
        order: -1;
    }

    .contact-hero-image img {
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: calc(70px + 40px) 0 40px;
    }

    .form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit .btn {
        width: 100%;
    }

    .contact-hero-image img {
        max-width: 300px;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Hero */
.about-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-body) 100%);
    overflow: hidden;
}

.about-hero .container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-hero-content {
    max-width: 600px;
}

.about-hero-content h1 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-hero-content .hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Credentials */
.credentials-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.credential-badge span {
    color: var(--primary);
}

/* Background Section */
.background-section {
    padding: 80px 0;
    background-color: var(--bg-card);
}

.background-content {
    max-width: 800px;
    margin: 0 auto;
}

.background-content h2 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.background-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-warm);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: -5px;
}

.timeline-item h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Philosophy Section */
.philosophy-about {
    padding: 80px 0;
    background-color: var(--bg-body);
}

.philosophy-about .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.philosophy-about .section-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.philosophy-about h2 {
    font-family: var(--font-serif);
    color: var(--text-primary);
}

.philosophy-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.philosophy-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.philosophy-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}

.philosophy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.philosophy-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* How I Work Section */
.how-i-work {
    padding: 80px 0;
    background-color: var(--bg-card);
}

.how-i-work .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-i-work .section-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.how-i-work h2 {
    font-family: var(--font-serif);
    color: var(--text-primary);
}

.how-i-work .section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

.how-i-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.how-i-work-card {
    text-align: center;
    padding: 2rem;
}

.how-i-work-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.how-i-work-card h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.how-i-work-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Book Section */
.book-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-body) 100%);
}

.book-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}

.book-cover {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.book-content .section-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.book-content h2 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.book-content p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-serif);
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .about-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-hero-content {
        text-align: center;
        max-width: 100%;
    }

    .credentials-inline {
        justify-content: center;
    }

    .philosophy-grid,
    .how-i-work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover {
        max-width: 220px;
        margin: 0 auto;
    }

    .book-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 100px 0 60px;
    }

    .credentials-inline {
        flex-direction: column;
        align-items: center;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }
}

/* ============================================
   QUIZ PAGE STYLES
   ============================================ */

.quiz-grid-section {
    padding: 64px 0;
    background: var(--bg-body);
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.quiz-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.quiz-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #e8e4df 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.quiz-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.quiz-card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(184, 107, 76, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
}

.quiz-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.quiz-card h3 a {
    color: inherit;
    text-decoration: none;
}

.quiz-card h3 a:hover {
    color: var(--primary);
}

.quiz-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.quiz-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.quiz-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.quiz-card-link:hover {
    gap: 10px;
}

.quiz-card-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.disclaimer-section {
    padding: 48px 0;
    background: var(--bg-warm);
}

.disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.disclaimer-box h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.disclaimer-box p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .quiz-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   QUIZ COMPONENTS - Interactive Quiz Styling
   ============================================ */

/* CSS Variable Aliases for backwards compatibility */
:root {
    --color-primary: var(--primary);
    --color-primary-dark: #9A5840;
    --color-bg: var(--bg-body);
    --color-bg-alt: var(--bg-warm);
    --color-text: var(--text-primary);
    --color-text-light: var(--text-secondary);
    --color-text-muted: var(--text-muted);
    --color-border: var(--border-light);
    --color-secondary: var(--accent);
    --color-white: #ffffff;
    --color-accent: var(--bg-warm);
}

/* Quiz Wrapper */
.quiz-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-container {
    padding: 48px 0;
    background: var(--bg-body);
}

/* Quiz Start */
.quiz-start {
    text-align: center;
    padding: 24px 0;
}

/* Quiz Start Features Grid */
.quiz-start-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.quiz-start-feature {
    padding: 20px 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    text-align: center;
}

.quiz-start-feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1;
}

.quiz-start-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.quiz-start-feature p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Quiz Progress Bar */
.quiz-progress {
    margin-bottom: 32px;
}

.quiz-progress-bar {
    height: 8px;
    background: var(--bg-warm);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.quiz-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Quiz Questions */
.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
    animation: quizFadeIn 0.3s ease;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question h3,
.quiz-question-legend {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

@media (hover: hover) {
    .quiz-option:hover {
        border-color: var(--primary-light);
        background: var(--bg-warm);
    }
}

.quiz-option:active {
    transform: scale(0.98);
}

.quiz-option:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.quiz-option input {
    display: none;
}

.quiz-option-radio {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.quiz-option.selected .quiz-option-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.quiz-option.selected .quiz-option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.quiz-option-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.quiz-option.selected .quiz-option-text {
    font-weight: 500;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    gap: 12px;
}

.quiz-nav .btn {
    min-width: 120px;
}

/* Quiz Results */
.quiz-results {
    display: none;
    text-align: center;
}

.quiz-results.active {
    display: block;
    animation: quizFadeIn 0.5s ease;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.result-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.result-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.result-meter {
    max-width: 400px;
    margin: 0 auto 32px;
}

.result-meter-bar {
    height: 12px;
    background: var(--bg-warm);
    border-radius: 6px;
    overflow: hidden;
}

.result-meter-fill {
    height: 100%;
    transition: width 1s ease;
    border-radius: 6px;
}

.result-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.result-meter-labels span {
    flex: 1;
    min-width: 0;
}

.result-details {
    text-align: left;
    background: var(--bg-warm);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.result-details h4 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.result-details ul {
    margin: 0;
    padding-left: 20px;
}

.result-details li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Recommended Articles */
.recommended-articles {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.recommended-article {
    display: block;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.recommended-article:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.recommended-article:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.recommended-article-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recommended-article-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Warning Box */
.warning-box {
    background: #FFF8E1;
    border: 1px solid #FFB300;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 24px 0;
}

.warning-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #5D4037;
    line-height: 1.5;
}

/* Medical Disclaimer */
.medical-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(122, 158, 142, 0.1);
    border: 1px solid rgba(122, 158, 142, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.medical-disclaimer-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.medical-disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quiz Consent */
.quiz-consent {
    margin-bottom: 24px;
}

.quiz-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.quiz-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.quiz-consent span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Emphasis for High-Risk Results */
.article-cta.cta-emphasis {
    background: linear-gradient(135deg, var(--primary) 0%, #9A5840 100%);
    border: none;
}

.article-cta.cta-emphasis h4,
.article-cta.cta-emphasis p {
    color: white;
}

.article-cta.cta-emphasis .btn-primary {
    background: white;
    color: var(--primary);
}

.article-cta.cta-emphasis .btn-primary:hover {
    background: var(--bg-warm);
}

/* Quiz Mobile Responsive */
@media (max-width: 768px) {
    .quiz-start-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quiz-start-feature {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px;
    }

    .quiz-start-feature-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .quiz-start-feature h4 {
        margin-bottom: 2px;
    }

    .quiz-option {
        padding: 16px;
    }

    .quiz-option-radio {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .result-score {
        font-size: 2rem;
    }

    .result-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quiz-nav {
        flex-direction: column-reverse;
    }

    .quiz-nav .btn {
        width: 100%;
        min-width: unset;
    }

    .result-meter-labels {
        font-size: 0.6rem;
    }

    .quiz-question h3,
    .quiz-question-legend {
        font-size: 1.1rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .quiz-option,
    .quiz-progress-fill,
    .quiz-question,
    .quiz-results,
    .result-meter-fill,
    .recommended-article {
        transition: none;
        animation: none;
    }
}

/* ============================================
   TOOLS PAGE STYLES
   ============================================ */

.tools-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 24px;
}

.category-section {
    margin-bottom: 48px;
}

.category-header {
    margin-bottom: 24px;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform var(--transition-fast), border-color var(--transition-normal), box-shadow var(--transition-normal);
    text-decoration: none;
    display: block;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(184, 107, 76, 0.15);
    transform: translateY(-2px);
}

.tool-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tool-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tool-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tool-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.intro-box {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
}

.intro-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Tool Content (Individual Tools) */
.tool-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px;
}

.tool-content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tool-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   BREATHING EXERCISE WIDGET
   ============================================ */
.breathing-container {
    margin: 48px 0;
    text-align: center;
}

.breathing-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 4s ease-in-out;
    box-shadow: 0 10px 40px rgba(184, 107, 76, 0.3);
}

.breathing-circle.inhale,
.breathing-circle.hold {
    transform: scale(1.3);
}

.breathing-circle.exhale {
    transform: scale(1);
}

.breathing-text {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
}

.breathing-counter {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--primary);
    margin: 24px 0;
}

.breathing-instruction {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.breathing-phase {
    font-size: 1rem;
    color: var(--text-secondary);
}

.cycle-counter {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ============================================
   QUIZ/TEST COMPONENTS
   ============================================ */
.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.question-card.answered {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.question-number {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.question-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.option:hover {
    border-color: var(--primary);
    background: var(--bg-warm);
}

.option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.option input[type="radio"] {
    display: none;
}

.option-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* Progress Bar (Tools) */
.progress-bar {
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    height: 8px;
    margin: 32px 0;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.progress-header {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.progress-header .progress-bar {
    background: var(--bg-card);
    height: 12px;
    margin: 12px 0;
}

.progress-header .progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary-light)));
}

.progress-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ============================================
   RESULT CARD
   ============================================ */
.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.result-card.visible {
    display: block;
}

.result-score {
    text-align: center;
    margin-bottom: 24px;
}

.score-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.result-level {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1.2rem;
}

.level-minimal,
.level-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.level-mild,
.level-moderate {
    background: #fff3e0;
    color: #e65100;
}

.level-moderately-severe {
    background: #ffccbc;
    color: #d84315;
}

.level-severe,
.level-high {
    background: #ffcdd2;
    color: #c62828;
}

.result-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.result-actions {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 24px;
}

.result-actions h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.result-actions ul {
    margin: 16px 0 0 0;
    padding-left: 20px;
}

.result-actions li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.result-actions a {
    color: var(--primary);
    text-decoration: underline;
}

.result-actions a:hover {
    color: var(--primary-hover);
}

/* Crisis Box */
.crisis-box {
    background: #ffebee;
    border: 2px solid #c62828;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
}

.crisis-box h3 {
    color: #c62828;
    margin-top: 0;
    margin-bottom: 12px;
}

.crisis-box p {
    margin-bottom: 16px;
}

.crisis-box ul {
    margin: 0;
    padding-left: 20px;
}

.crisis-box li {
    margin-bottom: 8px;
}

/* Stress Meter */
.stress-meter {
    margin: 24px 0;
}

.meter-bar {
    background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336);
    height: 20px;
    border-radius: 10px;
    position: relative;
}

.meter-marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 36px;
    background: var(--text-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   CHECKLIST COMPONENTS
   ============================================ */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checklist-item:hover {
    border-color: var(--primary);
}

.checklist-item.checked {
    background: #f1f8e9;
    border-color: #4caf50;
}

.checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.checklist-item.checked .checkbox {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.checkbox-icon {
    display: none;
}

.checklist-item.checked .checkbox-icon {
    display: block;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   SETTINGS PANEL
   ============================================ */
.settings {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.settings h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 1rem;
    color: var(--text-primary);
}

.setting-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.setting-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.setting-btn:active {
    transform: scale(0.95);
}

.setting-num {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
}

/* ============================================
   TOOL BUTTONS
   ============================================ */
.start-btn {
    padding: 16px 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(184, 107, 76, 0.25);
}

.start-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 107, 76, 0.35);
}

.start-btn:active {
    transform: translateY(0);
}

.stop-btn,
.reset-btn,
.retake-btn {
    padding: 12px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.stop-btn:hover,
.reset-btn:hover,
.retake-btn:hover {
    background: var(--primary-subtle);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 32px;
    transition: all var(--transition-fast);
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.controls {
    margin: 32px 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tool Disclaimer */
.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.disclaimer.green {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.tool-info-box {
    background: #e3f2fd;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.tool-info-box h3 {
    margin-top: 0;
    color: #1565c0;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.tool-info-box p {
    margin-bottom: 12px;
}

.tool-info-box p:last-child {
    margin-bottom: 0;
}

.tool-info-box ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.tool-info-box li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Save Note */
.save-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Tool Focus States */
.tool-card:focus-visible,
.option:focus-visible,
.checklist-item:focus-visible,
.setting-btn:focus-visible,
.start-btn:focus-visible,
.stop-btn:focus-visible,
.submit-btn:focus-visible,
.retake-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Tool Mobile Optimizations */
@media (max-width: 600px) {
    .tool-content {
        padding: 32px 16px;
    }

    .breathing-circle {
        width: 220px;
        height: 220px;
    }

    .breathing-text {
        font-size: 1.4rem;
    }

    .breathing-counter {
        font-size: 3rem;
    }

    .question-card {
        padding: 20px 16px;
    }

    .result-card {
        padding: 24px 20px;
    }

    .score-number {
        font-size: 3rem;
    }

    .checklist-item {
        padding: 14px 12px;
        gap: 12px;
    }

    .settings {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .breathing-circle {
        width: 200px;
        height: 200px;
    }

    .option {
        padding: 16px;
        min-height: 48px;
    }

    .setting-row {
        flex-direction: column;
        align-items: stretch;
    }

    .setting-value {
        justify-content: center;
        margin-top: 8px;
    }

    .score-number {
        font-size: 2.5rem;
    }

    .start-btn,
    .stop-btn {
        width: 100%;
        padding: 16px;
    }

    .controls {
        flex-direction: column;
    }
}

/* Reduced motion for tools */
@media (prefers-reduced-motion: reduce) {
    .breathing-circle {
        transition: none;
    }

    .progress-fill {
        transition: none;
    }

    .meter-marker {
        transition: none;
    }
}

/* ============================================
   MEDITATION WIDGET
   ============================================ */
.meditation-container {
    text-align: center;
    margin: 48px 0;
}

.meditation-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    position: relative;
}

.meditation-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    opacity: 0.8;
    animation: meditation-pulse 4s ease-in-out infinite;
}

@keyframes meditation-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.meditation-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.meditation-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    min-height: 2em;
    transition: opacity 0.5s;
}

.meditation-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 1.5em;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    transition: background 0.3s;
}

.progress-dot.active {
    background: var(--primary);
}

.progress-dot.completed {
    background: #4caf50;
}

.duration-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.duration-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-light);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.duration-btn:hover {
    border-color: var(--primary);
}

.duration-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.primary-btn {
    padding: 16px 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.primary-btn:hover {
    background: var(--primary-hover);
}

.secondary-btn {
    padding: 16px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.secondary-btn:hover {
    background: var(--bg-warm);
}

.info-section {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 48px 0;
}

.info-section h3 {
    margin-top: 0;
    font-family: var(--font-serif);
    font-size: 1.3rem;
}

.info-section ul {
    padding-left: 20px;
    margin: 16px 0 0 0;
}

.info-section li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Tips grid for tool pages (with icons) - uses .tip-icon, .tip-title, .tip-text */
.info-section .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-section .tip-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tip-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tip-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Utility class */
.hidden {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .meditation-circle {
        animation: none;
    }
}

/* ============================================
   EXERCISE STEPS (Muscle Relaxation)
   ============================================ */
.exercise-container {
    margin: 32px 0;
}

.step-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.step-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(184, 107, 76, 0.15);
}

.step-card.completed {
    opacity: 0.6;
    border-color: #4caf50;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-warm);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-card.active .step-number {
    background: var(--primary);
    color: white;
}

.step-card.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-card.completed .step-number::after {
    content: '\2713';
}

.step-card.completed .step-number span {
    display: none;
}

.step-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.step-card.active .step-status {
    color: var(--primary);
    font-weight: 600;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-instruction {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.step-phases {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.phase-indicator {
    flex: 1;
    padding: 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.phase-indicator.active {
    background: var(--primary);
    color: white;
}

.timer-display {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary);
    margin: 24px 0;
}

.completion-screen {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.completion-screen.visible {
    display: block;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.completion-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.completion-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============================================
   DATE SELECTOR & STREAK TRACKING
   ============================================ */
.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.date-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.date-btn:hover {
    background: var(--bg-warm);
}

.current-date {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    min-width: 180px;
    text-align: center;
}

.progress-circle-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    color: white;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 8;
}

.progress-circle .bg {
    stroke: rgba(255,255,255,0.3);
}

.progress-circle .fill {
    stroke: white;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s;
}

.progress-percent {
    font-family: var(--font-serif);
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.progress-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.streak-box {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.streak-icon {
    font-size: 2.5rem;
}

.streak-content {
    flex: 1;
}

.streak-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
}

.streak-label {
    color: var(--text-secondary);
}

.weekly-view {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 24px 0;
}

.day-indicator {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.day-indicator.completed {
    background: #e8f5e9;
    border-color: #4caf50;
}

.day-indicator.today {
    border-color: var(--primary);
    border-width: 2px;
}

.day-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.day-status {
    font-size: 1.2rem;
}

.item-time {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 6px;
}

/* ============================================
   BOOKING PAGE STYLES
   ============================================ */

/* Booking Hero */
.booking-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-body) 100%);
    color: var(--text-primary);
    padding: 120px 0 70px;
    text-align: center;
}

.booking-hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.booking-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Booking Notice Box */
.booking-notice {
    background: rgba(184, 107, 76, 0.1);
    border: 1px solid rgba(184, 107, 76, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Booking Options Section */
.booking-options {
    padding: 60px 0;
    background: var(--bg-body);
}

/* Booking Grid */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.booking-grid.three-columns {
    max-width: 1200px;
}

/* Booking Card */
.booking-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-light);
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.booking-card.featured {
    border: 2px solid var(--primary);
}

.booking-card.featured::before {
    content: 'Rekommenderat för nya';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.booking-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.booking-card.info-only {
    background: var(--bg-warm);
}

/* Booking Card Icon */
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #c77a5a 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.booking-card.group-card .card-icon {
    background: linear-gradient(135deg, #C4A35A 0%, #d4b66a 100%);
}

/* Booking Price */
.booking-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0;
}

.booking-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.booking-price.free {
    color: var(--primary);
}

/* Booking Duration */
.booking-duration {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Booking Note */
.booking-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

/* Booking Features List */
.booking-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.booking-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.booking-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Booking Button */
.booking-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.booking-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 107, 76, 0.3);
}

.booking-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.booking-btn.secondary {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.booking-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Guarantee Section */
.guarantee-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-body) 100%);
}

.guarantee-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.guarantee-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, #c77a5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(184, 107, 76, 0.3);
}

.guarantee-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.guarantee-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.guarantee-text strong {
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Trust Section */
.trust-section {
    padding: 40px 0;
    background: var(--primary);
    color: white;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item .number {
    font-size: 2.5rem;
    font-weight: 700;
}

.trust-item .label {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background: var(--bg-body);
}

.testimonials-section h2 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.testimonials-section .section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-style: italic;
}

.testimonial-card cite {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 500;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Calendar Section */
.calendar-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.calendar-section h2 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.calendar-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cal-embed-container {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 700px;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* What to Expect Section */
.expect-section {
    padding: 60px 0;
    background: var(--bg-body);
}

.expect-section h2 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.expect-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}

.expect-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.expect-card .step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.expect-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.expect-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Section (Booking Page) */
.faq-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.faq-section h2 {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Booking Page Mobile Responsive */
@media (max-width: 768px) {
    .booking-hero {
        padding: 100px 0 50px;
    }

    .booking-hero h1 {
        font-size: 2rem;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .booking-card {
        padding: 2rem;
    }

    .booking-card.featured::before {
        font-size: 0.7rem;
        padding: 3px 12px;
    }

    .guarantee-section {
        padding: 60px 0;
    }

    .guarantee-section h2 {
        font-size: 1.75rem;
    }

    .trust-grid {
        gap: 2rem;
    }

    .trust-item .number {
        font-size: 2rem;
    }

    .expect-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

/* Smooth transition for theme switching */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode CSS Variables */
[data-theme="dark"] {
    /* Colors - Dark palette */
    --primary: #D4907A;
    --primary-hover: #E5A08A;
    --primary-light: #B86B4C;
    --primary-subtle: rgba(212, 144, 122, 0.12);
    --accent: #8FBAA8;
    --accent-hover: #A0CBBA;

    /* Backgrounds */
    --bg-body: #1A1917;
    --bg-warm: #242220;
    --bg-card: #2D2A26;
    --bg-dark: #0F0E0D;

    /* Text */
    --text-primary: #F5F2EE;
    --text-secondary: #C4BFB8;
    --text-muted: #8A847D;

    /* Borders & Shadows */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* Navigation - Topbar */
[data-theme="dark"] .topbar {
    background: rgba(26, 25, 23, 0.95);
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .topbar-nav .topbar-cta {
    box-shadow: 0 3px 10px rgba(212, 144, 122, 0.25);
}

[data-theme="dark"] .topbar-nav .topbar-cta:hover {
    box-shadow: 0 6px 16px rgba(212, 144, 122, 0.35);
}

[data-theme="dark"] .topbar-nav .topbar-crisis-btn {
    color: #E87070;
    background: rgba(232, 112, 112, 0.12);
}

[data-theme="dark"] .topbar-nav .topbar-crisis-btn:hover {
    background: rgba(232, 112, 112, 0.2);
    color: #F08080;
}

/* Mobile Navigation */
[data-theme="dark"] .mobile-nav {
    background: var(--bg-card);
}

/* Page Header */
[data-theme="dark"] .page-header {
    background: var(--bg-warm);
}

/* Cards */
[data-theme="dark"] .card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .category-article-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .sidebar-profile,
[data-theme="dark"] .sidebar-book,
[data-theme="dark"] .info-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .technique-card,
[data-theme="dark"] .cause-item,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .quiz-card,
[data-theme="dark"] .exercise-card,
[data-theme="dark"] .question-card,
[data-theme="dark"] .checklist-item {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .article-card:hover,
[data-theme="dark"] .category-article-card:hover,
[data-theme="dark"] .tool-card:hover,
[data-theme="dark"] .exercise-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Key facts box */
[data-theme="dark"] .key-facts {
    background: rgba(212, 144, 122, 0.1);
    border-color: rgba(212, 144, 122, 0.3);
}

/* Info box */
[data-theme="dark"] .info-box,
[data-theme="dark"] .intro-box {
    background: var(--bg-warm);
}

/* Blockquote */
[data-theme="dark"] .article-content blockquote,
[data-theme="dark"] .article-quote {
    background: var(--bg-warm);
    border-left-color: var(--primary);
}

/* Evidence and Warning boxes */
[data-theme="dark"] .evidence-box {
    background: linear-gradient(135deg, rgba(143, 186, 168, 0.15) 0%, rgba(143, 186, 168, 0.1) 100%);
    border-color: rgba(143, 186, 168, 0.3);
}

[data-theme="dark"] .warning-box,
[data-theme="dark"] .medical-disclaimer {
    background: linear-gradient(135deg, rgba(212, 144, 122, 0.15) 0%, rgba(212, 144, 122, 0.1) 100%);
    border-color: rgba(212, 144, 122, 0.3);
}

/* Fact-checked badge */
[data-theme="dark"] .fact-checked {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-card) 100%);
    border-color: var(--border-medium);
}

/* Buttons */
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .secondary-btn {
    background: var(--bg-warm);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .btn-outline,
[data-theme="dark"] .stop-btn,
[data-theme="dark"] .reset-btn,
[data-theme="dark"] .retake-btn {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary);
    color: var(--bg-body);
}

/* Search */
[data-theme="dark"] .portal-search {
    background: var(--bg-card);
    border-color: var(--border-medium);
}

[data-theme="dark"] .portal-search:hover {
    background: var(--bg-warm);
}

[data-theme="dark"] .portal-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 144, 122, 0.15);
}

[data-theme="dark"] .portal-search input,
[data-theme="dark"] .search-input {
    color: var(--text-primary);
    background: transparent;
}

[data-theme="dark"] .portal-search input::placeholder,
[data-theme="dark"] .search-input::placeholder {
    color: var(--text-muted);
}

/* Search Modal */
[data-theme="dark"] .search-modal {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .search-modal-content {
    background: var(--bg-card);
}

[data-theme="dark"] .search-modal-header {
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .search-modal-input {
    background: var(--bg-warm);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

[data-theme="dark"] .search-modal-close {
    background: var(--bg-warm);
    color: var(--text-primary);
}

[data-theme="dark"] .search-modal-footer {
    border-top-color: var(--border-light);
}

/* Quick Navigation */
[data-theme="dark"] .quick-nav {
    background: var(--bg-body);
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .quick-nav-item {
    background: var(--bg-warm);
}

[data-theme="dark"] .quick-nav-item:hover {
    background: var(--primary-subtle);
}

/* Landing Hero */
[data-theme="dark"] .landing-page .landing-hero,
[data-theme="dark"] .landing-page .landing-hero-warm {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-card) 100%);
}

/* Category Hero */
[data-theme="dark"] .category-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-card) 100%);
}

/* Portal Hero (Startsidan) */
[data-theme="dark"] .portal-hero--fade .portal-hero-fade {
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent 25%,
        rgba(15, 14, 13, 0.5) 40%,
        rgba(15, 14, 13, 0.8) 55%,
        rgba(15, 14, 13, 0.95) 70%
    );
}

[data-theme="dark"] .portal-hero--fade .portal-hero-content h1 {
    color: #f5f5f5;
}

[data-theme="dark"] .portal-hero--fade .portal-hero-subtitle {
    color: #d0d0d0;
}

[data-theme="dark"] .portal-hero--fade .portal-search {
    background: rgba(45, 42, 38, 0.95);
    border-color: var(--border-light);
}

[data-theme="dark"] .portal-hero--fade .portal-search input {
    color: #f5f5f5;
}

[data-theme="dark"] .portal-hero--fade .quick-paths-label {
    color: #b0b0b0;
}

[data-theme="dark"] .portal-hero--fade .quick-path {
    background: rgba(45, 42, 38, 0.8);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .portal-hero--fade .quick-path:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    [data-theme="dark"] .portal-hero--fade .portal-hero-fade {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 40%,
            rgba(15, 14, 13, 0.7) 60%,
            rgba(15, 14, 13, 0.95) 80%,
            rgba(15, 14, 13, 1) 100%
        );
    }
}

/* Crisis Banner */
[data-theme="dark"] .crisis-banner {
    background: var(--bg-warm);
    border-bottom-color: var(--border-light);
}

/* Footer */
[data-theme="dark"] .site-footer {
    background: var(--bg-dark);
    border-top-color: var(--border-light);
}

[data-theme="dark"] .footer-crisis {
    background: rgba(30, 30, 30, 0.95);
    border-color: #EF5350;
}

[data-theme="dark"] .footer-crisis p {
    color: #f5f5f5;
}

[data-theme="dark"] .footer-crisis a {
    color: #EF5350;
}

[data-theme="dark"] .footer-crisis a:hover {
    color: #ff7961;
}

[data-theme="dark"] .footer-disclaimer {
    border-top-color: var(--border-light);
}

/* Cookie Banner */
[data-theme="dark"] .cookie-banner {
    background: var(--bg-card);
    border-top-color: var(--border-light);
}

/* Table of Contents */
[data-theme="dark"] .toc {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .toc-link:hover {
    background: var(--bg-warm);
}

[data-theme="dark"] .toc-link.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

/* Related Articles */
[data-theme="dark"] .related-articles,
[data-theme="dark"] .related-section {
    background: var(--bg-warm);
}

/* Sources section */
[data-theme="dark"] .sources {
    border-top-color: var(--border-light);
}

/* Form elements */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-warm);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 144, 122, 0.15);
}

/* Quiz options */
[data-theme="dark"] .option {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .option:hover {
    background: var(--bg-warm);
    border-color: var(--primary);
}

[data-theme="dark"] .option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-body);
}

/* Result card */
[data-theme="dark"] .result-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .result-actions {
    background: var(--bg-warm);
}

/* Progress bar */
[data-theme="dark"] .progress-bar,
[data-theme="dark"] .progress-header {
    background: var(--bg-warm);
}

/* Settings panel */
[data-theme="dark"] .settings {
    background: var(--bg-warm);
}

[data-theme="dark"] .setting-btn {
    background: var(--bg-card);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

[data-theme="dark"] .setting-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Breathing widget */
[data-theme="dark"] .breathing-circle {
    box-shadow: 0 10px 40px rgba(212, 144, 122, 0.25);
}

/* Checklist */
[data-theme="dark"] .checklist-item.checked {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

/* Disclaimer */
[data-theme="dark"] .disclaimer {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: #ffc107;
}

[data-theme="dark"] .disclaimer.green {
    background: rgba(76, 175, 80, 0.15);
    border-left-color: #4caf50;
}

/* Tool info box */
[data-theme="dark"] .tool-info-box {
    background: rgba(25, 118, 210, 0.15);
}

/* Booking page */
[data-theme="dark"] .booking-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-body) 100%);
}

[data-theme="dark"] .booking-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .booking-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .booking-card.featured {
    border-color: var(--primary);
}

/* Contact page */
[data-theme="dark"] .contact-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-card) 100%);
}

[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-wrapper {
    background: var(--bg-card);
}

/* About page */
[data-theme="dark"] .about-hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-card) 100%);
}

[data-theme="dark"] .timeline-item {
    background: var(--bg-card);
    border-color: var(--border-light);
}

/* Selection highlighting */
[data-theme="dark"] ::selection {
    background: rgba(212, 144, 122, 0.3);
    color: var(--text-primary);
}

/* Scrollbar styling for dark mode */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-body);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus states */
[data-theme="dark"] :focus-visible {
    outline-color: var(--primary);
}

/* Images - subtle filter for better integration */
[data-theme="dark"] img:not(.no-dark-filter) {
    filter: brightness(0.92) contrast(1.02);
}

/* Skip link */
[data-theme="dark"] .skip-link {
    background: var(--primary);
    color: var(--bg-body);
}

/* Accessibility Panel */
[data-theme="dark"] .accessibility-panel {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .dark-mode-option {
    background: var(--bg-warm);
    color: var(--text-secondary);
    border-color: var(--border-light);
}

[data-theme="dark"] .dark-mode-option.active {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
}

/* ============================================
   TREATMENT RESPONSE WARNING
   ============================================ */
.warning-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF4E8 100%);
    border: 1px solid #E8D5C4;
    border-left: 4px solid #D97706;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
}

[data-theme="dark"] .warning-section {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: rgba(217, 119, 6, 0.3);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.warning-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.warning-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #92400E;
    margin: 0;
}

[data-theme="dark"] .warning-section h2 {
    color: #FBBF24;
}

.warning-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.warning-intro strong {
    color: #B45309;
    font-weight: 600;
}

[data-theme="dark"] .warning-intro strong {
    color: #FCD34D;
}

.warning-section h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.warning-factors ul,
.warning-section ul:not(.referral-criteria) {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.warning-factors li,
.warning-section ul:not(.referral-criteria) li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.warning-factors li::before,
.warning-section ul:not(.referral-criteria) li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #D97706;
    font-weight: bold;
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.alternative-card {
    background: white;
    border: 1px solid #E8D5C4;
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .alternative-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.alternative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alternative-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.alternative-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.warning-referral {
    background: white;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

[data-theme="dark"] .warning-referral {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.warning-referral h3 {
    color: #DC2626;
    margin-top: 0;
}

[data-theme="dark"] .warning-referral h3 {
    color: #FCA5A5;
}

.referral-criteria {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.referral-criteria li {
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.referral-criteria li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #DC2626;
}

.referral-cta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #FCA5A5;
}

.referral-cta strong {
    color: #DC2626;
}

[data-theme="dark"] .referral-cta strong {
    color: #FCA5A5;
}

/* ============================================
   DIFFERENTIAL DIAGNOSIS
   ============================================ */
.differential-section {
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
}

.differential-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.differential-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.differential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.differential-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
}

.differential-card:hover {
    box-shadow: var(--shadow-md);
}

.differential-card[data-condition="somatisk"] {
    border-top: 3px solid #3B82F6;
}

.differential-card[data-condition="psykisk"] {
    border-top: 3px solid #8B5CF6;
}

.differential-card[data-condition="extern"] {
    border-top: 3px solid #10B981;
}

.differential-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.differential-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.differential-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.differential-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.differential-card li:last-child {
    border-bottom: none;
}

.differential-card li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.differential-action {
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.differential-action strong {
    color: #2563EB;
}

[data-theme="dark"] .differential-action {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .differential-action strong {
    color: #60A5FA;
}

.differential-cta {
    background: var(--bg-card);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
}

.differential-cta p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.differential-cta strong {
    color: var(--primary);
}

/* ============================================
   STAT TOOLTIP (Contextual Statistics)
   ============================================ */
.stat-wrapper {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.stat-value {
    font-weight: 600;
    color: var(--primary);
}

.stat-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: super;
    position: relative;
    top: -2px;
}

.stat-info-btn:hover,
.stat-info-btn[aria-expanded="true"] {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.stat-info-btn::before {
    content: "i";
}

.stat-info-icon {
    display: none;
}

.stat-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.stat-tooltip.active {
    opacity: 1;
    visibility: visible;
}

.stat-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bg-card);
}

.stat-tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: var(--border-light);
}

.stat-tooltip-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.stat-tooltip-data {
    margin: 0;
    font-size: 0.8rem;
}

.stat-tooltip-data dt {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    margin-top: 8px;
}

.stat-tooltip-data dt:first-child {
    margin-top: 0;
}

.stat-tooltip-data dd {
    margin: 2px 0 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stat-tooltip-link {
    display: block;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}

.stat-tooltip-link:hover {
    text-decoration: underline;
}

/* Mobile adjustments for stat tooltip */
@media (max-width: 640px) {
    .stat-tooltip {
        width: 280px;
        left: auto;
        right: -20px;
        transform: none;
    }

    .stat-tooltip::after,
    .stat-tooltip::before {
        left: auto;
        right: 24px;
        transform: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        transition: none;
    }
}

/* Print styles */
@media print {
    .topbar,
    .sidebar,
    .mobile-nav,
    .quick-nav,
    .related-section,
    .site-footer {
        display: none !important;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .main-content {
        max-width: 100% !important;
    }

    .landing-hero {
        padding: 20px 0 !important;
    }
}
