/*
 * Palette: Amethyst Slate
 * #8E44AD (Primary Purple)
 * #D2B4DE (Pastel Lavender)
 * #2C3A47 (Dark Slate)
 * #FDF2E9 (Warm Cream)
 * #1C2833 (Text Dark)
 * #F4F6F7 (Text Light)
*/

:root {
    --primary-color: #8E44AD;
    --secondary-color: #D2B4DE;
    --dark-bg: #2C3A47;
    --light-bg: #FDF2E9;
    --text-dark: #1C2833;
    --text-light: #F4F6F7;
    --border-color: #e0e0e0;
    --border-radius-card: 24px;
    --border-radius-btn: 8px;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.2;
}

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); }

p {
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    padding-left: 20px;
}

/* --- Layout Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--text-light);
}

.section-dark a {
    color: var(--secondary-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px auto;
}

.section-intro {
    font-size: 1.1rem;
    color: #555;
}

.section-dark .section-intro {
    color: #ccc;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(253, 242, 233, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 15px 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--text-dark);
    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(--text-dark);
    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 {
    color: var(--text-dark);
    font-weight: 500;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 99;
    background-color: var(--dark-bg);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav li a {
    color: var(--text-light);
    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); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}
.btn-primary:hover { background-color: #7d3c98; }
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover { background-color: var(--secondary-color); color: var(--text-dark); }
.btn-full-width { width: 100%; }

/* --- Hero Section (split-color) --- */
.hero-split-color {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}
.hero-content-area {
    background-color: var(--secondary-color);
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.hero-text-wrapper { max-width: 600px; text-align: center; }
.hero-title { color: var(--text-dark); }
.hero-subtitle { font-size: 1.1rem; max-width: 550px; margin: 24px auto 32px; }
.hero-image-area {
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 300px;
    flex: 1;
}

@media (min-width: 768px) {
    .hero-split-color { flex-direction: row; }
    .hero-content-area, .hero-image-area { flex: 1 1 50%; }
    .hero-text-wrapper { text-align: left; }
    .hero-subtitle { margin-left: 0; }
}

/* --- Timeline --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 19px;
    z-index: 1;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-icon {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: 3px solid var(--primary-color);
    top: 10px;
    left: 0;
    z-index: 2;
}
.timeline-title { color: var(--primary-color); }

/* --- Two Column Layout --- */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.two-col-image img {
    border-radius: var(--border-radius-card);
}
.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}
.styled-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.section-dark .styled-list li::before { color: var(--secondary-color); }

@media (min-width: 768px) {
    .two-col-layout { grid-template-columns: 1fr 1fr; }
    .reverse-on-mobile { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .two-col-layout.reverse-on-mobile { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
    .two-col-layout.reverse-on-mobile .two-col-content { order: 2; }
    .two-col-layout.reverse-on-mobile .two-col-image { order: 1; display: flex;
        justify-content: center;}
}

/* --- Quote Highlight --- */
.quote-highlight-section {
    background: linear-gradient(135deg, var(--primary-color), #6c3483);
    padding: 80px 0;
    color: var(--text-light);
}
.quote-block {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}
.quote-block::before {
    content: '“';
    font-size: 10rem;
    position: absolute;
    top: -50px;
    left: -20px;
    opacity: 0.1;
    line-height: 1;
}
.quote-text {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-style: italic;
    margin-bottom: 24px;
}
.quote-author {
    font-style: normal;
    font-weight: 600;
}

/* --- Comparison Table --- */
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table thead {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-card);
}
.gallery-placeholder {
    background: linear-gradient(45deg, var(--dark-bg), #3c4a58);
    border-radius: var(--border-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    min-height: 250px;
}
.placeholder-title { color: var(--text-light); }

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Program Page: Timeline --- */
.page-header-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}
.page-header-section .container { max-width: 800px; }
.program-timeline-container {
    display: grid;
    gap: 40px;
}
.program-timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.program-timeline-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    min-width: 50px;
    text-align: center;
}
.program-timeline-title { margin-bottom: 8px; }

/* --- Mission Page: Values Grid --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background-color: #3e5062;
    padding: 32px;
    border-radius: var(--border-radius-card);
    border-top: 4px solid var(--secondary-color);
}
.value-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.value-card-title { color: var(--text-light); }

@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Contact Page --- */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.contact-info-block h2, .contact-form-block h2 {
    margin-bottom: 24px;
}
.contact-details .contact-item {
    margin-bottom: 20px;
}
.contact-details h4 {
    margin-bottom: 4px;
    color: var(--primary-color);
}
.contact-details p { margin: 0; }
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-btn);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (min-width: 1024px) {
    .contact-grid-layout { grid-template-columns: 1fr 1.5fr; }
}

/* --- Thank You Page --- */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.thank-you-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.next-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.next-steps-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.back-home-btn {
    margin-top: 40px;
}

/* --- Footer --- */
.site-footer {
    background-color: #1C2833 !important;
    color: #bdc3c7 !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}
.site-footer h3 {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.site-footer p, .site-footer li {
    font-size: 0.95rem;
}
.site-footer a {
    color: #bdc3c7 !important;
}
.site-footer a:hover {
    color: var(--text-light) !important;
    text-decoration: underline;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    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);
    border-top: 2px solid var(--primary-color);
}
#cookie-banner.hidden { display: none; }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { color: var(--secondary-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: var(--border-radius-btn);
    cursor: pointer;
    font-weight: 500;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--text-light); }
.cookie-btn-decline { background-color: #4b5a68; color: var(--text-light); }

@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; }
}
