/*
 * Design System: Corporate Clean
 * Border Style: Rounded
 * Shadow Style: Subtle
 * Color Mode: Light
 * Color Palette: Corporate Plum & Terracotta
 * #4B1461 (Deep Plum)
 * #A93226 (Terracotta Red)
 * #935116 (Warm Brown)
 * #5D6D7E (Slate Grey)
 * #F4F6F7 (Light Background)
 * #17202A (Dark Text)
*/

:root {
    --primary-color: #4B1461;
    --secondary-color: #A93226;
    --accent-color: #935116;
    --text-color: #17202A;
    --light-text-color: #FFFFFF;
    --background-color: #FFFFFF;
    --light-accent-bg: #F4F6F7;
    --border-color: #D5D8DC;
    --heading-font: 'Georgia', serif;
    --body-font: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem 0; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
ul { list-style-position: inside; padding-left: 0; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout & Structure --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.section:first-child {
    border-top: none;
}

.section-light-accent {
    background-color: var(--light-accent-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #5D6D7E;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--background-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(--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(--primary-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 { font-weight: 500; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--background-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

@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 24px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #87281e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}


/* --- Hero Section (Floating Card) --- */
.hero-section.hero-floating-card {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}
.hero-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

/* --- Benefits Asymmetric Grid --- */
.benefits-asymm-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.benefit-card-asymm {
    background-color: var(--light-accent-bg);
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}
.benefit-card-asymm h3 { color: var(--secondary-color); }

@media (min-width: 768px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-card {
        grid-column: 1 / -1;
        text-align: center;
    }
    .featured-card p {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 1024px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .featured-card {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        text-align: left;
    }
     .featured-card p { max-width: 100%; }
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table thead {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.comparison-table tbody tr:nth-child(even) {
    background-color: var(--light-accent-bg);
}
.comparison-table td:nth-child(2) { color: #27AE60; }
.comparison-table td:nth-child(3) { color: #C0392B; }

/* --- Icon Features Grid --- */
.icon-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.icon-feature-item {
    text-align: center;
}
.icon-feature-emoji {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
}
.icon-feature-item h4 {
    color: var(--accent-color);
    margin-bottom: 4px;
}
.icon-feature-item p {
    font-size: 0.9rem;
    color: #5D6D7E;
    margin: 0;
}
@media (min-width: 500px) {
    .icon-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .icon-features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.gallery-placeholder {
    background-color: var(--border-color);
    color: #5D6D7E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-family: var(--heading-font);
    min-height: 200px;
    border-radius: 10px;
}

/* --- Quote Highlight Section --- */
.quote-highlight-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.quote-wrapper {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}
.quote-mark {
    font-size: 6rem;
    font-family: var(--heading-font);
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: -20px;
    left: -20px;
    line-height: 1;
}
.quote-wrapper blockquote {
    font-size: 1.5rem;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.quote-wrapper cite {
    font-weight: bold;
    font-style: normal;
}

/* --- Program Page --- */
.page-header-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-accent-bg);
}
.page-header-section[style] {
    background-size: cover;
    background-position: center;
    position: relative;
}
.text-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}
.page-header-section[style] .page-title, .page-header-section[style] .page-subtitle {
    color: var(--light-text-color);
}

.program-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.program-sidebar .sidebar-image {
    border-radius: 10px;
    margin-bottom: 24px;
}
.sidebar-cta {
    background-color: var(--light-accent-bg);
    padding: 24px;
    border-radius: 10px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-header {
    width: 100%;
    padding: 16px 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.accordion-item[open] .accordion-header::after {
    transform: rotate(45deg);
}
.accordion-content {
    padding-bottom: 16px;
}

@media (min-width: 992px) {
    .program-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* --- Mission Page (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 15px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 3px solid var(--primary-color);
    z-index: 1;
}
.timeline-date {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}
.timeline-content h3 {
    color: var(--accent-color);
}

.manifesto-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.manifesto-image img { border-radius: 10px; }
.manifesto-text ul { list-style: none; padding: 0; }
.manifesto-text li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.manifesto-text li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
@media (min-width: 768px) {
    .manifesto-layout { grid-template-columns: 1fr 1fr; }
}

/* --- Contact Page --- */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-accent-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.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: 8px;
    font-size: 1rem;
}
.form-submit-btn { width: 100%; }

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.contact-card {
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.contact-card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.contact-card-title { color: var(--primary-color); }
.contact-card p { margin-bottom: 8px; color: #5D6D7E; }
@media (min-width: 768px) {
    .contact-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Legal & Thank You Pages --- */
.text-content { max-width: 800px; }
.text-content h1, .text-content h2 { margin-top: 2rem; }
.text-center { text-align: center; }

.thank-you-section { padding: 80px 0; }
.thank-you-icon { font-size: 4rem; margin-bottom: 1rem; }
.thank-you-title { color: var(--primary-color); }
.what-next { margin-top: 40px; }
.next-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }


/* --- Footer --- */
.site-footer {
    background-color: #17202A !important;
    color: #F4F6F7 !important;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-heading { color: var(--light-text-color) !important; }
.footer-column p, .footer-column a { color: #D5D8DC !important; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #5D6D7E;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
@media (min-width: 500px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--text-color);
    color: var(--light-text-color);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    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: 0.9rem; }
#cookie-banner a { color: #FFFFFF; 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: 8px;
    cursor: pointer;
    font-weight: bold;
}
.cookie-btn-accept { background-color: var(--secondary-color); color: var(--light-text-color); }
.cookie-btn-decline { background-color: #5D6D7E; color: var(--light-text-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; }
}