/* css/sub/pages/blog.css - FINAL V5.4 (STRICT ALIGNMENT FIX ONLY) */

/* =======================================================================
   1. BASE STYLES (Standart Masaüstü & Mobil)
   ======================================================================= */

.blog-layout-container {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

/* --- TABS --- */
.blog-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 3rem;
    border-bottom: none; 
    padding-bottom: 1.5rem;
}

.blog-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #C6CFDA; 
    padding: 0 20px;
    color: #00325B;
    background-color: transparent;
    font-family: 'Inter', sans-serif !important; 
    font-size: 14px;
    font-weight: 600 !important; 
    text-transform: uppercase;
    letter-spacing: -0.49px;
    white-space: nowrap;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-tab-btn.active {
    font-weight: 700 !important;
    color: #ffffff;
    background-color: #00325B;
    border-color: #00325B;
}

/* --- GRID SYSTEM --- */
.blog-grid-system {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 4rem;
    position: relative;
    min-height: 400px;
}

/* --- KART TASARIMI --- */
.blog-card { 
    display: flex; 
    flex-direction: column; 
    background-color: transparent; 
    height: 100%; /* Kart Grid hücresini tam doldurur */
    position: relative;
    border: none;
}

.blog-image { 
    width: 100%; 
    height: 200px; 
    position: relative; 
    overflow: hidden; 
    margin-bottom: 0; 
    border-radius: 0;
    flex-shrink: 0; /* Görsel asla büzüşmez */
}

.blog-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-meta-area { 
    height: 35px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 0; 
    margin-bottom: 15px; 
    width: 100%; 
    background-color: rgba(0,50,91, 0.05); 
    flex-shrink: 0; /* Meta alan asla büzüşmez */
}

.blog-category { 
    background-color: #00325B; 
    color: #ffffff; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    padding: 0 15px; 
    height: 100%; 
    display: flex; align-items: center; 
}

.blog-date { 
    font-size: 0.85rem; 
    color: #666; 
    font-weight: 500; 
    display: flex; align-items: center; gap: 6px; 
    padding-right: 10px; 
    height: 100%; 
}
/* İKON BOYUT GARANTİSİ */
.blog-date svg { width: 14px; height: 14px; opacity: 0.7; }

/* [REVİZE] Flex Grow eklendi: İçerik alanı boşluğu doldurur */
.blog-content { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    padding-top: 20px; 
}

/* [REVİZE] Clamp eklendi: Başlık taşmasın */
.blog-content h3 { 
    font-size: 1.35rem; 
    font-weight: 700; 
    color: #00325B; 
    margin: 0 0 15px 0; 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content p { 
    font-size: 1rem; 
    color: #444; 
    line-height: 1.6; 
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* [KRİTİK REVİZE] Margin-top Auto: Butonu en dibe iter, hizayı eşitler */
.blog-btn-wrapper {
    margin-top: auto; 
    padding-top: 30px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.blog-read-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #00325B; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    padding-bottom: 15px;
}
/* OK İKONU HAREKETİ */
.blog-read-link:hover { 
    color: #0071CE; 
    transform: translateX(5px); 
}

.blog-card-separator {
    width: 100%;
    height: 2px;
    background-color: #00325B;
    opacity: 1; 
    display: block;
}

/* --- LOADER --- */
.blog-loader-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease;
}
.blog-loader-overlay.active { opacity: 1; visibility: visible; }

.loader-bg {
    width: 80px; 
    height: 80px; 
    background: #fff;
    border-radius: 50%; 
    box-shadow: none;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.loader-icon {
    width: 75px; 
    height: 75px; 
    display: block; 
    object-fit: contain; 
    transform: scale(1.1);
}

/* --- PAGINATION --- */
.blog-pagination {
    display: flex; 
    justify-content: center; 
    gap: 10px;
    margin-bottom: 6rem; 
    align-items: flex-end; 
}

.pg-item {
    min-width: 60px;
    width: auto;
    padding: 0 15px;
    box-sizing: border-box;
    height: 60px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    background-color: #F0F2F5; 
    color: #00325B;
    font-size: 22px; 
    font-weight: 600;
    text-decoration: none; 
    transition: all 0.3s ease;
}

.pg-item:hover { background-color: #e0e6ed; }

.pg-item.active {
    background-color: transparent; 
    color: #00325B; 
    border-bottom: 4px solid #00325B; 
    height: 56px; 
}

.pg-arrow { background-color: #F0F2F5; }
.pg-arrow svg { width: 24px; height: 14px; stroke: #00325B; stroke-width: 2px; }

/* --- SOCIAL MEDIA --- */
.social-media-section { margin-bottom: 0; }

.sm-header {
    margin-bottom: 2rem; 
    padding-top: 1rem;
    border-top: 4px solid #00325B; 
    display: inline-block; 
    width: 100%;
}

.sm-title { 
    font-size: 30px; 
    font-weight: 700; 
    line-height: 39px; 
    color: #00325B; 
    margin: 0; 
}

.sm-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.sm-col { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}

.sm-box {
    width: 350px; 
    height: 200px;
    background: #00325B; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    text-decoration: none; 
    color: #fff; 
    transition: background 0.3s ease;
    margin-bottom: 55px; 
}
.sm-box:hover { background: #00284a; }

/* INSTAGRAM IKON DÜZELTME KODU (BLOG DETAY İLE EŞİTLENDİ) */
.sm-icon {
    width: 40px !important;
    height: 40px !important;
    fill: #ffffff !important;
    stroke: none !important;
    display: block;
}

.sm-icon path {
    fill: #ffffff !important;
    stroke: none !important;
}

.sm-link-text { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 700; 
    font-size: 1rem; 
    color: #00325B; 
    text-decoration: none; 
    transition: gap 0.3s ease; 
}
.sm-link-text:hover { gap: 15px; color: #0071CE; }

/* --- ALT BANNER --- */
.blog-cta-banner { 
    height: 600px; 
    background-color: #c7eafb; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    text-align: left; 
    margin-top: 100px; 
}

.blog-cta-content { 
    width: 100%; 
    max-width: var(--site-container-width); 
    margin: 0 auto; 
    padding: 0 10px; 
}

.cta-mail-link { 
    display: block; 
    text-decoration: none; 
    transition: opacity 0.3s ease; 
}
.cta-mail-link:hover { opacity: 0.8; }

.cta-mail-link h2 { 
    font-size: 60px; 
    font-weight: 700; 
    line-height: 72px; 
    color: #00325B; 
    margin: 0; 
}

/* --- RESPONSIVE BASE (600px Altı) --- */
@media (max-width: 600px) { 
    .blog-grid-system { grid-template-columns: 1fr; } 
    .sm-grid { grid-template-columns: 1fr; } 
    .cta-mail-link h2 { font-size: 36px; line-height: 1.2; } 
    .blog-tab-btn { font-size: 12px; padding: 0 15px; } 
    .blog-tabs-wrapper { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; } 
    .pg-item { min-width: 45px; width: auto; height: 45px; font-size: 1rem; padding: 0 10px; }
    .sm-box { width: 100%; }
} 


/* =======================================================================
   STANDART MASAÜSTÜ DÜZELTMESİ (1920px ve Altı - YENİ EKLENDİ)
   Amaç: 1920px ekranlarda Hero yüksekliğini diğer sayfalarla (400px) eşitlemek.
   ======================================================================= */
@media (min-width: 1201px) and (max-width: 1999px) {
    .editorial-hero { 
        height: 400px !important; 
        min-height: 400px !important; 
        max-height: 400px !important;
        
        display: flex !important;
        align-items: flex-end !important;
        padding-bottom: 3rem !important;
    }
}

/* =======================================================================
   2. FLUID SCALE / FULL SCREEN (2K ve 4K EKRANLAR - 2000px+)
   Revizyon: 1920px ekranlar için düzeltme (Eşik 2000px yapıldı).
   ======================================================================= */
@media (min-width: 2000px) {

    /* --- LAYOUT --- */
    .editorial-hero { 
        height: 550px !important; 
        min-height: 550px !important; 
        max-height: 550px !important;
    }
    
    .ed-hero-content h1 { 
        font-size: 3.75rem !important; 
        margin-bottom: 20px !important; 
    }
    
    .ed-subtitle { 
        font-size: 1.5rem !important; 
    }

    /* --- TAB BUTONLARI --- */
    .blog-tab-btn {
        height: 80px !important; 
        font-size: 18px !important;
        padding: 0 45px !important;
        border-width: 5px !important;
    }

    /* --- BLOG GRID --- */
    .blog-grid-system { gap: 60px !important; }

    /* --- KART YAPISI --- */
    .blog-card { 
        display: flex !important; 
        flex-direction: column !important; 
        height: 100% !important; 
    }
    
    .blog-image { height: 200px !important; }
    
    .blog-meta-area { height: 50px !important; margin-bottom: 25px !important; }
    
    .blog-category { 
        font-size: 15px !important; 
        font-weight: 700 !important;
        line-height: 23px !important; 
        padding: 0 25px !important; 
    }
    
    .blog-date { font-size: 1rem !important; }
    .blog-date svg { width: 18px !important; height: 18px !important; }

    .blog-content {
        padding-top: 25px !important;
        flex-grow: 1 !important; 
        display: flex !important;
        flex-direction: column !important;
    }

    /* Başlık */
    .blog-content h3 {
        font-size: 30px !important; 
        font-weight: 700 !important;
        line-height: 45px !important; 
        margin-bottom: 25px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 3.9em !important; 
    }

    /* Açıklama Metni */
    .blog-content p {
        font-size: 24px !important; 
        font-weight: 400 !important;
        line-height: 36px !important; 
        margin-bottom: 0 !important;
        -webkit-line-clamp: 5 !important; 
    }

    /* [KRİTİK REVİZE] Buton Hizalama - 2000px */
    .blog-btn-wrapper {
        margin-top: auto !important; 
        padding-top: 60px !important;
        width: 100% !important;
    }
    
    .blog-read-link { 
        font-size: 24px !important; 
        font-weight: 700 !important;
        line-height: 36px !important; 
        padding-bottom: 20px !important; 
    }
    
    .blog-card-separator { height: 3px !important; }

    /* --- PAGINATION --- */
    .blog-pagination { gap: 25px !important; margin-bottom: 10rem !important; margin-top: 4rem !important; }
    
    .pg-item { 
        min-width: 90px !important; 
        width: auto !important; 
        padding: 0 20px !important;
        height: 90px !important; 
        font-size: 32px !important; 
    }
    
    .pg-item.active { height: 85px !important; border-bottom-width: 5px !important; }
    .pg-arrow svg { width: 34px !important; height: 20px !important; stroke-width: 3px !important; }

    /* --- SOSYAL MEDYA --- */
    .sm-header { border-top-width: 5px !important; margin-bottom: 4rem !important; padding-top: 2rem !important; }
    .sm-title { font-size: 48px !important; line-height: 1.2 !important; }
    .sm-grid { gap: 50px !important; }
    .sm-col { align-items: flex-start !important; }

    .sm-box {
        width: 100% !important; 
        max-width: 515px !important; 
        height: 300px !important; 
        margin-bottom: 80px !important;
    }

    .sm-icon { width: 70px !important; height: 70px !important; }
    .sm-link-text { font-size: 1.5rem !important; gap: 15px !important; }
    .sm-link-text svg { width: 34px !important; height: 20px !important; }

    /* --- ALT BANNER --- */
    .blog-cta-banner { height: 800px !important; margin-top: 150px !important; }
    
    .blog-cta-content {
        width: 100% !important; 
        max-width: var(--site-container-width) !important; 
        margin: 0 auto !important; 
        padding-left: 0 !important; 
        padding-right: 0 !important;
    }

    .cta-mail-link h2 { 
        font-size: 86px !important; 
        font-weight: 700 !important;
        line-height: 103px !important; 
    }

} /* 2000PX KAPSÜL KAPANIŞI */

/* =========================================
   3. TABLET (GENEL KAPSAYICI) - 1024px ve Altı
   ======================================================================= */
@media screen and (max-width: 1024px) {

    /* 1. SOSYAL MEDYA KUTULARI */
    .sm-box {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        flex: 0 0 auto !important; 
        height: 200px !important; 
        max-height: 200px !important; 
        margin-bottom: 30px !important;
        align-self: center !important; 
    }

    /* Grid Container Ayarı */
    .sm-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        align-items: center !important; 
    }

    /* 2. FOOTER ÜSTÜ BANNER (SOLA YASLI) */
    .blog-cta-banner {
        height: 350px !important;
        min-height: 350px !important;
        margin-top: 50px !important;
        padding: 0 !important;
        justify-content: flex-start !important; 
        align-items: center !important;
    }

    .blog-cta-content {
        text-align: left !important; 
        width: 100% !important;
        padding-left: 20px !important; 
        padding-right: 20px !important;
        margin: 0 !important; 
    }

    .cta-mail-link h2 {
        font-size: 40px !important;
        line-height: 48px !important;
        font-weight: 700 !important;
    }

    /* 3. KART AÇIKLAMA METNİ */
    .blog-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.5 !important;
        max-height: 4.5em !important; 
        margin-bottom: 1.5rem !important;
    }

    /* 4. TAB BUTONLARI */
    .blog-tabs-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch;
        padding-right: 20px !important; 
        margin-right: -10px !important;
    }

    .blog-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        height: 45px !important;
        line-height: 45px !important; 
        font-size: 13px !important;    
        padding: 0 15px !important;
    }

    /* 5. SAYFALAMA */
    .pg-item {
        min-width: 50px !important;
        width: auto !important;
        padding: 0 10px !important;
        height: 50px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .pg-item.active {
        height: 46px !important; 
        border-bottom-width: 4px !important;
    }

    /* 6. OK BUTONU HİZALAMA (TABLET İÇİN) */
    .blog-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    .blog-content {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
    }
    .blog-btn-wrapper {
        margin-top: auto !important;
        padding-top: 20px !important;
    }

} /* KAPANIŞ */


/* =======================================================================
   4. TABLET 11 INCH & AIR (900px ve Altı)
   ======================================================================= */
@media screen and (max-width: 900px) {

    /* GRID: 2 Sütun */
    .blog-grid-system {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    /* GÖRSEL */
    .blog-image {
        width: 100% !important;
        height: 200px !important; 
    }

    /* SOSYAL MEDYA */
    .sm-grid {
        display: flex !important;
        justify-content: space-between !important; 
        gap: 10px !important; 
    }

    .sm-box {
        width: 216px !important;       
        min-width: 216px !important;
        max-width: 216px !important;
        flex: 0 0 216px !important;
        
        height: 200px !important;      
        margin-bottom: 30px !important;
    }
}


/* =======================================================================
   5. MOBİL (699px ve Altı)
   ======================================================================= */
@media screen and (max-width: 699px) {
    
    /* 1. HERO BANNER */
    .editorial-hero { 
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: calc(100svh - 54px) !important; 
        min-height: calc(100svh - 54px) !important; 
        max-height: none !important; 
        padding: 0 !important; 
        background-position: center center !important; 
        align-items: center !important;
    }
    
    /* 2. HERO İÇERİK */
    .ed-hero-content {
        padding-left: 0 !important; 
        padding-right: 0 !important;
        margin-left: 0 !important;
        text-align: left !important; 
        display: block !important;
        width: 100% !important;
        margin-top: 30px !important; 
    }

    .ed-hero-content h1 { 
        font-size: 40px !important; 
        font-weight: 700 !important; 
        line-height: 44px !important; 
        margin-bottom: 5px !important; 
        letter-spacing: -0.5px !important;
        width: 100% !important;
    }
    
    .ed-subtitle { 
        font-size: 26px !important; 
        font-weight: 500 !important; 
        line-height: 31px !important; 
        margin-top: 0 !important; 
        opacity: 0.95 !important;
        width: 100% !important;
    }
    
    /* 3. SOSYAL MEDYA */
    .sm-grid { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 45px !important; 
    }
    .sm-col { width: 100% !important; align-items: flex-start !important; }
    
    .sm-box { 
        width: 100% !important; 
        max-width: none !important; 
        min-width: 0 !important;
        flex: none !important; 
        height: 200px !important;
        margin-bottom: 20px !important; 
    }

    .sm-box:hover, .sm-box:active, .sm-box:focus {
        background: #00325B !important; 
        transform: none !important; 
    }
    
    /* 4. BLOG GRID */
    .blog-grid-system { 
        grid-template-columns: 1fr !important;
        gap: 50px !important; 
    }
    
    .pg-item { 
        min-width: 50px !important; 
        width: auto !important; 
        height: 50px !important; 
        font-size: 17px !important; 
        padding: 0 10px !important;
    }
    
    /* 5. FOOTER BANNER */
    .blog-cta-banner {
        margin-top: 25px !important; 
    }

    .blog-cta-content {
        padding-left: 10px !important;    
        padding-right: 10px !important;
        margin-left: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cta-mail-link {
        text-align: left !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        display: block !important;
    }

    .cta-mail-link h2 { 
        font-size: 30px !important; 
        font-weight: 700 !important; 
        line-height: 36px !important; 
        text-align: left !important;    
        padding-left: 0 !important;     
        margin-left: 0 !important;      
        width: 100% !important;
    }

    /* 6. TAB AYARLARI */
    .blog-tabs-wrapper {
        gap: 10px !important; 
        
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .blog-tabs-wrapper::-webkit-scrollbar {
        display: none !important;
    }
}