/* 1. CSS Variables */
:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Gradient Color Scheme - Retro & Vibrant */
    --gradient-primary-start: #8E2DE2; /* Dark Violet */
    --gradient-primary-mid: #4A00E0;   /* Bright Purple */
    --gradient-primary-end: #00c6ff; /* Bright Blue/Cyan */
    
    --gradient-secondary-start: #FF6B6B; /* Coral */
    --gradient-secondary-end: #FFD166;   /* Light Orange/Yellow */

    --accent-color-1: #06D6A0; /* Bright Mint Green */
    --accent-color-2: #EF476F; /* Bright Pink/Red */

    /* Text Colors */
    --text-color-light: #FFFFFF;
    --text-color-dark: #222222; /* For strong contrast on light backgrounds */
    --text-color-medium: #4A4A5A; /* For body text */
    --text-color-subtle: #777787;

    /* Background Colors */
    --bg-light: #FDFDFD;
    --bg-dark: #12121E; /* Deep dark blue for contrast */
    --card-bg: #FFFFFF;
    --card-bg-dark-theme: #1E1E2C;
    --overlay-color: rgba(0, 0, 0, 0.55); /* For image overlays */

    /* Neo-Brutalism Accents */
    --neo-border-color: var(--text-color-dark);
    --neo-border-width: 2px;
    --neo-shadow: 4px 4px 0px var(--text-color-dark);
    --neo-shadow-light-bg: 4px 4px 0px rgba(0,0,0,0.1);
    --neo-shadow-accent: 3px 3px 0px var(--accent-color-1);

    /* Spacing & Sizing */
    --header-height: 80px;
    --footer-height-approx: 250px; /* Approximate for calculations if needed */
    --section-padding-y: 80px;
    --container-max-width: 1200px;
    --card-border-radius: 8px; /* Softened edges for modern neo-brutalism */
    --button-border-radius: 6px;
}

/* 2. 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-body);
    color: var(--text-color-medium);
    background-color: var(--bg-light);
    line-height: 1.7;
    padding-top: var(--header-height); /* Account for fixed header */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

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

a:hover, a:focus {
    color: var(--gradient-primary-start);
    text-decoration: underline;
}

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

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; letter-spacing: -0.5px;}
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.25em;
    max-width: 70ch; /* Improve readability */
}

.section-title {
    text-align: center;
    margin-bottom: 1.5em; /* Increased margin for section titles */
    font-size: 2.5rem; /* Slightly larger */
    color: var(--text-color-dark);
    position: relative;
}

.section-title::after { /* Subtle underline effect for retro feel */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-primary-start), var(--gradient-primary-end));
    margin: 0.5em auto 0;
    border-radius: 2px;
}


.section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em; /* More space after intro */
    font-size: 1.1rem;
    color: var(--text-color-medium);
}

.subsection-title {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 1em;
    text-align: center;
}

/* 4. Layout (Container, Grids) */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

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

/* Base grid for cards, can be overridden by specific sections */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-column {
    max-width: 900px; /* For text-heavy pages like privacy, terms */
    margin-left: auto;
    margin-right: auto;
}

/* 5. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(18, 18, 30, 0.85); /* var(--bg-dark) with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-light);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo:hover {
    color: var(--accent-color-1);
    text-decoration: none;
}

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

.main-navigation .nav-list li {
    margin-left: 25px;
}

.main-navigation .nav-list a {
    color: var(--text-color-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}

.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-1);
    transition: width 0.3s ease;
}

.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a:focus::after,
.main-navigation .nav-list a.active::after {
    width: 100%;
}
.main-navigation .nav-list a:hover,
.main-navigation .nav-list a:focus,
.main-navigation .nav-list a.active {
    color: var(--accent-color-1);
    text-decoration: none;
}


.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 2rem;
    cursor: pointer;
}

/* 6. Footer */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-color-subtle);
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin-bottom: 1em;
    position: relative;
}

.site-footer h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-color-1);
    margin-top: 0.3em;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.6em;
}

.site-footer a {
    color: var(--text-color-subtle);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-footer a:hover, .site-footer a:focus {
    color: var(--accent-color-1);
    padding-left: 5px;
    text-decoration: none;
}

.footer-social ul {
    display: flex;
    flex-direction: column; /* Text links vertically */
}
.footer-social li {
    margin-right: 0; /* Remove horizontal margin if they were inline */
}

.footer-copyright {
    grid-column: 1 / -1; /* Span full width */
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}
.footer-copyright p {
    margin-bottom: 0.5em;
}

/* 7. Buttons (Global) */
.cta-button, .submit-button, .read-more-button,
button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 30px;
    border-radius: var(--button-border-radius);
    border: var(--neo-border-width) solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-button, .submit-button { /* Primary button style */
    background: linear-gradient(to right, var(--gradient-primary-start), var(--gradient-primary-mid));
    color: var(--text-color-light);
    border-color: var(--gradient-primary-mid);
}

.cta-button:hover, .submit-button:hover,
.cta-button:focus, .submit-button:focus {
    background: linear-gradient(to right, var(--gradient-primary-mid), var(--gradient-primary-start));
    box-shadow: var(--neo-shadow-accent);
    transform: translateY(-2px);
    color: var(--text-color-light);
    text-decoration: none;
}

.read-more-button {
    background-color: transparent;
    color: var(--accent-color-2);
    border: var(--neo-border-width) solid var(--accent-color-2);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.read-more-button:hover, .read-more-button:focus {
    background-color: var(--accent-color-2);
    color: var(--text-color-light);
    box-shadow: 2px 2px 0px var(--text-color-dark);
    text-decoration: none;
}

/* 8. Forms (Global) */
.contact-form .form-group {
    margin-bottom: 1.5em;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--text-color-dark); /* Dark labels on light form backgrounds */
}
/* For forms on dark backgrounds (like contact section) */
.contact-section .contact-form label {
    color: var(--text-color-light);
}


.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--button-border-radius);
    border: var(--neo-border-width) solid #DDE2E7; /* Light grey border */
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #F8F9FA; /* Very light bg for fields */
    color: var(--text-color-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gradient-primary-mid);
    box-shadow: 0 0 0 3px rgba(var(--gradient-primary-mid), 0.2); /* Focus ring */
}

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

/* 9. Cards (Global Pattern) */
.card {
    background-color: var(--card-bg);
    border-radius: var(--card-border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border-color, #EAEAEA);
}

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

.card-image { /* Container for the image */
    width: 100%;
    height: 220px; /* Fixed height for image containers */
    overflow: hidden;
    background-color: #ECEFF1; /* Placeholder while image loads */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 20px 25px; /* More padding */
    text-align: center; /* Center content within */
    flex-grow: 1; /* Allow content to take up space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space if content is short */
}

.card-title {
    font-size: 1.4rem;
    color: var(--text-color-dark);
    margin-bottom: 0.5em;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-bottom: 1em;
    flex-grow: 1;
}

.card .read-more-button {
    margin-top: auto; /* Pushes button to bottom if card-content is flex */
    align-self: center;
}

/* Specific card types */
.resource-card h3 a {
    color: var(--text-color-dark);
}
.resource-card h3 a:hover {
    color: var(--accent-color-2);
}

.news-card .news-meta {
    font-size: 0.8rem;
    color: var(--text-color-subtle);
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

/* 10. Section Styles */

/* General section background image handling */
.hero-section, 
.history-section, 
.community-section, 
.contact-section,
.page-header-section {
    background-attachment: fixed; /* Simple Parallax */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--text-color-light); /* Default text color for these sections */
}

.hero-overlay, 
.history-overlay, 
.community-overlay, 
.contact-overlay,
.page-header-section .hero-overlay /* Re-use hero-overlay class */ {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 1;
}

.hero-content, 
.history-section .container, 
.community-section .container, 
.contact-section .container,
.page-header-section .container {
    position: relative;
    z-index: 2; /* Content above overlay */
}

/* Hero Section */
.hero-section {
    min-height: 80vh; /* Enough height but not excessive */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding-y) 0;
}

.hero-title {
    font-size: 3.5rem; /* Large and impactful */
    margin-bottom: 0.5em;
    color: var(--text-color-light); /* Ensured by HTML, reinforced here */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
    color: var(--text-color-light); /* Ensured by HTML, reinforced here */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-section .cta-button {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* History Section */
.history-section .section-title,
.history-section .section-intro {
    color: var(--text-color-light);
}
.history-section .section-title::after {
     background: var(--text-color-light);
}


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

.timeline::before { /* The central line */
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.3);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px; /* Space from center line */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px; /* Space from center line */
    text-align: left;
}

/* Circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--text-color-light);
    border: 4px solid var(--gradient-primary-mid);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -10px;
    transform: translateX(50%);
}
.timeline-item:nth-child(even)::after {
    left: -10px;
    transform: translateX(-50%);
}


.timeline-content {
    padding: 20px;
    background: rgba(0,0,0,0.3); /* Semi-transparent background */
    backdrop-filter: blur(5px);
    border-radius: var(--card-border-radius);
    color: var(--text-color-light);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.timeline-content h4 {
    color: var(--accent-color-1);
    font-size: 1.4rem;
    margin-bottom: 0.5em;
}
.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0.8em;
    color: #E0E0E0;
}

.progress-indicator {
    width: 100%;
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    margin-top: 10px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--gradient-secondary-start), var(--gradient-secondary-end));
    text-align: right;
    line-height: 20px;
    color: var(--text-color-dark);
    font-size: 0.8rem;
    font-weight: bold;
    padding-right: 5px;
    border-radius: 10px 0 0 10px; /* Match parent, but only left side */
}
.progress-bar span {
    padding: 0 10px;
    font-size: 0.7rem;
    color: var(--text-color-light);
    background: rgba(0,0,0,0.4);
    border-radius: 5px;
}


/* Partners Section */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}
.partner-logo {
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}
.partner-logo img {
    max-height: 60px; /* Control logo height */
    margin-bottom: 10px;
    filter: grayscale(50%); /* Retro touch */
}
.partner-logo:hover img {
    filter: grayscale(0%);
}
.partner-logo p {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px; /* Tighter gap for gallery */
}
.gallery-item img {
    width: 100%;
    height: 300px; /* Consistent height for gallery images */
    object-fit: cover;
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Community Section */
.community-section .section-title,
.community-section .section-intro,
.community-section .subsection-title,
.community-section .stat-label,
.community-section .stat-widget p,
.community-section .testimonial-card footer {
    color: var(--text-color-light);
}
.community-section .section-title::after {
     background: var(--text-color-light);
}

.stats-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.stat-widget {
    background: rgba(255,255,255,0.1); /* Glassmorphism */
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: var(--card-border-radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: 0.1em;
}
.stat-label {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
}
.stat-widget p {
    font-size: 0.9rem;
    color: #D0D0D0; /* Lighter text for description */
    margin-bottom: 0;
}

.testimonials-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.testimonial-card {
    background: rgba(0,0,0,0.3); /* Darker card on light text background */
    backdrop-filter: blur(5px);
    color: var(--text-color-light);
    border: 1px solid rgba(255,255,255,0.15);
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1em;
    color: #EAEAEA;
}
.testimonial-card footer {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--accent-color-1);
}

/* Contact Section */
.contact-section .section-title,
.contact-section .section-intro {
    color: var(--text-color-light);
}
.contact-section .section-title::after {
     background: var(--text-color-light);
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

/* 11. Page-Specific Styles */
.page-header-section {
    min-height: 40vh; /* Shorter than hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}
.page-header-section h1 {
    font-size: 2.8rem;
    color: var(--text-color-light);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.page-header-section p {
    font-size: 1.2rem;
    color: var(--text-color-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 0;
}

/* About Page specific layouts */
.values-grid .card {
    text-align: center;
}
.values-grid .card-image img {
    width: 80px; /* Smaller icons for values */
    height: 80px;
    margin: 0 auto 15px auto; /* Center icon */
}

/* Contact Page specific layouts */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: minmax(300px, 1.5fr) 2fr; /* Info column and form column */
    }
}
.contact-info-column ul {
    list-style: none;
    padding: 0;
}
.contact-info-column li {
    margin-bottom: 0.8em;
    font-size: 1.05rem;
}
.contact-info-column strong {
    color: var(--text-color-dark);
    margin-right: 0.5em;
}
.map-placeholder img {
    border-radius: var(--card-border-radius);
    margin-top: 20px;
    border: 1px solid #ddd;
}


/* Privacy & Terms Pages */
.privacy-page main .content-section, /* Target main content area */
.terms-page main .content-section {
    padding-top: 40px; /* Already have body padding, this is additional for first section */
}
.privacy-page .content-section h2, .terms-page .content-section h2,
.privacy-page .content-section h3, .terms-page .content-section h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.privacy-page .content-section ul, .terms-page .content-section ul {
    margin-left: 20px;
    margin-bottom: 1em;
}

/* Success Page */
.success-page-section {
    min-height: calc(100vh - var(--header-height) - var(--footer-height-approx)); /* Attempt to fill remaining viewport */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding-y);
}
.success-page-section .section-title {
    color: var(--accent-color-1);
}
.success-page-section .section-title::after {
    background: var(--accent-color-1);
}


/* 12. Utility Classes */
.text-center {
    text-align: center !important;
}
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

/* 13. Animations & Transitions (Hovers handled inline, ScrollReveal in JS) */
/* Microinteractions for buttons and links are handled with transition property */

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

    .timeline::before { left: 30px; transform: translateX(0); }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left !important; }
    .timeline-item:nth-child(odd) { left: 0; }
    .timeline-item:nth-child(even) { left: 0; } /* Stack them on one side */
    .timeline-item::after { left: 20px; transform: translateX(0); }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Adjust if header height changes */
    }
    .site-header {
        height: 70px;
    }
    :root { --header-height: 70px; }


    h1 { font-size: 2rem; }
    h2, .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 2.2rem; }

    .menu-toggle {
        display: block;
        z-index: 1001; /* Above nav list */
    }

    .main-navigation .nav-list {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 30, 0.98); /* Dark background for mobile menu */
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-navigation .nav-list.active {
        display: flex;
    }
    .main-navigation .nav-list li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after { /* Disable underline hover for mobile nav items */
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 25px;
    }
    .partners-logos {
        gap: 20px;
    }
    .partner-logo img { max-height: 50px; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer h4 { margin: 1.5em auto 0.5em; }
    .site-footer h4::after { margin: 0.3em auto; }
    .footer-social ul {
        justify-content: center;
        flex-direction: row; /* Social links horizontal on mobile for better use of space */
    }
     .footer-social li {
        margin: 0 10px;
    }

    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 45px; padding-right: 10px; }
    .timeline-item::after { left: 5px; }

    .contact-layout {
        grid-template-columns: 1fr; /* Stack contact info and form */
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-y: 50px;
    }
    h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-button, .submit-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .card-content { padding: 15px; }
    .card-title { font-size: 1.2rem; }
}

/* ScrollReveal default hidden state */
[data-scrollreveal] {
    visibility: hidden;
}
html,body{
    overflow-x: hidden;
}