/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1. Global Styles & Resets
2. CSS Variables
3. Utility Classes
4. Header & Navigation
5. Footer
6. Buttons & Forms
7. Hero Section
8. Card Styles (Generic & Specific)
9. Section-Specific Styles
    - Methodology (Timeline)
    - Insights (Grid, Modals)
    - History (Timeline)
    - Partners (Grid)
    - Resources (Grid)
    - FAQ (Accordion)
    - Media (Grid)
    - Contact (Form, Details)
10. Curved Dividers (Retro / Curved Grids Element)
11. Particle Animation Container
12. Modals
13. Responsive Design
14. Specific Page Styles (Success, Privacy, Terms)
15. Cookie Popup
-------------------------------------------------------------------*/

/* 1. Global Styles & Resets
-------------------------------------------------------------------*/
*,
*::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);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 80px; /* Adjust if header height changes */
}

#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content-wrap {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-headings);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; } /* Approx 44.8px */
h2 { font-size: 2.2rem; } /* Approx 35.2px */
h3 { font-size: 1.6rem; } /* Approx 25.6px */
h4 { font-size: 1.2rem; } /* Approx 19.2px */

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-subtle);
    font-weight: 400;
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

/* 2. CSS Variables
-------------------------------------------------------------------*/
:root {
    /* Triad Color Scheme (Retro Inspired) */
    --color-primary: #D2691E;       /* Chocolate - Main warm, earthy */
    --color-primary-dark: #A0522D;   /* Sienna - Darker primary */
    --color-secondary-1: #1E9DD2;    /* Bright Blue - Cool contrast */
    --color-secondary-1-dark: #187CAC;
    --color-secondary-2: #4E878C;    /* Muted Teal/Green - Another cool contrast */
    --color-secondary-2-dark: #3E6B6F;

    --color-accent: #FF7F50;         /* Coral - Vibrant accent, related to primary */
    --color-accent-dark: #E57345;

    /* Text Colors */
    --color-text: #3A3A3A;           /* Dark Gray - Main body text */
    --color-text-light: #FFFFFF;     /* White - For dark backgrounds */
    --color-text-subtle: #585858;    /* Lighter Gray - Secondary text, paragraphs */
    --color-headings: #2A2A2A;       /* Very Dark Gray - For all H tags */

    /* Background Colors */
    --color-background: #FFF8DC;     /* Cornsilk - Main page background (warm off-white) */
    --color-background-alt: #F5F5DC; /* Beige - Alternate section background */
    --color-background-dark: #2c2c2c;/* Dark background for footer or specific elements */

    /* Borders & Shadows */
    --color-border: #DDCDBB;         /* Muted border for cards, inputs */
    --border-radius-sm: 8px;        /* Slightly more rounded for retro feel */
    --border-radius-md: 12px;
    --box-shadow-light: 0 4px 10px rgba(0,0,0,0.08);
    --box-shadow-medium: 0 6px 15px rgba(0,0,0,0.12);
    --text-shadow-subtle: 1px 1px 3px rgba(0,0,0,0.4);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;   /* Headings */
    --font-secondary: 'Work Sans', sans-serif; /* Body text */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem; /* Increased for better visual hierarchy */
    --spacing-xl: 4rem;
    --section-padding: var(--spacing-xl) 0;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;

    /* Max Width */
    --container-max-width: 1140px;

    /* Glassmorphism (Subtle) */
    --glass-effect-background: rgba(255, 255, 255, 0.05); /* Very subtle on light backgrounds */
    --glass-effect-background-dark: rgba(40, 40, 40, 0.2); /* For dark backgrounds */
    --glass-effect-blur: blur(8px);
}

/* 3. Utility Classes
-------------------------------------------------------------------*/
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.section-padding {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    position: relative; /* For curved dividers */
}

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

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
    color: var(--color-headings);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after { /* Retro underline style */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

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

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* 4. Header & Navigation
-------------------------------------------------------------------*/
#main-header {
    background-color: rgba(255, 248, 220, 0.9); /* var(--color-background) with opacity */
    backdrop-filter: var(--glass-effect-blur);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--box-shadow-light);
    transition: background-color var(--transition-speed) var(--transition-ease);
}

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

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

#main-nav ul {
    display: flex;
    align-items: center;
}

#main-nav li {
    margin-left: var(--spacing-md);
}

#main-nav a {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed) var(--transition-ease), background-color var(--transition-speed) var(--transition-ease);
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--color-primary-dark);
    background-color: rgba(210, 105, 30, 0.1); /* Light primary bg */
}

#mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-primary);
    position: relative;
    border-radius: 2px;
    transition: all var(--transition-speed) var(--transition-ease);
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-speed) var(--transition-ease);
}

.burger-icon::before { top: -8px; }
.burger-icon::after { bottom: -8px; }

/* Mobile menu open state */
#mobile-menu-toggle[aria-expanded="true"] .burger-icon {
    background-color: transparent; /* Middle bar disappears */
}
#mobile-menu-toggle[aria-expanded="true"] .burger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-toggle[aria-expanded="true"] .burger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* 5. Footer
-------------------------------------------------------------------*/
#main-footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

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

.footer-column h4 {
    color: var(--color-primary); /* Use primary for footer headings */
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.footer-column p,
.footer-column ul li a {
    color: #cccccc; /* Lighter text for footer */
    font-size: 0.95rem;
}
.footer-column ul li a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

ul.social-links-text li a {
    display: inline-block;
    padding: var(--spacing-xs) 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #444444;
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* 6. Buttons & Forms
-------------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: 0.8em 1.8em; /* Generous padding */
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    text-align: center;
    box-shadow: var(--box-shadow-light);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-medium);
}

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

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

.btn-link { /* For "Read More" like links, not a real button */
    background-color: transparent;
    color: var(--color-accent);
    padding: 0.5em 0;
    text-decoration: none;
    font-weight: 600;
    border: none;
    box-shadow: none;
    position: relative; /* For underline effect */
}
.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) var(--transition-ease);
}
.btn-link:hover::after {
    transform: scaleX(1);
}
.btn-link:hover {
    color: var(--color-accent-dark);
    transform: none; /* No Y transform for links */
    box-shadow: none;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: #fff;
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2); /* Primary color focus ring */
}

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

/* 7. Hero Section
-------------------------------------------------------------------*/
.hero-section {
    position: relative;
    min-height: 85vh; /* Ensure it's substantial but not overly large */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0; /* Add padding for content */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Darker overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5); /* Enhanced shadow */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind overlay and content */
}

/* 8. Card Styles (Generic & Specific)
-------------------------------------------------------------------*/
.card {
    background-color: #fff; /* White cards for contrast on light backgrounds */
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
}

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

.card .image-container, /* Handles direct children .image-container */
.card > .card-image {   /* Handles structure like <div class="card-image"><img ...></div> */
    width: 100%;
    height: 220px; /* Fixed height for card images */
    overflow: hidden;
    position: relative; /* For potential overlays on images */
}

.card .image-container img,
.card > .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--transition-ease);
}

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

.card-content {
    padding: var(--spacing-md);
    text-align: center; /* Center content within the card */
    flex-grow: 1; /* Allows content to fill space for equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-headings);
}
.card-content p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1; /* Allows paragraph to take available space */
}
.card-content .btn {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: center; /* Center button if text isn't centered by default */
}

/* Grids for cards */
.insights-grid, .resources-grid, .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}


/* 9. Section-Specific Styles
-------------------------------------------------------------------*/

/* Methodology & History (Timelines) */
.timeline, .history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before, .history-timeline::before { /* Central line */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-primary-dark);
    border-radius: 2px;
}

.timeline-item, .history-event {
    padding: var(--spacing-sm) var(--spacing-lg);
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 50%;
    background-color: rgba(255,255,255,0.7); /* Slightly transparent cards */
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
}

.timeline-item:nth-child(odd), .history-event:nth-child(odd) {
    left: 0;
    padding-right: calc(var(--spacing-lg) + 30px); /* Space for icon/year */
    text-align: right;
}
.timeline-item:nth-child(even), .history-event:nth-child(even) {
    left: 50%;
    padding-left: calc(var(--spacing-lg) + 30px);
}

/* Timeline Icons / History Years */
.timeline-icon, .history-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-icon {
    width: 60px;
    height: 60px;
}
.timeline-icon img {
    width: 30px;
    height: 30px;
}
.history-year {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid var(--color-background); /* Retro border */
}

.timeline-item:nth-child(odd) .timeline-icon,
.history-event:nth-child(odd) .history-year {
    right: -30px; /* Half of icon width from center line */
    transform: translate(50%, -50%);
}
.timeline-item:nth-child(even) .timeline-icon,
.history-event:nth-child(even) .history-year {
    left: -30px;
    transform: translate(-50%, -50%);
}

.timeline-content h3, .history-description h4 {
    color: var(--color-primary-dark);
    margin-top: 0;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}
.partner-logo {
    text-align: center;
    padding: var(--spacing-sm);
}
.partner-logo img {
    max-height: 75px;
    width: auto;
    margin: 0 auto var(--spacing-xs);
    filter: grayscale(80%); /* Retro feel, color on hover */
    transition: filter var(--transition-speed) var(--transition-ease);
}
.partner-logo img:hover {
    filter: grayscale(0%);
}
.partner-logo p {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    margin-bottom: 0;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden; /* For smooth transition */
}
.faq-question {
    width: 100%;
    background-color: #fff;
    padding: var(--spacing-md);
    text-align: left;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-headings);
    cursor: pointer;
    position: relative; /* For icon */
    transition: background-color var(--transition-speed) var(--transition-ease);
}
.faq-question:hover {
    background-color: var(--color-background-alt);
}
.faq-question::after { /* Toggle icon */
    content: '+';
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-speed) var(--transition-ease);
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    padding: 0 var(--spacing-md);
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) var(--transition-ease), padding var(--transition-speed) var(--transition-ease);
}
.faq-answer p {
    padding: var(--spacing-md) 0;
    margin-bottom: 0; /* Remove default p margin */
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed, large enough for content */
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
}

/* Contact Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
}
.contact-details {
    text-align: center;
}
.contact-details h3 {
    margin-bottom: var(--spacing-md);
}
.contact-details p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-icon {
    margin-right: var(--spacing-xs);
    color: var(--color-primary); /* Style SVG icons if used */
}

/* 10. Curved Dividers (Retro / Curved Grids Element)
   These divs are empty in HTML. Styling them with CSS for a simple skewed effect.
   Assumes SVG will be injected or a different CSS shape is preferred.
   The color logic for these is complex with pure CSS.
   The shape will use the --color-background, assuming it overlays an alt-background section.
*/
.curved-divider {
    position: absolute;
    width: 100%;
    height: 80px; /* Height of the curved effect area */
    left: 0;
    overflow: hidden;
    pointer-events: none; /* So it doesn't interfere with clicks */
    z-index: 0; /* Behind section content if needed, but usually visually part of edge */
}

.curved-divider.top {
    top: 0;
    transform: translateY(-99%); /* Pulls it slightly outside the parent section */
}

.curved-divider.bottom {
    bottom: 0;
    transform: translateY(99%); /* Pushes it slightly outside */
}

/* Example: Simple CSS "wave" using pseudo-elements */
.curved-divider::before {
    content: "";
    display: block;
    position: absolute;
    width: 150%;
    height: 100px;
    left: -25%;
    border-radius: 50%;
    /* The color of the curve should ideally be the color of the *adjacent* section */
    /* This makes it look like one section's edge is curved into the other. */
}

/* If the divider is inside an .alt-background section: */
.alt-background > .curved-divider.top::before {
    background-color: var(--color-background); /* Matches the standard background */
    bottom: 30px; /* Adjust vertical position of curve */
}
.alt-background > .curved-divider.bottom::before {
    background-color: var(--color-background);
    top: 30px;
}

/* If the divider is inside a standard background section: */
.section-padding:not(.alt-background) > .curved-divider.top::before {
    background-color: var(--color-background-alt); /* Matches the alt background */
    bottom: 30px;
}
.section-padding:not(.alt-background) > .curved-divider.bottom::before {
    background-color: var(--color-background-alt);
    top: 30px;
}


/* 11. Particle Animation Container (Styled in Hero) */

/* 12. Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is long */
    background-color: rgba(0,0,0,0.7); /* Dark overlay */
    backdrop-filter: var(--glass-effect-blur); /* Glassmorphism */
}

.modal-content {
    background-color: var(--color-background);
    margin: 10vh auto; /* Centered, with space from top */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    max-width: 700px; /* Or percentage based */
    width: 85%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalOpen 0.5s var(--transition-ease) forwards;
}

@keyframes modalOpen {
    from { opacity: 0; transform: translateY(-50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-button {
    color: var(--color-text-subtle);
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* 13. Responsive Design
-------------------------------------------------------------------*/
@media (max-width: 992px) { /* Tablets and larger phones */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .timeline-item, .history-event {
        width: 100%;
        left: 0 !important; /* Stack them */
        padding-left: calc(var(--spacing-lg) + 40px) !important; /* 40px is half icon/year width */
        padding-right: var(--spacing-lg) !important;
        text-align: left !important;
        margin-left: 2px; /* To be to the right of the timeline bar */
    }
    .timeline::before, .history-timeline::before {
        left: 22px; /* Align with icon center (half of 40px + half of 4px line) */
        transform: translateX(0);
    }
    .timeline-item .timeline-icon, .history-event .history-year {
        left: 0 !important; /* Position icon/year to the left of the item */
        transform: translate(-50%, -50%) !important; /* Center on the timeline bar */
    }
    .timeline-item:nth-child(odd) .timeline-icon,
    .history-event:nth-child(odd) .history-year,
    .timeline-item:nth-child(even) .timeline-icon,
    .history-event:nth-child(even) .history-year {
        left: 0px !important; /* Position icon/year to the left of the item */
        transform: translate(-50%, -50%) !important; /* Center on the timeline bar */
        /* Recalculate based on timeline bar position */
        left: calc(22px - (var(--timeline-icon-width, 60px) / 2)) !important; /* Adjust if icon size changes */
    }
     .timeline-icon { --timeline-icon-width: 60px; }
    .history-year { --timeline-icon-width: 80px; }
}

@media (max-width: 768px) { /* Mobile devices */
    body {
        padding-top: 70px; /* Adjust for potentially smaller header */
    }
    #main-header {
        padding: var(--spacing-xs) 0;
    }
    #main-nav .nav-links {
        display: none; /* Hide desktop links */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: var(--box-shadow-light);
        padding: var(--spacing-sm) 0;
        border-top: 1px solid var(--color-border);
    }
    #main-nav .nav-links.active {
        display: flex; /* Show when toggled */
    }
    #main-nav li {
        margin: var(--spacing-xs) var(--spacing-md);
        width: calc(100% - 2 * var(--spacing-md));
        text-align: center;
    }
    #main-nav a {
        display: block; /* Make links full width */
        padding: var(--spacing-sm);
    }
    #mobile-menu-toggle {
        display: block; /* Show burger icon */
    }

    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .section-title { font-size: 2rem; }
    .section-intro { font-size: 1rem; }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column ul {
        padding-left: 0;
    }
    .footer-column ul li a {
        display: inline-block;
    }
    .timeline::before, .history-timeline::before {
        left: 20px;
    }
    .timeline-item, .history-event {
        padding-left: calc(var(--spacing-md) + 40px) !important;
    }
    .timeline-item .timeline-icon,
    .history-event .history-year {
        /* Re-adjust for 20px timeline bar */
         left: calc(20px - (var(--timeline-icon-width, 60px) / 2)) !important;
    }
}


/* 14. Specific Page Styles
-------------------------------------------------------------------*/
/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Full viewport height minus header */
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--color-background); /* Or a specific success page background */
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
}
.success-page-container .icon-success {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    fill: var(--color-secondary-2); /* Green for success */
}

/* Privacy & Terms Pages */
.privacy-page-container,
.terms-page-container {
    padding-top: var(--spacing-lg); /* Initial padding from header is already on body */
    padding-bottom: var(--spacing-xl);
}
.privacy-page-container .container,
.terms-page-container .container {
     /* Body already has padding-top from fixed header. This ensures content starts below. */
     /* If header height is dynamic, JS might be needed for perfect alignment, or ensure body padding-top is sufficient */
}

.privacy-page-container h1,
.terms-page-container h1 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}
.privacy-page-container h2,
.terms-page-container h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}


/* 15. Cookie Popup
-------------------------------------------------------------------*/
/* Styles for #cookie-popup-container are inline in HTML as requested for simplicity */
/* However, if more complex styling is needed, it can be moved here */
#cookie-popup-container {
    /* Base styles are in HTML. */
    /* This ensures it uses CSS variables if needed. */
    font-family: var(--font-secondary);
}
#cookie-popup-container p {
    color: #f0f0f0; /* Overriding default p color for this specific popup */
    margin-bottom: 15px !important; /* Ensure this overrides general p margin */
}
#accept-cookie-button {
    background-color: var(--color-primary); /* Use theme color */
    font-family: var(--font-primary);
}
#accept-cookie-button:hover {
    background-color: var(--color-primary-dark);
}