/* 
   Palette: Cold Purple-Grey (Version 2 Unique)
   Primary: #6B5B95
   Secondary: #9B89B3
   Background: #F4F4F6
   Text: #2C2C34
   Accent: #D4A5A5
*/

:root {
    --primary-color: #6B5B95;
    --secondary-color: #9B89B3;
    --bg-color: #F4F4F6;
    --text-color: #2C2C34;
    --accent-color: #D4A5A5;
    --white: #FFFFFF;
    --footer-bg: #1A1A24;
    --footer-text: #E0E0E5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
p { margin-bottom: 15px; font-size: 1.05rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary, .btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover, .btn-submit:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Layout (Strict Rules) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--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(--primary-color);
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.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(--primary-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 {
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent-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(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@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);
    }
}

/* V2 Unique Hero: Diagonal Split */
.hero-diagonal {
    display: flex;
    min-height: 80vh;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5% 5% 5% 10%;
    z-index: 2;
}

.hero-text-area {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-image-area {
    flex: 1;
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 992px) {
    .hero-diagonal {
        flex-direction: column;
    }
    .hero-content-wrapper {
        padding: 40px 20px;
    }
    .hero-image-area {
        min-height: 400px;
        clip-path: none;
    }
}

/* V2 Unique: 2x2 Grid Section */
.grid-2x2-section {
    padding: 80px 0;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.cards-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .cards-grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
}

.card-icon {
    font-size: 3rem;
    font-weight: bold;
    color: var(--bg-color);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

/* V2 Unique: Overlap Section */
.overlap-section {
    padding: 80px 0;
    background-color: var(--white);
}

.overlap-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.overlap-image {
    width: 50%;
    position: relative;
    z-index: 1;
}

.overlap-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.overlap-text {
    width: 55%;
    background: var(--bg-color);
    padding: 50px;
    margin-left: -5%;
    position: relative;
    z-index: 2;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .overlap-wrapper {
        flex-direction: column;
    }
    .overlap-image, .overlap-text {
        width: 100%;
        margin-left: 0;
    }
    .overlap-text {
        margin-top: -30px;
    }
}

/* V2 Unique: Accordion Section */
.accordion-section {
    padding: 80px 0;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.accordion-header {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--primary-color);
    list-style: none;
    position: relative;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
}

details[open] .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-color);
}

/* Page Headers */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Program Page: Large Accordion */
.modules-section {
    padding: 80px 0;
}

.module-intro {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.module-inline-img {
    width: 40%;
    border-radius: 8px;
}

.module-intro-text {
    width: 60%;
}

@media (max-width: 768px) {
    .module-intro {
        flex-direction: column;
    }
    .module-inline-img, .module-intro-text {
        width: 100%;
    }
}

.large-accordion-item {
    background: var(--white);
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
}

.large-accordion-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    list-style: none;
}

.large-accordion-header::-webkit-details-marker { display: none; }

.mod-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 20px;
    min-width: 100px;
}

.mod-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.large-accordion-content {
    padding: 0 25px 25px 145px;
}

@media (max-width: 600px) {
    .large-accordion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .large-accordion-content {
        padding: 0 25px 25px;
    }
}

/* Stats Bar */
.stats-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.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: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mission Page: Timeline */
.timeline-section {
    padding: 80px 0;
}

.timeline-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-img {
    margin-top: 20px;
    border-radius: 4px;
}

.manifesto-section {
    padding: 60px 0 100px;
}

.manifesto-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-box h2 {
    color: var(--white);
}

/* Contact Page: Top-Bottom Layout */
.contact-top-bottom {
    padding: 80px 0;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .contact-info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.c-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Legal Pages */
.legal-section {
    padding: 80px 0;
}

.legal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    margin-top: 30px;
}

.legal-content h3 {
    margin-top: 30px;
}

/* Thank You Page */
.thank-you-section {
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.text-center {
    text-align: center;
}

.thank-you-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
}

.thank-you-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer (Hardcoded Colors) */
.site-footer {
    background-color: #1A1A24 !important;
    color: #E0E0E5 !important;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFFFFF !important;
    display: block;
    margin-bottom: 15px;
}

.footer-desc {
    color: #B0B0B8 !important;
    font-size: 0.9rem;
}

.footer-heading {
    color: #FFFFFF !important;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a, .footer-contact a {
    color: #B0B0B8 !important;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    color: #FFFFFF !important;
}

.footer-contact p {
    color: #B0B0B8 !important;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888890 !important;
    font-size: 0.85rem;
}

/* 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(--text-color);
    color: var(--white);
    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(--accent-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: var(--white);
}

.cookie-btn-decline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

@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; 
    }
}