/*
* Color Palette: Graphite & Copper
* --primary-color: #D35400 (Copper/Orange)
* --secondary-color: #34495E (Dark Graphite)
* --background-color: #FDFEFE (Almost White)
* --text-color: #2C3E50 (Dark Text)
* --light-bg: #ECF0F1 (Light Gray)
*/

:root {
    --primary-color: #D35400;
    --secondary-color: #34495E;
    --background-color: #FDFEFE;
    --text-color: #2C3E50;
    --light-bg: #ECF0F1;
    --white-color: #FFFFFF;
    --footer-bg: #2C3E50;
    --footer-text: #BDC3C7;
}

/* --- 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, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-size: 1.1rem;
    color: #5D6D7E;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    z-index: 100;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    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(--secondary-color);
    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-color);
    font-weight: 600;
    font-size: 1rem;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
    background-color: var(--white-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--light-bg);
}

.mobile-nav li a {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    width: 100%;
}

@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); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #e67e22;
    color: var(--white-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-decoration: none;
}

/* --- Hero Section (Vertical) --- */
.hero-vertical {
    display: flex;
    flex-direction: column;
}
.hero-image-container {
    width: 100%;
    height: 40vh;
    max-height: 400px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content-container {
    padding: 50px 0;
    text-align: center;
}
.hero-content-container p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Horizontal Scroll Section --- */
.horizontal-scroll-section .container {
    max-width: 100%;
    padding: 0;
}
.horizontal-scroll-section .section-title {
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 40px;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
}
.scroll-container::-webkit-scrollbar {
    height: 8px;
}
.scroll-container::-webkit-scrollbar-track {
    background: var(--light-bg);
}
.scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}
.scroll-card {
    flex: 0 0 300px;
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.scroll-card h3 {
    color: var(--primary-color);
}

/* --- Stats Bar --- */
.stats-bar-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.stats-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.stat-text {
    font-size: 1rem;
    max-width: 200px;
    display: block;
    color: var(--footer-text);
}

/* --- Image Gallery Grid --- */
.image-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.gallery-item.image-item img {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.gallery-item.text-item {
    padding: 20px;
}
@media (min-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
}
.cta-container {
    text-align: center;
    color: var(--white-color);
}
.cta-container h2 {
    color: var(--white-color);
}
.cta-container .btn-secondary {
    background-color: var(--white-color);
    border-color: var(--white-color);
}
.cta-container .btn-secondary:hover {
    background-color: transparent;
    color: var(--white-color);
}

/* --- Page Header Section --- */
.page-header-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white-color);
    position: relative;
    background-size: cover;
    background-position: center;
}
.page-header-section .overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-color: rgba(44, 62, 80, 0.7);
}
.page-header-section .container {
    position: relative;
    z-index: 2;
}
.page-header-section .page-title {
    color: var(--white-color);
}
.page-header-section .page-subtitle {
    color: var(--footer-text);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Tabs (Program Page) --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--light-bg);
    justify-content: center;
}
.tab-btn {
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s;
}
.tab-btn.active {
    color: var(--primary-color);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}
.tab-content {
    display: none;
    padding: 30px 0;
}
.tab-content.active {
    display: block;
}
.tab-content .content-image {
    margin-top: 20px;
    border-radius: 8px;
}

/* --- Timeline (Mission Page) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    top: 24px;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-bg);
    border-radius: 6px;
}

@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 { left: 12px; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: 12px;
    }
}

/* --- Values Section --- */
.values-section {
    background-color: var(--light-bg);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.value-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Contact Page Layout --- */
.contact-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}
.contact-sidebar {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}
.contact-sidebar h3 {
    margin-top: 0;
}
.contact-sidebar p {
    margin-bottom: 10px;
}
@media(min-width: 992px) {
    .contact-layout-sidebar {
        grid-template-columns: 300px 1fr;
    }
}

/* --- Forms --- */
.contact-form {
    max-width: 800px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.2);
}

/* --- Legal & Thank You Pages --- */
.text-content {
    max-width: 800px;
    margin: 0 auto;
}
.text-content h1, .text-content h2 {
    margin-top: 30px;
}
.text-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.thank-you-section {
    padding: 80px 0;
}
.next-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--light-bg);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 50px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}
.footer-title {
    color: var(--white-color) !important;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.footer-nav {
    list-style: none;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 10px;
}
.footer-nav a, .footer-column a {
    color: var(--footer-text) !important;
}
.footer-nav a:hover, .footer-column a:hover {
    color: var(--white-color) !important;
    text-decoration: underline;
}
.footer-column p {
    color: var(--footer-text) !important;
}
.footer-bottom {
    border-top: 1px solid #34495E;
    text-align: center;
    padding: 20px 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- 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(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    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 { color: var(--white-color); text-decoration: underline; }
.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: 600;
    transition: background-color 0.3s;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cookie-btn-accept:hover { background-color: #e67e22; }
.cookie-btn-decline {
    background-color: #5D6D7E;
    color: var(--white-color);
}
.cookie-btn-decline:hover { background-color: #7F8C8D; }
@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; }
}