:root {
    --maritime-blue-dark: #1e3c72;
    --maritime-blue: #366092;
    --maritime-blue-light: #2a5298;
    --alexandra-yellow: #ffa726;
    --alexandra-orange: #fb8c00;
    --rocket-orange: #e65100;
    --rocket-red: #bf360c;
    --black-sunday-red: #550000 ;
    --black-sunday-dark: #200000 ;
    --success-green: #4caf50;
    --success-dark: #2e7d32;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #555;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
}

/* ========================================
   STATISTICS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card, .rescue-card {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .rescue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
/*
.stat-card.blue {
    background: #f8f9fa;
    border-left: 5px solid var(--maritime-blue);
}

.stat-card.yellow {
    background: #fff8e1;
    border-left: 5px solid var(--alexandra-yellow);
}

.stat-card.orange {
    background: #fff3e0;
    border-left: 5px solid var(--rocket-orange);
}

.stat-card.red {
    background: #fce4ec;
    border-left: 5px solid #e91e63;
}

.stat-card.green {
    background: #e8f5e9;
    border-left: 5px solid var(--success-green);
}
*/
.stat-card h3 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
}
/*
.stat-card.blue h3 { color: var(--maritime-blue); }
.stat-card.yellow h3 { color: var(--alexandra-yellow); }
.stat-card.orange h3 { color: var(--rocket-orange); }
.stat-card.red h3 { color: #e91e63; }
.stat-card.green h3 { color: var(--success-green); }
*/
.stat-card p {
    margin: 0;
    color: var(--text-medium);
    font-size: 1.1em;
}

.stat-card small {
    color: var(--text-light);
}

/* ========================================
   CONTENT BOXES & CALLOUTS
   ======================================== */
/* Callout Boxes - High specificity to override Cassiopeia */
.callout-box,
div.callout-box,
article .callout-box {
    padding: 25px !important;
    margin-bottom: 40px !important;
    border-radius: 5px !important;
    font-size: 1.2em !important;
    line-height: 1.8 !important;
}

.callout-box.yellow,
div.callout-box.yellow {
    background: #fff8e1 !important;
    border-left: 5px solid var(--alexandra-yellow) !important;
    color: var(--text-dark) !important;
}

.callout-box.red,
div.callout-box.red {
    background: #ffebee !important;
    border-left: 5px solid var(--black-sunday-red) !important;
    color: var(--text-dark) !important;
}

.callout-box.orange,
div.callout-box.orange {
    background: #fff3e0 !important;
    border-left: 5px solid var(--rocket-orange) !important;
    color: var(--text-dark) !important;
}

.callout-box.blue,
div.callout-box.blue {
    background: #e3f2fd !important;
    border-left: 5px solid var(--maritime-blue) !important;
    color: var(--text-dark) !important;
}

.callout-box strong,
.callout-box p,
.callout-box .font-large {
    color: var(--text-dark) !important;
}

/* Content Cards */
.content-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-card h3 {
    color: var(--maritime-blue-dark);
    margin-top: 0;
}

/* Myth-Busting Boxes */
.myth-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.myth-box h3 {
    color: var(--success-dark);
    margin-top: 0;
}

.myth-box h3::before {
    content: "✓ ";
}

/* ========================================
   SECTION HEADINGS
   ======================================== */
h2.section-heading {
    padding-bottom: 10px;
    margin: 40px 0 30px;
}

h2.section-heading.blue {
    color: var(--maritime-blue-dark);
    border-bottom: 3px solid var(--maritime-blue);
}

h2.section-heading.yellow {
    color: var(--alexandra-orange);
    border-bottom: 3px solid var(--alexandra-yellow);
}

h2.section-heading.orange {
    color: var(--rocket-orange);
    border-bottom: 3px solid var(--rocket-orange);
}

h2.section-heading.red {
    color: var(--black-sunday-red);
    border-bottom: 3px solid #e57373;
}

/* ========================================
   FEATURED STORIES GRID
   ======================================== */
.featured-stories {
    background: linear-gradient(to right, #e3f2fd, #bbdefb);
    padding: 40px;
    border-radius: 10px;
    margin: 50px 0;
}

.featured-stories h2 {
    color: var(--maritime-blue-dark);
    margin-top: 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.story-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.story-card h4 {
    color: var(--maritime-blue);
    margin-top: 0;
}

.story-card a {
    color: var(--maritime-blue-dark);
    font-weight: bold;
    text-decoration: none;
}

.story-card a:hover {
    color: var(--maritime-blue);
}

/* ========================================
   TIMELINE & RESCUE RECORDS
   ======================================== */


.timeline-item h5 {
    color: var(--maritime-blue-dark) !important;
    margin: 0 0 10px 0 !important;
    font-weight: bold !important;
}

.timeline-item .date {
    font-weight: bold !important;
    color: var(--text-medium) !important;
    margin: 0 0 10px 0 !important;
}

.timeline-item p,
.timeline-item ul,
.timeline-item ol,
.timeline-item li,
.timeline-item strong {
    color: #333 !important;
    line-height: 1.6 !important;
}

.timeline-item ul,
.timeline-item ol {
    margin: 10px 0 !important;
    padding-left: 20px !important;
}

.timeline-item li {
    margin-bottom: 5px !important;
}

/* Rescue Cards */
.rescue-grid {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

/* Rescue Cards - High specificity */
.rescue-card,
div.rescue-card,
article .rescue-card {
    padding: 20px !important;
    border-radius: 5px !important;
    transition: transform 0.3s ease !important;
    color: var(--text-dark) !important;
}

.rescue-card:hover {
    transform: translateX(5px) !important;
}
/*
.rescue-card.yellow,
div.rescue-card.yellow {
    background: #fff8e1 !important;
    border-left: 4px solid var(--alexandra-yellow) !important;
}

.rescue-card.orange,
div.rescue-card.orange {
    background: #fbe9e7 !important;
    border-left: 4px solid var(--rocket-orange) !important;
}

.rescue-card.blue,
div.rescue-card.blue {
    background: #e3f2fd !important;
    border-left: 4px solid var(--maritime-blue) !important;
}

.rescue-card.red,
div.rescue-card.red {
    background: #ffebee !important;
    border-left: 4px solid var(--black-sunday-red) !important;
}
*/
.rescue-card h4 {
    margin: 0 0 10px 0 !important;
}

.rescue-card.yellow h4 { color: var(--alexandra-orange) !important; }
.rescue-card.orange h4 { color: var(--rocket-red) !important; }
.rescue-card.blue h4 { color: var(--maritime-blue-dark) !important; }
.rescue-card.red h4 { color: var(--black-sunday-red) !important; }

.rescue-card .meta {
    font-weight: bold !important;
    color: var(--text-medium) !important;
    margin: 0 0 10px 0 !important;
}

.rescue-card p {
    color: var(--text-dark) !important;
}

/* ========================================
   TECHNOLOGY & FEATURES
   ======================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tech-box,
div.tech-box {
    border: 2px solid var(--alexandra-yellow) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    background: #fff8e1 !important;
    color: #333 !important;
}

.tech-box h4 {
    color: var(--alexandra-orange) !important;
    margin: 0 0 15px 0 !important;
    font-weight: bold !important;
}

.tech-box p,
.tech-box ul,
.tech-box ol,
.tech-box li {
    margin: 0 !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.tech-box ul,
.tech-box ol {
    margin-top: 10px !important;
    padding-left: 20px !important;
}

.tech-box li {
    margin-bottom: 5px !important;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.process-step {
    background: linear-gradient(to bottom, #fff3e0, #ffe0b2);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.process-step h4 {
    color: var(--rocket-orange);
    margin: 0 0 15px 0;
    text-align: center;
}

.process-step p {
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   CALL-TO-ACTION SECTIONS
   ======================================== */
.cta-section {
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 50px 0;
}

.cta-section.blue {
    background: linear-gradient(135deg, var(--maritime-blue-dark) 0%, var(--maritime-blue-light) 100%);
    color: white;
}

.cta-section.blue strong {
    color: white;
}

.cta-section.gray {
    background: var(--gray-light);
    color: var(--text-dark);
}

.cta-section h2 {
    margin-top: 0;
}

.cta-section.blue h2 {
    color: white;
}

.cta-section p {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 700px;
    margin: 20px auto;
}

.cta-section .highlight {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--maritime-blue);
    color: white !important;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: var(--maritime-blue-dark);
    transform: translateY(-2px);
}

/* ========================================
   RELATED CONTENT
   ======================================== */
.related-section {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.related-section h3 {
    color: var(--maritime-blue-dark);
    margin-top: 0;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 15px;
}

.related-list a {
    color: var(--maritime-blue-dark);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
}

.related-list a::before {
    content: "→ ";
}

.related-list a:hover {
    color: var(--maritime-blue);
}

.related-list p {
    margin: 5px 0 0 25px;
    color: var(--text-medium);
}

/* ========================================
   COMPARISON GRIDS
   ======================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.comparison-card,
div.comparison-card {
    background: white !important;
    padding: 20px !important;
    border-radius: 5px !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

.comparison-card h4 {
    margin: 0 0 15px 0 !important;
    color: var(--maritime-blue-dark) !important;
    font-weight: bold !important;
}

.comparison-card p,
.comparison-card ul,
.comparison-card li {
    color: #333 !important;
}

.comparison-card ul {
    margin: 0 !important;
    line-height: 1.6 !important;
    padding-left: 20px !important;
}

/* ========================================
   INFO BOXES & NOTES
   ======================================== */
.info-box {
    padding: 20px;
    border-radius: 5px;
    margin: 25px 0;
}

.info-box.gray {
    background: var(--gray-light);
}

.info-box.yellow {
    background: #fff3e0;
}

.info-box.blue {
    background: #e3f2fd;
    border-left: 4px solid var(--maritime-blue);
}

.info-box.green {
    background: #e8f5e9;
    border-left: 4px solid var(--success-green);
}

.info-box.red {
    background: #ffebee;
    border-left: 4px solid var(--black-sunday-red);
}

.info-box h4 {
    margin: 0 0 15px 0;
}

.info-box.blue h4 { color: var(--maritime-blue); }
.info-box.green h4 { color: var(--success-dark); }
.info-box.red h4 { color: var(--black-sunday-red); }
.info-box.yellow h4 { color: var(--alexandra-orange); }

.info-box p {
    margin: 0;
    line-height: 1.6;
}

.info-box ul {
    margin: 15px 0 0 0;
    line-height: 1.8;
}

/* ========================================
   SPECIAL ELEMENTS
   ======================================== */
.highlight-number {
    text-align: center;
    padding: 20px;
    border-radius: 5px;
}

.highlight-number h3 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
}

/* Memorial/Sensitive Content */
.memorial-box {
    background: #ffebee;
    padding: 25px;
    border-radius: 5px;
    margin: 25px 0;
}

.memorial-box h4 {
    color: var(--black-sunday-red);
    margin: 0 0 20px 0;
}

.memorial-person {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffcdd2;
}

.memorial-person:last-child {
    border-bottom: none;
}

.memorial-person h5 {
    color: #b71c1c;
    margin: 0 0 10px 0;
}

.memorial-person .role {
    font-weight: bold;
    margin: 0;
}

.memorial-person .details {
    margin: 10px 0 0 0;
    line-height: 1.6;
    color: var(--text-medium);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .maritime-hero h1,
    .article-header h1 {
        font-size: 2em;
    }
    
    .maritime-hero .subtitle,
    .article-header .subtitle {
        font-size: 1.1em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .maritime-hero,
    .article-header {
        padding: 30px 20px;
    }
    
    .stat-card,
    .content-card,
    .myth-box {
        padding: 20px;
    }
    
    .featured-stories,
    .cta-section {
        padding: 30px 20px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.font-large { font-size: 1.2em; }
.font-xlarge { font-size: 1.5em; }

.line-height-normal { line-height: 1.6; }
.line-height-relaxed { line-height: 1.8; }

/* ========================================
   CASSIOPEIA OVERRIDE - FORCE STYLES
   Add !important to override template defaults
   ======================================== */

/* Force all custom class backgrounds and borders */
div[class*="callout-box"],
div[class*="rescue-card"],
div[class*="stat-card"],
div[class*="memorial"],
div[class*="info-box"],
div[class*="process-step"],
div[class*="comparison-card"] {
    color: #333 !important;
}

/* Force callout box visibility */
.callout-box p,
.callout-box strong,
.callout-box .font-large {
    color: #333 !important;
    opacity: 1 !important;
}

/* Force rescue card text visibility */
.rescue-card,
.rescue-card p,
.rescue-card h4,
.rescue-card .meta {
    opacity: 1 !important;
}

/* Force all headings in custom components */
.rescue-card h4,
.stat-card h3,
.memorial-box h4,
.memorial-box h5,
.process-step h4,
.comparison-card h4 {
    opacity: 1 !important;
    font-weight: bold !important;
}


/* Additional overrides for tech-box and comparison elements */
.tech-box *,
.comparison-card *,
.tech-grid *,
.comparison-grid * {
    color: #333 !important;
}

.tech-box h4,
.comparison-card h4 {
    color: var(--alexandra-orange) !important;
}


/* Timeline item content visibility */
.timeline-item * {
    color: #333 !important;
}

.timeline-item h5,
.timeline-item h4 {
    color: var(--maritime-blue-dark) !important;
}

/* Memorial box content */
.memorial-box *,
.memorial-person * {
    color: #333 !important;
}

.memorial-box h4,
.memorial-box h5,
.memorial-person h5 {
    color: var(--black-sunday-red) !important;
}

/* Process step content */
.process-step *,
.process-grid * {
    color: #333 !important;
}

.process-step h4 {
    color: var(--rocket-orange) !important;
}

/* Info box content */
.info-box *,
.content-card * {
    color: #333 !important;
}



/**
 * Alexandra Lifeboat Exhibition - Complete Styling
 * Maritime heritage color scheme matching physical signage
 * Version: 1.0
 */

/* ============================================
   CSS VARIABLES - COLOR PALETTE
   ============================================ */
:root {
    /* Maritime Teal/Green */
    --teal-dark: #1a4d4d;
    --teal-medium: #2d6a6a;
    --teal-light: #4a8585;
    
    /* Burgundy/Red Accents */
    --burgundy-dark: #8b2635;
    --burgundy-medium: #a62639;
    --red-accent: #c1272d;
    
    /* Neutrals */
    --cream: #f5f1e8;
    --cream-dark: #e8dfc8;
    --slate-navy: #4a5d6e;
    --navy: #1a3a52;
    --text-dark: #2c3e50;
    --gray-light: #c8c8c8;
    --white: #ffffff;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header,
header.header {
    background-color: var(--gray-light);
    padding: 1.5rem 2rem;
    margin: 0;
}

.site-title,
header h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.container-header .mod-menu {
    color: var(--cream);
}

.site-subtitle,
header .subtitle,
header p {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin: 0;
    font-weight: 400;
}
.site-description {
    color: var(--teal-dark) !important;
    font-size: 1.2rem !important;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
nav,
.navigation,
.main-nav,
#navigation {
    background-color: var(--teal-dark);
    padding: 0;
    margin: 0;
    border-bottom: 5px solid var(--red-accent);
}

nav ul,
.navigation ul,
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav li,
.navigation li,
.main-nav li {
    margin: 0;
    padding: 0;
}

nav a,
.navigation a,
.main-nav a,
nav li a,
.navigation li a {
    display: block;
    color: #f5f5f5;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

nav li:last-child a,
.navigation li:last-child a {
    border-right: none;
}

nav a:hover,
.navigation a:hover,
.main-nav a:hover {
    background-color: var(--burgundy-dark);
    color: var(--white);
}

nav a.active,
nav a.current,
.navigation a.active,
.navigation a.current {
    background-color: var(--teal-dark);
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   BREADCRUMB / YOU ARE HERE
   ============================================ */
.breadcrumb,
.breadcrumbs,
.you-are-here,
.pathway {
    background-color: var(--slate-navy);
    color: #f5f5f5;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-bottom: 3px solid var(--red-accent);
    margin: 0;
}

.breadcrumb-label,
.you-are-here-label {
    font-weight: 600;
    margin-right: 0.75rem;
    color: #f5f5f5;
}

.breadcrumb a,
.breadcrumbs a,
.you-are-here a,
.pathway a {
    color: #e8e8e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover,
.breadcrumbs a:hover,
.you-are-here a:hover,
.pathway a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb-separator,
.separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb .current,
.breadcrumbs .current,
.you-are-here .current {
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main,
.main-content,
#content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    color: var(--navy);
    font-weight: 700;
    font-size: 2.5rem;
    border-left: 6px solid var(--red-accent);
    padding-left: 1rem;
    margin: 2rem 0 1.5rem 0;
    line-height: 1.2;
}

h2 {
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 2rem;
    border-bottom: 4px solid var(--red-accent);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

h3 {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

h4 {
    color: var(--teal-medium);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1rem 0 0.75rem 0;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

strong,
b {
    font-weight: 700;
    color: var(--navy);
}

em,
i {
    font-style: italic;
    color: var(--teal-dark);
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--teal-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--burgundy-medium);
}

.content a,
article a,
main a {
    text-decoration: underline;
    text-decoration-color: var(--red-accent);
    text-underline-offset: 3px;
}

/* ============================================
   CONTENT PANELS
   ============================================ */
.panel,
.content-panel,
.info-panel,
article {
    background-color: var(--white);
    border: 2px solid var(--teal-medium);
    border-left: 6px solid var(--red-accent);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-header {
    background-color: var(--teal-dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 1.5rem -2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ============================================
   HIGHLIGHT SECTIONS
   ============================================ */
.section-highlight,
.maritime-section,
.feature-section {
    background-color: var(--teal-dark);
    color: var(--white);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.section-highlight h2,
.maritime-section h2,
.feature-section h2 {
    color: var(--white);
    border-bottom-color: var(--red-accent);
}

.section-highlight h3,
.maritime-section h3,
.feature-section h3 {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   ACCENT BOXES
   ============================================ */
.accent-box,
.important-note,
.highlight-box,
.warning,
.notice {
    background-color: var(--cream-dark);
    border-left: 6px solid var(--burgundy-medium);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.accent-box h3,
.important-note h3,
.highlight-box h3 {
    color: var(--burgundy-dark);
    margin-top: 0;
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stats-section,
.truth-in-numbers {
    background-color: var(--white);
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid var(--teal-medium);
    border-left: 6px solid var(--red-accent);
}

.stats-section h2,
.truth-in-numbers h2 {
    color: var(--teal-dark);
    border-bottom: 4px solid var(--red-accent);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

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

.stat-card, .highlight-number {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 3px solid var(--teal-medium);
    border-top: 8px solid var(--red-accent);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, , .highlight-number:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--burgundy-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number .of-text {
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 400;
    margin: 0 0.5rem;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-medium);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--teal-dark);
    font-weight: 600;
    margin-top: 0.75rem;
}

.stat-detail {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Featured stat card variant */
.stat-card.featured {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-medium) 100%);
    color: var(--white);
    border-color: var(--burgundy-dark);
}

.stat-card.featured .stat-number {
    color: var(--white);
}

.stat-card.featured .stat-label {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.stat-card.featured .stat-description {
    color: rgba(255, 255, 255, 0.95);
}

.stat-card.featured .stat-detail {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 4px solid var(--teal-medium);
    margin: 2rem 0;
}

.timeline-item, .rescue-card {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--teal-light);
    border-radius: 4px;
}

.timeline-item::before, .rescue-card::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--red-accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--teal-medium);
}

.timeline-date {
    font-weight: 700;
    color: var(--burgundy-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    color: var(--text-dark);
}

/* ============================================
   LISTS
   ============================================ */
ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--red-accent);
    font-weight: 700;
}

ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

ol li {
    margin-bottom: 0.5rem;
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    background-color: var(--white);
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 2px solid var(--teal-medium);
}

thead {
    background-color: var(--teal-dark);
    color: var(--white);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 3px solid var(--red-accent);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cream-dark);
}

tr:nth-child(even) {
    background-color: var(--cream);
}

tr:hover {
    background-color: #f0ede3;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */
blockquote {
    background-color: var(--cream-dark);
    border-left: 6px solid var(--burgundy-medium);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--teal-medium);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: Georgia, serif;
}

blockquote p {
    margin: 0;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--navy);
}

/* ============================================
   IMAGES & FIGURES
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--white);
    border: 2px solid var(--teal-medium);
}

figure img {
    border: 3px solid var(--teal-light);
    margin-bottom: 0.5rem;
}

figcaption {
    padding: 0.75rem;
    background-color: var(--cream);
    border-left: 4px solid var(--burgundy-medium);
    font-style: italic;
    color: var(--navy);
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
button,
.button,
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--burgundy-medium);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn:hover,
button:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: var(--burgundy-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--teal-medium);
}

.btn-secondary:hover {
    background-color: var(--teal-dark);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--teal-dark);
    color: var(--white);
    padding: 2rem;
    margin-top: 3rem;
    border-top: 6px solid var(--burgundy-medium);
}

footer h2,
footer h3 {
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

.teal-bg {
    background-color: var(--teal-dark);
    color: var(--white);
}

.burgundy-bg {
    background-color: var(--burgundy-medium);
    color: var(--white);
}

.cream-bg {
    background-color: var(--cream);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    nav ul,
    .navigation ul {
        flex-direction: column;
    }
    
    nav a,
    .navigation a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    nav li:last-child a {
        border-bottom: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    main,
    .main-content {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
        padding-left: 0.75rem;
        border-left-width: 4px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .site-title,
    header h1 {
        font-size: 1.5rem;
    }
    
    nav a,
    .navigation a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb,
    .you-are-here {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .panel,
    .content-panel {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
}

@media (max-width: 480px) {
    .site-header,
    header {
        padding: 1rem;
    }
    
    .site-title,
    header h1 {
        font-size: 1.25rem;
    }
    
    .site-subtitle,
    header .subtitle {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--red-accent);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: var(--red-accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    nav,
    .navigation,
    .breadcrumb,
    footer {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .panel,
    .content-panel {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}
/* 1. The Main Container */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; 
    min-height: 500px;
    
    /* UPDATED FILENAME HERE */
    background-image: url('images/aurora-rescue-2.png'); 
    
    background-size: cover; 
    background-position: center bottom; 
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 3. The Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    display: flex;
    align-items: center; 
    justify-content: center; 
}

/* 4. The Text Styling */
.hero-content {
    position: absolute;
	bottom: 0;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
    font-family: 'Georgia', serif; 
}

.hero-content h1 {
    color: var(--cream);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-tagline {
	font-style: italic;
    font-size: 1.5rem;
}

.hero-caption {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 30px;
    font-family: sans-serif;
}

/* 5. The Button Styling */
.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d4a017; 
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-btn:hover {
    background-color: #f5c542; 
    color: #000;
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-section {
        height: 60vh; 
    }
}
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    
    /* The Image */
    background-image: url('/alexandra/images/aurora-rescue-2.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    
    /* THE 1870s LOOK: */
    /* 1. Use filters to warm it up and increase contrast (simulating Albumen print) */
    /* Sepia gives the brown tone. Grayscale desaturates the generated blueish tints. */
    filter: sepia(0.6) grayscale(0.2) contrast(1.2) brightness(0.9);
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Keeps the vignette inside */
}

/* THE VIGNETTE OVERLAY (Dark corners) */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A radial gradient that is clear in the middle and dark brown/black at edges */
    background: radial-gradient(circle, rgba(139, 69, 19, 0) 50%, rgba(50, 30, 10, 0.6) 100%);
    pointer-events: none; /* Lets you click through it */
    z-index: 1;
}

/* Adjust the text overlay to sit ON TOP of the filters */
.hero-overlay {
    /* ... previous settings ... */
    z-index: 2; /* Ensures text is above the vignette */
    background: rgba(0, 0, 0, 0.3); /* Slightly lighter overlay since the image is darker now */
}
button.mod-menu__heading.nav-header.mm-toggler.mm-toggler-nolink.mm-collapsed {
    font-size: revert;
    text-transform: revert;
}
button.mod-menu__heading:hover, button.mod-menu__heading.nav-header.mm-toggler {
    font-size: revert;
    text-transform: revert;
}