/* CSS Variables - Analogous Color Scheme & Futuristic Theme */
:root {
    --color-primary: #3A0CA3; /* Vibrant Purple */
    --color-primary-dark: #2A067B;
    --color-secondary: #4361EE; /* Bright Blue */
    --color-secondary-dark: #3A50D4;
    --color-accent: #4CC9F0; /* Light Cyan */
    --color-accent-dark: #30B4D9;

    --color-background-light: #F0F2F5; /* Very light gray */
    --color-background-dark: #0B0725; /* Very dark deep blue/purple */
    --color-background-medium: #1A1A3D; /* Medium dark for elements on dark bg */
    --color-background-alt: #12122B; /* Alternative dark for sections */

    --color-text-light: #FFFFFF;
    --color-text-on-dark: #E0E0E0; /* Light gray for text on dark backgrounds */
    --color-text-dark: #1B1B2F; /* Dark, high contrast on light bg */
    --color-text-medium: #5A5A72; /* For secondary text */
    --color-text-headings-dark-bg: #F0F2F5; /* Headings on dark backgrounds */

    --color-border: #DDE2E8;
    --color-border-dark: #303055;

    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(42, 6, 123, 0.2); /* Primary color shadow */

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --transition-speed: 0.3s;
    --transition-cubic: cubic-bezier(0.68, -0.55, 0.27, 1.55);

    --header-height: 80px;
    --container-width: 1200px;
    --container-padding: 0 20px;
}

/* 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-family-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    overflow-x: hidden;
    padding-top: var(--header-height); /* Account for fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--color-text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.alt-bg h1, .alt-bg h2, .alt-bg h3, .alt-bg h4, .alt-bg h5, .alt-bg h6,
.parallax-bg h1, .parallax-bg h2, .parallax-bg h3, .parallax-bg h4, .parallax-bg h5, .parallax-bg h6 {
    color: var(--color-text-headings-dark-bg);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-medium);
}
.alt-bg p, .parallax-bg p {
    color: var(--color-text-on-dark);
}
.hero-section p { /* Hero subtitle should be white */
    color: var(--color-text-light);
}


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

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

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

ul {
    list-style: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.section-padding { padding: 60px 0; }
.alt-bg { background-color: var(--color-background-alt); }
.main-container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: var(--container-padding);
}
.content-wrapper { /* For hero content or similar */
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

/* Parallax Backgrounds */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
/* Overlay for readability on parallax/image backgrounds */
.parallax-bg::before, .hero-section::before,
.page-hero::before, .contact-section.parallax-bg::before,
.statistics-section.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Darker overlay */
    z-index: -1;
}
.hero-overlay, .contact-overlay, .statistics-overlay { /* Specific overlay classes from HTML */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 7, 37, 0.5) 0%, rgba(11, 7, 37, 0.8) 100%); /* Theme-aligned overlay */
    z-index: 1;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(11, 7, 37, 0.85); /* Dark, slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    height: var(--header-height);
}

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

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

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text-light);
    text-decoration: none;
    transition: transform var(--transition-speed) ease;
}
.logo:hover {
    transform: scale(1.05);
    color: var(--color-accent);
}
.logo-accent {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-family: var(--font-family-body);
    font-weight: 700;
    color: var(--color-text-on-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active { /* Add .active class via JS for current page */
    color: var(--color-accent);
}
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    width: 80%;
}

/* Mobile Navigation Toggle (Burger Menu) */
.nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav links when open */
}

.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) ease-in-out;
}

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

/* Active state for burger menu (toggled by JS) */
.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons - Global Styles */
.cta-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-cubic);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}

.cta-button { /* Primary button style */
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
}
.cta-button:hover, .cta-button:focus {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-text-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}
.alt-bg .cta-button-secondary {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-button-secondary:hover, .cta-button-secondary:focus {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.alt-bg .cta-button-secondary:hover, .alt-bg .cta-button-secondary:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-background-dark);
}


/* Forms - Global Styles */
.contact-form {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle glassmorphism on dark BG */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
/* For forms on light backgrounds (if any) */
.section-padding:not(.parallax-bg):not(.alt-bg) .contact-form {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-on-dark); /* Default for dark bg contact form */
}
.section-padding:not(.parallax-bg):not(.alt-bg) .form-group label {
    color: var(--color-text-dark);
}


.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.section-padding:not(.parallax-bg):not(.alt-bg) .form-group input[type="text"],
.section-padding:not(.parallax-bg):not(.alt-bg) .form-group input[type="email"],
.section-padding:not(.parallax-bg):not(.alt-bg) .form-group input[type="tel"],
.section-padding:not(.parallax-bg):not(.alt-bg) .form-group textarea {
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}


.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-medium);
    opacity: 0.7;
}

.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-accent);
    box-shadow: 0 0 0 3px rgba(var(--color-accent), 0.2); /* Focus ring */
}

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

.form-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-background-dark); /* Good contrast with cyan */
}
.form-submit-button:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-background-dark);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* Card Styles - Global Pattern */
.card {
    background-color: var(--color-background-medium); /* For dark alt backgrounds */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and content block */
    text-align: center; /* Center text within content block */
    border: 1px solid var(--color-border-dark);
}
/* Cards on light backgrounds */
.section-padding:not(.alt-bg) .card {
    background-color: var(--color-text-light);
    border: 1px solid var(--color-border);
}


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

.card-image {
    width: 100%;
    /* For service cards, success stories, etc. */
    height: 250px; /* Fixed height for image container */
    overflow: hidden;
    display: flex; /* For centering image if it's smaller */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container, might crop */
    transition: transform var(--transition-speed) ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    width: 100%; /* Ensure content block takes full width of card */
}
.card-content h3, .card-content .card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text-headings-dark-bg); /* For cards on dark bg */
}
.section-padding:not(.alt-bg) .card-content h3,
.section-padding:not(.alt-bg) .card-content .card-title {
    color: var(--color-text-dark);
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-on-dark); /* For cards on dark bg */
}
.section-padding:not(.alt-bg) .card-content p {
    color: var(--color-text-medium);
}


/* Section Title Styling */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 900;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}
.alt-bg .section-title::after, .parallax-bg .section-title::after {
    background-color: var(--color-accent);
}
.subsection-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--color-primary);
}
.alt-bg .subsection-title, .parallax-bg .subsection-title {
    color: var(--color-accent);
}


/* --- Section Specific Styles --- */

/* Hero Section */
.hero-section {
    min-height: 80vh; /* Use min-height instead of fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* For overlay */
    color: var(--color-text-light);
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--color-text-light) !important; /* IMPORTANT: Ensure white text */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: var(--color-text-light) !important; /* IMPORTANT: Ensure white text */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.hero-section .cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background-color: var(--color-accent);
    color: var(--color-background-dark);
    border-color: var(--color-accent);
}
.hero-section .cta-button:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card .card-image { height: 220px; }


/* Statistics Section */
.statistics-section {
    color: var(--color-text-light);
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-headings-dark-bg);
}
.stat-description {
    font-size: 0.9rem;
    color: var(--color-text-on-dark);
    line-height: 1.5;
}

/* Success Stories Section */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.story-card .card-image { height: 220px; }
.story-card .card-content p {
    font-style: italic;
}

/* Image Gallery */
.image-gallery-container { margin-top: 50px; }
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for gallery images */
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-item {
    background-color: var(--color-background-medium);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--color-border-dark);
    box-shadow: var(--shadow-md);
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--color-accent);
}
.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text-on-dark);
}
.testimonial-author {
    font-weight: 700;
    color: var(--color-accent);
}

/* Research Section */
.research-content .research-block {
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}
.research-block:last-child { margin-bottom: 0; }
.research-image {
    width: 100%;
    max-width: 500px; /* Limit image width */
    height: auto; /* Maintain aspect ratio */
    max-height: 350px; /* Max height */
    object-fit: contain; /* Show full image, might not fill container */
    margin: 0 auto 20px; /* Center image */
    border-radius: var(--border-radius-md);
}
.research-content h3.subsection-title {
    text-align: left;
    color: var(--color-primary);
    margin-top: 0;
}
.research-content p {
    color: var(--color-text-medium);
}
/* Toggle Switch */
.toggle-feature {
    margin-top: 30px;
    padding: 20px;
    background-color: #e9eafA; /* Light purple-blue tint */
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.toggle-title {
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 15px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--color-secondary);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--color-secondary);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
#insightsText {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    flex-basis: 100%; /* Ensure it takes full width if wraps */
    margin-top: 10px;
}

/* Community Section */
.community-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
@media (min-width: 768px) {
    .community-content {
        grid-template-columns: 1fr 1fr; /* Or use is-two-thirds like pattern: 2fr 1fr */
    }
    .community-text-block {
        padding-right: 20px;
    }
}
.community-image-block img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 400px; /* Control height */
    object-fit: cover;
}

/* External Resources Section */
.external-resources-section .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.resource-card {
    background-color: var(--color-text-light); /* On light bg section */
    border: 1px solid var(--color-border);
}
.resource-card .card-content { text-align: left; }
.resource-card .card-title {
    color: var(--color-primary);
    font-size: 1.2rem;
}
.resource-card .card-title a {
    color: var(--color-primary);
    text-decoration: none;
}
.resource-card .card-title a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.resource-card p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
}


/* Contact Section (on home page) */
.contact-section.parallax-bg {
    color: var(--color-text-light);
}
.contact-section .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--color-text-on-dark); /* Ensure readability on parallax */
}

/* Footer */
.site-footer-main {
    background-color: var(--color-background-dark);
    color: var(--color-text-on-dark);
    padding: 50px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4.footer-heading {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}
.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-on-dark);
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a, .footer-social-text-links a {
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.footer-links a:hover, .footer-social-text-links a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.footer-social-text-links li { margin-bottom: 8px; }
.footer-column p a {
    color: var(--color-accent);
}
.footer-column p a:hover {
    color: var(--color-accent-dark);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-dark);
    font-size: 0.9rem;
}
.footer-bottom p { color: var(--color-text-medium); }

/* --- Page Specific Styles --- */

/* About, Contact (page), Privacy, Terms pages - Hero */
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
}
.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-text-light) !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}
.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Content */
.about-content .content-block {
    margin-bottom: 40px;
}
.about-content .content-block img {
    margin: 0 auto 20px; /* Center image if it has fixed width */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.team-section .card.team-member-card {
    max-width: 450px;
    margin: 20px auto 0;
    background-color: var(--color-text-light); /* on light background */
    border: 1px solid var(--color-border);
}
.team-member-card .card-image {
    width: 180px; /* control size */
    height: 180px;
    border-radius: 50%;
    margin: 20px auto 0; /* spacing from top of card content */
    border: 4px solid var(--color-secondary);
}
.team-member-card .card-image img {
    border-radius: 50%;
}
.team-member-card .card-content h3, .team-member-card .card-content h4 {
    color: var(--color-text-dark);
}
.team-member-card .card-content h4 {
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-top: -5px;
    margin-bottom: 10px;
}
.team-member-card .card-content p {
    color: var(--color-text-medium);
}


/* Contact Page (contacts.html) */
#contact-form-page {
    background-color: var(--color-background-light); /* Light background for the main form section */
}
#contact-form-page .contact-form {
    background-color: var(--color-text-light); /* White form box */
    border: 1px solid var(--color-border);
    backdrop-filter: none; /* No blur for light bg form */
}
#contact-form-page .form-group label {
    color: var(--color-text-dark);
}
#contact-form-page .form-group input, #contact-form-page .form-group textarea {
    background-color: var(--color-background-light); /* Slightly off-white fields */
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}
#contact-form-page .form-group input::placeholder,
#contact-form-page .form-group textarea::placeholder {
    color: var(--color-text-medium);
}
#contact-form-page .contact-details-block {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background-color: #e9eafA;
    border-radius: var(--border-radius-md);
}
#contact-form-page .contact-details-block h3 {
    color: var(--color-primary);
}
#contact-form-page .contact-details-block p {
    color: var(--color-text-dark);
}
/* Mini toggle on contact page */
.mini-toggle {
    display: flex;
    align-items: center;
}
.mini-toggle .slider { height: 28px; width: 50px; }
.mini-toggle .slider:before { height: 20px; width: 20px; }
input:checked + .mini-toggle .slider:before { transform: translateX(22px); }
.toggle-label-text {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--color-text-dark); /* For light background forms */
}
.contact-section.parallax-bg .toggle-label-text { /* If used on dark bg */
    color: var(--color-text-on-dark);
}


/* Privacy & Terms Pages */
.legal-content {
    padding-top: 40px; /* Already have body padding-top for header */
}
.legal-content .content-block {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-text-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}
.legal-content h2.subsection-title-legal {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-secondary);
    text-align: left;
}
.legal-content p, .legal-content li {
    color: var(--color-text-medium);
    margin-bottom: 1em;
}
.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

/* Success Page */
.success-message-section {
    min-height: calc(100vh - var(--header-height) - 142px); /* Full viewport height minus header and footer estimate */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-message-section .content-block {
    max-width: 600px;
}
.success-message-section .section-title { color: var(--color-primary); }
.success-message-section .page-subtitle { color: var(--color-text-medium); }

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}
.read-more-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left var(--transition-speed) ease;
}
.read-more-link:hover::after {
    margin-left: 10px;
}
.alt-bg .read-more-link {
    color: var(--color-accent);
}


/* Animate.css on scroll integration (basic visibility) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible { /* Class added by JS when element is in view */
    opacity: 1;
    transform: translateY(0);
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .services-grid, .stats-grid, .stories-grid, .testimonials-grid, .resources-grid, .gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    body { padding-top: var(--header-height); }

    .section-padding { padding: 40px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-toggle {
        display: block; /* Show burger menu */
    }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(11, 7, 37, 0.98); /* Darker, more opaque for mobile menu */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--transition-speed) ease-in-out;
        padding-bottom: var(--header-height); /* Space for bottom elements if any */
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links li {
        margin: 20px 0;
    }
    .nav-links a {
        font-size: 1.2rem;
        color: var(--color-text-light);
    }
    .nav-links a:hover, .nav-links a.active {
        color: var(--color-accent);
    }
    .nav-links a::after{ display: none;} /* Remove underline effect for mobile menu items */


    .hero-section { min-height: 70vh; }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column h4.footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .community-content { grid-template-columns: 1fr; }
    .community-image-block { order: -1; margin-bottom: 20px; } /* Image on top on mobile */
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-button, button, input[type="submit"] {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .hero-section .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .main-container { padding: 0 15px; }
    .card-content { padding: 20px; }
}

/* Cookie Consent Popup (basic styling to match, already in HTML) */
#cookieConsentPopup {
    font-family: var(--font-family-body);
}
#cookieConsentPopup p a {
    text-decoration: underline;
}
#acceptCookieButton {
    font-family: var(--font-family-headings);
}
.mission-values-section{
    color: #fff;
}

header ul{
    flex-wrap: wrap;
}