/* =========================================
   DEUS FRAMEWORK - MAIN STYLES (FINAL)
   ========================================= */

/* --- 1. RESET & GLOBAL --- */
:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-weight: 700; line-height: 1.3; }

.deus-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 2. HEADER --- */
.deus-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 70px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.header-logo { display: flex; align-items: center; max-width: 200px; }
.header-logo a { display: block; line-height: 0; font-size: 24px; font-weight: 900; color: var(--dark); letter-spacing: -1px; }
.header-logo span { color: var(--primary); }
.header-logo img {
    max-height: 50px !important; width: auto !important;
    max-width: 100% !important; object-fit: contain;
}

.header-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.header-nav a { font-weight: 600; font-size: 15px; color: var(--gray); }
.header-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 15px; }

.icon-btn {
    background: transparent; border: none; font-size: 18px; color: var(--gray);
    cursor: pointer; padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.icon-btn:hover { background: #f1f5f9; color: var(--primary); }

/* Bildirim & User */
.deus-notifications { position: relative; }
.notif-badge {
    position: absolute; top: 0; right: 0;
    background: #ef4444; color: #fff; font-size: 10px;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

.notif-menu {
    position: absolute; top: 120%; right: -10px; width: 320px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.2s ease; z-index: 200;
}
.notif-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-header { padding: 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; }
.notif-list { max-height: 300px; overflow-y: auto; padding: 0; margin: 0; list-style: none; }
.loading-spinner { padding: 20px; text-align: center; color: var(--gray); }

.user-trigger img { border: 2px solid #e2e8f0; transition: border-color 0.2s; }
.user-trigger:hover img { border-color: var(--primary); }

/* --- 3. ARAMA POPUP --- */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-wrap { width: 100%; max-width: 800px; padding: 20px; text-align: center; }
.search-field {
    width: 100%; background: transparent; border: none;
    border-bottom: 2px solid #64748b; font-size: 2rem; color: #fff;
    padding: 15px 0; outline: none;
}
.close-search { position: absolute; top: 40px; right: 40px; background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* --- 4. LAYOUT & SIDEBAR --- */
.main-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin: 40px 0 60px; }
.main-wrapper-single { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin: 40px 0 60px; align-items: start; }

.section-title {
    font-size: 1.2rem; border-bottom: 2px solid var(--border);
    margin-bottom: 25px; padding-bottom: 10px; position: relative;
}
.section-title span {
    border-bottom: 2px solid var(--primary); padding-bottom: 10px;
    margin-bottom: -2px; display: inline-block;
}

.site-sidebar .widget, .deus-widget {
    background: var(--white); padding: 25px; border-radius: var(--radius);
    border: 1px solid var(--border); margin-bottom: 30px;
}
.widget-title {
    font-size: 1.1rem; border-left: 4px solid var(--primary);
    padding-left: 15px; margin-bottom: 25px; color: var(--dark);
    text-transform: uppercase; font-weight: 700;
}

/* --- 5. POST KARTLARI (LİSTE) --- */
.post-list-layout { display: grid; gap: 30px; }
.deus-post-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; display: flex;
    transition: transform 0.2s;
}
.deus-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.post-thumb { width: 280px; flex-shrink: 0; position: relative; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.deus-post-card:hover .post-thumb img { transform: scale(1.05); }

.cat-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--primary); color: #fff; padding: 4px 10px;
    font-size: 11px; font-weight: 700; border-radius: 4px; text-transform: uppercase; z-index: 2;
}

.post-details { padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.post-title { font-size: 1.4rem; margin-bottom: 12px; }
.post-title a { color: var(--dark); }
.post-excerpt { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta-bottom { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid #f1f5f9; padding-top: 15px; }

/* --- 6. SINGLE POST --- */
.post-header-left { text-align: left; margin-bottom: 25px; }
.post-header-left .entry-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin: 15px 0; color: var(--dark); }
.post-header-left .entry-meta { display: flex; gap: 20px; font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; }
.author-meta img { border-radius: 50%; }

.post-interactions-bar { display: flex; gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.interact-btn {
    background: #fff; border: 1px solid var(--border); padding: 8px 16px;
    border-radius: 20px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
    color: var(--gray); display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.interact-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.interact-btn.like-btn.active { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
.interact-btn.bookmark-btn.active { color: var(--primary); border-color: #bfdbfe; background: #eff6ff; }

.post-featured-image { margin-bottom: 30px; border-radius: 12px; overflow: hidden; }
.entry-content { font-size: 1.125rem; line-height: 1.8; color: #334155; }
.entry-content p { margin-bottom: 25px; }
.sticky-sidebar-content { position: sticky; top: 90px; }

/* --- 7. YAZAR KARTI --- */
.author-card-widget { padding: 0 !important; overflow: hidden; text-align: center; border: none; }
.ac-header-bg { height: 80px; width: 100%; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); }
.ac-content { padding: 0 20px 25px; margin-top: -40px; }
.ac-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; background: #fff; }
.ac-name { margin: 10px 0 5px; font-size: 1.1rem; color: var(--dark); }
.ac-name a { color: var(--dark); }
.ac-badge { background: #e0f2fe; color: var(--primary); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; }
.ac-btn { display: inline-block; padding: 8px 20px; background: var(--dark); color: #fff; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.ac-btn:hover { background: var(--primary); }

/* --- 8. YORUMLAR --- */
.comments-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.comment-form textarea, .comment-form input {
    width: 100%; padding: 15px; border: 1px solid #cbd5e1;
    border-radius: 8px; background: #f8fafc;
}
.form-submit .deus-btn {
    width: 100%; padding: 15px; background: var(--primary);
    color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 700;
}

/* --- 9. FOOTER & BACK TO TOP --- */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 40px 0; margin-top: auto; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--gray); }

#back-to-top {
    position: fixed; bottom: 40px; right: 40px;
    width: 50px; height: 50px; background: var(--dark); color: #fff;
    border-radius: 50%; display: none; align-items: center; justify-content: center;
    font-size: 24px; z-index: 999;
}

/* =========================================
   HOMEPAGE MODULES (ANASAYFA)
   ========================================= */

/* --- 1. SLIDER (FIXED) --- */
.deus-hero-slider-wrap {
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden; /* Taşmayı önler */
}
.deus-slider-track {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol 2, Sağ 1 */
    grid-template-rows: 200px 200px;
    gap: 20px;
}
.slide-item:first-child {
    grid-row: 1 / 3; /* İlk resim sol tarafı kaplar */
    grid-column: 1 / 2;
    height: 100% !important;
}
.slide-item { position: relative; border-radius: 12px; overflow: hidden; height: 100%; min-height: 200px; }
.slide-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s; }
.slide-item:hover .slide-img { transform: scale(1.05); }
.slide-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff;
}
.slide-overlay h2 { font-size: 1.5rem; margin: 10px 0; line-height: 1.3; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* --- 2. GRID 3 --- */
.deus-module-grid-3 { margin-bottom: 50px; }
.grid-3-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.grid-card .grid-thumb { height: 200px; display: block; overflow: hidden; }
.grid-card .grid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.grid-card:hover .grid-thumb img { transform: scale(1.1); }
.grid-card .grid-details { padding: 20px; }
.grid-cat { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.grid-card h4 { margin: 8px 0 0; font-size: 1.1rem; line-height: 1.4; }
.grid-card h4 a { color: var(--dark); }

/* --- 3. GRID 2 --- */
.deus-module-grid-2 { margin-bottom: 50px; }
.grid-2-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-card-large { position: relative; height: 350px; border-radius: 12px; overflow: hidden; }
.grid-card-large .grid-thumb { display: block; width: 100%; height: 100%; }
.grid-card-large img { width: 100%; height: 100%; object-fit: cover; }
.large-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px;
    background: linear-gradient(to top, #000, transparent); color: #fff;
}
.large-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; color: #fff; }

/* --- 4. HOME TABS (YENİ ORTA ALAN) --- */
.deus-home-tabs-module {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px; margin-bottom: 40px;
}
.home-tab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ht-card {
    display: flex; gap: 15px; align-items: center; border: 1px solid #f1f5f9;
    padding: 10px; border-radius: 8px; transition: all 0.2s;
}
.ht-card:hover { border-color: var(--primary); background: #f8fafc; }
.ht-img { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.ht-img img { width: 100%; height: 100%; object-fit: cover; }
.ht-info h4 { margin: 0 0 5px; font-size: 0.95rem; line-height: 1.3; color: var(--dark); }
.ht-info .meta { font-size: 0.75rem; color: #94a3b8; }

.ht-comment-item { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.ht-comment-item img { width: 40px; height: 40px; border-radius: 50%; }
.ht-c-body strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.ht-c-body p { font-size: 0.85rem; color: var(--gray); margin: 0 0 5px; }
.ht-c-body a { font-size: 0.75rem; color: var(--primary); font-weight: 700; }

/* =========================================
   WIDGETS (SIDEBAR)
   ========================================= */

/* --- TABS WIDGET --- */
.deus-tabs-container { overflow: hidden; }
.deus-tabs-nav {
    display: flex; border-bottom: 2px solid var(--border);
    margin-bottom: 20px !important; padding: 0 !important;
}
.deus-tabs-nav li {
    flex: 1; text-align: center; padding: 10px 5px;
    cursor: pointer; font-weight: 700; font-size: 13px;
    color: var(--gray); background: #f8fafc;
    transition: all 0.2s; border-top: 2px solid transparent;
}
.deus-tabs-nav li:hover { background: #fff; }
.deus-tabs-nav li.active {
    background: #fff; color: var(--dark);
    border-top-color: var(--primary); border-bottom: 2px solid #fff; margin-bottom: -2px;
}
.deus-tab-content { display: none; animation: fadeIn 0.3s; }
.deus-tab-content.active { display: block; }
.tab-list { list-style: none; padding: 0; margin: 0; }
.tab-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.tab-thumb { width: 70px; height: 55px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.tab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tab-info a { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--dark); display: block; margin-bottom: 4px; }
.tab-info a:hover { color: var(--primary); }
.tab-info .date { font-size: 11px; color: #94a3b8; }
.tab-item-comment { display: flex; gap: 12px; margin-bottom: 15px; }
.tab-item-comment img { width: 40px; height: 40px; border-radius: 50%; }
.tab-meta .author { display: block; font-weight: 700; font-size: 12px; margin-bottom: 3px; }
.tab-meta a { font-size: 13px; color: var(--gray); font-style: italic; }

/* --- FORUM WIDGET --- */
.forum-list { list-style: none; padding: 0; margin: 0; }
.forum-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.forum-item:last-child { border: none; }
.forum-item i { color: var(--primary); margin-top: 4px; }
.f-info a { font-weight: 600; font-size: 14px; color: var(--dark); line-height: 1.3; display: block; }
.f-info a:hover { color: var(--primary); }
.f-meta { font-size: 11px; color: #94a3b8; display: block; margin-top: 3px; }

/* =========================================
   DARK MODE INTEGRASYON
   ========================================= */
body.deus-dark {
    --white: #1e293b; --light: #0f172a; --dark: #f8fafc;
    --gray: #94a3b8; --border: #334155; --primary: #60a5fa;
}
body.deus-dark { background: var(--light); color: var(--gray); }

/* Temel Alanlar */
body.deus-dark .deus-header, 
body.deus-dark .site-footer, 
body.deus-dark .deus-post-card, 
body.deus-dark .widget, 
body.deus-dark .deus-widget, 
body.deus-dark .deus-home-tabs-module,
body.deus-dark .grid-card,
body.deus-dark .notif-menu,
body.deus-dark .interact-btn,
body.deus-dark input, 
body.deus-dark textarea {
    background: var(--white); border-color: var(--border); color: var(--gray);
}

/* Başlıklar & Linkler */
body.deus-dark h1, body.deus-dark h2, body.deus-dark h3, 
body.deus-dark .entry-title, body.deus-dark .post-title a,
body.deus-dark .ac-name, body.deus-dark .ac-name a,
body.deus-dark .tab-info a, body.deus-dark .f-info a,
body.deus-dark .ht-info h4, body.deus-dark .grid-card h4 a { 
    color: var(--dark); 
}
body.deus-dark .header-logo a { color: #fff; }

/* Özel Bileşen Renkleri (Tabs, Home Tabs) */
body.deus-dark .deus-tabs-nav li { background: #0f172a; border-bottom-color: var(--border); }
body.deus-dark .deus-tabs-nav li.active { background: var(--white); border-bottom-color: var(--white); color: #fff; }
body.deus-dark .ht-card { border-color: var(--border); }
body.deus-dark .ht-card:hover { background: #334155; }
body.deus-dark .ht-comment-item, body.deus-dark .forum-item { border-color: var(--border); }

/* Mobil Uyum */
@media (max-width: 900px) {
    .main-wrapper, .main-wrapper-single { grid-template-columns: 1fr; }
    .deus-post-card { flex-direction: column; }
    .post-thumb { width: 100%; height: 200px; }
    .header-logo img { max-height: 40px !important; }
}
@media (max-width: 768px) {
    .deus-slider-track, .grid-3-layout, .grid-2-layout, .home-tab-grid { grid-template-columns: 1fr; }
    .slide-item { height: 250px; }
    .deus-slider-track .slide-item:first-child { grid-row: auto; height: 250px !important; }
}

/* --- MOBİL UYUM (RESPONSIVE FIX) --- */
@media (max-width: 768px) {
    /* Genel Container */
    .deus-container { padding: 0 15px; width: 100%; overflow-x: hidden; }

    /* Header */
    .header-inner { flex-direction: column; height: auto; padding: 10px 0; }
    .header-nav ul { flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0; }
    
    /* Gridler Tek Sütun */
    .grid-3-layout, .grid-2-layout, .home-tab-grid, .post-list-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Sidebar Gizle veya Alta At */
    .main-wrapper, .main-wrapper-single {
        grid-template-columns: 1fr !important;
        display: block; /* Grid yerine block */
    }
    .site-sidebar { margin-top: 40px; }

    /* Slider Yüksekliği */
    .deus-slider-track { grid-template-columns: 1fr; }
    .slide-item { height: 220px !important; }
    .slide-item:first-child { height: 220px !important; }
    
    /* Yazı Boyutları */
    h1 { font-size: 1.8rem; }
    .entry-title { font-size: 1.6rem !important; }
}

/* --- LAYOUT STABILITY FIX --- */

/* 1. Ana Yapı (Masaüstü) */
@media (min-width: 992px) {
    .main-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 340px !important; /* Sol esnek, Sağ 340px sabit */
        gap: 40px !important;
        align-items: start;
    }
    
    .site-main {
        min-width: 0; /* Grid taşmasını önler */
    }
    
    .site-sidebar {
        width: 100%;
        position: sticky;
        top: 90px;
    }
}

/* 2. Tabs Düzeltmesi (Nokta Görünümü Fix) */
.deus-tabs-nav {
    list-style: none !important; /* Noktaları kaldır */
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex;
    border-bottom: 2px solid var(--border);
}

.deus-tabs-nav li {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    border-top: 3px solid transparent;
}

.deus-tabs-nav li.active {
    background: #fff;
    border-top-color: var(--primary);
    color: var(--dark);
}

/* 3. Slider Reset */
.deus-hero-slider-wrap {
    width: 100vw; /* Tam ekran genişlik */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 50px;
    background: #000; /* Yüklenirken siyah zemin */
}
.deus-hero-slider-wrap .deus-container {
    max-width: 1240px; /* İçerik genişliği */
    margin: 0 auto;
    padding: 20px;
}

/* Mobil */
@media (max-width: 991px) {
    .main-wrapper { display: block !important; }
    .site-sidebar { margin-top: 50px; }
    .deus-hero-slider-wrap { width: 100%; left: 0; margin-left: 0; }
}

/* --- LAYOUT STABILITY FIX --- */

/* 1. Ana Yapı (Masaüstü) */
@media (min-width: 992px) {
    .main-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 340px !important; /* Sol esnek, Sağ 340px sabit */
        gap: 40px !important;
        align-items: start;
    }
    
    .site-main {
        min-width: 0; /* Grid taşmasını önler */
    }
    
    .site-sidebar {
        width: 100%;
        position: sticky;
        top: 90px;
    }
}

/* 2. Tabs Düzeltmesi (Nokta Görünümü Fix) */
.deus-tabs-nav {
    list-style: none !important; /* Noktaları kaldır */
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex;
    border-bottom: 2px solid var(--border);
}

.deus-tabs-nav li {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    border-top: 3px solid transparent;
}

.deus-tabs-nav li.active {
    background: #fff;
    border-top-color: var(--primary);
    color: var(--dark);
}

/* 3. Slider Reset */
.deus-hero-slider-wrap {
    width: 100vw; /* Tam ekran genişlik */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 50px;
    background: #000; /* Yüklenirken siyah zemin */
}
.deus-hero-slider-wrap .deus-container {
    max-width: 1240px; /* İçerik genişliği */
    margin: 0 auto;
    padding: 20px;
}

/* Mobil */
@media (max-width: 991px) {
    .main-wrapper { display: block !important; }
    .site-sidebar { margin-top: 50px; }
    .deus-hero-slider-wrap { width: 100%; left: 0; margin-left: 0; }
}

/* --- ACİL DÜZEN DÜZELTMESİ --- */

/* Masaüstünde (992px ve üzeri) */
@media (min-width: 992px) {
    
    /* Grid Yapısını Zorla */
    .main-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 320px !important; /* Sol Geniş, Sağ 320px */
        gap: 40px !important;
        align-items: start !important;
    }

    /* Sol Kolon Genişliği */
    .site-main {
        min-width: 0; /* İçerik taşmasını engeller */
        width: 100%;
    }

    /* Sağ Sidebar Genişliği */
    .site-sidebar {
        width: 100% !important;
        display: block !important;
    }
}

/* Slider Düzenlemesi */
.deus-hero-slider-wrap {
    width: 100%;
    margin-bottom: 30px;
}
.deus-slider-track {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- LAYOUT FIX (KAYMA ÖNLEYİCİ) --- */

/* Masaüstü Görünüm */
@media (min-width: 992px) {
    .main-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 340px !important; /* Sol Geniş, Sağ 340px */
        gap: 40px !important;
        align-items: start !important;
    }

    .site-main {
        min-width: 0; /* İçerik taşmasını engeller */
        width: 100%;
    }

    .site-sidebar {
        width: 100% !important;
        display: block !important;
    }
}

/* Slider Düzenlemesi */
.deus-hero-slider-wrap {
    width: 100%;
    margin-bottom: 40px;
}

/* Kart Düzenlemesi */
.deus-post-card {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.deus-post-card .post-thumb {
    width: 260px;
    flex-shrink: 0;
}
.deus-post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobil Görünüm */
@media (max-width: 991px) {
    .main-wrapper { display: block !important; }
    .site-sidebar { margin-top: 40px; }
    .deus-post-card { flex-direction: column; }
    .deus-post-card .post-thumb { width: 100%; height: 200px; }
}

/* --- LAYOUT FIX (MİMARİ DÜZELTME) --- */

/* 1. Masaüstü Grid Yapısı */
@media (min-width: 992px) {
    .main-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 320px !important; /* Sol: Esnek, Sağ: 320px Sabit */
        gap: 40px !important;
        align-items: start !important; /* Yukarı hizala */
    }

    .site-main {
        min-width: 0; /* İçerik taşmasını engeller */
        width: 100%;
    }

    .site-sidebar {
        width: 100% !important;
        display: block !important;
        margin-top: 0 !important;
    }
}

/* 2. Slider Tam Genişlik */
.deus-hero-slider-wrap {
    width: 100%;
    margin-bottom: 40px;
}

/* 3. Kart Düzeni */
.deus-post-card {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.deus-post-card .post-thumb {
    width: 240px;
    flex-shrink: 0;
    height: 180px;
}
.deus-post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobil */
@media (max-width: 991px) {
    .main-wrapper { display: block !important; }
    .site-sidebar { margin-top: 40px; }
    .deus-post-card { flex-direction: column; }
    .deus-post-card .post-thumb { width: 100%; height: 200px; }
}