/* =========================================
   1. GLOBAL SETTINGS & LAYOUT (SCOPED)
========================================= */
html { scroll-behavior: smooth; }

.blog-master-wrapper {
    background-color: #f8fafc; 
    font-family: sans-serif; 
    transition: background-color 0.3s ease; 
    width: 100%; 
    padding-top: 0px; 
}

.blog-master-wrapper * { box-sizing: border-box; }

/* 🔴 यहाँ बदलाव किया गया है: padding L/R 0 कर दी है और justify-content: space-between किया है */
.blog-container { 
    max-width: 1150px; 
    margin: 0 auto; 
    padding: 5px 0px 80px; /* L/R पैडिंग हटा दी ताकि हेडर के बराबर आ जाए */
    display: flex; 
    gap: 40px; 
    align-items: flex-start; 
    justify-content: space-between; /* बीच से हटाकर किनारों पर चिपका दिया */
}

@media (max-width: 1000px) {
    /* 🔴 बदलाव: पैडिंग 20px से घटाकर 10px कर दी है, ऊपर की जगह भी कम की है */
    .blog-container { flex-direction: column; padding: 5px 10px 80px; }
}

/* Dark Mode - Global */
body.dark-mode .blog-master-wrapper { background-color: #0f172a !important; color: #cbd5e1 !important; }


/* =========================================
   2. READING PROGRESS BAR
========================================= */
#progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 9999; }
#progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }


/* =========================================
   3. BREADCRUMBS
========================================= */
.article-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -15px; margin-bottom: 20px; padding: 0; font-size: 14px; font-weight: 500; }
.article-breadcrumbs a { color: #8b5cf6; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.2s ease-in-out; }
.article-breadcrumbs a:hover { color: #6d28d9; }
.article-breadcrumbs .separator { color: #94a3b8; font-size: 12px; }
.article-breadcrumbs .current { color: #0f172a; font-weight: 600; }

@media (max-width: 1000px) {
    .article-breadcrumbs { margin-top: 15px; margin-bottom: 15px; font-size: 13px; }
}

/* Dark Mode - Breadcrumbs */
.dark-mode .article-breadcrumbs a { color: #a78bfa !important; }
.dark-mode .article-breadcrumbs a:hover { color: #c4b5fd !important; }
.dark-mode .article-breadcrumbs .separator { color: #64748b !important; }
.dark-mode .article-breadcrumbs .current { color: #f8fafc !important; }


/* =========================================
   4. MAIN ARTICLE AREA & META DATA
========================================= */

/* 🔴 यहाँ बदलाव किया गया है: max-width 750px से बढ़ाकर 810px कर दी गई है */
.article-main { 
    flex: 1; 
    max-width: 810px; /* लेफ्ट बॉक्स को चौड़ा किया ताकि 1150px पूरा भर जाए */
    background-color: #ffffff; 
    border-radius: 16px; 
    padding: 40px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.02); 
    border: 1px solid #e2e8f0; 
}

.article-title { font-size: 32px; font-weight: 800; color: #0f172a; line-height: 1.3; margin-top: 0; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.meta-item { display: flex; align-items: center; gap: 6px; } 
.meta-item i { color: #3b82f6; }

@media (max-width: 1000px) {
    /* 🔴 बदलाव: अंदर की पैडिंग 20px से 15px कर दी है और हेडिंग साइज़ थोड़ा सेट किया है */
    .article-main { width: 100%; max-width: 100%; padding: 15px; box-sizing: border-box; overflow: hidden !important; }
    .article-title { font-size: 23px; margin-bottom: 15px; }
}

/* Dark Mode - Article Area */
.dark-mode .article-main { background-color: #1e293b !important; border-color: #334155 !important; }
.dark-mode .article-title { color: #f8fafc !important; }
.dark-mode .meta-item { color: #cbd5e1 !important; }


/* =========================================
   5. AUDIO PLAYER
========================================= */
.audio-player-box { display: flex; align-items: center; gap: 15px; background-color: #f1f5f9; padding: 12px 20px; border-radius: 50px; margin-bottom: 30px; border: 1px solid #cbd5e1; }
.audio-btn { background-color: #3b82f6; color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
.audio-btn:hover { background-color: #2563eb; transform: scale(1.05); }
.audio-text { font-size: 14px; font-weight: 600; color: #334155; }

/* Dark Mode - Audio Player */
.dark-mode .audio-player-box { background-color: #0f172a !important; border-color: #334155 !important; }
.dark-mode .audio-text { color: #cbd5e1 !important; }


/* =========================================
   6. BLOG CONTENT TYPOGRAPHY
========================================= */
.article-content h2 { font-size: 24px; font-weight: 700; color: #1e293b; margin-top: 40px; margin-bottom: 15px; scroll-margin-top: 80px; }
.article-content h3 { font-size: 20px; font-weight: 700; color: #334155; margin-top: 30px; margin-bottom: 12px; scroll-margin-top: 80px; }
.article-content p { font-size: 17px; line-height: 1.8; color: #475569; margin-bottom: 25px; }

/* Dark Mode - Typography */
.dark-mode .article-content h2, .dark-mode .article-content h3 { color: #f8fafc !important; }
.dark-mode .article-content p { color: #cbd5e1 !important; }


/* =========================================
   7. INFO & ALERT BOXES
========================================= */
.info-box { background-color: #ecfdf5; border-left: 4px solid #10b981; padding: 15px 20px; border-radius: 0 8px 8px 0; margin-bottom: 25px; }
.info-box p { margin: 0; color: #065f46; font-size: 16px; font-weight: 500; }
.alert-box { background-color: #fef2f2; border-left: 4px solid #ef4444; padding: 15px 20px; border-radius: 0 8px 8px 0; margin-bottom: 25px; }
.alert-box p { margin: 0; color: #991b1b; font-size: 16px; font-weight: 500; }

/* Dark Mode - Info & Alert Boxes */
.dark-mode .info-box { background-color: #064e3b !important; border-color: #10b981 !important; }
.dark-mode .info-box p { color: #a7f3d0 !important; }
.dark-mode .alert-box { background-color: #450a0a !important; border-color: #ef4444 !important; }
.dark-mode .alert-box p { color: #fecaca !important; }


/* =========================================
   8. CODE SNIPPET BOX (COMPACT DESIGN)
========================================= */
.snippet-box { 
    background-color: #f1f5f9; 
    border: 1px solid #e2e8f0; 
    border-left: 4px solid #3b82f6; 
    border-radius: 8px; 
    padding: 15px 20px; /* 🔴 पैडिंग कम की ताकि बॉक्स छोटा रहे */
    margin-bottom: 25px; 
    position: relative; 
    overflow: hidden; 
}
.snippet-text { 
    color: #0f172a; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 14.5px; 
    line-height: 1.6; 
    margin: 0; 
    word-break: break-all; 
    padding-right: 80px; 
    min-height: 24px; /* बटन के लिए कम से कम जगह */
}
/* 🔴 नया: एडिटर द्वारा जोड़ी गई फालतू खाली लाइनों (Blank space) को छुपाने की ट्रिक */
.snippet-text br:last-child, .snippet-text p:empty { display: none; }

.btn-copy-snippet { 
    position: absolute; 
    top: 50%; /* 🔴 बटन को बॉक्स के एकदम बीच (Center) में सेट किया */
    transform: translateY(-50%);
    right: 15px; 
    background-color: #ffffff; 
    border: 1px solid #cbd5e1; 
    color: #475569; 
    padding: 6px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 12px; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 600; 
    transition: 0.2s ease-in-out; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
}
.btn-copy-snippet:hover { background-color: #f8fafc; color: #3b82f6; border-color: #3b82f6; }

/* Dark Mode - Snippet Box */
.dark-mode .snippet-box { background-color: #0f172a !important; border-color: #334155 !important; border-left-color: #3b82f6 !important; }
.dark-mode .snippet-text { color: #cbd5e1 !important; }
.dark-mode .btn-copy-snippet { background-color: #1e293b !important; border-color: #475569 !important; color: #94a3b8 !important; }
.dark-mode .btn-copy-snippet:hover { background-color: #334155 !important; color: #60a5fa !important; border-color: #60a5fa !important; }


/* =========================================
   9. MEDIA (IMAGES & VIDEO)
========================================= */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.article-img { width: 100%; max-width: 100%; height: auto; border-radius: 12px; margin-bottom: 25px; cursor: zoom-in; border: 1px solid #e2e8f0; transition: 0.3s; }
.article-img:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.05); }

.article-main img, .article-content img { max-width: 100% !important; height: auto !important; display: block; margin: 0 auto; box-sizing: border-box; }

.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.95); z-index: 10000; justify-content: center; align-items: center; cursor: zoom-out; backdrop-filter: blur(5px); }
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

/* =========================================
   LIGHTBOX CLOSE BUTTON
========================================= */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 28px;
    background-color: rgba(15, 23, 42, 0.6); /* हल्का काला बैकग्राउंड ताकि हमेशा दिखे */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.lightbox-close:hover {
    background-color: #ef4444; /* माउस ले जाने पर लाल हो जाएगा */
    color: white;
    transform: scale(1.1) rotate(90deg); /* थोड़ा घूमेगा (Cool Animation) */
    border-color: #ef4444;
}

/* मोबाइल के लिए छोटा बटन */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
/* Dark Mode - Media */
.dark-mode .video-wrapper { box-shadow: 0 5px 15px rgba(0,0,0,0.5); }


/* =========================================
   10. CTA TOOL CARD (PROMOTION BOX)
========================================= */
.tool-cta-card { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); border: 2px dashed #3b82f6; border-radius: 12px; padding: 30px; text-align: center; margin: 40px 0; box-shadow: 0 10px 20px rgba(59,130,246,0.05); }
.tool-cta-title { font-size: 20px; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.tool-cta-desc { font-size: 15px; color: #475569; margin-bottom: 20px; }
.btn-cta { background-color: #3b82f6; color: white; text-decoration: none; padding: 12px 30px; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-cta:hover { background-color: #2563eb; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59,130,246,0.3); }

/* Dark Mode - CTA Card */
.dark-mode .tool-cta-card { background: linear-gradient(135deg, #172554 0%, #1e293b 100%) !important; border-color: #3b82f6 !important; }
.dark-mode .tool-cta-title { color: #f8fafc !important; }
.dark-mode .tool-cta-desc { color: #94a3b8 !important; }


/* =========================================
   11. AUTHOR BIO BOX
========================================= */
.author-bio { display: flex; align-items: center; gap: 20px; background-color: #f8fafc; padding: 25px; border-radius: 12px; margin-top: 40px; border: 1px solid #e2e8f0; }
.author-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #3b82f6; padding: 2px; }
.author-info h4 { margin: 0 0 5px 0; font-size: 18px; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.author-badge { font-size: 11px; background-color: #dcfce7; color: #10b981; padding: 2px 8px; border-radius: 12px; }
.author-info p { margin: 0; font-size: 14px; color: #475569; line-height: 1.6; }
.author-info a { display: inline-block; text-decoration: none; color: #3b82f6; font-size: 18px; margin-right: 15px; margin-top: 12px; transition: 0.3s; }
.author-info a:hover { transform: translateY(-2px); }

@media (max-width: 1000px) {
    .author-bio { flex-direction: column; text-align: center; }
    .author-info h4 { justify-content: center; }
    .author-info a { margin-left: 8px; margin-right: 8px; }
}

/* Dark Mode - Author Box */
.dark-mode .author-bio { background-color: #0f172a !important; border-color: #334155 !important; }
.dark-mode .author-info h4 { color: #f8fafc !important; }
.dark-mode .author-info p { color: #cbd5e1 !important; }
.dark-mode .author-info a { color: #60a5fa !important; }
.dark-mode .author-info a:hover { color: #93c5fd !important; }


/* =========================================
   12. RIGHT SIDEBAR
========================================= */
.sidebar-right { width: 300px; display: flex; flex-direction: column; gap: 30px; position: sticky; top: 100px; align-self: flex-start; z-index: 10; }
.widget-box { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.widget-title { font-size: 16px; font-weight: 800; color: #1e293b; margin-top: 0; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.tracker-list { list-style: none; padding: 0; margin: 0; }
.tracker-list li { margin-bottom: 10px; font-size: 14px; }
.tracker-list a { color: #64748b; text-decoration: none; transition: 0.2s; display: block; border-left: 2px solid transparent; padding-left: 10px; }
.tracker-list a:hover, .tracker-list a.active { color: #3b82f6; border-left-color: #3b82f6; font-weight: 600; }
.ad-spot { width: 100%; height: 250px; background-color: #f1f5f9; display: flex; justify-content: center; align-items: center; color: #94a3b8; font-size: 12px; border-radius: 8px; border: 1px dashed #cbd5e1; }

@media (max-width: 1000px) {
    .sidebar-right { 
        display: flex; /* पहले यह none था, अब दिखने लगेगा */
        width: 100%; /* मोबाइल में पूरी चौड़ाई लेगा */
        margin-top: 20px; /* आर्टिकल और साइडबार के बीच की दूरी */
    }
    
    /* मोबाइल में ऐड (Ad) को चिपका (Sticky) हुआ नहीं रखना चाहिए, वरना स्क्रीन भर जाती है */
    .sticky-ad-wrapper {
        position: relative !important;
        top: 0 !important;
    }
}

/* Dark Mode - Sidebar */
.dark-mode .widget-box { background-color: #1e293b !important; border-color: #334155 !important; }
.dark-mode .widget-title { color: #f8fafc !important; }

/* =========================================
   13. DYNAMIC TABLE OF CONTENTS (PRO VERSION)
========================================= */
.blog-toc-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden; /* बंद होने पर डिज़ाइन बाहर न जाए */
}

/* 🔴 नया: हेडर को Clickable और Flex बनाया ताकि Icon राइट में जाए */
.toc-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-bottom: 0px; 
    border-bottom: none;
    transition: 0.3s;
}

.toc-title-left { display: flex; align-items: center; gap: 10px; }
.toc-title-left i { color: #3b82f6; font-size: 16px; }

/* 🔴 नया: Open/Close एरो आइकॉन */
.toc-toggle-icon {
    color: #64748b;
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* जब TOC खुला हो (Active State) */
.blog-toc-box.is-open .toc-title {
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 12px;
    margin-bottom: 15px;
}
.blog-toc-box.is-open .toc-toggle-icon {
    transform: rotate(180deg); /* आइकॉन घूमेगा */
}

/* लिस्ट को छुपाने/दिखाने का एनीमेशन */
.toc-content-wrapper {
    display: none; 
}
.blog-toc-box.is-open .toc-content-wrapper {
    display: block; 
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 12px; line-height: 1.4; position: relative; }
.toc-list a { text-decoration: none; color: #475569; font-size: 15px; font-weight: 500; transition: color 0.2s ease; display: inline-block; }
.toc-list a:hover { color: #3b82f6; font-weight: 600; }

/* 🌟 🔴 नया: सबमें शानदार बुलेट्स (Bullets) 🌟 */

/* H2 - चौकोर नीला बुलेट */
.toc-h2 { margin-left: 0; padding-left: 20px; font-weight: 600; }
.toc-h2 > a { color: #1e293b; }
.toc-h2::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; background-color: #3b82f6; border-radius: 2px; }

/* H3 - गोल बैंगनी रिंग */
.toc-h3 { margin-left: 20px; padding-left: 18px; }
.toc-h3::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border: 2px solid #8b5cf6; border-radius: 50%; background: transparent; }

/* H4 - छोटा ग्रे डॉट */
.toc-h4 { margin-left: 45px; padding-left: 15px; font-size: 14px; }
.toc-h4::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background-color: #94a3b8; border-radius: 50%; }

/* Dark Mode - TOC */
.dark-mode .blog-toc-box { background-color: #1e293b !important; border-color: #334155 !important; }
.dark-mode .toc-title { color: #f8fafc !important; }
.dark-mode .blog-toc-box.is-open .toc-title { border-color: #475569 !important; }
.dark-mode .toc-h2 > a { color: #e2e8f0 !important; }
.dark-mode .toc-list a { color: #cbd5e1; }
.dark-mode .toc-list a:hover { color: #60a5fa; }

/* =========================================
   14. DYNAMIC RIGHT SIDEBAR (PREMIUM UI)
========================================= */
/* Community Box */
.community-box { background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%); border: 2px solid #e2e8f0; text-align: center; }
.community-desc { font-size: 13px; color: #475569; margin: 0 0 15px 0; }
.community-buttons { display: flex; gap: 10px; }
.btn-sidebar { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; color: white; transition: 0.3s; }
.btn-wa { background-color: #25D366; box-shadow: 0 4px 10px rgba(37,211,102,0.3); }
.btn-wa:hover { background-color: #1ebc5a; transform: translateY(-2px); }
.btn-tg { background-color: #0088cc; box-shadow: 0 4px 10px rgba(0,136,204,0.3); }
.btn-tg:hover { background-color: #0077b5; transform: translateY(-2px); }

/* Sidebar Lists (Blogs & Tools) */
.sidebar-list { display: flex; flex-direction: column; gap: 15px; }
.sidebar-item { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 5px; border-radius: 8px; transition: background 0.2s; }
.sidebar-item:hover { background-color: #f8fafc; }
.sidebar-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; }
.sidebar-icon-box { width: 50px; height: 50px; background-color: #eff6ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 18px; flex-shrink: 0; }
.sidebar-item-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.sidebar-item-title { font-size: 14px; font-weight: 700; color: #1e293b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-item:hover .sidebar-item-title { color: #3b82f6; }
.sidebar-item-meta { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; }

/* Dark Mode Support */
.dark-mode .community-box { background: #1e293b; border-color: #334155; }
.dark-mode .community-desc { color: #cbd5e1; }
.dark-mode .sidebar-item:hover { background-color: #0f172a; }
.dark-mode .sidebar-thumb { border-color: #334155; }
.dark-mode .sidebar-icon-box { background-color: #0f172a; }
.dark-mode .sidebar-item-title { color: #f8fafc; }
.dark-mode .sidebar-item:hover .sidebar-item-title { color: #60a5fa; }

/* =========================================
   15. BLOG ADSENSE PLACEHOLDERS
========================================= */
.blog-ad-container {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}
.blog-ad-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.blog-ad-placeholder {
    width: 100%;
    min-height: 100px;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}
/* साइडबार वाले ऐड के लिए हाइट थोड़ी ज्यादा चाहिए */
.vertical-placeholder {
    min-height: 250px;
}

/* Dark Mode - Ads */
.dark-mode .blog-ad-placeholder { background-color: #0f172a; border-color: #334155; color: #475569; }

/* =========================================
   16. RELATED POSTS (READ NEXT)
========================================= */
.related-posts-wrapper { margin-top: 40px; border-top: 2px dashed #e2e8f0; padding-top: 30px; }
.related-section-title { font-size: 22px; font-weight: 800; color: #1e293b; margin-top: 0; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.related-section-title i { color: #3b82f6; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none; transition: 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); display: flex; flex-direction: column; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.related-img-box { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 Aspect Ratio */ overflow: hidden; }
.related-img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.related-card:hover .related-img-box img { transform: scale(1.05); }
.related-badge { position: absolute; top: 10px; right: 10px; color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.related-info { padding: 15px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.related-info h4 { margin: 0 0 10px 0; font-size: 15px; font-weight: 700; color: #1e293b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card:hover .related-info h4 { color: #3b82f6; }
.related-meta { font-size: 12px; color: #64748b; font-weight: 500; display: flex; align-items: center; gap: 5px; }

/* Responsive Grid */
@media (max-width: 1000px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* Dark Mode */
.dark-mode .related-posts-wrapper { border-color: #334155; }
.dark-mode .related-section-title { color: #f8fafc; }
.dark-mode .related-card { background-color: #1e293b; border-color: #334155; }
.dark-mode .related-info h4 { color: #f8fafc; }
.dark-mode .related-card:hover .related-info h4 { color: #60a5fa; }

/* =========================================
   17. FLOATING AUDIO PLAYER (ChatGPT STYLE)
========================================= */
.floating-audio-player {
    position: fixed;
    top: -100px; /* शुरुआत में छुपा रहेगा */
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b; /* Dark Premium Color */
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px 8px 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 100000; /* सबसे ऊपर रहेगा, चैटबॉट से नहीं टकराएगा */
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    max-width: 90%; /* मोबाइल के लिए */
}

/* जब प्लेयर चालू हो (Show state) */
.floating-audio-player.show {
    top: 70px; /* स्क्रीन के ऊपर आ जाएगा */
}

.floating-btn {
    background: #334155;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: 0.2s;
}
.floating-btn:hover { background: #475569; }
.close-btn:hover { background: #ef4444; }

.floating-text { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }

/* 🎵 Audio Waves Animation */
.audio-waves { display: flex; align-items: center; gap: 3px; height: 20px; }
.wave { width: 3px; height: 5px; background: #3b82f6; border-radius: 3px; transition: 0.2s; }

/* जब प्ले हो रहा हो तब वेव एनिमेट करें */
.audio-waves.playing .wave { animation: bounceWave 1s infinite ease-in-out; }
.audio-waves.playing .wave:nth-child(1) { animation-delay: 0s; }
.audio-waves.playing .wave:nth-child(2) { animation-delay: 0.2s; }
.audio-waves.playing .wave:nth-child(3) { animation-delay: 0.4s; }
.audio-waves.playing .wave:nth-child(4) { animation-delay: 0.1s; }

@keyframes bounceWave {
    0%, 100% { height: 5px; background: #3b82f6; }
    50% { height: 20px; background: #60a5fa; }
}