/* ==========================================================================
   Taranagar Child Theme - Mobile-First Stylesheet
   Package: Taranagar Child
   ========================================================================== */

/* --- 1. Global & Mobile-First Reset & Variables --- */
:root {
    --child-font-family: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --child-primary: #0056b3;
    --child-primary-hover: #004494;
    --child-accent: #ffc107;
    --child-accent-hover: #e0a800;
    --child-text-dark: #1e293b;
    --child-text-muted: #64748b;
    --child-border: #e2e8f0;
    --child-bg-light: #f8fafc;
    --child-footer-bg: #0f172a;
    --child-footer-card: #1e293b;
    --child-footer-text: #cbd5e1;
    --child-footer-title: #f8fafc;
}

[data-theme="dark"] {
    --child-text-dark: #f1f5f9;
    --child-text-muted: #94a3b8;
    --child-border: #334155;
    --child-bg-light: #0f172a;
    --child-footer-bg: #090d16;
    --child-footer-card: #131b2e;
}

/* Global Reset: 0px edge-to-edge gap at top and all edges on all pages */
html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--child-font-family);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: var(--child-bg-light);
    color: var(--child-text-dark);
}

/* Ensure no gap when WordPress admin bar is present */
body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.admin-bar .site-topbar {
    margin-top: 0 !important;
}

/* When admin bar is present, sticky header must stick directly below it */
body.admin-bar .taranagar-child-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .taranagar-child-header {
        top: 46px !important;
    }
}

/* Site Topbar: Always touches top edge with 0px gap */
.site-topbar {
    margin: 0 !important;
    padding: 6px 0;
    width: 100%;
    position: relative;
    z-index: 9998;
}

/* Sticky Footer: Keep footer pinned to bottom on short pages */
#content,
.site-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#primary,
.site-main,
.child-page-main,
.tool-page-main,
.tools-archive-main,
.homepage-mockup-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer,
.child-site-footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

/* Fix 100vh issue on mobile for sidebar */
.favorites-sidebar {
    height: 100vh !important;
    height: 100dvh !important;
}

/* --- 2. Mobile-First Header Enhancements --- */
.taranagar-child-header {
    background: var(--primary-color, #0056b3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.taranagar-child-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 68px;
}

/* Site Branding */
.site-branding .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-branding .logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.site-branding .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-branding .logo-top {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.site-branding .logo-bottom {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color, #ffc107);
}

/* Header Right Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.child-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.child-nav-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.child-nav-menu li a:hover,
.child-nav-menu li.current-menu-item a {
    background: rgba(255, 255, 255, 0.18);
    color: var(--secondary-color, #ffc107);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-box {
    width: 20px;
    height: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-inner,
.hamburger-box::before,
.hamburger-box::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

/* Operator Login Subtle Button */
.btn-operator-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-operator-login:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* --- Mobile Navigation Drawer (< 992px) --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: inline-flex;
    }
}


/* --- 3. Full Mobile-First Footer --- */
.child-site-footer {
    background-color: var(--child-footer-bg);
    color: var(--child-footer-text);
    margin-top: auto;
    font-size: 0.92rem;
    line-height: 1.6;
}

.child-site-footer a {
    color: var(--child-footer-text);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.child-site-footer a:hover {
    color: var(--secondary-color, #ffc107);
}

.footer-top-section {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

/* Footer Column 1: About */
.footer-col-about .footer-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    font-size: 1.8rem;
}

.footer-logo-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--child-footer-title);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #94a3b8;
}

.footer-contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.footer-contact-info .c-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Footer Columns 2, 3, 4: Links */
.footer-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--child-footer-title);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--secondary-color, #ffc107);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.footer-links-list li a:hover {
    transform: translateX(4px);
}

.footer-trust-badge {
    margin-top: 20px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #38bdf8;
    display: inline-block;
}

/* Footer Disclaimer Section (AdSense Crucial Notice) */
.footer-disclaimer-section {
    background: rgba(0, 0, 0, 0.25);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.disclaimer-alert-box {
    background: rgba(255, 193, 7, 0.08);
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 16px 20px;
}

.disclaimer-badge {
    display: block;
    color: #ffc107;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    padding: 20px 0;
    background: #090d16;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.copyright-text {
    margin: 0;
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links .sep {
    color: #475569;
}

.back-to-top-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.back-to-top-btn:hover {
    background: var(--primary-color, #0056b3);
    color: #ffffff;
}

/* Responsive Footer Breakpoints */
@media (max-width: 991px) {
    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top-section {
        padding: 40px 0 30px;
    }

    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* --- 4. Page & Tool Layout (Consistent Header & Footer Wrap) --- */
.child-page-main,
.tool-page-main,
.note-calculator-main {
    padding: 24px 0 50px;
    background-color: var(--child-bg-light);
    flex: 1 0 auto;
    width: 100%;
}

.page-container,
.tool-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.child-page-article,
.tool-article {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--child-border);
    padding: 28px 32px;
}

@media (max-width: 768px) {
    .child-page-main,
    .tool-page-main,
    .note-calculator-main {
        padding: 16px 0 35px;
    }
    .child-page-article,
    .tool-article {
        padding: 20px 14px;
        border-radius: 12px;
    }
}

[data-theme="dark"] .child-page-article,
[data-theme="dark"] .tool-article {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Breadcrumbs */
.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--child-text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tool-breadcrumb a {
    color: var(--child-primary);
    text-decoration: none;
    font-weight: 500;
}

.tool-breadcrumb a:hover {
    text-decoration: underline;
}

.tool-breadcrumb .current-crumb {
    color: var(--child-text-dark);
    font-weight: 600;
}

/* Page Header & Single Clean H1 */
.child-page-header,
.tool-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--child-border);
}

.page-title,
.tool-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--child-text-dark);
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.tool-intro-subtitle {
    font-size: 1.05rem;
    color: var(--child-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Child Entry Content Styling */
.child-entry-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--child-text-dark);
}

.child-entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 35px 0 16px;
    color: var(--child-text-dark);
    border-left: 4px solid var(--child-primary);
    padding-left: 12px;
}

.child-entry-content h3 {
    font-size: 1.28rem;
    font-weight: 700;
    margin: 25px 0 12px;
    color: var(--child-text-dark);
}

.child-entry-content p {
    margin-bottom: 18px;
}

.child-entry-content ul,
.child-entry-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.child-entry-content li {
    margin-bottom: 8px;
}


/* --- 5. Interactive Note Calculator (Cash Denomination) Styles --- */
.cash-calc-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    margin: 25px 0 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .cash-calc-card {
    background: #0f172a;
    border-color: #334155;
}

.cash-calc-header-bar {
    background: var(--child-primary);
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cash-calc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.cash-calc-actions-top {
    display: flex;
    gap: 10px;
}

.btn-calc-action {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-calc-reset {
    background: #ef4444;
    color: #ffffff;
}

.btn-calc-reset:hover {
    background: #dc2626;
}

.btn-calc-print {
    background: #10b981;
    color: #ffffff;
}

.btn-calc-print:hover {
    background: #059669;
}

.cash-calc-body {
    padding: 24px;
}

.table-responsive {
    overflow-x: auto;
}

.cash-calc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cash-calc-table th {
    background: #e2e8f0;
    color: #1e293b;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
}

[data-theme="dark"] .cash-calc-table th {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

.cash-calc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

[data-theme="dark"] .cash-calc-table td {
    border-color: #334155;
}

.cell-denom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.denom-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 800;
    min-width: 90px;
    text-align: center;
}

.denom-coins {
    background: #fef3c7;
    color: #b45309;
}

.denom-x {
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.1rem;
}

.note-qty-input {
    width: 100%;
    max-width: 160px;
    padding: 8px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.note-qty-input:focus {
    border-color: var(--child-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

[data-theme="dark"] .note-qty-input {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}

.cell-subtotal {
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
}

.summary-row td {
    background: #f1f5f9;
    padding: 16px;
    border-top: 3px solid #cbd5e1;
    font-size: 1.1rem;
}

[data-theme="dark"] .summary-row td {
    background: #1e293b;
    border-color: #475569;
}

.summary-total-notes {
    color: var(--child-primary);
    font-weight: 700;
}

.grand-total-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #2563eb;
}

/* Words Box */
.cash-words-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-top: 15px;
}

[data-theme="dark"] .cash-words-box {
    background: #1e293b;
    border-color: #334155;
}

.words-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 8px;
}

[data-theme="dark"] .words-title {
    color: #94a3b8;
}

.words-display-hindi {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

[data-theme="dark"] .words-display-hindi {
    color: #f8fafc;
}

.words-display-english {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    font-style: italic;
}

/* Responsive Table & Inputs */
@media (max-width: 640px) {
    .child-page-article,
    .tool-article {
        padding: 20px 16px;
    }

    .page-title,
    .tool-main-title {
        font-size: 1.65rem;
    }

    .denom-badge {
        font-size: 0.92rem;
        min-width: 70px;
        padding: 4px 8px;
    }

    .note-qty-input {
        max-width: 110px;
        font-size: 1rem;
        padding: 6px 10px;
    }

    .grand-total-val {
        font-size: 1.3rem;
    }
}



/* ==========================================================================
   6. Unified Design System & Homepage Services Grid (Phase 5)
   ========================================================================== */

/* --- Modern Search Container --- */
.taranagar-search-container {
    max-width: 680px;
    margin: 0 auto 28px auto;
}

.taranagar-search-container .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--child-border);
    border-radius: 30px;
    padding: 4px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

[data-theme="dark"] .taranagar-search-container .search-input-wrapper {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.taranagar-search-container .search-input-wrapper:focus-within {
    border-color: var(--child-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15);
}

.taranagar-search-container .search-icon {
    font-size: 1.25rem;
    margin-right: 10px;
    color: var(--child-text-muted);
}

.taranagar-search-container input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--child-text-dark);
    outline: none;
}

.search-clear-btn {
    background: #e2e8f0;
    border: none;
    color: #475569;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.search-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* --- Category Filter Tabs --- */
.taranagar-category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    padding: 4px 0;
}

.taranagar-category-filters .filter-btn {
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--child-border);
    padding: 9px 20px;
    border-radius: 25px;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

[data-theme="dark"] .taranagar-category-filters .filter-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.taranagar-category-filters .filter-btn:hover {
    background: #f1f5f9;
    color: var(--child-primary);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

[data-theme="dark"] .taranagar-category-filters .filter-btn:hover {
    background: #334155;
    color: #ffffff;
}

.taranagar-category-filters .filter-btn.active {
    background: var(--child-primary);
    color: #ffffff;
    border-color: var(--child-primary);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

[data-theme="dark"] .taranagar-category-filters .filter-btn.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* --- Services Grid Layout --- */
.homepage-services-section {
    padding: 40px 0 70px;
}

.taranagar-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Service Card Design */
.taranagar-service-card {
    background: #ffffff;
    border: 1px solid var(--child-border);
    border-radius: 16px;
    padding: 24px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 175px;
}

[data-theme="dark"] .taranagar-service-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.taranagar-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 86, 179, 0.12);
    border-color: var(--child-primary);
}

[data-theme="dark"] .taranagar-service-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: #38bdf8;
}

/* Hidden items for "और देखें" (Load More) */
.taranagar-service-card.service-item-hidden {
    display: none !important;
}

/* Category Badge on Card */
.service-category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .service-category-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

/* Service Icon */
.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 14px;
    margin: 8px 0 14px 0;
    padding: 8px;
    transition: transform 0.2s ease;
}

[data-theme="dark"] .service-icon {
    background: #0f172a;
}

.taranagar-service-card:hover .service-icon {
    transform: scale(1.08);
}

.service-icon img {
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Service Title */
.taranagar-service-card .service-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--child-text-dark);
    margin: 0;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.taranagar-service-card:hover .service-title {
    color: var(--child-primary);
}

[data-theme="dark"] .taranagar-service-card:hover .service-title {
    color: #38bdf8;
}

/* --- "और देखें" (Load More) Button Styling --- */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more-services {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--child-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 13px 36px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 86, 179, 0.28);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-load-more-services:hover {
    background: var(--child-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.38);
}

.btn-load-more-services:active {
    transform: translateY(0);
}

.btn-load-more-services .btn-arrow {
    display: inline-block;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.btn-load-more-services:hover .btn-arrow {
    transform: translateY(3px);
}

[data-theme="dark"] .btn-load-more-services {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.28);
}

[data-theme="dark"] .btn-load-more-services:hover {
    background: #0ea5e9;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.38);
}

/* Empty State / No Results Box */
.no-services-found-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
}

[data-theme="dark"] .no-services-found-box {
    background: #1e293b;
    border-color: #334155;
}

.no-services-found-box .not-found-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.no-services-found-box p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--child-text-muted);
    margin: 0;
}

/* Mobile Responsiveness for Grid */
@media (max-width: 768px) {
    .taranagar-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 14px;
    }

    .taranagar-service-card {
        padding: 18px 12px 16px;
        min-height: 155px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin: 6px 0 10px 0;
    }

    .service-icon img {
        max-width: 36px;
        max-height: 36px;
    }

    .taranagar-service-card .service-title {
        font-size: 0.88rem;
    }

    .taranagar-category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .taranagar-category-filters::-webkit-scrollbar {
        display: none;
    }

    .taranagar-category-filters .filter-btn {
        padding: 8px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .mockup-services-grid,
    .taranagar-services-grid,
    #taranagar-services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}


/* --- Breadcrumbs Navigation Styling --- */
.child-breadcrumb-nav {
    margin-bottom: 22px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--child-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--child-primary-hover);
    text-decoration: underline;
}

.breadcrumb-sep {
    margin-left: 8px;
    color: #94a3b8;
    font-weight: 700;
}

.breadcrumb-item.active span {
    color: var(--child-text-dark);
    font-weight: 700;
}

[data-theme="dark"] .breadcrumb-item.active span {
    color: #f8fafc;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #38bdf8;
}


/* ==========================================================================
   HOMEPAGE EXACT MOCKUP DESIGN SYSTEM (Image 1 Compliance)
   ========================================================================== */

/* 1. Top Notification Bar */
.site-topbar {
    background: #002855;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    width: 100% !important;
}

@media (min-width: 1400px) {
    .topbar-container {
        padding-left: 36px !important;
        padding-right: 36px !important;
    }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-sep {
    color: rgba(255, 255, 255, 0.35);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: #ffc107;
}

.topbar-dot {
    color: rgba(255, 255, 255, 0.3);
}

.btn-topbar-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffb703;
    color: #002855;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-topbar-login:hover {
    background: #ffa200;
    transform: translateY(-1px);
}

/* 2. Main White Header (Mockup Exact) */
.taranagar-child-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 99999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.admin-bar .taranagar-child-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .taranagar-child-header {
        top: 46px !important;
    }
}

.taranagar-child-header .header-container {
    height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    width: 100% !important;
    gap: 20px;
}

@media (min-width: 1400px) {
    .taranagar-child-header .header-container {
        padding-left: 36px !important;
        padding-right: 36px !important;
    }
}

@media (min-width: 992px) {
    .taranagar-child-header .site-branding {
        flex-shrink: 0;
        margin-right: 15px;
    }

    .taranagar-child-header .header-right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        gap: 16px;
    }

    .taranagar-child-header #site-navigation {
        display: flex;
        align-items: center;
    }

    .taranagar-child-header .header-tools {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        flex-shrink: 0;
    }
}

.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-branding .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
    padding: 2px 0;
}

.logo-badge-te {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.25);
    flex-shrink: 0;
}

.badge-t {
    color: #ffffff;
}

.badge-e {
    color: #ffb703;
    margin-left: -2px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.15;
}

.logo-brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #003366;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.logo-brand-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff9900;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

/* Clean Flat Navigation Menu (Exact to User Screenshot) */
.child-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.child-nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1e293b;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 6px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .child-nav-menu {
        gap: 10px;
    }
    .child-nav-menu > li > a {
        font-size: 0.88rem;
        padding: 6px 8px;
    }
}

.child-nav-menu > li > a:hover,
.child-nav-menu > li.current-menu-item > a {
    color: #0066cc !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 600;
}

/* Sub-Menu / Dropdown for Tools & Calculators */
.child-nav-menu li.menu-item-has-children {
    position: relative;
}

.nav-dropdown-arrow {
    font-size: 0.72rem;
    line-height: 1;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.child-nav-menu li.menu-item-has-children:hover .nav-dropdown-arrow,
.child-nav-menu li.menu-item-has-children:focus-within .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: #0056b3;
}

.child-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    min-width: 250px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 9999;
    pointer-events: none;
}

/* Invisible bridge so mouse does not disconnect on gap */
.child-nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

.child-nav-menu li.menu-item-has-children:hover > .sub-menu,
.child-nav-menu li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
    pointer-events: auto;
}

.child-nav-menu .sub-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.child-nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    white-space: nowrap;
}

.child-nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.child-nav-menu .sub-menu li a:hover,
.child-nav-menu .sub-menu li a:focus {
    background: #f8fafc;
    color: #0056b3 !important;
    padding-left: 22px;
}

.btn-header-search {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    color: #003366;
    transition: all 0.2s ease;
}

.btn-header-search:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* Dark Mode Pill Capsule Switch (Exact Mockup Match) */
.dark-mode-toggle.mode-pill-switch {
    background: #18202f !important;
    border: 1.5px solid #334155 !important;
    border-radius: 9999px !important;
    width: 46px !important;
    height: 25px !important;
    padding: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
    vertical-align: middle;
}

.dark-mode-toggle.mode-pill-switch:hover {
    border-color: #64748b !important;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.35) !important;
    transform: none !important;
}

.pill-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    pointer-events: none;
}

.pill-thumb {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.pill-thumb .moon-icon {
    font-size: 11px;
    line-height: 1;
    display: inline-block;
}

.pill-thumb .sun-icon {
    font-size: 11px;
    line-height: 1;
    display: none;
}

/* Dark Mode Active State */
[data-theme="dark"] .dark-mode-toggle.mode-pill-switch {
    background: #0052cc !important;
    border-color: #3b82f6 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(59, 130, 246, 0.45) !important;
}

[data-theme="dark"] .pill-thumb {
    transform: translateX(21px);
    background: #ffffff;
}

[data-theme="dark"] .pill-thumb .moon-icon {
    display: none;
}

[data-theme="dark"] .pill-thumb .sun-icon {
    display: inline-block;
}

/* Mobile Hamburger Button */
.menu-toggle {
    display: none;
    background: #003366;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hamburger-box {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-inner,
.hamburger-box::before,
.hamburger-box::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* ==========================================================================
   3. Interactive Vector Hero Banner (Mockup Exact Match: SVG Arches, Integrated Search & Quick Menus)
   ========================================================================== */
.mockup-hero-section.vector-hero-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #071e3d 0%, #0c3668 45%, #154c8f 100%);
    color: #ffffff;
    padding: 56px 20px 48px 20px;
    text-align: center;
    overflow: hidden;
    border-bottom: 3px solid #ffc107;
    box-shadow: 0 10px 25px -5px rgba(10, 37, 64, 0.25);
    display: block;
}

/* Subtle dot overlay texture */
.mockup-hero-section.vector-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Left & Right Decorative Rajasthan Arches (Vector SVG - Never pixelates or stretches) */
.hero-arch-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(140px, 18vw, 240px);
    height: 92%;
    max-height: 380px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.88;
    transition: opacity 0.3s ease;
}

.hero-arch-decor-left {
    left: clamp(8px, 3.5vw, 60px);
}

.hero-arch-decor-right {
    right: clamp(8px, 3.5vw, 60px);
    transform: translateY(-50%) scaleX(-1); /* Symmetrical reflection */
}

.arch-svg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.hero-banner-inner {
    position: relative;
    z-index: 3;
    max-width: 920px;
    margin: 0 auto;
}

/* Banner Headline */
.hero-portal-headline {
    color: #ffffff;
    font-size: clamp(1.4rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Centered Pill Search Form */
.hero-search-wrapper {
    max-width: 680px;
    margin: 0 auto 18px auto;
}

.hero-portal-search-form {
    width: 100%;
}

.hero-search-pill-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 9999px;
    padding: 5px 6px 5px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease;
}

.hero-search-pill-box:focus-within {
    border-color: #ffc107;
    box-shadow: 0 8px 32px rgba(0, 82, 204, 0.35), 0 0 0 4px rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.hero-search-pill-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.02rem;
    font-weight: 600;
    color: #1e293b;
    padding: 8px 12px 8px 0;
}

.hero-search-pill-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.hero-search-pill-submit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0c3668;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(12, 54, 104, 0.3);
}

.hero-search-pill-submit:hover {
    background: #0052cc;
    transform: scale(1.06);
}

.hero-search-glass-icon {
    pointer-events: none;
    line-height: 1;
}

/* Hero Search Clear Button (Clean mobile & desktop tap target) */
.hero-search-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.hero-search-clear-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* No Results Found Box (Clean Hindi Feedback for Mobile & Desktop) */
.taranagar-no-results-box {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.taranagar-no-results-box .no-results-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}
.taranagar-no-results-box .no-results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}
.taranagar-no-results-box .no-results-desc {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 18px auto;
    line-height: 1.6;
}
.taranagar-no-results-box .btn-no-results-reset {
    background: #0052cc;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}
.taranagar-no-results-box .btn-no-results-reset:hover {
    background: #003e99;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.35);
}

/* Dark mode support */
body[data-theme="dark"] .taranagar-no-results-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
body[data-theme="dark"] .taranagar-no-results-box .no-results-title {
    color: #f1f5f9;
}
body[data-theme="dark"] .taranagar-no-results-box .no-results-desc {
    color: #94a3b8;
}
body[data-theme="dark"] .hero-search-clear-btn {
    color: #64748b;
}
body[data-theme="dark"] .hero-search-clear-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

/* Quick Menus / Tag Chips below search */
.hero-quick-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.hero-quick-chip {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 9999px;
    padding: 7px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.hero-quick-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-quick-chip.active {
    background: #ffc107;
    color: #0c3668;
    border-color: #ffc107;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.hero-quick-chip .chip-symbol {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mockup-hero-section.vector-hero-banner {
        padding: 38px 16px 34px 16px;
    }
    .hero-arch-decor {
        width: 100px;
        opacity: 0.32;
    }
    .hero-arch-decor-left {
        left: -20px;
    }
    .hero-arch-decor-right {
        right: -20px;
    }
    .hero-portal-headline {
        margin-bottom: 18px;
    }
    .hero-search-pill-box {
        padding: 3px 4px 3px 16px;
    }
    .hero-search-pill-input {
        font-size: 0.9rem;
    }
    .hero-search-pill-submit {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .hero-search-clear-btn {
        width: 30px;
        height: 30px;
        font-size: 1.25rem;
        margin-right: 2px;
    }
    .hero-quick-chip {
        padding: 5px 12px;
        font-size: 0.82rem;
    }
}

/* 5. Category Filter Pills */
.mockup-category-section {
    margin-bottom: 30px;
}

.mockup-category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-pill-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-pill-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.cat-pill-btn.active {
    background: #002855 !important;
    border-color: #002855 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.25);
}

/* 6. Three-Column Main Layout Grid */
.mockup-layout-grid {
    display: grid;
    grid-template-columns: 200px 1fr 240px;
    gap: 24px;
    align-items: start;
    margin-bottom: 60px;
}

/* Left Column: Google AdSense Card & Advertise Promotion Widget */
.mockup-col-left {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-ad-card {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ad-google-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-brand-text {
    font-weight: 700;
    color: #0369a1;
    font-size: 1rem;
}

.ad-card-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1.25;
    margin: 0;
}

.btn-ad-started {
    background: #0284c7;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-ad-started:hover {
    background: #0369a1;
}

.ad-graphic-chart {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.chart-arrow {
    font-size: 2.2rem;
    color: #10b981;
    font-weight: 900;
}

.coins-stack {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    line-height: 0.8;
}

/* Middle Column: Services Card Grid */
.mockup-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    justify-content: center;
}

@media (min-width: 1280px) {
    .mockup-services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1550px) {
    .mockup-services-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

/* Tools Archive Page Grid (Without Sidebars) */
@media (min-width: 1280px) {
    .tools-archive-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 14px !important;
    }
}

@media (min-width: 1550px) {
    .tools-archive-grid {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 14px !important;
    }
}

/* Option A: Wider Fluid Container on Desktop Screens */
@media (min-width: 1280px) {
    .container,
    .mockup-main-container,
    .tools-archive-container,
    .tool-page-container {
        max-width: 1400px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1550px) {
    .container,
    .mockup-main-container,
    .tools-archive-container,
    .tool-page-container {
        max-width: 1480px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Ensure each card stays strictly square (चौकोर) and never stretches wide */
.mockup-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 8px 14px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.05;
    min-height: 135px;
    max-width: 175px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mockup-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.1);
    border-color: #0066cc;
}

.card-badge-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Star Favorite Button on Service Cards */
.card-star-fav-btn {
    position: absolute;
    top: 6px;
    left: 8px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    padding: 4px;
    color: #94a3b8;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.card-star-fav-btn:hover {
    transform: scale(1.3);
    color: #f59e0b;
}

.card-star-fav-btn.active {
    color: #f59e0b;
    transform: scale(1.1);
}

.card-star-fav-btn.active .star-icon {
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

body[data-theme="dark"] .card-star-fav-btn {
    color: #64748b;
}

body[data-theme="dark"] .card-star-fav-btn.active,
body[data-theme="dark"] .card-star-fav-btn:hover {
    color: #fbbf24;
}

.mockup-tag-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-tool {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-link {
    background: #ecfdf5;
    color: #059669;
}

.card-icon-wrap {
    margin: 10px 0 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-mockup-icon {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.mockup-service-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
    line-height: 1.35;
}

.mockup-service-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* "और भी कई सेवाएं..." End Card & Load More Pagination (Hidden: All cards display simultaneously) */
.card-more-services,
#card-more-services-trigger,
.mockup-load-more-wrap,
#services-load-more-wrap {
    display: none !important;
}

/* Right Column: Widgets */
.mockup-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.mockup-widget-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Latest Updates Widget */
.widget-latest-updates {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.widget-header-blue {
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bell-icon {
    font-size: 1.25rem;
}

.widget-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.updates-dot-list {
    list-style: none;
    margin: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.92rem;
    line-height: 1.35;
}

.color-dot {
    font-size: 1.4rem;
    line-height: 0.8;
}

.color-dot.red { color: #ef4444; }
.color-dot.orange { color: #f97316; }
.color-dot.green { color: #10b981; }
.color-dot.blue { color: #3b82f6; }
.color-dot.purple { color: #8b5cf6; }

.update-item a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.update-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.widget-btn-wrap {
    padding: 0 18px 18px;
    text-align: center;
}

.btn-all-updates {
    display: block;
    background: #ffb703;
    color: #002855;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-all-updates:hover {
    background: #ffa200;
    transform: translateY(-1px);
}

/* Advertise Widget */
.widget-advertise-box {
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    color: #ffffff;
    padding: 24px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.advertise-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.btn-advertise-yellow {
    display: inline-block;
    background: #ffb703;
    color: #002855;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-advertise-yellow:hover {
    background: #ffa200;
}

.megaphone-illustration {
    font-size: 2.8rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Favorites Sidebar Widget (User Custom Sort & Quick Access)
   ========================================================================== */
.widget-favorites-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.widget-header-favorites {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fav-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fav-header-star {
    font-size: 1.25rem;
}

.widget-header-favorites .widget-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.fav-count-pill {
    background: #ffc107;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
}

.fav-widget-body {
    padding: 14px;
}

/* Guest prompt */
.fav-guest-prompt {
    text-align: center;
    padding: 18px 12px;
}

.fav-guest-star-big {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.fav-guest-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 14px;
}

.btn-fav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0066cc;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

.btn-fav-login:hover {
    background: #004c99;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Reorder Hint */
.fav-reorder-hint {
    font-size: 0.76rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Sortable List */
.fav-sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fav-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 8px;
    transition: all 0.2s ease;
    cursor: grab;
}

.fav-list-item:hover {
    background: #f0f7ff;
    border-color: #93c5fd;
    transform: translateX(2px);
}

.fav-list-item.dragging {
    opacity: 0.4;
    border: 2px dashed #0066cc;
}

.fav-arrow-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-fav-arrow {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 20px;
    height: 16px;
    border-radius: 4px;
    font-size: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}

.btn-fav-arrow:hover {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.fav-service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    min-width: 0;
}

.fav-service-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.fav-service-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-service-link:hover .fav-service-name {
    color: #0066cc;
}

.btn-fav-remove-cross {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-fav-remove-cross:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Empty box */
.fav-empty-box {
    text-align: center;
    padding: 16px 10px;
}

.fav-empty-box .empty-star {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
    opacity: 0.6;
}

.fav-empty-box .empty-text {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   MOBILE & RESPONSIVE FIXES (FAILSAFE REPAIRS)
   ========================================================================== */

/* Overriding parent clip-path bug that broke mobile menu */
@media (max-width: 991px) {
    .site-topbar {
        display: none; /* Hide thin topbar on mobile to save vertical space */
    }

    .menu-toggle {
        display: inline-flex !important;
    }

    .taranagar-child-header .menu-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #0b1f3a !important; /* Solid High-Contrast Dark Navy */
        color: #ffffff !important;
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.5) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 100000 !important; /* Above backdrop */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 14px 40px !important;
        clip-path: none !important;
        display: block !important;
        pointer-events: auto !important;
    }

    .taranagar-child-header .menu-wrapper.active {
        left: 0 !important;
        clip-path: none !important;
    }

    .mobile-drawer-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .drawer-title {
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 1.05rem !important;
        letter-spacing: 0.3px;
    }

    .drawer-close-btn {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        font-size: 1.6rem !important;
        line-height: 1 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
    }

    .drawer-close-btn:hover,
    .drawer-close-btn:active {
        background: rgba(239, 68, 68, 0.85) !important;
        transform: scale(1.08);
    }

    .child-nav-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .child-nav-menu li a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        color: #ffffff !important;
        padding: 11px 14px !important;
        font-size: 0.96rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .child-nav-menu li a:hover,
    .child-nav-menu li a:active,
    .child-nav-menu li.current-menu-item > a {
        background: rgba(0, 102, 204, 0.45) !important;
        color: #ffb703 !important;
        border-color: rgba(255, 183, 3, 0.4) !important;
    }

    /* Accordion Dropdown for Tools in Mobile Drawer */
    .child-nav-menu li.menu-item-has-children .sub-menu {
        display: none !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(0, 0, 0, 0.28) !important;
        border-radius: 8px !important;
        margin: 6px 0 8px 6px !important;
        padding: 4px 0 !important;
        pointer-events: auto !important;
        list-style: none !important;
    }

    .child-nav-menu li.menu-item-has-children.mobile-expanded .sub-menu {
        display: block !important;
        animation: fadeIn 0.2s ease-in-out;
    }

    .child-nav-menu li.menu-item-has-children .sub-menu li a {
        font-size: 0.88rem !important;
        padding: 10px 14px !important;
        color: #e2e8f0 !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .child-nav-menu li.menu-item-has-children .sub-menu li:last-child a {
        border-bottom: none !important;
    }

    .child-nav-menu li.menu-item-has-children .sub-menu li a:hover,
    .child-nav-menu li.menu-item-has-children .sub-menu li a:active {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffb703 !important;
    }

    .child-nav-menu li.menu-item-has-children .nav-dropdown-arrow {
        color: #ffb703 !important;
        margin-left: auto;
        display: inline-block !important;
        transition: transform 0.25s ease !important;
    }

    .child-nav-menu li.menu-item-has-children.mobile-expanded .nav-dropdown-arrow {
        transform: rotate(180deg) !important;
    }

    /* Mobile Backdrop: Lower z-index than drawer, clicks close drawer */
    .mobile-nav-backdrop {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(15, 23, 42, 0.65) !important;
        z-index: 99995 !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        pointer-events: auto !important;
        cursor: pointer;
    }

    .mobile-nav-backdrop.active {
        display: block !important;
    }

    /* Layout stacking */
    .mockup-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .mockup-col-left {
        order: 3;
        position: static;
    }

    .mockup-col-middle {
        order: 1;
    }

    .mockup-col-right {
        order: 2;
        position: static;
    }

    /* Option A: 3-Column Mobile App Grid (Exact Square Cards, No Wide Stretch) */
    .mockup-services-grid,
    .taranagar-services-grid,
    #taranagar-services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .mockup-service-card,
    .taranagar-service-card {
        max-width: 100% !important;
        padding: 8px 4px 6px !important;
        border-radius: 10px !important;
        aspect-ratio: 1 / 1.05 !important;
        min-height: unset !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .card-icon-wrap,
    .service-icon {
        width: 32px !important;
        height: 32px !important;
        margin: 3px auto 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .service-mockup-icon,
    .service-icon img {
        max-width: 26px !important;
        max-height: 26px !important;
        object-fit: contain !important;
    }

    .mockup-service-title,
    .taranagar-service-card .service-title {
        font-size: 0.72rem !important;
        line-height: 1.15 !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        max-width: 96% !important;
        margin: 0 auto !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-align: center !important;
        word-break: break-word !important;
    }

    body[data-theme="dark"] .mockup-service-title,
    body[data-theme="dark"] .taranagar-service-card .service-title {
        color: #f1f5f9 !important;
    }

    .card-badge-wrap {
        position: absolute !important;
        top: 3px !important;
        right: 3px !important;
    }

    .card-badge-wrap .service-badge {
        font-size: 6.8px !important;
        padding: 1px 3.5px !important;
        border-radius: 3px !important;
        line-height: 1 !important;
        letter-spacing: -0.2px !important;
    }

    .card-star-fav-btn {
        position: absolute !important;
        top: 3px !important;
        left: 3px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        padding: 1px !important;
    }
}

@media (min-width: 992px) {
    .mobile-drawer-header {
        display: none !important;
    }
}

/* ==========================================================================
   DARK MODE COMPREHENSIVE OVERRIDES
   ========================================================================== */
body[data-theme="dark"],
[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .taranagar-child-header {
    background-color: #1e293b !important;
    border-bottom-color: #334155 !important;
}

body[data-theme="dark"] .logo-brand-title {
    color: #ffffff !important;
}

body[data-theme="dark"] .child-nav-menu > li > a {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .child-nav-menu > li > a:hover,
body[data-theme="dark"] .child-nav-menu > li.current-menu-item > a {
    background: transparent !important;
    color: #ffb703 !important;
}

body[data-theme="dark"] .child-nav-menu .sub-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

body[data-theme="dark"] .child-nav-menu .sub-menu li a {
    color: #f1f5f9 !important;
    border-bottom: 1px solid #334155 !important;
    background: transparent !important;
}

body[data-theme="dark"] .child-nav-menu .sub-menu li a:hover,
body[data-theme="dark"] .child-nav-menu .sub-menu li a:focus {
    background: #283548 !important;
    color: #ffb703 !important;
}

body[data-theme="dark"] .nav-dropdown-arrow {
    color: #94a3b8;
}

body[data-theme="dark"] .mockup-search-input-box,
body[data-theme="dark"] .mockup-service-card,
body[data-theme="dark"] .widget-latest-updates,
body[data-theme="dark"] .mockup-ad-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body[data-theme="dark"] .mockup-search-field {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .mockup-service-title {
    color: #f8fafc !important;
}

body[data-theme="dark"] .cat-pill-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .cat-pill-btn.active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

body[data-theme="dark"] .update-item a {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .sun-icon {
    display: inline-block !important;
}
body[data-theme="dark"] .moon-icon {
    display: none !important;
}
body:not([data-theme="dark"]) .sun-icon {
    display: none !important;
}
body:not([data-theme="dark"]) .moon-icon {
    display: inline-block !important;
}


/* Navigation Policy Dropdown & Soft Normal Font Weights */
.child-nav-menu li a {
    font-weight: 500 !important;
    font-size: 0.92rem !important;
}

.cat-pill-btn {
    font-weight: 500 !important;
}

.topbar-nav a {
    font-weight: 400 !important;
}

.nav-policy-dropdown {
    position: relative;
}

.drop-arrow {
    font-size: 0.75rem;
    margin-left: 2px;
}

.nav-policy-dropdown .policy-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 6px 0 0;
    z-index: 10000;
}

.nav-policy-dropdown:hover .policy-sub-menu,
.nav-policy-dropdown:focus-within .policy-sub-menu {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.policy-sub-menu li {
    width: 100%;
}

.policy-sub-menu li a {
    display: block !important;
    padding: 10px 18px !important;
    color: #1e293b !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left;
}

.policy-sub-menu li a:hover {
    background: #f1f5f9 !important;
    color: #0066cc !important;
}

body[data-theme="dark"] .policy-sub-menu {
    background: #1e293b;
    border-color: #334155;
}

body[data-theme="dark"] .policy-sub-menu li a {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .policy-sub-menu li a:hover {
    background: #334155 !important;
    color: #38bdf8 !important;
}

/* ====================================================
 * Header User Avatar & Dropdown Menu (PART 2)
 * ==================================================== */
.user-header-menu-container {
    position: relative;
    display: inline-block;
}

.btn-user-avatar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 12px 3px 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-user-avatar-badge:hover,
.btn-user-avatar-badge[aria-expanded="true"] {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.user-name-short {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-caret {
    font-size: 11px;
    color: #64748b;
}

/* Dropdown Menu Container */
.user-dropdown-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 100000;
}

.user-dropdown-menu.active {
    display: block !important;
    animation: userDropdownFade 0.2s ease-out;
}

@keyframes userDropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    padding: 10px 18px 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.user-dropdown-header strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-header small {
    display: block;
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background 0.15s ease;
    text-align: left;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

.dropdown-item-logout {
    color: #dc2626 !important;
}
.dropdown-item-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Mobile Drawer User Details */
@media (min-width: 992px) {
    .mobile-drawer-header,
    .mobile-drawer-user-box,
    .mobile-user-links,
    .mobile-drawer-divider,
    .mobile-drawer-login-box {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .mobile-drawer-header {
        display: flex !important;
    }
    .mobile-drawer-user-box {
        display: flex !important;
    }
    .mobile-user-links {
        display: flex !important;
    }
    .mobile-drawer-divider {
        display: block !important;
    }
    .mobile-drawer-login-box {
        display: block !important;
    }
}

.mobile-drawer-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    margin: 10px 16px 8px;
}

.m-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.m-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.m-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-user-email {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-links {
    padding: 6px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-section-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.m-user-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    border-radius: 6px;
    background: #f8fafc;
    transition: background 0.15s ease;
}
.m-user-link:hover {
    background: #e2e8f0;
    color: #0284c7;
}

.m-user-logout {
    color: #dc2626;
    background: #fef2f2;
}

.mobile-drawer-login-box {
    padding: 12px 16px;
}

.btn-mobile-login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-drawer-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 12px 16px;
}

/* Dark Mode Overrides */
body[data-theme="dark"] .btn-user-avatar-badge {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

body[data-theme="dark"] .user-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .user-dropdown-header strong {
    color: #f8fafc;
}

body[data-theme="dark"] .user-dropdown-header {
    border-bottom-color: #334155;
}

body[data-theme="dark"] .dropdown-item {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:focus {
    background: #334155 !important;
    color: #38bdf8 !important;
}

body[data-theme="dark"] .dropdown-divider {
    background: #334155;
}

body[data-theme="dark"] .mobile-drawer-user-box,
body[data-theme="dark"] .m-user-link {
    background: #1e293b;
    color: #f1f5f9;
}
body[data-theme="dark"] .m-user-name {
    color: #f8fafc;
}
body[data-theme="dark"] .btn-mobile-login-google {
    background: #1e293b;
    color: #f8fafc !important;
    border-color: #334155;
}



/* ========================================================
   Tools Archive Page Styling (/tools/)
   ======================================================== */
.tools-archive-main {
    background: #f8fafc;
    min-height: 80vh;
    padding: 30px 0 60px 0;
}

.tools-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.tools-archive-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 36px 28px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.tools-header-badge {
    display: inline-block;
    background: #eff6ff;
    color: #0066cc;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid #bfdbfe;
}

.tools-archive-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b2545;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.tools-archive-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

/* Search Box */
.tools-search-box-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 22px auto;
}

.tools-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64748b;
    pointer-events: none;
}

.tools-search-input {
    width: 100%;
    height: 52px;
    padding: 10px 45px 10px 48px;
    font-size: 15.5px;
    border: 2px solid #cbd5e1;
    border-radius: 30px;
    background: #f8fafc;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.tools-search-input:focus {
    background: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    outline: none;
}

.tools-clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #cbd5e1;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #334155;
    cursor: pointer;
    padding: 0;
}
.tools-clear-btn:hover {
    background: #94a3b8;
    color: #ffffff;
}

/* Filter Pills */
.tools-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tool-filter-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-filter-btn:hover {
    background: #e2e8f0;
    color: #0b2545;
}

.tool-filter-btn.active {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

/* Tool Card Specifics */
.tool-item-card {
    min-height: 160px;
}

.tool-card-short-desc {
    font-size: 11.5px;
    color: #64748b;
    margin: 6px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No Results Box */
.tools-no-results {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}
.no-result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Features Grid below in editorial */
.tools-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.feature-tool-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 18px;
}
.feature-tool-item h3 {
    margin-top: 0;
    font-size: 1.05rem;
    color: #0066cc;
}
.feature-tool-item p {
    margin: 8px 0 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-archive-title { font-size: 1.7rem; }
    .tools-archive-header { padding: 24px 16px; }
    .tools-archive-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .tool-filter-btn { font-size: 12.5px; padding: 6px 14px; }
}
@media (max-width: 480px) {
    .tools-archive-grid { grid-template-columns: 1fr !important; }
}

/* Dark Mode */
body[data-theme="dark"] .tools-archive-main { background: #0f172a; }
body[data-theme="dark"] .tools-archive-header { background: #1e293b; border-color: #334155; }
body[data-theme="dark"] .tools-archive-title { color: #f8fafc; }
body[data-theme="dark"] .tools-archive-subtitle { color: #94a3b8; }
body[data-theme="dark"] .tools-search-input { background: #0f172a; border-color: #334155; color: #f8fafc; }
body[data-theme="dark"] .tool-filter-btn { background: #334155; color: #cbd5e1; border-color: #475569; }
body[data-theme="dark"] .tool-filter-btn.active { background: #0066cc; color: #ffffff; }
body[data-theme="dark"] .feature-tool-item { background: #1e293b; border-color: #334155; }
body[data-theme="dark"] .feature-tool-item p { color: #cbd5e1; }
/* ========================================================
   News, Schemes & Updates Page Styling (/news-updates/)
   ======================================================== */
.news-archive-main {
    background: var(--child-bg-light);
    min-height: 80vh;
    padding: 24px 0 60px 0;
}

.news-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.news-archive-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.news-header-badge {
    display: inline-block;
    background: #eff6ff;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #bae6fd;
}

.news-archive-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b2545;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.news-archive-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 780px;
    margin: 0 auto 22px auto;
    line-height: 1.6;
}

.news-filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.news-filter-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.news-filter-pill-btn:hover {
    background: #e2e8f0;
    color: #0284c7;
    transform: translateY(-1px);
}

.news-filter-pill-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

/* News Cards Grid */
.news-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.news-card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #002855;
}

.news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumb-img {
    transform: scale(1.05);
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002855 0%, #0284c7 100%);
    color: #ffffff;
    gap: 8px;
}

.placeholder-icon {
    font-size: 2.5rem;
}

.placeholder-category {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 14px;
}

.news-badge-category {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: #ffb703;
    color: #002855;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.news-meta-sep {
    color: #cbd5e1;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.news-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #0284c7;
}

.news-card-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.btn-read-more:hover {
    color: #0056b3;
    gap: 8px;
}

/* Pagination */
.news-pagination-wrap {
    margin: 30px 0;
    text-align: center;
}

.news-pagination-wrap ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
}

.news-pagination-wrap .page-numbers li a,
.news-pagination-wrap .page-numbers li span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.news-pagination-wrap .page-numbers li span.current {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Empty State */
.news-empty-state {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.empty-text {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.btn-news-all {
    display: inline-block;
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
}

/* Editorial Guide Section */
.news-editorial-guide {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    margin-top: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.news-editorial-guide h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 14px;
}

.news-editorial-guide p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 14px;
}

.news-tips-box {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 18px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.news-tips-box h4 {
    margin: 0 0 10px 0;
    color: #0369a1;
    font-size: 1rem;
    font-weight: 700;
}

.news-tips-box ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 991px) {
    .news-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .news-posts-grid {
        grid-template-columns: 1fr;
    }
    .news-archive-title {
        font-size: 1.7rem;
    }
    .news-archive-header {
        padding: 24px 16px;
    }
    .news-filter-pill-btn {
        font-size: 12.5px;
        padding: 6px 12px;
    }
}

/* Dark Mode */
body[data-theme="dark"] .news-archive-main { background: #0f172a; }
body[data-theme="dark"] .news-archive-header,
body[data-theme="dark"] .news-card,
body[data-theme="dark"] .news-empty-state,
body[data-theme="dark"] .news-editorial-guide {
    background: #1e293b;
    border-color: #334155;
}
body[data-theme="dark"] .news-archive-title,
body[data-theme="dark"] .news-card-title a,
body[data-theme="dark"] .empty-title,
body[data-theme="dark"] .news-editorial-guide h2 {
    color: #f8fafc;
}
body[data-theme="dark"] .news-archive-subtitle,
body[data-theme="dark"] .news-card-excerpt,
body[data-theme="dark"] .empty-text,
body[data-theme="dark"] .news-editorial-guide p {
    color: #cbd5e1;
}
body[data-theme="dark"] .news-filter-pill-btn {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}
body[data-theme="dark"] .news-filter-pill-btn.active {
    background: #0284c7;
    color: #ffffff;
}
body[data-theme="dark"] .news-tips-box {
    background: #1e293b;
    border-color: #0284c7;
}
body[data-theme="dark"] .news-tips-box h4 {
    color: #38bdf8;
}
body[data-theme="dark"] .news-tips-box ul {
    color: #cbd5e1;
}


/* ==========================================================================
   AdSense Value Content & Layout Polishing (Phase 2 Compliance)
   ========================================================================== */

/* 1. Homepage Editorial Introduction Box */
.homepage-editorial-intro {
    margin: 16px 0 24px 0;
}
.intro-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.intro-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    border-left: 4px solid #f59e0b;
    padding-left: 10px;
}
.intro-lead-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 14px;
}
.intro-feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.feature-badge {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: #0f766e;
    font-weight: 600;
}
.feature-badge span {
    color: #10b981;
    margin-right: 4px;
}

/* 2. Load More Button Styling */
.mockup-load-more-wrap {
    text-align: center;
    margin: 24px 0 16px 0;
    width: 100%;
}
.btn-mockup-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}
.btn-mockup-load-more:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* 3. Future Ad Slot Placeholder (CLS Prevention on Mobile & Desktop) */
.taranagar-ad-slot-reserved {
    min-height: 280px;
    width: 100%;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
@media (min-width: 768px) {
    .taranagar-ad-slot-reserved {
        min-height: 90px;
    }
}

/* Dark Mode Support for Intro Section */
body[data-theme="dark"] .intro-card-box {
    background: #1e293b;
    border-color: #334155;
}
body[data-theme="dark"] .intro-heading {
    color: #f1f5f9;
}
body[data-theme="dark"] .intro-lead-text {
    color: #cbd5e1;
}
body[data-theme="dark"] .feature-badge {
    background: #0f172a;
    border-color: #334155;
    color: #2dd4bf;
}
body[data-theme="dark"] .btn-mockup-load-more {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}
body[data-theme="dark"] .btn-mockup-load-more:hover {
    background: #0284c7;
    border-color: #0284c7;
}


/* ==========================================================================
   Hero Live Flip Clock Device (Exact to User Screenshot)
   ========================================================================== */
.hero-flip-clock-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.hero-flip-clock-device {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0f131a;
    border: 3px solid #8ca1ba;
    border-radius: 18px;
    padding: 7px 14px 9px 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-flip-clock-device:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(140, 161, 186, 0.25);
}

.flip-clock-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    user-select: none;
}

.flip-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: flipLivePulse 2s infinite;
}

@keyframes flipLivePulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.flip-header-title {
    font-family: inherit;
    line-height: 1;
}

.flip-cards-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.flip-card-unit {
    position: relative;
    overflow: hidden;
    background: #1c222c;
    border-radius: 10px;
    width: 62px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    user-select: none;
}

.flip-card-num {
    font-family: 'Impact', 'Trebuchet MS', 'Arial Black', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    z-index: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.flip-card-ampm {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    z-index: 3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.flip-card-crease {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 576px) {
    .hero-flip-clock-device {
        padding: 6px 10px 8px 10px;
        border-radius: 15px;
        border-width: 2.5px;
    }
    .flip-card-unit {
        width: 52px;
        height: 54px;
        border-radius: 8px;
    }
    .flip-card-num {
        font-size: 1.85rem;
    }
    .flip-card-ampm {
        font-size: 0.52rem;
        top: 3px;
        left: 4px;
    }
    .flip-clock-header {
        font-size: 0.72rem;
    }
}
