/* Palette Name: Pastel Lavender & Pink (Version 5) */
:root {
    --color-primary: #B39DDB; /* Soft Lavender */
    --color-primary-light: #E6E6FA; /* Very Light Lavender */
    --color-primary-dark: #9575CD; /* Deeper Lavender */
    --color-secondary: #F48FB1; /* Pastel Pink */
    --color-accent: #CE93D8; /* Light Purple */
    --color-bg: #FAFAFA; /* Warm White */
    --color-text: #4A148C; /* Deep Purple for readability */
    --color-text-light: #6A1B9A;
    --color-white: #FFFFFF;
    
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 100px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light { background-color: var(--color-white); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-primary-dark { background-color: var(--color-primary-dark); color: var(--color-white); }

.text-center-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.w-100 { width: 100%; }

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.bg-primary-dark h2, .bg-primary-dark h3, .bg-primary-dark p {
    color: var(--color-white);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* 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: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(244, 143, 177, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 143, 177, 0.6);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Header Layout (Strict Rules) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px 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;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text);
    z-index: 100;
}

.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(--color-text);
    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 {
    font-weight: 600;
}

.desktop-nav a:hover {
    color: var(--color-secondary);
}

.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(--color-white);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-primary-light);
}

@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);
    }
}

/* UNIQUE COMPONENT: Vertical Hero (Version 5) */
.vertical-hero {
    display: flex;
    flex-direction: column;
    background-color: var(--color-primary-light);
}

.hero-image-wrapper {
    width: 100%;
    height: 50vh;
    min-height: 300px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--color-text);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--color-text-light);
}

/* UNIQUE COMPONENT: Horizontal Scroll Gallery */
.scroll-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-primary-light);
}

.scroll-gallery::-webkit-scrollbar {
    height: 8px;
}
.scroll-gallery::-webkit-scrollbar-track {
    background: var(--color-primary-light);
    border-radius: 4px;
}
.scroll-gallery::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 4px;
}

.gallery-card {
    flex: 0 0 300px;
    background: var(--color-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-secondary);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Overlap Section */
.overlap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .overlap-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .overlap-image {
        margin-left: -50px;
        z-index: 1;
        box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
        border-radius: 20px;
        overflow: hidden;
    }
    .overlap-text {
        background: var(--color-white);
        padding: 50px;
        border-radius: 20px;
        z-index: 2;
        position: relative;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-number {
    display: block;
    font-size: 60px;
    font-weight: bold;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 10px;
}

/* UNIQUE COMPONENT: CSS-Only Tabs (Program Page) */
.css-tabs-container {
    display: flex;
    flex-wrap: wrap;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tab-input {
    display: none;
}

.tab-label {
    padding: 20px;
    flex: 1;
    text-align: center;
    background: var(--color-primary-light);
    color: var(--color-text);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.tab-label:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.tab-content {
    width: 100%;
    padding: 40px;
    display: none;
    order: 99;
}

#tab1:checked ~ .tab-label[for="tab1"],
#tab2:checked ~ .tab-label[for="tab2"],
#tab3:checked ~ .tab-label[for="tab3"] {
    background: var(--color-white);
    color: var(--color-secondary);
    border-bottom: 3px solid var(--color-secondary);
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
    display: block;
}

.tab-inner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .tab-inner-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .tab-image img {
        border-radius: 15px;
    }
}

/* CTA Flex */
.cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .cta-flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .cta-text {
        flex: 1;
        padding-right: 40px;
    }
}

/* UNIQUE COMPONENT: Zigzag Storytelling (Mission Page) */
.zigzag-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .zigzag-row {
        grid-template-columns: 1fr 1fr;
    }
    .zigzag-row.reverse .zigzag-content {
        order: 2;
    }
    .zigzag-row.reverse .zigzag-image {
        order: 1;
    }
}

.zigzag-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(179, 157, 219, 0.3);
}

.year-badge {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.values-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.values-list li {
    background: rgba(255,255,255,0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--color-secondary);
}

/* UNIQUE COMPONENT: Sidebar Layout (Contact Page) */
.sidebar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .sidebar-grid {
        grid-template-columns: 300px 1fr;
    }
}

.info-card {
    background: var(--color-primary-light);
    padding: 30px;
    border-radius: 15px;
}

.form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text);
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background-color: var(--color-bg);
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(179, 157, 219, 0.2);
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 30px;
    color: var(--color-text);
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Footer (Hardcoded Colors for Protection) */
.site-footer {
    background-color: #311B92 !important; /* Very Dark Purple */
    color: #FFFFFF !important;
    padding: 60px 0 20px;
}

.site-footer a, .site-footer p, .site-footer h4, .site-footer span {
    color: #FFFFFF !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #F48FB1 !important;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-links a:hover, .footer-legal a:hover {
    color: #F48FB1 !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 18px 24px;
    background-color: #FFFFFF;
    color: #4A148C;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    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: #F48FB1;
    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: #B39DDB;
    color: #FFFFFF;
}

.cookie-btn-decline {
    background-color: #f1f1f1;
    color: #333;
}

@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;
    }
}