/* ==========================================================================
   İNOVATİF İLKOKUL HABERLER / BLOG LİSTELEME SAYFASI STİLLERİ
   ========================================================================== */

.blog-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #fcfdfd;
    padding-bottom: 120px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   📍 BANNER SECTION (Kurumsal / Yaşam Alanları Birebir Üst Yapısı)
   ========================================================================== */

.inner-page-banner {
    position: relative;
    width: 100%;
    min-height: 360px;
    padding: 140px 24px 70px 24px;
    background-image: url('../uploads/egitimveyasamalanlarimiz/arkaplan.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

/* Breadcrumb Rozeti */
.breadcrumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.breadcrumb-badge a {
    color: #a3e635;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-badge a:hover {
    opacity: 0.85;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: #ffffff;
}

/* Banner Başlık ve Alt Başlık */
.banner-title {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.banner-subtitle {
    font-size: 18px;
    color: #f0fdf4;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   🌿 DÜZEN (GRID & SIDEBAR)
   ========================================================================== */

.blog-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* 👈 SOL TARAF: İKİLİ GRID LİSTELEME */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-card-inner {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(27, 62, 26, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 62, 26, 0.12);
    border-color: #a3e635;
}

/* 🍃 YAPRAK FORMUNDA KAVİSLİ GÖRSEL KUTUSU */
.blog-image-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 65px 8px 65px 8px;
    background-color: #e2e8f0;
    transition: border-radius 0.5s ease;
}

.blog-card:hover .blog-image-box {
    border-radius: 8px 65px 8px 65px;
}

.blog-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image-box img {
    transform: scale(1.08);
}

.no-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
}

.blog-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #1d4320 0%, #2e5927 100%);
    color: #a3e635;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Metin Alanı */
.blog-content-box {
    padding: 20px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-badge {
    color: #dc2626;
    font-weight: 700;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.blog-title a {
    color: #1b3e1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: #488b33;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #2e5927;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.read-more-btn:hover {
    gap: 12px;
    color: #488b33;
}

/* 👉 SAĞ TARAF: SİDEBAR & WIDGETS */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(27, 62, 26, 0.04);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1b3e1a;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.widget-title span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #488b33;
}

/* Arama Formu */
.sidebar-search-form {
    position: relative;
}

.sidebar-search-form input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all 0.2s;
    color: #1b3e1a;
}

.sidebar-search-form input:focus {
    outline: none;
    border-color: #488b33;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(72, 139, 51, 0.15);
}

.sidebar-search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #2e5927;
    font-size: 1rem;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-search-form button:hover {
    color: #488b33;
}

/* Kategori Listesi */
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.category-list li a:hover,
.category-list li a.active {
    background: #f0fdf4;
    color: #1b3e1a;
}

.category-list li a.active {
    border-left: 3px solid #488b33;
}

.count-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    padding: 2px 10px;
    border-radius: 12px;
}

.category-list li a:hover .count-badge,
.category-list li a.active .count-badge {
    background: #2e5927;
    color: #ffffff;
}

/* Son Eklenenler */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.recent-post-thumb {
    width: 65px;
    height: 65px;
    border-radius: 16px 4px 16px 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.recent-post-info h5 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-info h5 a {
    color: #1b3e1a;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-post-info h5 a:hover {
    color: #488b33;
}

.recent-post-info .post-date {
    font-size: 0.75rem;
    color: #64748b;
}

/* Kayıt Bulunamadı Kartı */
.no-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 60px 20px;
    text-align: center;
}

.no-content-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.no-content-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1b3e1a;
    margin-bottom: 8px;
}

.no-content-card p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.reset-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2e5927;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.reset-filter-btn:hover {
    background: #488b33;
}

/* ==========================================================================
   📱 MOBİL VE TABLET UYUMLULUK
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .inner-page-banner {
        min-height: 300px;
        padding: 110px 20px 50px 20px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 15px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-image-box {
        height: 200px;
        border-radius: 50px 8px 50px 8px;
    }
}