/* style.css */

/* -------------------------------------------------------------------------- */
/*                                 CSS Variables                              */
/* -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-primary: 'Manrope', sans-serif; /* For Headings */
    --font-secondary: 'Rubik', sans-serif; /* For Body Text */

    /* Primary Colors (Split-Complementary: Deep Blue base, Orange & Teal accents) */
    --color-primary: #0D47A1;         /* Deep Corporate Blue */
    --color-primary-dark: #002171;
    --color-primary-light: #5472D3;

    --color-accent1: #FF8F00;         /* Vibrant Orange/Amber - Warm Accent */
    --color-accent1-dark: #C56000;
    --color-accent1-light: #FFC046;

    --color-accent2: #00ACC1;         /* Cyan/Teal - Cool Accent (Biomorphic) */
    --color-accent2-dark: #007C91;
    --color-accent2-light: #5DDEF4;

    /* Neutral Colors */
    --color-text: #333333;            /* Dark Gray for main text */
    --color-text-light: #FFFFFF;      /* White for dark backgrounds (Hero text) */
    --color-text-on-primary: #FFFFFF;
    --color-text-on-accent: #FFFFFF;
    --color-text-subtle: #555555;
    --color-background: #FFFFFF;      /* White background */
    --color-background-alt: #f4f6f8;  /* Light Gray for alternating sections */
    --color-border: #dee2e6;
    --color-input-border: #ced4da;
    --color-input-focus-border: var(--color-primary-light);
    --color-overlay: rgba(0, 0, 0, 0.5); /* Overlay for background images with text */

    /* Semantic Colors */
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;

    /* Gradients (Biomorphic & Corporate) */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent2));
    --gradient-accent: linear-gradient(135deg, var(--color-accent1), var(--color-primary-light));
    --gradient-biomorphic-subtle: linear-gradient(45deg, rgba(0, 172, 193, 0.05), rgba(13, 71, 161, 0.05));
    --gradient-hero-overlay: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    --gradient-parallax-overlay: linear-gradient(0deg, rgba(13, 71, 161, 0.7) 0%, rgba(0, 172, 193, 0.5) 100%);


    /* Shadows & Effects */
    --box-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);
    --box-shadow-card: 0 5px 15px rgba(0,0,0,0.08);
    --text-shadow-subtle: 1px 1px 3px rgba(0,0,0,0.3);
    --text-shadow-hero: 1px 1px 5px rgba(0,0,0,0.5);
    --glassmorphism-effect: saturate(180%) blur(10px);

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-xxl: 4rem;    /* 64px */

    --border-radius-sm: 5px;
    --border-radius-md: 10px; /* For cards */
    --border-radius-lg: 20px;
    --border-radius-pill: 50px; /* For buttons */
    /* Biomorphic border-radius: top-left top-right bottom-right bottom-left */
    --border-radius-bio-1: 60% 40% 30% 70% / 50% 50% 50% 50%;
    --border-radius-bio-2: 30% 70% 60% 40% / 60% 40% 60% 40%;


    --container-width: 1200px;
    --header-height: 80px;
    --footer-height: auto;

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-easing: ease-in-out;
}

/* -------------------------------------------------------------------------- */
/*                                Global Resets & Base Styles                 */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.main-container { /* For Barba.js */
    width: 100%;
}

/* Page Transition for Barba.js */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 99999;
    transform: translateY(-100%);
    pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/*                                 Typography                                 */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.8rem; /* ~44.8px */ }
h2 { font-size: 2.2rem; /* ~35.2px */ }
h3 { font-size: 1.8rem; /* ~28.8px */ }
h4 { font-size: 1.4rem; /* ~22.4px */ }

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: 800;
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent1);
    border-radius: var(--border-radius-pill);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-subtle);
}

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing);
}

a:hover, a:focus {
    color: var(--color-accent1-dark);
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm); /* Ensure bullets are visible */
}
ul li, ol li {
    margin-bottom: var(--spacing-xs);
}

strong { font-weight: 500; } /* Rubik medium */

.text-center { text-align: center; }
.text-white { color: var(--color-text-light) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-accent1 { color: var(--color-accent1) !important; }
.text-accent2 { color: var(--color-accent2) !important; }


/* -------------------------------------------------------------------------- */
/*                                 Layout & Container                         */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.section-padding {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

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

/* Basic Column System (Flex-based) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -var(--spacing-sm);
    margin-right: -var(--spacing-sm);
}

.column {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.column.is-two-thirds {
    flex: none;
    width: 66.6666%;
}
.column.is-one-third {
    flex: none;
    width: 33.3333%;
}
.column.is-half {
    flex: none;
    width: 50%;
}
.column.is-full {
    flex: none;
    width: 100%;
}


/* -------------------------------------------------------------------------- */
/*                                 Buttons (GLOBAL)                           */
/* -------------------------------------------------------------------------- */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-pill); /* Biomorphic touch */
    transition: all var(--transition-speed-normal) var(--transition-easing);
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: var(--box-shadow-soft);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}
.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 13, 71, 161), 0.25); /* Fallback RGB for primary */
}
/* Ensure :root has --color-primary-rgb or define it here if needed for box-shadow */
:root { --color-primary-rgb: 13, 71, 161; } /* For box-shadow focus */

.btn-primary {
    background-color: var(--color-accent1);
    color: var(--color-text-on-accent);
    border-color: var(--color-accent1);
}
.btn-primary:hover {
    background-color: var(--color-accent1-dark);
    border-color: var(--color-accent1-dark);
    color: var(--color-text-on-accent);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-on-primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-accent1);
    border-color: var(--color-accent1);
}
.btn-outline-primary:hover {
    background-color: var(--color-accent1);
    color: var(--color-text-on-accent);
}

.btn-sm {
    font-size: 0.875rem;
    padding: var(--spacing-xs) var(--spacing-md);
}
.btn-lg {
    font-size: 1.25rem;
    padding: var(--spacing-md) var(--spacing-xl);
}

/* -------------------------------------------------------------------------- */
/*                                 Forms (GLOBAL)                             */
/* -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
    background-clip: padding-box;
    border: 1px solid var(--color-input-border);
    border-radius: var(--border-radius-md); /* Softer biomorphic edge */
    transition: border-color var(--transition-speed-fast) var(--transition-easing), box-shadow var(--transition-speed-fast) var(--transition-easing);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-input-focus-border);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
}
.form-group-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: var(--spacing-xs);
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent1);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    position: relative;
    top: -2px;
}
.form-group-checkbox input[type="checkbox"]:checked {
    background-color: var(--color-accent1);
}
.form-group-checkbox input[type="checkbox"]:checked::after {
    content: '✔';
    color: white;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.form-group-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-family: var(--font-secondary);
    color: var(--color-text-subtle);
}


/* -------------------------------------------------------------------------- */
/*                                 Header & Navigation                        */
/* -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glassmorphism-effect);
    box-shadow: var(--box-shadow-soft);
    height: var(--header-height);
    transition: background-color var(--transition-speed-normal) var(--transition-easing),
                box-shadow var(--transition-speed-normal) var(--transition-easing);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}
.site-header .logo:hover {
    color: var(--color-primary-dark);
}

.main-nav ul {
    list-style: none;
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
}

.main-nav li {
    margin-left: var(--spacing-lg);
}

.main-nav a {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-subtle);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-speed-normal) var(--transition-easing);
}

.main-nav a:hover,
.main-nav a.active { /* Add .active class via JS for current page/section */
    color: var(--color-accent1);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent1);
    transition: width var(--transition-speed-normal) var(--transition-easing);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.burger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above nav */
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition-speed-normal) var(--transition-easing);
}

/* Burger menu active states (for JS toggle) */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 85vh; /* Or adjust as needed for content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light); /* IMPORTANT: Hero text white */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-overlay); /* IMPORTANT: Darkened background */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 3.5rem; /* ~56px */
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light); /* IMPORTANT */
    text-shadow: var(--text-shadow-hero);
}

.hero-subtitle {
    font-size: 1.4rem; /* ~22.4px */
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light); /* IMPORTANT */
    opacity: 0.9;
}

.hero-section .btn-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */
/*                                 Page Hero (for subpages)                   */
/* -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
}

.page-hero .hero-overlay { /* Re-use hero-overlay if needed */
    background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(13, 71, 161, 0.5));
}
.page-hero .hero-title {
    font-size: 2.8rem;
    color: var(--color-text-light);
    text-shadow: var(--text-shadow-hero);
}
.page-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* Padding for content pages like privacy, terms */
.content-page {
    padding-top: calc(var(--header-height) + var(--spacing-xl)); /* IMPORTANT */
    padding-bottom: var(--spacing-xl);
}
.content-page h2 { margin-top: var(--spacing-lg); }
.content-page h3 { margin-top: var(--spacing-md); }


/* -------------------------------------------------------------------------- */
/*                                 Parallax Backgrounds                       */
/* -------------------------------------------------------------------------- */
.parallax-background {
    background-attachment: fixed; /* Simple CSS Parallax */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-text-light);
}

.parallax-background .section-title,
.parallax-background .section-subtitle,
.parallax-background .stat-description,
.parallax-background .section-text-contrast {
    color: var(--color-text-light);
    position: relative;
    z-index: 2;
}
.parallax-background .section-title::after {
    background-color: var(--color-accent1-light);
}
.parallax-background .testimonials-overlay,
.parallax-background .statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-parallax-overlay); /* IMPORTANT: Darkened background */
    z-index: 1;
}


/* -------------------------------------------------------------------------- */
/*                                 Cards (GLOBAL)                             */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-card);
    transition: transform var(--transition-speed-normal) var(--transition-easing),
                box-shadow var(--transition-speed-normal) var(--transition-easing);
    overflow: hidden; /* Ensures content respects border-radius */
    display: flex; /* STRICT */
    flex-direction: column; /* STRICT */
    align-items: center; /* STRICT */
    text-align: center; /* STRICT - for inline/inline-block content inside */
    height: 100%; /* For consistent height in grids */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.card-image { /* STRICT: Container for image */
    width: 100%;
    overflow: hidden; /* Important for object-fit */
    /* Fixed height for image containers can be set per section if needed, or aspect ratio */
}
.card-image img {
    width: 100%;
    height: 200px; /* Example fixed height - adjust per section if needed */
    object-fit: cover; /* STRICT */
    display: block; /* Removes bottom space */
    margin: 0 auto; /* STRICT - though flex on parent handles centering */
    transition: transform var(--transition-speed-normal) var(--transition-easing);
}

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

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if any */
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}
.card-content .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

/* Read More Link Styling */
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-accent1);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-speed-normal) var(--transition-easing);
}
.read-more-link::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-speed-normal) var(--transition-easing);
    display: inline-block;
}
.read-more-link:hover {
    color: var(--color-accent1-dark);
}
.read-more-link:hover::after {
    transform: translateX(5px);
}


/* -------------------------------------------------------------------------- */
/*                                 Section: History                           */
/* -------------------------------------------------------------------------- */
.history-section .history-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
}
.history-section .history-text {
    flex: 1;
    min-width: 300px; /* Adjust for responsiveness */
}
.history-section .history-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* Control image size */
    margin: 0 auto; /* Center if it becomes a single column */
}
.history-section .history-image-container .card-image img {
    border-radius: var(--border-radius-bio-1);
    box-shadow: var(--box-shadow-medium);
    height: auto; /* Natural height */
    max-height: 450px;
}

/* -------------------------------------------------------------------------- */
/*                                 Section: Statistics                        */
/* -------------------------------------------------------------------------- */
.statistics-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.statistics-section .stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism on parallax */
    backdrop-filter: var(--glassmorphism-effect);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-icon-bio {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md) auto;
    background-color: var(--color-accent1-light); /* Biomorphic bg */
    border-radius: var(--border-radius-bio-2); /* Biomorphic shape */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}
.stat-icon-bio img {
    max-width: 50px;
    max-height: 50px;
}

.statistics-section .stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent1-light);
    display: block;
    margin-bottom: var(--spacing-xs);
}
.statistics-section .stat-description {
    font-size: 1rem;
    color: var(--color-text-light); /* Already set by parallax parent */
    opacity: 0.9;
}
.statistics-section .section-text-contrast {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* -------------------------------------------------------------------------- */
/*                                 Section: Research                          */
/* -------------------------------------------------------------------------- */
.research-section .research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.research-card .card-image img {
    height: 220px; /* Specific height for research cards */
}


/* -------------------------------------------------------------------------- */
/*                                 Section: Stations Map                      */
/* -------------------------------------------------------------------------- */
.stations-map-section .map-placeholder {
    width: 100%;
    min-height: 400px; /* Placeholder visual height */
    background-color: var(--color-background-alt);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg);
    border: 1px dashed var(--color-border);
}
.stations-map-section .map-placeholder img {
    max-width: 100%;
    max-height: 300px; /* Control placeholder image */
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
    border-radius: var(--border-radius-sm);
}
.stations-map-section .map-placeholder-text {
    color: var(--color-text-subtle);
    font-style: italic;
}


/* -------------------------------------------------------------------------- */
/*                      Section: Events Overview (Carousel)                   */
/* -------------------------------------------------------------------------- */
/* Basic styling for carousel wrapper, actual carousel JS will handle items */
.content-carousel {
    display: flex; /* Simplistic representation for multiple items */
    overflow-x: auto; /* Allow horizontal scrolling if items exceed width */
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-md); /* Space for scrollbar if any */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.content-carousel::-webkit-scrollbar { /* Chrome, Safari, Opera */
    display: none;
}

.content-carousel .carousel-item {
    flex: 0 0 auto; /* Prevent items from shrinking/growing */
    width: 320px; /* Adjust card width as needed */
    max-width: 90vw;
}
.events-carousel .card-image img { height: 180px; }
.events-carousel .event-date {
    font-size: 0.9rem;
    color: var(--color-accent2);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}


/* -------------------------------------------------------------------------- */
/*                                 Section: Events Calendar                   */
/* -------------------------------------------------------------------------- */
.events-calendar-section .calendar-placeholder {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.calendar-month h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent2-light);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}
.calendar-month ul {
    list-style: none;
    padding-left: 0;
}
.calendar-month li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px dashed var(--color-border);
}
.calendar-month li:last-child {
    border-bottom: none;
}
.calendar-month li strong {
    color: var(--color-accent1);
}
.calendar-month li em {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    display: block;
}
.calendar-note {
    text-align: center;
    font-style: italic;
    color: var(--color-text-subtle);
    margin-top: var(--spacing-md);
}


/* -------------------------------------------------------------------------- */
/*                                 Section: Gallery                           */
/* -------------------------------------------------------------------------- */
.gallery-section .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.gallery-item.card .card-image img {
    height: 180px; /* Adjust height for gallery items */
    cursor: pointer; /* For lightbox */
}
.gallery-item.card .card-content p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0;
}
.gallery-section .section-text {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-lg) auto 0 auto;
}

/* Lightbox styles (basic - implement with JS library) */
/* You would need a JS library like Lightbox2 or Fancybox for full functionality */
/* These are just placeholders if you build custom */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: none; /* Toggle with JS */
    align-items: center;
    justify-content: center;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}


/* -------------------------------------------------------------------------- */
/*                                 Section: Testimonials                      */
/* -------------------------------------------------------------------------- */
.testimonials-section { color: var(--color-text-light); } /* Parallax handles text color */
.testimonials-section .section-title::after { background-color: var(--color-accent1-light); }

.testimonials-carousel .testimonial-card {
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism */
    backdrop-filter: var(--glassmorphism-effect);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    width: 350px; /* Adjust width as needed for carousel */
}
.testimonials-carousel .testimonial-card .card-image {
    padding-top: var(--spacing-md); /* Space for avatar */
    height: auto; /* Natural height for avatar wrapper */
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Circle avatar */
    object-fit: cover;
    border: 3px solid var(--color-accent1-light);
    margin-bottom: var(--spacing-sm);
}
.testimonial-card blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}
.testimonial-card blockquote footer {
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-accent1-light);
}

/* -------------------------------------------------------------------------- */
/*                                 Section: Press                             */
/* -------------------------------------------------------------------------- */
.press-section .press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.press-article.card {
    text-align: left; /* Override card default center for article text */
    align-items: flex-start;
}
.press-article .card-image {
    width: auto; /* Let image take natural width or set max-width */
    max-width: 200px;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-md) 0 var(--spacing-md);
}
.press-article .card-image img {
    height: auto; /* Natural height for logos */
    max-height: 50px;
    object-fit: contain; /* Ensure logo is not cropped */
}
.press-article .card-content {
    text-align: left;
}
.press-article h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
}
.press-article .press-date {
    font-size: 0.9rem;
    color: var(--color-accent2);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}


/* -------------------------------------------------------------------------- */
/*                                 Section: External Resources                */
/* -------------------------------------------------------------------------- */
.external-resources-section .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.resource-card.card {
    text-align: left;
    align-items: flex-start;
}
.resource-card .card-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}
.resource-card .card-content h3 a {
    color: var(--color-primary);
}
.resource-card .card-content h3 a:hover {
    color: var(--color-accent1);
}
.resource-card .card-content p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}
.resource-card .resource-source {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    font-style: italic;
    display: block;
    margin-top: auto; /* Pushes to bottom */
}


/* -------------------------------------------------------------------------- */
/*                                 Section: FAQ                               */
/* -------------------------------------------------------------------------- */
.faq-section .faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--box-shadow-soft);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: var(--spacing-md);
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed-fast) var(--transition-easing);
}
.faq-question:hover {
    background-color: var(--color-background-alt);
}
.faq-question::after { /* Arrow icon */
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent1);
    transition: transform var(--transition-speed-normal) var(--transition-easing);
}
.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed-normal) var(--transition-easing),
                padding var(--transition-speed-normal) var(--transition-easing);
}
.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
}


/* -------------------------------------------------------------------------- */
/*                                 Section: Contact                           */
/* -------------------------------------------------------------------------- */
.contact-section .contact-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}
.contact-form {
    flex: 2; /* Takes more space */
    min-width: 300px;
}
.contact-details {
    flex: 1;
    min-width: 280px;
    background-color: var(--color-primary-light); /* Biomorphic accent bg */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    color: var(--color-text-light);
}
.contact-details h3, .contact-details h4 {
    color: var(--color-text-light);
    font-weight: 700;
}
.contact-details h3 { margin-bottom: var(--spacing-md); }
.contact-details h4 { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-sm); }
.contact-details p, .contact-details li, .contact-details a {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}
.contact-details p img, .contact-details li img { /* For inline icons */
    margin-right: var(--spacing-xs);
    vertical-align: middle;
    filter: brightness(0) invert(1); /* Make SVG icons white if they are dark */
}
.contact-details a:hover {
    color: var(--color-accent1-light);
    opacity: 1;
}
.contact-details .social-links-contact {
    list-style: none;
    padding-left: 0;
}
.contact-details .social-links-contact li a {
    text-decoration: none;
    font-weight: 500;
}

/* Contact Page specific map */
.map-section .map-responsive {
    overflow: hidden;
    padding-bottom: 50%; /* Aspect ratio (e.g., 2:1 for height:width) */
    position: relative;
    height: 0;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border:0;
}

/* Contact page form (contacts.html) */
#contact-form-page .contact-form-container {
    background-color: transparent; /* No extra background on contact page */
    box-shadow: none;
    padding: 0;
}
#contact-form-page .contact-form {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}
#contact-form-page .contact-info-block {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}
#contact-form-page .contact-info-block h3,
#contact-form-page .contact-info-block h4,
#contact-form-page .contact-info-block p,
#contact-form-page .contact-info-block li,
#contact-form-page .contact-info-block a {
    color: var(--color-text-light);
}
#contact-form-page .contact-info-block a:hover {
    color: var(--color-accent1-light);
}
#contact-form-page .contact-info-block ul {
    list-style: none;
    padding-left: 0;
}
#contact-form-page .contact-info-block li img {
    filter: brightness(0) invert(1);
}

/* -------------------------------------------------------------------------- */
/*                                 Footer                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    font-size: 0.95rem;
}

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

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent1);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}
.footer-column li {
    margin-bottom: var(--spacing-xs);
}
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing),
                padding-left var(--transition-speed-fast) var(--transition-easing);
}
.footer-column a:hover {
    color: var(--color-accent1-light);
    padding-left: 5px; /* Subtle hover effect */
    text-decoration: none;
}

.social-links-footer { /* IMPORTANT: Text social links */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping if many links */
    gap: var(--spacing-sm);
}
.social-links-footer li a {
    font-weight: 500;
    padding: var(--spacing-xs) 0; /* Add some padding for easier clicking */
}
.social-links-footer li a:hover {
    color: var(--color-accent1-light);
    padding-left: 0; /* Override general hover if needed */
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}
.copyright p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}


/* -------------------------------------------------------------------------- */
/*                                 Success Page (success.html)                */
/* -------------------------------------------------------------------------- */
.success-page-content {
    min-height: calc(100vh - var(--header-height) - var(--footer-height)); /* IMPORTANT */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height); /* Account for fixed header */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.success-page-content .container { /* Ensure container takes full height if needed */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.success-icon-container img {
    margin-bottom: var(--spacing-lg);
    width: 100px;
    height: 100px;
}
.page-title-success {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}
.success-message {
    font-size: 1.2rem;
    color: var(--color-text-subtle);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}
.success-message a {
    font-weight: 500;
}


/* -------------------------------------------------------------------------- */
/*                                 Cookie Popup                               */
/* -------------------------------------------------------------------------- */
#cookie-popup {
    /* HTML already provides: position, bottom, left, width, background, color, padding, text-align, z-index, box-shadow */
    /* Add any refinements or biomorphic touches if desired */
    font-family: var(--font-secondary);
}
#cookie-popup p {
    color: #e0e0e0;
    margin-bottom: var(--spacing-md) !important; /* Override inline style if necessary */
}
#cookie-popup a {
    color: var(--color-accent2-light) !important; /* Ensure high contrast */
    font-weight: 500;
}
#cookie-popup #accept-cookies {
    /* HTML provides: background-color, color, border, padding, font-size, border-radius, cursor, transition */
    font-family: var(--font-primary);
    font-weight: 700;
}
#cookie-popup #accept-cookies:hover {
    background-color: var(--color-accent1-dark) !important;
}


/* -------------------------------------------------------------------------- */
/*                                 Responsive Design                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .column.is-two-thirds,
    .column.is-one-third,
    .column.is-half {
        width: 100%;
        flex: 1 1 100%; /* Ensure columns stack */
    }
    .columns {
        margin-left: 0;
        margin-right: 0;
    }
    .column {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: var(--spacing-md); /* Add space between stacked columns */
    }
    .column:last-child {
        margin-bottom: 0;
    }

    .contact-form-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    html { font-size: 15px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .page-hero .hero-title { font-size: 2.2rem; }

    .section-padding {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .main-nav {
        display: none; /* Hide on mobile by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: var(--box-shadow-medium);
        padding: var(--spacing-sm) 0;
        flex-direction: column;
        text-align: center;
    }
    .main-nav.active { /* JS toggles this class */
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav li {
        margin-left: 0;
        width: 100%;
    }
    .main-nav a {
        display: block;
        padding: var(--spacing-md) var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav li:last-child a {
        border-bottom: none;
    }
    .main-nav a::after {
        display: none; /* No underline effect on mobile nav items */
    }

    .burger-menu {
        display: block;
    }

    .stats-grid,
    .research-grid,
    .image-gallery,
    .press-grid,
    .resources-grid,
    .calendar-grid {
        grid-template-columns: 1fr; /* Stack items */
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links-footer {
        justify-content: center;
    }

    .history-section .history-content {
        flex-direction: column;
    }
     .history-section .history-image-container {
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    html { font-size: 14px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .page-hero .hero-title { font-size: 1.8rem; }

    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    .content-carousel .carousel-item {
        width: 90vw; /* Make carousel items wider on small screens */
    }
}
.testimonial-card blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: #938e8e;
}