/* --- 1. TEMEL AYARLAR VE SIFIRLAMA (GÜÇLENDİRİLDİ) --- */
:root {
    --primary: #0b50a1;
    --primary-dark: #062e5f;
    --accent: #d35400;
    --bg-body: #f8fafc;
    --text-main: #1e293b;
    --text-light: #64748b;
    --card-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}

/* Kanka burası çok önemli: Tüm elementlerin padding hesaplamasını düzeltiyoruz */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Yatay kaymayı kesin olarak engeller */
    position: relative; /* Sabitleme için referans noktası */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Fontlar mobilde daha net görünsün */
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; } /* display: block resim altındaki boşlukları alır */

/* --- 2. NAVBAR --- */
.portal-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav-logo { height: 45px; width: auto; }
.nav-link-custom {
    color: var(--text-main); font-weight: 600; padding: 8px 15px !important; border-radius: 8px;
}
.nav-link-custom:hover { background: #f1f5f9; color: var(--primary); }
.btn-header-cta {
    background: var(--primary); color: #fff; padding: 10px 24px;
    border-radius: 50px; font-weight: 700; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-header-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* --- 3. HERO ALANLARI --- */
/* Ana Sayfa Hero */
.portal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 100px 0 140px;
    text-align: center; color: #fff;
    position: relative; z-index: 1; margin-bottom: -60px;
    width: 100%; /* Genişlik garantisi */
}
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }

/* Detay Sayfası Hero */
.detail-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 100px 0 140px;
    text-align: center; color: #fff;
    position: relative; z-index: 1; margin-bottom: -60px;
    width: 100%;
}
.detail-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; line-height: 1.3; }

/* Arama Kutusu */
.search-container { max-width: 600px; margin: 0 auto; background: rgba(255,255,255,0.15); padding: 8px; border-radius: 50px; }
.search-inner { background: #fff; border-radius: 50px; display: flex; height: 54px; }
.search-input { border: none; flex-grow: 1; padding: 0 25px; outline: none; border-radius: 50px 0 0 50px; }
.search-btn { background: var(--accent); color: #fff; border: none; padding: 0 30px; font-weight: 700; border-radius: 0 50px 50px 0; cursor: pointer; }

/* --- 4. İÇERİK KARTLARI --- */
/* Ana Sayfa Kategoriler */
.cat-card { background: #fff; padding: 20px; border-radius: 16px; text-align: center; box-shadow: var(--card-shadow); display: block; color: var(--text-main); border: 1px solid #f1f5f9; height: 100%; }
.cat-card:hover { transform: translateY(-5px); color: var(--primary); border-color: var(--primary); }
.cat-icon { width: 50px; height: 50px; background: #eef4ff; color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 10px; }

/* Yazı Kartları */
.article-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column; border: 1px solid #f1f5f9; height: 100%; transition: 0.3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }
.article-img-wrap { height: 220px; overflow: hidden; }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.article-card:hover .article-img { transform: scale(1.05); }
.article-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.article-tag { background: #eef4ff; color: var(--primary); font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 50px; display: inline-block; margin-bottom: 10px; }
.article-title { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.article-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f1f5f9; font-size: 13px; color: var(--text-light); display: flex; justify-content: space-between; }

/* --- 5. DETAY SAYFASI ÖZEL --- */
.content-wrapper {
    max-width: 850px; margin: 0 auto 40px;
    position: relative; z-index: 10;
    margin-top: -60px;
    padding: 0 15px; /* Mobilde kenarlara yapışmaması için */
}

/* Düzeltme: Burada <style> etiketi vardı, onu kaldırıp CSS'i doğru şekilde dışarı aldım */
.content-card {
    background: #fff; padding: 50px;
    border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* CTA (Aksiyon) Banner Tasarımı - Artık doğru yerde */
.premium-cta {
    background: linear-gradient(135deg, #0b50a1 0%, #052c58 100%);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden; /* Bu kanka, taşan ikonu gizleyip kaymayı önler */
    color: #fff;
    box-shadow: 0 20px 40px rgba(11, 80, 161, 0.25);
    margin-top: 60px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Arka Plan Dekoru */
.premium-cta::before {
    content: '\f561'; /* FontAwesome Blueprint İkonu */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px; /* Sağa taşan kısım burasıydı, overflow:hidden bunu halledecek */
    font-size: 250px;
    opacity: 0.05;
    color: #fff;
    transform: rotate(-15deg);
    z-index: 0;
}

.cta-content { position: relative; z-index: 1; }
.cta-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2rem; margin-bottom: 15px; line-height: 1.2; }
.cta-desc { font-size: 1.1rem; opacity: 0.9; font-weight: 300; max-width: 600px; margin-bottom: 30px; }

/* Buton Tasarımı */
.btn-cta-premium {
    background-color: #d35400;
    color: #fff !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.3);
}
.btn-cta-premium:hover { background-color: #fff; color: #d35400 !important; transform: translateY(-3px); }

.article-content { font-size: 18px; line-height: 1.8; color: #334155; }
.article-content h1, .article-content h2 { color: var(--primary); font-weight: 800; margin-top: 40px; margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; }
.author-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 25px; border-radius: 16px; margin-top: 50px; display: flex; align-items: center; gap: 20px; }
.author-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

/* --- 6. FOOTER --- */
.main-footer {
    background: #0f172a; color: #94a3b8; padding-top: 80px; margin-top: 100px;
    position: relative; z-index: 2;
    width: 100%;
}
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 20px; font-size: 16px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; margin-top: 50px; font-size: 14px; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-btn:hover { background: var(--primary); }

/* --- 7. MOBİL VE WIDGET --- */
.sticky-share { position: fixed; left: 30px; top: 30%; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.share-icon { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.share-icon:hover { transform: scale(1.1); }

.mobile-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; border-top: 1px solid #e2e8f0; padding: 10px 0; z-index: 2000;
    justify-content: space-around;
}
.mb-item { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: #64748b; flex: 1; }
.mb-cta { background: var(--accent); color: #fff !important; border-radius: 50px; padding: 0 15px; transform: translateY(-15px); border: 4px solid #fff; box-shadow: 0 10px 20px rgba(211,84,0,0.3); justify-content: center; height: 45px; font-size: 12px; font-weight: bold; }

.fixed-contact-widget { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.fc-btn { width: 60px; height: 60px; border-radius: 50%; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: 0.3s; }
.btn-whatsapp { background: #25d366; }
.btn-phone { background: var(--primary); animation: pulse 2s infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11,80,161,0.5); } 70% { box-shadow: 0 0 0 15px rgba(11,80,161,0); } 100% { box-shadow: 0 0 0 0 rgba(11,80,161,0); } }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .mobile-bottom-bar { display: flex; }
    .sticky-share { display: none; }
    .fixed-contact-widget { bottom: 90px; right: 20px; }
    .content-card { padding: 25px; }
    .detail-title { font-size: 1.8rem; }
    .footer-bottom { padding-bottom: 100px; } /* Mobil bar için boşluk */
    .portal-hero, .detail-hero { padding: 80px 0 100px; }

    /* CTA için mobil ayarlar */
    .premium-cta { padding: 30px 20px; text-align: center; }
    .cta-desc { margin-left: auto; margin-right: auto; }
    .premium-cta::before { font-size: 150px; }
}