/* Palette: Cold Purple-Grey (No Blue, No Green) */
:root {
    --primary: #4A235A; /* Deep Purple */
    --secondary: #D7BDE2; /* Soft Lilac */
    --accent: #8E44AD; /* Bright Purple */
    --dark: #342E37; /* Dark Charcoal */
    --grey: #5D6D7E; /* Slate Grey */
    --light: #F8F9F9; /* Off-White */
    --white: #FFFFFF;
    --text: #2C3E50; /* Dark Grey for text */
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.center-text {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--grey);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.full-width {
    width: 100%;
}

/* Header Layout (Strict Template) */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--primary);
    color: var(--white);
}

.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(--white);
}

.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;
    margin: 5px 0;
    background-color: var(--white);
    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(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--secondary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--primary);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    color: var(--white);
    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); }
}

/* V2 UNIQUE: Diagonal Hero */
.hero-diagonal {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero-diag-content {
    padding: 60px 20px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-diag-image {
    width: 100%;
    height: 400px;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .hero-diagonal {
        flex-direction: row;
        align-items: center;
    }
    .hero-diag-content {
        width: 50%;
        padding: 80px 5%;
    }
    .hero-diag-image {
        position: absolute;
        right: 0;
        top: 0;
        width: 60%;
        height: 100%;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* V2 UNIQUE: Stats Bar */
.stats-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (min-width: 576px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* V2 UNIQUE: Benefits 2x2 Overlap */
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.benefit-card-overlap {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border-top: 4px solid var(--accent);
    transition: transform var(--transition);
}

.benefit-card-overlap:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    font-weight: 900;
    color: var(--light);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
    z-index: 0;
}

.benefit-card-overlap h3, .benefit-card-overlap p {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .benefits-grid-2x2 { grid-template-columns: 1fr 1fr; }
    .benefit-card-overlap:nth-child(even) { transform: translateY(30px); }
    .benefit-card-overlap:nth-child(even):hover { transform: translateY(25px); }
}

/* V2 UNIQUE: Split Content */
.split-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.split-image-box {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius);
    width: 100%;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.floating-badge strong { color: var(--primary); font-size: 1.2rem; }
.floating-badge span { color: var(--grey); font-size: 0.9rem; }

.custom-list {
    list-style: none;
    margin-top: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

@media (min-width: 992px) {
    .split-wrapper { grid-template-columns: 1fr 1fr; }
}

/* V2 UNIQUE: Masonry Testimonials */
.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.masonry-item {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    color: var(--secondary);
    font-family: serif;
    line-height: 0;
    position: absolute;
    top: 40px;
    left: 20px;
    opacity: 0.5;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.reviewer-name {
    font-weight: bold;
    color: var(--primary);
}

@media (min-width: 768px) {
    .masonry-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* V2 UNIQUE: Program Accordion */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.page-header h1 { color: var(--white); }
.page-header .page-subtitle { color: var(--secondary); }

.accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.custom-accordion {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-title {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    background-color: var(--light);
    list-style: none;
    position: relative;
}

.accordion-title::-webkit-details-marker { display: none; }

.accordion-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--accent);
}

.custom-accordion[open] .accordion-title::after { content: '-'; }

.accordion-content {
    padding: 20px;
    border-top: 1px solid #eee;
}

.accordion-inner-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .accordion-inner-flex { flex-direction: row; align-items: center; }
    .accordion-text { flex: 1; }
    .accordion-img { width: 300px; }
}

/* V2 UNIQUE: CTA Sidebar Layout */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.cta-sidebar-box {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.cta-sidebar-box h3 { color: var(--white); }

@media (min-width: 992px) {
    .cta-grid { grid-template-columns: 2fr 1fr; align-items: center; }
}

/* V2 UNIQUE: Vertical Timeline */
.vertical-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--white);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light);
    color: var(--primary);
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .vertical-timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; padding-right: 40px; }
    .timeline-item:nth-child(even) { margin-left: auto; padding-right: 0; padding-left: 40px; }
    .timeline-item:nth-child(odd) .timeline-dot { right: -10px; left: auto; }
    .timeline-item:nth-child(even) .timeline-dot { left: -10px; }
}

/* Values List */
.values-custom-list {
    list-style: none;
    max-width: 800px;
    margin: 40px auto 0;
}

.values-custom-list li {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* V2 UNIQUE: Contact Layout */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.small-text { font-size: 0.9rem; color: var(--grey); }

@media (min-width: 768px) {
    .contact-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.form-wrapper-full {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary);
}

.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
}

.legal-container h1 { margin-bottom: 30px; }
.legal-container h2 { margin-top: 30px; font-size: 1.5rem; }
.legal-list { margin-left: 20px; margin-bottom: 20px; }

/* Thank You Page */
.thank-you-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.action-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .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);
    color: var(--white);
    border-top: 2px solid var(--accent);
}

#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(--secondary); 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: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.cookie-btn-accept { background-color: var(--accent); color: var(--white); }
.cookie-btn-accept:hover { background-color: var(--secondary); color: var(--primary); }

.cookie-btn-decline { background-color: transparent; color: var(--white); border: 1px solid var(--white); }
.cookie-btn-decline:hover { background-color: rgba(255,255,255,0.1); }

@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; }
}