/* ==========================================================================
   SIDEBAR WIDGETS (साझा कॉम्पोनेंट) — front-page.php और single.php दोनों में
   इस्तेमाल होता है, इसलिए एक ही जगह रखा गया है ताकि CSS दोहराई न जाए।
   ========================================================================== */

.main-sidebar-area-premium {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 4px;
    box-sizing: border-box;
}

.custom-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px;
}

.widget-title-style {
    font-size: 16px;
    font-weight: bold;
    color: #111111;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e10600;
}

/* --- ट्रेंडिंग न्यूज़ लिस्ट --- */
.sidebar-news-list { display: flex; flex-direction: column; gap: 12px; }

.side-post-row { display: flex; align-items: center; gap: 12px; }

.trending-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e10600;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    flex-shrink: 0;
}

.side-post-thumb {
    width: 64px !important;
    height: auto;
    aspect-ratio: 16 / 9 !important;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.side-post-thumb img { width: 100% !important; height: 100% !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; display: block !important; }

.side-post-info a {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- विज्ञापन बॉक्स --- */
.ad-placeholder-sidebar {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: bold;
}

/* --- लेटेस्ट न्यूज़ टाइमलाइन --- */
.timeline-scroll-container { max-height: 280px; overflow-y: auto; padding-right: 5px; }

.timeline-list-style {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    padding-left: 15px;
    border-left: 2px solid #cbd5e1;
}
.timeline-list-style li { position: relative; margin-bottom: 15px; }

.timeline-dot {
    position: absolute;
    left: -21px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: #e10600;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.timeline-link {
    font-size: 13px;
    font-weight: bold;
    color: #334155;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.timeline-time { font-size: 11px; color: #94a3b8; font-weight: 600; }

/* --- स्लिम स्क्रॉलबार (साइडबार + टाइमलाइन दोनों में) --- */
.main-sidebar-area-premium::-webkit-scrollbar,
.timeline-scroll-container::-webkit-scrollbar {
    width: 4px;
}
.main-sidebar-area-premium::-webkit-scrollbar-thumb,
.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .main-sidebar-area-premium {
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}
