/* 
 * Color Palette: Cold Sophistication
 * Primary: #7D3C98 (Deep Purple)
 * Secondary: #C0392B (Strong Red)
 * Text: #343a40 (Dark Gray)
 * Light BG: #F8F9FA (Very Light Gray)
 * Borders: #dee2e6 (Light Gray)
*/

:root {
    --primary-color: #7D3C98;
    --secondary-color: #C0392B;
    --text-color: #343a40;
    --light-bg: #F8F9FA;
    --white-color: #ffffff;
    --dark-text: #212529;
    --border-color: #dee2e6;
    --footer-bg: #2c2c2c;
    --footer-text: #cccccc;
}

/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 40px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Header & Navigation (MANDATORY) --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    box-shadow: 0 2px 4px 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;
}

.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-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 .nav-list a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.desktop-nav .nav-list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    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(--white-color);
    box-shadow: 0 4px 6px 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(--border-color);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    font-size: 18px;
    color: var(--dark-text);
    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;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    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: #5a216d;
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #922b21;
    color: var(--white-color);
    transform: translateY(-2px);
}

/* --- Hero Section (Diagonal) --- */
.hero-diagonal {
    display: flex;
    min-height: 80vh;
    background-color: var(--light-bg);
}
.hero-content {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-text-wrapper {
    max-width: 550px;
}
.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.hero-image-container {
    width: 50%;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 992px) {
    .hero-diagonal { flex-direction: column; min-height: auto; }
    .hero-content, .hero-image-container { width: 100%; }
    .hero-image-container { clip-path: none; max-height: 400px; }
    .hero-content { padding: 60px 20px; text-align: center; }
}

/* --- Pillars Section --- */
.pillars-section {
    background-color: var(--light-bg);
}
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.pillar-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.pillar-icon {
    margin-bottom: 20px;
}
.pillar-icon svg {
    color: var(--primary-color);
}
.pillar-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}
@media (min-width: 768px) {
    .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 0;
}
.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}
.stat-label {
    font-size: 1rem;
    max-width: 200px;
}

/* --- How It Works Section --- */
.how-it-works-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.how-it-works-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.how-it-works-content .section-title {
    text-align: left;
}
@media (min-width: 992px) {
    .how-it-works-container { grid-template-columns: 1fr 1fr; }
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--light-bg);
}
.cta-container {
    text-align: center;
}
.cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.cta-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Page Header --- */
.page-header-section {
    background-color: var(--light-bg);
    padding: 50px 0;
    text-align: center;
}
.page-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Accordion (Program Page) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    background-color: var(--light-bg);
    padding: 18px 25px;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}
.accordion-header:hover {
    background-color: #e9ecef;
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-header.active::after {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 25px;
}
.accordion-content p {
    padding: 20px 0;
}
.content-image {
    margin-top: 20px;
    border-radius: 5px;
}

/* --- Outcomes Section --- */
.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.outcome-card {
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: 0 5px 5px 0;
}
.outcome-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .outcomes-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Mission Page --- */
.mission-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.mission-image img {
    border-radius: 8px;
}
.mission-text .section-title {
    text-align: left;
}
@media (min-width: 992px) {
    .mission-container { grid-template-columns: 40% 60%; }
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.value-card {
    background-color: var(--white-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.value-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: 1fr 1fr; }
}
.manifesto-section {
    background-color: var(--light-bg);
}
.manifesto-content blockquote {
    border-left: 5px solid var(--secondary-color);
    padding-left: 30px;
    font-size: 1.3rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Contact Page --- */
.contact-info-top {
    background-color: var(--light-bg);
    padding-bottom: 0;
}
.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding-bottom: 30px;
}
.contact-detail-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}
@media (min-width: 768px) {
    .contact-details-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .contact-details-grid { grid-template-columns: repeat(4, 1fr); }
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.form-title {
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}
.form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* --- Legal & Thank You Pages --- */
.legal-page .container {
    max-width: 800px;
}
.legal-page h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-text);
}
.legal-page ul {
    list-style: disc;
    padding-left: 20px;
}
.text-center { text-align: center; }
.thank-you-icon {
    margin: 30px 0;
    color: var(--primary-color);
}
.next-steps {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
}
.next-steps-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.back-to-home-link {
    display: inline-block;
    margin-top: 40px;
    font-weight: bold;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 50px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.footer-column h4 {
    color: var(--white-color) !important;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-column p, .footer-column li {
    margin-bottom: 10px;
}
.footer-column a {
    color: var(--footer-text) !important;
}
.footer-column a:hover {
    color: var(--white-color) !important;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #444;
}
@media (min-width: 768px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* --- Cookie Banner (MANDATORY) --- */
#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;
    transform: translateY(0); transition: transform 0.4s ease;
    background-color: var(--dark-text);
    color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
#cookie-banner a { color: var(--border-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-color);
}
.cookie-btn-decline {
    background-color: #6c757d;
    color: var(--white-color);
}
@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; }
}