/* --- CSS Variables & Theme --- */


/* --- Volunteer Journey Section --- */

.experience-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.experience-lead {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
}

.process-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.process-item.reverse {
    flex-direction: row-reverse;
}

.process-text {
    flex: 1;
}

.process-text h3 {
    color: var(--clr-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.process-list {
    margin-top: 1rem;
    list-style: none;
}

.process-list li::before {
    content: "✔";
    color: var(--clr-secondary);
    margin-right: 10px;
    font-weight: bold;
}

.process-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: #e9edeb;
    border: 2px dashed var(--clr-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-style: italic;
}


/* --- Purpose Box --- */

.purpose-box {
    margin-top: 6rem;
    background: var(--clr-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
}

.purpose-box h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.purpose-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.purpose-grid span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* --- Responsive --- */

@media (max-width: 768px) {
    .process-item,
    .process-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .process-text {
        text-align: center;
    }
}

:root {
    /* Natural Greens Palette */
    --clr-primary: #2e7d32;
    /* Deep Forest Green */
    --clr-primary-hover: #1b5e20;
    --clr-secondary: #81c784;
    /* Soft Sage Green */
    --clr-accent: #fbc02d;
    /* Sun Yellow (for contrast/CTA) */
    /* Earthy Neutrals */
    --clr-bg-main: #ffffff;
    --clr-bg-light: #f1f8e9;
    /* Very faint green/white */
    --clr-text-main: #333333;
    --clr-text-muted: #555555;
    --radius: 8px;
    --transition: 0.3s ease;
}


/* Centers the section content */

.calendar-outer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers horizontally */
    justify-content: center;
}

.calendar-container {
    width: 100%;
    max-width: 900px;
    /* Limits the width so it doesn't look stretched on huge monitors */
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    /* Clips the sharp corners of the iframe to match your theme */
    border: 2px solid var(--clr-primary);
}

.calendar-container iframe {
    width: 100%;
    /* Makes it fill the container */
    display: block;
    /* Removes weird bottom spacing */
}


/* Mobile Tweak: Calendars get squashed on small screens */

@media (max-width: 600px) {
    .calendar-container {
        height: 500px;
    }
    .calendar-container iframe {
        height: 100%;
    }
}


/* --- Base Reset --- */

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--clr-text-main);
    line-height: 1.6;
    background-color: var(--clr-bg-main);
}

a {
    text-decoration: none;
    color: var(--clr-primary);
}


/* --- Layout Utilities --- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--clr-primary);
    margin-bottom: 2rem;
}

.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--clr-text-muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}


/* --- Navigation --- */

.site-header {
    background: var(--clr-bg-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--clr-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-main);
}

.nav-links a:hover {
    color: var(--clr-primary);
}


/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    color: white;
}

.btn-outline {
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary) !important;
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: white !important;
}


/* --- Hero Section --- */

.hero {
    background-color: var(--clr-secondary);
    /* In the future, add a background image here with an overlay */
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: rgb(219, 230, 220);
    margin-bottom: 1rem;
}

.hero-heading {
    color: #e0e0e0;
}

.hero-paragraph {
    color: #e0e0e0;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #222;
}


/* --- Cards (Mission / Events) --- */

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--clr-secondary);
}

.event-card {
    display: flex;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}


/* --- Image Polish --- */

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    transition: transform var(--transition);
}


/* Hover effect for garden photos */

.image-zoom:hover {
    transform: scale(1.03);
}


/* --- Global Smoothness --- */

html {
    scroll-behavior: smooth;
    /* Smoothly glides to sections when clicking nav links */
}


/* --- Image Polish --- */

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    transition: transform var(--transition);
}


/* Hover effect for garden photos */

.image-zoom:hover {
    transform: scale(1.03);
}


/* --- Improved Hero with Image Overlay --- */

.hero {
    position: relative;
    background: url('assets/hero-garden.jpg') no-base center/cover;
    padding: 8rem 0;
    color: white;
    text-align: center;
}


/* Dark overlay to make text readable over any garden photo */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    /* Force white for hero text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-date {
    background: var(--clr-primary);
    color: white;
    padding: 1.5rem;
    font-weight: bold;
    text-align: center;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-details {
    padding: 1.5rem;
}

.social-widget-container {
    margin-top: 1.5rem;
    width: 100%;
    min-height: 400px;
    /* Gives it space to load without jumping the page */
}


/* --- Placeholders for Forms & Socials --- */

.widget-placeholder {
    background-color: #e0e0e0;
    border: 2px dashed #999;
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: var(--clr-text-muted);
    margin-top: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --- Footer --- */

.site-footer {
    background: var(--clr-text-main);
    color: white;
    text-align: center;
    padding: 2rem 0;
}


/* --- Registration Page Specifics --- */

.register-page {
    background-color: var(--clr-bg-light);
    /* Our soft earthy green from the boilerplate */
    overflow-x: hidden;
}

.registration-wrapper {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
}


/* --- The Background Collage Container --- */

.collage-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Prevents users from accidentally clicking/dragging background images */
}

.collage-image {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.5s ease;
    border: 4px solid white;
    /* Gives them a nice printed photo border */
}


/* --- The Frosted Glass Form Card --- */

.form-card {
    position: relative;
    z-index: 10;
    /* Keeps it above the collage */
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white */
    backdrop-filter: blur(12px);
    /* The frosted glass magic */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--clr-primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}


/* Flex Container for the Loop */

.collage-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4800px;
    /* 16 images * 300px width */
    display: flex;
    flex-wrap: nowrap;
    /* Forces images to sit side-by-side in a long row */
    z-index: 1;
    animation: hero-bg-scroll 60s linear infinite;
}


/* Unique class for the scrolling images (fixes the overlapping glitch) */

.scrolling-image {
    position: static;
    /* Explicitly overrides any absolute positioning */
    width: 300px;
    height: 100%;
    flex-shrink: 0;
    /* Prevents the flex container from squashing them */
    object-fit: cover;
    opacity: 0.35;
}


/* The Loop Animation */

@keyframes hero-bg-scroll {
    0% {
        transform: translateX(0px);
    }
    /* Shifts exactly 8 images to the left, then snaps back to 0 seamlessly */
    100% {
        transform: translateX(-2400px);
    }
}


/* --- Restyled Hero Section --- */

.hero-restyled {
    position: relative;
    width: 100%;
    height: 60vh;
    /* This strictly locks the height of the banner */
    overflow: hidden;
    display: block;
    /* Removes the flexbox that was causing the vertical stacking */
}


/* Layer 1: The Photos */

.collage-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Locks exactly to the 60vh height */
    overflow: hidden;
    z-index: 1;
}


/* Layer 2: The Green Tint */

.green-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Locks exactly to the 60vh height */
    background: rgba(46, 125, 50, 0.4);
    z-index: 2;
}


/* Layer 3: The Text and Button */

.hero-content-container {
    position: absolute;
    /* Forces it to float completely independent of the photos */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Mathematically pulls it dead-center */
    width: 100%;
    max-width: 800px;
    text-align: center;
    z-index: 10;
    margin: 0;
    /* Crucial: overrides any sneaky margins from your boilerplate */
    padding: 0 20px;
}