/*
Theme Name: Mozthm
Theme URI: http://seninsiten.com
Author: Senin Adın
Author URI: http://seninsiten.com
Description: Codestar Framework altyapılı, gelişmiş haber teması.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mozthm
Tags: news, magazine, responsive, modern
*/

/* Google Font (Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --primary-color: #e74c3c; /* Haber kırmızısı */
    --secondary-color: #2c3e50; /* Koyu lacivert */
    --text-color: #333333;
    --bg-color: #f4f6f7;
    --border-color: #e1e1e1;
    --container-width: 1200px;
}


body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Linkler */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* Konteyner (Ortalama) */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Resimler taşmasın */
img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. HEADER (ÜST KISIM) TASARIMI
   ========================================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex; /* Yan yana dizme sihirbazı */
    align-items: center; /* Dikey ortala */
    justify-content: space-between; /* Sağa ve sola yasla */
}

/* Logo Alanı */
.site-branding {
    flex: 0 0 auto; /* Genişliği içeriği kadar olsun */
    max-width: 250px; /* Logo çok büyümesin */
}

/* Menü Alanı */
.main-navigation ul {
    list-style: none; /* Noktaları kaldır */
    margin: 0;
    padding: 0;
    display: flex; /* Yan yana diz */
    gap: 20px; /* Linkler arası boşluk */
}

.main-navigation ul li a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--secondary-color);
}

.main-navigation ul li a:hover {
    color: var(--primary-color);
}

/* Araçlar (Arama & Sosyal) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social a {
    font-size: 16px;
    color: #999;
}

.header-search-toggle button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* =========================================
   3. HABER KARTLARI & GRID YAPISI
   ========================================= */

/* Izgara Sistemi (3 sütunlu) */
.mozthm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 eşit parça */
    gap: 30px; /* Kutular arası boşluk */
    margin-bottom: 50px;
}

/* Tablette 2 sütun olsun */
@media (max-width: 992px) {
    .mozthm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobilde tek sütun olsun */
@media (max-width: 600px) {
    .mozthm-grid {
        grid-template-columns: 1fr;
    }
}

/* Kartın Kendisi */
.post-card {
    background: #fff;
    border: 1px solid var(--border-color); /* Hafif gri çerçeve */
    border-radius: 8px; /* Köşeleri yuvarla */
    overflow: hidden; /* Resim taşarsa gizle */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Karta gelince hafif yukarı çıksın */
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Kart Görseli */
.post-thumbnail img {
    width: 100%;
    height: 200px; /* Tüm resimler eşit yükseklikte */
    object-fit: cover; /* Resmi sündürmeden kırp */
    display: block;
}

/* Kart İçeriği */
.post-content {
    padding: 20px;
}

/* Kategori Linkleri */
.post-meta .cat-links a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
}

/* Başlık */
.entry-title {
    font-size: 18px;
    margin: 5px 0 10px;
    line-height: 1.4;
    font-weight: 700;
}

.entry-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary-color);
}

/* Özet Metni */
.entry-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3 satırdan fazlasını gizle */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kart Altı (Tarih vb) */
.entry-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    font-size: 12px;
    color: #999;
}

/* Sayfalama */
.pagination {
    text-align: center;
    margin: 40px 0;
}
.pagination .nav-links .page-numbers {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    margin: 0 5px;
    border-radius: 4px;
}
.pagination .nav-links .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================================
   4. DETAY SAYFASI (SINGLE) & SIDEBAR
   ========================================= */

/* İki Sütunlu Düzen */
.site-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Sol Taraf (Haber) %70 */
.site-main {
    flex: 2; /* 2 birim yer kapla */
    min-width: 0; /* İçerik taşmasını önler */
}

/* Sağ Taraf (Sidebar) %30 */
.widget-area {
    flex: 1; /* 1 birim yer kapla */
}

/* Mobilde alt alta olsunlar */
@media (max-width: 900px) {
    .site-layout {
        flex-direction: column;
    }
}

/* --- Haber İçeriği --- */
.entry-header {
    margin-bottom: 20px;
}

.entry-header .entry-title {
    font-size: 32px;
    margin: 10px 0;
    color: var(--secondary-color);
}

.entry-meta-bottom {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.entry-meta-bottom span {
    margin-right: 15px;
}

.single-featured-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Okuma Metni (Typography) */
.entry-content {
    font-size: 18px; /* Okuması kolay büyük font */
    line-height: 1.8;
    color: #222;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2, .entry-content h3 {
    margin-top: 30px;
    color: var(--secondary-color);
}

/* --- Yazar Kutusu --- */
.author-box {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* --- Sidebar Widgetları --- */
.widget {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-title {
    font-size: 18px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

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

.widget ul li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.widget ul li a {
    font-weight: 500;
    color: #555;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Hover efekt */
}

/* =========================================
   5. ÖZEL WIDGET TASARIMLARI
   ========================================= */

/* Resimli Son Yazılar Listesi */
.mozthm-recent-posts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mozthm-recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mozthm-recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Link Kutusu (Flex ile yan yana) */
.rp-item {
    display: flex;
    align-items: center; /* Dikey ortala */
    gap: 15px;
    text-decoration: none;
}

/* Küçük Resim Kutusu */
.rp-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0; /* Resmi sıkıştırma */
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdır */
}

/* Resim yoksa gri kutu */
.rp-thumb .no-thumb {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ddd;
}

/* Başlık ve Tarih */
.rp-content {
    flex: 1; /* Kalan boşluğu doldur */
}

.rp-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 5px;
    font-weight: 600;
    color: var(--secondary-color);
}

.rp-item:hover .rp-title {
    color: var(--primary-color);
}

.rp-date {
    font-size: 11px;
    color: #999;
}

/* =========================================
   6. FOOTER TASARIMI
   ========================================= */

.site-footer {
    background-color: #1a1a1a; /* Koyu antrasit */
    color: #b0b0b0; /* Açık gri metin */
    font-size: 14px;
}

/* --- Widget Alanı --- */
.footer-widgets-area {
    padding: 60px 0;
    border-bottom: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Eşit Sütun */
    gap: 40px;
}

/* Mobilde tek sütun yap */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Widget Başlıkları */
.footer-widget-title {
    color: #fff; /* Başlıklar beyaz */
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Footer Linkleri */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.footer-widget ul li a {
    color: #b0b0b0;
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* --- Alt Bar (Copyright) --- */
.site-info-bar {
    padding: 20px 0;
    background-color: #111; /* Daha koyu şerit */
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .site-info-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Footer Menüsü (Varsa) */
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-menu ul li a {
    color: #888;
}

.footer-menu ul li a:hover {
    color: #fff;
}

/* =========================================
   7. MANŞET SLIDER (PROFESYONEL)
   ========================================= */

.manset-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Derinlik hissi */
}

/* Yükseklik Ayarı */
.manset-slider {
    width: 100%;
    height: 500px; /* PC için yükseklik */
}

@media (max-width: 768px) {
    .manset-slider {
        height: 300px; /* Mobil için yükseklik */
    }
}

/* Resim ve Overlay */
.manset-item {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.manset-image {
    width: 100%;
    height: 100%;
}

.manset-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi sündürme, kes */
}

/* O Meşhur Haber Sitesi Karartması (Gradient) */
.manset-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Resmin %70'inden başla */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* Başlık Alanı */
.manset-caption {
    position: absolute;
    bottom: 40px; /* Sayıların üstünde dursun */
    left: 30px;
    right: 30px;
    z-index: 2;
    color: #fff;
}

.manset-cat {
    background: var(--primary-color);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

.manset-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Yazı patlasın */
}

@media (max-width: 768px) {
    .manset-title {
        font-size: 20px;
    }
    .manset-caption {
        bottom: 20px;
        left: 15px;
        right: 15px;
    }
}

/* --- Numaralı Navigasyon Düzeltmesi --- */
.swiper-pagination-bullets {
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0,0,0,0.8); /* Arkaplanı koyulaştırdık */
    display: flex !important; /* Mutlaka yan yana olsun */
    padding: 0;
    margin: 0;
    z-index: 10;
}

.swiper-pagination-bullet {
    flex: 1; /* Hepsi eşit genişlikte */
    height: 40px; /* Yükseklik arttı */
    line-height: 40px; /* Yazıyı ortala */
    background: transparent !important;
    color: #bbb;
    opacity: 1 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 16px;
    font-weight: 700;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-align: center; /* Numarayı ortala */
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet:last-child {
    border-right: none;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important; /* Seçili olan kırmızı olsun */
    color: #fff;
    font-size: 18px; /* Seçili olan biraz büyüsün */
}

.swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff;
}

/* =========================================
   8. ANASAYFA BLOKLARI
   ========================================= */

.news-block {
    margin-bottom: 50px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    position: relative;
}

/* Başlık Stili */
.block-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color); /* Kırmızı çizgi */
    margin-bottom: -2px; /* Çizgiyi alt çizginin üstüne bindir */
}

/* "Tümü" Linki */
.block-more {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    text-decoration: none;
}

.block-more:hover {
    color: var(--primary-color);
}

/* =========================================
   9. ARŞİV / KATEGORİ SAYFASI
   ========================================= */

/* Başlık Alanı */
.archive-header {
    background: #fff;
    border-left: 5px solid var(--primary-color); /* Solu kırmızı çizgili */
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.archive-header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--secondary-color);
}

.archive-header .archive-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Arşiv Grid Düzeni */
/* Sidebar olduğu için buradaki gridi biraz sıkıştırmamız lazım */
.archive-grid {
    grid-template-columns: repeat(2, 1fr); /* Sidebar varken 2'li olsun */
    gap: 30px;
}

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

/* =========================================
   10. BENZER HABERLER (RELATED POSTS)
   ========================================= */

.related-posts-section {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Yan Yana */
    gap: 20px;
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta */
    }
}

.related-item {
    display: block;
    text-decoration: none;
    group: pointer; /* Hover için grup */
}

.related-thumb {
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #eee;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-thumb img {
    transform: scale(1.1); /* Resim hafif zoom yapar */
}

.related-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    margin: 0;
}

.related-item:hover .related-item-title {
    color: var(--primary-color);
}

/* =========================================
   11. BREADCRUMBS (YOL HARİTASI)
   ========================================= */

.mozthm-breadcrumb-wrapper {
    background-color: #f9f9f9; /* Çok açık gri zemin */
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 30px; /* İçerikten uzaklaştır */
    font-size: 13px; /* Kibar font boyutu */
    color: #888;
}

.mozthm-breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Mobilde taşarsa aşağı insin */
    align-items: center;
}

.mozthm-breadcrumb li {
    display: flex;
    align-items: center;
}

/* Linkler ve Ayıraçlar */
.mozthm-breadcrumb li a {
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.mozthm-breadcrumb li a:hover {
    color: var(--primary-color);
}

/* Kategori linklerinden sonra gelen virgülleri vs. gizlemek istersen */
.mozthm-breadcrumb li + li::before {
    content: "›"; /* Araya ok işareti koy */
    margin: 0 10px;
    color: #ccc;
    font-size: 16px;
}

/* Aktif Sayfa (Tıklanmaz) */
.mozthm-breadcrumb li.active {
    color: #999;
    font-weight: 400;
    /* Uzun başlıklar tek satırda kalsın istersen: */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px; /* Mobilde taşmasın */
}

@media (max-width: 600px) {
    .mozthm-breadcrumb li.active {
        max-width: 150px; /* Mobilde daha kısa tut */
    }
}

/* =========================================
   12. ARAMA SONUÇLARI SAYFASI
   ========================================= */

/* Başlık Kutusu */
.search-header-box {
    background: #fff;
    border-bottom: 3px solid var(--primary-color);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.search-header-box .page-title {
    margin: 0;
    font-size: 24px;
    color: var(--secondary-color);
}

.search-header-box .search-query {
    color: var(--primary-color);
    font-weight: 800;
    font-style: italic;
}

.search-count {
    margin: 10px 0 0;
    font-size: 14px;
    color: #999;
}

/* Sonuç Bulunamadı Kutusu */
.no-results-content {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.alert-box h3 {
    color: var(--secondary-color);
    font-size: 22px;
}

.alert-box p {
    color: #666;
    max-width: 500px;
    margin: 10px auto 30px;
}

.search-retry {
    max-width: 400px;
    margin: 0 auto;
}

/* =========================================
   13. MOBİL MENÜ VE RESPONSIVE HEADER
   ========================================= */

/* Varsayılan: Mobil Butonu ve Mobil Arama Gizli */
.menu-toggle, 
.mobile-search,
.sub-toggle {
    display: none;
}

/* --- RESPONSIVE KURALLARI (992px altı) --- */
@media (max-width: 992px) {

    /* Header Düzeni */
    .header-inner {
        padding: 0 10px;
        position: relative;
    }

    /* 1. Hamburger Butonu Görünsün */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 200; /* En üstte olsun */
    }

    /* Hamburger İkon Çizgileri */
    .hamburger-icon {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--secondary-color);
        position: relative;
        transition: all 0.3s;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--secondary-color);
        left: 0;
        transition: all 0.3s;
    }

    .hamburger-icon::before { top: -8px; }
    .hamburger-icon::after { top: 8px; }

    /* Buton Aktifken (X Şekli) */
    .menu-toggle.active .hamburger-icon { background: transparent; }
    .menu-toggle.active .hamburger-icon::before { top: 0; transform: rotate(45deg); }
    .menu-toggle.active .hamburger-icon::after { top: 0; transform: rotate(-45deg); }


    /* 2. Menü Kapsayıcısı (Mobilde Gizli Panel) */
    .menu-wrapper {
        position: fixed;
        top: 0;
        left: -100%; /* Ekranın solunda saklı */
        width: 280px; /* Panel genişliği */
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 150;
        padding-top: 80px; /* Header payı */
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    /* Menü Açılınca */
    .menu-wrapper.toggled {
        left: 0;
    }

    /* Siyah Perde (Body'ye eklenirse) */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 140;
    }

    /* 3. Linklerin Mobildeki Hali */
    .main-navigation ul {
        flex-direction: column; /* Alt alta diz */
        gap: 0;
    }

    .main-navigation ul li {
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        position: relative;
    }

    .main-navigation ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 15px;
        color: #333;
    }

    /* Alt Menü Ok İşareti */
    .sub-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 10px;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        background: #f9f9f9;
        cursor: pointer;
    }

    .main-navigation ul .sub-menu {
        display: none; /* JS ile açılacak */
        background: #f9f9f9;
        padding-left: 20px;
        box-shadow: none;
        position: static; /* Mobilde static */
        width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    
    /* Mobilde Arama Kutusu Görünsün */
    .mobile-search {
        display: block;
        padding: 20px;
    }
}

/* =========================================
   DÜZELTİLMİŞ HEADER & NAVBAR (FİNAL)
   ========================================= */

/* 1. GENEL KAPSAYICILAR (BLOCK) */
/* Flex yapmıyoruz ki içindeki container rahat çalışsın */
.header-topbar,
.header-main,
.header-bottom {
    display: block;
    width: 100%;
    position: relative;
    z-index: 99;
    box-sizing: border-box; /* Padding eklersek taşmasın */
}

/* Konteynerin çalıştığından emin olalım */
.container {
    max-width: 1200px; /* Standart genişlik */
    margin: 0 auto;    /* Ortala */
    padding: 0 15px;   /* Kenarlardan boşluk */
    height: 100%;      /* Yüksekliği kapsayıcıdan al */
}

/* =========================================
   A. TOPBAR DÜZENİ
   ========================================= */
.header-topbar {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-inner {
    display: flex;
    justify-content: space-between; /* Biri sağa biri sola */
    align-items: center; /* Dikey ortala */
    height: 100%; 
}

/* Sol ve Sağ Alanlar */
.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px; /* İçerik öğeleri arası boşluk */
}

/* Topbar Menüsü */
.topbar-menu-list {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================
   B. MAIN HEADER (LOGO & MENÜ)
   ========================================= */
.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo en sola, Menü en sağa */
    height: 100%;
}

/* --- Logo Alanı --- */
.site-branding {
    flex-shrink: 0; /* Logoyu asla sıkıştırma */
    margin-right: 30px; /* Menüye fazla yaklaşma */
    display: flex;
    align-items: center;
}

.site-branding a {
    display: block;
    line-height: 0; /* Resim altı boşluğu sil */
}

.site-branding img {
    /* Genişlik ve Yükseklik PHP'den (panelden) geliyor */
    object-fit: contain; 
}

/* --- Menü ve Araçlar Kapsayıcısı --- */
.main-navigation-wrapper {
    flex-grow: 1; /* Boş alanı kapla */
    display: flex;
    justify-content: flex-end; /* İçindekileri sağa yasla */
    align-items: center;
    gap: 20px; /* Menü ile Arama butonu arası */
}

/* Ana Menü Listesi */
.main-navigation ul {
    display: flex;
    gap: 25px; /* Linkler arası boşluk */
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    /* Renk/Font Panelden gelir */
}

.main-navigation ul li a:hover {
    color: var(--primary-color) !important; /* Panel rengini ezmek için !important */
}

/* Arama İkonu */
.header-search-trigger {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: 0.3s;
    flex-shrink: 0; /* Asla küçülme */
}

.header-search-trigger:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* =========================================
   C. BOTTOM BAR DÜZENİ
   ========================================= */
.header-bottom {
    /* Border ve Renk Panelden gelir */
}

.header-bottom .container {
    display: flex;
    align-items: center;
}

.bottom-navigation {
    width: 100%;
}

.bottom-menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.bottom-menu-list li a {
    text-decoration: none;
    transition: 0.3s;
    /* Font ayarları Panelden gelir */
}
/* =========================================
   MODERN HEADER ARAÇLARI (Search & Burger)
   ========================================= */

/* Araçlar Kutusu */
.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

/* Butonların Ortak Stili */
.tool-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Yuvarlak buton */
    transition: all 0.3s ease;
    color: #333; /* Varsayılan renk */
}

.tool-btn svg {
    display: block;
}

/* Hover Efekti */
.tool-btn:hover {
    background-color: rgba(0,0,0,0.05); /* Hafif gri */
    color: var(--primary-color);
    transform: scale(1.1); /* Hafif büyüme */
}

/* Masaüstü Menüsü (Mobil'de gizleyeceğiz) */
.desktop-menu {
    display: block;
}

@media (max-width: 992px) {
    .desktop-menu {
        display: none; /* Mobilde ana menü linklerini gizle, sadece ikon kalsın */
    }
}

/* =========================================
   MODERN ARAMA OVERLAY (FULL SCREEN)
   ========================================= */

.header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95); /* Simsiyah transparan */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aktif Olduğunda */
.header-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Kapat Butonu */
.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    transform: rotate(0deg);
    transition: 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
}

/* Arama Formu */
.search-overlay-inner {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
}

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

.overlay-search-field:focus {
    border-bottom-color: var(--primary-color);
}

.search-instruction {
    color: #888;
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* =========================================
   OFF-CANVAS (KAYAR YAN PANEL) - DESKTOP & MOBİL
   ========================================= */

/* Panelin Kendisi */
.offcanvas-menu-wrapper {
    position: fixed;
    top: 0;
    right: -320px; /* Ekranın sağında gizli (Solda istersen left: -320px yap) */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999; /* En üstte */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Yumuşak kayma */
    padding: 40px 30px;
    overflow-y: auto; /* İçerik taşarsa scroll olsun */
    visibility: hidden;
}

/* Aktif Olduğunda (JS ile eklenecek sınıf) */
.offcanvas-menu-wrapper.active {
    right: 0; /* İçeri kay */
    visibility: visible;
}

/* Kapatma Butonu */
.offcanvas-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}
.offcanvas-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Siyah Perde (Backdrop) */
.offcanvas-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9990; /* Panelin bir altında */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menü Linkleri */
.offcanvas-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-nav-list li {
    border-bottom: 1px solid #f5f5f5;
}

.offcanvas-nav-list li a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.offcanvas-nav-list li a:hover {
    color: var(--primary-color);
    padding-left: 10px; /* Kayma efekti */
}

/* Alt Menüler */
.offcanvas-nav-list .sub-menu {
    display: none; /* JS ile açılır */
    padding-left: 15px;
    background: #f9f9f9;
}

/* =========================================
   PREMIUM MANŞET (PANEL ENTEGRELİ & DÜZELTİLMİŞ)
   ========================================= */

.classic-manset-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    background: var(--manset-bg, #222); /* Panelden gelen renk */
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 1. Resim Alanı */
.classic-slider {
    width: 100%;
    height: var(--slider-height, 450px);
    position: relative;
    margin: 0;
}

.cm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. Gradient ve Başlık */
.cm-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Sabit Siyah Gradient (Yazı okunabilirliği için şart) */
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    padding: 60px 20px 20px 20px;
    z-index: 2;
    pointer-events: none;
}

.cm-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 3. Numara Şeridi (ZEMİN RENGİ BURADAN GELİR) */
.classic-pagination-container {
    background: var(--manset-bg, #222); /* PANEL DEĞİŞKENİ */
    width: 100%;
    height: 46px;
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.1); /* Hafif ayırıcı çizgi */
    position: relative;
    z-index: 5;
}

.swiper-pagination-custom {
    display: flex;
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

/* Numaralar (Kutucuklar) */
.swiper-pagination-bullet {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* ÖNEMLİ: Arkaplan şeffaf olsun ki ana zemin görünsün */
    background: transparent !important; 
    
    color: var(--manset-pasif, #888); /* PANEL DEĞİŞKENİ */
    font-weight: 700;
    font-size: 14px;
    
    border-radius: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    
    border-top: 4px solid transparent; /* Yer tutucu */
    position: relative;
}

/* Ayırıcı Çizgiler (Separator) */
.swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background-color: rgba(255,255,255,0.1); /* Hafif görünür çizgi */
}
.swiper-pagination-bullet:last-child::after { display: none; }

/* HOVER Durumu */
.swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.05) !important; /* Çok hafif aydınlatma */
    color: #fff;
}

/* AKTİF Numara */
.swiper-pagination-bullet-active {
    /* ÖNEMLİ DÜZELTME: Sabit renk yerine şeffaf veya çok hafif ton */
    background: transparent !important; 
    /* İstersen aktif olanın zemini hafif belli olsun diye şunu açabilirsin: */
    /* background: rgba(0,0,0,0.2) !important; */
    
    color: var(--manset-aktif, #e74c3c) !important; /* Yazı Rengi */
    border-top-color: var(--manset-aktif, #e74c3c) !important; /* Çizgi Rengi */
    font-weight: 900;
}

/* İkon Kutusu */
.all-news-link {
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2); /* Hafif koyu */
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.all-news-link:hover {
    background: var(--manset-aktif, #e74c3c); /* PANEL DEĞİŞKENİ */
}

/* MOBİL AYARLARI (Full Width Devam Ediyor) */
@media (max-width: 768px) {
    .home-top-section {
        margin-left: -15px; margin-right: -15px; width: calc(100% + 30px);
        margin-top: 0; gap: 0;
    }
    .main-slider-area, .classic-slider, .classic-manset-wrapper, .cm-img {
        border-radius: 0 !important; border: none !important;
    }
    .classic-slider { height: 260px !important; }
    .cm-title { font-size: 18px; }
    
    .classic-pagination-container {
        overflow-x: auto;
        padding-left: 10px; padding-right: 10px;
    }
    .swiper-pagination-bullet {
        min-width: 40px; flex: none;
    }
    .all-news-link { display: none; }
}

/* =========================================
   GENEL RADIUS AYARI (Tüm Kutular İçin)
   ========================================= */
/* Panelden gelen --global-radius değişkenini kullanıyoruz */
.classic-manset-wrapper,
.main-slider-area,
.slider-sidebar-area,
.widget,
.post-box, 
.entry-content img,
.author-box,
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea,
button.submit,
.btn {
    border-radius: var(--global-radius, 4px) !important;
}

/* =========================================
   MOBİL HEADER & KAYAR MENÜ (DÜZELTİLMİŞ)
   ========================================= */

/* 1. MASAÜSTÜ VARSAYILANLARI (Zorunlu Gizleme) */
.mobile-header-wrapper {
    display: none !important; /* Masaüstünde ASLA görünmesin */
}

/* 2. MOBİL GÖRÜNÜM (Sadece 992px ve altı) */
@media (max-width: 992px) {
    
    /* Masaüstü Header'ı Gizle */
    .header-main, .top-bar, .header-bottom { 
        display: none !important; 
    }
    
    /* Mobil Header'ı Göster */
    .mobile-header-wrapper {
        display: block !important;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        position: sticky;
        top: 0;
        z-index: 999;
    }

    /* --- ÜST BAR (LOGO VE İKONLAR) --- */
    .mobile-main-bar {
        height: var(--mob-header-h, 60px);
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        background: #fff;
    }

    .mob-inner {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        justify-content: space-between; 
        position: relative;
    }

    /* Buton Stili */
    .mob-btn {
        background: none;
        border: none;
        padding: 0 15px; /* Tıklama alanı */
        height: 100%;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .mob-btn svg {
        display: block; /* Altındaki boşluğu al */
    }

    /* Logo Resmi */
    .mob-logo img {
        max-height: calc(var(--mob-header-h, 60px) - 20px);
        width: auto;
        display: block;
    }

    /* --- DÜZEN SENARYOLARI (Panelden Gelen) --- */

    /* 1. LAYOUT: CENTER (Klasik) */
    .mobile-main-bar.layout-center .mob-logo {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1;
    }

    /* 2. LAYOUT: LEFT (Logo Solda) */
    .mobile-main-bar.layout-left .mob-inner {
        justify-content: flex-start;
    }
    .mobile-main-bar.layout-left .mob-logo {
        margin-right: auto;
        padding-left: 15px;
        order: 1;
    }
    .mobile-main-bar.layout-left .mob-item-right { order: 2; margin-right: 5px; }
    .mobile-main-bar.layout-left .mob-item-left { order: 3; }

    /* 3. LAYOUT: SWAP (Ters) */
    .mobile-main-bar.layout-swap .mob-logo {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
    }
    .mobile-main-bar.layout-swap .mob-item-right { order: 1; margin-right: auto; }
    .mobile-main-bar.layout-swap .mob-item-left { order: 3; margin-left: auto; }


    /* --- KAYAR KATEGORİ MENÜSÜ --- */
    .mobile-cat-nav {
        height: var(--mob-cat-h, 45px);
        background: var(--mob-cat-bg, #fff);
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #eee;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .mobile-cat-nav::-webkit-scrollbar { display: none; }

    .mob-scroll-menu {
        margin: 0;
        padding: 0;
        list-style: none;
        height: 100%;
        display: flex;
        align-items: center;
        padding-left: 15px; /* Başlangıç boşluğu */
    }

    .mob-scroll-menu li {
        display: inline-block;
        margin-right: 20px;
        flex-shrink: 0;
    }
    
    .mob-scroll-menu li:last-child { margin-right: 15px; }
    
    .mob-scroll-menu li a {
        text-decoration: none;
        color: #555;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        display: block;
        line-height: var(--mob-cat-h, 45px);
    }
    
    .mob-scroll-menu li.current-menu-item a {
        color: var(--primary-color);
    }
}
/* =========================================
   MANŞET + YAN PANEL DÜZENİ
   ========================================= */

.home-top-section {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Sol 3 birim, Sağ 1 birim */
    gap: 20px; /* Aradaki boşluk */
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Eğer sağ tarafa widget atmazsan Slider tam ekran olsun */
.home-top-section:has(.slider-sidebar-area:empty), /* Modern tarayıcılar */
.home-top-section.full-width {
    grid-template-columns: 1fr;
}

/* Mobilde alt alta düşsün */
@media (max-width: 992px) {
    .home-top-section {
        grid-template-columns: 1fr; /* Tek sütun */
    }
    .slider-sidebar-area {
        margin-top: 20px;
    }
}/* =========================================
   MANŞET + YAN PANEL DÜZENİ (OTOMATİK)
   ========================================= */

.home-top-section {
    display: grid;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
}

/* DURUM 1: Widget YOK (Tam Genişlik) */
.home-top-section.full-width {
    grid-template-columns: 1fr; /* Tek parça, %100 */
}

/* DURUM 2: Widget VAR (Bölünmüş) */
.home-top-section.has-sidebar {
    /* Sol %74 - Boşluk %2 - Sağ %24 */
    grid-template-columns: 74% 24%; 
    gap: 2%; 
}

/* Manşet Alanı Genel Ayarı */
.main-slider-area {
    min-width: 0; /* Taşmayı önle */
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

/* Yan Panel Genel Ayarı */
.slider-sidebar-area {
    min-width: 0;
    width: 100%;
}

/* MOBİL AYARLARI */
@media (max-width: 992px) {
    /* Mobilde her zaman alt alta */
    .home-top-section.has-sidebar,
    .home-top-section.full-width {
        display: block; 
    }
    
    .main-slider-area { margin-bottom: 20px; }
}

/* =========================================
   MOBİL İÇİN FULL EKRAN MANŞET (Kenarları Sıfırla)
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. Manşet ve Yan Alanı Kapsayıcısı */
    .home-top-section {
        /* Container'ın verdiği 15px boşluğu negatif margin ile nötrle */
        margin-left: -15px; 
        margin-right: -15px;
        /* Genişliği taşan kısım kadar artır */
        width: calc(100% + 30px); 
        
        margin-top: 0; /* Üst boşluğu da alalım, menüye yapışsın */
        gap: 0; /* Grid boşluklarını sıfırla */
    }

    /* 2. Manşetin Köşelerini Sivrilt (Kutu gibi tam otursun) */
    .main-slider-area,
    .classic-slider,
    .classic-manset-wrapper,
    .cm-img {
        border-radius: 0 !important; /* Yuvarlak köşeleri iptal et */
        border: none !important; /* Kenar çizgilerini kaldır */
    }

    /* 3. Manşet Altındaki Numaralar */
    .classic-pagination-container {
        border-radius: 0 !important; /* Alt şerit de tam otursun */
        padding-left: 10px; /* Hafif iç boşluk verelim ki numaralar ekrana yapışmasın */
        padding-right: 10px;
    }
    
    /* 4. Eğer manşetin hemen altında Widget varsa ona da biraz pay bırak */
    .slider-sidebar-area {
        padding: 0 15px; /* Sidebar içeriği tekrar normal hizaya gelsin */
        margin-top: 20px;
    }
}

/* =========================================
   GENEL RADIUS AYARI (Tüm Kutular İçin)
   ========================================= */
/* Panelden gelen --global-radius değişkenini kullanıyoruz */
.classic-manset-wrapper,
.main-slider-area,
.slider-sidebar-area,
.widget,
.post-box, 
.entry-content img,
.author-box,
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea,
button.submit,
.btn {
    border-radius: var(--global-radius, 4px) !important;
}

/* ==================================================
   ACİL ÇÖZÜM: LOGO SOL - MENÜ SAĞ (ZORLA)
   ================================================== */
@media (max-width: 992px) {

    /* 1. FLEX KAPSAYICIYI DÜZENLE */
    .mobile-main-bar .mob-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Her şeyi sağa yasla önce */
        width: 100% !important;
    }

    /* 2. LOGO: Sol Başa Geç ve Diğerlerini İt */
    .mobile-main-bar .mob-logo {
        order: 1 !important; /* Sıra 1: En başta ol */
        margin-right: auto !important; /* Sağındaki her şeyi en uca itekle! */
        
        /* Ortalamayı öldüren kritik kodlar: */
        position: static !important; 
        transform: none !important;
        left: auto !important;
        top: auto !important;
        
        padding-left: 0 !important;
    }
    
    /* Logo resminin kenar boşluklarını sıfırla */
    .mobile-main-bar .mob-logo img {
        margin: 0 !important;
        display: block !important;
    }

    /* 3. ARAMA İKONU (Varsa): Sırada 2. olsun */
    .mobile-main-bar .mob-item-right {
        order: 2 !important; 
        margin-left: 15px !important; /* Soluna biraz boşluk */
        margin-right: 0 !important;
    }

    /* 4. MENÜ İKONU (Hamburger): En Sona Geçsin */
    /* Normalde .mob-item-left sınıfında ama biz onu sağa alıyoruz */
    .mobile-main-bar .mob-item-left {
        order: 3 !important; /* En son sırada */
        margin-left: 100px !important; /* Arama ile arasına boşluk */
    }
}