/* ==========================================================================
   1. SIFIRLAMA VE DEĞİŞKENLER
   ========================================================================== */
:root {
    --primary: #00ae97;
    --secondary: #b6b8b7;
    --dark: #2c3e50;
    --white: #ffffff;
    --text: #444444;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; width: 100%; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 30px; }
a { text-decoration: none !important; color: inherit; transition: var(--transition); }
ul { list-style: none !important; }

/* ==========================================================================
   2. HEADER (BOŞLUKLU VE DROPDOWN UYUMLU KESİN ÇÖZÜM)
   ========================================================================== */
header { width: 100%; height: 100px; z-index: 1000; display: flex; align-items: center; }
.header-transparent { position: absolute; top: 0; left: 0; background: transparent; }
.header-white { position: fixed; top: 0; left: 0; background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.nav-wrapper { width: 100%; display: flex; justify-content: space-between; align-items: center; }

/* Logo: Alanını korur */
.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo img { max-height: 50px; width: auto; display: block; }

/* Menü Alanı: Padding-left/right ile logo ve butondan uzaklaştırdık */
.desktop-menu { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    padding: 0 100px; /* Logo ve Bağış butonu ile arasındaki mesafe */
}

.main-menu { display: flex; gap: 30px; align-items: center; }

/* Dropdown'ın doğru hizalanması için her liste elemanı 'relative' olmalı */
.main-menu > li { position: relative; } 

.main-menu > li > a { 
    font-weight: 600; 
    font-size: 16px; 
    padding: 35px 0; /* Hover alanını dikeyde birleştiren köprü */
    display: block; 
}

.header-transparent .main-menu > li > a { color: var(--white) !important; }
.header-white .main-menu > li > a { color: var(--dark) !important; }
.main-menu > li > a:hover { color: var(--primary) !important; }

/* DROPDOWN MENÜ: Kesin Hizalama */
.dropdown-menu { 
    position: absolute; 
    top: 100%; /* Ana menünün hemen altından başlar */
    left: 50%; 
    transform: translateX(-50%); /* Başlığa göre tam ortalar */
    background: var(--white); 
    min-width: 200px; 
    display: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    padding: 15px 0; 
    border-top: 3px solid var(--primary); 
    border-radius: 0 0 8px 8px; 
    z-index: 999;
}

.dropdown:hover .dropdown-menu { 
    display: block; 
    animation: slideUp 0.3s ease; 
}

@keyframes slideUp { 
    from { opacity: 0; transform: translateX(-50%) translateY(10px); } 
    to { opacity: 1; transform: translateX(-50%) translateY(0); } 
}

.dropdown-menu li a { 
    display: block; 
    padding: 10px 20px; 
    color: var(--dark) !important; 
    font-size: 14px; 
    font-weight: 500; 
    text-align: left;
}

.dropdown-menu li a:hover { 
    background: #f8f9fa; 
    color: var(--primary) !important; 
}

/* Sağ Aksiyon Grubu: Alanını korur */
.header-action-group { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 15px; }

/* ==========================================================================
   3. HERO SLIDER VE BUTONLAR
   ========================================================================== */
.hero {background: linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 0%)), url(../img/hero-bg.jpg) bottom / cover;height: 85vh;display: flex;align-items: center;justify-content: center;text-align: center;color: var(--white);}
.hero h1 {font-size: 3rem;font-weight: 800;color: var(--white) !important;margin-bottom: 25px;line-height: 1.2;}
.hero p { font-size: 1.3rem; margin-bottom: 40px; color: var(--white) !important; opacity: 0.9; }
.hero-btns { display: flex; justify-content: center; gap: 20px; }
.hero-btns .btn-primary { padding: 16px 45px !important; font-size: 17px !important; }
.hero-btns .btn-secondary { border: 2px solid var(--white); color: var(--white) !important; padding: 14px 45px; border-radius: 50px; font-weight: 700; font-size: 17px; background: transparent; }
.hero-btns .btn-secondary:hover { background: var(--white); color: var(--primary) !important; transform: scale(1.05); }
.btn-primary { background: var(--primary) !important; color: var(--white) !important; padding: 10px 24px; border-radius: 50px; font-weight: 700; font-size: 14px; display: inline-block; transition: var(--transition); border: none !important; }
.btn-primary:hover { background: #008e7b !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,174,151,0.2); }

/* GÖNÜLLÜ BUTONU ANIMASYONU */
.volunteer-action .btn-secondary { border: 2px solid var(--white); color: var(--white) !important; padding: 14px 45px; border-radius: 50px; font-weight: 700; transition: var(--transition); background: transparent; }
.volunteer-action .btn-secondary:hover { background: var(--white) !important; color: var(--primary) !important; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* ==========================================================================
   4. SECTION BAŞLIKLARI VE KARTLAR
   ========================================================================== */
section { padding: 100px 0; }
.section-header-center { text-align: center; margin-bottom: 60px; width: 100%; }
.section-header-center h2 { font-size: 2.8rem; font-weight: 800; color: var(--dark); margin-top: 10px; }
.sub-title { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 2px; display: block; }

.grid-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card { background: var(--white); border-radius: 20px; padding: 45px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; transition: var(--transition); text-align: center; }
.card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0,174,151,0.15); }
.card-icon { width: 70px; height: 70px; background: rgba(0,174,151,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 30px; border-radius: 15px; margin: 0 auto 30px; }
.badge { position: absolute; top: 25px; right: 25px; padding: 6px 15px; border-radius: 50px; font-size: 11px; font-weight: 700; color: #fff !important; z-index: 2; }
.bg-news { background: var(--primary) !important; }
.bg-announcement { background: var(--dark) !important; }
.stat-item i { font-size: 45px; color: var(--primary); opacity: 0.5; transition: var(--transition); }
.stat-item:hover i { opacity: 1; transform: scale(1.2); }

/* ==========================================================================
   4.5 İÇ SAYFA BREADCRUMB & PAGE HEADER (DÜZELTİLDİ)
   ========================================================================== */
.page-header { 
    /* Header yüksekliği kadar (100px) ek padding vererek içeriği aşağı itiyoruz */
    padding: 180px 0 80px; 
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/page-bg.jpg') center/cover no-repeat; 
    text-align: center; 
    color: var(--white); 
    margin-bottom: 0; 
}

.page-header h1 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
    letter-spacing: -1px; 
    color: var(--white) !important; 
}

/* Breadcrumb'ın dropdown ile çakışmaması için z-index ekledik */
.breadcrumb { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    list-style: none !important; 
    padding: 0; 
    margin: 0; 
    font-size: 15px; 
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Mobilde boşluğu biraz azaltıyoruz */
@media (max-width: 992px) { 
    .page-header { padding: 140px 0 60px; } 
    .page-header h1 { font-size: 2rem; } 
}

/* ==========================================================================
   4.7 MODERN FORM VE GİRDİ ALANLARI
   ========================================================================== */
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: 15px; }
.form-control { width: 100%; padding: 15px 20px; border: 2px solid #eee; border-radius: 12px; font-family: inherit; font-size: 15px; background: #fdfdfd; color: var(--dark); transition: var(--transition); }
.form-control:focus { border-color: var(--primary); background: #fff; box-shadow: 0 10px 20px rgba(0, 174, 151, 0.05); }
textarea.form-control { min-height: 150px; resize: vertical; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232c3e50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; }
.form-btn { width: 100%; padding: 15px; font-size: 16px; cursor: pointer; }
.contact-form-wrapper { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

@media (max-width: 768px) { .contact-form-wrapper { padding: 25px; } }

/* ==========================================================================
   5. MOBİL PANEL VE 2 SÜTUN KARTLAR (DÜZELTİLDİ)
   ========================================================================== */
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; display: none; backdrop-filter: blur(3px); }
.menu-overlay.active { display: block; }
.mobile-panel { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #fff; z-index: 10001; transition: 0.4s ease-in-out; padding: 20px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); visibility: hidden; }
.mobile-panel.active { right: 0 !important; visibility: visible; }
.mobile-panel ul { margin-top: 0px; width: 100%; }
.mobile-panel ul li { width: 100%; }
.mobile-panel ul li a { display: flex; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid #eee; color: var(--dark); font-weight: 600; width: 100%; }
.mobile-panel ul li a i { color: var(--primary); width: 25px; text-align: center; font-size: 18px; display: inline-block !important; }
.mobile-btn { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; padding: 5px; }
.mobile-btn span { width: 25px; height: 3px; background: var(--primary); border-radius: 2px; }

@media (max-width: 992px) {
    .desktop-menu, .header-action { display: none !important; }
    .mobile-btn { display: flex !important; }
    .header-action-group { flex: 0 0 auto; }
    .grid-wrapper { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .card { padding: 25px 15px !important; text-align: center; }
    .card-icon { margin: 0 auto 20px; width: 50px; height: 50px; font-size: 20px; }
    .hero h1 { font-size: 2.2rem !important; }
}
@media (max-width: 480px) { .grid-wrapper { grid-template-columns: 1fr !important; } }

/* ==========================================================================
   6. YENİ FOOTER STİLLERİ & İMZA
   ========================================================================== */
.main-footer {background: var(--dark);color: #fff;padding: 80px 0 0;margin-top: 0px;}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; padding-bottom: 50px; }
.footer-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-box h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--primary); }
.footer-logo a { font-size: 26px; font-weight: 800; color: #fff !important; display: block; margin-bottom: 20px; }
.footer-logo span { color: var(--primary); }
.footer-box p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 15px; }
.footer-box ul li { margin-bottom: 12px; }
.footer-box ul li a { color: rgba(255,255,255,0.7) !important; font-size: 15px; }
.footer-box ul li a:hover { color: var(--primary) !important; padding-left: 10px; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff !important; }
.footer-social a:hover { background: var(--primary); transform: translateY(-5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255,255,255,0.5); }
.signature a { color: #fff !important; font-weight: 700; margin-left: 5px; }
.signature a:hover { color: var(--primary) !important; }

@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-box h3::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}

/* ==========================================================================
   MOBİL SLIDER BUTON KÜÇÜLTME & DROPDOWN DESTEĞİ
   ========================================================================== */
@media (max-width: 992px) {
    /* Slider Butonlarını Küçültme */
    .hero-btns { gap: 12px !important; }
    .hero-btns .btn-primary, 
    .hero-btns .btn-secondary { 
        padding: 10px 20px !important; 
        font-size: 14px !important; 
        border-radius: 30px !important;
    }
    .hero h1 { font-size: 2.2rem !important; }
}


@media (max-width: 992px) {
    /* Mobilde alt menünün kaymasını engellemek için pozisyonu sıfırlıyoruz */
    .mobile-panel .dropdown-menu {
        display: none !important; 
        position: static !important; /* Absolute (kayan) yapıyı iptal eder */
        transform: none !important; /* Ortalamayı iptal eder */
        width: 100% !important;
        box-shadow: none !important;
        background: #f8f9fa !important; /* Hafif farklı bir arka plan */
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Menü 'active' olduğunda liste şeklinde aşağı doğru açılsın */
    .mobile-panel .dropdown.active > .dropdown-menu {
        display: block !important;
    }

    /* Alt menü linklerinin mobil uyumu */
    .mobile-panel .dropdown-menu li a {
        padding: 12px 20px 12px 55px !important; /* İkon hizasına göre içeri çektik */
        border-bottom: 1px solid #f1f1f1;
        font-size: 14px;
        background: transparent !important;
    }

    /* Ok işaretinin sağa yaslanması ve dönmesi */
    .mobile-panel .dropdown > a {
        display: flex;
        justify-content: left;
        align-items: center;
    }

    .mobile-panel .dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s;
    }

    .mobile-panel .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}