/* style.css */

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

1. ROOT VARIABLES & BASIC SETUP
    - Color Palette (Tetrad based)
    - Neomorphism Variables
    - Font Variables
    - Global Settings
2. TYPOGRAPHY
    - Headings (Montserrat)
    - Paragraphs & Body Text (Merriweather)
    - Links
3. LAYOUT & UTILITY CLASSES
    - Container
    - Section Padding
    - Grids & Columns (Basic for HTML structure)
    - Text Alignment
    - Background Variations
4. GLOBAL UI COMPONENTS
    - Buttons (Neomorphic)
    - Cards (Neomorphic, Image handling)
    - Forms (Neomorphic inputs)
5. HEADER & NAVIGATION
    - Fixed Header
    - Logo
    - Main Navigation (Desktop & Mobile Toggle)
6. HERO SECTION
    - Background Image & Overlay
    - Content Styling
7. SECTION STYLES
    - General Section Title
    - Services Section (Grid)
    - Behind the Scenes (Columns)
    - Community Section (Features, Stats, Testimonial Carousel)
    - Events Section (Event Card Carousel)
    - Resources Section (Resource Card Grid)
    - FAQ Section (Accordion)
    - Careers Section (Columns)
    - Contact Section (Form)
8. FOOTER
    - Layout
    - Navigation & Social Links (Text-based)
9. PAGE-SPECIFIC STYLES
    - Success Page (Full viewport, centered)
    - Privacy & Terms Pages (Content offset)
10. ANIMATIONS & TRANSITIONS
    - Smooth Transitions
    - Hover Effects
11. RESPONSIVENESS (Media Queries)
    - Tablet
    - Mobile
-------------------------------------------------------------------*/

/* 1. ROOT VARIABLES & BASIC SETUP */
:root {
    /* Color Palette (Tetrad Idea: Muted & Harmonious for Self-Realization, accents for engagement) */
    --primary-color: #6D597A;       /* Muted Purple - Calm, Introspective */
    --secondary-color: #357266;     /* Muted Teal - Growth, Balance */
    --accent-color-1: #E8AC65;      /* Muted Orange/Gold - Warmth, Wisdom */
    --accent-color-2: #B56576;      /* Muted Rose - Compassion, Connection */

    --text-color: #2C2C2C;          /* Very Dark Gray for body text */
    --heading-color: #1A1A1A;       /* Almost Black for headings */
    --text-light: #FFFFFF;          /* White for text on dark backgrounds */
    --link-color: var(--primary-color);
    --link-hover-color: var(--secondary-color);

    /* Backgrounds */
    --background-light: #F4F1DE;    /* Very Light Cream/Off-white - Base for Neomorphism */
    --background-dark: #3D405B;     /* Dark Slate Blue - for footer or contrasting sections */
    --content-bg-variation: #EAE7DC; /* Slightly darker/different cream for alternate sections */

    /* Neomorphism Variables */
    --neumorphic-bg: var(--background-light);
    --shadow-distance: 6px;
    --shadow-blur: 12px;
    --shadow-color-light-neumorph: rgba(255, 255, 255, 0.9);
    --shadow-color-dark-neumorph: rgba(190, 185, 170, 0.6); /* Adjusted for --background-light */
                                                        /* or use generic: rgba(0,0,0,0.1) for more flexibility */

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

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

    /* Header Height (for content offsets) */
    --header-height: 80px;
    --footer-height-approx: 200px; /* Approximate for calculations if needed */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Corresponds to 16px by default */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem; /* Default bottom margin */
    font-weight: 700;
}

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

p {
    margin-bottom: 1.25rem;
    font-size: 1rem; /* Base paragraph size */
}
@media (min-width: 768px) {
    p { font-size: 1.05rem; }
}

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

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

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

/* 3. LAYOUT & UTILITY CLASSES */
.main-container {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--heading-color);
    position: relative; /* For potential pseudo-element underlines */
}
.section-title::after { /* Optional subtle underline */
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color-1);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}


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

.content-bg-light {
    background-color: var(--content-bg-variation);
}

.content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.column {
    flex: 1 1 300px; /* Grow, shrink, basis */
}
.column.is-two-thirds {
    flex-basis: 66%;
}
.column.image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}
.column.image-column img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

/* For background images that need dark overlay for text readability */
.background-cover-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.background-cover-image .overlay, .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.5));
    z-index: 1;
}
.background-cover-image > .container, .hero-section > .container { /* Ensure content is above overlay */
    position: relative;
    z-index: 2;
}


/* 4. GLOBAL UI COMPONENTS */

/* Buttons (Neomorphic) */
.btn, button[type="submit"], input[type="submit"], .button {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0.8em 1.8em;
    border-radius: 50px; /* Rounded for modern feel */
    border: none;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
    background-color: var(--neumorphic-bg);
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover, .button:hover,
.btn:focus, button[type="submit"]:focus, input[type="submit"]:focus, .button:focus {
    box-shadow: calc(var(--shadow-distance) / 2) calc(var(--shadow-distance) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance) / 2) calc(-1 * var(--shadow-distance) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-light-neumorph),
                inset var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                inset calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
    color: var(--secondary-color);
    outline: none;
}

.btn:active, button[type="submit"]:active, input[type="submit"]:active, .button:active {
    box-shadow: inset var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                inset calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3); /* Softer shadow for colored buttons */
}
.btn-primary:hover, .btn-primary:focus {
    background-color: hsl(from var(--primary-color) h s calc(l - 5%)); /* Slightly darker primary */
    box-shadow: 0 6px 20px rgba(var(--primary-color), 0.4);
    color: var(--text-light); /* Ensure text color remains light */
    transform: translateY(-2px); /* Slight lift effect */
}
.btn-primary:active {
    background-color: hsl(from var(--primary-color) h s calc(l - 10%));
    transform: translateY(0px);
}


.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(var(--secondary-color), 0.3);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: hsl(from var(--secondary-color) h s calc(l - 5%));
    box-shadow: 0 6px 20px rgba(var(--secondary-color), 0.4);
    color: var(--text-light);
    transform: translateY(-2px);
}
.btn-secondary:active {
    background-color: hsl(from var(--secondary-color) h s calc(l - 10%));
    transform: translateY(0px);
}

.btn-tertiary { /* More subtle button */
    background-color: transparent;
    color: var(--accent-color-1);
    border: 2px solid var(--accent-color-1);
    box-shadow: none;
}
.btn-tertiary:hover, .btn-tertiary:focus {
    background-color: var(--accent-color-1);
    color: var(--text-light);
    box-shadow: none;
    transform: none; /* No lift for border buttons typically */
}
.btn-tertiary:active {
    background-color: hsl(from var(--accent-color-1) h s calc(l - 5%));
    transform: none;
}


/* Cards (Neomorphic) */
.card {
    background-color: var(--neumorphic-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    overflow: hidden; /* Ensure content respects border-radius */
    display: flex;
    flex-direction: column;
    /* align-items: center; -- As per prompt, this centers .card-image and .card-content IF they are not 100% width */
    /* text-align: center; -- Can be set here if all card content is centered */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: calc(var(--shadow-distance) * 1.5) calc(var(--shadow-distance) * 1.5) calc(var(--shadow-blur) * 1.5) var(--shadow-color-dark-neumorph),
                calc(-1.5 * var(--shadow-distance)) calc(-1.5 * var(--shadow-distance)) calc(var(--shadow-blur) * 1.5) var(--shadow-color-light-neumorph);
}

.card .card-image { /* Container for the image */
    width: 100%; /* Take full width of the card */
    height: 200px; /* Fixed height for the image area as requested */
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 10px; /* Rounded corners for the image container itself */
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for fixed height container */
    display: block;
}

.card .card-content {
    width: 100%; /* Take full width of card */
    text-align: center; /* Center the text content if this is desired style */
}
.card .card-content h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.card .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Forms (Neomorphic) */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8em 1em;
    border-radius: 10px;
    border: none; /* Remove default border */
    background-color: var(--neumorphic-bg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: inset calc(var(--shadow-distance) / 2) calc(var(--shadow-distance) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-dark-neumorph),
                inset calc(-1 * var(--shadow-distance) / 2) calc(-1 * var(--shadow-distance) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-light-neumorph);
    transition: box-shadow var(--transition-speed) var(--transition-ease);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: inset calc(var(--shadow-distance) / 1.5) calc(var(--shadow-distance) / 1.5) calc(var(--shadow-blur) / 1.5) var(--shadow-color-dark-neumorph),
                inset calc(-1 * var(--shadow-distance) / 1.5) calc(-1 * var(--shadow-distance) / 1.5) calc(var(--shadow-blur) / 1.5) var(--shadow-color-light-neumorph),
                0 0 0 2px var(--primary-color); /* Subtle focus ring */
}

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


/* 5. HEADER & NAVIGATION */
.site-header {
    background-color: rgba(244, 241, 222, 0.85); /* Semi-transparent light background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed) var(--transition-ease);
}
/* Scrolled state for header if needed via JS
.site-header.scrolled {
    background-color: rgba(var(--background-light-rgb), 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
} */

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

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

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem; /* Spacing between nav items */
}

.nav-list a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    padding: 0.5em 0;
    position: relative;
    text-decoration: none;
}

.nav-list a::after { /* Underline effect on hover */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-1);
    transition: width var(--transition-speed) var(--transition-ease);
}

.nav-list a:hover::after,
.nav-list a.active::after { /* Assuming an 'active' class for current page */
    width: 100%;
}
.nav-list a:hover, .nav-list a.active {
    color: var(--primary-color);
}


.nav-toggle { /* Hamburger menu button */
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above nav list on mobile */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: transform var(--transition-speed) var(--transition-ease);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: transform var(--transition-speed) var(--transition-ease), top var(--transition-speed) var(--transition-ease);
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Active state for hamburger (JS controlled) */
.nav-open .hamburger {
    transform: rotate(45deg);
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}
.nav-open .hamburger::after {
    top: 0;
    transform: rotate(90deg);
    opacity: 0; /* Or also rotate to form X */
}
.nav-open .main-navigation .nav-list {
    transform: translateX(0);
}


/* 6. HERO SECTION */
.hero-section {
    /* background-image set in HTML */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-light); /* Default text color for hero */
    padding: 8rem 0; /* Ample padding */
    display: flex;
    align-items: center;
    min-height: 80vh; /* Ensure it's substantial */
    position: relative; /* For overlay */
}

.hero-overlay { /* Defined in layout utilities, applied here */
    background: linear-gradient(45deg, rgba(40, 28, 77, 0.7), rgba(20, 10, 40, 0.8)); /* Darker, richer overlay */
}

.hero-content {
    text-align: center;
    position: relative; /* Above overlay */
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--text-light); /* Explicitly white as requested */
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Ensure readability */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-light); /* Explicitly white */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Ensure readability */
}

.btn-hero { /* Specific styling for hero button if needed, otherwise uses .btn-primary */
    padding: 1em 2.5em;
    font-size: 1.1rem;
}


/* 7. SECTION STYLES */

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

/* Behind the Scenes Section */
/* Uses .content-columns, additional specific styles if needed */
.behind-the-scenes-section {
    /* background-image set in HTML */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.behind-the-scenes-section .image-column img {
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
}


/* Community Section */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}
.feature-item { padding: 1rem; }
.feature-icon {
    font-size: 2.5rem; /* Placeholder styling for text icons */
    color: var(--accent-color-1);
    margin-bottom: 1rem;
    display: inline-block;
    /* For actual animated icons (SVG/Lottie), more specific styling would be needed */
    transition: transform var(--transition-speed) var(--transition-ease);
}
.feature-item:hover .feature-icon { transform: scale(1.1) rotate(5deg); }
.feature-item h4 { color: var(--primary-color); margin-bottom: 0.5rem; }

.stats-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
    margin-bottom: 3rem;
    background-color: var(--content-bg-variation);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: inset var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                inset calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
}
.stat-widget { text-align: center; }
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

.testimonial-carousel { margin-bottom: 2rem; position: relative; }
.carousel-title { text-align: center; margin-bottom: 1.5rem; color: var(--heading-color); }
.carousel-container {
    display: flex; /* JS will manage slides */
    overflow: hidden; /* JS will manage slides */
    /* For basic non-JS fallback or simple CSS scroll:
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem; Allow space for scrollbar if visible */
}
.carousel-slide.card { /* Each testimonial */
    min-width: 100%; /* Full width for JS carousel */
    /* For CSS scroll snap: scroll-snap-align: start; */
    flex-shrink: 0;
    padding: 2rem;
    margin: 0.5rem; /* If showing multiple slightly */
}
.carousel-slide p { font-style: italic; margin-bottom: 1rem; }
.carousel-slide span { font-weight: bold; color: var(--primary-color); }
.carousel-prev, .carousel-next,
.carousel-prev-events, .carousel-next-events {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--primary-color-rgb), 0.7); /* Assuming --primary-color-rgb is defined or use a solid color */
    background-color: rgba(109, 89, 122, 0.7); /* Using primary color directly with alpha */
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color var(--transition-speed) var(--transition-ease);
}
.carousel-prev:hover, .carousel-next:hover,
.carousel-prev-events:hover, .carousel-next-events:hover {
    background-color: var(--primary-color);
}
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

.carousel-nav-buttons {
    text-align: center;
    margin-top: 1.5rem;
}
.carousel-nav-buttons button {
    /* Use .btn styling or customize */
    background-color: var(--primary-color);
    color: white;
    margin: 0 0.5rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}


/* Events Section */
.events-carousel {
    /* Similar structure to testimonial carousel if JS driven */
    display: flex; /* For basic layout, JS will handle scrolling/sliding */
    gap: 1.5rem;
    overflow-x: auto; /* Simple horizontal scroll for now if no JS */
    padding-bottom: 1rem; /* Space for scrollbar */
    scroll-snap-type: x mandatory;
}
.event-card {

}
.event-card .card-image { height: 200px; }
.event-date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.event-card .btn-tertiary { margin-top: 1rem; }


/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.resource-card { padding: 1.5rem; } /* Slightly less padding for resource cards */
.resource-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
}
.resource-card h4 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.resource-card p { font-size: 0.9rem; }


/* FAQ Section */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    background-color: var(--neumorphic-bg);
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
    overflow: hidden; /* Keep content within rounded borders */
}
.faq-question {
    width: 100%;
    background: none; /* Transparent background */
    border: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) var(--transition-ease);
}
.faq-question:hover {
    background-color: var(--content-bg-variation);
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform var(--transition-speed) var(--transition-ease);
}
.faq-item.active .faq-question {
    /* background-color: var(--content-bg-variation); Optional active bg */
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
}
.faq-answer p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }
.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed, ensure it's enough for content */
    /* padding-bottom added when active */
}

/* Careers Section */
/* Uses .content-columns */
.careers-section .image-column img {
    border-radius: 10px;
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
}

/* Contact Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--neumorphic-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-color-dark-neumorph),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--shadow-color-light-neumorph);
}
.contact-form button[type="submit"] {
    width: 100%;
    padding: 1em;
    font-size: 1.1rem;
    /* Using btn-primary style by default */
    background-color: var(--primary-color);
    color: var(--text-light);
}
.contact-form button[type="submit"]:hover {
    background-color: hsl(from var(--primary-color) h s calc(l - 5%));
}


/* 8. FOOTER */
.site-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
}
.site-footer .section-padding { padding: 3rem 0; } /* Override default section padding */
.site-footer h4 {
    color: var(--accent-color-1);
    margin-bottom: 1rem;
}
.site-footer p {
    color: #E0E0E0; /* Lighter gray for paragraphs in footer */
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
    color: #D0D0D0; /* Slightly darker than pure white for links */
    text-decoration: none;
}
.footer-nav a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}
.footer-social-text { /* For text-based social links */
    list-style: none;
}
.footer-social-text li { margin-bottom: 0.5rem; }
.footer-social-text a {
    color: #D0D0D0;
    text-decoration: none;
    font-weight: 500; /* Make them slightly bolder */
}
.footer-social-text a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
    font-size: 0.9rem;
    color: #B0B0B0;
}


/* 9. PAGE-SPECIFIC STYLES */

/* For success.html */
.success-page-content-wrapper { /* Add this class to a main wrapper in success.html */
    min-height: calc(100vh - var(--header-height) - var(--footer-height-approx)); /* Adjust if header/footer heights differ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.success-page-content-wrapper h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.success-page-content-wrapper p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* For privacy.html & terms.html */
.static-page-content { /* Add this class to the main content area of these pages */
    padding-top: calc(var(--header-height) + 2rem); /* Header height + extra space */
    padding-bottom: 3rem;
    min-height: calc(100vh - var(--header-height) - var(--footer-height-approx));
}
.static-page-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.static-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.static-page-content ul, .static-page-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}


/* 10. ANIMATIONS & TRANSITIONS (Implicitly added via 'transition' property) */
/* ScrollReveal will handle scroll-triggered animations in JS */


/* 11. RESPONSIVENESS (Media Queries) */

@media (max-width: 992px) { /* Tablet breakpoint */
    .column.is-two-thirds {
        flex-basis: 100%; /* Stack columns */
    }
    .content-columns {
        flex-direction: column;
    }
    .column.image-column {
        order: -1; /* Image often looks better on top on mobile */
        margin-bottom: 1.5rem;
    }
    .events-carousel {
        /* Ensure scrollbar is visible or touch scrolling works well */
    }
    .carousel-prev, .carousel-next,
    .carousel-prev-events, .carousel-next-events {
        /* Adjust positions or sizes if needed for smaller carousels */
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .carousel-prev { left: 5px; }
    .carousel-next { right: 5px; }
}

@media (max-width: 767px) { /* Mobile breakpoint */
    :root {
        --header-height: 70px; /* Adjust if header shrinks */
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block; /* Show hamburger */
    }
    .main-navigation .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-light);
        flex-direction: column;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem; /* Start below header */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform var(--transition-speed) var(--transition-ease);
        gap: 1rem; /* Adjust gap for vertical list */
    }
    .nav-list a {
        display: block; /* Full width tappable area */
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }
    .nav-list a::after { /* Adjust underline for block links */
        left: 0;
        bottom: -2px; /* Position slightly below text */
    }

    .hero-section {
        padding: 6rem 0;
        min-height: 70vh;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    .services-grid, .resources-grid, .community-features, .stats-widgets, .footer-grid {
        grid-template-columns: 1fr; /* Stack items */
    }
    .stats-widgets { padding: 1.5rem; }
    .stat-widget { margin-bottom: 1rem; }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-column {
        text-align: center;
    }
    .footer-grid {
        gap: 1.5rem;
    }
}

header ul{
    flex-wrap: wrap;
}