/* ============================================================
   HANEDAN ULTIMATE SYSTEM UI - V4.0 (FIXED EDITION)
   ============================================================ */

:root {
    --h-burgundy: #8B1538;
    --h-burgundy-dark: #4A081C;
    --h-navy: #0A1220;
    --h-navy-light: #1A2332;
    --h-text: #64748b;
    --h-bg: #f8fafc;
    --h-white: #ffffff;
    --h-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 🚀 1. HERO SECTION (ANIMASYON GERİ GELDİ) */
.blog-hero-ultra {
    /* Hareketli Gradient Geri Döndü */
    background: linear-gradient(-45deg, var(--h-navy), var(--h-burgundy-dark), var(--h-navy-light), var(--h-burgundy));
    background-size: 400% 400%;
    animation: royalGradient 12s ease infinite;
    padding: 140px 0 100px;
    position: relative;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--h-burgundy);
    overflow: hidden;
}

@keyframes royalGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-box { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 20px; }

.blog-hero-ultra h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; margin-bottom: 25px; line-height: 1.2;
}

/* --- SEARCH BAR --- */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.search-input {
    flex: 1; background: transparent; border: none; padding: 12px 20px;
    color: white; font-size: 15px; outline: none;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.8); }

.search-btn {
    background: var(--h-burgundy); color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer;
    transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: white; color: var(--h-burgundy); transform: rotate(90deg); }

/* 📚 2. GRID & LAYOUT */
.blog-wrapper { padding: 60px 0; background: var(--h-bg); }

.magazine-grid {
    display: grid !important;
    /* Kartları biraz daha sıkılaştırdık: 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 25px !important;
}

/* 💎 3. PREMIUM CARD YAPISI (KOMPAKT & SABİT) */
.h-card {
    background: var(--h-white);
    border-radius: 20px; /* Daha kibar oval */
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--h-transition);
    height: 100%;
    position: relative;
}

.h-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 21, 56, 0.12);
}

/* GÖRSEL ALANI: Resim ne kadar büyük olursa olsun buraya sığacak */
.h-card-img {
    width: 100%;
    height: 200px; /* Yüksekliği sabitledik, asla uzamaz */
    position: relative;
    overflow: hidden;
}

.h-card-img img {
    width: 100%; height: 100%;
    object-fit: cover !important; /* Resmi kutuya tam oturtur */
    object-position: center;
    transition: transform 0.8s ease;
}
.h-card:hover .h-card-img img { transform: scale(1.1); }

/* Etiketler */
.h-badge {
    position: absolute; top: 12px;
    padding: 5px 12px; border-radius: 6px;
    font-size: 9px; font-weight: 800; text-transform: uppercase;
    color: white; z-index: 5; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.badge-cat { right: 12px; background: var(--h-burgundy); }
.badge-date { left: 12px; background: rgba(10, 18, 32, 0.85); backdrop-filter: blur(4px); }

/* İçerik */
.h-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }

.h-meta-row {
    display: flex; align-items: center; gap: 12px;
    font-size: 11px; color: #94a3b8; font-weight: 700; margin-bottom: 10px;
}
.h-meta-row i { color: var(--h-burgundy); }

.h-card-body h2 {
    font-size: 1.2rem; /* Başlık boyutunu küçülttük */
    font-weight: 800; color: var(--h-navy);
    margin-bottom: 10px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2rem;
}

.h-card-body p {
    font-size: 13.5px; color: var(--h-text); line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.h-card-footer {
    margin-top: auto; padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.read-more {
    color: var(--h-burgundy); font-weight: 800; font-size: 12px;
    text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.read-more:hover { gap: 8px; transition: 0.3s; }

/* 🏛 4. SIDEBAR & WIDGETS */
.s-widget {
    background: white; padding: 25px; border-radius: 20px;
    margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
}

.s-title {
    font-size: 1.1rem; font-weight: 800; color: var(--h-navy);
    margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between;
}

/* Liste Düzeltme */
.cat-list, .archive-list { list-style: none; padding: 0; margin: 0; }
.cat-list li, .archive-list li { margin-bottom: 8px; }

.cat-list a, .archive-list a {
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; color: var(--h-text); font-weight: 600; font-size: 13px;
    padding: 10px 15px; border-radius: 10px; transition: 0.3s; background: #f8fafc;
}

.cat-list a:hover, .archive-list a:hover, .cat-list a.active, .archive-list a.active {
    background: var(--h-burgundy); color: white; transform: translateX(3px);
}
.count-pill {
    background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 20px; font-size: 10px;
}
.cat-list a:hover .count-pill { background: rgba(255,255,255,0.2); color: white; }

/* 📱 MOBILE */
@media (max-width: 1024px) {
    .container-grid { grid-template-columns: 1fr !important; }
    .hero-box { padding: 0 20px; }
}







/* --- BLOG GENEL SSS TASARIMI --- */
.blog-faq-wrapper {
    margin-top: 60px;
    padding: 50px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Başlık Alanı */
.faq-header-minimal { text-align: center; margin-bottom: 40px; }
.faq-sub-tag {
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
    color: #8B1538; background: rgba(139, 21, 56, 0.1);
    padding: 6px 15px; border-radius: 30px; display: inline-block; margin-bottom: 15px;
}
.faq-header-minimal h3 {
    font-size: 28px; font-weight: 800; color: #0A1220; margin: 0 0 10px 0;
}
.faq-header-minimal p { font-size: 15px; color: #64748b; max-width: 600px; margin: 0 auto; }

/* Akordeon Listesi */
.faq-accordion-list { max-width: 800px; margin: 0 auto; }

.faq-accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-accordion-item.active {
    box-shadow: 0 10px 25px rgba(139, 21, 56, 0.08);
    border-color: rgba(139, 21, 56, 0.2);
}

/* Buton */
.faq-acc-btn {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}
.faq-q-text {
    font-size: 16px; font-weight: 700; color: #0A1220;
    padding-right: 20px; line-height: 1.4;
}
.faq-accordion-item.active .faq-q-text { color: #8B1538; }

/* İkon */
.faq-icon-wrap {
    width: 32px; height: 32px;
    background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #0A1220; font-size: 14px;
    transition: all 0.3s ease; flex-shrink: 0;
}
.faq-accordion-item.active .faq-icon-wrap {
    background: #8B1538; color: white; transform: rotate(45deg);
}

/* Cevap İçeriği */
.faq-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}
.faq-body-text {
    padding: 0 25px 25px 25px;
    font-size: 15px; color: #475569; line-height: 1.7;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .blog-faq-wrapper { padding: 30px 20px; }
    .faq-header-minimal h3 { font-size: 22px; }
}
/* --- PREMIUM ÇİZGİLİ BAŞLIK STİLİ --- */
.premium-label-box {
    display: flex;
    align-items: center;
    justify-content: center; /* Tam ortalar */
    gap: 15px; /* Yazı ile çizgiler arasındaki boşluk */
    margin-bottom: 15px;
    width: 100%;
    position: relative;
}

/* Ortadaki Yazı Stili */
.premium-label-box span {
    color: #8B1538; /* Senin Bordo Rengin */
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap; /* Asla alt satıra geçmez */
    position: relative;
    top: 1px; /* Göz hizası düzeltmesi */
}

/* Sol ve Sağ Çizgiler (Otomatik Oluşur) */
.premium-label-box::before,
.premium-label-box::after {
    content: "";
    display: block;
    height: 1px; /* Çizgi kalınlığı (İnce ve zarif) */
    width: 40px; /* Çizgi uzunluğu */
    background-color: #8B1538;
    opacity: 0.4; /* Hafif transparan (Premium hava katar) */
    transition: all 0.4s ease; /* Yumuşak geçiş efekti */
}

/* Hover Efekti: Mouse üzerine gelince çizgiler uzar ve netleşir */
.premium-label-box:hover::before,
.premium-label-box:hover::after {
    width: 60px; /* Uzama miktarı */
    opacity: 1; /* Tam görünürlük */
}