/* --- TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #f0f2f5; color: #333; transition: all 0.3s ease; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* --- HEADER --- */
.top-bar { 
    background-color: #e50914; 
    color: white; 
    padding: 8px 0; 
    font-size: 14px; 
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.top-bar-right a {
    color: white;
    font-size: 16px;
}

.main-header { 
    background-color: white; 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
}
.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.main-nav { 
    margin: 0 auto; 
    padding-left: 100px; /* Logoyla arasına boşluk koymak için */
}
.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}
.main-nav a { 
    font-weight: 500; 
    transition: color 0.3s; 
}
.main-nav a:hover { 
    color: #e50914; 
}
.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.header-actions .icon { 
    font-size: 18px; 
    cursor: pointer; 
}
.hamburger-menu { 
    display: none; 
    background-color: #e50914; 
    color: white; 
    padding: 8px 10px; 
    border-radius: 4px; 
    font-size: 20px; 
    cursor: pointer; 
}

/* --- HİBRİT ÖNE ÇIKAN ALAN --- */
.featured-posts { padding: 30px 0; }
.hybrid-featured-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 15px; height: 515px; }
.fixed-column { display: grid; grid-template-rows: 1fr 1fr; gap: 15px; }
/* Slider Sütunu ve Slider'ın Kendisi (GÜNCELLENDİ) */
.slider-column {
    position: relative; /* Bu, slider'ı içine hapsetmemizi sağlar */
    height: 100%;
    width: 100%;
}
.featured-slider {
    position: absolute; /* Bu, slider'ın ana ızgarayı bozmamasını sağlar */
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 8px;
}
.swiper-slide .featured-item {
    height: 100%;
}
.featured-item { position: relative; border-radius: 8px; overflow: hidden; color: white; display: block; }
.featured-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); z-index: 1; }
.featured-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.4s ease; }
.featured-item:hover img { transform: scale(1.05); }
.featured-item-content { position: relative; z-index: 2; padding: 25px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.category-tag { background-color: #28a745; color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; display: inline-block; margin-bottom: 10px; align-self: flex-start; }
.featured-item h2, .featured-item h4 { text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.featured-item h2 { font-size: 32px; margin-bottom: 15px; }
.featured-item h4 { font-size: 18px; }
.read-more-btn { background-color: #e50914; color: white; padding: 10px 20px; border-radius: 4px; font-weight: 600; display: inline-block; align-self: flex-start; }

/* --- ANA İÇERİK --- */
.main-content { padding: 30px 0; }
.main-content .container { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.posts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-content: start; }
.post-card { background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.post-card-image { border-top-left-radius: 8px; border-top-right-radius: 8px; overflow: hidden; }
.post-card-content { padding: 25px; }
.post-card-content a:hover { color: #e50914; }
.post-card-content h3 { font-size: 20px; margin-bottom: 15px; line-height: 1.4; }
.post-card-content p { color: #555; line-height: 1.7; font-size: 15px; }

/* --- SIDEBAR --- */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.widget-title { background-color: #e50914; color: white; padding: 10px 15px; font-size: 18px; margin: -20px -20px 20px -20px; border-top-left-radius: 8px; border-top-right-radius: 8px; position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: -5px; left: 20px; width: 40px; height: 3px; background-color: #e50914; }
.widget-search form { display: flex; }
.widget-search input { flex-grow: 1; border: 1px solid #ddd; padding: 10px; border-radius: 4px 0 0 4px; }
.widget-search button { background-color: #e50914; color: white; border: none; padding: 0 15px; cursor: pointer; border-radius: 0 4px 4px 0; }
.widget-list ul { list-style: none; }
.widget-list li { border-bottom: 1px solid #eee; padding: 12px 0; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { display: flex; align-items: center; gap: 10px; }
.social-media-widget .social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-media-widget .social-item { display: flex; align-items: center; gap: 10px; color: white; padding: 10px; border-radius: 4px; font-size: 14px; }
.social-media-widget .social-item i { font-size: 20px; }
.advertisement-widget { padding: 0; }
.advertisement-widget img { border-radius: 8px; }

/* --- FOOTER --- */
.site-footer { background-color: #1f1f1f; color: #ccc; padding-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid #333; }
.footer-widget h4 { font-size: 18px; color: white; margin-bottom: 25px; position: relative; }
.footer-widget h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background-color: #e50914; }
.sub-footer { padding: 25px 0; }
.sub-footer .container { display: flex; justify-content: space-between; align-items: center; }
.sub-footer nav ul { display: flex; list-style: none; gap: 20px; }
/* --- BACK TO TOP BUTONU (ANİMASYONLU) --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e50914;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;

    /* Başlangıçta gizli ve aşağıda */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

/* 'show' class'ı eklendiğinde görünür ve yukarıda */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* --- MOBİL UYUMLULUK --- */
@media (max-width: 991px) {
    .main-nav, .header-actions .icon { display: none; }
    .hamburger-menu { display: block; }
    .hybrid-featured-grid { grid-template-columns: 1fr; height: auto; }
    .slider-column { height: 400px; order: -1; }
    .main-content .container { grid-template-columns: 1fr; }
    .posts-list { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
}
/* --- ARAMA OVERLAY --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.search-overlay-active {
    opacity: 1;
    visibility: visible;
}

.search-overlay .close-search-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.search-overlay .search-form {
    width: 80%;
    max-width: 700px;
}

.search-overlay .search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    padding: 15px 0;
    text-align: center;
    outline: none;
}

.search-overlay .search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
/* --- SLIDER PAGINATION NOKTALARI --- */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    background: #e50914;
}
/* --- SINGLE POST GALERİ DÜZENLEMESİ --- */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Esnek ızgara yapısı */
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.post-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.post-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.post-gallery a:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}
/* --- SINGLE POST GÜZELLEŞTİRME --- */

/* Ana Konteyner ve Başlık */
.single-post-container {
    background-color: transparent; /* Arka planı kaldır */
    box-shadow: none; /* Gölgeyi kaldır */
    padding: 40px 0; /* Üstten ve alttan boşluk, yanlardan sıfırla */
    max-width: 900px; /* İçeriği çok genişletme, okunaklı kalsın */
    margin: 30px auto; /* Ortala */
}

.single-post-container h1 {
    font-size: 42px; /* Başlığı büyüt */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* İçerik Yazısı */
.post-content {
    font-size: 18px; /* Yazıyı büyüt */
    line-height: 1.8;
    color: #555; /* Rengi biraz yumuşat */
    margin-bottom: 40px;
}

/* Galeri (Zaten güzeldi, küçük bir ayar) */
.post-gallery {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Detaylar Listesi (Yeni Modern Görünüm) */
.post-details-list {
    margin-bottom: 40px;
    border-top: 1px solid #eee; /* Üstüne çizgi */
    border-bottom: 1px solid #eee; /* Altına çizgi */
    padding: 20px 0;
}
.detail-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}
.detail-label {
    font-weight: 600;
    color: #333;
    width: 200px; /* Etiketler için sabit genişlik */
    flex-shrink: 0;
}
.detail-value {
    color: #666;
}

/* Eski Tabloyu Gizle (Gerekirse) */
.post-details-table {
    display: none;
}

/* YouTube Video Konteyneri */
.youtube-video-wrapper {
    margin: 0 auto;
    max-width: 100%; /* Genişliği ayarla */
}
.post-card{
    transition: all 0.3s ease !important;
}
.post-card:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
/* --- SIDEBAR WIDGET LİSTESİ VE HOVER EFEKTİ --- */
.widget-list ul {
    list-style: none;
}

.widget-list li {
    border-bottom: 1px solid #eee; /* Liste elemanları arasına ince çizgi */
}

.widget-list li:last-child {
    border-bottom: none; /* Son elemanın altındaki çizgiyi kaldır */
}

.widget-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 5px; /* Tıklama alanını genişlet */
    color: #333;
    transition: color 0.3s ease;
    
    /* Çizgi efekti için hazırlık */
    position: relative; 
    text-decoration: none;
}

.widget-list a:hover {
    color: #e50914; /* Hover'da metin rengini kırmızı yap */
}

/* Hover'da görünecek animasyonlu çizgi */
.widget-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e50914;
    
    /* Başlangıçta gizli ve solda %0 genişlikte */
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
}

.widget-list a:hover::after {
    /* Hover olunca %100 genişliğe ulaşarak görünür hale gel */
    transform: scaleX(1); 
}

.widget-list a i {
    color: #e50914; /* Ok ikonunun rengi */
}

/* --- DARK MODE STİLLERİ --- */

/* Yumuşak geçiş için temel elemanlara transition ekleyelim */
body, .main-header, .widget, .post-card, .single-post-container {
    transition: background-color 0.3s ease, color 0.3s ease;
}
body a {
    transition: color 0.3s ease;
}
/* Sayfa genelinde karanlık mod aktif olduğunda */
body.dark-mode {
    background-color: #121212; /* Koyu Gri Arka Plan */
    color: #e0e0e0; /* Açık Gri Yazı Rengi */
}

/* Header */
body.dark-mode .main-header {
    background-color: #1f1f1f;
    border-bottom-color: #333;
}

/* Linkler ve İkonlar */
body.dark-mode a,
body.dark-mode .header-actions .icon,
body.dark-mode .top-bar-right a {
    color: #e0e0e0;
}

body.dark-mode a:hover,
body.dark-mode .header-actions .icon:hover,
body.dark-mode .top-bar-right a:hover {
    color: #e50914; /* Vurgu rengi kırmızı kalsın */
}

/* Yazı Kartları ve Widget'lar */
body.dark-mode .widget,
body.dark-mode .post-card {
    background-color: #1f1f1f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Başlıklar */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

/* Paragraflar ve Diğer Metinler */
body.dark-mode p,
body.dark-mode .post-card-content p,
body.dark-mode .post-content {
    color: #b0b0b0;
}

/* Kenarlıklar */
body.dark-mode .widget-list li {
    border-bottom-color: #333;
}

/* Single Post Sayfası */
body.dark-mode .single-post-container {
    background-color: transparent;
}
body.dark-mode .post-details-list {
    border-color: #333;
}
body.dark-mode .detail-label {
    color: #fff;
}
body.dark-mode .detail-value {
    color: #b0b0b0;
}
/* --- DARK MODE LOGO DEĞİŞİMİ --- */

/* Başlangıçta (Aydınlık Modda) beyaz logoyu gizle */
.logo-light {
    display: none;
}

/* Karanlık mod aktif olduğunda */
body.dark-mode .logo-dark {
    display: none; /* Koyu renkli logoyu gizle */
}

body.dark-mode .logo-light {
    display: block; /* Açık renkli logoyu göster */
}
body.dark-mode .back-to-top {
    color: #000;
}
body.dark-mode .back-to-top:hover {
    color: #fff;
}
body.dark-mode .top-bar a:hover {
    color: white;
}
body.dark-mode .info-box-content h3 {
    color: #1f1f1f;
}
body.dark-mode .contact-card h2 {
    color: #1f1f1f;
}

/* --- HAKKIMIZDA SAYFASI STİLLERİ --- */

/* --- YENİ VE PROFESYONEL HAKKIMIZDA SAYFASI --- */

/* Yeni Sayfa Başlığı Alanı */
.page-header-about {
    background: #1f1f1f url('assets/images/header-bg.jpg') no-repeat center center/cover; /* Arka plan resmi ekleyebilirsin */
    background-color: #1a1a1a; /* Resim yüklenmezse diye */
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 5px solid #e50914;
}
.about-main-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.about-subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.8;
}

/* Ana İçerik Konteyneri */
.about-page-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Genel Bölüm Stilleri */
.about-section.text-center {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}
.section-title {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}
.section-intro {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* Yeni 2'li Izgara Yapısı */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.grid-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* İkonlu Bilgi Kutuları */
.info-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    border-left: 4px solid #e50914;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.info-box-icon {
    font-size: 32px;
    color: #e50914;
    background-color: #fde8e9;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-box-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #222;
}
.info-box-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Misyon Listesi */
.mission-list-styled {
    list-style: none;
    padding-left: 0;
}
.mission-list-styled li {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}
.mission-list-styled li::before {
    content: "\f00c"; /* Font Awesome Check ikonu */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745; /* Yeşil tik işareti */
    font-size: 14px;
}

/* Mobil Uyum */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
/* --- SINGLE POST TEK RESİM GÖRÜNÜMÜ --- */
.post-single-image {
    margin: 30px 0 40px 0;
}
.post-single-image a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.post-single-image img {
    width: 100%;
    display: block;
}
/* --- HABERLER SAYFASI STİLLERİ --- */

/* Hakkımızda sayfasındaki başlığı kullanabiliriz, eğer yoksa diye ekliyorum */
.page-header {
    background-color: #e50914;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}
.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
}

/* Sayfa Konteyneri */
.news-page-container {
    padding-bottom: 60px;
}

/* Haber bulunamadığında gösterilecek mesaj */
.no-posts-message {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    font-size: 18px;
    color: #888;
}
/* --- HABERLER SAYFASI ÖZEL GRID DÜZENİ --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütun */
    gap: 25px; /* Sütunlar arası boşluk */
}

/* 4'lü düzende kartlar küçüleceği için içeriklerini de küçültelim */
.news-grid .post-card-content {
    padding: 20px;
}
.news-grid .post-card-content h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-grid .post-card-content p {
    font-size: 14px;
    line-height: 1.6;
}

/* MOBİL UYUM */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2 sütun */
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr; /* Telefonda tek sütun */
    }
}

/* --- İLETİŞİM SAYFASI STİLLERİ --- */

.contact-page-container {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* Sekme Butonu */
.contact-tabs {
    margin-bottom: 20px;
}
.tab-button {
    background-color: #111;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px; /* Tam yuvarlak kenarlar */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.tab-button.active {
    /* Aktif sekme için farklı bir stil (gerekirse) */
}

/* İletişim Bilgi Kartı */
.contact-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    gap: 40px;
}
.card-left {
    width: 60%;
}
.card-right {
    width: 40%;
    border-radius: 15px;
    overflow: hidden; /* Haritanın kenarlarını yuvarlak yapmak için */
}
.contact-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Adres Bölümü */
.address-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.info-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.address-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Diğer Bilgilerin Izgarası */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütun */
    gap: 25px;
}
.info-block a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
.info-block a:hover {
    color: #e50914;
}
.info-block p {
    color: #555;
}
.map-link a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.map-link i {
    color: #e50914;
}

/* Mobil Uyum */
@media (max-width: 991px) {
    .contact-card {
        flex-direction: column-reverse; /* Mobilde harita üste gelsin */
    }
    .card-left, .card-right {
        width: 100%;
    }
    .card-right {
        height: 300px; /* Haritaya sabit yükseklik ver */
    }
}
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr); /* Daha küçük ekranlarda 2 sütun */
    }
}
@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr; /* En küçük ekranlarda tek sütun */
    }
}