/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #c0392b; /* Alizarin red */
    --primary-hover: #e74c3c;
    --secondary-color: #2C3E50; /* Deep slate */
    --accent: #F39C12;
    
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #ffffff;
    
    --bg-main: #FAFAFA;
    --bg-light: #FFFFFF;
    --bg-dark: #1A1A1D;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    margin-left: 10px;
}
.header.scrolled .theme-toggle-btn {
    color: var(--secondary-color);
}
[data-theme="dark"] .header.scrolled .theme-toggle-btn {
    color: var(--text-dark);
}
.theme-toggle-btn:hover {
    color: var(--primary-color) !important;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }
.bg-light { background-color: #F4F6F7; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.4);
}

.btn-outline {
    border-color: var(--text-light);
    color: var(--text-light);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.link-btn {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.link-btn i {
    transition: transform 0.3s ease;
}
.link-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Faster transition */
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 250px;
    height: auto;
    animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo {
    height: 60px;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light); /* light by default on hero */
    transition: color 0.3s;
}

.logo-text .subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.header.scrolled .logo-text .title { color: var(--secondary-color); }
.header.scrolled .logo-text .subtitle { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header.scrolled .nav-link {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

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

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 60px; /* To account for header and allow spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* for subtle scale animation maybe */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Much darker overlay for perfect contrast */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2; /* Ensure it stays above overlay */
}

.meb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.meb-badge i { color: var(--accent); }

.hero-title {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-color);
    font-style: italic;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

/* Hero Animated Logo */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.logo-img-hero {
    width: clamp(150px, 25vw, 220px);
    height: clamp(150px, 25vw, 220px);
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphLogo 8s infinite alternate ease-in-out;
    box-shadow: 0 20px 60px rgba(211, 84, 0, 0.2);
    border: 5px solid white;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes morphLogo {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    100% { border-radius: 33% 67% 58% 42% / 63% 62% 38% 37%; }
}

.logo-container::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: inherit;
    z-index: -1;
    animation: morphLogo 8s infinite alternate-reverse ease-in-out;
    opacity: 0.3;
}

/* Hero Slogan */
.title-reveal {
    overflow: hidden;
    margin-bottom: 20px;
}

.slogan {
    color: white; 
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Elegant, soft shadow */
}

.slogan::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: underlineGrow 1.5s forwards 1s;
}

@keyframes underlineGrow {
    to { width: 80%; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.vision-box, .mission-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
    transform: translateX(10px);
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glass-float-card {
    position: absolute;
    bottom: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.glass-float-card .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.glass-float-card .text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.staff-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* More pronounced shadow */
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05); /* very subtle border */
}

.staff-img {
    height: 400px; /* Taller for modern look */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.staff-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.staff-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); /* gradient over image */
    z-index: 1;
    transition: var(--transition);
}

.staff-card:hover .staff-img img {
    transform: scale(1.12);
}

.staff-card:hover .staff-img::after {
    background: linear-gradient(to top, rgba(211, 84, 0, 0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.staff-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 20px;
    z-index: 2;
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.staff-card:hover .staff-info {
    transform: translateY(-10px);
}

.staff-info h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.staff-info p {
    color: #F1C40F; /* nice gold accent color */
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Social icons for staff */
.staff-socials {
    position: absolute;
    top: 20px; right: -80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.staff-card:hover .staff-socials {
    right: 20px;
}

/* ==========================================================================
   PROGRAMS SECTION
   ========================================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.program-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-image {
    flex: 0 0 45%;
    overflow: hidden;
}

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

.program-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { color: var(--text-muted); margin-bottom: 20px; }

/* ==========================================================================
   EVENTS SECTION
   ========================================================================== */
.events-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.event-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.event-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.event-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.event-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.event-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }

.event-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-item:hover img { transform: scale(1.1); }

.glass-effect {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%); /* hidden basically */
    transition: transform 0.4s ease;
    opacity: 0;
}

.event-item:hover .glass-effect {
    transform: translateY(0);
    opacity: 1;
}

.glass-effect h4 { color: white; margin-bottom: 5px; font-size: 1.3rem;}
.glass-effect p { margin: 0; font-size: 0.9rem; color: #ddd; }

/* In a single page masonry sometimes item 1 stays bottom, let's fix the glass effect default to visible but light for mobile, but keep hover for desktop */

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover, .faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #FAFAFA;
}

.faq-answer p {
    padding: 20px 25px;
    margin: 0;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   GALLERY / MARQUEE SECTION
   ========================================================================== */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0; width: 100px; height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, #f8f9fa, transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, #f8f9fa, transparent); }

.marquee-content {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* Shift by exactly half width due to double content */
}

.gallery-item {
    width: 350px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

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

.gallery-overlay {
    position: absolute;
    bottom: -100%; left: 0; width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
    transition: bottom 0.4s ease;
}

.gallery-overlay span {
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ==========================================================================
   CONTACT SECTION (MODERN)
   ========================================================================== */
.contact-wrapper-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-left {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.contact-details-modern h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-details-modern .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.detail-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.detail-card:hover {
    background: white;
    border-color: rgba(211, 84, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateX(10px);
}

.detail-card .icon {
    width: 55px; height: 55px;
    min-width: 55px;
    background: rgba(211, 84, 0, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

.detail-card .info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.detail-card .info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.detail-card .info a:hover {
    color: var(--primary-color);
}

/* Form Styles */
.contact-right {
    background: var(--secondary-color);
    padding: 50px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.2);
}

.modern-form h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modern-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.modern-form input, .modern-form select, .modern-form textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

.modern-form input::placeholder, .modern-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modern-form select option {
    color: var(--text-dark);
}

.modern-form input:focus, .modern-form select:focus, .modern-form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Map Style */
.map-full {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* ==========================================================================
   FOOTER (MODERN)
   ========================================================================== */
.modern-footer {
    position: relative;
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0 20px;
    overflow: hidden;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.modern-footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-family: var(--font-secondary);
}
.modern-footer h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 3px;
    background: var(--primary-color);
}

.footer-brand p { color: #a9b3bc; line-height: 1.8; font-size: 0.95rem; }

.footer-socials { display: flex; gap: 12px; margin-top: 25px; }
.footer-socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s;
}
.footer-socials a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a9b3bc; text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-color); padding-left: 8px; }

.footer-contact ul { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; color: #a9b3bc; align-items: flex-start; font-size: 0.95rem; }
.footer-contact i { color: var(--primary-color); font-size: 1.2rem; margin-top: 2px; }
.footer-contact a { color: #a9b3bc; text-decoration: none; transition: var(--transition);}
.footer-contact a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

.footer-bottom p { margin: 0; color: #7a848c; font-size: 0.9rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #7a848c; text-decoration: none; font-size: 0.9rem; transition: var(--transition);}
.footer-legal a:hover { color: white; }

/* Giant Watermark */
.footer-watermark {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: clamp(50px, 11.5vw, 180px); /* Reduced scaling from 15vw to 11.5vw to fit longer text */
    font-weight: 800;
    color: rgba(255,255,255,0.02);
    z-index: 1;
    white-space: nowrap;
    margin: 0;
    pointer-events: none;
    font-family: var(--font-secondary);
    letter-spacing: 2px;
}

/* ==========================================================================
   ANIMATIONS (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.fade-up { transform: translateY(50px); }
.zoom-in { transform: scale(0.9); }

.reveal.active.fade-left,
.reveal.active.fade-right,
.reveal.active.fade-up {
    transform: translate(0);
}
.reveal.active.zoom-in { transform: scale(1); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .programs-grid, .contact-wrapper-modern {
        grid-template-columns: 1fr;
    }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    .hero-title { font-size: 3.5rem; }
    
    .event-item:nth-child(1), .event-item:nth-child(2), 
    .event-item:nth-child(3), .event-item:nth-child(4) {
        grid-column: span 4; /* Stack vertically */
    }
    .events-masonry { grid-auto-rows: 300px; }
    
    .program-card { flex-direction: column; }
    .card-image { height: 250px; flex: none; }
    
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 250px; height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-link { color: var(--secondary-color) !important; font-size: 1.2rem; margin: 15px 0; }
    
    .mobile-menu-btn { display: block; z-index: 1001; }
    .header.scrolled { padding: 15px 0; }
    
    .hero-title { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    
    .staff-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TOAST BİLDİRİM
   ========================================================================== */
.site-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    max-width: 440px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    transform: translateX(calc(100% + 50px));
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.site-toast.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.site-toast.toast-success {
    background: linear-gradient(135deg, #1e8449, #27ae60);
}

.site-toast.toast-error {
    background: linear-gradient(135deg, #a93226, #c0392b);
}

.site-toast .toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.site-toast .toast-message {
    flex: 1;
    line-height: 1.45;
}

.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.38);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
    background: rgba(255, 255, 255, 0.5);
    animation: toast-progress-shrink 6s linear forwards;
}

@keyframes toast-progress-shrink {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 500px) {
    .site-toast {
        right: 15px;
        bottom: 80px;
        left: 15px;
        max-width: none;
    }
}

/* Picasso Colors for Socials */
.social-link {
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.social-link.insta { color: #c0392b; border-color: rgba(192, 57, 43, 0.2); background: rgba(192, 57, 43, 0.05); }
.social-link.fb { color: #2980b9; border-color: rgba(41, 128, 185, 0.2); background: rgba(41, 128, 185, 0.05); }
.social-link.youtube { color: #e74c3c; border-color: rgba(231, 76, 60, 0.2); background: rgba(231, 76, 60, 0.05); }
.social-link.contact { color: #f1c40f; border-color: rgba(241, 196, 15, 0.2); background: rgba(241, 196, 15, 0.05); }

.social-link:hover {
    color: white;
    transform: translateY(-8px) scale(1.1);
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
}

.social-link.insta:hover { background: #c0392b; box-shadow: 0 15px 30px rgba(192, 57, 43, 0.3); }
.social-link.fb:hover { background: #2980b9; box-shadow: 0 15px 30px rgba(41, 128, 185, 0.3); }
.social-link.youtube:hover { background: #e74c3c; box-shadow: 0 15px 30px rgba(231, 76, 60, 0.3); }
.social-link.contact:hover { background: #f1c40f; box-shadow: 0 15px 30px rgba(241, 196, 15, 0.3); }

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: rotate(10deg);
}

[data-theme="dark"] .social-link { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: var(--text-dark); }
[data-theme="dark"] .social-link.insta { color: #e74c3c; }
[data-theme="dark"] .social-link.fb { color: #3498db; }
[data-theme="dark"] .social-link.youtube { color: #e74c3c; }

/* ==========================================================================
   PICASSO BACKGROUND ANIMATION
   ========================================================================== */
.art-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.picasso-trace {
    position: absolute;
    opacity: 0.3;
    filter: blur(1px);
    animation: moveAround 30s infinite alternate linear;
    pointer-events: none;
}

[data-theme="dark"] .picasso-trace {
    opacity: 0.15;
}

@keyframes moveAround {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(50px, 50px) scale(1.2) rotate(180deg); }
    100% { transform: translate(-30px, 80px) scale(0.9) rotate(360deg); }
}

section {
    position: relative;
}
section > .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   DARK MODE OVERRIDES (Placed at end for precedence)
   ========================================================================== */
[data-theme="dark"] {
    --text-dark: #ecf0f1;
    --text-muted: #bdc3c7;
    --bg-main: #121212;
    --bg-light: #1A1A1D;
    --secondary-color: #050505;
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] body {
    background-color: var(--bg-main);
    color: var(--text-dark);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 { 
    color: var(--text-dark); 
}

[data-theme="dark"] .bg-light { background-color: var(--bg-light) !important; }
[data-theme="dark"] .vision-box, 
[data-theme="dark"] .mission-box, 
[data-theme="dark"] .program-card, 
[data-theme="dark"] .faq-item { background: #1E1E1E; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
[data-theme="dark"] .faq-answer { background: #151515; }
[data-theme="dark"] .contact-left { background: #151515; border: 1px solid rgba(255,255,255,0.05); box-shadow: none; }
[data-theme="dark"] .contact-details-modern,
[data-theme="dark"] .modern-form { background: transparent; border: none; }
[data-theme="dark"] .contact-right { background: #151515; }
[data-theme="dark"] .detail-card { background: #1E1E1E; }
[data-theme="dark"] .detail-card:hover { background: #252525; }
[data-theme="dark"] input, 
[data-theme="dark"] select, 
[data-theme="dark"] textarea { background-color: #2A2A2A; color: var(--text-dark); border-color: #333; }
[data-theme="dark"] input::placeholder, 
[data-theme="dark"] textarea::placeholder { color: #888; }
[data-theme="dark"] .glass-float-card { background: rgba(30,30,30,0.9); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .header.scrolled .logo-text .title,
[data-theme="dark"] .header.scrolled .nav-link,
[data-theme="dark"] .header.scrolled .mobile-menu-btn,
[data-theme="dark"] .header.scrolled .theme-toggle-btn { 
    color: var(--text-dark); 
}
[data-theme="dark"] .faq-question { color: var(--text-dark); }
[data-theme="dark"] .faq-question:hover, [data-theme="dark"] .faq-item.active .faq-question { color: var(--primary-color); }
[data-theme="dark"] .modern-footer { background-color: var(--secondary-color); }
[data-theme="dark"] .footer-watermark { color: rgba(255, 255, 255, 0.1) !important; }

/* Google reCAPTCHA yüzen rozetini (badge) gizle */
.grecaptcha-badge {
    visibility: hidden !important;
}
