/* Syrian Mosaic Foundation - Minimalist Redesign */
/* Design Philosophy: White, spacious, journalism-inspired aesthetic */

/* ==================== CSS Variables ==================== */
:root {
    /* Color Palette - Minimalist & Clean */
    --color-navy: #1A3A52;
    --color-terracotta: #C77E5C;
    --color-gold: #D4A574;
    --color-white: #FFFFFF;
    --color-cream: #FAFAF8;
    --color-text: #2C2C2C;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    
    /* Typography - Journalism Style */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale - Generous whitespace */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Layout */
    --max-w-prose: 72ch;
    --max-w-container: 1200px;
    --max-w-wide: 1400px;
    
    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 80px;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-3);
}

p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.small {
    font-size: 0.9375rem;
    line-height: 1.6;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--color-gold);
}

/* ==================== Layout & Containers ==================== */
.container {
    max-width: var(--max-w-container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.prose {
    max-width: var(--max-w-prose);
    margin: 0 auto;
}

.section {
    padding: var(--space-24) 0;
    background: var(--color-white);
}

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

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }
    
    .container,
    .container-wide {
        padding: 0 var(--space-4);
    }
}

/* ==================== Header & Navigation ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    display: block;
}

.header-links {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.header-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: var(--space-2) 0;
}

.header-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-navy);
    transition: width var(--transition-normal);
}

.header-link:hover::after,
.header-link.active::after {
    width: 100%;
}

.header-link:hover,
.header-link.active {
    color: var(--color-navy);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: var(--space-4);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    
    .header-links.active {
        display: flex;
    }
    
    .header-link {
        width: 100%;
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ==================== Hero ==================== */
.hero {
    padding: var(--space-24) 0 var(--space-20);
    text-align: center;
    background: var(--color-white);
}

/* Hero patterned background that fades into header and next section */
.hero-pattern {
    background-color: var(--color-cream);
    background-image: url('assets/images/360_F_424194700_YLn8PuaiqR36LI84T9E76ATDd6HrU2at.jpg');
    background-repeat: repeat;
    background-size: 640px auto; /* keep ratio, pleasant scale */
    background-position: top center;
    position: relative;
}

/* Fade into the next white section */
.hero-pattern::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to top, var(--color-white) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-pattern { background-size: 420px auto; }
    .hero-pattern::after { height: 100px; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin: var(--space-12) auto 0;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

.btn-primary:hover {
    background: #0F2A3F;
    border-color: #0F2A3F;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-secondary:hover {
    background: var(--color-navy);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

/* ==================== Cards ==================== */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.card-content {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==================== Grid ==================== */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==================== Footer ==================== */
.footer {
    background: var(--color-cream);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
}

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

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-link {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.footer-link:hover {
    color: var(--color-navy);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}

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

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

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ==================== Accessibility ==================== */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-navy);
    color: white;
    padding: var(--space-3) var(--space-6);
    z-index: 10000;
    transition: top var(--transition-normal);
}

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

*:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ==================== Vertical Timeline with Sticky Images (Mobile-First) ==================== */

/* Timeline Split Container */
.timeline-split {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Image Gallery - Stacks on top on mobile */
.timeline-gallery {
    width: 100%;
    position: relative;
}

.timeline-gallery-inner {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15);
}

.timeline-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.timeline-img.active {
    opacity: 1;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Vertical Timeline */
.timeline-v {
    position: relative;
    width: 100%;
    padding: var(--space-4) 0;
}

/* ===== MOBILE INLINE IMAGES (NEW - Nov 2025) ===== */
/* 
 * TO REVERT TO OLD BEHAVIOR (sticky gallery on mobile):
 * 1. Remove all .timeline-v-mobile-img rules
 * 2. Remove the media query that hides .timeline-gallery on mobile
 * 3. Remove all <img class="timeline-v-mobile-img"/> tags from index.html
 * 
 * Desktop (1024px+): Shows sticky gallery on left, timeline on right
 * Mobile/Tablet: Shows inline images within each timeline card
 */

/* Hidden on desktop, visible on mobile/tablet */
.timeline-v-mobile-img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
}

/* Hide mobile inline images on desktop (1024px+) */
@media (min-width: 1024px) {
    .timeline-v-mobile-img {
        display: none;
    }
}

/* Hide sticky gallery on mobile/tablet (below 1024px) */
@media (max-width: 1023px) {
    .timeline-gallery {
        display: none;
    }
}

/* ===== END MOBILE INLINE IMAGES ===== */

/* Connecting line */
.timeline-v::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        #F4E4C1 0%,
        #E8D4A0 40%,
        #D4A574 70%,
        rgba(229, 231, 235, 0.5) 100%
    );
    border-radius: 2px;
}

.timeline-v-item {
    position: relative;
    padding-left: var(--space-12);
    padding-bottom: var(--space-10);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.timeline-v-item:hover {
    transform: translateX(5px);
}

.timeline-v-item:last-child {
    padding-bottom: 0;
}

/* Timeline Markers */
.timeline-v-marker {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 100%);
    border: 3px solid #E8D4A0;
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.25);
}

.timeline-v-item.active .timeline-v-marker,
.timeline-v-item:hover .timeline-v-marker {
    transform: scale(1.4);
    background: linear-gradient(135deg, #F4E4C1 0%, #D4A574 100%);
    border-color: #D4A574;
    box-shadow: 0 0 0 6px rgba(244, 228, 193, 0.3),
                0 4px 12px rgba(212, 165, 116, 0.4);
}

.timeline-v-marker-upcoming {
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F5F3 100%);
    border-color: #E5E7EB;
    border-style: dashed;
    border-width: 2px;
}

.timeline-v-item-upcoming.active .timeline-v-marker-upcoming,
.timeline-v-item-upcoming:hover .timeline-v-marker-upcoming {
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 100%);
    border-color: #E8D4A0;
    border-style: solid;
    border-width: 3px;
}

/* Timeline Content */
.timeline-v-content {
    background: var(--color-white);
    border: 1px solid #F0E6D2;
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(212, 165, 116, 0.08);
}

.timeline-v-item.active .timeline-v-content,
.timeline-v-item:hover .timeline-v-content {
    border-color: #E8D4A0;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15),
                0 0 0 1px rgba(244, 228, 193, 0.5);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFCF5 100%);
}

.timeline-v-item-upcoming .timeline-v-content {
    background: linear-gradient(135deg, #FAFAF8 0%, #FFFCF5 100%);
    border-color: #E5E7EB;
}

.timeline-v-item-upcoming.active .timeline-v-content,
.timeline-v-item-upcoming:hover .timeline-v-content {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFCF5 100%);
    border-color: #F0E6D2;
}

.timeline-v-year {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #C9A961;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 50%);
    border-radius: 4px;
}

.timeline-v-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-navy);
    line-height: 1.3;
}

.timeline-v-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Timeline Divider */
.timeline-v-divider {
    position: relative;
    text-align: center;
    margin: var(--space-16) 0 var(--space-12);
    z-index: 3;
}

.timeline-v-divider span {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #A88A53;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
    padding: var(--space-4) var(--space-8);
    border: 2px solid #E8D4A0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

/* Desktop: Split Screen Layout */
@media (min-width: 1024px) {
    .timeline-split {
        flex-direction: row;
        gap: var(--space-12);
        align-items: flex-start;
    }
    
    .timeline-gallery {
        flex: 0 0 45%;
        position: sticky;
        top: 100px;
    }
    
    .timeline-gallery-inner {
        height: 600px;
    }
    
    .timeline-v {
        flex: 1;
    }
    
    .timeline-v::before {
        left: 20px;
    }
    
    .timeline-v-item {
        padding-left: var(--space-16);
    }
    
    .timeline-v-marker {
        left: 11px;
        width: 20px;
        height: 20px;
    }
}

/* Tablet: Adjust spacing */
@media (min-width: 768px) and (max-width: 1023px) {
    .timeline-gallery-inner {
        height: 500px;
    }
    
    .timeline-v-title {
        font-size: 1.25rem;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .timeline-gallery-inner {
        height: 300px;
    }
    
    /* Smaller inline images on phones */
    .timeline-v-mobile-img {
        height: 180px;
    }
    
    .timeline-v-title {
        font-size: 1.125rem;
    }
    
    .timeline-v-description {
        font-size: 0.9375rem;
    }
    
    .timeline-v-content {
        padding: var(--space-4);
    }
    
    .timeline-v-divider span {
        font-size: 1rem;
        padding: var(--space-3) var(--space-6);
    }
}

/* ==================== OLD Horizontal Timeline with Images ==================== */
/*
/* ==================== Horizontal Timeline with Images ==================== */

/* Timeline Hero Image Display */
.timeline-hero {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: var(--space-12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15);
}

.timeline-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.timeline-hero-image.active {
    opacity: 1;
    pointer-events: auto;
}

.timeline-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.timeline-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(26, 58, 82, 0.6), transparent);
}

/* Horizontal Timeline Wrapper */
.timeline-horizontal-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.timeline-horizontal {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #E8D4A0 #F5F5F3;
    padding: var(--space-8) 0;
}

.timeline-horizontal::-webkit-scrollbar {
    height: 8px;
}

.timeline-horizontal::-webkit-scrollbar-track {
    background: #F5F5F3;
    border-radius: 4px;
}

.timeline-horizontal::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #E8D4A0, #D4A574);
    border-radius: 4px;
}

.timeline-horizontal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #D4A574, #C9A961);
}

/* Horizontal Timeline Track */
.timeline-horizontal-track {
    display: flex;
    gap: var(--space-8);
    padding: 0 var(--space-4);
    position: relative;
}

.timeline-horizontal-track::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        to right,
        #F4E4C1 0%,
        #E8D4A0 40%,
        #D4A574 70%,
        rgba(229, 231, 235, 0.5) 100%
    );
    border-radius: 2px;
    z-index: 0;
}

/* Horizontal Timeline Items */
.timeline-h-item {
    flex: 0 0 280px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.timeline-h-item:hover {
    transform: translateY(-5px);
}

/* Timeline Markers */
.timeline-h-marker {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 100%);
    border: 3px solid #E8D4A0;
    border-radius: 50%;
    margin: 0 auto var(--space-4);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.25);
    position: relative;
    z-index: 1;
}

.timeline-h-item.active .timeline-h-marker,
.timeline-h-item:hover .timeline-h-marker {
    transform: scale(1.3);
    background: linear-gradient(135deg, #F4E4C1 0%, #D4A574 100%);
    border-color: #D4A574;
    box-shadow: 0 0 0 6px rgba(244, 228, 193, 0.3),
                0 4px 12px rgba(212, 165, 116, 0.4);
}

.timeline-h-marker-upcoming {
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F5F3 100%);
    border-color: #E5E7EB;
    border-style: dashed;
    border-width: 2px;
}

.timeline-h-item-upcoming.active .timeline-h-marker-upcoming,
.timeline-h-item-upcoming:hover .timeline-h-marker-upcoming {
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 100%);
    border-color: #E8D4A0;
    border-style: solid;
    border-width: 3px;
}

/* Timeline Content Cards */
.timeline-h-content {
    background: var(--color-white);
    border: 1px solid #F0E6D2;
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(212, 165, 116, 0.08);
    min-height: 180px;
}

.timeline-h-item.active .timeline-h-content,
.timeline-h-item:hover .timeline-h-content {
    border-color: #E8D4A0;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15),
                0 0 0 1px rgba(244, 228, 193, 0.5);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFCF5 100%);
}

.timeline-h-item-upcoming .timeline-h-content {
    background: linear-gradient(135deg, #FAFAF8 0%, #FFFCF5 100%);
    border-color: #E5E7EB;
}

.timeline-h-item-upcoming.active .timeline-h-content,
.timeline-h-item-upcoming:hover .timeline-h-content {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFCF5 100%);
    border-color: #F0E6D2;
}

.timeline-h-year {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #C9A961;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 50%);
    border-radius: 4px;
}

.timeline-h-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-navy);
    line-height: 1.3;
}

.timeline-h-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Timeline Divider */
.timeline-h-divider {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
}

.timeline-h-divider span {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #A88A53;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
    padding: var(--space-3) var(--space-6);
    border: 2px solid #E8D4A0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
    white-space: nowrap;
}

/* Navigation Buttons */
.timeline-nav {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
    border: 2px solid #E8D4A0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.15);
}

.timeline-nav:hover {
    background: linear-gradient(135deg, #F4E4C1 0%, #D4A574 100%);
    border-color: #D4A574;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
    transform: scale(1.1);
}

.timeline-nav svg {
    color: #A88A53;
}

.timeline-nav:hover svg {
    color: var(--color-white);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .timeline-hero {
        height: 300px;
        margin-bottom: var(--space-8);
    }
    
    .timeline-h-item {
        flex: 0 0 240px;
    }
    
    .timeline-h-content {
        padding: var(--space-4);
        min-height: 160px;
    }
    
    .timeline-h-title {
        font-size: 1rem;
    }
    
    .timeline-h-description {
        font-size: 0.875rem;
    }
    
    .timeline-nav {
        width: 40px;
        height: 40px;
    }
    
    .timeline-horizontal-wrapper {
        gap: var(--space-2);
    }
}

/* ==================== OLD Vertical Timeline Styles (Keep for reference) ==================== */
/* 
These styles are preserved in case you want to switch back to the vertical timeline.
To use the vertical timeline again:
1. Uncomment the HTML in impact.html
2. Comment out the horizontal timeline HTML
3. Uncomment these CSS styles below
*/

/*
/* ==================== Timeline Styles ==================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8) 0;
}

/* Vertical line connecting timeline items with light golden gradient */
.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        #F4E4C1 0%,
        #E8D4A0 40%,
        #D4A574 70%,
        rgba(229, 231, 235, 0.5) 100%
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    padding-bottom: var(--space-12);
    margin-bottom: var(--space-6);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Timeline marker (circle) with light golden colors */
.timeline-marker {
    position: absolute;
    left: 29px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 100%);
    border: 3px solid #E8D4A0;
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.25);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.4);
    background: linear-gradient(135deg, #F4E4C1 0%, #D4A574 100%);
    border-color: #D4A574;
    box-shadow: 0 0 0 6px rgba(244, 228, 193, 0.3),
                0 4px 12px rgba(212, 165, 116, 0.4);
}

/* Upcoming items - softer, lighter style */
.timeline-marker-upcoming {
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F5F3 100%);
    border-color: #E5E7EB;
    border-style: dashed;
    border-width: 2px;
}

.timeline-item-upcoming:hover .timeline-marker-upcoming {
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 100%);
    border-color: #E8D4A0;
    border-style: solid;
    border-width: 3px;
}

/* Timeline content with light golden accents */
.timeline-content {
    background: var(--color-white);
    border: 1px solid #F0E6D2;
    border-radius: var(--radius-md);
    padding: var(--space-8);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(212, 165, 116, 0.08);
}

.timeline-item:hover .timeline-content {
    border-color: #E8D4A0;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15),
                0 0 0 1px rgba(244, 228, 193, 0.5);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFCF5 100%);
}

.timeline-item-upcoming .timeline-content {
    background: linear-gradient(135deg, #FAFAF8 0%, #FFFCF5 100%);
    border-color: #E5E7EB;
}

.timeline-item-upcoming:hover .timeline-content {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFCF5 100%);
    border-color: #F0E6D2;
}

.timeline-year {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #C9A961;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, #FFF9E6 0%, #F4E4C1 50%);
    border-radius: 4px;
}

.timeline-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-navy);
    line-height: 1.3;
}

.timeline-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Timeline divider for "Upcoming" section with golden styling */
.timeline-divider {
    position: relative;
    text-align: center;
    margin: var(--space-20) 0 var(--space-16);
    z-index: 3;
}

.timeline-divider span {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #A88A53;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
    padding: var(--space-4) var(--space-12);
    border: 2px solid #E8D4A0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
    position: relative;
}

.timeline-divider span::before,
.timeline-divider span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, #E8D4A0);
}

.timeline-divider span::before {
    right: 100%;
    margin-right: var(--space-4);
}

.timeline-divider span::after {
    left: 100%;
    margin-left: var(--space-4);
    background: linear-gradient(to left, transparent, #E8D4A0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-bottom: var(--space-10);
    }
    
    .timeline-item:hover {
        transform: translateX(5px);
    }
    
    .timeline-marker {
        left: 10px;
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    
    .timeline-content {
        padding: var(--space-5);
    }
    
    .timeline-title {
        font-size: 1.125rem;
    }
    
    .timeline-description {
        font-size: 0.9375rem;
    }
    
    .timeline-divider span::before,
    .timeline-divider span::after {
        width: 20px;
    }
}

/* Animation enhancement - stagger effect */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.animated {
    animation: fadeInTimeline 0.6s ease-out forwards;
}

@keyframes fadeInTimeline {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Stagger animation delays for timeline items */
.timeline-item:nth-child(1).animated { animation-delay: 0.1s; }
.timeline-item:nth-child(2).animated { animation-delay: 0.2s; }
.timeline-item:nth-child(3).animated { animation-delay: 0.3s; }
.timeline-item:nth-child(4).animated { animation-delay: 0.4s; }
.timeline-item:nth-child(5).animated { animation-delay: 0.5s; }
.timeline-item:nth-child(7).animated { animation-delay: 0.65s; }
.timeline-item:nth-child(8).animated { animation-delay: 0.75s; }
.timeline-item:nth-child(9).animated { animation-delay: 0.85s; }

/* Golden glow effect on hover */
@keyframes goldenGlow {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(244, 228, 193, 0.3),
                    0 4px 12px rgba(212, 165, 116, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(244, 228, 193, 0.4),
                    0 4px 16px rgba(212, 165, 116, 0.5);
    }
}

.timeline-item:hover .timeline-marker {
    animation: goldenGlow 2s ease-in-out infinite;
}

/* ==================== Image Galleries & Figures ==================== */
.heritage-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15);
    transition: all var(--transition-normal);
}

.heritage-image:hover {
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.25);
    transform: translateY(-2px);
}

.image-figure {
    margin: var(--space-8) 0;
}

.image-caption {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-top: var(--space-3);
    font-style: italic;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFCF5 100%);
    border-left: 3px solid var(--color-gold);
    border-radius: var(--radius-sm);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin: var(--space-12) 0;
}

.image-card {
    background: var(--color-white);
    border: 1px solid #F0E6D2;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

.image-card:hover {
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.2);
    transform: translateY(-4px);
    border-color: #E8D4A0;
}

.image-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.image-card-content {
    padding: var(--space-6);
}

.image-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}

.image-card-caption {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Accent Colors for Visual Interest */
.accent-blue {
    color: #4A7C9B;
}

.accent-terracotta {
    color: var(--color-terracotta);
}

.accent-gold {
    color: var(--color-gold);
}

.highlight-box {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFF9E6 100%);
    border: 1px solid #E8D4A0;
    border-radius: var(--radius-md);
    padding: var(--space-8);
    margin: var(--space-12) 0;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

.heritage-section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold) 0%, #E8D4A0 100%);
    margin: var(--space-8) auto;
    border-radius: 2px;
}

/* Split content layout for text + image */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    margin: var(--space-12) 0;
}

.split-content-reverse {
    direction: rtl;
}

.split-content-reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .split-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .split-content-reverse {
        direction: ltr;
    }
    
    .image-card img {
        height: 220px;
    }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .timeline-item:hover .timeline-marker {
        animation: none;
    }
}
