/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-scale: 1;
    --color-text-base: #333333;
    --color-bg-base: #ffffff;
    --color-surface-alt: #f5f5f5;
    --color-link-base: #2c5aa0;
    --color-link-hover: #1e3d6f;
    --color-link-visited: #1f3d63;
    --color-focus-outline: #2c5aa0;
}

html {
    scroll-behavior: smooth;
    font-size: calc(16px * var(--font-scale));
}

/* Font size variants */
html.font-small {
    --font-scale: 0.9;
}

html.font-medium {
    --font-scale: 1;
}

html.font-large {
    --font-scale: 1.15;
}

html.font-xlarge {
    --font-scale: 1.3;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--color-text-base);
    background-color: var(--color-bg-base);
    overflow-x: hidden;
}

a {
    color: var(--color-link-base);
}

a:visited {
    color: var(--color-link-visited);
}

a:hover,
a:active {
    color: var(--color-link-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    min-height: 4.375rem;
    height: auto;
}

.nav-logo {
    flex: 1 1 320px;
    min-width: 200px;
}

.nav-logo h1 {
    font-size: 1.55rem;
    color: #2c5aa0;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Accessibility Controls */
.accessibility-controls {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.font-size-control-group,
.contrast-control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.font-size-control-group {
    padding-right: 0.75rem;
    border-right: 1px solid #e0e0e0;
}

.font-size-controls {
    display: flex;
    gap: 0.25rem;
}

.contrast-control {
    display: flex;
}

.a11y-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.1;
    white-space: nowrap;
}

.font-size-btn,
.high-contrast-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    color: #333;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 4px;
}

.font-size-btn {
    font-size: 0.85rem;
    min-width: 2.5rem;
}

.font-size-btn[data-size="medium"] {
    font-size: 0.9rem;
}

.font-size-btn[data-size="large"] {
    font-size: 1.05rem;
}

.font-size-btn[data-size="xlarge"] {
    font-size: 1.2rem;
}

.font-size-btn:hover,
.high-contrast-btn:hover {
    background: #f5f5f5;
    border-color: #2c5aa0;
}

.font-size-btn.active,
.high-contrast-btn.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.high-contrast-btn {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
}

/* Main content */
main {
    margin-top: 4.375rem;
}

/* Hero section */
.hero {
    background: linear-gradient(to bottom, #bbdefb 0%, #e1f5fe 40%, #f8f9fa 100%);
    padding: 4rem 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-banner {
    margin-bottom: 3rem;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0 0 15px 15px;
}

/* On mobile, hide the decorative banner entirely to avoid awkward cropping */
@media (max-width: 768px) {
    .hero-banner {
        display: none;
    }

    .banner-image {
        display: none;
    }
}

.hero-text h1 {
    background: linear-gradient(135deg, #2c5aa0, #4a7bc8, #2c5aa0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 2.8rem;
    animation: subtleShimmer 4s ease-in-out infinite;
    position: relative;
    text-align: left;
    line-height: 1.2;
}

.toolkit-title {
    background: linear-gradient(135deg, #2c5aa0, #4a7bc8, #2c5aa0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
    animation: subtleShimmer 4s ease-in-out infinite;
}

@keyframes subtleShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 2rem;
}

.toolkit-highlight {
    color: #2c5aa0;
    font-weight: 700;
    position: relative;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(30, 61, 111, 0.1));
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
    text-shadow: 0 1px 2px rgba(44, 90, 160, 0.1);
}

.hero-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* widen sidebar slightly */
    gap: 3rem;
    margin-bottom: 2rem;
    min-width: 0;
}

.hero-main > * {
    min-width: 0;
}

.intro-content {
    margin-bottom: 2rem;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 6px solid #2c5aa0;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(44, 90, 160, 0.15),
        0 4px 12px rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(44, 90, 160, 0.2),
        0 6px 15px rgba(44, 90, 160, 0.15);
}

.highlight-box:hover::before {
    left: 100%;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #1565c0;
    font-weight: 500;
    line-height: 1.6;
}

/* Document hover card (PDF tile) */
.doc-card {
    display: block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-card img {
    width: 100%;
    height: auto;
    display: block;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.doc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44,90,160,0.0) 20%, rgba(44,90,160,0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.doc-card:hover .doc-overlay { opacity: 1; }

.doc-overlay-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    margin: 1.2rem;
    border-radius: 999px;
    background: rgba(30, 61, 111, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.doc-overlay-content i { font-size: 1.2rem; }

/* Compact document card variant for sidebar */
.doc-card--sm {
    aspect-ratio: 16 / 9;
    max-height: 220px;
}
.doc-card--sm img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .doc-card--sm { max-height: none; }
}

/* Horizontal document row (thumbnail + info) */
.doc-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.7rem 1.6rem;
    border-radius: 12px;
    border: 1px solid rgba(44, 90, 160, 0.12);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.doc-thumb { display: block; flex: 0 0 132px; border-radius: 8px; overflow: hidden; }
.doc-thumb img { width: 100%; height: auto; display: block; }
.doc-thumb { position: relative; }
.thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(44,90,160,0.0) 20%, rgba(44,90,160,0.65) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.doc-thumb:hover .thumb-overlay { opacity: 1; }
.thumb-overlay-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30,61,111,0.95);
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.thumb-overlay-pill i { font-size: 1rem; }

.doc-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.2rem; }
.doc-title { font-size: 1.25rem; line-height: 1.12; margin: 0; color: #2c5aa0; font-weight: 700; letter-spacing: -0.01em; }
.doc-subtitle { font-size: 0.95rem; color: #495057; margin: 0; }
.doc-caption { font-size: 0.95rem; color: #495057; margin: 0.1rem 0 0; line-height: 1.45; }
.doc-meta { font-size: 0.95rem; color: #6c757d; margin: 0; }
.doc-actions { margin-top: 0.25rem; }

/* Small button variant */
.btn.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; box-shadow: 0 2px 10px rgba(44, 90, 160, 0.15); }

.evidence-caveat {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.evidence-caveat-full {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    border-left: 6px solid #ff9800;
    box-shadow: 
        0 8px 25px rgba(255, 152, 0, 0.15),
        0 4px 12px rgba(255, 152, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evidence-caveat-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.evidence-caveat-full:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(255, 152, 0, 0.2),
        0 6px 15px rgba(255, 152, 0, 0.15);
}

.evidence-caveat-full:hover::before {
    left: 100%;
}

.evidence-caveat-full p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #e65100;
    font-weight: 500;
    line-height: 1.6;
}

.evidence-caveat-body {
    display: block;
    padding-right: 8.5rem;
    position: relative;
    z-index: 1;
}

.evidence-caveat-logo-block {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.evidence-caveat-logo {
    display: block;
    width: clamp(76px, 8vw, 104px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hero-specific tuning: make evidence panel more compact */
.hero .evidence-caveat-full {
    padding: 1.25rem;
    margin: 1rem 0;
}
.hero .evidence-caveat-full p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
    text-transform: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:visited {
    color: inherit;
}

.btn-primary:visited {
    color: white;
}

.btn-secondary:visited,
.btn-outline:visited {
    color: inherit;
}

.btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    border-color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3d6f, #163055);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #2c5aa0;
    border-color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

/* Children section button override to rich blue */
.children-section .children-btn.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: #ffffff;
    border-color: #1e3d6f;
    box-shadow: 0 4px 15px rgba(30, 93, 160, 0.3);
}

.children-section .children-btn.btn-primary:hover {
    background: linear-gradient(135deg, #1e3d6f, #162a4f);
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 93, 160, 0.4);
}

.btn-outline {
    background: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
    box-shadow: 0 2px 10px rgba(44, 90, 160, 0.1);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Hero CTA buttons: smaller, left-aligned, tighter spacing */
.hero .cta-buttons {
    margin-top: 1rem;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hero .cta-buttons .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    box-shadow: 0 3px 12px rgba(44, 90, 160, 0.18);
}
.hero .cta-buttons .btn i {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .hero .cta-buttons {
        justify-content: flex-start;
    }
}

/* Sections */
section {
    padding: 4rem 0;
}

.videos-section {
    background: linear-gradient(180deg, #f9e2c2 0%, #fff0dd 100%);
    border-top: 1px solid #f1c58e;
    border-bottom: 1px solid #f6dcc0;
    padding-top: 2rem; /* tighter gap from hero */
}

/* ARUK Orange Buttons */
.btn-aruk,
.btn-aruk:visited,
.btn-aruk:link {
    background: white !important;
    color: #FF6600 !important;
    border: 2px solid white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.btn-aruk:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #CC5200 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.95);
}

/* Reduce space below hero to tighten transition to videos */
.hero { padding-bottom: 2.25rem; }

.video-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
    margin-top: 2rem;
    align-items: stretch;
}

.video-card {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-link {
    background-color: #2c5aa0;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.video-link:hover {
    background-color: #1e3d6f;
}

.campaign-links {
    background: linear-gradient(135deg, #FF6600, #FF8533);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.campaign-links:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 102, 0, 0.4);
}

.campaign-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    height: 72px;
    width: auto;
    opacity: 0.95;
}

.campaign-links h3 {
    color: white;
    margin-top: 0;
    padding-top: 0.5rem;
}

.campaign-links p {
    color: rgba(255, 255, 255, 0.9);
}

.campaign-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Risk Factor Text Box */
.risk-factor-text {
    background: linear-gradient(135deg, #FF6600, #FF8533);
    padding: 1.75rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-height: 100%;
    position: relative;
}

.risk-factor-text h2 {
    color: white;
    margin: 0 0 0.25rem;
    line-height: 1.25;
    max-width: calc(100% - 4rem);
}

.risk-factor-text::after {
    content: "";
    position: absolute;
    top: -82px;
    right: 0.4rem;
    width: 96px;
    height: 96px;
    background: url("images/question.png") no-repeat center / contain;
    pointer-events: none;
}

.risk-factor-text p {
    color: white;
    margin: 0;
    line-height: 1.55;
}

/* Pledge Section */
.pledge-section {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 102, 0, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(255, 102, 0, 0.3);
}

.pledge-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.pledge-content h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.pledge-content h3 i {
    color: #FF6600;
    margin-right: 0.5rem;
}

.pledge-intro {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pledge-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pledge-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.pledge-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #FF6600;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.pledge-step-content h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pledge-step-content p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.pledge-example {
    color: #777 !important;
    font-size: 0.85rem !important;
}

.pledge-cta {
    text-align: center;
}

.btn-pledge {
    background: white !important;
    color: #FF6600 !important;
    border: 2px solid white;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-pledge:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #CC5200 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-pledge i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .pledge-section {
        padding: 1.5rem 1rem;
    }

    .pledge-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pledge-content h3 {
        font-size: 1.4rem;
    }
}

/* Brain Health Actions Section (Campaign + Pledge) */
.brain-health-actions-section {
    background: linear-gradient(180deg, #f9e2c2 0%, #fff0dd 100%);
    border-top: 1px solid #f1c58e;
    border-bottom: 1px solid #f6dcc0;
    padding: 3rem 0;
}

.brain-health-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.brain-health-grid-layout > * {
    display: flex;
    flex-direction: column;
}

.brain-health-grid-layout > :only-child {
    grid-column: 1 / -1;
}

/* Compact Pledge Styles */
.pledge-section-compact {
    background: rgba(255, 102, 0, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(255, 102, 0, 0.3);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pledge-section-compact h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.pledge-section-compact h3 i {
    color: #FF6600;
    margin-right: 0.5rem;
}

.pledge-intro-compact {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.pledge-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}

.pledge-steps-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pledge-step-compact {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

.pledge-number-compact {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #FF6600;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.pledge-cta-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .brain-health-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brain-health-actions-section {
        padding: 2rem 0;
    }

    .pledge-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pledge-cta-side {
        justify-content: flex-start;
    }
}

/* Risk factors section */
.risk-factors-section {
    background-color: white;
}

.section-intro {
    font-size: 1.1rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Left align the risk factors intro copy */
.risk-factors-section .section-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure intro wraps normally and doesn't overflow */
.risk-factors-section .section-intro { white-space: normal; overflow-wrap: break-word; }

/* Take Action Header Layout with Easy Read Panel */
.take-action-header {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.take-action-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.take-action-intro h2 {
    margin-bottom: 1rem;
}

.take-action-intro .section-intro {
    margin-bottom: 0;
    max-width: none;
}

.easy-read-panel {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 6px solid #2c5aa0;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow:
        0 8px 25px rgba(44, 90, 160, 0.15),
        0 4px 12px rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
    min-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.easy-read-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.easy-read-panel:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(44, 90, 160, 0.2),
        0 6px 15px rgba(44, 90, 160, 0.15);
}

.easy-read-panel:hover::before {
    left: 100%;
}

.easy-read-text {
    flex: 1 1 220px;
    min-width: 0;
}

.easy-read-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    color: #1565c0;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: break-word;
}

.easy-read-title i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.easy-read-desc {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0;
    color: #1565c0;
    font-weight: 400;
    overflow-wrap: break-word;
}

.btn-easy-read {
    background-color: #2c5aa0;
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
}

.btn-easy-read:visited {
    color: white;
    background-color: #2c5aa0;
}

.btn-easy-read:hover {
    background-color: #1e3a70;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.3);
    color: white;
}

html.font-xlarge .easy-read-panel {
    align-items: flex-start;
}

html.font-xlarge .btn-easy-read {
    width: 100%;
}

/* Responsive adjustments for Easy Read Panel */
@media (max-width: 992px) {
    .take-action-header {
        flex-direction: column;
    }

    .easy-read-panel {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .easy-read-title {
        white-space: normal;
    }

    .btn-easy-read {
        padding: 0.5rem 1rem;
        flex-shrink: 1;
        min-width: 0 !important;
    }
}

.brain-health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.brain-health-card {
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(44, 90, 160, 0.1),
        0 4px 16px rgba(44, 90, 160, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(44, 90, 160, 0.08);
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.brain-health-card:link,
.brain-health-card:visited {
    color: inherit;
    text-decoration: none;
}

.brain-health-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.brain-health-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(44, 90, 160, 0.2),
        0 8px 20px rgba(44, 90, 160, 0.1);
}

.brain-health-card:hover::before {
    left: 100%;
}

.brain-health-card:active {
    transform: translateY(-8px) scale(0.98);
}

.brain-health-card:focus-visible {
    outline: 3px solid rgba(44, 90, 160, 0.75);
    outline-offset: 4px;
}

.brain-health-card .card-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-left: auto;
    margin-right: auto;
}

.brain-health-card:hover .card-image {
    transform: rotate(3deg) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.brain-health-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.card-preview {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Color schemes for brain health cards */
.color-move {
    background: linear-gradient(145deg, #27AE60, #2ECC71);
    border: 2px solid #27AE60;
}

.color-move:hover {
    box-shadow: 
        0 20px 40px rgba(39, 174, 96, 0.3),
        0 8px 20px rgba(39, 174, 96, 0.15);
}

.color-mental {
    background: linear-gradient(145deg, #F39C12, #F1C40F);
    border: 2px solid #F39C12;
}

.color-mental:hover {
    box-shadow: 
        0 20px 40px rgba(243, 156, 18, 0.3),
        0 8px 20px rgba(243, 156, 18, 0.15);
}

.color-eat {
    background: linear-gradient(145deg, #E67E22, #FF8C42);
    border: 2px solid #E67E22;
}

.color-eat:hover {
    box-shadow: 
        0 20px 40px rgba(230, 126, 34, 0.3),
        0 8px 20px rgba(230, 126, 34, 0.15);
}

.color-connect {
    background: linear-gradient(145deg, #1ABC9C, #48C9B0);
    border: 2px solid #1ABC9C;
}

.color-connect:hover {
    box-shadow: 
        0 20px 40px rgba(26, 188, 156, 0.3),
        0 8px 20px rgba(26, 188, 156, 0.15);
}

.color-senses {
    background: linear-gradient(145deg, #3498DB, #5DADE2);
    border: 2px solid #3498DB;
}

.color-senses:hover {
    box-shadow: 
        0 20px 40px rgba(52, 152, 219, 0.3),
        0 8px 20px rgba(52, 152, 219, 0.15);
}

.color-health {
    background: linear-gradient(145deg, #E74C3C, #EC7063);
    border: 2px solid #E74C3C;
}

.color-health:hover {
    box-shadow: 
        0 20px 40px rgba(231, 76, 60, 0.3),
        0 8px 20px rgba(231, 76, 60, 0.15);
}

.color-sleep {
    background: linear-gradient(145deg, #8E44AD, #A569BD);
    border: 2px solid #8E44AD;
}

.color-sleep:hover {
    box-shadow: 
        0 20px 40px rgba(142, 68, 173, 0.3),
        0 8px 20px rgba(142, 68, 173, 0.15);
}

.color-protect {
    background: linear-gradient(145deg, #34495E, #5D6D7E);
    border: 2px solid #34495E;
}

.color-protect:hover {
    box-shadow: 
        0 20px 40px rgba(52, 73, 94, 0.3),
        0 8px 20px rgba(52, 73, 94, 0.15);
}

.color-quit {
    background: linear-gradient(145deg, #C0392B, #E74C3C);
    border: 2px solid #C0392B;
}

.color-quit:hover {
    box-shadow: 
        0 20px 40px rgba(192, 57, 43, 0.3),
        0 8px 20px rgba(192, 57, 43, 0.15);
}

/* Additional sections */
.children-section {
    /* Vertical gradient: deep blue → pale blue */
    background: linear-gradient(to bottom, #315ea8 0%, #3f78d2 45%, #e1f5fe 100%);
}

.children-section h2 {
    color: #ffffff;
}

.children-content {
    text-align: center;
}

.children-content > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.children-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.children-btn {
    margin: 0;
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.children-banner {
    margin-top: 1rem;
}

.children-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: none;
}

@media (max-width: 768px) {
    .children-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .children-btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
}

/* Dementia Diagnosis Banner */
.diagnosis-banner-section {
    padding: 2.5rem 0;
    background: linear-gradient(to bottom, #FF69B4, #FFE4E1);
}

.diagnosis-banner {
    background: linear-gradient(to bottom, #FFE4E1, #FFFFFF);
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 15px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.12);
}

.diagnosis-banner-left h2 {
    color: #ff69b4;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.diagnosis-banner-left p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 0.75rem;
}

.diagnosis-banner-left p:last-child {
    margin-bottom: 0;
}

.diagnosis-banner-right {
    display: flex;
    flex-direction: column;
}

.diagnosis-info-panel {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    height: 100%;
}

.diagnosis-panel-image {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.diagnosis-info-panel h3 {
    color: #ff69b4;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    text-align: center;
}

.diagnosis-panel-intro {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff69b4;
    margin-bottom: 0.75rem;
}

.diagnosis-info-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diagnosis-info-panel li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.diagnosis-info-panel li:last-child {
    margin-bottom: 0;
}

.diagnosis-info-panel i {
    color: #ff69b4;
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.diagnosis-info-panel a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.diagnosis-info-panel a:hover {
    color: #333333;
    text-decoration: underline;
}

@media (max-width: 968px) {
    .diagnosis-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .diagnosis-banner-left h2 {
        font-size: 1.35rem;
    }

    .diagnosis-banner-left p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .diagnosis-banner-section {
        padding: 2rem 0;
    }

    .diagnosis-banner {
        padding: 1.5rem;
    }

    .diagnosis-banner-left h2 {
        font-size: 1.25rem;
    }
}

.wider-section {
    background-color: white;
}

.wider-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Wider determinants pills */
.wider-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wider-pill i { font-size: 1.2rem; }

.wider-pill:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }

.wider-teal { background: linear-gradient(135deg, #1ABC9C, #48C9B0); border-color: #1ABC9C; }
.wider-teal:hover { background: linear-gradient(135deg, #16A085, #1ABC9C); }

.wider-green { background: linear-gradient(135deg, #27AE60, #2ECC71); border-color: #27AE60; }
.wider-green:hover { background: linear-gradient(135deg, #1E8449, #27AE60); }

.resources-section {
    background-color: #f8f9fa;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-item {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(44, 90, 160, 0.08);
    display: block;
    text-decoration: none; /* remove underline for linked cards */
    color: inherit;
}

.resource-item h3,
.resource-item p {
    color: inherit;
}

.resource-item:visited,
.resource-item:active {
    color: inherit;
}

.resource-item:hover p {
    color: #1e3d6f;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    color: inherit;
}

/* External link indicator inside resource cards */
.resource-item .external-icon i {
    font-size: 0.95rem;
    margin-left: 0.25rem;
    vertical-align: middle;
    opacity: 0.8;
}
.resource-item:hover .external-icon i { opacity: 1; }

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.resource-icon i {
    font-size: 2.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.resource-item:hover .resource-icon i {
    transform: scale(1.1);
}

/* Colorful Resource Items */
.resource-purple {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border: 2px solid #8e44ad;
}

.resource-purple:hover {
    box-shadow: 0 12px 30px rgba(142, 68, 173, 0.3);
}

.resource-purple h3 {
    color: white;
}

.resource-orange {
    /* Match 'Eat for your brain' (color-eat) */
    background: linear-gradient(135deg, #E67E22, #FF8C42);
    color: white;
    border: 2px solid #E67E22;
}

.resource-orange:hover {
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.3);
}

.resource-orange h3 {
    color: white;
}

.resource-info p {
    color: #ffffff;
    margin-bottom: 0;
}

.resource-info {
    cursor: default;
}

.resource-info:hover,
.resource-info:focus {
    transform: none;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    color: #ffffff;
}

.resource-info:hover p,
.resource-info:hover h3,
.resource-info:focus p,
.resource-info:focus h3 {
    color: #ffffff;
}

.resource-info:hover .resource-icon,
.resource-info:focus .resource-icon {
    transform: none;
    background: rgba(255, 255, 255, 0.2);
}

.resource-info:hover .resource-icon i,
.resource-info:focus .resource-icon i {
    transform: none;
}

.resource-info-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    vertical-align: baseline;
}

.resource-info-link:visited {
    color: #fef9f3;
}

.resource-info-link:hover {
    color: #1e3d6f;
}

.resource-info-link:visited:hover {
    color: #1e3d6f;
}

.resource-green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: 2px solid #27ae60;
}

.resource-green:hover {
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.3);
}

.resource-green h3 {
    color: white;
}

/* Amber variant to match 'Keep Mentally Active' (color-mental) */
.resource-amber {
    background: linear-gradient(135deg, #F39C12, #F1C40F);
    color: white;
    border: 2px solid #F39C12;
}

.resource-amber:hover {
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.3);
}

.resource-amber h3 { color: white; }

/* Additional resource card colors */
.resource-pink {
    background: linear-gradient(135deg, #e91e63, #ff6f91);
    color: white;
    border: 2px solid #e91e63;
}

.resource-pink:hover {
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.3);
}

.resource-pink h3 { color: white; }

.resource-blue {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    border: 2px solid #1e88e5;
}

.resource-blue:hover {
    box-shadow: 0 12px 30px rgba(30, 136, 229, 0.3);
}

.resource-blue h3 { color: white; }

.evidence-section {
    background-color: white;
}

.evidence-list {
    list-style: none;
    max-width: 800px;
    margin: 2rem auto;
}

.evidence-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

.evidence-list li:last-child {
    border-bottom: none;
}

.glossary-section {
    background-color: #ffffff;
}

.glossary-heading {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    flex-wrap: nowrap;
}

.glossary-heading-image {
    width: 95px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.glossary-item {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.glossary-pill {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 2.1rem 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f5132;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(15, 81, 50, 0.2);
    max-width: 510px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    z-index: 1;
}

.glossary-pill-text {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.glossary-pill .external-icon {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
}

.glossary-pill i {
    font-size: 0.85rem;
}

.glossary-pill:hover,
.glossary-pill:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.glossary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.glossary-icon i {
    font-size: 2rem;
    color: white;
}

.glossary-item h3 {
    margin-bottom: 1rem;
}

.glossary-item p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Colorful Glossary Items */
.glossary-teal {
    background: linear-gradient(135deg, #1ABC9C, #48C9B0);
    color: white;
    border: 2px solid #1ABC9C;
}

.glossary-teal h3 {
    color: white;
}

.glossary-red {
    background: linear-gradient(135deg, #E74C3C, #EC7063);
    color: white;
    border: 2px solid #E74C3C;
}

.glossary-red h3 {
    color: white;
}

.glossary-green {
    background: linear-gradient(135deg, #34495E, #5D6D7E);
    color: white;
    border: 2px solid #34495E;
}

.glossary-green h3 {
    color: white;
}

@media (max-width: 768px) {
    .glossary-heading {
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 0.75rem;
    }

    .glossary-heading-image {
        width: 80px;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glossary-item {
        padding: 1.5rem;
    }

    .glossary-pill {
        position: static;
        margin: 0 0 0.75rem auto;
        white-space: normal;
    }
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0 2rem;
}

/* Default scroll pill (for main site when enabled): blue gradient matching brand text */
.scroll-pill {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #c7d6f1;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    color: #1e3d6f;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.scroll-pill .progress-track { background: #e9f1ff; }
.scroll-pill .progress-bar { background: linear-gradient(135deg, #2c5aa0, #4a7bc8); }

.scroll-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); }
.scroll-pill .progress-percent { font-weight: 600; font-size: 0.95rem; }
.scroll-pill .progress-track { width: 120px; height: 6px; border-radius: 999px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.scroll-pill .progress-bar { display: block; height: 100%; width: 0%; border-radius: 999px; }

@media (max-width: 768px) {
    .scroll-pill { right: 12px; bottom: 14px; }
    .scroll-pill .progress-track { width: 90px; }
}

@media (max-width: 480px) {
    .scroll-pill .progress-percent { display: none; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 200px;
}

.social-link {
    padding: 0.5rem 1rem;
    background-color: #495057;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    background-color: #2c5aa0;
}

.social-link i {
    font-size: 1.1rem;
}

.share-btn {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #2c5aa0, #3d6db8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 240px;
    justify-content: space-between;
}

.share-btn:hover {
    background: linear-gradient(135deg, #1e4277, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}

.share-btn i {
    font-size: 1.2rem;
}

.share-icon-img {
    width: auto;
    height: 36px;
    margin-left: auto;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    text-align: center;
    color: #adb5bd;
}

.footer-section h3 i {
    margin-right: 0.5rem;
    color: #adb5bd;
}

.footer-index .footer-bottom {
    padding-bottom: 3rem;
}

.footer-bottom .evidence-line {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-bottom .disclaimer-line {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-bottom .copyright-line {
    font-size: 0.85rem;
    color: #9aa3ab;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-bottom .copyright-block {
    display: block;
}

.footer-bottom .copyright-block:first-child {
    font-weight: 700;
}

.footer-bottom .copyright-panel {
    margin: 0.75rem auto 0;
    max-width: 820px;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: rgba(73, 80, 87, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
        margin-right: 1rem;
    }

    .nav-logo {
        flex: 1 1 260px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 8.75rem;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
    }

    .nav-logo {
        flex: 1 1 100%;
    }

    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-logo h1 {
        font-size: 1.4rem;
    }

    .accessibility-controls {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .evidence-caveat-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding-right: 0;
    }

    .evidence-caveat-logo-block {
        position: static;
        transform: none;
        justify-self: start;
    }

    .evidence-caveat-logo {
        width: 100px;
    }
    
    .banner-image {
        border-radius: 5px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .evidence-caveat-full {
        margin: 2rem 1rem;
        padding: 1rem;
    }
    
    .brain-health-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .brain-health-card {
        padding: 1rem;
        min-height: 17rem;
    }

    .brain-health-card .card-image {
        width: 150px;
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .wider-links {
        flex-direction: column;
        align-items: center;
    }
    
    .campaign-buttons {
        align-items: center;
    }

    .campaign-logo {
        height: 52px;
        top: 1rem;
        right: 1rem;
    }

    .btn {
        text-align: center;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 9.25rem;
    }

    .accessibility-controls {
        gap: 0.5rem 0.75rem;
    }

    .a11y-label {
        font-size: 0.7rem;
    }

    .font-size-btn {
        min-width: 2.25rem;
        padding: 0.35rem 0.55rem;
    }

    .high-contrast-btn {
        padding: 0.35rem 0.7rem;
    }

    section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .banner-image {
        border-radius: 5px;
    }
    
    .card-image {
        height: 60px;
    }
    
    .risk-factor-card {
        padding: 1rem;
        aspect-ratio: 1.1;
    }
    
    .brain-health-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brain-health-card {
        padding: 0.8rem;
        min-height: 15rem;
    }

    .brain-health-card h3 {
        font-size: 0.9rem;
    }

    .brain-health-card .card-image {
        width: 130px;
        height: 130px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-text h1 {
        animation: none !important;
        background: #2c5aa0;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .risk-factor-card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--color-focus-outline);
    outline-offset: 2px;
}

/* Manual High Contrast Mode */
body.high-contrast {
    --color-text-base: #000000;
    --color-bg-base: #ffffff;
    --color-surface-alt: #f2f2f2;
    --color-link-base: #0b3cde;
    --color-link-visited: #551A8B;
    --color-link-hover: #0b3cde;
    --color-focus-outline: #ffbf47;
    background-color: var(--color-bg-base);
    color: var(--color-text-base);
}

body.high-contrast * {
    color: var(--color-text-base) !important;
    animation: none !important;
    transition: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.high-contrast a {
    color: var(--color-link-base) !important;
    text-decoration: underline;
}

body.high-contrast a:visited {
    color: var(--color-link-visited) !important;
}

body.high-contrast a:hover {
    color: var(--color-link-base) !important;
    background-color: #ffeb3b !important;
}

body.high-contrast .header,
body.high-contrast .nav {
    background-color: var(--color-bg-base) !important;
    border-bottom: 2px solid #000000;
}

body.high-contrast .nav-menu a {
    color: var(--color-text-base) !important;
}

body.high-contrast .nav-menu a:hover {
    color: var(--color-text-base) !important;
    background-color: #ffeb3b !important;
}

body.high-contrast .accessibility-controls button {
    background: var(--color-bg-base) !important;
    color: var(--color-text-base) !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .accessibility-controls button.active {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .accessibility-controls .high-contrast-btn.active {
    background: #000000 !important;
    color: #ffeb3b !important;
    border-color: #ffeb3b !important;
}

body.high-contrast .accessibility-controls .high-contrast-btn.active i {
    color: #ffeb3b !important;
}

body.high-contrast .hero,
body.high-contrast .videos-section,
body.high-contrast .risk-factors-section,
body.high-contrast .children-section,
body.high-contrast .resources-section,
body.high-contrast .evidence-section,
body.high-contrast .glossary-section {
    background-color: var(--color-bg-base) !important;
    color: var(--color-text-base) !important;
}

body.high-contrast .hero-text h1,
body.high-contrast .toolkit-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

body.high-contrast .highlight-box,
body.high-contrast .doc-card,
body.high-contrast .doc-row,
body.high-contrast .brain-health-card,
body.high-contrast .video-card,
body.high-contrast .resource-item,
body.high-contrast .resource-icon,
body.high-contrast .risk-factor-card,
body.high-contrast .content-card,
body.high-contrast .support-link-card,
body.high-contrast .support-link-header,
body.high-contrast .support-link-badge,
body.high-contrast .support-link-btn,
body.high-contrast .glossary-item,
body.high-contrast .glossary-icon,
body.high-contrast .glossary-pill,
body.high-contrast .children-section .children-btn,
body.high-contrast .doc-overlay-content,
body.high-contrast .thumb-overlay-pill {
    background-color: var(--color-bg-base) !important;
    color: var(--color-text-base) !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .thumb-overlay {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn-secondary,
body.high-contrast .btn-outline {
    background: var(--color-bg-base) !important;
    color: var(--color-text-base) !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .btn:hover,
body.high-contrast .btn-primary:hover,
body.high-contrast .btn-secondary:hover,
body.high-contrast .btn-outline:hover,
body.high-contrast .support-link-btn:hover {
    background: #ffeb3b !important;
    color: var(--color-text-base) !important;
}

body.high-contrast .risk-factor-card:hover,
body.high-contrast .resource-item:hover,
body.high-contrast .brain-health-card:hover,
body.high-contrast .video-card:hover {
    background-color: var(--color-surface-alt) !important;
    transform: none !important;
}

body.high-contrast .highlight-box::before,
body.high-contrast .brain-health-card::before {
    display: none !important;
}

body.high-contrast .footer {
    background-color: var(--color-surface-alt) !important;
    color: var(--color-text-base) !important;
    border-top: 2px solid #000000;
}

body.high-contrast .back-btn::before {
    display: none !important;
}

/* Print styles */
@media print {
    .header,
    .nav,
    .footer {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    .risk-factor-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
