/* ========================================================================
   HABERLER LİSTE SAYFASI (GRID)
   ======================================================================== */

.haberler-sayfasi {
    padding: 100px 0; /* Header altında kalmaması için geniş padding */
    background-color: #f8fafc;
}

.haberler-ana-baslik {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c4f84; /* AKKDER Mavi */
    margin-bottom: 15px;
}

.haberler-giris-metni {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* HABER IZGARASI (GRID) */
.haberler-grid {
    display: grid;
    /* Masaüstünde 3 sütunlu düzen, 992px altında 2, 600px altında 1 olur */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* HABER KARTI */
.haber-kart {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none; /* Link alt çizgisini kaldır */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.haber-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* GÖRSEL ALANI */
.haber-gorsel {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.haber-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.haber-kart:hover .haber-gorsel img {
    transform: scale(1.08);
}

/* İÇERİK ALANI */
.haber-icerik {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.haber-baslik {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 12px;
    /* Başlığı 2 satırla sınırla */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haber-ozet {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* ALT BİLGİ (TARİH VE ETİKET) */
.haber-detay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #94a3b8;
}

.haber-detay i {
    margin-right: 5px;
    color: #2c4f84;
}

.haber-etiket {
    background: #eff6ff;
    color: #2c4f84;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ========================================================================
   HABERLER LİSTE SAYFASI RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    .haberler-ana-baslik {
        font-size: 1.8rem;
    }

    .haberler-giris-metni {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .haberler-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 20px;
    }

    .haber-gorsel {
        height: 200px; /* Mobilde görsel yüksekliği */
    }

    .haber-icerik {
        padding: 20px;
    }
}

/* ========================================================================
   İÇ İÇERİK (HABER DETAY) SAYFA DÜZENİ
   ======================================================================== */

#akkder-haber-detay-sayfasi, #akkder-atso-sayfa {
    padding: 100px 0;
    background-color: #ffffff;
}

.akkder-haber-container, .haber-icerik-container {
    max-width: 900px; /* Okunabilirlik için metin alanı çok geniş olmamalı */
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. BAŞLIK VE GİRİŞ METNİ */
.akkder-haber-baslik, .haber-icerik-baslik {
    font-size: 2.5rem;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.akkder-giris-metni, .haber-icerik-giris {
    font-size: 1.25rem;
    color: #2d3748;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 40px;
    border-left: 4px solid #3f609e;
    padding-left: 20px;
}

/* 2. KAPAK GÖRSELİ VE OVERLAY */
.akkder-kapak-gorsel-alani, .haber-icerik-kapak {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.akkder-ana-resim, .haber-icerik-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.akkder-gorsel-uzeri-yazi, .haber-icerik-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

/* 3. LİSTE KUTUSU (Yönetim Kurulu vb.) */
.akkder-liste-kutusu, .haber-icerik-liste-kutu {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #2c4f84;
    padding: 35px;
    border-radius: 12px;
    margin: 40px 0;
}

.akkder-liste-kutusu h3, .haber-icerik-liste-kutu h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2c4f84;
}

.akkder-isim-listesi, .haber-icerik-liste-ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Masaüstünde 2 sütun */
    gap: 20px;
}

.akkder-isim-listesi li, .haber-icerik-liste-ul li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: #334155;
}

.akkder-isim-listesi li i, .haber-icerik-liste-ul li i {
    color: #fdd835;
    background: #2c4f84;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 12px;
}

/* 4. GALERİ (ALT GÖRSELLER) */
.akkder-alt-gorseller-grid, .haber-icerik-galeri {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.akkder-galeri-item img, .haber-icerik-galeri-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.akkder-galeri-item img:hover, .haber-icerik-galeri-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 5. ALINTI KUTUSU */
.haber-icerik-alinti {
    background: #fff8eb;
    border-left: 5px solid #d97706;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.15rem;
}

/* ========================================================================
   İÇ İÇERİK (HABER DETAY) RESPONSIVE AYARLARI
   ======================================================================== */

@media (max-width: 992px) {
    /* Konteynır genişliklerini mobilde tam yay */
    .akkder-haber-container, 
    .haber-icerik-container {
        width: 100%;
        padding: 0 15px;
    }

    /* Başlık boyutlarını mobilde küçült */
    .akkder-haber-baslik, 
    .haber-icerik-baslik {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    /* Görsel üzerindeki yazıların okunurluğu için paddingleri azalt */
    .akkder-gorsel-uzeri-yazi, 
    .haber-icerik-overlay {
        padding: 30px 15px 15px;
    }

    .akkder-gorsel-uzeri-yazi p, 
    .haber-icerik-overlay p {
        font-size: 1rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    /* 1. Liste kutusunu (Yönetim Kurulu vs.) tek sütuna düşür */
    .akkder-isim-listesi, 
    .haber-icerik-liste-ul {
        grid-template-columns: 1fr !important; /* Yan yana olan isimleri alt alta getir */
        gap: 12px;
    }

    .akkder-liste-kutusu, 
    .haber-icerik-liste-kutu {
        padding: 20px;
        margin: 25px 0;
    }

    /* 2. Galeri resimlerini alt alta getir */
    .akkder-alt-gorseller-grid, 
    .haber-icerik-galeri {
        grid-template-columns: 1fr !important; /* Resimleri yan yana değil alt alta yap */
        gap: 15px;
    }

    .akkder-galeri-item img, 
    .haber-icerik-galeri-item img {
        aspect-ratio: 16 / 9; /* Mobilde daha geniş bir görünüm sağla */
    }

    /* 3. Giriş metni ve alıntı kutuları */
    .akkder-giris-metni, 
    .haber-icerik-giris {
        font-size: 1.1rem;
        padding-left: 15px;
    }

    .haber-icerik-alinti {
        padding: 20px;
        font-size: 1rem;
    }
    
    /* İçerik paragrafları */
    .akkder-haber-icerik p, 
    .haber-icerik-icerik p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlarda başlık biraz daha küçülmeli */
    .akkder-haber-baslik, 
    .haber-icerik-baslik {
        font-size: 1.5rem;
    }
    
    .akkder-kapak-gorsel-alani, 
    .haber-icerik-kapak {
        border-radius: 8px; /* Köşe yuvarlamayı mobilde azalt */
        margin-bottom: 20px;
    }
}

/* --- Duyurular Genel Alanı --- */
.duyurular {
    flex: 1; /* Masaüstünde yan panel genişliği */
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 3px solid #3f609e;
    display: block;
}

/* --- Duyuru Listesi --- */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Kartlar arası boşluk */
}

/* --- Duyuru Kartı --- */
.announcement-card {
    display: flex; /* Görsel ve metni yan yana getirir */
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    text-decoration: none; /* Link ise alt çizgiyi kaldırır */
}

.announcement-card:hover {
    transform: translateX(5px);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3f609e;
}

/* --- Kart Görsel Alanı --- */
.announcement-image-box {
    width: 90px;
    height: 90px;
    flex-shrink: 0; /* Görselin sıkışmasını engeller */
}

.announcement-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görseli kutuya tam sığdırır */
}

/* --- Kart İçerik Alanı --- */
.announcement-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcement-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    margin-bottom: 4px;
    display: block;
}

.announcement-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* --- Detaylı Oku Linki --- */
.read-more-link {
    font-size: 0.8rem;
    color: #3f609e;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.announcement-card:hover .read-more-link {
    gap: 8px; /* Ok işareti hafif sağa kayar */
    color: #2c4f84;
}

.read-more-link i {
    font-size: 0.7rem;
}