/* ===================================================
   BLOG PAGE - PIXEL PERFECT STYLES
   =================================================== */

.blog-page-body { 
    background: #FFFFFF; 
    overflow-x: hidden; 
}

/* -------------------------------------------------------------
   Blog fallback hero ONLY (_IndexPartialCustom4, BannerType yok)
   Blog liste / diğer sayfalar _BannerType1 + hizmetler.css kullanır;
   bu dosya services/about banner stillerini EZMEMELİ.
   Aşağıdaki kurallar Hakkımızda/Hizmetler banner ile aynı ölçülere getirilir.
   ------------------------------------------------------------- */

.hero-section.blog-hero-adjustment {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 400px;
    margin: 0 auto;
}

.blog-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-hero-bg {
    position: absolute;
    width: 1880px;
    height: 304px;
    left: calc(50% - 1880px / 2);
    top: 70px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
}

.blog-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0) 130.05%);
    z-index: 1;
    pointer-events: none;
}

/* Çift karartmayı önle (::before ile aynı işi yapıyor) */
.blog-hero-bg .hero-overlay {
    display: none;
}

.blog-hero-title {
    font-family: 'Radio Canada Big';
    font-weight: 700;
    font-style: normal;
    font-size: 46px;
    line-height: 100%;
    letter-spacing: 0.5%;
    color: #FFFFFF;
    margin: 0;
    width: 1460px;
    max-width: calc(100% - 40px);
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    text-align: left;
}

@media (max-width: 1900px) {
    .blog-hero-bg {
        width: calc(100% - 40px);
        max-width: 1880px;
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 1880px) {
    .blog-hero-bg {
        width: calc(100% - 40px);
        max-width: 1880px;
        left: 20px;
        right: 20px;
    }
}

/* Blog Ana İçerik Konteyneri */
.blog-main-content {
    padding-top: 150px;
    padding-bottom: 100px;
}

.container-1460 {
    width: 1460px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Yapısı (Figma Frame 61562) */
.blog-pixel-grid {
    display: grid;
    grid-template-columns: repeat(3, 469px); /* Figma: 468.97px */
    gap: 27px; /* Figma: Gap 27px */
    justify-content: center;
}

/* Blog Kartı Tasarımı */
.blog-pixel-card {
    width: 469px;
    min-height: 409px;
    height: auto;
    background: #FFFFFF;
    border-radius: 19.76px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-pixel-card.is-hidden {
    display: none !important;
}

/* Hover Efekti (Ana Sayfa ile Aynı) */
.blog-pixel-card:hover {
    background: #658004;
}

.blog-pixel-card:hover h3 {
    color: #FFFFFF;
}

.blog-pixel-card:hover .blog-card-cat {
    color: rgba(255, 255, 255, 0.76);
}

.blog-pixel-card:hover .blog-card-date {
    background: #658004;
}

/* Featured kart hover'da da yeşil kalır */
.blog-pixel-card.featured:hover {
    background: #658004;
    opacity: 0.95;
}

/* Öne Çıkan Kart (Figma Green Background) */
.blog-pixel-card.featured {
    background: #658004;
}

.blog-pixel-card.featured h3 { 
    color: #FFFFFF; 
}

.blog-pixel-card.featured .blog-card-cat { 
    color: rgba(255, 255, 255, 0.76); 
}

.blog-card-img-wrap {
    position: relative;
    height: 245.6px;
    width: calc(100% - 39.52px);
    margin: 19.76px;
    flex-shrink: 0;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13.17px;
}

/* Tarih Badge */
.blog-card-date {
    position: absolute;
    left: 20px;
    top: 20px;
    background: #000000;
    padding: 6px 15px;
    border-radius: 18px;
    color: #FFFFFF;
    font-family: 'Inter';
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.blog-pixel-card.featured .blog-card-date { 
    background: #658004; 
}

.blog-card-info {
    position: relative;
    padding: 0 20px 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.blog-card-cat {
    font-family: 'Inter';
    font-size: 11px;
    color: rgba(0, 0, 0, 0.6);
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.blog-card-info h3 {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 21px;
    line-height: 28px;
    margin: 0;
    color: #000000;
    text-decoration: none;
}

/* Daha Fazla Butonu (Group 16087) */
.blog-load-more {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.btn-more-blog {
    min-width: 224px;
    height: 62px;
    background: #658004;
    border: none;
    border-radius: 90px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    color: #FFFFFF;
    cursor: pointer;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    white-space: nowrap;
}

.btn-more-blog:hover {
    opacity: 0.9;
}

/* ===================================================
   1500px BREAKPOINT - Ana sayfa ile hizalama
   =================================================== */

@media (max-width: 1500px) and (min-width: 993px) {
    .container-1460 {
        width: 100% !important;
        max-width: 1460px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .blog-pixel-grid {
        width: 100% !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 27px !important;
    }

    .blog-pixel-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .blog-hero-bg {
        width: calc(100% - 40px) !important;
        max-width: 1880px !important;
        left: 20px !important;
        right: 20px !important;
    }
}

/* ===================================================
   MOBILE RESPONSIVE
   =================================================== */

@media (max-width: 1480px) {
    .blog-pixel-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    
    .blog-pixel-card { 
        width: 100%; 
        max-width: 469px;
        height: 420px; 
    }
}

@media (max-width: 992px) {
    /* Header top değerini kaldır (diğer sayfalarla uyum için) */
    .blog-page-body .figma-header {
        top: 0 !important;
    }

    /* Hero Hizalaması (Hakkimizda ile aynı) */
    .hero-section.blog-hero-adjustment {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Hero Arka Planı (Hakkimizda ile aynı) */
    .blog-hero-bg { 
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        left: 0 !important;
        right: 0 !important;
        top: -50px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-bottom: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }
    
    .blog-hero-title { 
        font-family: 'Radio Canada Big' !important;
        font-weight: 700 !important;
        font-size: 32px !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        position: relative !important;
        z-index: 2;
        margin: 0 !important;
        padding: 0 24px !important;
        top: 0 !important;
    }

    .blog-main-content {
        padding-top: 0 !important;
        padding-bottom: 40px !important;
    }

    .container-1460 {
        margin: 0 auto;
        padding: 0 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .blog-pixel-grid { 
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .blog-pixel-card { 
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important; 
        min-height: 400px;
        padding-bottom: 0 !important; 
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
    }

    .blog-card-img-wrap { 
        position: relative !important; 
        height: 250px; 
        width: calc(100% - 40px) !important;
        margin: 20px !important;
        flex-shrink: 0;
    }

    .blog-card-info { 
        position: relative !important; 
        padding: 0 20px 20px 20px !important; 
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .blog-card-info h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .btn-more-blog {
        width: calc(100% - 40px);
        max-width: 300px;
        min-width: 0;
        height: 56px;
        font-size: 18px;
    }
    
    /* Hamburger menü — innocon/style.css ile aynı: sağdan */
    .mobile-sidebar.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        top: 0 !important;
        left: auto !important;
        right: 0 !important;
    }
    
    /* Overlay Fix */
    .sidebar-overlay {
        top: -50px !important;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-family: 'Radio Canada Big' !important;
        font-weight: 700 !important;
        font-size: 26px !important;
    }

    .blog-pixel-card {
        min-height: 350px;
    }

    .blog-card-img-wrap {
        height: 200px;
        margin: 15px 15px 15px 15px;
    }

    .blog-card-info {
        padding: 0 15px 15px 15px;
    }

    .blog-card-info h3 {
        font-size: 16px;
    }
}

/* 320px için ekstra düzenlemeler */
@media (max-width: 320px) {
    .container-1460 {
        padding: 0 15px !important;
        margin: 40px auto !important;
    }

    .blog-pixel-grid {
        gap: 15px !important;
    }

    .blog-pixel-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 300px !important;
    }

    .blog-card-img-wrap {
        height: 180px !important;
        margin: 15px !important;
    }

    .blog-card-info {
        padding: 0 15px 15px 15px !important;
    }

    .blog-card-info h3 {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .blog-card-cat {
        font-size: 10px !important;
    }

    .blog-card-date {
        font-size: 9px !important;
        padding: 4px 12px !important;
    }

    .btn-more-blog {
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        font-size: 18px !important;
        height: 50px !important;
        min-width: 0 !important;
    }
}
