/*
Theme Name: BiharScan Editorial
Theme URI: https://biharscan.com/
Author: BiharScan
Description: Hindi-first modern editorial newsroom theme for BiharScan.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: biharscan-editorial
*/

/* =========================================================
   BiharScan Editorial — Design System
   ========================================================= */

:root {
    /* Brand */
    --bs-navy: #14243A;
    --bs-red: #D62828;
    --bs-saffron: #F4A340;

    /* Surfaces */
    --bs-background: #F5F7FA;
    --bs-surface: #FFFFFF;
    --bs-surface-muted: #EEF1F5;

    /* Text */
    --bs-text: #202B38;
    --bs-text-muted: #657184;
    --bs-border: #E1E6ED;

    /* Typography */
    --bs-font-hindi: "Noto Sans Devanagari", "Nirmala UI", sans-serif;
    --bs-font-ui: "Noto Sans Devanagari", "Nirmala UI", sans-serif;

    /* Layout */
    --bs-container: 1200px;
    --bs-content: 820px;
    --bs-sidebar: 320px;
    --bs-radius: 10px;
    --bs-radius-small: 6px;

    /* Spacing */
    --bs-space-1: 4px;
    --bs-space-2: 8px;
    --bs-space-3: 12px;
    --bs-space-4: 16px;
    --bs-space-5: 24px;
    --bs-space-6: 32px;
    --bs-space-7: 48px;
    --bs-space-8: 64px;

    /* Effects */
    --bs-shadow-card: 0 2px 12px rgba(20, 36, 58, 0.06);
    --bs-shadow-header: 0 2px 10px rgba(20, 36, 58, 0.08);
}

/* Base reset and typography */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bs-background);
    color: var(--bs-text);
    font-family: var(--bs-font-hindi);
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Shared layout utilities */

.bs-container {
    width: min(calc(100% - 32px), var(--bs-container));
    margin-inline: auto;
}

.bs-content-width {
    width: min(100%, var(--bs-content));
}

.bs-section {
    margin-block: var(--bs-space-6);
}

.bs-section-heading {
    display: flex;
    align-items: center;
    gap: var(--bs-space-3);
    margin: 0 0 var(--bs-space-4);
    padding-bottom: var(--bs-space-2);
    border-bottom: 2px solid var(--bs-border);
    color: var(--bs-navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.bs-section-heading::before {
    width: 5px;
    height: 25px;
    border-radius: 3px;
    background: var(--bs-red);
    content: "";
}

/* Accessibility */

:focus-visible {
    outline: 3px solid var(--bs-saffron);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    background: var(--bs-navy);
    color: var(--bs-surface);
}

.skip-link:focus {
    top: 12px;
}

/* Responsive foundations */

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .bs-container {
        width: min(calc(100% - 24px), var(--bs-container));
    }

    .bs-section {
        margin-block: var(--bs-space-5);
    }

    .bs-section-heading {
        font-size: 1.15rem;
    }
}

/* BiharScan editorial header and footer */

.bs-topbar {
    background: var(--bs-navy);
    color: #fff;
    font-size: 0.82rem;
}

.bs-topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
}

.bs-header {
    background: #fff;
}

.bs-header-main {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 16px;
}

.bs-brand {
    min-width: 0;
}

.bs-brand .custom-logo-link,
.bs-footer-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.bs-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 88px;
    object-fit: contain;
}

.bs-site-title {
    color: var(--bs-navy);
    font-size: 2rem;
    font-weight: 900;
}

.bs-header-search {
    width: min(100%, 360px);
}

.bs-header-search form {
    display: flex;
    gap: 8px;
}

.bs-header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 10px 13px;
    border: 1px solid var(--bs-border);
    border-radius: 5px;
}

.bs-header-search input[type="submit"] {
    padding: 10px 16px;
    border: 0;
    border-radius: 5px;
    background: var(--bs-red);
    color: #fff;
    cursor: pointer;
}

.bs-navigation-wrap {
    background: var(--bs-navy);
    border-bottom: 3px solid var(--bs-red);
}

.bs-nav-list {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bs-nav-list a {
    display: block;
    padding: 14px 9px;
    color: #fff;
    font-size: 0.91rem;
    font-weight: 700;
    white-space: nowrap;
}

.bs-nav-list a:hover,
.bs-nav-list a:focus,
.bs-nav-list a[aria-current="page"] {
    background: var(--bs-red);
    color: #fff;
}

.bs-mobile-navigation {
    display: none;
}

.bs-breaking-ticker {
    background: #fff;
    border-bottom: 1px solid var(--bs-border);
}

.bs-ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    overflow: hidden;
}

.bs-ticker-label {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 3px;
    background: var(--bs-red);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.bs-ticker-items {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.bs-ticker-items a {
    color: var(--bs-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.bs-ticker-items a:hover {
    color: var(--bs-red);
}

.bs-footer {
    margin-top: 48px;
    background: var(--bs-navy);
    color: #e9eef5;
}

.bs-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 42px;
    padding-block: 44px;
}

.bs-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1.15rem;
}

.bs-footer-about p {
    max-width: 440px;
    color: #d2dbe6;
    line-height: 1.8;
}

.bs-footer-logo .custom-logo {
    width: auto;
    max-width: 180px;
    max-height: 76px;
    filter: brightness(0) invert(1);
}

.bs-footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bs-footer-links a {
    color: #d2dbe6;
}

.bs-footer-links a:hover {
    color: var(--bs-saffron);
}

.bs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-block: 15px;
    color: #d2dbe6;
    font-size: 0.85rem;
}

.bs-footer-bottom p {
    margin: 0;
}

@media (max-width: 1100px) {
    .bs-nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .bs-nav-list a {
        padding: 11px 10px;
    }
}

@media (max-width: 767px) {
    .bs-topbar-inner {
        font-size: 0.72rem;
    }

    .bs-topbar-tagline {
        text-align: right;
    }

    .bs-header-main {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-block: 14px;
    }

    .bs-brand {
        text-align: center;
    }

    .bs-brand .custom-logo {
        max-width: 180px;
        max-height: 70px;
        margin-inline: auto;
    }

    .bs-header-search {
        width: 100%;
    }

    .bs-desktop-navigation {
        display: none;
    }

    .bs-mobile-navigation {
        display: block;
        color: #fff;
    }

    .bs-mobile-navigation summary {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-block: 12px;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
    }

    .bs-mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .bs-menu-icon {
        font-size: 1.2rem;
    }

    .bs-mobile-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        margin: 0;
        padding: 0 0 12px;
        list-style: none;
    }

    .bs-mobile-nav-list a {
        display: block;
        padding: 11px 9px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 0.9rem;
    }

    .bs-ticker-inner {
        gap: 9px;
    }

    .bs-ticker-items {
        gap: 18px;
    }

    .bs-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 32px;
    }
}

/* WordPress menu output compatibility */
.bs-nav-list,
.bs-mobile-nav-list {
    list-style: none;
    margin: 0;
}

.bs-nav-list > li,
.bs-mobile-nav-list > li {
    margin: 0;
    padding: 0;
}

.bs-nav-list > li {
    flex: 0 0 auto;
}

.bs-nav-list > li > a,
.bs-mobile-nav-list > li > a {
    text-decoration: none;
}

.bs-desktop-navigation .sub-menu,
.bs-mobile-navigation .sub-menu {
    display: none;
}

.bs-nav-list .current-menu-item > a,
.bs-nav-list .current-menu-ancestor > a {
    background: var(--bs-red);
    color: #fff;
}

@media (max-width: 767px) {
    .bs-mobile-nav-list > li {
        min-width: 0;
    }

    .bs-mobile-nav-list > li > a {
        height: 100%;
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   BiharScan Editorial — Dark Mode
   ========================================================= */

:root[data-bs-theme="light"] {
    color-scheme: light;
}

:root[data-bs-theme="dark"] {
    color-scheme: dark;

    --bs-navy: #101D30;
    --bs-background: #101927;
    --bs-surface: #1A2738;
    --bs-surface-muted: #223247;

    --bs-text: #E8EDF4;
    --bs-text-muted: #AAB7C8;
    --bs-border: #344357;

    --bs-shadow-card: 0 2px 14px rgba(0, 0, 0, 0.22);
    --bs-shadow-header: 0 2px 12px rgba(0, 0, 0, 0.3);
}

:root[data-bs-theme="dark"] body {
    background: var(--bs-background);
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-header,
:root[data-bs-theme="dark"] .bs-breaking-ticker {
    background: var(--bs-surface);
}

:root[data-bs-theme="dark"] .bs-site-title,
:root[data-bs-theme="dark"] .bs-section-heading {
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-header-search input[type="search"] {
    background: var(--bs-surface-muted);
    color: var(--bs-text);
    border-color: var(--bs-border);
}

:root[data-bs-theme="dark"] .bs-header-search input[type="search"]::placeholder {
    color: var(--bs-text-muted);
}

:root[data-bs-theme="dark"] .bs-ticker-items a {
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-mobile-navigation {
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-mobile-nav-list a {
    background: rgba(255, 255, 255, 0.07);
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-footer {
    background: #0B1422;
}

:root[data-bs-theme="dark"] input,
:root[data-bs-theme="dark"] select,
:root[data-bs-theme="dark"] textarea {
    background-color: var(--bs-surface);
    color: var(--bs-text);
    border-color: var(--bs-border);
}

:root[data-bs-theme="dark"] ::selection {
    background: var(--bs-red);
    color: #fff;
}

/* Dark mode toggle button */

.bs-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: min(100%, 460px);
}

.bs-header-tools .bs-header-search {
    flex: 1 1 auto;
    min-width: 0;
}

.bs-theme-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--bs-border);
    border-radius: 50%;
    background: var(--bs-surface-muted);
    color: var(--bs-text);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bs-theme-toggle:hover {
    background: var(--bs-red);
    border-color: var(--bs-red);
    color: #fff;
}

.bs-theme-toggle span[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .bs-header-tools {
        width: 100%;
    }

    .bs-header-tools .bs-header-search {
        width: auto;
    }
}

/* ==========================================================
   BIHARSCAN EDITORIAL - ELEMENTOR HEADER 211 DARK MODE
   Scope: Header 211 only. Breaking ticker remains unchanged.
   ========================================================== */

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211 {
    background: #101D30 !important;
}

/* Logo and navigation row */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-element-7ef789b {
    background: #101D30 !important;
    border-color: #344357 !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-element-bf8232e,
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-element-1c88170 {
    background: transparent !important;
}

/* Desktop navigation */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-nav-menu--main .elementor-item {
    color: #E8EDF4 !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-nav-menu--main .elementor-item:hover,
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #F4A340 !important;
}

/* Mobile navigation toggle and dropdown */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-menu-toggle {
    color: #E8EDF4 !important;
    background: #1A2738 !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-nav-menu--dropdown {
    background: #1A2738 !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-nav-menu--dropdown .elementor-item {
    color: #E8EDF4 !important;
}

/* Search row */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-element-0041903 {
    background: #101D30 !important;
    border-color: #344357 !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-element-3575ea3 {
    background: transparent !important;
}

/* Search input */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.e-search-input {
    background: #1A2738 !important;
    color: #E8EDF4 !important;
    border-color: #526176 !important;
    caret-color: #E8EDF4;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.e-search-input::placeholder {
    color: #AAB7C8 !important;
    opacity: 1;
}

/* Search submit button */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.e-search-submit {
    background: #D62828 !important;
    color: #FFFFFF !important;
    border-color: #D62828 !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.e-search-submit:hover {
    background: #B51F25 !important;
    border-color: #B51F25 !important;
}

/* Circular theme toggle */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.bs-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid #526176 !important;
    border-radius: 50% !important;
    background: #1A2738 !important;
    color: #F4A340 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.bs-theme-toggle:hover {
    background: #D62828 !important;
    border-color: #D62828 !important;
    color: #FFFFFF !important;
}


/* Dark Mode: Preserve BiharScan logo visibility */
:root[data-bs-theme="dark"] .elementor-location-header.elementor-211
.elementor-element-6eca7dcc img {
    display: block;
    background: #FFFFFF !important;
    border-radius: 50% !important;
    padding: 5px !important;
    box-sizing: content-box;
}


/* Mobile Elementor Header Search + Dark Mode Toggle */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-3575ea3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-7642cd7 {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-e5b8637 {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }

  .elementor-location-header.elementor-211 .e-search-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-location-header.elementor-211 .e-search-input {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .elementor-location-header.elementor-211 .e-search-submit {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}


/* Mobile Breaking News Ticker Layout */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-9a0404f .htmega-newsticker {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-rows: auto 50px;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    overflow: hidden;
  }

  .elementor-location-header.elementor-211 .elementor-element-9a0404f .breaking-news-title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 36px;
    align-items: center;
  }

  .elementor-location-header.elementor-211 .elementor-element-9a0404f .breaking-news-ticker {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 50px !important;
    overflow: hidden;
  }

  .elementor-location-header.elementor-211 .elementor-element-9a0404f .breaking-news-ticker li {
    min-width: 0;
    max-width: 100%;
    height: 50px;
    overflow: hidden;
  }

  .elementor-location-header.elementor-211 .elementor-element-9a0404f .breaking-news-ticker a {
    display: block;
    max-width: 100%;
    height: 50px;
    line-height: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .elementor-location-header.elementor-211 .elementor-element-9a0404f .breaking-news-nav {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 48px;
    height: 50px;
    min-width: 0;
  }

  .elementor-location-header.elementor-211 .elementor-element-9a0404f .breaking-news-nav button {
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 36px;
    margin: 0;
  }
}


/* Mobile Search: input width and horizontal button correction */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .e-search-input-wrapper {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-location-header.elementor-211 .e-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
  }

  .elementor-location-header.elementor-211 .e-search-submit {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    writing-mode: horizontal-tb !important;
  }
}


/* Mobile Search Button: keep Hindi label horizontal */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .e-search-submit {
    flex: 0 0 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 44px !important;
    padding: 0 6px !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    font-size: 13px !important;
    line-height: 1 !important;
    border-radius: 22px !important;
  }
}


/* Mobile: Logo and Hamburger in one horizontal row */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-7ef789b {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    min-height: 90px !important;
    height: auto !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-bf8232e {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: center !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-1c88170 {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-1cf46ca9 {
    width: auto !important;
    min-width: 0 !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-1cf46ca9 .elementor-menu-toggle {
    margin-left: 0 !important;
  }
}


/* Mobile: vertically center hamburger with logo */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-1c88170 {
    justify-content: center !important;
    align-items: center !important;
  }
}


/* Mobile: Compact Logo and Hamburger Row */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-7ef789b {
    min-height: 84px !important;
    height: auto !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    align-items: center !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-bf8232e,
  .elementor-location-header.elementor-211 .elementor-element-1c88170 {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-6eca7dcc img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    object-fit: contain !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-1cf46ca9 .elementor-menu-toggle {
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
  }
}


/* Mobile: Remove excess Elementor spacing in logo row */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-7ef789b {
    min-height: 90px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    row-gap: 0 !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-bf8232e,
  .elementor-location-header.elementor-211 .elementor-element-1c88170,
  .elementor-location-header.elementor-211 .elementor-element-6eca7dcc {
    gap: 0 !important;
    row-gap: 0 !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-bf8232e {
    min-height: 64px !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-6eca7dcc {
    min-height: 64px !important;
  }
}


/* Mobile: Remove logo inline baseline spacing */
@media (max-width: 767px) {
  .elementor-location-header.elementor-211 .elementor-element-6eca7dcc {
    line-height: 0 !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-6eca7dcc > a {
    display: block !important;
    line-height: 0 !important;
    vertical-align: top !important;
  }

  .elementor-location-header.elementor-211 .elementor-element-6eca7dcc img {
    display: block !important;
    vertical-align: top !important;
  }
}


/* Search button: visible in normal state */
.elementor-location-header.elementor-211 .e-search-submit {
    background-color: #D62828 !important;
    color: #FFFFFF !important;
    border-color: #D62828 !important;
}

.elementor-location-header.elementor-211 .e-search-submit span {
    color: #FFFFFF !important;
}

.elementor-location-header.elementor-211 .e-search-submit:hover,
.elementor-location-header.elementor-211 .e-search-submit:focus-visible {
    background-color: #B51F25 !important;
    border-color: #B51F25 !important;
    color: #FFFFFF !important;
}

/* Mobile search row: improve input space */
@media (max-width: 767px) {
    .elementor-location-header.elementor-211 .elementor-element-3575ea3 {
        gap: 6px !important;
    }

    .elementor-location-header.elementor-211 .bs-theme-toggle {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
    }

    .elementor-location-header.elementor-211 .e-search-submit {
        flex: 0 0 60px !important;
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
    }

    .elementor-location-header.elementor-211 .e-search-input {
        padding: 6px 8px !important;
        font-size: 14px !important;
    }
}

/* Simplify Search button border */
.elementor-location-header.elementor-211 .e-search-submit {
    border: 2px solid #D62828 !important;
    border-style: solid !important;
    border-radius: 22px !important;
    box-shadow: none !important;
    outline: none !important;
}

.elementor-location-header.elementor-211 .e-search-submit:hover,
.elementor-location-header.elementor-211 .e-search-submit:focus-visible {
    border: 2px solid #B51F25 !important;
}

/* =========================================================
   BiharScan Editorial — Dynamic Homepage
   ========================================================= */

.bs-homepage {
    padding-top: var(--bs-space-5);
    padding-bottom: var(--bs-space-7);
}

/* Homepage section headings */

.bs-homepage .bs-section-heading {
    display: flex;
    align-items: center;
    gap: var(--bs-space-3);
    margin: 0 0 var(--bs-space-5);
    padding-bottom: var(--bs-space-3);
    border-bottom: 2px solid var(--bs-border);
    color: var(--bs-navy);
    font-size: 1.45rem;
    font-weight: 800;
}

.bs-homepage .bs-section-heading::before {
    flex: 0 0 5px;
    height: 28px;
    border-radius: 3px;
    background: var(--bs-red);
    content: "";
}

.bs-homepage .bs-section-heading h1 {
    margin: 0;
    color: inherit;
    font: inherit;
}

/* Hero layout */

.bs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: var(--bs-space-5);
    align-items: stretch;
}

.bs-hero-lead,
.bs-hero-card,
.bs-latest-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    background: var(--bs-surface);
    box-shadow: var(--bs-shadow-card);
}

.bs-hero-image,
.bs-hero-card-image,
.bs-latest-image {
    display: block;
    overflow: hidden;
    background: var(--bs-surface-muted);
}

.bs-hero-image {
    aspect-ratio: 16 / 9;
}

.bs-hero-image img,
.bs-hero-card-image img,
.bs-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bs-hero-image img {
    aspect-ratio: 16 / 9;
}

.bs-hero-lead:hover .bs-hero-image img,
.bs-hero-card:hover .bs-hero-card-image img,
.bs-latest-card:hover .bs-latest-image img {
    transform: scale(1.035);
}

.bs-hero-content {
    padding: var(--bs-space-5);
}

.bs-news-category {
    display: inline-block;
    margin-bottom: var(--bs-space-2);
    color: var(--bs-red);
    font-size: 0.82rem;
    font-weight: 800;
}

.bs-hero-content h2 {
    margin: 0 0 var(--bs-space-3);
    color: var(--bs-text);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.5;
}

.bs-hero-content h2 a:hover,
.bs-hero-card h3 a:hover,
.bs-latest-card h3 a:hover {
    color: var(--bs-red);
}

.bs-news-meta {
    margin: 0;
    color: var(--bs-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.bs-hero-excerpt {
    margin: var(--bs-space-3) 0;
    color: var(--bs-text-muted);
    font-size: 0.95rem;
}

.bs-read-more {
    display: inline-block;
    margin-top: var(--bs-space-2);
    padding: 8px 16px;
    border-radius: var(--bs-radius-small);
    background: var(--bs-red);
    color: #FFFFFF;
    font-weight: 700;
}

.bs-read-more:hover {
    background: #B51F25;
    color: #FFFFFF;
}

/* Supporting stories */

.bs-hero-supporting {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: var(--bs-space-3);
}

.bs-hero-card {
    display: grid;
    grid-template-columns: minmax(105px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
}

.bs-hero-card-image {
    height: 100%;
    min-height: 120px;
}

.bs-hero-card-image img {
    aspect-ratio: 4 / 3;
}

.bs-hero-card-content {
    padding: var(--bs-space-3);
}

.bs-hero-card-content .bs-news-category {
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.bs-hero-card h3 {
    margin: 0 0 var(--bs-space-2);
    color: var(--bs-text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.55;
}

/* Missing image fallback */

.bs-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 110px;
    align-items: center;
    justify-content: center;
    padding: var(--bs-space-3);
    background: var(--bs-surface-muted);
    color: var(--bs-text-muted);
    font-weight: 700;
    text-align: center;
}

/* Latest news */

.bs-latest-section {
    margin-top: var(--bs-space-7);
}

.bs-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bs-space-4);
}

.bs-latest-image {
    aspect-ratio: 16 / 10;
}

.bs-latest-content {
    padding: var(--bs-space-3);
}

.bs-latest-content .bs-news-category {
    margin-bottom: 5px;
    font-size: 0.75rem;
}

.bs-latest-card h3 {
    margin: 0 0 var(--bs-space-2);
    color: var(--bs-text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.6;
}

/* Tablet */

@media (max-width: 1024px) {
    .bs-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
        gap: var(--bs-space-3);
    }

    .bs-hero-card {
        grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
    }

    .bs-hero-card-content {
        padding: var(--bs-space-2);
    }

    .bs-hero-card h3 {
        font-size: 0.9rem;
    }

    .bs-latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 767px) {
    .bs-homepage {
        padding-top: var(--bs-space-3);
        padding-bottom: var(--bs-space-5);
    }

    .bs-homepage .bs-section-heading {
        margin-bottom: var(--bs-space-3);
        font-size: 1.2rem;
    }

    .bs-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--bs-space-3);
    }

    .bs-hero-content {
        padding: var(--bs-space-3);
    }

    .bs-hero-content h2 {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .bs-hero-excerpt {
        font-size: 0.9rem;
    }

    .bs-hero-supporting {
        grid-template-rows: auto;
        gap: var(--bs-space-3);
    }

    .bs-hero-card {
        grid-template-columns: minmax(105px, 0.85fr) minmax(0, 1.15fr);
        min-height: 115px;
    }

    .bs-hero-card-image {
        min-height: 115px;
    }

    .bs-hero-card h3 {
        font-size: 0.9rem;
    }

    .bs-latest-section {
        margin-top: var(--bs-space-5);
    }

    .bs-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--bs-space-3);
    }

    .bs-latest-content {
        padding: var(--bs-space-2);
    }

    .bs-latest-card h3 {
        font-size: 0.88rem;
    }
}

/* Small mobile screens */

@media (max-width: 380px) {
    .bs-latest-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bs-hero-card {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .bs-hero-card h3 {
        font-size: 0.85rem;
    }
}

/* Dark mode */

:root[data-bs-theme="dark"] .bs-homepage .bs-section-heading {
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-hero-lead,
:root[data-bs-theme="dark"] .bs-hero-card,
:root[data-bs-theme="dark"] .bs-latest-card {
    background: var(--bs-surface);
    border-color: var(--bs-border);
    box-shadow: none;
}

:root[data-bs-theme="dark"] .bs-hero-content h2,
:root[data-bs-theme="dark"] .bs-hero-card h3,
:root[data-bs-theme="dark"] .bs-latest-card h3 {
    color: var(--bs-text);
}

:root[data-bs-theme="dark"] .bs-image-placeholder {
    background: var(--bs-surface-muted);
    color: var(--bs-text-muted);
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .bs-hero-image img,
    .bs-hero-card-image img,
    .bs-latest-image img {
        transition: none;
    }
}

/* Footer navigation: consistent visibility on all screen sizes */
.bs-footer .bs-footer-column,
.bs-footer .bs-footer-links,
.bs-footer .bs-footer-links li {
    min-width: 0;
    width: 100%;
    background: transparent !important;
}

.bs-footer .bs-footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bs-footer .bs-footer-links li {
    display: block;
    margin: 0;
    padding: 0;
}

.bs-footer .bs-footer-links a {
    display: block;
    padding: 5px 0;
    background: transparent !important;
    color: #D2DBE6 !important;
    text-decoration: none;
}

.bs-footer .bs-footer-links a:hover,
.bs-footer .bs-footer-links a:focus-visible {
    color: #F4A340 !important;
}

@media (max-width: 767px) {
    .bs-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bs-footer .bs-footer-column {
        width: 100%;
    }
}

/* Elementor Footer 185 - Improve menu visibility */
.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-nav-menu--main .elementor-item,
.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-nav-menu--dropdown .elementor-item {
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-nav-menu--dropdown .elementor-item:hover {
    color: #F4A340 !important;
}

.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-nav-menu--dropdown {
    background: #101D30 !important;
}

.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-menu-toggle {
    color: #FFFFFF !important;
    background: #1A2738 !important;
    border: 1px solid #526176 !important;
}


/* Elementor Footer 185 - High contrast menu toggle icon */
.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-menu-toggle svg,
.elementor-location-footer.elementor-185 .elementor-element-0b2dc84 .elementor-menu-toggle svg path {
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
}


/* =========================================
   BIHARSCAN CATEGORY PAGE
========================================= */

.bs-category-page {
    padding-top: 34px;
    padding-bottom: 60px;
}

.bs-category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bs-border);
}

.bs-category-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--bs-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.bs-category-header h1 {
    margin: 0 0 10px;
    color: var(--bs-text);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    font-weight: 800;
}

.bs-category-header p {
    margin: 0;
    color: var(--bs-muted);
    font-size: 16px;
    line-height: 1.7;
}

.bs-category-news {
    display: block;
}

.bs-category-featured {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
    padding: 18px;
    overflow: hidden;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
}

.bs-category-featured-image,
.bs-category-card-image {
    display: block;
    overflow: hidden;
    background: var(--bs-surface-muted);
    border-radius: 9px;
}

.bs-category-featured-image {
    aspect-ratio: 16 / 9;
}

.bs-category-featured-image img,
.bs-category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bs-category-featured-image:hover img,
.bs-category-card-image:hover img {
    transform: scale(1.035);
}

.bs-category-featured-content {
    padding: 10px 8px;
}

.bs-category-featured-content .bs-news-category {
    display: inline-block;
    margin-bottom: 12px;
}

.bs-category-featured-content h2 {
    margin: 0 0 12px;
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.5;
    font-weight: 800;
}

.bs-category-featured-content h2 a,
.bs-category-card-content h2 a {
    color: var(--bs-text);
    text-decoration: none;
}

.bs-category-featured-content h2 a:hover,
.bs-category-card-content h2 a:hover {
    color: var(--bs-red);
}

.bs-category-featured-content .bs-news-meta,
.bs-category-card-content .bs-news-meta {
    margin: 0 0 12px;
    color: var(--bs-muted);
    font-size: 13px;
}

.bs-category-excerpt,
.bs-category-card-excerpt {
    color: var(--bs-muted);
    font-size: 15px;
    line-height: 1.8;
}

.bs-category-excerpt {
    margin: 0 0 16px;
}

.bs-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bs-category-card {
    min-width: 0;
    overflow: hidden;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bs-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.bs-category-card-image {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.bs-category-card-content {
    padding: 17px;
}

.bs-category-card-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 750;
}

.bs-category-card-excerpt {
    margin: 0;
    font-size: 14px;
}

.bs-category-page .bs-category-pagination {
    margin-top: 36px;
}

.bs-category-page .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bs-category-page .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--bs-text);
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
}

.bs-category-page .page-numbers.current,
.bs-category-page .page-numbers:hover {
    color: #fff;
    background: var(--bs-red);
    border-color: var(--bs-red);
}

.bs-category-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--bs-muted);
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
}

@media (max-width: 900px) {
    .bs-category-featured {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .bs-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .bs-category-page {
        padding-top: 22px;
        padding-bottom: 40px;
    }

    .bs-category-featured {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
    }

    .bs-category-featured-content {
        padding: 5px 3px 8px;
    }

    .bs-category-featured-content h2 {
        font-size: 21px;
    }

    .bs-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bs-category-card-content {
        padding: 14px;
    }
}


/* =========================================================
   BIHARSCAN EDITORIAL — SINGLE NEWS ARTICLE PAGE
   Scoped to .bs-single-page; does not alter other templates.
   ========================================================= */

.bs-single-page {
    padding-top: 28px;
    padding-bottom: 64px;
}

.bs-single-page .bs-single-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--bs-muted);
    font-size: 13px;
    line-height: 1.7;
}

.bs-single-page .bs-single-breadcrumb a {
    color: var(--bs-muted);
    text-decoration: none;
}

.bs-single-page .bs-single-breadcrumb a:hover {
    color: var(--bs-red);
}

.bs-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(260px, 320px);
    gap: 32px;
    align-items: start;
}

.bs-single-article {
    min-width: 0;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    padding: 30px;
}

.bs-single-page .bs-single-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bs-single-page .bs-single-categories a {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 5px;
    background: var(--bs-surface-muted);
    color: var(--bs-red);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bs-single-page .bs-single-categories a:hover {
    background: var(--bs-red);
    color: #fff;
}

.bs-single-page .bs-single-title {
    margin: 0 0 20px;
    color: var(--bs-text);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bs-single-page .bs-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bs-border);
    color: var(--bs-muted);
    font-size: 13px;
}

.bs-single-page .bs-single-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.bs-single-page .bs-single-avatar {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
}

.bs-single-page .bs-single-avatar img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.bs-single-page .bs-single-author small,
.bs-single-page .bs-single-author strong {
    display: block;
}

.bs-single-page .bs-single-author small {
    margin-bottom: 2px;
    color: var(--bs-muted);
    font-size: 11px;
}

.bs-single-page .bs-single-author strong {
    color: var(--bs-text);
    font-size: 13px;
}

.bs-single-page .bs-single-featured-image {
    margin: 0 0 26px;
}

.bs-single-page .bs-single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    border-radius: 10px;
    object-fit: contain;
}

.bs-single-page .bs-single-content {
    color: var(--bs-text);
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.bs-single-page .bs-single-content p {
    margin: 0 0 21px;
}

.bs-single-page .bs-single-content h2,
.bs-single-page .bs-single-content h3,
.bs-single-page .bs-single-content h4 {
    margin: 30px 0 14px;
    color: var(--bs-text);
    font-weight: 800;
    line-height: 1.55;
}

.bs-single-page .bs-single-content h2 {
    font-size: 25px;
}

.bs-single-page .bs-single-content h3 {
    font-size: 22px;
}

.bs-single-page .bs-single-content h4 {
    font-size: 19px;
}

.bs-single-page .bs-single-content a {
    color: var(--bs-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bs-single-page .bs-single-content ul,
.bs-single-page .bs-single-content ol {
    margin: 0 0 24px;
    padding-left: 26px;
}

.bs-single-page .bs-single-content li {
    margin-bottom: 9px;
    padding-left: 3px;
}

.bs-single-page .bs-single-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--bs-red);
    border-radius: 0 8px 8px 0;
    background: var(--bs-surface-muted);
    color: var(--bs-text);
}

.bs-single-page .bs-single-content img,
.bs-single-page .bs-single-content video,
.bs-single-page .bs-single-content iframe {
    max-width: 100%;
}

.bs-single-page .bs-single-content img {
    height: auto;
    border-radius: 8px;
}

.bs-single-page .bs-single-content figure {
    max-width: 100%;
    margin: 24px 0;
}

.bs-single-page .bs-single-content figcaption {
    margin-top: 8px;
    color: var(--bs-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.bs-single-page .bs-single-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
}

.bs-single-page .bs-single-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bs-surface-muted);
    color: var(--bs-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bs-single-page .bs-single-share a:hover {
    background: var(--bs-red);
    color: #fff;
}

.bs-single-page .bs-single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--bs-muted);
    font-size: 13px;
}

.bs-single-page .bs-single-tags a {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid var(--bs-border);
    border-radius: 5px;
    color: var(--bs-muted);
    font-size: 12px;
    text-decoration: none;
}

.bs-single-page .bs-single-tags a:hover {
    border-color: var(--bs-red);
    color: var(--bs-red);
}

.bs-single-page .bs-single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.bs-single-page .bs-single-post-navigation a {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--bs-border);
    border-radius: 8px;
    background: var(--bs-surface-muted);
    color: var(--bs-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bs-single-page .bs-single-post-navigation a:hover {
    border-color: var(--bs-red);
    color: var(--bs-red);
}

.bs-single-sidebar {
    min-width: 0;
}

.bs-single-page .bs-single-related {
    padding: 20px;
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    background: var(--bs-surface);
}

.bs-single-page .bs-single-related h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bs-red);
    color: var(--bs-text);
    font-size: 20px;
    font-weight: 800;
}

.bs-single-page .bs-single-related article {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bs-border);
}

.bs-single-page .bs-single-related article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.bs-single-page .bs-single-related article img {
    display: block;
    width: 104px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
}

.bs-single-page .bs-single-related article time {
    display: block;
    margin-bottom: 5px;
    color: var(--bs-muted);
    font-size: 11px;
}

.bs-single-page .bs-single-related article a {
    color: var(--bs-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bs-single-page .bs-single-related article a:hover {
    color: var(--bs-red);
}

@media (max-width: 900px) {
    .bs-single-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .bs-single-sidebar {
        width: 100%;
    }

    .bs-single-page .bs-single-related {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .bs-single-page .bs-single-related h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .bs-single-page {
        padding-top: 18px;
        padding-bottom: 40px;
    }

    .bs-single-page .bs-single-breadcrumb {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .bs-single-article {
        padding: 18px 15px;
        border-radius: 9px;
    }

    .bs-single-page .bs-single-title {
        margin-bottom: 16px;
        font-size: 25px;
        line-height: 1.5;
    }

    .bs-single-page .bs-single-meta {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 16px;
        font-size: 12px;
    }

    .bs-single-page .bs-single-featured-image {
        margin-bottom: 20px;
    }

    .bs-single-page .bs-single-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .bs-single-page .bs-single-content h2 {
        font-size: 22px;
    }

    .bs-single-page .bs-single-content h3 {
        font-size: 20px;
    }

    .bs-single-page .bs-single-content h4 {
        font-size: 18px;
    }

    .bs-single-page .bs-single-share {
        gap: 8px;
    }

    .bs-single-page .bs-single-share a {
        padding: 8px 11px;
        font-size: 12px;
    }

    .bs-single-page .bs-single-post-navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .bs-single-page .bs-single-related {
        display: block;
        padding: 16px;
    }

    .bs-single-page .bs-single-related article {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .bs-single-page .bs-single-related article img {
        width: 96px;
        height: 72px;
    }
}


/* =========================================================
   BIHARSCAN EDITORIAL — SEARCH RESULTS PAGE
   Scoped to .bs-search-page only.
   ========================================================= */

.bs-search-page {
    padding-top: 32px;
    padding-bottom: 64px;
}

.bs-search-page .bs-search-header {
    margin-bottom: 30px;
    padding: 26px 28px;
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    background: var(--bs-surface);
}

.bs-search-page .bs-search-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--bs-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.bs-search-page .bs-search-header h1 {
    margin: 0 0 12px;
    color: var(--bs-text);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.4;
}

.bs-search-page .bs-search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    color: var(--bs-text-muted);
    font-size: 14px;
}

.bs-search-page .bs-search-summary strong {
    color: var(--bs-text);
}

.bs-search-page .bs-search-count {
    margin-left: 5px;
    color: var(--bs-red);
    font-weight: 700;
}

.bs-search-page .bs-search-inline-form {
    max-width: 560px;
}

.bs-search-page .bs-search-inline-form form,
.bs-search-page .bs-search-empty-form form {
    display: flex;
    gap: 9px;
}

.bs-search-page .bs-search-inline-form label,
.bs-search-page .bs-search-empty-form label {
    flex: 1;
    min-width: 0;
}

.bs-search-page .bs-search-inline-form input[type="search"],
.bs-search-page .bs-search-empty-form input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--bs-border);
    border-radius: 6px;
    background: var(--bs-surface);
    color: var(--bs-text);
    font: inherit;
}

.bs-search-page .bs-search-inline-form input[type="search"]:focus,
.bs-search-page .bs-search-empty-form input[type="search"]:focus {
    border-color: var(--bs-red);
    outline: 2px solid transparent;
}

.bs-search-page .bs-search-inline-form input[type="submit"],
.bs-search-page .bs-search-empty-form input[type="submit"] {
    min-height: 44px;
    padding: 10px 19px;
    border: 0;
    border-radius: 6px;
    background: var(--bs-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.bs-search-page .bs-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.bs-search-page .bs-search-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--bs-border);
    border-radius: 10px;
    background: var(--bs-surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bs-search-page .bs-search-card:hover {
    border-color: var(--bs-red);
    transform: translateY(-2px);
}

.bs-search-page .bs-search-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bs-surface-muted);
}

.bs-search-page .bs-search-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.bs-search-page .bs-search-card:hover .bs-search-card-image img {
    transform: scale(1.025);
}

.bs-search-page .bs-search-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--bs-text-muted);
    font-size: 20px;
    font-weight: 800;
}

.bs-search-page .bs-search-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.bs-search-page .bs-search-card-category {
    margin-bottom: 9px;
}

.bs-search-page .bs-search-card-category a {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--bs-surface-muted);
    color: var(--bs-red);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.bs-search-page .bs-search-card-content h2 {
    margin: 0 0 11px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.bs-search-page .bs-search-card-content h2 a {
    color: var(--bs-text);
    text-decoration: none;
}

.bs-search-page .bs-search-card-content h2 a:hover {
    color: var(--bs-red);
}

.bs-search-page .bs-search-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--bs-text-muted);
    font-size: 12px;
}

.bs-search-page .bs-search-card-excerpt {
    margin-bottom: 15px;
    color: var(--bs-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.bs-search-page .bs-search-card-excerpt p {
    margin: 0;
}

.bs-search-page .bs-search-read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 5px;
    color: var(--bs-red);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.bs-search-page .bs-search-read-more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bs-search-page .bs-search-pagination {
    margin-top: 36px;
}

.bs-search-page .bs-search-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bs-search-page .bs-search-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--bs-border);
    border-radius: 6px;
    background: var(--bs-surface);
    color: var(--bs-text);
    font-size: 14px;
    text-decoration: none;
}

.bs-search-page .bs-search-pagination .page-numbers.current,
.bs-search-page .bs-search-pagination .page-numbers:hover {
    border-color: var(--bs-red);
    background: var(--bs-red);
    color: #fff;
}

.bs-search-page .bs-search-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px 28px;
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    background: var(--bs-surface);
    color: var(--bs-text);
    text-align: center;
}

.bs-search-page .bs-search-empty-icon {
    margin-bottom: 12px;
    color: var(--bs-red);
    font-size: 52px;
    line-height: 1;
}

.bs-search-page .bs-search-empty h2 {
    margin: 0 0 12px;
    color: var(--bs-text);
    font-size: 25px;
}

.bs-search-page .bs-search-empty p {
    color: var(--bs-text-muted);
    line-height: 1.8;
}

.bs-search-page .bs-search-empty ul {
    display: inline-block;
    margin: 4px auto 22px;
    padding-left: 22px;
    color: var(--bs-text-muted);
    line-height: 1.9;
    text-align: left;
}

.bs-search-page .bs-search-empty-form {
    max-width: 480px;
    margin: 0 auto 20px;
}

.bs-search-page .bs-search-home-link {
    color: var(--bs-red);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bs-search-page .bs-search-home-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .bs-search-page {
        padding-top: 20px;
        padding-bottom: 42px;
    }

    .bs-search-page .bs-search-header {
        margin-bottom: 20px;
        padding: 20px 16px;
    }

    .bs-search-page .bs-search-results {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .bs-search-page .bs-search-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: stretch;
    }

    .bs-search-page .bs-search-card-image {
        height: 100%;
        min-height: 150px;
        aspect-ratio: auto;
    }

    .bs-search-page .bs-search-card-content {
        padding: 13px;
    }

    .bs-search-page .bs-search-card-content h2 {
        font-size: 15px;
        line-height: 1.55;
    }

    .bs-search-page .bs-search-card-meta {
        gap: 5px;
        font-size: 10px;
    }

    .bs-search-page .bs-search-card-excerpt {
        font-size: 12px;
        line-height: 1.65;
    }

    .bs-search-page .bs-search-read-more {
        font-size: 12px;
    }

    .bs-search-page .bs-search-empty {
        padding: 30px 17px;
    }
}

@media (max-width: 380px) {
    .bs-search-page .bs-search-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .bs-search-page .bs-search-card-image {
        min-height: 135px;
    }

    .bs-search-page .bs-search-card-content {
        padding: 10px;
    }
}


/* =========================================================
   BIHARSCAN TAG ARCHIVE
   Isolated styles — does not modify category or search pages
========================================================= */

.bs-tag-page {
    padding-top: 34px;
    padding-bottom: 60px;
}

.bs-tag-header {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--bs-border);
}

.bs-tag-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--bs-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.bs-tag-header h1 {
    margin: 0 0 10px;
    color: var(--bs-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    font-weight: 800;
}

.bs-tag-count,
.bs-tag-meta {
    color: var(--bs-text-muted);
    font-size: 13px;
}

.bs-tag-count {
    margin: 0 0 12px;
    font-weight: 700;
}

.bs-tag-description,
.bs-tag-intro {
    max-width: 760px;
    color: var(--bs-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.bs-tag-description p,
.bs-tag-intro {
    margin: 0;
}

.bs-tag-news {
    display: block;
}

.bs-tag-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    overflow: hidden;
    margin-bottom: 30px;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 10px;
}

.bs-tag-featured-image {
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: var(--bs-surface-muted);
}

.bs-tag-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.bs-tag-featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 30px;
}

.bs-tag-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: #fff;
    background: var(--bs-red);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.bs-tag-featured-content h2 {
    margin: 0 0 12px;
    font-size: clamp(21px, 2.5vw, 30px);
    line-height: 1.45;
    font-weight: 800;
}

.bs-tag-featured-content h2 a,
.bs-tag-card-content h2 a {
    color: var(--bs-text);
    text-decoration: none;
}

.bs-tag-featured-content h2 a:hover,
.bs-tag-card-content h2 a:hover {
    color: var(--bs-red);
}

.bs-tag-meta {
    margin: 0 0 12px;
}

.bs-tag-excerpt,
.bs-tag-card-excerpt {
    color: var(--bs-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.bs-tag-excerpt {
    margin: 0 0 18px;
}

.bs-tag-read-more {
    display: inline-block;
    color: var(--bs-red);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.bs-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bs-tag-card {
    min-width: 0;
    overflow: hidden;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-tag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.bs-tag-card-image {
    display: block;
    height: 190px;
    overflow: hidden;
    background: var(--bs-surface-muted);
}

.bs-tag-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-tag-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    color: var(--bs-text-muted);
    background: var(--bs-surface-muted);
    font-size: 15px;
    font-weight: 700;
}

.bs-tag-card-content {
    padding: 18px;
}

.bs-tag-card-content .bs-tag-meta {
    margin-bottom: 8px;
}

.bs-tag-card-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 800;
}

.bs-tag-card-excerpt {
    margin: 0;
    font-size: 13px;
}

.bs-tag-pagination {
    margin-top: 35px;
}

.bs-tag-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bs-tag-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    color: var(--bs-text);
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bs-tag-pagination .page-numbers.current {
    color: #fff;
    background: var(--bs-red);
    border-color: var(--bs-red);
}

.bs-tag-pagination a.page-numbers:hover {
    color: #fff;
    background: var(--bs-red);
    border-color: var(--bs-red);
}

.bs-tag-empty {
    padding: 45px 24px;
    text-align: center;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 10px;
}

.bs-tag-empty h2 {
    margin: 0 0 10px;
    color: var(--bs-text);
    font-size: 22px;
}

.bs-tag-empty p {
    color: var(--bs-text-muted);
}

.bs-tag-empty a {
    color: var(--bs-red);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .bs-tag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .bs-tag-featured {
        grid-template-columns: 1fr 1fr;
    }

    .bs-tag-featured-image,
    .bs-tag-featured-image img {
        min-height: 280px;
    }

    .bs-tag-featured-content {
        padding: 22px;
    }
}

@media (max-width: 600px) {
    .bs-tag-page {
        padding-top: 22px;
        padding-bottom: 40px;
    }

    .bs-tag-header {
        margin-bottom: 22px;
    }

    .bs-tag-featured {
        grid-template-columns: 1fr;
        margin-bottom: 22px;
    }

    .bs-tag-featured-image,
    .bs-tag-featured-image img {
        min-height: 220px;
        height: 220px;
    }

    .bs-tag-featured-content {
        padding: 19px;
    }

    .bs-tag-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bs-tag-card-image {
        height: 210px;
    }

    .bs-tag-card-content {
        padding: 16px;
    }

    .bs-tag-empty {
        padding: 30px 17px;
    }
}



/* =========================================================
   DATE ARCHIVE — BiharScan Editorial
   Isolated styles; does not affect other archive templates.
   ========================================================= */

.bs-date-page {
    padding-top: 36px;
    padding-bottom: 60px;
}

.bs-date-header {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--bs-border);
}

.bs-date-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--bs-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.bs-date-header h1 {
    margin: 0 0 10px;
    color: var(--bs-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    font-weight: 800;
}

.bs-date-count,
.bs-date-meta {
    color: var(--bs-text-muted);
    font-size: 13px;
}

.bs-date-count {
    margin: 0 0 8px;
    font-weight: 700;
}

.bs-date-intro {
    margin: 0;
    color: var(--bs-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.bs-date-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 10px;
}

.bs-date-featured-image,
.bs-date-card-image {
    display: block;
    overflow: hidden;
    background: var(--bs-surface-muted);
}

.bs-date-featured-image {
    min-height: 300px;
}

.bs-date-featured-image img,
.bs-date-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.bs-date-featured-image img {
    min-height: 300px;
}

.bs-date-featured-image:hover img,
.bs-date-card-image:hover img {
    transform: scale(1.035);
}

.bs-date-featured-content {
    align-self: center;
    padding: 28px;
}

.bs-date-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: #fff;
    background: var(--bs-red);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

.bs-date-featured-content h2 {
    margin: 0 0 12px;
    color: var(--bs-text);
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.45;
    font-weight: 800;
}

.bs-date-featured-content h2 a,
.bs-date-card-content h2 a {
    color: inherit;
    text-decoration: none;
}

.bs-date-featured-content h2 a:hover,
.bs-date-card-content h2 a:hover {
    color: var(--bs-red);
}

.bs-date-meta {
    margin: 0 0 10px;
}

.bs-date-excerpt,
.bs-date-card-excerpt {
    color: var(--bs-text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.bs-date-excerpt {
    margin: 0 0 18px;
}

.bs-date-read-more {
    color: var(--bs-red);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.bs-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bs-date-card {
    min-width: 0;
    overflow: hidden;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bs-date-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .09);
}

.bs-date-card-image {
    aspect-ratio: 16 / 9;
}

.bs-date-card-content {
    padding: 17px;
}

.bs-date-card-content h2 {
    margin: 0 0 10px;
    color: var(--bs-text);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 750;
}

.bs-date-card-excerpt {
    margin: 0;
    font-size: 13px;
}

.bs-date-image-placeholder {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--bs-text-muted);
    background: var(--bs-surface-muted);
    font-weight: 700;
}

.bs-date-pagination {
    margin-top: 36px;
}

.bs-date-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bs-date-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--bs-text);
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.bs-date-pagination .page-numbers.current {
    color: #fff;
    background: var(--bs-red);
    border-color: var(--bs-red);
}

.bs-date-pagination a.page-numbers:hover {
    color: #fff;
    background: var(--bs-red);
    border-color: var(--bs-red);
}

.bs-date-empty {
    padding: 45px 25px;
    text-align: center;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 10px;
}

.bs-date-empty h2 {
    margin: 0 0 12px;
    color: var(--bs-text);
}

.bs-date-empty p {
    color: var(--bs-text-muted);
}

.bs-date-empty a {
    color: var(--bs-red);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .bs-date-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bs-date-featured {
        grid-template-columns: 1fr 1fr;
    }

    .bs-date-featured-image,
    .bs-date-featured-image img {
        min-height: 250px;
    }

    .bs-date-featured-content {
        padding: 22px;
    }
}

@media (max-width: 600px) {
    .bs-date-page {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .bs-date-header {
        margin-bottom: 22px;
    }

    .bs-date-featured {
        grid-template-columns: 1fr;
    }

    .bs-date-featured-image,
    .bs-date-featured-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .bs-date-featured-content {
        padding: 19px;
    }

    .bs-date-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bs-date-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .bs-date-card-image {
        height: 100%;
        min-height: 112px;
        aspect-ratio: auto;
    }

    .bs-date-card-content {
        padding: 12px;
    }

    .bs-date-card-content h2 {
        font-size: 15px;
        line-height: 1.45;
    }

    .bs-date-card-excerpt {
        display: none;
    }

    .bs-date-empty {
        padding: 30px 18px;
    }
}

/* =========================================================
   BIHARSCAN GENERAL ARCHIVE
   Isolated styles for archive.php only.
   ========================================================= */

.bs-archive-page {
    padding-top: 34px;
    padding-bottom: 60px;
}

.bs-archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bs-border);
}

.bs-archive-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--bs-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.bs-archive-title {
    margin: 0 0 10px;
    color: var(--bs-text);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    font-weight: 800;
}

.bs-archive-description {
    margin: 0;
    color: var(--bs-text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Web Stories archive */

.bs-archive-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.bs-archive-story-card {
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bs-archive-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.bs-archive-story-player {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 9px;
}

.bs-archive-story-player .wp-block-web-stories-embed {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.bs-archive-story-player .wp-block-embed__wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
}

.bs-archive-story-player amp-story-player {
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 5;
    margin: 0 auto;
}

.bs-archive-story-player img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-archive-story-content {
    padding: 15px 3px 3px;
}

.bs-archive-story-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 800;
}

.bs-archive-story-title a {
    color: var(--bs-text);
    text-decoration: none;
}

.bs-archive-story-title a:hover {
    color: var(--bs-red);
}

.bs-archive-date {
    display: block;
    color: var(--bs-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* General archive cards */

.bs-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bs-archive-card {
    min-width: 0;
    overflow: hidden;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bs-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.bs-archive-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bs-surface-muted);
}

.bs-archive-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bs-archive-card-image:hover img {
    transform: scale(1.035);
}

.bs-archive-card-content {
    padding: 17px;
}

.bs-archive-card-title {
    margin: 9px 0 10px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 800;
}

.bs-archive-card-title a {
    color: var(--bs-text);
    text-decoration: none;
}

.bs-archive-card-title a:hover {
    color: var(--bs-red);
}

.bs-archive-card-excerpt {
    color: var(--bs-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Pagination and empty state */

.bs-archive-pagination {
    margin-top: 36px;
}

.bs-archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bs-archive-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--bs-text);
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
}

.bs-archive-pagination .page-numbers.current,
.bs-archive-pagination .page-numbers:hover {
    color: #fff;
    background: var(--bs-red);
    border-color: var(--bs-red);
}

.bs-archive-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--bs-text-muted);
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 12px;
}

/* Tablet */

@media (max-width: 900px) {
    .bs-archive-story-grid,
    .bs-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .bs-archive-page {
        padding-top: 22px;
        padding-bottom: 40px;
    }

    .bs-archive-story-grid,
    .bs-archive-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bs-archive-story-card {
        padding: 12px;
    }

    .bs-archive-story-content {
        padding: 13px 3px 3px;
    }

    .bs-archive-story-title {
        font-size: 17px;
    }

    .bs-archive-card-content {
        padding: 14px;
    }

    .bs-archive-card-title {
        font-size: 17px;
    }

    .bs-archive-empty {
        padding: 30px 18px;
    }
}

