/* 
   Color Palette: Graphite & Copper
   - Primary: #E67E22 (Copper Orange)
   - Background: #2C3E50 (Dark Slate Blue/Graphite)
   - Light Background / Cards: #34495E (Lighter Slate)
   - Text: #ECF0F1 (Light Gray/Silver)
   - Accent: #F39C12 (Lighter Orange)
*/

:root {
    --primary-color: #E67E22;
    --secondary-color: #F39C12;
    --background-dark: #2C3E50;
    --background-light: #34495E;
    --text-light: #ECF0F1;
    --text-dark: #BDC3C7;
    --border-color: #4A6572;
}

/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--background-dark);
    color: var(--text-light);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}


/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--text-light);
}

.logo:hover {
    color: var(--primary-color);
}

.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-checkbox {
    display: none;
}

.desktop-nav {
    display: block;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 99;
    background-color: var(--background-light);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.mobile-nav a {
    color: var(--text-light);
    font-size: 1.2rem;
    display: block;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .mobile-nav {
        display: block;
    }
    #menu-toggle:checked ~ .mobile-nav {
        max-height: 400px;
    }
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #menu-toggle:checked ~ .hamburger .line:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .hamburger .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}


/* --- Hero Section (Version 4: Grid Overlap) --- */
.hero-section-overlap {
    padding: 80px 0;
    overflow: hidden;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
}

.hero-image-wrapper {
    position: relative;
    order: 2;
}

.hero-image-overlap {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-content-overlap {
    order: 1;
}

.hero-title-overlap {
    margin-bottom: 20px;
}

.hero-description-overlap, .hero-sub-description {
    margin-bottom: 20px;
    color: var(--text-dark);
    max-width: 600px;
}

@media (min-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 0;
    }
    .hero-image-wrapper {
        order: 1;
        transform: translateX(-10%);
    }
    .hero-content-overlap {
        order: 2;
        padding-left: 40px;
    }
}


/* --- Horizontal Scroll Section --- */
.horizontal-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-light);
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--background-light);
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}
.horizontal-scroll-container {
    display: flex;
    gap: 20px;
    width: max-content;
}
.scroll-card {
    width: 320px;
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}


/* --- Stats Bar Section --- */
.stats-section {
    background-color: var(--background-light);
}
.stats-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}
.stat-label {
    color: var(--text-dark);
    margin-top: 10px;
}
@media (min-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Image Gallery Grid Section --- */
.image-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.gallery-text-block {
    order: 2;
}
.gallery-image-block {
    order: 1;
}
.gallery-image {
    border-radius: 12px;
}
@media (min-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-text-block {
        order: 1;
    }
    .gallery-image-block {
        order: 2;
    }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--background-light);
}
.cta-container {
    text-align: center;
}
.cta-title {
    margin-bottom: 15px;
}
.cta-text {
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}


/* --- Program Page (Numbered Sections) --- */
.page-header-section {
    text-align: center;
    padding-bottom: 40px;
    background-color: var(--background-light);
}
.numbered-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
    align-items: center;
}
.numbered-section-digit {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}
.numbered-section-content {
    max-width: 700px;
}
.numbered-section-title {
    margin-bottom: 15px;
}
.content-image-small {
    margin-top: 20px;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .numbered-section {
        flex-direction: row;
        text-align: left;
    }
    .numbered-section.reverse {
        flex-direction: row-reverse;
        text-align: right;
    }
    .numbered-section-digit {
        font-size: 8rem;
    }
}


/* --- Mission Page (Timeline) --- */
.page-header-section.light-text { color: var(--text-light); }
.page-header-section[style*="bg.jpg"] {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(44, 62, 80, 0.7);
    z-index: 1;
}
.centered-text { position: relative; z-index: 2; }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--background-dark);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}
.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.timeline-content {
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 8px;
    position: relative;
}
.timeline-item:nth-child(odd) { text-align: right; }
@media (max-width: 768px) {
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 10px; }
}
.values-section { background-color: var(--background-light); }
.cards-grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) { .cards-grid-3-col { grid-template-columns: repeat(3, 1fr); } }
.value-card {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}


/* --- Contact Page --- */
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-form-centered { max-width: 800px; margin: 0 auto; }
.form-wrapper {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 12px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--background-dark);
    color: var(--text-light);
    font-size: 1rem;
}
.form-submit-btn { width: 100%; }
.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}
@media (min-width: 768px) { .contact-info-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
}
.contact-card span { font-size: 0.9rem; color: var(--text-dark); }


/* --- Legal & Thank You Pages --- */
.legal-page .container, .thank-you-section .container {
    padding-top: 40px;
    padding-bottom: 40px;
}
.legal-page h2 { margin-top: 30px; margin-bottom: 10px; }
.legal-page ul { margin-left: 20px; margin-bottom: 15px; }
.thank-you-title { color: var(--primary-color); }
.what-next { margin-top: 50px; }
.next-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
@media (min-width: 768px) { .next-steps-grid { grid-template-columns: repeat(3, 1fr); } }
.next-step-card {
    display: block;
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.next-step-card h3 { color: var(--primary-color); }
.next-step-card p { color: var(--text-dark); }


/* --- Footer --- */
.site-footer {
    background-color: var(--background-light) !important;
    color: var(--text-dark) !important;
    padding: 40px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}
.footer-heading {
    color: var(--text-light) !important;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: var(--text-dark) !important;
}
.footer-links a:hover {
    color: var(--primary-color) !important;
}
.footer-column p, .footer-column a {
    color: var(--text-dark) !important;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-dark) !important;
}


/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    background-color: var(--background-light);
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    transform: translateY(0); transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { font-weight: bold; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #fff;
}
.cookie-btn-decline {
    background-color: var(--border-color);
    color: var(--text-light);
}
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}