/*
Theme Name: Pahali Khabar Pro
Theme URI: https://pahalikhabar.in
Author: Rakesh Kumar
Author URI: https://pahalikhabar.in
Description: Custom premium Hindi news theme for Pahali Khabar - fast, AdSense-ready, mobile-first design with breaking news ticker, AJAX search, and native reading time / view counter features.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pahalikhabarpro
*/

/* ==========================================================================
   GLOBAL LAYOUT & CONTAINER CONFIGURATION (1200px FIXED WIDTH)
   ========================================================================== */
:root {
    --bg-global: #f6f6f6;
    --text-dark: #111111;
    --brand-bright-red: #e10600;
    --border-light: #e2e8f0;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0; padding: 0; background-color: var(--bg-global);
    color: var(--text-dark); font-family: var(--font-stack); -webkit-font-smoothing: antialiased;
}

.header-container, .container, .footer-container { 
    width: 100% !important; 
    max-width: 1200px !important; 
    margin: 0 auto !important; 
    padding: 0 15px !important; 
    box-sizing: border-box !important; 
}

.header-container, .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 1. BLACK TOP BAR FIXED */
.header-top-black-bar {
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    padding: 8px 0 !important;
    width: 100% !important;
}
.top-bar-left { display: flex !important; align-items: center !important; gap: 15px !important; }
.top-trending-tag { display: flex !important; align-items: center !important; gap: 8px !important; }
.trending-badge { background: var(--brand-bright-red) !important; color: #ffffff !important; padding: 2px 6px !important; font-weight: bold !important; border-radius: 2px !important; }
.top-bar-right-socials { display: flex !important; gap: 15px !important; }
.top-bar-right-socials a { color: #ffffff !important; font-size: 14px !important; }

/* 2. MIDDLE BRANDING AREA FIXED */
.header-middle-branding-area {
    background: #ffffff !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
    width: 100% !important;
}
.desktop-header-row { display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; }
.logo-flex-link { display: flex !important; align-items: center !important; gap: 12px !important; text-decoration: none !important; }

.desktop-logo img { height: 60px !important; width: 60px !important; object-fit: contain !important; display: block !important; }
.logo-text-group { display: flex !important; flex-direction: column !important; justify-content: center !important; text-align: left !important; }
.logo-title-row { font-size: 28px !important; font-weight: 800 !important; line-height: 1.1 !important; font-family: system-ui, sans-serif !important; }
.logo-title-row .text-red { color: #e10600 !important; }
.logo-title-row .text-black { color: #111111 !important; }
.logo-tagline { font-size: 13px !important; color: #555555 !important; font-weight: 600 !important; margin-top: 2px !important; }

.desktop-header-ad { flex: 1 !important; display: flex !important; justify-content: center !important; }
.banner-728x90-placeholder { background: #f3f4f6; border: 1px dashed #cbd5e1; width: 728px; height: 90px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #94a3b8; font-weight: bold; }

.desktop-search button { background: none !important; border: 1px solid #e2e8f0 !important; border-radius: 50% !important; width: 40px !important; height: 40px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; color: #111111 !important; font-size: 15px !important; }

/* 3. RED PRIMARY NAVIGATION FIXED */
.header-navigation-red-bar { background: #e10600 !important; width: 100% !important; padding: 0 !important; margin: 0 !important; display: block !important; }
.menu-flex-wrapper { display: flex !important; justify-content: flex-start !important; align-items: center !important; background: #e10600 !important; }
.home-icon-link a { color: #ffffff !important; font-size: 16px !important; padding: 14px 20px !important; display: block !important; }
.home-icon-link a:hover { background: rgba(0,0,0,0.12) !important; }
.main-horizontal-menu { display: flex !important; flex-direction: row !important; list-style: none !important; margin: 0 !important; padding: 0 !important; background: #e10600 !important; }
.main-horizontal-menu li { background: #e10600 !important; margin: 0 !important; padding: 0 !important; }
.main-horizontal-menu li a { color: #ffffff !important; display: block !important; padding: 14px 18px !important; font-size: 15px !important; font-weight: bold !important; text-decoration: none !important; background: #e10600 !important; transition: background 0.2s !important; }
.main-horizontal-menu li a:hover, .main-horizontal-menu li.current-menu-item > a { background: rgba(0,0,0,0.15) !important; }

/* 4. BREAKING NEWS TICKER FIXED */
.header-breaking-news-ticker { background: #ffffff !important; border: 1px solid #e5e7eb !important; margin: 12px auto 0 auto !important; height: 42px !important; border-radius: 4px !important; width: 100% !important; overflow: hidden !important; }
.ticker-flex-wrapper { display: flex !important; align-items: center !important; height: 100% !important; width: 100% !important; }
.breaking-badge-title { background: var(--brand-bright-red) !important; color: #ffffff !important; font-size: 13px !important; font-weight: bold !important; padding: 0 16px !important; height: 100% !important; display: flex !important; align-items: center !important; white-space: nowrap !important; }
.ticker-audio-icon { padding: 0 10px !important; color: var(--brand-bright-red) !important; }
.ticker-text-scroller { flex: 1 !important; font-size: 14px !important; font-weight: bold !important; color: #222222 !important; }

/* HOMEPAGE GRID SYSTEM */
.main-homepage-content { background: #f8fafc !important; padding: 20px 0 !important; width: 100% !important; }
.homepage-grid-wrapper { display: flex !important; gap: 25px !important; align-items: flex-start !important; }
.left-main-content-area { width: 70% !important; display: flex !important; flex-direction: column !important; gap: 30px !important; }
.right-sidebar-area { width: 30% !important; display: flex !important; flex-direction: column !important; gap: 25px !important; }
.magazine-hero-block { display: grid !important; grid-template-columns: 1.6fr 1fr !important; gap: 20px !important; background: #ffffff !important; padding: 15px !important; border-radius: 6px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important; }
.hero-main-story a { text-decoration: none !important; color: inherit !important; }
.hero-img-container { position: relative !important; width: 100% !important; height: 340px !important; overflow: hidden !important; border-radius: 4px !important; }
.hero-img-container img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.hero-badge-tag { position: absolute !important; top: 12px !important; left: 12px !important; background: #e10600 !important; color: #ffffff !important; padding: 4px 10px !important; font-size: 11px !important; font-weight: bold !important; border-radius: 2px !important; }
.hero-text-content { margin-top: 15px !important; }
.hero-title { font-size: 24px !important; font-weight: 800 !important; color: #111111 !important; margin: 0 0 10px 0 !important; line-height: 1.3 !important; }
.hero-meta { font-size: 13px !important; color: #64748b !important; }
.hero-side-stories { display: flex !important; flex-direction: column !important; gap: 12px !important; }
.side-story-item { border-bottom: 1px solid #f1f5f9 !important; padding-bottom: 10px !important; }
.side-story-item:last-child { border: none !important; padding: 0 !important; }
.side-story-link { display: flex !important; gap: 12px !important; text-decoration: none !important; color: inherit !important; }
.side-story-img { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; border-radius: 4px !important; overflow: hidden !important; }
.side-story-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.side-story-info h4 { font-size: 14px !important; font-weight: 700 !important; color: #1e293b !important; margin: 0 0 4px 0 !important; line-height: 1.4 !important; }
.story-date { font-size: 11px !important; color: #94a3b8 !important; }

.homepage-categories-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 25px !important; }
.cat-block-box { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; padding: 15px !important; }
.cat-block-header { display: flex !important; justify-content: space-between !important; align-items: center !important; border-bottom: 2px solid #f1f5f9 !important; padding-bottom: 8px !important; margin-bottom: 15px !important; }
.cat-title-name { font-size: 16px !important; font-weight: bold !important; color: #e10600 !important; margin: 0 !important; position: relative !important; }
.cat-more-btn { font-size: 12px !important; color: #64748b !important; text-decoration: none !important; font-weight: 600 !important; }
.cat-post-item { display: flex !important; gap: 12px !important; margin-bottom: 12px !important; padding-bottom: 12px !important; border-bottom: 1px dashed #f1f5f9 !important; }
.cat-post-item:last-child { margin: 0 !important; padding: 0 !important; border: none !important; }
.cat-post-img { width: 75px !important; height: 55px !important; flex-shrink: 0 !important; border-radius: 4px !important; overflow: hidden !important; }
.cat-post-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.cat-post-details h5 { font-size: 13px !important; font-weight: 700 !important; margin: 0 0 4px 0 !important; line-height: 1.4 !important; }
.cat-post-details h5 a { color: #1e293b !important; text-decoration: none !important; }
.cat-date { font-size: 11px !important; color: #94a3b8 !important; }

.sidebar-widget { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; padding: 18px !important; }
.sidebar-title { font-size: 16px !important; font-weight: bold !important; color: #111111 !important; margin: 0 0 15px 0 !important; padding-bottom: 8px !important; border-bottom: 2px solid #111111 !important; }
.trading-list-wrapper { display: flex !important; flex-direction: column !important; gap: 12px !important; }
.trending-item { display: flex !important; align-items: center !important; gap: 12px !important; position: relative !important; }
.trending-number { width: 24px !important; height: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #e10600 !important; color: #ffffff !important; font-size: 12px !important; font-weight: bold !important; border-radius: 3px !important; flex-shrink: 0 !important; }
.trending-thumb { width: 55px !important; height: 42px !important; border-radius: 4px !important; overflow: hidden !important; flex-shrink: 0 !important; }
.trending-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.trending-text { font-size: 13px !important; font-weight: 700 !important; margin: 0 !important; line-height: 1.4 !important; }
.trending-text a { color: #1e293b !important; text-decoration: none !important; }
.timeline-list { list-style: none !important; padding: 0 !important; margin: 0 !important; position: relative !important; padding-left: 15px !important; border-left: 2px solid #e2e8f0 !important; }
.timeline-list li { position: relative !important; margin-bottom: 15px !important; }
.timeline-dot { position: absolute !important; left: -21px !important; top: 4px !important; width: 10px !important; height: 10px !important; background: #e10600 !important; border-radius: 50% !important; border: 2px solid #ffffff !important; }
.timeline-post-title { font-size: 13px !important; font-weight: bold !important; color: #334155 !important; text-decoration: none !important; display: block !important; margin-bottom: 2px !important; }
.timeline-time { font-size: 11px !important; color: #94a3b8 !important; font-weight: 600 !important; }
.banner-300x250-placeholder { background: #f8fafc; border: 1px dashed #cbd5e1; height: 250px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #94a3b8; font-weight: bold; }
.banner-970x90-placeholder { background: #ffffff; border: 1px dashed #cbd5e1; height: 90px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #94a3b8; font-weight: bold; margin-top: 10px; width: 100%; }

/* ==========================================================================
   EXCLUSIVE & PERFECT PREMIUM DARK FOOTER
   ========================================================================== */
.site-premium-footer { 
    background-color: #111111 !important; 
    background: #111111 !important;
    color: #cbd5e1 !important; 
    margin-top: 50px !important; 
    padding: 50px 0 0 0 !important; 
    width: 100% !important; 
    display: block !important; 
    clear: both !important;
}

.main-footer-grid { 
    display: grid !important; 
    grid-template-columns: 1.5fr 1fr 1fr !important; 
    gap: 40px !important; 
    padding-bottom: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-column-box { display: flex !important; flex-direction: column !important; }
.footer-logo-row { display: flex !important; align-items: center !important; gap: 12px !important; margin-bottom: 18px !important; }
.footer-logo-row img { height: 50px !important; width: auto !important; object-fit: contain !important; }
.footer-logo-text { font-size: 26px !important; font-weight: 800 !important; }
.footer-logo-text .text-red { color: #e10600 !important; }
.footer-logo-text .text-white { color: #ffffff !important; }
.footer-about-text { font-size: 14px !important; line-height: 1.6 !important; color: #a0aec0 !important; margin: 0 0 20px 0 !important; text-align: left !important; }

.footer-social-links { display: flex !important; gap: 10px !important; list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-social-links a { width: 38px !important; height: 38px !important; background: #222222 !important; color: #ffffff !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 4px !important; font-size: 15px !important; text-decoration: none !important; }
.footer-social-links a:hover { background: #e10600 !important; color: #ffffff !important; }

.footer-section-title { 
    color: #ffffff !important; font-size: 18px !important; font-weight: 700 !important; position: relative !important; margin: 0 0 22px 0 !important; padding-bottom: 8px !important; border-bottom: 2px solid #222222 !important; text-align: left !important;
}
.footer-section-title::after { 
    content: '' !important; position: absolute !important; left: 0 !important; bottom: -2px !important; width: 45px !important; height: 2px !important; background: #e10600 !important; 
}

.footer-vertical-links { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.footer-vertical-links li { margin-bottom: 12px !important; padding: 0 !important; list-style: none !important; background: transparent !important; }
.footer-vertical-links li::before { content: none !important; display: none !important; }
.footer-vertical-links li a { 
    color: #a0aec0 !important; font-size: 14px !important; text-decoration: none !important; display: flex !important; align-items: center !important; gap: 8px !important; background: transparent !important;
}
.footer-vertical-links li a:hover { color: #ffffff !important; padding-left: 4px !important; transition: all 0.2s ease !important; }

.footer-copyright-bar { 
    background: #0a0a0a !important; padding: 18px 0 !important; border-top: 1px solid #1f1f1f !important; font-size: 13px !important; color: #718096 !important; width: 100% !important; margin-top: 20px !important;
}
.copyright-flex { display: flex !important; justify-content: space-between !important; align-items: center !important; flex-wrap: wrap !important; }
.copyright-flex p { margin: 0 !important; color: #718096 !important; }
.copyright-flex .text-red { color: #e10600 !important; font-weight: bold !important; }


/* ==========================================================================
   DESKTOP RESPONSIVE BREAKPOINT FIXES
   ========================================================================== */
@media (min-width: 992px) {
    .mobile-header-wrapper {
        display: none !important;
    }
    .mobile-hamburger-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
    #mobile-drawer-overlay {
        display: none !important;
    }
}


/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    html, body {
        margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden !important;
    }
    * { box-sizing: border-box; }

    .header-container, .container, .footer-container {
        width: 100%; max-width: 100%; padding: 0 10px;
    }

    .desktop-header-row {
        display: none !important;
    }

    .header-top-black-bar { padding: 6px 0; }
    .header-top-black-bar .header-container { display: flex; justify-content: space-between; align-items: center; }
    .top-bar-left { font-size: 12px; }
    .top-bar-right-socials { display: flex; gap: 12px; }

    .mobile-header-wrapper {
        display: grid !important;
        grid-template-columns: 40px 1fr 40px;
        grid-template-areas: "menu logo search";
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        background: #ffffff;
    }

    .mobile-logo-area {
        grid-area: logo;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
    }

    .mobile-logo-area img {
        width: 52px !important;
        height: 52px !important;
        object-fit: contain;
    }

    .mobile-logo-text {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .mobile-logo-title {
        font-size: 22px !important;
        font-weight: 700;
        line-height: 1;
        color: #111111;
    }

    .mobile-logo-title .text-red {
        color: #e10600;
    }

    .mobile-logo-tagline {
        font-size: 11px !important;
        color: #666666;
    }

    .mobile-search-btn {
        grid-area: search;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        font-size: 22px;
        cursor: pointer;
        color: #111111;
        justify-self: end;
    }

    .mobile-hamburger-toggle {
        grid-area: menu;
        display: block !important;
        background: none;
        border: 0;
        font-size: 24px;
        cursor: pointer;
        color: #111111;
        padding: 0;
        margin: 0;
    }

    .header-navigation-red-bar {
        display: none !important;
    }

    .header-breaking-news-ticker { margin-top: 10px; height: 38px !important; }
    .homepage-grid-wrapper { flex-direction: column !important; }
    .left-main-content-area, .right-sidebar-area { width: 100% !important; }
    .magazine-hero-block { grid-template-columns: 1fr !important; }
    .homepage-categories-grid { grid-template-columns: 1fr !important; }

    /* Hero image ko mobile par 16:9 me fix kiya - fixed 340px height ki jagah
       aspect-ratio use kar rahe hain, isliye ye har phone width (iPhone SE se
       bade phones tak) par khud-ba-khud sahi 16:9 crop deta hai */
    .hero-img-container {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

.main-footer-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:30px !important;
}

.footer-column-box{
    text-align:center !important;
}

.footer-logo-row{
    justify-content:center !important;
}

.footer-about-text{
    text-align:center !important;
}

.footer-social-links{
    justify-content:center !important;
}

.footer-section-title{
    text-align:center !important;
}

.footer-section-title::after{
    left:50% !important;
    transform:translateX(-50%) !important;
}

.footer-vertical-links li a{
    justify-content:center !important;
}

.copyright-flex{
    flex-direction:column !important;
    gap:10px !important;
    text-align:center !important;
}

    #mobile-drawer-overlay {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100%;
        background: rgba(0,0,0,.5); transition: .3s; z-index: 99999;
    }
    #mobile-drawer-overlay.active { left: 0; display: block !important; }
    .mobile-drawer { width: 280px; max-width: 85%; height: 100%; background: #fff; overflow-y: auto; }
    img { max-width: 100%; height: auto; }
}

/* ==========================================================================
   AJAX SEARCH OVERLAY BOX (Fixed overlay — layout flow ko disturb nahi karta)
   ========================================================================== */

.ajax-search-overlay-box {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(17, 17, 17, 0.75) !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 90px 15px !important;
}

.ajax-search-overlay-box.hidden {
    display: none !important;
}

.ajax-search-box-inner {
    position: relative !important;
    width: 100% !important;
    max-width: 600px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25) !important;
}

.ajax-search-close-btn {
    position: absolute !important;
    top: -14px !important;
    right: -14px !important;
    background: #111111 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    font-size: 15px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    z-index: 2 !important;
}

.search-form-component-box { width: 100% !important; margin: 0 !important; }
.search-input-group-flex { display: flex !important; align-items: center !important; border: 2px solid var(--brand-bright-red, #e10600) !important; border-radius: 6px !important; overflow: hidden !important; }
.search-field-input-box { flex: 1 !important; border: none !important; outline: none !important; padding: 12px 14px !important; font-size: 15px !important; font-family: var(--font-stack) !important; }
.search-submit-action-btn { background: var(--brand-bright-red, #e10600) !important; border: none !important; color: #ffffff !important; width: 46px !important; height: 46px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; font-size: 16px !important; }

.ajax-search-results-box { margin-top: 14px !important; max-height: 55vh !important; overflow-y: auto !important; }
.ajax-search-row-item { display: flex !important; align-items: center !important; gap: 12px !important; padding: 10px 6px !important; text-decoration: none !important; color: #111111 !important; border-bottom: 1px solid var(--border-light, #e2e8f0) !important; }
.ajax-search-row-item:hover { background: #f6f6f6 !important; }
.ajax-search-row-item img { width: 60px !important; height: 40px !important; object-fit: cover !important; border-radius: 4px !important; flex-shrink: 0 !important; }
.ajax-row-title { font-size: 14px !important; font-weight: 600 !important; line-height: 1.4 !important; }
.search-loading, .search-no-results-msg, .search-error-msg { padding: 14px 6px !important; font-size: 14px !important; color: #555555 !important; text-align: center !important; }

@media (max-width: 600px) {
    .ajax-search-overlay-box { padding: 70px 12px !important; }
    .ajax-search-box-inner { padding: 18px !important; }
}


/* ==========================================================================
   MOBILE DRAWER - LOGO, MENU, SOCIAL, DARK MODE ROW STYLING
   (Pehle ye bilkul unstyled tha isliye default blue underlined links dikh rahe the)
   ========================================================================== */

.drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px !important;
    border-bottom: 1px solid var(--border-light, #e2e8f0) !important;
}

.drawer-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.drawer-logo img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    display: block !important;
}

.drawer-logo-title-row {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.drawer-logo-title-row .text-red { color: #e10600 !important; }
.drawer-logo-title-row .text-black { color: #111111 !important; }

.drawer-logo-tagline {
    font-size: 11px !important;
    color: #555555 !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
}

#drawer-close-btn {
    background: none !important;
    border: 1px solid var(--border-light, #e2e8f0) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #111111 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.drawer-dark-mode-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-light, #e2e8f0) !important;
}

.drawer-dark-mode-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111111 !important;
}

.dark-mode-toggle-btn {
    background: none !important;
    border: 1px solid var(--border-light, #e2e8f0) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #111111 !important;
    font-size: 15px !important;
}

.desktop-search {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.drawer-navigation {
    padding: 8px 0 !important;
}

.mobile-vertical-drawer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-vertical-drawer-menu li {
    border-bottom: 1px solid var(--border-light, #e2e8f0) !important;
}

.mobile-vertical-drawer-menu li a {
    display: block !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    text-decoration: none !important;
}

.mobile-vertical-drawer-menu li a:hover,
.mobile-vertical-drawer-menu li.current-menu-item > a {
    color: #e10600 !important;
    background: #f6f6f6 !important;
}

.drawer-social {
    display: flex !important;
    gap: 14px !important;
    padding: 16px !important;
    border-top: 1px solid var(--border-light, #e2e8f0) !important;
}

.drawer-social a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #111111 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.drawer-social a:hover { background: #e10600 !important; }


/* ==========================================================================
   DARK MODE (data-theme="dark" on <html>) — layout same rehta hai, sirf colors
   ========================================================================== */

html[data-theme="dark"] body { background-color: #0e0e0e !important; color: #eaeaea !important; }

html[data-theme="dark"] .header-middle-branding-area,
html[data-theme="dark"] .header-breaking-news-ticker,
html[data-theme="dark"] .magazine-hero-block,
html[data-theme="dark"] .cat-block-box,
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .mobile-header-wrapper,
html[data-theme="dark"] .mobile-drawer,
html[data-theme="dark"] .archive-header-box,
html[data-theme="dark"] .archive-feed-compact-card,
html[data-theme="dark"] .banner-728x90-placeholder,
html[data-theme="dark"] .banner-970x90-placeholder,
html[data-theme="dark"] .ajax-search-box-inner {
    background-color: #1a1a1a !important;
    color: #eaeaea !important;
    border-color: #2e2e2e !important;
}

html[data-theme="dark"] .logo-tagline,
html[data-theme="dark"] .mobile-logo-tagline,
html[data-theme="dark"] .drawer-logo-tagline,
html[data-theme="dark"] .entry-meta-row-stamp,
html[data-theme="dark"] .drawer-dark-mode-label,
html[data-theme="dark"] p {
    color: #b7b7b7 !important;
}

html[data-theme="dark"] .logo-title-row .text-black,
html[data-theme="dark"] .mobile-logo-title .text-black,
html[data-theme="dark"] .drawer-logo-title-row .text-black,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .archive-main-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    color: #f2f2f2 !important;
}

html[data-theme="dark"] .desktop-search button,
html[data-theme="dark"] .dark-mode-toggle-btn,
html[data-theme="dark"] #drawer-close-btn,
html[data-theme="dark"] #mobile-hamburger-trigger,
html[data-theme="dark"] #search-trigger-bottom {
    color: #eaeaea !important;
    border-color: #333333 !important;
}

html[data-theme="dark"] .mobile-vertical-drawer-menu li a { color: #eaeaea !important; }
html[data-theme="dark"] .mobile-vertical-drawer-menu li a:hover { background: #262626 !important; }
html[data-theme="dark"] .mobile-vertical-drawer-menu li,
html[data-theme="dark"] .drawer-header,
html[data-theme="dark"] .drawer-dark-mode-row,
html[data-theme="dark"] .drawer-social {
    border-color: #2e2e2e !important;
}

html[data-theme="dark"] .search-field-input-box { background: #1a1a1a !important; color: #eaeaea !important; }


/* ==========================================================================
   DARK MODE — CATCH-ALL FIX for inline style="" colors used across
   single.php / category.php / front-page.php / archive.php / index.php etc.
   (Ye templates inline colors use karte hain jo pehle dark mode mein cover
   nahi hue the, isliye background white reh jaata tha aur text ghul jaata tha)
   ========================================================================== */

html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #f8fafc"],
html[data-theme="dark"] [style*="background: #f1f5f9"],
html[data-theme="dark"] [style*="background:#f1f5f9"] {
    background: #1a1a1a !important;
}

html[data-theme="dark"] [style*="color: #1e293b"],
html[data-theme="dark"] [style*="color: #334155"],
html[data-theme="dark"] [style*="color: #111111"] {
    color: #f2f2f2 !important;
}

html[data-theme="dark"] [style*="color: #64748b"],
html[data-theme="dark"] [style*="color: #94a3b8"],
html[data-theme="dark"] [style*="color: #475569"] {
    color: #a8a8a8 !important;
}

html[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border-bottom: 1px solid #f1f5f9"],
html[data-theme="dark"] [style*="border-top: 2px solid #f1f5f9"],
html[data-theme="dark"] [style*="border-top: 1px dashed #f1f5f9"],
html[data-theme="dark"] [style*="border-top: 1px dashed #e2e8f0"],
html[data-theme="dark"] [style*="border-bottom: 1px dashed #f1f5f9"],
html[data-theme="dark"] [style*="border-left: 2px solid #cbd5e1"],
html[data-theme="dark"] [style*="border: 1px dashed #cbd5e1"] {
    border-color: #2e2e2e !important;
}

/* Post thumbnail placeholder background used before image loads */
html[data-theme="dark"] .single-post-featured-thumb,
html[data-theme="dark"] .archive-feed-thumb {
    background: #262626 !important;
}
