/* ==========================================================================
   1. GLOBAL RESET & BASE SETTINGS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: #fff;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. DESKTOP TOPBAR (Black Ribbon)
   ========================================================================== */
.topbar {
    background: #000000;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
}

.topbar-wrapper {
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: #a4a4a4;
}

.topbar-left a {
    color: #a4a4a4;
    transition: color 0.2s ease;
}

.topbar-left a:hover {
    color: #fff;
}

.topbar-left .sep {
    color: #333;
}

/* ==========================================================================
   3. MAIN HEADER AREA (PC & Mobile Absolute Layout Control)
   ========================================================================== */
.main-header {
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 996;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Setup - Stays Left Always */
.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    height: 52px;
    object-fit: contain;
    display: block;
}

/* Actions Wrapper - Stays Right Always */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Pure Jagran Red Color Setup for Subscribe Button */
.subscribe-btn {
    background: #e32620 !important; 
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.subscribe-btn:hover {
    background: #c91f1a !important;
}

/* Circular User Profile Icon */
.profile-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaeaea !important; 
    color: #000 !important;
    display: flex !important; /* Bootstrap d-none को ओवरराइड करने के लिए */
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Hamburger Menu Icon */
.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #000 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* ==========================================================================
   4. NAVIGATION BAR (Desktop & Mobile Swiper Strip)
   ========================================================================== */
.nav-utility-wrapper {
    background: #fff;
    border-bottom: 1px solid #e2e2e2;
    padding: 6px 0;
}

.nav-inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-nav {
    width: 100%;
}

.category-nav ul {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-nav a {
    color: #000;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.category-nav a:hover,
.category-nav a.active,
.category-nav a.highlight-red {
    color: #e32620;
}

.utility-icons-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.utility-icons-right .ut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #444;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.utility-icons-right .ut-item i {
    font-size: 16px;
    color: #000;
    margin-bottom: 3px;
}

/* ==========================================================================
   5. FOCUS BAR / TRENDING STRIP
   ========================================================================== */
.trending-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.trending-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-title {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.tag-title i {
    color: #e32620;
    margin-left: 4px;
}

.tags-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    scrollbar-width: none; /* Firefox के लिए स्क्रॉल बार छुपाया */
}

.tags-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari के लिए स्क्रॉल बार छुपाया */
}

.badge-tag {
    background: #f4f4f4;
    border: 1px solid #eaeaea;
    padding: 6px 14px;
    border-radius: 20px;
    color: #444;
    font-size: 12px;
    font-weight: 600;
}

.badge-tag.tag-red-pill {
    background: #e32620;
    color: #fff;
    border-color: #e32620;
}

/* ==========================================================================
   6. MOBILE OVERLAY & DRAWER SIDEBAR
   ========================================================================== */
.mobile-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-overlay.active {
    display: block;
}

.custom-sidebar-drawer {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.custom-sidebar-drawer.active {
    right: 0;
}

.mobile-header-close {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #eee;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-links-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.sidebar-links-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f6f6f6;
}

.sidebar-links-list li a {
    font-size: 15px;
    font-weight: 700;
}

.submenu-toggle {
    font-size: 18px;
    color: #999;
}

.sidebar-app-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    padding: 16px 0;
    text-align: center;
}

.sidebar-app-banner a {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   7. STICKY BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 997;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
    color: #444;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item.active i {
    color: #e32620; 
}

.short-video-center-item {
    position: relative;
}

.play-btn-outer {
    margin-top: -26px;
    background: #fff;
    padding: 4px;
    border-radius: 50%;
}

.play-btn-circle {
    width: 40px;
    height: 40px;
    background: #e32620;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-circle i {
    color: #fff !important;
    font-size: 14px !important;
    margin-left: 3px;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   8. PURE MOBILE RESPONSIVE MEDIA QUERIES (100% BREAKPOINT CONTROLS)
   ========================================================================== */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 60px; /* बॉटम नैविगेशन बार के लिए स्पेस */
    }

    /* 1. पुराने लेफ्ट साइड वाले एक्स्ट्रा बटन को पूरी तरह गायब कर दिया */
    .main-header .header-row > .icon-btn.menu-btn.d-lg-none:first-child {
        display: none !important;
    }

    /* 2. हेडर रो को फ्लेक्स रो अलाइनमेंट दिया */
    .header-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* 3. लोगो हमेशा लेफ्ट में सेट रहेगा */
    .logo-area {
        display: flex !important;
    }

    .logo {
        height: 34px !important; /* मोबाइल के अनुसार रेस्पॉन्सिव साइज */
    }

    /* 4. राइट साइड के बटन्स का ग्रुप (Subscribe -> Profile -> Menu) */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* 5. सब्सक्राइब करें बटन मोबाइल पर दिखेगा */
    .header-actions .subscribe-btn {
        display: inline-flex !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
    }

    /* 6. यूज़र आइकॉन मोबाइल पर भी जबरदस्ती शो किया */
    .header-actions .profile-btn-circle {
        display: flex !important; 
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }

    /* 7. मेनू बटन सबसे दाईं तरफ राइट कॉर्नर में दिखेगा */
    .header-actions .icon-btn.menu-btn.d-none {
        display: flex !important;
        font-size: 22px !important;
    }

    /* 8. कैटगरी बार मोबाइल व्यू - बिल्कुल जागरण जैसा हॉरिजॉन्टल स्क्रॉल */
    .nav-utility-wrapper.d-none {
        display: block !important;
        border-bottom: 1px solid #f1f1f1;
        padding: 0 !important;
    }

    .nav-inner-container {
        padding: 0 !important;
    }

    .utility-icons-right {
        display: none !important; /* मोबाइल पर इसे छुपा दिया क्योंकि नीचे बॉटम बार है */
    }

    .category-nav ul {
        padding: 10px 15px !important;
        gap: 20px !important;
        overflow-x: auto !important; /* हॉरिजॉन्टल स्क्रॉल चालू */
        white-space: nowrap !important;
        scrollbar-width: none !important; /* स्क्रॉल बार छुपाया */
    }

    .category-nav ul::-webkit-scrollbar {
        display: none !important;
    }
    
    .category-nav ul li {
        display: inline-block !important;
    }

    .category-nav a {
        font-size: 15px !important;
        font-weight: 700 !important;
    }
}