:root {
    /* Colors */
    --color-dark-bg: #0B192C;
    --color-dark-surface: #0F172A;
    --color-primary-green: #22C55E;
    --color-secondary-green: #10B981;
    --color-light-bg: #F8FAFC;
    --color-white: #FFFFFF;
    
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --text-light-muted: #94A3B8;

    /* Gradients */
    --card-gradient: linear-gradient(135deg, #0F766E 0%, #22C55E 100%);
    --bg-gradient: linear-gradient(180deg, var(--color-dark-bg) 0%, var(--color-dark-surface) 100%);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Layout */
    --max-w-7xl: 1280px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-green: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
    
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-xl: 1rem; /* 16px */
    --radius-2xl: 1.5rem; /* 24px */
    --radius-full: 9999px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--color-light-bg);
    color: var(--text-dark);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Typography Classes */
.text-center { text-align: center; }
.text-green { color: var(--color-primary-green); }

/* Layout Grid System */
.max-w-7xl {
    max-width: var(--max-w-7xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.dark-bg {
    background: var(--bg-gradient);
    color: var(--text-light);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.025em;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    background-color: var(--color-secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(34, 197, 94, 0.5);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary-green);
    color: var(--color-primary-green);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-bg);
    font-size: 1.5rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light-muted);
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

.flag-icon {
    width: 1.25rem;
    height: auto;
    border-radius: 2px;
}

.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.switch-track {
    width: 3rem;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.switch-thumb {
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-bg);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 4rem;
    border-bottom-right-radius: 4rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light-muted);
    max-width: 80%;
}

/* Hero Visuals & 3D Orbits */
.hero-visuals {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbital-system {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
    border: 1px dashed rgba(34, 197, 94, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1) inset;
    animation: rotate 20s linear infinite;
}

.orbit-1 { width: 300px; height: 300px; animation-duration: 25s; }
.orbit-2 { width: 450px; height: 450px; animation-duration: 35s; animation-direction: reverse; }
.orbit-3 { width: 600px; height: 600px; animation-duration: 45s; }

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.float-item {
    position: absolute;
    animation: float 5s ease-in-out infinite;
    z-index: 5;
    overflow: hidden; /* Ensures inner image respects radius */
}

.float-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit; /* adopts the glass-panel radius */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 6 Dynamic Floating Image Positions */
.item-1 { width: 140px; height: 140px; top: 10%; right: 15%; animation-delay: 0s; }
.item-2 { width: 160px; height: 180px; top: 25%; left: 8%; animation-delay: 1.5s; }
.item-3 { width: 110px; height: 110px; bottom: 18%; right: 12%; animation-delay: 0.5s; }
.item-4 { width: 130px; height: 130px; bottom: 30%; left: 22%; animation-delay: 2s; }
.item-5 { width: 180px; height: 120px; top: 15%; left: 40%; animation-delay: 1s; }
.item-6 { width: 120px; height: 150px; bottom: 15%; right: 35%; animation-delay: 0.8s; }

.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.glow-1 { top: -100px; right: -100px; }
.glow-2 { bottom: -100px; left: -100px; width: 600px; height: 600px; }

/* Section Basics */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Featured Programs */
.programs-section {
    position: relative;
    padding-top: 6rem;
    background-color: var(--color-white);
    margin: -3rem 4rem 0;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    z-index: 20;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--card-gradient);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card.highlight {
    background: linear-gradient(135deg, #14B8A6 0%, #10B981 100%);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    z-index: 2;
    position: relative;
}

.card-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    z-index: 2;
    position: relative;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    margin-top: 2rem;
    z-index: 2;
    position: relative;
}

.card-link {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    position: absolute;
    bottom: 30%;
    right: -10%;
    font-size: 8rem;
    opacity: 0.1;
    z-index: 1;
    transform: rotate(-15deg);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #CBD5E1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-primary-green);
    width: 2rem;
    border-radius: var(--radius-full);
}

/* Calendar Section */
.calendar-section {
    background-color: var(--color-light-bg);
    position: relative;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.glass-card-light {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.calendar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.day:hover {
    background-color: #F1F5F9;
}

.day.active {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.day.muted {
    color: #CBD5E1;
}

.events-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.events-header {
    display: flex;
    justify-content: flex-end;
}

.event-group {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.event-group.collapsed {
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.event-group-title {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.event-group.collapsed .event-group-title {
    margin-bottom: 0;
    color: var(--text-muted);
}

.event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-green {
    background: linear-gradient(to right, #22C55E, #10B981);
}

.event-dark {
    background: linear-gradient(to right, #0F172A, #1E293B);
}

.event-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-info span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.event-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* News Section */
.news-section {
    background-color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #F1F5F9;
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    color: var(--color-primary-green);
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--color-secondary-green);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.contact-desc {
    color: var(--text-light-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.contact-item span {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--color-primary-green);
    transform: translateY(-3px);
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--color-dark-bg);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Dark Theme Overrides */
body.dark-theme-enabled {
    background-color: var(--color-dark-bg);
    color: var(--text-light);
}

body.dark-theme-enabled .programs-section,
body.dark-theme-enabled .calendar-section,
body.dark-theme-enabled .news-section,
body.dark-theme-enabled .contact-section {
    background-color: var(--color-dark-bg);
    color: var(--text-light);
}

body.dark-theme-enabled .programs-section {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); /* Stronger shadow in dark mode */
}

body.dark-theme-enabled .glass-card-light,
body.dark-theme-enabled .event-group,
body.dark-theme-enabled .news-card {
    background-color: var(--color-dark-surface);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle dark border */
}

body.dark-theme-enabled .event-group-title,
body.dark-theme-enabled .section-title,
body.dark-theme-enabled .news-content h3 {
    color: var(--color-white);
}

body.dark-theme-enabled .day:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme-enabled .news-content p,
body.dark-theme-enabled .section-subtitle,
body.dark-theme-enabled .contact-desc,
body.dark-theme-enabled .weekdays {
    color: var(--text-light-muted);
}

body.dark-theme-enabled .day.muted {
    color: rgba(255, 255, 255, 0.2);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-container, .calendar-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .programs-section {
        margin: 2rem 1.5rem 0;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .contact-section {
        padding: 3rem 0;
    }
}

/* WordPress Menu Fallback */
.nav-links ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.footer-links ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
