/* TEMEL AYARLAR */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* =========================================================
   1. ÜST KISIM: LOGOLAR VE BAŞLIK
========================================================= */
.header-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
}

.ana-logo img {
    max-width: 140px;
    height: auto;
}

.dernek-adi h1 {
    font-size: 24px;
    color: #0056b3;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}

.sponsor-logolar img {
    max-width: 350px;
    height: auto;
}

/* =========================================================
   2. MENÜ ALANI
========================================================= */
.header-menu {
    background-color: #0056b3;
    border-bottom: 4px solid #28a745;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu li a {
    display: block;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: 0.3s;
}

.header-menu li a:hover {
    background-color: #28a745;
}

/* =========================================================
   3. HAMBURGER MENÜ BUTONU (Masaüstünde Gizli)
========================================================= */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    width: 100%;
    text-align: right;
    box-sizing: border-box;
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0 5px auto;
    transition: all 0.3s ease-in-out;
}

/* =========================================================
   4. MOBİL EKRANLAR İÇİN DÜZEN (TELEFON)
========================================================= */
@media (max-width: 768px) {
    
    /* Logoları ve başlığı alt alta diz */
    .header-ust {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dernek-adi h1 { font-size: 18px; }
    
    /* Hamburger butonunu göster */
    .hamburger-btn { display: block; }
    
    /* Menüyü varsayılan olarak gizle */
    .header-menu ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: #004a99;
    }

    /* JS ile tetiklenince menüyü göster */
    .header-menu ul.mobil-acik { display: flex; }
    
    .header-menu li a {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Hamburger İkonu Animasyonu (X İşareti) */
    .hamburger-btn.aktif span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-btn.aktif span:nth-child(2) { opacity: 0; }
    .hamburger-btn.aktif span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* =========================================================
   6. FOOTER (ALT BİLGİ) ALANI
========================================================= */
.site-footer {
    background-color: #003a7a; /* Menüden biraz daha koyu, tok bir mavi */
    color: #ffffff;
    padding: 40px 5% 10px 5%;
    margin-top: 50px;
    border-top: 5px solid #28a745; /* Üstünde yeşil şerit */
}

.footer-icerik {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Ekran daralırsa alt alta insin (Mobil için) */
    gap: 20px;
    margin-bottom: 30px;
}

.footer-sutun {
    flex: 1;
    min-width: 250px; /* Mobilde çok sıkışmasın diye minimum genişlik */
}

.footer-sutun h3 {
    border-bottom: 2px solid #28a745; /* Başlıkların altına yeşil çizgi */
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

.footer-sutun p, .footer-sutun ul, .footer-sutun a {
    color: #d1e0f0;
    line-height: 1.6;
    text-decoration: none;
}

.footer-sutun ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-sutun li {
    margin-bottom: 10px;
}

.footer-sutun a:hover {
    color: #ffffff;
    padding-left: 5px; /* Üzerine gelince sağa doğru hafif kaysın */
    transition: 0.3s;
}

.sosyal-medya a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: #0056b3;
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s;
}

.sosyal-medya a:hover {
    background-color: #28a745;
}

.footer-alt {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 14px;
    color: #a0c2e6;
}
/* =========================================================
   7. ANA SAYFA SLIDER TASARIMI
========================================================= */
.slider-konteyner {
    position: relative;
    width: 100%;
    height: 480px; /* İdeal slider yüksekliği */
    overflow: hidden;
    background-color: #222;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Yumuşak geçiş efekti */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.aktif {
    opacity: 1;
    z-index: 2;
}

/* Slaytın Üzerindeki Yazı Kartı */
.slide-icerik {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    padding: 20px;
    transform: translateY(20px);
    transition: 0.5s ease-in-out;
}

.slide.aktif .slide-icerik {
    transform: translateY(0);
}

.slide-icerik h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.slide-icerik p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    color: #f1f1f1;
}

/* Kayan Görsel Butonu */
.slider-buton {
    display: inline-block;
    padding: 12px 30px;
    background-color: #28a745; /* Yeşil */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.slider-buton:hover {
    background-color: #0056b3; /* Üzerine gelince Mavi */
}

/* Sağ ve Sol Navigasyon Okları */
.slider-ok {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 0 4px 4px 0;
}

.slider-ok:hover {
    background-color: #28a745;
}

.slider-ok.sol { left: 0; }
.slider-ok.sag { right: 0; border-radius: 4px 0 0 4px; }

/* MOBİL AYARLARI */
@media (max-width: 768px) {
    .slider-konteyner { height: 320px; } /* Mobilde yüksekliği daralt */
    .slide-icerik h2 { font-size: 22px; }
    .slide-icerik p { font-size: 14px; }
    .slider-ok { padding: 10px 12px; font-size: 18px; }
}
/* =========================================================
   8. DUYURULAR VE PROJELER (GRID TASARIMI)
========================================================= */
.duyurular-alani {
    padding: 60px 5%;
    background-color: #f8f9fa; /* Sitenin arka planıyla uyumlu */
}

.konteyner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Bölüm Başlığı */
.bolum-basligi {
    text-align: center;
    font-size: 32px;
    color: #0056b3;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Başlığın altındaki yeşil vurgu çizgisi */
.bolum-basligi::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #28a745;
    margin: 15px auto 0;
}

/* Kartların Izgara Sistemi */
.duyuru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Kart Tasarımı */
.duyuru-kart {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.duyuru-kart:hover {
    transform: translateY(-8px); /* Üzerine gelince yukarı kalkma efekti */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.kart-gorsel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.kart-icerik {
    padding: 25px;
}

.kart-icerik h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.kart-icerik h3 a {
    color: #1a252f;
    text-decoration: none;
    transition: color 0.3s;
}

.kart-icerik h3 a:hover {
    color: #0056b3;
}

.kart-tarih {
    font-size: 13px;
    color: #888888;
    margin-bottom: 15px;
    font-weight: 600;
}

.kart-icerik p {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.kart-buton {
    display: inline-block;
    font-weight: 700;
    color: #0056b3;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.kart-buton:hover {
    color: #28a745; /* Buton hover efekti */
}
/* =========================================================
   9. HAKKIMIZDA VE İSTATİSTİK ALANI
========================================================= */
.tanitim-alani {
    padding: 80px 5%;
    background-color: #ffffff;
}

.tanitim-esnek {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Sol Metin Alanı */
.tanitim-sol {
    flex: 1;
}

.tanitim-sol h2 {
    font-size: 30px;
    color: #0056b3;
    margin-0 0 20px 0;
    font-weight: 800;
}

.tanitim-sol p {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.tanitim-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.tanitim-link:hover {
    color: #0056b3;
}

/* Sağ Sayaç Gridi */
.tanitim-sag {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sayac-kutusu {
    background-color: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-radius: 6px;
    border-bottom: 4px solid #0056b3; /* Mavi detay */
    transition: 0.3s;
}

.sayac-kutusu:nth-child(even) {
    border-bottom-color: #28a745; /* Değişimli olarak yeşil detay */
}

.sayac-kutusu:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sayac-sayi {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #1a252f;
    margin-bottom: 5px;
}

.sayac-metin {
    font-size: 14px;
    color: #888888;
    font-weight: 600;
}

/* MOBİL UYUM */
@media (max-width: 768px) {
    .tanitim-esnek {
        flex-direction: column;
        gap: 35px;
    }
    .tanitim-sol { text-align: center; }
    .tanitim-sag { width: 100%; }
}
/* =========================================================
   10. SABİT SAYFALAR (PAGE.PHP) TASARIMI
========================================================= */
.sayfa-baslik-alani {
    background-color: #0056b3; /* Kurumsal Mavi */
    padding: 60px 5%;
    text-align: center;
    border-bottom: 5px solid #28a745; /* Yeşil Şerit */
}

.sayfa-baslik-alani h1 {
    color: #ffffff;
    font-size: 36px;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sayfa-icerik-alani {
    padding: 60px 5%;
    background-color: #ffffff;
}

/* Metin Okuma Alanı Daraltması (UX için çok önemlidir, satırlar çok uzamasın) */
.icerik-metni {
    max-width: 900px; 
    margin: 0 auto;
    color: #333333;
    font-size: 17px;
    line-height: 1.8;
}

.icerik-metni h2, .icerik-metni h3 {
    color: #0056b3;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.icerik-metni p {
    margin-bottom: 20px;
}

.icerik-metni ul, .icerik-metni ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.icerik-metni li {
    margin-bottom: 10px;
}

/* Eğer sayfaya resim eklenirse taşmasın, köşeleri yuvarlansın */
.icerik-metni img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}