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

:root {
    /* Color Palette - Modern & Vibrant */
    --primary-color: #E63946;        /* Vibrant red */
    --primary-dark: #C5303D;
    --secondary-color: #F1C40F;      /* Golden yellow */
    --accent-color: #8E44AD;         /* Purple accent */
    --dark: #1D3557;                 /* Navy blue */
    --dark-grey: #2D3E50;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('images/co8w2023.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="200" cy="150" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="500" r="150" fill="rgba(255,255,255,0.1)"/><circle cx="1000" cy="200" r="80" fill="rgba(255,255,255,0.1)"/><circle cx="400" cy="600" r="120" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Private Party Booking Section
   =================================== */
.party-booking {
    padding: var(--spacing-xl) 0;
    background: var(--light-grey);
}

.party-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.party-benefits h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.benefits-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.benefits-list .icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefits-list h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.benefits-list p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Booking Form */
.booking-form-container {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.booking-form h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-note {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-note a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 968px) {
    .party-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, #FFF5F5 0%, #F0F8FF 100%);
    opacity: 0.5;
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-left-color: var(--primary-color);
}

.testimonial-card .stars {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--light-grey);
}

.testimonial-author strong {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonials-footer {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.testimonials-footer p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.testimonials-footer strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
    background: var(--dark);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transform: translateY(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    background: linear-gradient(to top, rgba(230, 57, 70, 0.95), rgba(230, 57, 70, 0.7), transparent);
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 300px;
    }
}

/* ===================================
   Sessions Section
   =================================== */
.sessions {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.session-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-grey) 100%);
    padding: var(--spacing-md);
    border-radius: 15px;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.session-day {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.session-times {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.session-time {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.session-time .time {
    font-weight: 600;
    font-size: 1rem;
}

.session-time .age {
    font-size: 0.875rem;
    opacity: 0.9;
}

.session-time .btn {
    margin-top: 0.5rem;
}

/* ===================================
   Theme Nights Section
   =================================== */
.theme-nights {
    padding: var(--spacing-xl) 0;
    background: var(--light-grey);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.theme-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.theme-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.theme-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.theme-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.info-block {
    margin-bottom: var(--spacing-md);
}

.info-block h3 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-block p {
    color: var(--text-light);
}

.info-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-block a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-grey);
    border-radius: 50px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: var(--spacing-lg);
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.3);
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.cta-box .btn {
    background: var(--white);
    color: var(--primary-color);
}

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

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Main Landing Page Specific Styles
   =================================== */

/* Navigation Subtitle */
.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: -0.25rem;
}

/* Hero Variations */
.hero-main {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('images/RS58774_007_KQED_ChurchOf8WheelsSF_09202022-qut-1020x680.jpg') center/cover no-repeat;
}

.hero-location {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* ===================================
   Introduction Section
   =================================== */
.intro-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

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

.intro-content h2 {
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* ===================================
   Venues Showcase Section
   =================================== */
.venues-showcase {
    padding: var(--spacing-xl) 0;
    background: var(--light-grey);
}

.venues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.venue-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.venue-card-featured {
    border: 3px solid var(--primary-color);
}

.venue-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.venue-card:hover .venue-image img {
    transform: scale(1.05);
}

.venue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: var(--transition);
}

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

.venue-content {
    padding: var(--spacing-lg);
}

.venue-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.venue-tagline {
    font-size: 1.125rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.venue-features {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: var(--light-grey);
    border-radius: 10px;
}

.venue-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.venue-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

@media (min-width: 968px) {
    .venue-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .venue-card-featured {
        grid-column: 1 / -1;
    }

    .venue-image {
        height: auto;
    }
}

/* ===================================
   Private Events Section
   =================================== */
.private-events {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.events-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.event-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.event-type-card {
    background: var(--light-grey);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.event-type-card:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.event-type-card h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-type-card p {
    color: var(--text-light);
}

.event-features {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--light-grey);
    border-radius: 20px;
}

.event-features h3 {
    text-align: center;
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================================
   Booking Section
   =================================== */
.booking-section {
    padding: var(--spacing-xl) 0;
    background: var(--light-grey);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.booking-info h3 {
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.booking-highlights {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    margin: var(--spacing-md) 0;
}

.highlight-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-grey);
}

.highlight-item:last-child {
    border-bottom: none;
}

.direct-contact {
    margin-top: var(--spacing-md);
}

.direct-contact h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.direct-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 968px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   History Section
   =================================== */
.history-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.history-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.history-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 230px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
    text-align: right;
    padding-right: var(--spacing-md);
    line-height: 1.3;
}

.timeline-year::after {
    content: '';
    position: absolute;
    left: 226px;
    top: 8px;
    width: 11px;
    height: 11px;
    background: var(--primary-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--light-grey);
}

.timeline-content {
    background: var(--light-grey);
    padding: var(--spacing-md);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-dark);
    line-height: 1.7;
}

.history-note {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-md);
    background: #FFF9E6;
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
}

.history-note p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
    }

    .timeline-year::after {
        left: 16px;
    }
}

/* ===================================
   Footer Updates
   =================================== */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    margin: 0;
    line-height: 1.8;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

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

/* Success Message */
.success-message {
    background: #27AE60;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}
