/* ============================================================
2026 MODERN BLOG LAYOUT - MOBILE FIXED VERSION
============================================================ */

/* --- 1. WRAPPER & GRID (Desktop Default) --- */
.modern-blog-wrapper {
    background-color: #F9FAFB;
    overflow-x: hidden; /* Horizontal scroll rokne ke liye */
}

.modern-grid-layout {
    display: flex;
    gap: 60px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    box-sizing: border-box;
}

/* --- 2. HEADER (Cinema Style) --- */
.post-cinema-header {
    background: #fff;
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}
.header-content-inner { max-width: 800px; margin: 0 auto; }

.category-pill {
    background: #FF3366; color: #fff; font-size: 11px; font-weight: 800;
    padding: 5px 14px; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-bottom: 10px;
}
.read-time-pill { font-size: 12px; color: #666; margin-left: 12px; font-weight: 500; }

.entry-title-modern {
    font-family: 'Outfit', sans-serif;
    font-size: 42px; line-height: 1.2; margin: 15px 0 25px; color: #111;
    font-weight: 800; word-wrap: break-word;
}

.post-meta-modern {
    display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: #555; flex-wrap: wrap;
}
.author-info img { border-radius: 50%; width: 34px; height: 34px; vertical-align: middle; margin-right: 8px; }

/* --- 3. CONTENT COLUMN --- */
.content-column-modern {
    flex: 1;
    min-width: 0; /* Content ko container se bahar jane se rokta hai */
    width: 100%; /* Mobile safety */
}

/* --- FEATURED IMAGE FIX (LCP Optimized) --- */
.featured-image-container {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
    width: 100%;
    position: relative;
    aspect-ratio: 16/9; /* CLS Fix: Browser ko pehle se jagah bata di */
}

.modern-feat-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- TYPOGRAPHY --- */
.entry-content-modern {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #2D3339;
}
.entry-content-modern p { margin-bottom: 1.5em; }
.entry-content-modern h2 { font-family: 'Outfit', sans-serif; font-size: 28px; margin-top: 40px; margin-bottom: 15px; font-weight: 800; }
.entry-content-modern h3 { font-size: 22px; margin-top: 30px; margin-bottom: 10px; font-weight: 700; }
.entry-content-modern img { max-width: 100%; height: auto; border-radius: 8px; }

/* --- KEY HIGHLIGHTS BOX --- */
.key-points-box {
    background-color: #fff; border: 1px solid #E5E7EB; border-left: 4px solid #FF3366;
    padding: 25px; border-radius: 0 12px 12px 0; margin-bottom: 30px;
}
.key-points-headline { font-family: 'Outfit', sans-serif; font-size: 18px; margin: 0 0 15px; color: #111; text-transform: uppercase; }
.key-points-box ul { list-style: none; padding: 0; margin: 0; }
.key-points-box li { font-size: 16px; margin-bottom: 10px; position: relative; padding-left: 25px; color: #374151; }
.key-points-box li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 3px; color: #FF3366; font-size: 14px; }

/* --- TAGS & AUTHOR --- */
.post-footer-modern { margin: 40px 0; padding: 30px 0; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.modern-tags a { display: inline-block; background: #fff; border: 1px solid #E5E7EB; padding: 5px 12px; border-radius: 20px; font-size: 12px; color: #4B5563; margin: 0 5px 5px 0; text-decoration: none; }

.author-box { display: flex; gap: 20px; align-items: center; background: #fff; padding: 25px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 40px; }
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; }

/* --- SIDEBAR (Desktop) --- */
.sidebar-column-modern {
    width: 320px;
    flex-shrink: 0; /* Sidebar ko shrink hone se rokta hai */
}
.sticky-sidebar-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar-column-modern .widget {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
    padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
    overflow: hidden; /* CRITICAL FIX: Ads content me nahi ghusenge */
    max-width: 100%;
    word-wrap: break-word;
}

/* Ad Specific Fix */
.widget-ad-clean {
    text-align: center;
    overflow: hidden;
}
.widget-ad-clean img, .widget-ad-clean iframe {
    max-width: 100%;
    height: auto;
}

/* ============================================================
MOBILE RESPONSIVE FIXES (Max Width 991px)
============================================================ */
@media (max-width: 991px) {
    /* 1. Layout Reset */
    .modern-grid-layout {
        flex-direction: column; /* Sidebar neeche jayega */
        padding: 20px 15px;
        gap: 40px;
    }

    /* 2. Header Fixes */
    .post-cinema-header { padding: 30px 15px; }
    .entry-title-modern { font-size: 28px; margin: 10px 0 15px; }

    /* 3. Content Width */
    .content-column-modern { width: 100%; }

    /* 4. Image Fix */
    .featured-image-container {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }

    /* 5. Sidebar Fix */
    .sidebar-column-modern {
        width: 100%;
        margin-top: 20px;
    }
    .sticky-sidebar-wrapper {
        position: static;
    }

    /* 6. Author Box Mobile */
    .author-box { flex-direction: column; text-align: center; }

    /* 7. Typography Mobile */
    .entry-content-modern { font-size: 17px; }
}

/* ============================================================
FIXED: YOU MAY ALSO LIKE (Related Posts)
============================================================ */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.related-post-card:hover { transform: translateY(-5px); }

.related-post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-thumb img { transform: scale(1.05); }

.related-post-content { padding: 15px; }

.related-post-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1F2937;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swiper-button-next, .swiper-button-prev {
    color: #FF3366;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .related-posts-section { padding-top: 30px; margin-top: 40px; }
    .related-post-title { font-size: 16px; }
    .swiper-button-next, .swiper-button-prev { display: none; }
}