/* ============================================================
   AMRIT BHOOMI — Design System
   Big News House Redesign — v2.0
   Colors: Navy + Saffron | Fonts: Playfair Display + Inter
============================================================ */
:root {
  --color-primary:   #0A1F44;  /* Deep Navy Blue */
  --color-accent:    #FF6B00;  /* Saffron */
  --color-breaking:  #D32F2F;  /* Breaking Red */
  --color-bg:        #F8F9FA;  /* Off-White */
  --color-card:      #FFFFFF;
  --color-text:      #1A1A1A;  /* Body text */
  --color-muted:     #6B7280;
  --color-border:    #E5E7EB;
  --font-headline: 'Playfair Display', 'Georgia', serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* main.css */

/* ----------------------------------------------
   RESET & BASE STYLES
---------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-width: 0;
}

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

a:hover {
  text-decoration: none;
}

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

/* Reserve inline icon width so late icon-font load does not shift text. */
.fa,
.fas,
.far,
.fab {
  display: inline-block;
  width: 1.1em;
  text-align: center;
}

/* ----------------------------------------------
   LAYOUT CONTAINER
---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----------------------------------------------
   GLOBAL TYPOGRAPHY & HEADINGS
---------------------------------------------- */
:where(h1) {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0.6em 0 0.4em;
}


/* Small text icons (replace Font Awesome) */
.icon-clock,
.icon-user {
  display: inline-block;
  margin-right: 4px;
  font-size: 0.9em;
}

/* ----------------------------------------------
   TRENDING BAR
---------------------------------------------- */
.trending-bar {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  overflow: hidden;
}

.trending-label {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ef4444;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trending-items {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.trending-items::-webkit-scrollbar {
  height: 4px;
}

.trending-items::-webkit-scrollbar-thumb {
  background: rgba(249, 250, 251, 0.3);
}

.trending-item {
  white-space: nowrap;
  padding-right: 8px;
  position: relative;
}

.trending-item::after {
  content: "•";
  position: absolute;
  right: -8px;
  top: 0;
  color: #6b7280;
}

/* ----------------------------------------------
   HERO SLIDER (NEW)
---------------------------------------------- */
.hero-slider {
  margin-top: 10px;
  margin-bottom: 18px;
}

.hero-slider-inner {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Main slide area */
.hero-slider-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  color: #f9fafb;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 260ms ease-out,
    transform 260ms ease-out;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slide-link {
  display: block;
  height: 100%;
}

/* Image + gradient */
.hero-slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 5s ease-out;
}

.hero-slide.is-active .hero-slide-media img {
  transform: scale(1.06);
}

.hero-slide-gradient {
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.75) 55%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

/* Slide text area */
.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 16px;
  z-index: 2;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: #cbd5f5;
  margin-bottom: 4px;
}

.hero-slide-cat {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-slide-date {
  display: inline-flex;
  align-items: center;
}

.hero-slide-title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2px 0 4px;
}

.hero-slide-excerpt {
  font-size: 0.86rem;
  color: #e5e7eb;
  margin: 0;
}

/* Controls */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 3;
}

.hero-slider-btn:hover {
  background: rgba(15, 23, 42, 0.95);
}

.hero-slider-prev {
  left: 10px;
}

.hero-slider-next {
  right: 10px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  padding: 0;
}

.hero-slider-dot.is-active {
  width: 16px;
  background: #f97316;
}

/* Right side list */
.hero-slider-side {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 12px 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.hero-side-heading {
  font-size: 0.98rem;
  margin: 0 0 8px;
}

.hero-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-side-item a {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 6px 4px;
  border-radius: 8px;
}

.hero-side-item a:hover {
  background: #f3f4ff;
}

.hero-side-index {
  font-weight: 600;
  color: #9ca3af;
  flex-shrink: 0;
}

.hero-side-title {
  color: #111827;
}

.hero-side-item.is-active .hero-side-title {
  color: #1d4ed8;
  font-weight: 600;
}

/* Hover effect */
.hero-slider-main:hover .hero-slide-media img {
  transform: scale(1.08);
}

/* ----------------------------------------------
   HOME LAYOUT (MAIN + SIDEBAR)
---------------------------------------------- */
.home-layout {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 28px;
}

.home-main {
  flex: 2;
  min-width: 0;
}

.home-sidebar {
  flex: 1;
  min-width: 0;
}

/* Generic sections */
section {
  margin-bottom: 20px;
}

.latest-block,
.category-highlight,
.sidebar-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 14px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* ----------------------------------------------
   LATEST NEWS LIST (news-row)
---------------------------------------------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.news-row:last-child {
  border-bottom: none;
}

.news-row-img img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.news-row-body h3 {
  font-size: 1rem;
  margin: 2px 0 4px;
}

.news-row-body p {
  font-size: 0.86rem;
  color: #4b5563;
  margin: 4px 0 0;
}

.news-row-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #6b7280;
}

.news-row-cat {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #2563eb;
}

.news-row-date {
  display: inline-flex;
  align-items: center;
}

.news-row-meta-bottom {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #6b7280;
}

/* ----------------------------------------------
   CATEGORY HIGHLIGHTS
---------------------------------------------- */
.category-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.category-highlight-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 10px 12px;
}

.category-highlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.category-highlight-header h3 {
  font-size: 0.95rem;
  margin: 0;
}

.category-highlight-header a {
  font-weight: 600;
}

.view-all-link {
  font-size: 0.78rem;
  color: #2563eb;
}

.category-highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-highlight-list li {
  margin-bottom: 4px;
}

.category-highlight-list li:last-child {
  margin-bottom: 0;
}

.category-highlight-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.83rem;
}

.category-highlight-list .bullet { display: none; }

.category-highlight-list .ch-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}
.category-highlight-list .ch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-highlight-list .ch-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-highlight-list .title {
  flex: 1;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.category-highlight-list .excerpt {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.category-highlight-list .time {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ----------------------------------------------
   QUICK READS / STORIES (sidebar)
---------------------------------------------- */
.stories-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-mini {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.story-mini:last-child {
  border-bottom: none;
}

.story-mini > a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.story-mini-img {
  line-height: 0;
}

.story-mini-img img {
  width: 120px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.story-mini-body {
  min-width: 0;
}

.story-mini-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-mini-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* More News by Category: editorial 2-card desktop grid */
.sidebar-mix-block {
  padding: 18px 18px 20px;
}

.sidebar-mix-block .stories-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.sidebar-mix-block .story-mini {
  padding-bottom: 14px;
}

.sidebar-mix-block .story-mini:nth-last-child(-n + 2) {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-mix-block .story-mini > a {
  grid-template-columns: 1fr;
  gap: 10px;
}

.sidebar-mix-block .story-mini-img img {
  width: 100%;
  height: 170px;
  border-radius: 12px;
}

.sidebar-mix-block .story-mini-body h3 {
  font-size: 1.18rem;
  line-height: 1.32;
  -webkit-line-clamp: 4;
}

.sidebar-mix-block .story-mini-meta {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ----------------------------------------------
   POPULAR ARTICLES (sidebar_popular.php)
---------------------------------------------- */
.popular-articles h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.popular-articles .article-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.popular-articles .article-card:last-child {
  border-bottom: none;
}

.popular-articles .article-img img {
  width: 130px;
  height: 94px;
  border-radius: 8px;
  object-fit: cover;
}

.popular-articles .article-content h3 {
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.popular-articles .article-excerpt {
  font-size: 0.78rem;
  color: #4b5563;
  margin: 4px 0 0;
}

.popular-articles .article-meta {
  font-size: 0.76rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ----------------------------------------------
   PRODUCT GRID (Recommended Idols)
---------------------------------------------- */
.product-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.p-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: 0.25s ease;
}

.p-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.p-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.p-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f9fafb;
  padding: 6px;
}

.p-card-body {
  padding: 10px;
}

.p-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.p-price {
  font-size: 0.9rem;
  color: #047857;
  font-weight: 700;
}

.p-desc {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.3;
}

.no-products {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ----------------------------------------------
   SUPPORT CTA (sidebar)
---------------------------------------------- */
.support-cta p {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0 0 10px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #16a34a;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
}

.support-btn:hover {
  background: #15803d;
}

/* ----------------------------------------------
   HOVER & ACTIVE STATES
---------------------------------------------- */
.hero-slide-link:hover .hero-slide-title,
.hero-slide-link:hover .hero-slide-excerpt {
  text-decoration: none;
}

.hero-main-card:hover,
.hero-side-card:hover,
.news-row:hover,
.category-highlight-card:hover,
.story-mini:hover,
.popular-articles .article-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: all 0.15s ease-out;
}

/* ----------------------------------------------
   FOOTER (simple base, extend as needed)
---------------------------------------------- */
footer {
  background: #111827;
  color: #e5e7eb;
  padding: 24px 0;
  font-size: 0.86rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner a {
  color: #e5e7eb;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------
   RESPONSIVE QUERIES
---------------------------------------------- */
@media (max-width: 992px) {
  .hero-slider-inner {
    grid-template-columns: 1fr;
  }

  .hero-slider-side {
    order: 2;
  }

  .hero-slider-main {
    order: 1;
  }

  .home-layout {
    flex-direction: column;
  }

  .home-sidebar {
    width: 100%;
  }

  .sidebar-mix-block .stories-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sidebar-mix-block .story-mini {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
  }

  .sidebar-mix-block .story-mini:nth-last-child(-n + 2) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
  }

  .sidebar-mix-block .story-mini:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .sidebar-mix-block .story-mini > a {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }

  .sidebar-mix-block .story-mini-img img {
    width: 120px;
    height: 88px;
    border-radius: 10px;
  }

  .sidebar-mix-block .story-mini-body h3 {
    font-size: 1rem;
    line-height: 1.35;
    -webkit-line-clamp: 3;
  }

  .sidebar-mix-block .story-mini-meta {
    margin-top: 6px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .trending-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-row {
    grid-template-columns: 180px 1fr;
  }

  .news-row-img img {
    height: 100px;
  }

  .category-highlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-slide-title {
    font-size: 1.15rem;
  }

  .hero-slide-excerpt {
    font-size: 0.8rem;
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .news-row-img img {
    height: 180px;
  }

  .story-mini > a,
  .sidebar-mix-block .story-mini > a {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
  }

  .story-mini-img img,
  .sidebar-mix-block .story-mini-img img {
    width: 100px;
    height: 74px;
    border-radius: 8px;
  }

  .latest-block,
  .category-highlight,
  .sidebar-block {
    padding: 12px 10px 14px;
  }
}
/* ============================================================
   BIG NEWS HOUSE DESIGN ADDITIONS — v2.0
============================================================ */

/* --- Global Typography Upgrade --- */
h1, h2, h3 {
  font-family: var(--font-headline);
  letter-spacing: -0.01em;
}

/* Keep UI elements (nav, badges, meta) in sans-serif */
.navbar-links a,
.nb-topbar,
.section-sub,
.news-row-cat,
.news-row-meta-top,
.news-row-meta-bottom,
.hero-slide-meta,
.hero-slide-cat {
  font-family: var(--font-body);
}

/* --- Breaking News Ticker (replaces old .trending-bar) --- */
.breaking-ticker {
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  border-bottom: 2px solid var(--color-accent);
}
.breaking-ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 42px;
}
.breaking-ticker-label {
  background: var(--color-breaking);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.breaking-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: br-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes br-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.breaking-ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.breaking-ticker-items {
  display: flex;
  gap: 56px;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
  padding: 0 24px;
}
.breaking-ticker-items:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.breaking-ticker-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  position: relative;
  font-family: var(--font-body);
}
.breaking-ticker-item::after {
  content: '▸';
  margin-left: 28px;
  color: var(--color-accent);
  opacity: 0.6;
}
.breaking-ticker-item:hover { color: var(--color-accent); }

/* --- Section Header (Left Accent Border Style) --- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  border-left: 4px solid var(--color-accent);
  padding-left: 12px;
}
.section-header h1 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--color-primary);
}
.section-header h2 {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  margin: 0;
  color: var(--color-primary);
}
.section-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

/* --- Badges --- */
.badge-breaking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-breaking);
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-breaking);
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: br-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.badge-exclusive {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}

/* --- Enhanced Hero Slider --- */
.hero-slider { margin-top: 8px; margin-bottom: 22px; }

.hero-slider-main { min-height: 440px; }

.hero-slide-media { aspect-ratio: 16/9; min-height: 340px; }

.hero-slide-title {
  font-family: var(--font-headline);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 4px 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-slide-cat {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 3px;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-breaking);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-slide-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: br-pulse 1.2s ease-in-out infinite;
}

.hero-side-heading {
  font-family: var(--font-headline);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.hero-side-item a {
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.hero-side-item a:hover { background: #f0f4ff; }
.hero-side-title {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}
.hero-side-index {
  background: var(--color-primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-side-item.is-active .hero-side-index { background: var(--color-accent); }
.hero-side-item.is-active .hero-side-title { color: var(--color-primary); }

/* Dot styling update */
.hero-slider-dot.is-active {
  background: var(--color-accent);
  width: 20px;
}
.hero-slider-btn {
  background: rgba(10,31,68,0.8);
}
.hero-slider-btn:hover {
  background: var(--color-primary);
}

/* --- News Row (Latest Feed) headline upgrade --- */
.news-row-body h3 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}
.news-row-body h3 a:hover { color: var(--color-accent); }

.news-row-cat {
  color: var(--color-accent) !important;
  font-weight: 600;
  font-size: 0.72rem;
}

/* --- Category Highlight Header --- */
.category-highlight-header h3 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}
.category-highlight-header {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.category-highlight-card {
  background: var(--color-card);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

/* --- Sidebar Blocks --- */
.sidebar-block h2 {
  font-family: var(--font-headline);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* --- Scrollable Links Bar (Category Scrollbar) --- */
.scrollable-links {
  top: var(--navbar-height, 56px) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--color-border) !important;
}
.link-item {
  color: #333 !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.link-item:hover {
  color: var(--color-primary) !important;
  background: #f0f4ff !important;
}
.link-item.active {
  color: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-accent) !important;
  font-weight: 700 !important;
}

/* --- Footer Enhancement --- */
footer {
  background: var(--color-primary) !important;
  color: rgba(255,255,255,0.8) !important;
  padding: 48px 0 0 !important;
}
.footer-inner { gap: 24px !important; }
.footer-inner a { color: rgba(255,255,255,0.75) !important; }
.footer-inner a:hover { color: var(--color-accent) !important; text-decoration: none !important; }

/* Footer top border */
footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-breaking), var(--color-accent));
  margin-bottom: 0;
}

/* --- Hover effects upgrade --- */
.latest-block,
.category-highlight,
.sidebar-block,
.hero-slider-side {
  border: 1px solid var(--color-border);
}

.news-row:hover {
  background: #fafbff;
  padding: 0 8px;
  margin: 0 -8px;
  border-radius: 8px;
}

/* --- Progress bar for article reading (global style for article pages) --- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-breaking), var(--color-accent));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   MOBILE FIXES — Prevent horizontal overflow, safe widths
============================================================ */

/* Global safety net */
*,
*::before,
*::after {
  max-width: 100%;
}

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

/* Breaking ticker — safe on small screens */
@media (max-width: 480px) {
  .breaking-ticker-label {
    padding: 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
  .breaking-ticker-items {
    gap: 36px;
    padding: 0 12px;
  }
  .breaking-ticker-item {
    font-size: 0.8rem;
  }
}

/* Hero slider — mobile */
@media (max-width: 600px) {
  .hero-slider-main { min-height: 260px; }
  .hero-slide-media { min-height: 200px; }
  .hero-slide-title { font-size: 1.1rem; font-weight: 700; }
  .hero-slide-excerpt { display: none; } /* hide excerpt on small screens */
  .hero-slide-content { padding: 10px 12px 12px; }
  .hero-slider-btn { width: 28px; height: 28px; font-size: 1rem; }
}

/* News feed — single column on phones */
@media (max-width: 480px) {
  .news-row {
    grid-template-columns: 1fr;
  }
  .news-row-img img {
    width: 100%;
    height: 180px;
  }
  /* Prevent negative margins from causing overflow */
  .news-row:hover {
    padding: 0;
    margin: 0;
  }
}

/* Category scrollbar — ensure it doesn't overflow */
.scrollable-links {
  max-width: 100vw;
  box-sizing: border-box;
}
.links-container {
  min-width: 0;
}

/* Footer grid — responsive */
@media (max-width: 768px) {
  .footer .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
}
@media (max-width: 480px) {
  .footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  footer {
    padding: 32px 0 0 !important;
  }
}

/* Topbar — hide on small phones */
@media (max-width: 480px) {
  .nb-topbar { display: none; }
}

/* Navbar wordmark — keep visible on very small screens */
@media (max-width: 360px) {
  .navbar-wordmark {
    display: block;
    font-size: 13px;
    max-width: min(38vw, 130px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Prevent any fixed-width child from breaking layout */
.hero-slider-inner,
.hero-grid,
.home-layout,
.category-highlight-grid,
.product-grid-two {
  max-width: 100%;
  box-sizing: border-box;
}
