/* 
   Palette: Pastel Lavender / Purple-Grey (Version 5)
   Primary: #9B7EBD
   Secondary: #D4BEE4
   Accent/Dark: #3B1E54
   Background: #EEEEEE / #FFFFFF
*/

:root {
    --primary-color: #9B7EBD;
    --secondary-color: #D4BEE4;
    --accent-color: #3B1E54;
    --bg-light: #F8F6FA;
    --bg-white: #FFFFFF;
    --text-main: #2C2C2C;
    --text-light: #555555;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 20px;
}

.text-center { text-align: center; }
.text-body { margin-bottom: 15px; font-size: 16px; color: var(--text-light); }
.subtitle-text { font-size: 18px; color: var(--text-light); margin-bottom: 30px; }

/* Layout Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: var(--bg-white); }
.text-white h2, .text-white span { color: var(--bg-white); }

.shadow-medium { box-shadow: 0 10px 30px rgba(59, 30, 84, 0.08); }
.shadow-large { box-shadow: 0 20px 40px rgba(59, 30, 84, 0.12); }
.rounded-corners { border-radius: var(--border-radius); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-full { width: 100%; }

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: 2px solid transparent;
}
.link-arrow:hover {
    border-bottom-color: var(--accent-color);
}

/* Header Layout (Strictly as requested) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--accent-color);
}

.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;
    color: var(--bg-white);
    z-index: 100;
}
.logo:hover { color: var(--secondary-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(--bg-white);
    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 {
    color: var(--bg-white);
    font-weight: 500;
}
.desktop-nav .nav-list a:hover {
    color: var(--secondary-color);
}

.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;
    z-index: 99;
    background-color: var(--accent-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);
}
.mobile-nav a {
    color: var(--bg-white);
    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);
    }
}

/* V5 Unique: Vertical Hero */
.hero-vertical {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
}

.hero-text-block {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image-block {
    width: 100%;
    height: 50vh;
    min-height: 400px;
}

.hero-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Intro Section */
.intro-container {
    max-width: 800px;
    text-align: center;
}

/* V5 Unique: Horizontal Scroll Gallery */
.scroll-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-gallery::-webkit-scrollbar {
    height: 8px;
}
.scroll-gallery::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}
.scroll-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.scroll-card {
    flex: 0 0 300px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    border-top: 4px solid var(--primary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 20px;
}

/* V5 Unique: Overlap Split Section */
.overlap-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlap-image {
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.overlap-text {
    width: 90%;
    max-width: 700px;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .overlap-container {
        flex-direction: row;
        align-items: flex-start;
    }
    .overlap-image {
        width: 60%;
        margin-right: -10%;
    }
    .overlap-text {
        width: 50%;
        margin-top: 100px;
    }
}

/* FAQ Accordion */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    padding: 20px;
    font-weight: bold;
    color: var(--accent-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
}

details[open] .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Testimonials Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.masonry-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.quote-text {
    font-style: italic;
    margin-bottom: 15px;
}

.quote-author {
    font-weight: bold;
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* V5 Unique: CSS Tabs (Program Page) */
.css-tabs {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.css-tabs input[type="radio"] {
    display: none;
}

.tab-label {
    padding: 15px 20px;
    background: var(--bg-light);
    color: var(--text-main);
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    transition: var(--transition);
}

.tab-label:last-of-type {
    margin-right: 0;
}

.tab-content {
    width: 100%;
    padding: 40px;
    background: var(--bg-white);
    border: 1px solid var(--bg-light);
    border-radius: 0 0 8px 8px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#tab1:checked ~ .tab-label[for="tab1"],
#tab2:checked ~ .tab-label[for="tab2"],
#tab3:checked ~ .tab-label[for="tab3"],
#tab4:checked ~ .tab-label[for="tab4"] {
    background: var(--accent-color);
    color: var(--bg-white);
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4 {
    display: block;
}

.tab-inner-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .tab-inner-flex {
        flex-direction: row;
        align-items: center;
    }
    .tab-text, .tab-img {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .tab-label {
        flex: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 8px;
    }
    .tab-content {
        border-radius: 8px;
    }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CTA Sidebar Layout */
.cta-container {
    display: flex;
    flex-direction: column;
    background: var(--accent-color);
    color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.cta-container h2 { color: var(--bg-white); }

@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    .cta-text-area { flex: 2; }
    .cta-action-area { flex: 1; text-align: right; }
}

/* V5 Unique: Vertical Storytelling (Mission Page) */
.story-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.story-year {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

@media (min-width: 768px) {
    .story-row {
        flex-direction: row;
    }
    .story-row.reverse {
        flex-direction: row-reverse;
    }
    .story-content, .story-image {
        flex: 1;
    }
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.value-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Manifesto */
.manifesto-container {
    max-width: 800px;
}
.manifesto-text {
    font-size: 24px;
    font-style: italic;
    color: var(--accent-color);
    line-height: 1.8;
}

/* V5 Unique: Sidebar Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.info-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
}

.info-item {
    margin-top: 25px;
}
.info-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-intro {
    margin-bottom: 30px;
    color: var(--text-light);
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--accent-color);
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 126, 189, 0.2);
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 350px 1fr;
    }
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
}
.legal-content h2 {
    margin-top: 40px;
    font-size: 22px;
}
.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    color: var(--text-light);
}
.legal-content ul {
    padding-left: 20px;
}

/* Thank You Page */
.thank-container {
    max-width: 600px;
}
.thank-icon {
    font-size: 60px;
    margin-bottom: 20px;
}
.next-steps {
    margin-top: 40px;
    padding: 40px;
}
.action-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 9999;
    padding: 18px 24px;
    background-color: #2C2C2C;
    color: #FFFFFF;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 16px;
    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: 14px; }
#cookie-banner a { color: var(--secondary-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: 4px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept { background-color: var(--primary-color); color: #fff; }
.cookie-btn-decline { background-color: transparent; color: #fff; border: 1px solid #fff; }

@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; }
}