/* Palette: Violet-Gold */
:root {
    --primary-color: #4B1461; /* Deep Violet */
    --accent-color: #D4AC0D; /* Gold */
    --light-bg-color: #FDFBF8;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --card-bg-color: #ffffff;
    --border-color: #eeeeee;
    --shadow-color: rgba(0, 0, 0, 0.07);
}

/* --- Global Resets & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
    font-size: 16px;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.3;
    color: var(--primary-color);
    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); }
p { margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }

/* --- Layout & Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    margin-bottom: 8px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* --- Header & Navigation --- */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.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;
    z-index: 100;
    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(--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;
}

.desktop-nav a {
    color: var(--dark-text-color);
    font-weight: 500;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 66px; /* Header height */
    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(--card-bg-color);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 10px 20px;
}

.mobile-nav li {
    padding: 14px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav li:last-child {
    border-bottom: none;
}

@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: bold;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}
.btn-primary:hover {
    background-color: #c59d0b;
    border-color: #c59d0b;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

/* --- Hero Section (Floating Card) --- */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 20, 97, 0.4); /* Violet overlay */
    z-index: -1;
}
.hero-content-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    max-width: 700px;
    box-shadow: 0 4px 20px var(--shadow-color);
}
.hero-content-card h1 {
    color: var(--primary-color);
}
.hero-content-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
}

/* --- General Components & Cards --- */
.card {
    background-color: var(--card-bg-color);
    padding: 24px;
    box-shadow: 0 2px 12px var(--shadow-color);
    height: 100%;
}
.card-title {
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* --- Benefits Section --- */
.benefits-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .benefits-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .benefits-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item.placeholder {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.placeholder-content {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item:first-child {
        grid-column: span 2;
    }
}

/* --- Two Column Layout --- */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.col-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
}
.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}
@media (min-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 12px 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 thead th {
    border-bottom: none;
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.comparison-table tbody td:nth-child(2) {
    color: #c0392b;
}
.comparison-table tbody td:nth-child(3) {
    color: #27ae60;
    font-weight: bold;
}

/* --- Accordion FAQ --- */
.faq-container {
    max-width: 800px;
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-title {
    display: block;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    padding-right: 30px;
}
.accordion-title::after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.accordion-item[open] .accordion-title::after {
    transform: translateY(-50%) rotate(45deg);
}
.accordion-content {
    padding-bottom: 20px;
}

/* --- Page Header (Internal Pages) --- */
.page-header-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 0;
    text-align: center;
}
.page-header-section h1 {
    color: var(--light-text-color);
}
.page-header-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* --- Timeline (Program Page) --- */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--light-bg-color);
}
.timeline-content {
    padding-left: 10px;
}

/* --- Split Layout (Mission Page) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.split-image img {
    width: 100%;
}
@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.manifesto-container {
    text-align: center;
    max-width: 800px;
}
blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.3rem;
    color: #555;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-details p { margin-bottom: 0.5rem; }
.working-hours-title { margin-top: 2rem; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--accent-color);
}
.form-submit-btn {
    width: 100%;
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* --- Legal & Thank You Pages --- */
.legal-page h2 { margin-top: 2rem; }
.legal-page ul { margin-left: 20px; margin-bottom: 1rem; }
.thank-you-section .text-center { text-align: center; }
.next-steps { margin-top: 40px; }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color) !important;
    color: var(--light-text-color) !important;
    padding: 50px 0 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 { color: var(--accent-color) !important; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.8) !important; }
.footer-col a:hover { color: var(--light-text-color) !important; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7) !important;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- 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(--dark-text-color);
    color: var(--light-text-color);
    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: var(--accent-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;
    font-weight: bold;
}
.cookie-btn-accept {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.cookie-btn-decline {
    background-color: #555;
    color: #fff;
}
@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; }
}

/* --- Utility Classes --- */
.responsive-image {
    max-width: 100%;
    height: auto;
}
.centered-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.cta-section {
    background-color: var(--accent-color);
}
.cta-container {
    text-align: center;
}
.cta-container h2, .cta-container p {
    color: var(--primary-color);
}
.cta-container .btn {
    margin-top: 1rem;
}