/*
Theme Name: Breaking Hours
Theme URI: https://example.com/
Author: Breaking Hours
Description: Modern, responsive Indian news portal theme matching the Breaking Hours broadcast layout with live market ticker, breaking news marquee, featured hero, latest stories sidebar, all news page, and full WordPress admin/customizer controls.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: breaking-hours
*/

/* --- Modern Reset & Custom Properties --- */
:root {
  --bh-accent: #c90018;
  --bh-accent-hover: #a30013;
  --bh-text: #111111;
  --bh-text-secondary: #555555;
  --bh-muted: #777777;
  --bh-line: #e4e4e4;
  --bh-line-dark: #2a2a2a;
  --bh-page-bg: #ffffff;
  --bh-soft-bg: #f8f9fa;
  --bh-header-bg: #ffffff;
  --bh-header-text: #111111;
  --bh-header-line: #e6e6e6;
  --bh-container-width: 1180px;
  --bh-header-height: 76px;
  --bh-body-top-padding: 34px;
  --bh-logo-size: 28px;
  --bh-nav-size: 14px;
  --bh-nav-gap: 34px;
  --bh-action-gap: 18px;
  --bh-live-size: 13px;
  --bh-body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bh-heading-font: Georgia, "Times New Roman", Times, serif;
  --bh-title-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bh-market-up: #128859;
  --bh-market-down: #d32f2f;
  --bh-market-ticker-speed: 32s;
  --bh-breaking-ticker-speed: 20s;
  --bh-footer-bg: #111111;
  --bh-footer-text-color: #ffffff;
  --bh-footer-link: #cccccc;
  --bh-footer-line: #333333;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bh-page-bg, #ffffff);
  color: var(--bh-text, #111111);
  font-family: var(--bh-body-font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--bh-container-width, 1260px);
  margin: 0 auto;
  padding: 0 var(--bh-gutter, 20px);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Site Header (Fixed / Sticky Header)
   ========================================================================== */
.site-header {
  background: var(--bh-header-bg, #ffffff);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--bh-header-line, #e6e6e6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.topbar-wrap {
  border-bottom: 1px solid var(--bh-header-line, #e6e6e6);
  background: #ffffff;
}

/* Topbar: Left Logo, Centered Nav, Right Actions */
.topbar {
  height: var(--bh-header-height, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
  border: none;
  background: transparent;
  color: var(--bh-accent, #c90018);
  cursor: pointer;
  padding: 8px;
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
  transition: opacity 0.2s;
}

.menu-toggle:hover {
  opacity: 0.8;
}

/* Brand / Logo: BREAKING HOURS */
.brand {
  font-family: "Impact", "Arial Black", "Montserrat", "Inter", sans-serif;
  font-size: var(--bh-logo-size, 28px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.brand .brand-red {
  color: var(--bh-accent, #c90018);
  margin-right: 5px;
}

.brand .brand-dark {
  color: #111111;
}

.brand img.custom-logo {
  max-height: calc(var(--bh-header-height, 76px) - 22px);
  width: auto;
}

/* Center Desktop Navigation Menu: HOME, NEWS, VIDEO Placed in Center */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bh-nav-gap, 34px);
  margin: 0 auto;
  font-family: var(--bh-title-font);
  font-size: var(--bh-nav-size, 14px);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.nav a,
.nav .nav-link {
  color: #1a1a1a;
  position: relative;
  padding: 27px 0 24px;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-bottom-color 0.18s ease;
}

.nav a:hover,
.nav .nav-link:hover {
  color: var(--bh-accent, #c90018);
  border-bottom-color: var(--bh-accent, #c90018);
}

.nav .current-menu-item,
.nav .current-menu-item>a,
.nav a.current-menu-item {
  color: var(--bh-accent, #c90018) !important;
  border-bottom-color: var(--bh-accent, #c90018) !important;
}

.mobile-bottom-bar {
  display: none;
}

/* Header Actions: Search Toggle & Live TV on Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--bh-action-gap, 18px);
  flex: 0 0 auto;
  margin-left: 0;
}

.search-toggle-btn {
  background: transparent;
  border: none;
  color: #111111;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
}

.search-toggle-btn:hover {
  color: var(--bh-accent, #c90018);
  background: #f5f5f5;
}

.live-btn {
  background: var(--bh-accent, #c90018);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 4px;
  font-family: var(--bh-title-font);
  font-weight: 800;
  font-size: var(--bh-live-size, 13px);
  letter-spacing: 0.4px;
  line-height: 1;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 4px rgba(201, 0, 24, 0.2);
}

.live-btn:hover {
  background: var(--bh-accent-hover, #a30013);
  transform: translateY(-1px);
}

/* ==========================================================================
   Search Drawer Overlay
   ========================================================================== */
.search-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid var(--bh-accent, #c90018);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 14px 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 95;
  animation: bhFadeDown 0.2s ease forwards;
}

.search-drawer.open {
  display: block;
}

.search-drawer-inner {
  display: flex;
  align-items: center;
}

.header-search-form {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
}

.header-search-form .search-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.header-search-form .search-input:focus {
  border-color: var(--bh-accent, #c90018);
  box-shadow: 0 0 0 3px rgba(201, 0, 24, 0.12);
}

.search-submit-btn {
  height: 44px;
  padding: 0 22px;
  background: var(--bh-accent, #c90018);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-submit-btn:hover {
  background: var(--bh-accent-hover, #a30013);
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
}

.search-close-btn:hover {
  color: #111;
}

@keyframes bhFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Mobile Side Menu / Drawer (Matching Reference Screenshot)
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 330px;
  max-width: 86vw;
  background: #000000;
  color: #ffffff;
  z-index: 1050;
  transform: translateX(-100%);
  visibility: hidden;
  box-shadow: none;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.75);
}

.mobile-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 20px 18px;
  border-bottom: 1px solid #141414;
}

.mobile-drawer-brand {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.drawer-brand-text {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.drawer-brand-white {
  color: #ffffff;
}

.drawer-brand-red {
  color: var(--bh-accent, #c90018);
}

.drawer-subtitle {
  font-family: var(--bh-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #888888;
  text-transform: uppercase;
  margin-top: 5px;
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  border: 1px solid #2d2d2d;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: border-color 0.2s, background-color 0.2s;
  padding: 0;
}

.mobile-drawer-close:hover {
  border-color: #666666;
  background: #1c1c1c;
}

.mobile-drawer-body {
  padding: 20px;
}

/* 24/7 Live TV Banner in Drawer */
.drawer-live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bh-accent, #c90018);
  color: #ffffff !important;
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 2px;
  font-family: var(--bh-font-sans);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 22px;
  transition: filter 0.2s;
}

.drawer-live-banner:hover {
  filter: brightness(1.1);
}

.live-signal-waves {
  font-size: 16px;
  letter-spacing: -1px;
}

/* News Desks Heading in Drawer */
.drawer-section-title {
  font-family: var(--bh-font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #6a717a;
  text-transform: uppercase;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

/* Category List Rows with Chevron */
.drawer-menu-list {
  display: flex;
  flex-direction: column;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 12px;
  border-bottom: 1px solid #141414;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--bh-font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.drawer-menu-item:hover {
  background: #111111;
  color: #ffffff;
}

.drawer-menu-item .drawer-chevron {
  color: #555555;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  transition: color 0.15s;
}

/* Active Row in Drawer (Matches screenshot red chevron) */
.drawer-menu-item.active {
  background: #151515;
  color: #ffffff;
}

.drawer-menu-item.active .drawer-chevron {
  color: var(--bh-accent, #c90018);
  font-weight: 900;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Responsive Mobile Bottom Bar (hidden on desktop) */
.mobile-bottom-bar {
  display: none;
}

/* ==========================================================================
   Breaking News Ticker Bar (Black bar + Red Badge)
   ========================================================================== */
.ticker-breaking-bar {
  height: 38px;
  background: #161616;
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #292929;
}

.breaking-badge {
  flex: 0 0 auto;
  height: 100%;
  background: var(--bh-accent, #c90018);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  padding: 0 20px 0 16px;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
  user-select: none;
}

.breaking-ticker-window {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.breaking-ticker-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: bhTickerMarquee var(--bh-breaking-ticker-speed, 20s) linear infinite;
  will-change: transform;
}

.breaking-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-content-track {
  display: inline-flex;
  align-items: center;
}

.breaking-ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  padding: 0 22px;
}

.breaking-ticker-item::before {
  content: "•";
  color: var(--bh-accent, #c90018);
  font-size: 16px;
  margin-right: 18px;
}

.breaking-item-link {
  color: #ffffff;
}

.breaking-item-link:hover {
  color: #ffadb6;
  text-decoration: underline;
}

@keyframes bhTickerMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Markets Today Bar (Light Bar with Fixed Header & Scrolling Track)
   ========================================================================== */
.ticker-market-bar {
  background: #fbfbfb;
  border-bottom: 1px solid var(--bh-header-line, #e6e6e6);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 12.5px;
}

.market-bar-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
}

.market-badge {
  flex: 0 0 auto;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid #e0e0e0;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.market-badge svg {
  color: var(--bh-market-up, #128859);
}

.market-change.up {
  color: var(--bh-market-up, #128859);
  font-weight: 700;
}

.market-change.down {
  color: var(--bh-market-down, #d32f2f);
  font-weight: 700;
}

.market-window {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.market-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: bhMarketMarquee var(--bh-market-ticker-speed, 32s) linear infinite;
  will-change: transform;
}

.market-track:hover {
  animation-play-state: paused;
}

.market-loop-track {
  display: inline-flex;
  align-items: center;
}

.market-item {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #222222;
  padding: 0 24px;
}

.market-item .up {
  color: var(--bh-market-up, #128859);
  margin-left: 4px;
}

.market-item .down {
  color: var(--bh-market-down, #d32f2f);
  margin-left: 4px;
}

@keyframes bhMarketMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.site-main {
  padding-top: var(--bh-body-top-padding, 34px);
  padding-bottom: 50px;
  background: var(--bh-page-bg, #ffffff);
}

/* Hero 2-Column Grid */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ==========================================================================
   Left Column: Featured Hero Story
   ========================================================================== */
.hero-featured-col {
  min-width: 0;
}

.featured-card {
  position: relative;
}

.featured-media-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bh-soft-bg, #f5f5f5);
  border-radius: 2px;
}

.featured-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bh-accent, #c90018);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1.2;
  z-index: 3;
  user-select: none;
}

.featured-img-link {
  display: block;
}

.featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.02);
}

.hero-fallback-svg {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
}

/* Featured Typography */
.featured-content {
  padding-top: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-kicker,
.latest-kicker,
.card-kicker {
  color: var(--bh-accent, #c90018);
  font-weight: 800;
  font-size: var(--bh-kicker-size, 13px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.kicker-cat {
  color: var(--bh-accent, #c90018);
}

.kicker-dot {
  color: var(--bh-accent, #c90018);
}

.kicker-date {
  color: var(--bh-accent, #c90018);
}

.featured-title {
  font-family: var(--bh-heading-font), "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-featured-title, 38px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-title a {
  color: var(--bh-text, #111111);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-title a:hover {
  color: var(--bh-accent, #c90018);
}

.featured-excerpt {
  font-size: var(--bh-featured-excerpt, 16px);
  line-height: 1.55;
  color: var(--bh-text-secondary, #555555);
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   Right Column: Latest News Sidebar
   ========================================================================== */
.hero-latest-col {
  min-width: 0;
}

/* Section Header (| LATEST ───────) */
.latest-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.latest-accent-bar {
  width: 4px;
  height: 22px;
  background: var(--bh-accent, #c90018);
  border-radius: 1px;
  flex: 0 0 auto;
}

.latest-title-text {
  font-family: var(--bh-heading-font);
  font-size: var(--bh-section-title, 24px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.3px;
  color: #111111;
  margin: 0;
  white-space: nowrap;
}

.latest-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: #dbdbdb;
}

/* Latest Feed Items */
.latest-feed-list {
  display: flex;
  flex-direction: column;
}

.latest-feed-item {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bh-line, #e4e4e4);
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
}

.latest-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.latest-feed-info {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.latest-feed-info .latest-kicker {
  font-size: 12px;
  margin-bottom: 5px;
}

.latest-feed-title {
  font-family: var(--bh-heading-font), "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-latest-title, 20px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 7px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.latest-feed-title a {
  color: #111111;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.latest-feed-title a:hover {
  color: var(--bh-accent, #c90018);
}

.latest-feed-desc {
  font-size: var(--bh-latest-desc, 13.5px);
  line-height: 1.45;
  color: var(--bh-text-secondary, #555555);
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Thumbnail (Right side) */
.latest-feed-thumb {
  flex: 0 0 var(--bh-latest-image, 105px);
  width: var(--bh-latest-image, 105px);
  height: var(--bh-latest-image, 105px);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bh-soft-bg, #eee);
  flex-shrink: 0;
}

.latest-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.latest-feed-item:hover .latest-thumb-img {
  transform: scale(1.05);
}

.latest-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b2b2b;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Demo Thumbnails matching screenshot */
.latest-thumb-demo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
}

.latest-thumb-resigns {
  background: linear-gradient(135deg, #2b1f1d 0%, #151515 100%);
  border-left: 3px solid #ffcc00;
}

.latest-thumb-resigns .demo-thumb-tag {
  color: #ffcc00;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}

.latest-thumb-highway {
  background: linear-gradient(135deg, #1c2e42 0%, #0e1722 100%);
  border-left: 3px solid #38bdf8;
}

.latest-thumb-highway .demo-thumb-tag {
  color: #38bdf8;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}

.latest-thumb-tech {
  background: linear-gradient(135deg, #20352b 0%, #101c16 100%);
  border-left: 3px solid #4ade80;
}

.latest-thumb-tech .demo-thumb-tag {
  color: #4ade80;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}

/* ==========================================================================
   More Stories Grid Section
   ========================================================================== */
.stories-grid-section {
  margin-top: var(--bh-section-spacing, 45px);
  padding-top: 15px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(var(--bh-news-columns, 3), minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.card-media {
  display: block;
  overflow: hidden;
  background: var(--bh-soft-bg, #eee);
  border-radius: 2px;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 100%;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.card-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-title {
  font-family: var(--bh-heading-font), "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-card-title, 22px);
  font-weight: 800;
  line-height: 1.25;
  margin: 4px 0 8px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-title a {
  color: #111111;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-title a:hover {
  color: var(--bh-accent, #c90018);
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bh-text-secondary, #555555);
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Demo Card Backgrounds */
.demo-media-1 .card-img-placeholder {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #94a3b8;
}

.demo-media-2 .card-img-placeholder {
  background: linear-gradient(135deg, #14532d, #052e16);
  color: #86efac;
}

.demo-media-3 .card-img-placeholder {
  background: linear-gradient(135deg, #701a75, #4a044e);
  color: #f0abfc;
}

/* ==========================================================================
   News Page & Category Filter Bar
   ========================================================================== */
.news-archive-page {
  padding-top: 30px;
}

.news-page-header {
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bh-line, #e4e4e4);
}

.news-page-title-row {
  margin-bottom: 16px;
}

.news-page-main-title {
  font-family: var(--bh-heading-font);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: #111111;
}

.news-page-subtitle {
  font-size: 14px;
  color: var(--bh-text-secondary, #666666);
}

.news-categories-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}

.news-cat-tab {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 4px;
  font-family: var(--bh-title-font);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--bh-soft-bg, #f2f2f2);
  color: #222222;
  border: 1px solid #dfdfdf;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.news-cat-tab:hover {
  background: #e8e8e8;
  color: var(--bh-accent, #c90018);
  border-color: #d0d0d0;
}

.news-cat-tab.active {
  background: var(--bh-accent, #c90018) !important;
  color: #ffffff !important;
  border-color: var(--bh-accent, #c90018) !important;
  font-weight: 800;
}

.news-card .card-title {
  font-size: 20px;
}

/* ==========================================================================
   Single Article & Archive Layouts
   ========================================================================== */
.single-wrap {
  max-width: var(--bh-article-width, 900px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--bh-article-bg, #ffffff);
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-wrap h1 {
  font-family: var(--bh-heading-font), "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-article-title, 48px);
  line-height: 1.15;
  margin: 10px 0 16px;
  font-weight: 800;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-wrap>h2 {
  font-family: "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-article-ml-title, 25px);
  line-height: 1.35;
  margin: 0 0 20px;
  color: #333;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-feature {
  width: 100%;
  max-height: var(--bh-article-image-height, 620px);
  object-fit: cover;
  border-radius: 2px;
  margin: 20px 0;
}

.single-content {
  font-family: var(--bh-heading-font), "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-article-text, 18px);
  line-height: var(--bh-article-line, 1.75);
  color: #222;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-content p {
  margin: 0 0 1.25em;
}

.share-row {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.share-row a {
  padding: 8px 14px;
  border: 1px solid var(--bh-line, #ddd);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.share-row a:hover {
  border-color: var(--bh-accent, #c90018);
  color: var(--bh-accent, #c90018);
}

.malayalam-box {
  margin-top: 35px;
  padding: 24px;
  background: var(--bh-soft-bg, #fafafa);
  border-left: 4px solid var(--bh-accent, #c90018);
  font-family: "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: var(--bh-malayalam-text, 18px);
  line-height: 1.8;
  white-space: pre-line;
  border-radius: 0 4px 4px 0;
}

.archive-head {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bh-accent, #c90018);
}

.archive-head h1 {
  font-family: var(--bh-heading-font);
  font-size: 32px;
  margin: 0;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.pagination .current {
  background: var(--bh-accent, #c90018);
  color: #fff;
  border-color: var(--bh-accent, #c90018);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--bh-footer-bg, #111111);
  color: var(--bh-footer-text-color, #ffffff);
  margin-top: 60px;
  font-size: var(--bh-footer-text, 15px);
  overflow: hidden;
}

.site-footer a {
  color: var(--bh-footer-link, #cccccc);
}

.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--bh-accent, #c90018) 18%, var(--bh-accent, #c90018) 82%, transparent 100%);
}

.footer-inner {
  max-width: var(--bh-container-width, 1180px);
  margin: 0 auto;
}

.footer-brand-row {
  padding: 48px 24px 40px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand-title {
  display: inline-block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff !important;
  font-family: "Impact", "Arial Black", sans-serif;
  font-style: italic;
  text-transform: uppercase;
}

.footer-brand-title span {
  color: var(--bh-accent, #c90018);
}

.footer-brand-title strong {
  color: #ffffff;
}

.footer-brand-title b {
  color: #888888;
  font-size: 0.72em;
}

.footer-brand-copy p {
  margin: 0;
  line-height: 1.65;
  color: var(--bh-footer-link, #c0c0c0);
  font-size: 14.5px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bh-footer-line, #333333);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  border-color: var(--bh-accent, #c90018);
  color: #ffffff;
  background: var(--bh-accent, #c90018);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-categories-row {
  border-top: 1px solid var(--bh-footer-line, #2c2c2c);
  border-bottom: 1px solid var(--bh-footer-line, #2c2c2c);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.footer-section-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bh-accent, #c90018);
  white-space: nowrap;
}

.footer-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-categories a {
  font-size: 13px;
  font-weight: 700;
  transition: color 0.18s;
}

.footer-categories a:hover {
  color: var(--bh-accent, #c90018);
}

.footer-copyright-row {
  padding: 22px 24px 26px;
  text-align: center;
}

.copyright-text {
  color: var(--bh-muted, #888888);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Tablet / Medium Devices (max-width: 991px) --- */
@media (max-width: 991px) {
  .footer-copyright-row {
    padding-bottom: 86px;
  }

  .topbar {
    height: var(--bh-mobile-header, 66px);
    gap: 14px;
  }

  .nav {
    display: none;
    /* Collapses to hamburger drawer */
  }

  /* Responsive Mobile Bottom Navigation (Floating capsule pill bar matching reference) */
  .mobile-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 18px;
    left: 0;
    right: 0;
    z-index: 995;
    pointer-events: none;
  }

  .mobile-bottom-bar .mobile-pill-nav {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 7px 28px;
    gap: 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .mobile-pill-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #828a95;
    position: relative;
    padding: 2px 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
  }

  .mobile-pill-item .pill-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    margin-bottom: 3px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-pill-item .pill-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
    transition: transform 0.2s ease;
  }

  .mobile-pill-item .pill-label {
    font-family: var(--bh-font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1;
  }

  /* Active / Current item: Glowing cyan highlight with indicator dot matching reference */
  .mobile-pill-item.current,
  .mobile-pill-item.active {
    color: #00e5ff;
  }

  .mobile-pill-item.current .pill-dot,
  .mobile-pill-item.active .pill-dot {
    background: #00e5ff;
    box-shadow: 0 0 6px #00e5ff, 0 0 10px rgba(0, 229, 255, 0.6);
  }

  .mobile-pill-item:hover {
    color: #ffffff;
  }

  .brand {
    font-size: var(--bh-mobile-logo, 22px);
  }

  .header-actions {
    margin-left: auto;
    gap: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-latest-col {
    padding-top: 10px;
    border-top: 1px solid #ebebeb;
  }

  .featured-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .news-categories-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
}

/* --- Tablets & Phablets (max-width: 768px) --- */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Small Mobile Phones (max-width: 640px) --- */
@media (max-width: 640px) {
  .container {
    width: min(calc(100% - var(--bh-mobile-gap, 12px) * 2), var(--bh-container-width, 1180px));
  }

  .topbar {
    height: var(--bh-mobile-header, 60px);
    gap: 10px;
  }

  .brand {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .header-actions {
    gap: 8px;
  }

  .live-btn {
    padding: 7px 11px;
    font-size: 11.5px;
    gap: 5px;
  }

  .live-btn svg {
    width: 14px;
    height: 14px;
  }

  .search-toggle-btn {
    padding: 6px;
  }

  .search-toggle-btn svg {
    width: 19px;
    height: 19px;
  }

  /* Tickers on Mobile */
  .breaking-badge {
    padding: 0 14px 0 10px;
    font-size: 11px;
  }

  .breaking-ticker-item {
    font-size: 12px;
    padding: 0 16px;
  }

  .breaking-ticker-item::before {
    margin-right: 12px;
  }

  .market-badge {
    padding-right: 10px;
    font-size: 11px;
    gap: 5px;
  }

  .market-title {
    font-size: 11px;
  }

  .market-item {
    font-size: 11.5px;
    padding: 0 16px;
  }

  /* Hero & Latest on Mobile */
  .site-main {
    padding-top: 20px;
  }

  .featured-badge {
    font-size: 11px;
    padding: 5px 11px;
  }

  .featured-title {
    font-size: var(--bh-mobile-featured-title, 26px);
    line-height: 1.2;
  }

  .featured-excerpt {
    font-size: 14px;
  }

  .latest-title-text {
    font-size: var(--bh-mobile-section-title, 21px);
  }

  /* Latest Items on small screens: proportional split */
  .latest-feed-item {
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .latest-feed-thumb {
    flex: 0 0 85px;
    width: 85px;
    height: 85px;
  }

  .latest-feed-title {
    font-size: var(--bh-mobile-latest-title, 17px);
    line-height: 1.22;
    margin-bottom: 4px;
  }

  .latest-feed-desc {
    font-size: 12.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card-title {
    font-size: var(--bh-mobile-card-title, 19px);
  }

  /* News Page Mobile */
  .news-page-main-title {
    font-size: 26px;
  }

  .news-categories-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .news-cat-tab {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* Footer on mobile */
  .footer-brand-row {
    padding: 34px 16px 28px;
  }

  .footer-categories-row {
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
  }

  .footer-categories {
    gap: 8px 14px;
  }

  .footer-copyright-row {
    padding: 18px 14px 22px;
  }
}

/* ==========================================================================
   Video Page & Video Cards
   ========================================================================== */
.video-archive-page {
  padding-top: 30px;
}

.video-heading-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.video-badge-icon {
  background: var(--bh-accent, #c90018);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Spotlight Featured Video Card */
.video-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 32px;
  background: #161616;
  color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 20px;
  align-items: center;
}

.spotlight-media-wrap {
  position: relative;
  overflow: hidden;
}

.video-thumb-container {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-pulse-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bh-accent, #c90018);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(201, 0, 24, 0.35);
  transition: transform 0.25s ease, background-color 0.2s;
}

.video-spotlight-card:hover .play-pulse-btn {
  transform: scale(1.12);
  background: #e6001c;
}

.video-live-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bh-accent, #c90018);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 2px;
}

.video-duration-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: monospace;
}

.spotlight-info-wrap {
  padding: 28px 32px 28px 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spotlight-title {
  font-family: var(--bh-heading-font), "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 14px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spotlight-title a {
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spotlight-title a:hover {
  color: var(--bh-accent, #c90018);
}

.spotlight-desc {
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Video Card in Grid */
.video-card .video-thumb-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 0, 24, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-card:hover .video-play-badge {
  transform: scale(1.15);
  background: #e6001c;
}

.video-time-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: monospace;
}

@media (max-width: 900px) {
  .video-spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-info-wrap {
    padding: 20px;
  }
}