/*
 * Design System: Corporate Clean
 * Border Style: Rounded
 * Shadow Style: Dramatic
 * Color Mode: Light
 * Color Palette: Terracotta & Slate
 */

:root {
    --primary-color: #E57373; /* Muted Terracotta */
    --secondary-color: #607D8B; /* Slate Gray */
    --accent-color: #FFB74D; /* Warm Orange Accent */
    --dark-color: #2C3E50; /* Dark Blue-Gray for text */
    --light-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #DEE2E6;
    --font-family-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --shadow-dramatic: 0 24px 64px rgba(44, 62, 80, 0.22);
    --shadow-dramatic-hover: 0 32px 80px rgba(44, 62, 80, 0.30);
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-sans);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    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: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); text-decoration: underline; }
ul { margin: 0; padding-left: 20px; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout & Container --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding-top: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-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(--dark-color);
    text-decoration: none;
    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-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 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 71px; /* Header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: var(--light-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: max-height 0.4s ease-out;
    z-index: 99;
}

.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 {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
    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;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}
.btn-primary:hover {
    background-color: #D32F2F; /* Darker terracotta */
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    text-decoration: none;
}

/* --- Hero Section (Grid Overlap) --- */
.hero-grid-overlap {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--bg-light);
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 20px;
}
.hero-image-wrapper {
    order: 1;
}
.hero-content-wrapper {
    order: 2;
    z-index: 2;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    object-fit: cover;
}
.hero-content-card {
    background: var(--light-color);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
.hero-title {
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .hero-grid-overlap {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 0;
    }
    .hero-image-wrapper {
        order: 1;
    }
    .hero-content-wrapper {
        order: 2;
        margin-left: -100px; /* Overlap effect */
    }
    .hero-content-card {
        padding: 40px;
    }
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.benefit-card {
    background-color: var(--light-color);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic-hover);
}
.card-title {
    color: var(--primary-color);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Expert Block --- */
.expert-section { background-color: var(--bg-light); }
.expert-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.expert-image-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto;
}
.expert-quote blockquote {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: var(--dark-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    margin: 0 0 20px 0;
}
.expert-quote cite {
    display: block;
    font-style: normal;
    text-align: left;
}
.expert-name {
    display: block;
    font-weight: 700;
}
.expert-title {
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .expert-container {
        grid-template-columns: auto 1fr;
        gap: 40px;
    }
    .expert-image-placeholder { margin: 0; }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
}
.gallery-placeholder {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* --- Stats Bar Section --- */
.stats-bar-section {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 40px 0;
}
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
}
.stat-item .stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    display: block;
}
.stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Two Column Section --- */
.two-col-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.two-col-image img {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.styled-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (min-width: 992px) {
    .two-col-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
    }
}

/* --- Page Header --- */
.page-header-section {
    background-color: var(--bg-light);
    text-align: center;
    padding: 40px 0;
}

/* --- Timeline (Program Page) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 18px;
    z-index: -1;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    padding-left: 60px;
    padding-bottom: 40px;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    left: 10px;
    top: 5px;
    background-color: var(--light-color);
    border: 4px solid var(--primary-color);
    z-index: 1;
}
.timeline-content {
    padding: 20px;
    background-color: var(--light-color);
    position: relative;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
.timeline-title {
    color: var(--dark-color);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--bg-light);
}
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}
.cta-title {
    margin: 0;
}
@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Story & Mission Page --- */
.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.story-image img {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-dramatic);
}
@media (min-width: 992px) {
    .story-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
    }
}
.values-section { background-color: var(--bg-light); }
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.value-card {
    background: var(--light-color);
    padding: 24px;
    text-align: center;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Contact Page --- */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-detail-item {
    margin-bottom: 20px;
}
.contact-detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}
.contact-detail-item p {
    margin: 0;
}
.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 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);
    box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.2);
}
.form-submit-btn {
    width: 100%;
}
@media (min-width: 992px) {
    .contact-grid-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
    }
}

/* --- Legal & Thank You Pages --- */
.legal-page h2 {
    margin-top: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.text-center { text-align: center; }
.thank-you-content {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius-card);
}
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color) !important;
    color: #bdc3c7 !important;
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.site-footer h3 {
    color: var(--light-color) !important;
    font-size: 1.2rem;
}
.site-footer a {
    color: #bdc3c7 !important;
}
.site-footer a:hover {
    color: var(--light-color) !important;
    text-decoration: underline;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}
.footer-links li, .footer-legal li {
    margin-bottom: 8px;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #34495e;
}
.footer-bottom p {
    margin: 0;
    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;
        gap: 40px;
    }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--dark-color);
    color: var(--light-color);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    box-shadow: 0 -4px 20px 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 { font-weight: bold; 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: 600;
}
.cookie-btn-accept { background-color: var(--primary-color); color: var(--light-color); }
.cookie-btn-decline { background-color: var(--secondary-color); color: var(--light-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; }
}