/* ==========================================================================
   MahsulGuru - Dr. Sanjay Kundetkar Official Portal Stylesheet
   UI/UX PRO MAX Design System: Executive Royal Navy & Amber Gold Authority
   ========================================================================== */

/* 1. Global Typography & Base Settings - Inherit Dynamic Admin Fonts & Protect Icon Fonts */
body, p, label, input, button, select, textarea, .nav-bar, .footer {
    font-family: var(--mg-body-font, 'Mukta', 'Noto Sans Devanagari', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    letter-spacing: normal;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.item-title, .header-title {
    font-family: var(--mg-heading-font, 'Mukta', 'Noto Sans Devanagari', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    letter-spacing: normal;
}

/* CRITICAL FIX: Ensure Font Awesome Icons ALWAYS render their own font and NEVER get overridden by text fonts */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, 
[class^="fa-"], [class*=" fa-"],
.svg-inline--fa, i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

body {
    background-color: #f8fafc !important;
    color: #1e293b;
    line-height: 1.65 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Global Headings & Typography Hierarchy (Zero-specificity default so dark banners & utility classes win cleanly) */
:where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    color: #0f2b48;
    font-weight: var(--mg-heading-weight, 700);
    line-height: 1.35;
}

p, .text-muted {
    line-height: 1.65 !important;
}

.text-muted {
    color: #64748b;
}

/* 3. Top Announcement Bar - Sleek Luxury Indigo & Gold Banner */
.announcement {
    background: linear-gradient(90deg, #071324 0%, #0f2b48 50%, #071324 100%) !important;
    border-bottom: 1px solid rgba(217, 119, 6, 0.35) !important;
    padding: 10px 0 !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

.announcement-text {
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.announcement-text .btn {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 4px 16px !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4) !important;
    transition: transform 0.2s ease;
}

.announcement-text .btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
}

.announcement-close {
    background: transparent !important;
    color: #94a3b8 !important;
    border: none !important;
    font-size: 16px !important;
}

/* 4. Navigation Bar (Top Header & Secondary Navbar) */
.nav-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 43, 72, 0.05) !important;
    padding: 12px 0 !important;
    position: relative;
    z-index: 1040;
    overflow: visible;
}

.nav-bar.nav-bar-sm {
    z-index: 1030;
}

.nav-bar .link,
.nav-bar .link .link-title,
.nav-bar-links .link .link-title span,
.nav-bar .drop-down .drop-down-btn,
.nav-bar .drop-down .drop-down-btn span,
.nav-bar .drop-down .drop-down-btn i,
.nav-bar.nav-bar-sm .link,
.nav-bar.nav-bar-sm .drop-down .drop-down-btn {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: color 0.2s ease;
    opacity: 1 !important;
}

.nav-bar .link:hover,
.nav-bar .link:hover .link-title span,
.nav-bar-links .link:hover .link-title span,
.nav-bar .drop-down .drop-down-btn:hover,
.nav-bar .drop-down .drop-down-btn:hover span,
.nav-bar .drop-down .drop-down-btn:hover i,
.nav-bar .drop-down.active .drop-down-btn,
.nav-bar .drop-down.active .drop-down-btn span,
.nav-bar .drop-down.active .drop-down-btn i,
.nav-bar.nav-bar-sm .link:hover,
.nav-bar.nav-bar-sm .drop-down .drop-down-btn:hover,
.nav-bar-links .link.active .link-title span {
    color: #d97706 !important;
}

.nav-bar .drop-down .drop-down-menu {
    z-index: 1080 !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 43, 72, 0.16) !important;
    border-radius: 10px !important;
}

/* Cart Button in Navbar */
.cart-btn button {
    border: 1px solid #cbd5e1 !important;
    color: #0f2b48 !important;
    border-radius: 50px !important;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-btn button:hover {
    background-color: #0f2b48 !important;
    color: #ffffff !important;
    border-color: #0f2b48 !important;
}

.cart-counter {
    background: #d97706 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 5. Buttons (Primary, Outline, Success, Gold) */
.btn {
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    transition: all 0.25s ease !important;
}

.btn-primary {
    background-color: #0f2b48 !important;
    border-color: #0f2b48 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 43, 72, 0.2) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #163e66 !important;
    border-color: #163e66 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 43, 72, 0.28) !important;
}

.btn-outline-primary {
    border: 2px solid #0f2b48 !important;
    color: #0f2b48 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #0f2b48 !important;
    color: #ffffff !important;
}

.btn-warning, .btn-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4) !important;
}

/* 6. Hero Header & Glassmorphic Search Bar */
.header-image {
    background: linear-gradient(135deg, rgba(7, 19, 36, 0.96) 0%, rgba(15, 43, 72, 0.93) 50%, rgba(22, 62, 102, 0.91) 100%), 
                url("/themes/basic/images/home-page/1m2AY6ZckcOcys4_1735716557.png") center/cover no-repeat !important;
    padding: 70px 0 80px !important;
}

.header-search {
    max-width: 760px;
    margin: 30px auto 0;
}

.header-search .search {
    position: relative;
    width: 100%;
}

.header-search .search .search-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 64px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 6px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.header-search .search .search-input input {
    height: 100% !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    padding: 10px 145px 10px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #0f2b48 !important;
    background: transparent !important;
}

.header-search .search .search-input input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

.header-search .search .search-input .btn {
    position: absolute !important;
    right: 6px !important;
    top: 6px !important;
    bottom: 6px !important;
    height: calc(100% - 12px) !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 50px !important;
    padding: 0 28px !important;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4) !important;
    z-index: 5 !important;
}

.header-search .search .search-input .btn:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
    transform: scale(1.02);
}

/* Quick Tags: High Contrast Crisp Glass Chips */
.header-quick-tags {
    margin-top: 18px;
}

.header-quick-tags a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease !important;
}

.header-quick-tags a:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
}

/* 7. Stats Counter Cards (UI/UX Pro Max Cards) */
.trust-stats-section {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
}

.trust-counter-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 43, 72, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 24px 18px;
}

.trust-counter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 43, 72, 0.1) !important;
    border-color: rgba(217, 119, 6, 0.35);
}

.trust-counter-card .stat-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 8. Item Cards (3D Real eBook Styling) */
.item {
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 43, 72, 0.06) !important;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 36px rgba(15, 43, 72, 0.14) !important;
    border-color: #cbd5e1 !important;
}

.item-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    height: 195px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .item-header {
        height: 165px !important;
        padding: 8px !important;
    }
}

.item-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.item-img {
    max-height: 235px !important;
    max-width: 88% !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    box-shadow: -5px 0 14px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.35s ease !important;
}

.item:hover .item-img {
    transform: scale(1.05) !important;
}

.item-body {
    padding: 18px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-title {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    color: #0f2b48 !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.9em !important;
    text-decoration: none !important;
}

.item-title:hover {
    color: #d97706 !important;
}

.item-text {
    font-size: 0.88rem !important;
    color: #64748b !important;
    margin-bottom: 14px !important;
}

.item-purchase {
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.item-price-number {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f2b48 !important;
}

.item-price-through {
    font-size: 0.92rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through;
    margin-right: 6px;
}

/* Badges */
.item-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    width: auto !important;
    max-width: calc(100% - 24px);
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    z-index: 5 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.item-header:has(.item-badge) .topic-card-thumb {
    padding-top: 44px !important;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(15, 43, 72, 0.10) !important;
}

.bg-primary.bg-opacity-25 {
    background-color: rgba(15, 43, 72, 0.25) !important;
}

.bg-secondary.bg-opacity-10 {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

.item-badge-premium {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.item-badge-free {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.item-badge-sale {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.item-badge-trending {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* 9. Section Titles & Dividers */
.section {
    padding: 65px 0 !important;
}

.section-title-text {
    font-size: 1.95rem !important;
    font-weight: 800 !important;
    color: #0f2b48 !important;
    position: relative;
    padding-bottom: 12px;
}

.section-title-divider {
    height: 4px !important;
    width: 65px !important;
    background: linear-gradient(90deg, #d97706 0%, #0f2b48 100%) !important;
    border-radius: 3px !important;
    margin-top: 4px;
}

/* 10. Categories Swiper */
.home-category {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px 14px !important;
    box-shadow: 0 6px 18px rgba(15, 43, 72, 0.05) !important;
    transition: all 0.28s ease !important;
    display: block;
    text-align: center;
    text-decoration: none !important;
}

.home-category:hover {
    transform: translateY(-5px) !important;
    border-color: #d97706 !important;
    box-shadow: 0 14px 28px rgba(15, 43, 72, 0.12) !important;
}

.home-category-title {
    color: #0f2b48 !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    margin-top: 12px !important;
}

/* 11. Footer Polish */
.footer {
    background-color: #0a192f !important;
    border-top: 1px solid #162a45 !important;
    color: #94a3b8 !important;
}

.footer-upper {
    padding: 65px 0 45px !important;
}

.footer-lower {
    border-top: 1px solid #162a45 !important;
    padding: 22px 0 !important;
    background-color: #071324 !important;
}

.footer-text, .footer-copyright {
    color: #94a3b8 !important;
    line-height: 1.7 !important;
}

.footer-title .h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.footer-title-divider {
    height: 2px !important;
    width: 40px !important;
    background: #d97706 !important;
    margin: 8px 0 16px !important;
}

.footer-links .footer-text {
    color: #cbd5e1 !important;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.footer-links .footer-text:hover {
    color: #fbbf24 !important;
    padding-left: 4px;
}


/* Quick Tags: High Contrast Crisp Glass Chips */
.quick-tag-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    padding: 6px 18px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.quick-tag-chip:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
}


/* ==========================================================================
   UI/UX PRO MAX FIXES & ENHANCEMENTS
   ========================================================================== */

/* Fix: Executive Authority Pill in Hero / Author Section */
.executive-authority-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    padding: 6px 18px !important;
    border-radius: 50px !important;
    background: rgba(217, 119, 6, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #fbbf24 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Fix: Utility Tool Badge (Land Area Converter) - Crisp official blue pill */
.utility-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 20px !important;
    border-radius: 50px !important;
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1) !important;
}

/* 13. Free 1-Page Preview PDF Styling (मोफत १ पान नमुना) */
.preview-sample-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.preview-sample-pill:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
}

.preview-sample-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
    border: 1.5px solid #fca5a5 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08) !important;
}

/* 14. Mobile Bottom App Bar (UI/UX PRO MAX Smartphone Navigation) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(10, 25, 47, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #94a3b8 !important;
    text-decoration: none !important;
    padding: 6px 2px;
    transition: all 0.2s ease;
    font-size: 0.72rem;
    font-weight: 600;
}

.mobile-bottom-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: #fbbf24 !important;
}

.mobile-bottom-nav-item.active i,
.mobile-bottom-nav-item:hover i {
    transform: translateY(-2px);
    color: #fbbf24 !important;
}

.mobile-bottom-nav-item.highlight-vip {
    color: #f59e0b !important;
}

.mobile-bottom-nav-item.highlight-vip i {
    color: #f59e0b !important;
}

.mobile-bottom-nav-item.highlight-whatsapp {
    color: #25D366 !important;
}

.mobile-bottom-nav-item.highlight-whatsapp i {
    color: #25D366 !important;
}

/* 15. Mobile Smartphone Responsiveness Tweaks */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }
    
    .header-image {
        padding: 40px 14px 45px !important;
    }

    .header-title {
        font-size: 1.85rem !important;
        line-height: 1.3 !important;
    }

    .header-text {
        font-size: 0.95rem !important;
    }

    .header-search {
        margin-top: 20px !important;
    }

    .header-search .search .search-input {
        height: 52px !important;
        padding: 4px !important;
        border-radius: 40px !important;
    }

    .header-search .search .search-input input {
        padding: 6px 95px 6px 16px !important;
        font-size: 0.92rem !important;
    }

    .header-search .search .search-input .btn {
        right: 4px !important;
        top: 4px !important;
        bottom: 4px !important;
        height: calc(100% - 8px) !important;
        padding: 0 16px !important;
        font-size: 0.92rem !important;
        transform: none !important;
    }

    .header-quick-tags {
        gap: 6px !important;
        margin-top: 14px !important;
    }

    .quick-tag-chip {
        padding: 4px 12px !important;
        font-size: 0.8rem !important;
    }

    .trust-counter-card {
        padding: 16px 10px !important;
    }

    .trust-counter-card h3 {
        font-size: 1.15rem !important;
    }

    .trust-counter-card p {
        font-size: 0.78rem !important;
    }

    .author-banner {
        padding: 24px 16px !important;
    }

    .author-banner h2 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }

    .calc-box {
        padding: 20px 14px !important;
    }

    /* Floating WhatsApp button: hidden on mobile because bottom app bar includes it */
    .mahsul-whatsapp-float {
        display: none !important;
    }
}

/* 16. Book Single Details Page - World-Class CTA Buttons & Guarantees */
.btn-buy-now {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #22c55e 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35) !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    text-align: center;
}

.btn-buy-now:hover, .btn-buy-now:focus {
    background: linear-gradient(135deg, #166534 0%, #15803d 50%, #16a34a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.48) !important;
    color: #ffffff !important;
}

.btn-outline-cart {
    background-color: #ffffff !important;
    border: 2px solid #0f2b48 !important;
    color: #0f2b48 !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

.btn-outline-cart:hover {
    background-color: #0f2b48 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 43, 72, 0.18) !important;
}

.book-guarantees {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   MOBILE HEADER & FOOTER PERFECTION (UI/UX PRO MAX)
   ========================================================================== */

/* 17. Hamburger Menu Button: Solid, High-Contrast & Clearly Visible */
.nav-bar .nav-bar-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: #0f2b48 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(15, 43, 72, 0.25) !important;
    transition: all 0.2s ease !important;
}

.nav-bar .nav-bar-menu-btn i {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.nav-bar .nav-bar-menu-btn:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.04);
}

@media (min-width: 1200px) {
    .nav-bar .nav-bar-menu-btn {
        display: none !important;
    }
}

/* 18. Zero Horizontal Overflow & Viewport Lockdown (Clip instead of Hidden to protect Sticky/Fixed Nav) */
html {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Desktop Container Discipline: Elegant 1280px maximum width on PC screens */
.container {
    max-width: 1280px !important;
    margin-inline: auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

.container-custom {
    max-width: 1280px !important;
    margin-inline: auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .container, .container-custom {
        max-width: 100% !important;
        padding-inline: 14px !important;
    }
}

/* 19. Mobile Footer Enhancements */
.footer {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    background: #071324 !important;
}

.footer-upper {
    padding: 55px 0 35px !important;
    overflow-x: hidden !important;
}

.footer-lower {
    padding: 22px 0 !important;
    overflow-x: hidden !important;
    background-color: #040c17 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 74px !important;
    }

    .footer-upper {
        padding: 32px 0 24px !important;
        overflow-x: visible !important;
    }

    .footer-upper .container,
    .footer-upper .container-custom {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .footer-upper {
        padding: 40px 0 24px !important;
    }

    .footer-lower {
        padding: 18px 0 !important;
    }

    .mahsul-whatsapp-float {
        display: none !important;
    }

    .footer-title .h5 {
        font-size: 1.15rem !important;
        color: #ffffff !important;
        margin-bottom: 4px !important;
    }

    .footer-title-divider {
        width: 36px !important;
        height: 3px !important;
        background: #d97706 !important;
        margin: 6px 0 14px !important;
    }

    .footer-links .footer-link a {
        font-size: 0.92rem !important;
        color: #cbd5e1 !important;
        padding: 5px 0 !important;
        display: inline-block !important;
    }

    .footer-links .footer-link a:hover {
        color: #fbbf24 !important;
    }

    .footer-text {
        font-size: 0.92rem !important;
        color: #94a3b8 !important;
    }

    /* Mobile Header Navbar Sizing */
    .nav-bar {
        padding: 8px 0 !important;
    }

    .nav-bar .logo img {
        max-height: 40px !important;
        width: auto !important;
    }

    .nav-bar-container {
        height: 56px !important;
    }
}


/* ==========================================================================
   20. THEMATIC REVENUE BUNDLE PACKS & GLOSSARY (UI/UX PRO MAX)
   ========================================================================== */

/* Thematic Bundle Cards */
.bundle-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(15, 43, 72, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bundle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 43, 72, 0.12);
    border-color: rgba(217, 119, 6, 0.4);
}

.bundle-card.featured-bundle {
    border: 2px solid #d97706;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.bundle-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.bundle-price-tag {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f2b48;
    line-height: 1;
}

.bundle-old-price {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

/* Revenue Dictionary (Glossary) Styling */
.dict-term-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.25s ease;
    height: 100%;
    border-left: 4px solid #0f2b48;
}

.dict-term-card:hover {
    border-left-color: #d97706;
    box-shadow: 0 8px 20px rgba(15, 43, 72, 0.08);
    transform: translateX(3px);
}

.dict-term-title {
    color: #0f2b48;
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dict-term-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* PDF Helpdesk 3-Step Guide */
.pdf-help-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    position: relative;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pdf-help-step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f2b48 0%, #163e66 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(15, 43, 72, 0.25);
}

/* Legal Disclaimer Box */
.legal-disclaimer-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-left: 5px solid #d97706;
    border-radius: 12px;
    padding: 20px 24px;
}

/* Testimonial Swiper Refinements */
.testimonial {
    box-shadow: 0 8px 24px rgba(15, 43, 72, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 32px 24px !important;
}

.testimonial:hover {
    border-color: rgba(217, 119, 6, 0.35) !important;
    box-shadow: 0 14px 32px rgba(15, 43, 72, 0.1) !important;
}

.testimonial-quote {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
}

.testimonial-name {
    font-weight: 700 !important;
    color: #0f2b48 !important;
    font-size: 1.05rem !important;
}

.testimonial-place {
    color: #d97706 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}

/* FAQs Accordion Polish */
.accordion-custom .accordion-item {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.accordion-custom .accordion-button {
    font-weight: 700 !important;
    color: #0f2b48 !important;
    font-size: 1.02rem !important;
    background-color: #ffffff !important;
    padding: 16px 20px !important;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background-color: #f8fafc !important;
    color: #d97706 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.accordion-custom .accordion-body {
    background-color: #ffffff !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    padding: 18px 20px !important;
}


/* ==========================================================================
   21. EXECUTIVE CATEGORY BADGES & BUNDLE PILL REFINEMENTS
   ========================================================================== */

/* Executive Category Badges */
.home-category {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    background: #ffffff !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.home-category:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(217, 119, 6, 0.4) !important;
    box-shadow: 0 14px 28px rgba(15, 43, 72, 0.1) !important;
}

.category-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
    transition: transform 0.25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.home-category:hover .category-icon-badge {
    transform: scale(1.1);
}

.category-icon-badge.badge-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #d97706 !important;
    border: 2px solid #fcd34d !important;
}

.category-icon-badge.badge-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    color: #0284c7 !important;
    border: 2px solid #7dd3fc !important;
}

.category-icon-badge.badge-navy {
    background: linear-gradient(135deg, #0f2b48 0%, #163e66 100%) !important;
    color: #fbbf24 !important;
    border: 2px solid #1e40af !important;
}

.category-icon-badge.badge-emerald {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #16a34a !important;
    border: 2px solid #86efac !important;
}

.category-icon-badge.badge-royal {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    color: #7e22ce !important;
    border: 2px solid #d8b4fe !important;
}

/* Fix Bundle Card Badges - Eliminates Black Blob completely */
.bundle-card .badge {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    text-transform: none !important;
}

.bundle-card .badge.bg-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}

.bundle-card .badge.bg-primary {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}

.bundle-card .badge.bg-dark {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.bundle-card .badge.bg-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}


/* ==========================================================================
   20. Clean, High-Contrast Topic / Title Card Thumbnail (UI/UX Pro Max)
   ========================================================================== */
.topic-card-thumb {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(140deg, #07192d 0%, #0d2746 55%, #143b64 100%) !important;
    border: 2px solid #d97706 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease-in-out !important;
    position: relative !important;
    box-shadow: 0 4px 12px rgba(7, 25, 45, 0.12) !important;
    text-decoration: none !important;
}

.item:hover .topic-card-thumb {
    border-color: #f59e0b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(7, 25, 45, 0.22) !important;
}

/* Inner hairline gold frame */
.topic-card-thumb::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: 9px;
    pointer-events: none;
}

.topic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.topic-num-badge {
    background: #d97706 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 50px !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}

.topic-cat-badge {
    color: #fbbf24 !important;
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-card-title-wrap {
    margin: auto 0 !important;
    position: relative;
    z-index: 2;
    padding: 6px 2px;
}

.topic-card-title {
    color: #ffffff !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    line-height: 1.38 !important;
    margin: 0 !important;
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .topic-card-title {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
}

.topic-card-footer {
    position: relative;
    z-index: 2;
    padding-top: 4px;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.68rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* ==========================================================================
   23. Global Gap & Spacing Tightening (UI/UX Pro Max)
   ========================================================================== */
.section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

.section.forced-start {
    padding-top: 12px !important;
    padding-bottom: 28px !important;
}

.section.section-start {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.section-header {
    margin-bottom: 20px !important;
}

/* Eliminate empty Google Ad gaps */
ins.adsbygoogle:empty,
ins.adsbygoogle[data-ad-status="unfilled"],
.adsbygoogle:not([data-adsbygoogle-status="done"]) {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    display: none !important;
}

div:has(> center > ins.adsbygoogle:empty),
div:has(> ins.adsbygoogle:empty) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   21. Free 1-Page Preview Document Viewer (मोफत १ पान नमुना वाचन)
   ========================================================================== */
.sample-page-viewer {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 43, 72, 0.08);
    position: relative;
    overflow: hidden;
}

.sample-viewer-header {
    background: linear-gradient(135deg, #0f2b48 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d97706;
}

.sample-viewer-body {
    padding: 28px 24px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 100%);
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
}

.sample-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(15, 43, 72, 0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sample-content-box {
    position: relative;
    z-index: 2;
}

.sample-doc-seal {
    width: 60px;
    height: 60px;
    background: #fef3c7;
    border: 2px solid #d97706;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px;
}

.sample-lock-overlay {
    position: relative;
    margin-top: 24px;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, #ffffff 80%);
    border-top: 2px dashed #f59e0b;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

/* Nav tabs for preview options (Free 1-Page vs Hardcover vs Screenshots) */
.preview-mode-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.preview-mode-nav .nav-link {
    flex: 1;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    padding: 8px 14px;
    border-radius: 50px;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.preview-mode-nav .nav-link.active {
    background: #0f2b48 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 43, 72, 0.2);
}


/* ==========================================================================
   22. Live Search Auto-Suggestions Dropdown
   ========================================================================== */
.search-autocomplete-form {
    position: relative;
    width: 100%;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 16px 36px rgba(15, 43, 72, 0.15);
}

.suggestions-header {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
}

.suggestions-list {
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.suggestion-item:hover {
    background: #fffbeb !important;
    color: #b45309 !important;
}

.suggestion-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.suggestion-item-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    margin-left: 10px;
}

/* ==========================================================================
   21. Global Dark-Surface Contrast, Subpage Headers, Breadcrumbs & Sidebars
   ========================================================================== */

/* Subpage Royal Navy Banner (.header-bg used on all interior/directory/category/blog/help/cart pages) */
.header-bg {
    background: linear-gradient(135deg, #071324 0%, #0f2b48 58%, #163e66 100%) !important;
    border-bottom: 3px solid #d97706 !important;
    color: #f8fafc !important;
}

.header-bg .header-inner {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
    min-height: 0 !important;
    color: #ffffff;
}

.header-bg .header-title,
.header-bg h1, .header-bg h2, .header-bg h3, .header-bg h4, .header-bg h5, .header-bg h6,
.header-bg .h1, .header-bg .h2, .header-bg .h3, .header-bg .h4, .header-bg .h5, .header-bg .h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: 0;
}

.header-bg p,
.header-bg .header-text,
.header-bg .text-muted,
.header-bg .text-dark:not(.badge) {
    color: #cbd5e1 !important;
}

/* High-contrast outline & secondary buttons inside dark headers */
.header-bg .btn-outline-primary,
.header-bg .btn-outline-secondary {
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.48) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.header-bg .btn-outline-primary:hover,
.header-bg .btn-outline-secondary:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

/* White search inputs & crisp dark icons inside dark headers */
.header-bg .form-search .form-control {
    background-color: #ffffff !important;
    color: #0f2b48 !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.header-bg .form-search .form-control::placeholder {
    color: #94a3b8 !important;
}

.header-bg .form-search .icon {
    color: #475569 !important;
}

/* Breadcrumbs inside dark headers (.header-bg & .header-image) */
.header-bg .breadcrumb.custom,
.header-image .breadcrumb.custom {
    margin-bottom: 8px;
}

.header-bg .breadcrumb.custom .breadcrumb-item,
.header-bg .breadcrumb.custom .breadcrumb-item::before,
.header-bg .breadcrumb.custom .breadcrumb-item.active::before,
.header-image .breadcrumb.custom .breadcrumb-item,
.header-image .breadcrumb.custom .breadcrumb-item::before,
.header-image .breadcrumb.custom .breadcrumb-item.active::before {
    color: #94a3b8 !important;
}

.header-bg .breadcrumb.custom .breadcrumb-item a,
.header-image .breadcrumb.custom .breadcrumb-item a {
    color: #e2e8f0 !important;
    font-weight: 500;
    text-decoration: none;
}

.header-bg .breadcrumb.custom .breadcrumb-item a:hover,
.header-image .breadcrumb.custom .breadcrumb-item a:hover {
    color: #fbbf24 !important;
    opacity: 1;
}

.header-bg .breadcrumb.custom .breadcrumb-item.active,
.header-image .breadcrumb.custom .breadcrumb-item.active {
    color: #fbbf24 !important;
    font-weight: 600;
}

/* Light Subpage Header (.header-sm used on review/comment views) */
.header-sm {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
}

.header-sm .header-inner {
    padding-top: 28px !important;
    padding-bottom: 24px !important;
}

.header-sm .header-title {
    color: #0f2b48 !important;
    text-shadow: none !important;
}

/* Profile Header (.header-profile uses light neutral backdrop so dark labels & stats always stay readable) */
.header-profile {
    background-color: #eef2f7 !important;
    background-position: center !important;
    background-size: cover !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

.header-profile .text-dark,
.header-profile .user-stat-number,
.header-profile h1,
.header-profile h5 {
    color: #0f2b48 !important;
}

.header-profile .text-muted,
.header-profile .user-stat-title {
    color: #475569 !important;
}

.header-profile .tabs-custom .nav-link {
    color: #334155 !important;
    font-weight: 600;
}

.header-profile .tabs-custom .nav-link:hover,
.header-profile .tabs-custom .nav-link.active {
    color: #0f2b48 !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #d97706 !important;
}

/* Dark Utility Surfaces (.bg-dark, .bg-primary, dark cards, modals & sample viewer bar) */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .h1, .bg-dark .h2, .bg-dark .h3, .bg-dark .h4, .bg-dark .h5, .bg-dark .h6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary .h1, .bg-primary .h2, .bg-primary .h3, .bg-primary .h4, .bg-primary .h5, .bg-primary .h6,
.author-banner h1, .author-banner h2, .author-banner h3, .author-banner h4, .author-banner h5, .author-banner h6,
.sample-viewer-header, .sample-viewer-header h5, .sample-viewer-header h6,
.modal-header.text-white, .modal-header.text-white h5, .modal-header.text-white h6 {
    color: #ffffff !important;
}

.bg-dark .text-muted,
.bg-primary .text-muted,
.author-banner .text-muted,
.footer .text-muted {
    color: #cbd5e1 !important;
}

/* Workspace Author Dashboard Left Sidebar (dark navy surface) */
.dashboard-sidebar-link .dashboard-sidebar-link-title {
    color: #e2e8f0 !important;
}

.dashboard-sidebar-link .dashboard-sidebar-link-title:hover,
.dashboard-sidebar-link.current > .dashboard-sidebar-link-title,
.dashboard-sidebar-link.active > .dashboard-sidebar-link-title {
    color: #ffffff !important;
    background-color: #d97706 !important;
    font-weight: 600 !important;
}

.dashboard-sidebar-link .dashboard-sidebar-link-menu .dashboard-sidebar-link-title {
    color: #cbd5e1 !important;
    background-color: transparent !important;
}

.dashboard-sidebar-link .dashboard-sidebar-link-menu .dashboard-sidebar-link.current .dashboard-sidebar-link-title,
.dashboard-sidebar-link .dashboard-sidebar-link-menu .dashboard-sidebar-link-title:hover {
    color: #fbbf24 !important;
    background-color: transparent !important;
}

/* Mobile Navigation Drawer (< 1200px): Clean High-Contrast White Drawer */
@media (max-width: 1199.98px) {
    .nav-bar .nav-bar-menu-inner {
        background-color: #ffffff !important;
        color: #1e293b !important;
        box-shadow: -8px 0 30px rgba(10, 25, 47, 0.22) !important;
    }

    .nav-bar .nav-bar-menu .nav-bar-menu-header .nav-bar-menu-close {
        color: #0f2b48 !important;
        font-size: 1.35rem;
    }

    .header-bg .header-inner {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .header-bg .header-title {
        font-size: 1.45rem !important;
    }

    .announcement, .nav-bar, .header, .section {
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    .announcement-text {
        font-size: 0.85rem !important;
        padding-right: 24px;
    }
}

/* 18. Modern Sticky Mobile & Desktop Navigation (UI/UX PRO MAX) */
.nav-bar:not(.nav-bar-sm) {
    position: sticky !important;
    top: 0 !important;
    z-index: 1040 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 43, 72, 0.06) !important;
    transition: all 0.25s ease;
}

/* Rock-Solid Fixed Dashboard / Workspace Header (Permanent Top Docking) */
.dashboard-nav {
    position: fixed !important;
    top: 0 !important;
    left: 230px !important;
    width: calc(100% - 230px) !important;
    height: 70px !important;
    z-index: 1020 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 43, 72, 0.05) !important;
    transition: left 0.3s ease, width 0.3s ease;
}

.dashboard.toggle .dashboard-nav {
    left: 0 !important;
    width: 100% !important;
}

@media (max-width: 1199.98px) {
    .dashboard-nav {
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
    }
}

/* Mobile Adjustments for Sticky Header & Footer Insets */
@media (max-width: 768px) {
    .nav-bar {
        padding: 6px 0 !important;
    }
    
    .nav-bar .logo img {
        max-height: 38px !important;
    }

    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    .dashboard-container {
        padding-top: 1rem !important;
        padding-bottom: 3.5rem !important;
    }
}

.hover-shadow {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 43, 72, 0.1) !important;
}

/* Purchases Digital Bookshelf Card Polish (UI/UX PRO MAX) */
.book-cover-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-cover-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(11, 30, 54, 0.25) !important;
}

@media (max-width: 575.98px) {
    .book-cover-box {
        width: 100% !important;
        max-width: 260px !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 auto 8px auto !important;
    }
}

/* ==========================================================================
   ANDROID NATIVE MOBILE EXPERIENCE ENGINE (UI/UX PRO MAX CERTIFIED)
   Scope: Exclusively applied at @media (max-width: 991.98px)
   Desktop / PC Styles remain 100% UNTOUCHED
   ========================================================================== */

@media (max-width: 991.98px) {
    /* 1. Android Top App Bar */
    .nav-bar:not(.nav-bar-sm) {
        position: sticky !important;
        top: 0 !important;
        z-index: 1040 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(15, 43, 72, 0.08) !important;
        padding: 8px 0 !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-bar .logo img {
        max-height: 36px !important;
        width: auto !important;
    }

    /* 48dp Touch Target Rule for Android */
    .nav-bar .nav-bar-menu-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    .nav-bar .nav-bar-menu-btn:active {
        transform: scale(0.92) !important;
    }

    /* Primary Mobile Touch Buttons */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .btn:active {
        transform: scale(0.97) !important;
        transition: transform 0.1s ease !important;
    }

    /* Card Material Polish */
    .item {
        border-radius: 14px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(15, 43, 72, 0.05) !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    .item:active {
        transform: scale(0.98) !important;
    }
}

/* 2. Swipeable Horizontal Android Category Filter Chips */
.mobile-category-chips {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 6px 4px 10px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-category-chips::-webkit-scrollbar {
    display: none;
}

.mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    text-decoration: none !important;
    min-height: 40px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.mobile-chip.active, .mobile-chip:hover {
    background: #0f2b48 !important;
    color: #ffffff !important;
    border-color: #0f2b48 !important;
    box-shadow: 0 2px 8px rgba(15, 43, 72, 0.25) !important;
}

.mobile-chip:active {
    transform: scale(0.94);
}

/* 3. Purchases Page Mobile Action Buttons (Full Thumb-Zone Touch Targets) */
@media (max-width: 575.98px) {
    .card .d-flex.flex-wrap.align-items-center.gap-2.pt-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        width: 100%;
    }

    .card .d-flex.flex-wrap.align-items-center.gap-2.pt-2 a.btn {
        width: 100% !important;
        min-height: 44px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        justify-content: center !important;
    }

    .card .d-flex.flex-wrap.align-items-center.gap-2.pt-2 a.btn.btn-outline-secondary {
        grid-column: span 2;
    }
}



