/* ===== YDHR.CA - YORK-DURHAM HERITAGE RAILWAY STYLESHEET ===== */

/* CSS Custom Properties (Variables) */
:root {
    --primary-red: #8B1A1A;
    --secondary-gold: #B8860B;
    --neutral-cream: #FAF5EB;
    --dark-charcoal: #2C2C2C;
    --accent-green: #2D5A27;
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(139, 26, 26, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--neutral-cream) 0%, #F5F0E8 100%);
    color: var(--dark-charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
}

/* ===== NAVIGATION ===== */
nav {
    background: var(--neutral-cream);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.nav-logo {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark-charcoal);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--neutral-cream);
        gap: 0;
        padding: 1.5rem;
        border-bottom: 2px solid var(--primary-red);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, #A23333 100%);
    color: var(--neutral-cream);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--neutral-cream);
    margin-bottom: 1rem;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--secondary-gold);
    font-style: italic;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-red);
    color: var(--neutral-cream);
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.btn:hover {
    background: var(--secondary-gold);
    color: var(--dark-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--accent-green);
}

.btn-secondary:hover {
    background: #1f3f1b;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-gold);
    color: var(--secondary-gold);
}

.btn-outline:hover {
    background: var(--secondary-gold);
    color: var(--dark-charcoal);
}

/* ===== RAILWAYS DIVIDER ===== */
.rail-divider {
    margin: 3rem 0;
    padding: 2rem 0;
    position: relative;
}

.rail-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-red) 0px,
        var(--primary-red) 20px,
        transparent 20px,
        transparent 40px
    );
}

.rail-divider h2 {
    background: var(--neutral-cream);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 0 auto;
}

/* ===== CARD LAYOUTS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--neutral-cream);
    border-left: 5px solid var(--primary-red);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-gold) 100%);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 2px solid var(--primary-red);
    opacity: 0.8;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 2.5rem;
    text-align: center;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
}

.section-subtitle {
    color: var(--accent-green);
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
    margin-bottom: 3rem;
}

.alt-section {
    background: linear-gradient(180deg, #FBF8F3 0%, #F5F0E8 100%);
}

/* ===== TABLE STYLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--neutral-cream);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

th {
    background: var(--primary-red);
    color: var(--neutral-cream);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #E8DCC8;
}

tr:hover {
    background: #FDFBF7;
}

/* ===== FORM STYLES ===== */
form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-charcoal);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #CCC;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-charcoal);
    color: var(--neutral-cream);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    color: var(--secondary-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--neutral-cream);
}

.footer-section a:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--neutral-cream);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    text-align: center;
    color: #AAA;
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: var(--neutral-cream);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-gold);
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-red);
}

/* ===== PRICE TABLE ===== */
.pricing-table {
    overflow-x: auto;
}

.pricing-table table {
    min-width: 600px;
}

/* ===== EVENT COUNTDOWN ===== */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.countdown-item {
    background: var(--primary-red);
    color: var(--neutral-cream);
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== EVENT CARD ===== */
.event-card {
    background: var(--neutral-cream);
    border: 2px solid var(--primary-red);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.event-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary-gold);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%);
}

.event-date {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-price {
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== GALLERY STYLES ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-gold) 100%);
    aspect-ratio: 1;
    cursor: pointer;
    border: 3px solid var(--dark-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* ===== ACCORDION ===== */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--neutral-cream);
    margin-bottom: 1rem;
    border: 2px solid #DDD;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    background: #FAF5EB;
    border-bottom: 2px solid #DDD;
    font-weight: 600;
    color: var(--primary-red);
}

.accordion-header:hover {
    background: #F5F0E8;
}

.accordion-content {
    display: none;
    padding: 1.5rem;
    color: #666;
}

.accordion-content.active {
    display: block;
}

/* ===== MEMBERSHIP TIERS ===== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tier-card {
    background: var(--neutral-cream);
    border: 3px solid var(--primary-red);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.tier-card.featured {
    border-color: var(--secondary-gold);
    border-width: 4px;
    transform: scale(1.05);
}

.tier-name {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
}

.tier-price {
    font-size: 2.5rem;
    color: var(--secondary-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.tier-benefits {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.tier-benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #EEE;
    color: #666;
}

.tier-benefits li::before {
    content: '✓ ';
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ===== NAVBAR (header element) ===== */
.navbar {
    background: var(--neutral-cream);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand h1 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin: 0;
}

.brand-logo {
    font-size: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-charcoal);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    text-decoration: none;
}

/* ===== SECTION CONTAINERS (centering) ===== */
.info-container,
.about-container,
.footer-container,
.cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== QUICK INFO SECTION ===== */
.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.info-card {
    background: var(--neutral-cream);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.info-link {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===== EVENT BANNER SECTION ===== */
.event-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.event-banner-card {
    background: var(--neutral-cream);
    border: 2px solid var(--primary-red);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-banner-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* ===== TESTIMONIALS (alternate class name) ===== */
.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.testimonial-stars {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ===== ABOUT SECTION ===== */
.about-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-image {
    flex: 0 0 380px;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-gold) 100%);
    height: 300px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        width: 100%;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #A23333 100%);
    color: var(--neutral-cream);
    text-align: center;
}

.cta-section h2 {
    color: var(--neutral-cream);
}

.cta-section p {
    max-width: 60ch;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BUTTON VARIANTS ===== */
.btn-primary {
    background: var(--primary-red);
    color: var(--neutral-cream);
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
}

/* ===== FOOTER (alternate container name) ===== */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   DIGITAL HEALTH SITE EXTENSIONS
   =================================== */

/* ===== INNER PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, #A23333 100%);
    color: var(--neutral-cream);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gold);
}

.page-hero h1 {
    color: var(--neutral-cream);
    font-size: 2.6rem;
    max-width: 900px;
    margin: 0 auto 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-gold);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #E8DCC8;
    font-size: 0.9rem;
    background: var(--neutral-cream);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep {
    color: #999;
    margin: 0 0.5rem;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-red);
}

.article-content h3 {
    margin-top: 1.5rem;
    color: var(--accent-green);
    font-size: 1.3rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.article-content p {
    max-width: none;
    line-height: 1.8;
    color: #3a3a3a;
}

/* ===== PRO TIP BOX ===== */
.pro-tip {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    border-left: 6px solid var(--secondary-gold);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}

.pro-tip-label {
    font-weight: 700;
    color: var(--secondary-gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Roboto Slab', Georgia, serif;
}

.pro-tip p {
    margin: 0;
    color: var(--dark-charcoal);
    font-style: italic;
    line-height: 1.7;
    max-width: none;
}

/* ===== ACCORDION INDICATOR ===== */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-red);
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-header.active::after {
    content: '−';
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: linear-gradient(180deg, #FBF8F3 0%, #F5F0E8 100%);
}

/* ===== SOURCES SECTION ===== */
.sources-section {
    background: var(--dark-charcoal);
    color: var(--neutral-cream);
    padding: 3rem 2rem;
}

.sources-section h2 {
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sources-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sources-list {
    list-style: none;
    columns: 2;
    gap: 2rem;
}

.sources-list li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #CCC;
    padding-left: 1.5rem;
    position: relative;
    break-inside: avoid;
}

.sources-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-gold);
}

@media (max-width: 768px) {
    .sources-list { columns: 1; }
    .page-hero h1 { font-size: 2rem; }
}

/* ===== STAT CARDS ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--neutral-cream);
    border-top: 5px solid var(--primary-red);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Roboto Slab', Georgia, serif;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

/* ===== FEATURE GRID (hub page) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--neutral-cream);
    border-bottom: 5px solid var(--primary-red);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.feature-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-red);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    max-width: none;
    margin-bottom: 0;
}

.feature-card .read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

/* ===== CTA SECTION (health variant) ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #A23333 100%);
    color: var(--neutral-cream);
    text-align: center;
}

.cta-section h2 { color: var(--neutral-cream); }

.cta-section p {
    max-width: 60ch;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary { background: var(--primary-red); color: var(--neutral-cream); }

.btn-large { padding: 1.2rem 2.8rem; font-size: 1.1rem; }

/* ===== FOOTER ALTERNATE CONTAINER ===== */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
