/*
  Color Palette: Dynamic Tech (Purple/Orange)
  --primary-color: #9B59B6; (Vibrant Purple)
  --secondary-color: #7D3C98; (Darker Purple)
  --accent-color: #E67E22; (Orange)
  --bg-color: #FDFEFE; (Almost White)
  --text-color: #1C2833;
  --light-bg: #F4F6F7;
  --dark-bg: #2C3E50;
  --text-light: #ECF0F1;
*/

:root {
    --primary-color: #9B59B6;
    --secondary-color: #7D3C98;
    --accent-color: #E67E22;
    --bg-color: #FDFEFE;
    --text-color: #1C2833;
    --light-bg: #F4F6F7;
    --dark-bg: #2C3E50;
    --text-light: #ECF0F1;
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
    --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--secondary-color); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--text-color); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { font-size: clamp(1rem, 2.5vw, 1.1rem); margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
ul { list-style: none; }

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 48px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-title {
    margin-bottom: 8px;
}
.section-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #566573;
}
.text-center { text-align: center; }

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-subtle);
    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(--secondary-color);
    z-index: 100;
}
.logo:hover { color: var(--primary-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(--text-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;
}
.desktop-nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}
.desktop-nav a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background: var(--bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.mobile-nav ul { list-style: none; padding: 20px; }
.mobile-nav li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
}
.card {
    background-color: #fff;
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.card-title {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

/* --- Hero Section (Diagonal Split) --- */
.hero-diagonal {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
    background-color: var(--light-bg);
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}
.hero-text-wrapper {
    max-width: 550px;
}
.hero-title {
    color: var(--secondary-color);
}
.hero-subtitle {
    font-size: 1.2rem;
    margin: 24px 0;
}
.hero-image-container {
    display: none; /* Hidden on mobile */
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Benefits Section (Asymmetric Grid) --- */
.benefits-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-subtle);
}
.featured-card {
    background-color: var(--light-bg);
    border-left: 5px solid var(--primary-color);
}

/* --- Quote Section --- */
.quote-highlight-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 64px 0;
    text-align: center;
}
.quote-block {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.quote-block::before {
    content: '“';
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    line-height: 1;
}
.quote-text {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 24px;
}
.quote-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-card);
}
.gallery-item.placeholder {
    background-color: var(--light-bg);
    border-radius: var(--border-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* --- Stats Bar Section --- */
.stats-bar {
    background-color: var(--accent-color);
    padding: 32px 0;
    color: #fff;
}
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}
.stat-label {
    font-size: 1rem;
    margin: 0;
}

/* --- CTA Banner --- */
.cta-banner-section {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 64px 0;
}
.cta-banner-container {
    text-align: center;
}
.cta-title {
    color: #fff;
}
.cta-text {
    max-width: 600px;
    margin: 16px auto 32px;
}

/* --- Page Hero --- */
.page-hero {
    background-color: var(--light-bg);
    padding: 64px 0;
    text-align: center;
}
.page-title { color: var(--secondary-color); }
.page-subtitle { max-width: 700px; margin: 16px auto 0; }

/* --- Program Page: Timeline --- */
.program-timeline-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.program-timeline {
    position: relative;
    padding: 20px 0;
}
.program-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    z-index: 1;
}
.timeline-module {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--border-radius-btn);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.timeline-title { color: var(--secondary-color); }
.timeline-image-wrapper img {
    width: 100%;
    border-radius: var(--border-radius-card);
}

/* --- Mission Page --- */
.mission-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.mission-image-content img {
    width: 100%;
    border-radius: var(--border-radius-card);
}
.mission-timeline {
    display: grid;
    gap: 24px;
}
.mission-timeline-item {
    display: flex;
    gap: 20px;
}
.timeline-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
}
.event-title {
    color: var(--secondary-color);
}
.alternate-bg { background-color: var(--light-bg); }

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.2);
}
.form-submit-btn {
    width: 100%;
}
.contact-info-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius-card);
    margin-bottom: 20px;
}
.contact-info-title { margin-bottom: 10px; }

/* --- Legal & Thank You Pages --- */
.legal-page h1, .legal-page h2 { margin-top: 2rem; }
.legal-page ul { list-style: disc; padding-left: 20px; }
.thank-you-section { min-height: 60vh; display: flex; align-items: center; }
.thank-you-title { font-size: 3rem; color: var(--primary-color); }
.what-next { margin-top: 40px; }
.next-steps-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
    padding: 48px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.site-footer a {
    color: var(--text-light) !important;
}
.site-footer a:hover {
    color: var(--accent-color) !important;
}
.footer-logo {
    font-size: 1.8rem;
    color: #fff !important;
}
.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #fff !important;
}
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid #4a627a;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- 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(--dark-bg);
    color: var(--text-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    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 { 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-radius: var(--border-radius-btn);
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept { background-color: var(--primary-color); color: #fff; }
.cookie-btn-decline { background-color: #566573; color: #fff; }

/* --- Media Queries (Mobile First) --- */

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger,
    .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); }
}

@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; }
}

@media (min-width: 768px) {
    .section-padding { padding: 80px 0; }
    .container { padding: 0 24px; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .benefits-asymmetric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-card {
        grid-column: 1 / 3;
    }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-container {
        flex-direction: row;
        justify-content: space-around;
    }
    .program-timeline-container { grid-template-columns: 2fr 1fr; }
    .mission-intro-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1.5fr 1fr; }
}

@media (min-width: 1024px) {
    .hero-diagonal {
        grid-template-columns: 1fr 1.2fr;
    }
    .hero-image-container {
        display: block;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .benefits-asymmetric-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .featured-card {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}