/* ==========================================================================
   GENEL AYARLAR & RENKLER
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #1a5490;
    --secondary-color: #2874a6;
    --accent-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   ÜST BAR (MAİL VE TELEFON)
   ========================================================================== */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span { margin-right: 20px; }
.top-info i { margin-right: 5px; }

.top-social a {
    color: var(--white);
    margin-left: 15px;
    transition: opacity 0.3s;
}

.top-social a:hover { opacity: 0.7; }

/* ==========================================================================
   HEADER & LOGO (KAYMA SORUNU ÇÖZÜLEN KISIM)
   ========================================================================== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: nowrap; /* Asla alt alta atmasını istemiyoruz */
}

.logo {
    flex: 0 0 auto; /* Logonun alanı esnemesin, sabit kalsın */
    margin-right: 20px;
}

.site-logo {
    max-height: 80px !important; /* Mükemmel zarif boyut */
    width: auto !important;
    object-fit: contain;
}

/* ==========================================================================
   MASAÜSTÜ MENÜ (SIKIŞMA SORUNU ÇÖZÜLEN KISIM)
   ========================================================================== */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end; /* Menüyü sağa yaslar */
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav li {
    position: relative;
    white-space: nowrap; /* KELİMELERİN ALT ALTA KAYMASINI KESİNLİKLE ENGELLER */
}

.main-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav .bagis-btn {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    margin-left: 10px;
    padding: 12px 20px;
}

.main-nav .bagis-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Alt Menüler (Dropdown) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    white-space: normal; /* Alt menülerde uzun yazı varsa katlanabilir */
}

.dropdown-menu a {
    padding: 12px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    padding-left: 25px;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================================================
   SAYFA İÇERİKLERİ (SLIDER, HAKKIMIZDA, FOOTER)
   ========================================================================== */
.hero-slider { position: relative; height: 600px; overflow: hidden; }
.slider-container { position: relative; height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-content { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: var(--white); z-index: 2; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); }
.slide-content h2 { font-size: 48px; margin-bottom: 20px; }
.slide-content p { font-size: 20px; margin-bottom: 30px; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 500; transition: all 0.3s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: var(--secondary-color); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary-color); }
.btn-lg { padding: 15px 40px; font-size: 18px; }

section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { display: inline-block; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-header h2 { font-size: 36px; color: var(--text-dark); }

.about-intro { background: var(--bg-light); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h3 { font-size: 28px; color: var(--primary-color); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 15px; line-height: 1.8; }
.about-features { margin: 30px 0; }
.feature { display: flex; align-items: center; margin-bottom: 15px; }
.feature i { color: var(--accent-color); font-size: 20px; margin-right: 10px; }
.about-image img { border-radius: 10px; box-shadow: var(--shadow-lg); }

.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.activity-card { background: var(--white); padding: 40px 30px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; transition: all 0.3s; }
.activity-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.activity-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.activity-icon i { font-size: 36px; color: var(--white); }
.activity-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-dark); }
.activity-card p { color: var(--text-light); margin-bottom: 20px; }
.link-arrow { color: var(--primary-color); font-weight: 500; }
.link-arrow i { margin-left: 5px; transition: transform 0.3s; }
.link-arrow:hover i { transform: translateX(5px); }

.donation-cta { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white); text-align: center; }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-text h2 { font-size: 42px; margin-bottom: 20px; }
.cta-text p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

footer { background: var(--text-dark); color: var(--white); }
.footer-main { padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h3 { font-size: 24px; margin-bottom: 20px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; color: var(--white); }
.footer-col p { color: #bdc3c7; line-height: 1.8; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #bdc3c7; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--white); padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; color: #bdc3c7; margin-bottom: 10px; }
.footer-contact i { margin-right: 10px; margin-top: 3px; color: var(--accent-color); }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.footer-social a:hover { background: var(--accent-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; text-align: center; }
.footer-bottom p { color: #bdc3c7; font-size: 14px; }

/* ==========================================================================
   MOBİL VE TABLET GÖRÜNÜMÜ (KUSURSUZ MOBİL MENÜ)
   ========================================================================== */
@media (max-width: 968px) {
    .top-bar .container { flex-direction: column; text-align: center; gap: 8px; padding: 10px 0; }
    .top-info span { display: block; margin: 0; }

    .header-content {
        padding: 10px 0;
        position: relative;
    }

    .site-logo { max-height: 55px !important; }

    /* Mobil Hamburger İkonu */
    .mobile-toggle {
        display: block;
        position: static;
        margin-left: auto; /* Sağa yaslar */
    }

    /* Kendi İçinde Kaydırılabilir Mobil Menü */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
    .main-nav li { width: 100%; white-space: normal; /* Mobilde kelimeler rahatça sığsın */ }
    .main-nav a { padding: 15px 20px; border-bottom: 1px solid var(--border-color); width: 100%; }

    .main-nav .bagis-btn {
        margin: 15px 20px;
        text-align: center;
        width: calc(100% - 40px);
    }

    /* Mobilde Alt Menüler */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-light);
        padding-left: 20px;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
    }
    .dropdown:hover .dropdown-menu { display: block; }

    /* Izgara yapılarını mobilde alt alta al */
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .slide-content h2, .cta-text h2 { font-size: 32px; }
}

@media (max-width: 576px) {
    .hero-slider { height: 400px; }
    .slide-content h2 { font-size: 24px; }
    .slide-content p { font-size: 16px; }
    .section-header h2 { font-size: 28px; }
    .stat-boxes { position: static; margin-top: 20px; justify-content: center; }
    .cta-buttons { flex-direction: column; gap: 15px; }
    .btn-lg { width: 100%; text-align: center; }
}
/* ==========================================================================
   KESİN ÇÖZÜM: KELİME KAYMALARI VE MOBİL MENÜ DÜZELTMESİ
   ========================================================================== */

/* Kelimelerin ezilmesini ve ayrılmasını kalıcı olarak engeller */
.main-nav ul {
    flex-wrap: nowrap !important;
    gap: 15px !important;
}

.main-nav li {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.main-nav a {
    display: flex !important; 
    align-items: center; 
    gap: 6px; 
}

/* Mobilde Bağış butonunun en altta kesilmesini engeller */
@media (max-width: 968px) {
    .main-nav {
        height: calc(100vh - 80px) !important;
        max-height: none !important; 
        padding-bottom: 120px !important; /* Menüye devasa bir alt boşluk verir, buton kurtulur */
    }
}
/* ==========================================================================
   YUKARI ÇIK BUTONU TASARIMI
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color); /* Turuncu renk */
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #d35400; /* Üstüne gelince koyu turuncu */
    transform: translateY(-5px); /* Hafif yukarı zıplama efekti */
    
}/* ==========================================================================
   AÇILIR MENÜ (DROPDOWN) DÜZELTMESİ VE YUMUŞAK KAYDIRMA
   ========================================================================== */

/* 1. Açılır menüyü zorla alt alta diz */
.main-nav .dropdown-menu {
    flex-direction: column !important; 
    gap: 0 !important;
    min-width: 200px !important;
}

/* 2. Açılır menü içindeki listeleri tam genişlikte tut */
.main-nav .dropdown-menu li {
    width: 100% !important;
    white-space: normal !important; /* Yazı uzunsa düzgünce alt satıra insin */
}

/* 3. Linklerin tasarımını düzelt */
.main-nav .dropdown-menu a {
    display: block !important; /* Yan yana dizme kuralını ez, blok yap */
    padding: 12px 20px !important;
}

/* 4. TIKLAYINCA KAYMAK VE BAŞLIĞIN MENÜNÜN ALTINDA GİZLENMEMESİ İÇİN SİHİRLİ KOD */
html {
    scroll-behavior: smooth !important; /* Yağ gibi kaydırma efekti */
    scroll-padding-top: 120px !important; /* Yukarıdaki menünün yüksekliği kadar boşluk bırakır. Böylece başlıklar menünün altında ezilmez, tam hizasında durur! */
}