/* Color Palette: Purple Dusk */
:root {
    --primary-color: #6C3483; /* Deep Purple */
    --secondary-color: #F2D4C9; /* Soft Peach */
    --dark-color: #1D2A3C; /* Dark Navy/Charcoal */
    --light-color: #F4F6F7; /* Off-White */
    --text-color: #34495E; /* Dark Grey for text */
    --text-light: #FFFFFF;
    --border-color: #EAECEE;
}

/* --- Global Resets & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--text-light);
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-light {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.centered-text {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #512E5F;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--text-light);
    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(--dark-color);
}
.logo:hover {
    text-decoration: none;
}

.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(--dark-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 .nav-list a {
    font-weight: 500;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    background-color: var(--dark-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.mobile-nav li a {
    color: var(--text-light);
    font-size: 1.2rem;
}

@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 (Diagonal) --- */
.hero-diagonal {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
    background-color: var(--light-color);
}
.hero-content {
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-text-wrapper {
    max-width: 600px;
}
.hero-image-clipped {
    background: url('img/bg.jpg') no-repeat center center/cover;
    min-height: 300px;
}

@media (min-width: 992px) {
    .hero-diagonal {
        grid-template-columns: 55% 45%;
        min-height: 90vh;
    }
    .hero-image-clipped {
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
        min-height: auto;
    }
    .hero-content {
        justify-content: flex-end;
    }
    .hero-text-wrapper {
        margin-right: -10%;
        position: relative;
        z-index: 10;
    }
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: 10px;
    top: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: 4px solid var(--primary-color);
    z-index: 1;
}
.timeline-content h3 {
    color: var(--primary-color);
}

/* --- Stats Bar --- */
.stats-bar {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 2.5rem 0;
}
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Split Layout Section --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.split-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.cta-container {
    text-align: center;
}
.cta-container h2 {
    color: var(--text-light);
}
.cta-container .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}
.cta-container .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* --- Page Header --- */
.page-header {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}
.page-header h1 {
    color: var(--text-light);
}

/* --- Program Page: Accordion --- */
.accordion-container {
    max-width: 800px;
    margin: 2rem auto;
}
.accordion-toggle {
    display: none;
}
.accordion-header {
    display: block;
    padding: 1rem 1.5rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: var(--secondary-color);
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 1.5rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
}
.accordion-content .content-image {
    width: 100%;
    border-radius: 5px;
    margin-top: 1rem;
}
.accordion-toggle:checked + .accordion-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px 5px 0 0;
}
.accordion-toggle:checked + .accordion-header::after {
    content: '−';
    transform: rotate(180deg);
}
.accordion-toggle:checked ~ .accordion-content {
    max-height: 500px; /* Adjust as needed */
    padding: 1.5rem;
}

/* --- Mission Page: Timeline & Values --- */
.mission-timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 2rem;
}
.mission-timeline-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    padding-right: 1rem;
    border-right: 3px solid var(--secondary-color);
}
.with-bg-image {
    background: linear-gradient(rgba(244, 246, 247, 0.9), rgba(244, 246, 247, 0.9)), url('img/bg.jpg') no-repeat center center/cover;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.value-card {
    background-color: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Contact Page --- */
.contact-info-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .contact-info-block {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
}
.form-container {
    max-width: 800px;
    margin: 0 auto;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 52, 131, 0.2);
}
.form-submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Legal & Thank You Pages --- */
.legal-content, .thank-you-section {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    margin-top: 2rem;
}
.thank-you-actions {
    margin-top: 3rem;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color) !important;
    color: var(--text-light) !important;
    padding: 4rem 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.site-footer h3, .site-footer .logo {
    color: var(--text-light) !important;
}
.site-footer p, .site-footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}
.site-footer a:hover {
    color: var(--text-light) !important;
    text-decoration: underline;
}
.footer-links ul {
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(120%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--secondary-color); 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: 4px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.cookie-btn-decline {
    background-color: #555;
    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; }
}