/* Purple & Grey Tech Palette */
:root {
    --primary-color: #6C3483;
    --primary-hover-color: #512E5F;
    --secondary-color: #2C3E50;
    --text-color: #34495E;
    --accent-color: #BDC3C7;
    --background-color: #F8F9F9;
    --white-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.07);
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
}

/* --- 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;
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .container {
        padding: 0 24px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    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;
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
}

.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(--secondary-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 {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}
.desktop-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    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 8px 16px var(--shadow-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.mobile-nav a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 100%;
    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);
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: var(--accent-color) !important;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h3 {
    color: var(--white-color) !important;
    font-size: 1.2rem;
}

.site-footer a {
    color: var(--accent-color) !important;
}

.site-footer a:hover {
    color: var(--white-color) !important;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #3e5164;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    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: var(--primary-hover-color);
    color: var(--white-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}
.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
    text-decoration: none;
}

/* --- Hero Section (Diagonal Split) --- */
.hero-diagonal-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--background-color);
}
.hero-text-wrapper {
    max-width: 550px;
}
.hero-title {
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 32px;
}
.hero-image-wrapper {
    display: none;
}
@media (min-width: 992px) {
    .hero-diagonal-split {
        grid-template-columns: 45% 55%;
        min-height: calc(100vh - 70px);
        max-height: 900px;
    }
    .hero-image-wrapper {
        display: block;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
        height: 100%;
    }
    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* --- Cards --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    background-color: var(--white-color);
    padding: 32px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-title {
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.gallery-image, .gallery-placeholder {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    height: 250px;
    object-fit: cover;
}
.gallery-placeholder {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .gallery-grid > *:first-child {
        grid-row: span 2;
        height: 100%;
    }
}

/* --- Checklist --- */
.checklist-block {
    list-style: none;
    display: grid;
    gap: 16px 32px;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
}
.checkmark {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .checklist-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- FAQ Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-btn);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 24px 24px 24px;
    line-height: 1.8;
}

/* --- Icon Features --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}
.icon-feature-item {
    padding: 20px;
}
.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}
.feature-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.icon-feature-item p {
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .icon-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .icon-features-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* --- Page Header --- */
.page-header {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 60px 0;
}
.page-header .page-title {
    color: var(--white-color);
}
.page-header .section-intro {
    color: var(--accent-color);
    margin-bottom: 0;
}

/* --- Timeline (Program Page) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 32px;
    height: 32px;
    border: 4px solid var(--accent-color);
    background-color: var(--background-color);
    border-radius: 50%;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-content {
    background-color: var(--white-color);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 12px var(--shadow-color);
}
.timeline-title {
    color: var(--primary-color);
}

/* --- Storytelling (Mission Page) --- */
.story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
}
.story-image img {
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 15px var(--shadow-color);
}
@media (min-width: 992px) {
    .story-block {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .story-block.reverse .story-image {
        order: 2;
    }
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-form-wrapper {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 12px var(--shadow-color);
}
.form-title {
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
}
.contact-info-card {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 32px;
    border-radius: var(--border-radius-card);
    margin-bottom: 24px;
}
.contact-info-card h3 {
    color: var(--white-color);
}
.contact-info-card p {
    color: var(--accent-color);
}
.contact-info-card a {
    color: var(--white-color);
    font-weight: bold;
}
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 3fr 2fr;
    }
}

/* --- Static & Thank You Pages --- */
.static-page-container {
    max-width: 800px;
}
.static-page-container h2 {
    margin-top: 40px;
}
.thank-you-section {
    padding: 80px 0;
}
.thank-you-next-steps {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius-card);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.back-home-btn {
    margin-top: 20px;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 62, 80, 0.85);
}
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-title, .cta-text {
    color: var(--white-color);
}
.cta-title {
    margin-bottom: 16px;
}
.cta-text {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

/* --- 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;
    transform: translateY(0); transition: transform 0.4s ease;
    background-color: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
}
#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(--white-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;
    cursor: pointer;
    border-radius: var(--border-radius-btn);
    font-weight: bold;
    transition: background-color 0.3s;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cookie-btn-accept:hover {
    background-color: var(--primary-hover-color);
}
.cookie-btn-decline {
    background-color: #5D6D7E;
    color: var(--white-color);
}
.cookie-btn-decline:hover {
    background-color: #495764;
}

@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; }
}