/* --- TASARIM.CSS (FİNAL VERSİYON) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Fredoka:wght@400;600&display=swap');

:root {
    --primary: #2d6a4f;       /* Koyu Yeşil */
    --secondary: #52b788;     /* Bambu Yeşili */
    --accent: #ffb703;        /* Güneş Sarısı */
    --bg-light: #f8f9fa;
    --text-dark: #1f2937;
    --radius: 20px;
    --shadow: 0 15px 30px rgba(0,0,0,0.08);
}

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

/* EKRAN KAYMASINI ENGELLEME */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; 
    position: relative;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body { 
    font-family: 'Outfit', sans-serif; 
    color: var(--text-dark); 
    background: var(--bg-light); 
    line-height: 1.7; 
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; color: var(--primary); }
a { text-decoration: none; }

/* --- HEADER & MENÜ --- */
.top-bar { background: var(--primary); color: white; padding: 10px 5%; display: flex; justify-content: space-between; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-social a { color: white; margin-left: 15px; transition: 0.3s; }
.top-social a:hover { color: var(--accent); }

header { 
    background: white; 
    padding: 0 5%; 
    height: 90px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}
.logo { font-size: 1.6rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; z-index: 1001; }
nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }
nav a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 10px 0; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px; background: var(--accent); transition: 0.3s; }
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }
.btn-header { background: var(--accent); color: var(--text-dark) !important; padding: 12px 25px; border-radius: 5px; font-weight: bold; }
.btn-header::after { display: none; }
.btn-header:hover { background: #ffc83d; transform: translateY(-2px); }

/* --- ORTAK ALANLAR --- */
section { padding: 90px 8%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.6rem; margin-top: 5px; }
.section-header span { color: var(--secondary); font-weight: 700; letter-spacing: 2px; }

/* SAYFA BAŞLIKLARI (Yeşil üzerine Yeşil Hatası DÜZELTİLDİ) */
.page-header {
    background: var(--primary);
    padding: 40px 5%;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header h1 {
    color: white !important; /* YAZI RENGİ ZORLA BEYAZ YAPILDI */
    font-size: 2.2rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
}

/* --- İLETİŞİM HİZALAMA --- */
.contact-info-text p { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: #555; font-size: 0.95rem; }
.contact-info-text i { width: 25px; min-width: 25px; text-align: center; color: var(--primary); margin-top: 5px; }

/* --- HERO (ANASAYFA) --- */
.hero { 
    position: relative; 
    height: 90vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1596464716127-f9a829be718b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); 
    background-size: cover; 
    background-position: center; 
    color: white; 
    margin-top: 0; 
    overflow: hidden !important; 
}
.hero h1 { font-size: 3.8rem; color: white; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); line-height: 1.1; }
.btn-hero { background: var(--accent); color: var(--text-dark); padding: 15px 40px; border-radius: 50px; font-weight: bold; font-size: 1.1rem; transition: 0.3s; display: inline-block; }
.btn-hero:hover { transform: scale(1.05); background: #ffc83d; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave svg { display: block; width: calc(150% + 1.3px); height: 100px; }

/* --- KARTLAR --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; align-items: center; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); transition: 0.5s; }
.about-img:hover img { transform: scale(1.03); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.card { background: white; padding: 30px 20px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: 0.4s; border-bottom: 5px solid transparent; height: 100%; }
.card:hover { transform: translateY(-10px); border-bottom-color: var(--accent); }
.card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; }
.gallery-img { width: 100%; height: 250px; object-fit: cover; border-radius: 15px; }

/* --- İMKANLAR --- */
.facilities-box { background: var(--primary); color: white; padding: 50px; border-radius: var(--radius); }
.fac-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.fac-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.fac-item i { background: rgba(255,255,255,0.2); padding: 10px; border-radius: 50%; color: var(--accent); width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; }

/* --- FORMLAR --- */
input, select, textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; }
button { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 10px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; }
button:hover { background: var(--secondary); }

/* --- FOOTER (HİZALAMA VE RENK DÜZELTMESİ) --- */
footer {
    background: #1f2937;
    color: #e5e7eb;
    padding: 70px 5% 30px;
    font-size: 0.95rem;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Geniş ekranda sola yaslı */
}

/* Mobilde her şeyi ortalamak için */
@media (max-width: 900px) {
    .footer-container { text-align: center !important; }
}

.footer-col h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #d1d5db;
    transition: 0.3s;
    text-decoration: none;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }

.footer-col p { margin-bottom: 15px; line-height: 1.6; color: #d1d5db; }

/* İkon renklerini sabitle */
.footer-col i {
    color: var(--accent);
    width: 25px;
    text-align: center;
    margin-right: 5px;
}

/* Sosyal Medya İkonları */
.social-icons a {
    color: white !important; 
    font-size: 1.3rem;
    margin-right: 10px;
    transition: 0.3s;
}
.social-icons a:hover { color: var(--accent) !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* --- FLOAT BUTONLAR --- */
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 2000; transition: 0.3s; }
.whatsapp-btn:hover { transform: scale(1.1); }
.phone-btn { position: fixed; bottom: 100px; right: 30px; background: #007bff; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); z-index: 2000; transition: 0.3s; }
.phone-btn:hover { transform: scale(1.1); }

/* --- POPUP PENCERE --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 99999; justify-content: center; align-items: center; padding: 20px; animation: fadeIn 0.3s ease; }
.modal-content { background: white; padding: 30px; border-radius: 20px; text-align: center; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: popUp 0.3s ease forwards; position: relative; }
.modal-icon { font-size: 60px; color: var(--secondary); margin-bottom: 20px; }

/* POPUP BUTONU */
.modal-btn {
    background: var(--primary);   
    color: white;
    padding: 12px 40px;
    border-radius: 8px;
    margin-top: 20px;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    text-align: center;
    min-width: 120px;
}
.modal-btn:hover { background: var(--accent); color: var(--text-dark); transform: translateY(-2px); }

/* --- ANİMASYONLAR --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes popUp { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- RESPONSIVE (MOBİL) --- */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; }

@media (max-width: 900px) {
    .top-bar { display: none; }
    .hero h1 { font-size: 2.5rem; }
    header { height: 80px; padding: 0 20px; }
    section { padding: 60px 5%; }
    
    .grid-2, .grid-container, .edu-grid { grid-template-columns: 1fr; gap: 30px; }

    /* YEŞİL BAŞLIK: İNCE VE ZORLA ORTALANMIŞ */
    .page-header {
        padding: 20px 10px !important; 
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .page-header h1, .page-header p {
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
    .page-header h1 { font-size: 1.6rem !important; margin-bottom: 5px !important; }
    .page-header p { font-size: 0.85rem !important; margin: 0 !important; }

    nav { position: absolute; top: 80px; left: 0; width: 100%; z-index: 999; }
    nav ul { display: none; flex-direction: column; background: white; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); width: 100%; border-top: 1px solid #eee; }
    nav ul.show { display: flex; }
    .menu-toggle { display: block; }
}

/* --- SIKÇA SORULAN SORULAR (SSS) --- */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

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

.faq-question:hover {
    background: #f1f1f1;
    color: var(--primary);
}

.faq-question.active {
    background: var(--primary);
    color: white;
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9;
}

.faq-answer p {
    padding: 20px;
    color: #555;
    margin: 0;
    border-top: 1px solid #eee;
}