/* =============================================================================
   1. GENEL AYARLAR VE TİPOGRAFİ
   ============================================================================= */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================================================
   2. HEADER, LOGO VE NAVİGASYON
   ============================================================================= */
.brand-bar {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #D91E18;
}
.brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area { width: 280px; }
.site-logo { max-height: 120px; display: block; }

.slogan-area {
    flex: 1;
    text-align: center;
}
.slogan-ust-baslik {
    font-family: "Times New Roman", serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #D91E18;
    line-height: 1.1;
}
.slogan-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
}

.header-social-icons a {
    color: #D91E18;
    font-size: 1.5rem;
    margin-left: 15px;
}

/* NAVİGASYON ÇUBUĞU */
.main-nav-bar {
    background: #333;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}
.main-nav a:hover {
    background: #444;
    color: #D91E18;
}

/* =============================================================================
   3. SPLIDE SLIDER YAPILANDIRMASI (MANŞET VE HABERLER)
   ============================================================================= */

/* Genel Splide Düzeltmeleri */
.splide__slide { list-style: none !important; }
.splide__list { margin: 0 !important; padding: 0 !important; }

/* Manşet Alanı */
.ust-manset-alani {
    margin: 25px 0;
    border: 4px solid #D91E18;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

#ana-manset-slider .splide__slide {
    height: 600px;
    position: relative;
}

#ana-manset-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi alanı dolduracak şekilde yayar */
    object-position: center; /* Resmin kesilirken tam ortalanmasını sağlar */
}

.manset-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    padding: 60px 20px 20px;
    box-sizing: border-box;
}

.manset-overlay h2, .manset-overlay h3 {
    margin: 0;
    font-size: 1.6rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* =============================================================================
   4. İÇERİK YERLEŞİMİ (3 KOLON VE KARTLAR)
   ============================================================================= */
.main-content-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.left-sidebar, .right-sidebar {
    width: 300px;
    flex: 0 0 300px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Haber Kartları (Orta Bölüm) */
.hizmet-kart {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hizmet-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hizmet-kart img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.kart-icerik h4 {
    padding: 15px;
    margin: 0;
    text-align: center;
    color: #D91E18;
    font-size: 1rem;
}

/* İller Listesi (Sağ Sidebar) */
.sidebar-box {
    background: #fff;
    border: 1px solid #D91E18;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-box h3 {
    background: #D91E18;
    color: #fff;
    padding: 12px;
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
}

.il-liste { list-style: none; padding: 0; margin: 0; }
.il-liste li a {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #D91E18;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}
.il-liste li a:hover { background: #f9f9f9; }
.il-liste img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 4px;
}

/* =============================================================================
   5. FAALİYETLER VE HARİTA/AFAD
   ============================================================================= */
.bolum-basligi {
    font-size: 1.4rem;
    border-bottom: 3px solid #D91E18;
    margin-bottom: 25px;
    color: #D91E18;
    font-weight: 800;
}

.faaliyet-anasayfa { margin: 50px 0; width: 100%; }
.faaliyet-3lu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.faaliyet-kolon {
    background: #fff;
    border: 1px solid #D91E18;
    border-radius: 8px;
    overflow: hidden;
}

.faaliyet-kolon h3 {
    background: #D91E18;
    color: #fff;
    text-align: center;
    padding: 12px;
    margin: 0;
    font-size: 14px;
}

.faaliyet-kolon img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.faaliyet-kolon span {
    display: block;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

/* Harita ve AFAD Maskeleme */
#harita-iframe-konteyner {
    height: 550px;
    border: 3px solid #D91E18;
    border-radius: 12px;
    overflow: hidden;
}
#meb-harita-frame { width: 100%; height: 100%; border: none; }

.afad-maske-dis {
    height: 420px;
    overflow: hidden;
    border: 3px solid #D91E18;
    border-radius: 10px;
    position: relative;
}
#afad-frame {
    width: 125%;
    height: 1000px;
    position: absolute;
    top: -110px; /* Üstteki gereksiz boşluğu keser */
    left: 0;
    border: none;
}

/* =============================================================================
   6. FOOTER VE SPLIDE OKLARI
   ============================================================================= */
footer {
    background: #222;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    border-top: 6px solid #D91E18;
    margin-top: 50px;
}

/* Splide Oklarını MEB Kırmızı Yapma */
.splide__arrow {
    background: rgba(217, 30, 24, 0.8) !important;
}
.splide__arrow svg { fill: #fff !important; }
.splide__pagination__page.is-active { background: #D91E18 !important; }

/* Mobil Uyumluluk */
@media (max-width: 900px) {
    .main-content-layout { flex-direction: column; }
    .left-sidebar, .right-sidebar { width: 100%; flex: none; }
    .faaliyet-3lu { grid-template-columns: 1fr; }
    .slogan-ust-baslik { font-size: 1.8rem; }
}
/* DROPDOWN MENU FIX */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  min-width: 200px;
  z-index: 9999;
}

.dropdown-content a {
  display: block;
  padding: 12px;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 6 ŞUBAT SLIDER SABİT YÜKSEKLİK */
#subat-slider {
  height: 260px;
}

#subat-slider .splide__track,
#subat-slider .splide__list,
#subat-slider .splide__slide {
  height: 100%;
}

#subat-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* İllerden Haberler Başlık Rengi Düzenlemesi */
.right-sidebar .sidebar-box a {
    text-decoration: none; /* Alt çizgiyi kaldırır */
    display: block;
}

.right-sidebar .sidebar-box a h4 {
    color: #D91E18 !important; /* Güncel Haberler ile aynı kırmızı */
    transition: 0.3s;
}

.right-sidebar .sidebar-box a:hover h4 {
    color: #333 !important; /* Üzerine gelince siyah/gri olur */
}

/* Tüm site genelindeki linklerin alt çizgisini kaldırır */
a {
    text-decoration: none !important;
}

/* Haber başlıkları ve faaliyetler altındaki çizgileri garantiye almak için */
.hizmet-kart a, 
.sidebar-box a, 
.faaliyet-kolon a {
    text-decoration: none !important;
}

/* Sadece üzerine gelince çizgi çıksın istersen (isteğe bağlı) */
/* a:hover { text-decoration: underline !important; } */

/* --- MOBİL HARİTA VE AFAD DÜZENLEME --- */
@media (max-width: 900px) {
    /* Harita çerçevesini mobilde yukarı çeker ve boşluğu öldürür */
    #harita-iframe-konteyner {
        height: 250px !important; /* Boşluğu kapatmak için yüksekliği iyice kıstık */
        overflow: hidden !important;
        margin-bottom: 10px !important;
    }
    #meb-harita-frame {
        height: 100% !important;
        transform: scale(0.8); /* Haritayı kutuya sığdırmak için biraz küçülttük */
        transform-origin: top center;
    }
}
@media (max-width: 900px) {
    .afad-maske-dis {
        height: 400px !important; 
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
    }

    #afad-frame {
        width: 170% !important; /* Genişliği mobilde tabloyu kapsayacak hale getirdik */
        position: absolute !important;
        top: -155px !important;  /* AFAD logosunu ve menüsünü yukarı saptırdık */
        left: -35% !important;   /* Tabloyu tam ortalamak için sola kaydırdık */
        border: none !important;
    }
}