/* ==========================================================================
   İNOVATİF İLKOKUL HABER DETAY SAYFASI STİLLERİ
   ========================================================================== */

.blog-detail-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
   ========================================================================== */

.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: 920px;
    margin: 0 auto;
}

.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-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #f0fdf4;
    font-size: 0.92rem;
    font-weight: 600;
}

.banner-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   🌿 DÜZEN & DETAY KARTI
   ========================================================================== */

.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;
}

.detail-card {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(27, 62, 26, 0.04);
    margin-bottom: 30px;
}

/* Yaprak Şeklinde Kavisli Ana Kapak Resmi */
.detail-main-image-box {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 80px 12px 80px 12px;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.detail-main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spot / Özet Metni Kutusu */
.detail-lead-excerpt {
    position: relative;
    background: #f0fdf4;
    border-left: 4px solid #488b33;
    padding: 20px 24px 20px 50px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 28px;
}

.detail-lead-excerpt .quote-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 1.4rem;
    color: #a3e635;
}

.detail-lead-excerpt p {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b3e1a;
    line-height: 1.6;
    margin: 0;
}

/* Detaylı Metin Alanı */
.detail-body-text {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 36px;
}

.detail-body-text p {
    margin-bottom: 18px;
}

/* Başlıklar ve Vurgular */
.section-sub-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1b3e1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.section-sub-title i {
    color: #488b33;
}

/* ==========================================================================
   🎬 VİDEO EMBED ALANI
   ========================================================================== */

.detail-video-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-external-link,
.instagram-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2e5927 0%, #1b3e1a 100%);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-external-link:hover,
.instagram-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 62, 26, 0.25);
    color: #a3e635;
}

/* ==========================================================================
   🖼️ GALERİ ALANI (Yaprak Temalı Grid)
   ========================================================================== */

.detail-gallery-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    height: 180px;
    border-radius: 35px 8px 35px 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 62, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

/* ==========================================================================
   🔗 SOSYAL MEDYA PAYLAŞIM BARI
   ========================================================================== */

.detail-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 36px;
    border-top: 1px solid #e2e8f0;
}

.share-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1b3e1a;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn.whatsapp { background-color: #25d366; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter  { background-color: #000000; }
.share-btn.copy-link{ background-color: #2e5927; }

/* ==========================================================================
   ↔️ ÖNCEKİ / SONRAKİ HABER NAVİGASYONU
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-box a {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-box a:hover {
    border-color: #a3e635;
    box-shadow: 0 10px 25px rgba(27, 62, 26, 0.08);
    transform: translateY(-3px);
}

.nav-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #488b33;
    margin-bottom: 6px;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1b3e1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.next-post a {
    text-align: right;
}

/* ==========================================================================
   👉 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;
}

.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;
}

.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;
}

.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;
}

/* ==========================================================================
   📱 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: 28px;
    }

    .detail-card {
        padding: 20px;
        border-radius: 20px;
    }

    .detail-main-image-box {
        border-radius: 40px 8px 40px 8px;
        max-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .next-post a {
        text-align: left;
    }

    .detail-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* Instagram ve Direkt MP4 Video Kutu Stilleri */
.instagram-embed-box {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    background: #fafafa;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.instagram-iframe {
    width: 100%;
    max-width: 480px;
    height: 580px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.direct-video-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.detail-custom-video {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
}