/* ---------------------------------------------------
   KhabarPatra - Nepali News Portal Custom CSS
   "Professional Polish" Design Theme Overrides
--------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --news-red: #d90429;
  --news-red-dark: #a00017;
  --news-red-light: #fff1f2;
  --news-blue: #0284c7;
  --news-blue-light: #f0f7ff;
  --news-blue-bg: #e0f2fe;
  --news-blue-border: #bae6fd;
  --news-dark: #0f172a;
  --news-navy: #0369a1;
  --news-gold: #f59e0b;
  --news-secondary: #475569;
  --news-bg-light: #f8fafc;
  --news-card-bg: #ffffff;
  --news-border-color: #e2e8f0;
  --news-shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --news-shadow-hover: 0 14px 28px -4px rgba(217, 4, 41, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.08);
  --news-font-primary: 'Mukta', 'Poppins', sans-serif;
  
  /* Legacy mapping for compatibility */
  --np-red: var(--news-red);
  --np-red-dark: var(--news-red-dark);
  --np-red-light: var(--news-red-light);
  --np-dark: var(--news-dark);
  --np-secondary: var(--news-secondary);
  --np-bg-light: var(--news-bg-light);
  --np-card-bg: var(--news-card-bg);
  --np-border-color: var(--news-border-color);
  --np-shadow-sm: var(--news-shadow-sm);
  --np-shadow-hover: var(--news-shadow-hover);
  --np-font-primary: var(--news-font-primary);
}

[data-bs-theme="dark"] {
  --news-bg-light: #0f172a;
  --news-card-bg: #1e293b;
  --news-border-color: #334155;
  --news-red-light: #450a0a;
  --news-blue-light: #0f172a;
  --news-blue-bg: #1e293b;
  --news-blue-border: #334155;
  --np-bg-light: var(--news-bg-light);
  --np-card-bg: var(--news-card-bg);
  --np-border-color: var(--news-border-color);
  --np-red-light: var(--news-red-light);
}

body {
  font-family: var(--news-font-primary);
  background-color: var(--news-bg-light);
  color: var(--bs-body-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Bootstrap Utilities Overrides for Theme --- */
.text-danger, .accent-red {
  color: var(--news-red) !important;
}

.bg-danger, .bg-red {
  background-color: var(--news-red) !important;
}

.border-danger, .border-red {
  border-color: var(--news-red) !important;
}

.btn-danger {
  background-color: var(--news-red) !important;
  border-color: var(--news-red) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
}

.btn-danger:hover {
  background-color: var(--news-red-dark) !important;
  border-color: var(--news-red-dark) !important;
}

.btn-outline-danger {
  color: var(--news-red) !important;
  border-color: var(--news-red) !important;
  font-weight: 600;
}

.btn-outline-danger:hover {
  background-color: var(--news-red) !important;
  color: #ffffff !important;
}

/* --- Top Header Bar --- */
.top-header-bar {
  background-color: var(--news-blue-bg);
  color: #0369a1;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--news-blue-border);
}

.top-header-bar a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.top-header-bar a:hover {
  color: var(--news-red);
}

/* --- Main Branding Bar --- */
.main-header-bar {
  background-color: var(--news-card-bg);
  border-bottom: 1px solid var(--news-blue-border);
  padding: 18px 0;
}

.brand-logo {
  font-weight: 900;
  font-size: 2.2rem;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

[data-bs-theme="dark"] .brand-logo {
  color: #f8fafc;
}

.brand-logo .brand-badge {
  background-color: var(--news-red);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.brand-logo-img {
  max-height: 80px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.brand-name-text {
  font-weight: 900;
  font-size: 2rem;
  color: var(--news-red);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-name-text-footer {
  font-size: 1.3rem;
  color: #ff4d5a;
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
}

[data-bs-theme="dark"] .brand-name-text {
  color: #ff4d5a;
}

.footer-logo-img {
  max-height: 60px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

.header-ad-banner {
  max-height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Sticky Header Wrapper --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--news-card-bg);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

[data-bs-theme="dark"] .site-header {
  background-color: #1e293b;
}

/* --- Sticky Navbar --- */
.sticky-navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  border-bottom: 3px solid var(--news-blue-border);
  padding: 0;
}

[data-bs-theme="dark"] .sticky-navbar {
  background-color: #1e293b !important;
}

.sticky-navbar .nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0f172a !important;
  padding: 14px 14px !important;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 6px;
}

[data-bs-theme="dark"] .sticky-navbar .nav-link {
  color: #cbd5e1 !important;
}

.sticky-navbar .nav-link:hover,
.sticky-navbar .nav-link.active {
  color: #ffffff !important;
  background-color: var(--news-red);
}

.sticky-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background-color: var(--news-red);
  border-radius: 2px 2px 0 0;
}

/* --- Breaking News Ticker --- */
.breaking-ticker-bar {
  background-color: var(--news-blue-light);
  border: 1px solid var(--news-blue-border);
  color: #334155;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  margin-top: 14px;
  margin-bottom: 24px;
}

[data-bs-theme="dark"] .breaking-ticker-bar {
  background-color: #1e293b;
  color: #e2e8f0;
}

.ticker-label {
  background: linear-gradient(90deg, var(--news-red) 0%, #c01e2c 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 8px 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}

.ticker-content {
  padding: 8px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ticker-content a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

[data-bs-theme="dark"] .ticker-content a {
  color: #f1f5f9;
}

.ticker-content a:hover {
  color: var(--news-red);
  text-decoration: underline;
}

/* --- Section Titles --- */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--news-red);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--news-red);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 22px;
  background-color: var(--news-red);
  border-radius: 2px;
}

/* --- News Cards (Professional Polish) --- */
.news-card {
  background-color: var(--news-card-bg);
  border: 1px solid var(--news-border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--news-shadow-sm);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--news-shadow-hover);
  border-color: #cbd5e1;
}

.news-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background-color: #f1f5f9;
}

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

.news-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--news-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.news-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #0f172a;
  text-decoration: none;
}

[data-bs-theme="dark"] .news-card .card-title {
  color: #f8fafc;
}

.news-card .card-title:hover {
  color: var(--news-red);
}

.news-card .meta-info {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.news-card .card-text {
  font-size: 0.9rem;
  color: #475569;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

[data-bs-theme="dark"] .news-card .card-text {
  color: #94a3b8;
}

/* --- Hero Featured Carousel --- */
.hero-carousel {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--news-shadow-sm);
  border: 1px solid var(--news-border-color);
}

.hero-carousel .carousel-item {
  height: 440px;
  background-color: #0f172a;
}

.hero-carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-caption {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 65%, transparent 100%);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 32px 28px 32px;
  text-align: left;
}

.hero-carousel .caption-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* --- Trending Sidebar Box --- */
.trending-box {
  background-color: var(--news-card-bg);
  border: 1px solid var(--news-border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--news-shadow-sm);
}

.trending-header {
  background-color: var(--news-red);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--news-border-color);
  transition: background-color 0.2s ease;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item:hover {
  background-color: rgba(230, 57, 70, 0.03);
}

.trending-number {
  font-size: 1.8rem;
  font-weight: 900;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1;
  min-width: 32px;
}

.trending-item:hover .trending-number {
  color: var(--news-red);
}

.trending-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

[data-bs-theme="dark"] .trending-title {
  color: #f1f5f9;
}

.trending-title:hover {
  color: var(--news-red);
}

/* --- Opinion Section --- */
.opinion-card {
  background-color: var(--news-card-bg);
  border-left: 4px solid var(--news-red);
  border-radius: 6px;
  padding: 18px;
  box-shadow: var(--news-shadow-sm);
  border-top: 1px solid var(--news-border-color);
  border-right: 1px solid var(--news-border-color);
  border-bottom: 1px solid var(--news-border-color);
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--news-red);
}

/* --- Video News Section --- */
.video-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--news-shadow-sm);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background-color: var(--news-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-card:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--news-red-dark);
}

/* --- Single Article Page --- */
.article-header-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #0f172a;
}

[data-bs-theme="dark"] .article-header-title {
  color: #f8fafc;
}

.article-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--news-secondary);
  border-left: 4px solid var(--news-red);
  padding-left: 16px;
  margin-bottom: 24px;
}

[data-bs-theme="dark"] .article-lead {
  color: #cbd5e1;
}

.article-body-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1e293b;
}

[data-bs-theme="dark"] .article-body-content {
  color: #e2e8f0;
}

.article-body-content p {
  margin-bottom: 20px;
}

.article-body-content blockquote {
  font-style: italic;
  font-size: 1.15rem;
  background-color: var(--news-red-light);
  border-left: 4px solid var(--news-red);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
  color: #1e293b;
}

[data-bs-theme="dark"] .article-body-content blockquote {
  color: #f8fafc;
}

.author-box {
  background-color: var(--news-card-bg);
  border: 1px solid var(--news-border-color);
  border-radius: 6px;
  padding: 20px;
}

.share-btn {
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Footer --- */
.footer-area {
  background-color: var(--news-blue-light);
  color: #334155;
  padding-top: 50px;
  padding-bottom: 24px;
  border-top: 4px solid var(--news-red);
  border-bottom: 1px solid var(--news-blue-border);
  margin-top: 60px;
}

.footer-area h5 {
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-area h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--news-red);
}

.footer-area a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-area a:hover {
  color: var(--news-red);
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #64748b;
}

/* --- Admin Dashboard Custom Style --- */
.admin-sidebar {
  background-color: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.admin-sidebar .nav-link {
  color: #94a3b8;
  font-weight: 600;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #ffffff;
  background-color: #1e293b;
  border-left: 4px solid var(--news-red);
}

.stat-card {
  border: 1px solid var(--news-border-color);
  border-radius: 6px;
  box-shadow: var(--news-shadow-sm);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

/* --- Advertisement & Interactive Utilities --- */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(13, 27, 42, 0.15) !important;
}

.hover-text-danger {
  transition: color 0.2s ease;
}

.hover-text-danger:hover {
  color: var(--news-red) !important;
}

.ad-leaderboard-banner {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ad-leaderboard-banner:hover {
  border-color: var(--news-red) !important;
  box-shadow: 0 8px 20px rgba(217, 4, 41, 0.25) !important;
}

.bg-gradient-dark {
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.5) 70%, transparent 100%);
}

.transition-zoom {
  transition: transform 0.4s ease;
}

.news-card:hover .transition-zoom {
  transform: scale(1.06);
}


/* --- Custom Topic Styling --- */
.badge-health {
  background-color: #0284c7;
  color: #ffffff;
}

.badge-world {
  background-color: #0d9488;
  color: #ffffff;
}

.badge-special {
  background-color: #8b5cf6;
  color: #ffffff;
}

.special-border-left {
  border-left: 4px solid #8b5cf6 !important;
}

.health-border-left {
  border-left: 4px solid #0284c7 !important;
}

.world-border-left {
  border-left: 4px solid #0d9488 !important;
}

/* --- Gallery Page --- */
.gallery-card {
  background-color: var(--news-card-bg);
  border: 1px solid var(--news-border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--news-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--news-shadow-hover);
}

.gallery-card .gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
}

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

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}

.gallery-card .gallery-body {
  padding: 14px 16px 0 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card .gallery-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  max-height: 2.7em;
  overflow: hidden;
  min-height: 2.7em;
}

[data-bs-theme="dark"] .gallery-card .gallery-title {
  color: #f8fafc;
}

.gallery-card .gallery-title:hover {
  color: var(--news-red);
}

.gallery-card .gallery-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.gallery-card .gallery-footer {
  border-top: 1px solid var(--news-border-color);
  padding: 10px 16px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  background-color: var(--news-bg-light);
}

[data-bs-theme="dark"] .gallery-card .gallery-footer {
  color: #94a3b8;
  background-color: #16213c;
}

.gallery-card .gallery-footer .loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Category badge colors */
.cat-tourism { background-color: #f59e0b; }
.cat-trekking { background-color: #dc2626; }
.cat-culture { background-color: #10b981; }
.cat-cricket { background-color: #0284c7; }
.cat-music { background-color: #8b5cf6; }
.cat-tech { background-color: #0891b2; }

/* --- Rich Text Content Styling (TinyMCE output) --- */
.article-content,
.static-page-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
  word-wrap: break-word;
}

[data-bs-theme="dark"] .article-content,
[data-bs-theme="dark"] .static-page-content {
  color: #cbd5e1;
}

/* Category description rich text (non-hero contexts) */
.category-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  word-wrap: break-word;
}

/* Keep category description readable on the red hero banner */
.category-hero .category-desc {
  color: rgba(255, 255, 255, 0.7);
}

.article-content p,
.static-page-content p,
.category-desc p {
  margin-bottom: 1.25rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.static-page-content h1,
.static-page-content h2,
.static-page-content h3,
.static-page-content h4,
.static-page-content h5,
.static-page-content h6,
.category-desc h1,
.category-desc h2,
.category-desc h3,
.category-desc h4,
.category-desc h5,
.category-desc h6 {
  color: var(--news-dark);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
}

[data-bs-theme="dark"] .article-content h1,
[data-bs-theme="dark"] .article-content h2,
[data-bs-theme="dark"] .article-content h3,
[data-bs-theme="dark"] .article-content h4,
[data-bs-theme="dark"] .article-content h5,
[data-bs-theme="dark"] .article-content h6,
[data-bs-theme="dark"] .static-page-content h1,
[data-bs-theme="dark"] .static-page-content h2,
[data-bs-theme="dark"] .static-page-content h3,
[data-bs-theme="dark"] .static-page-content h4,
[data-bs-theme="dark"] .static-page-content h5,
[data-bs-theme="dark"] .static-page-content h6,
[data-bs-theme="dark"] .category-desc h1,
[data-bs-theme="dark"] .category-desc h2,
[data-bs-theme="dark"] .category-desc h3,
[data-bs-theme="dark"] .category-desc h4,
[data-bs-theme="dark"] .category-desc h5,
[data-bs-theme="dark"] .category-desc h6 {
  color: #f8fafc;
}

.article-content img,
.static-page-content img,
.category-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1.25rem auto;
}

.article-content a,
.static-page-content a,
.category-desc a {
  color: var(--news-red);
  text-decoration: underline;
}

.article-content ul,
.article-content ol,
.static-page-content ul,
.static-page-content ol,
.category-desc ul,
.category-desc ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li,
.static-page-content li,
.category-desc li {
  margin-bottom: 0.35rem;
}

.article-content blockquote,
.static-page-content blockquote,
.category-desc blockquote {
  border-left: 4px solid var(--news-red);
  background-color: var(--news-bg-light);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--news-secondary);
}

[data-bs-theme="dark"] .article-content blockquote,
[data-bs-theme="dark"] .static-page-content blockquote,
[data-bs-theme="dark"] .category-desc blockquote {
  background-color: #16213c;
  color: #94a3b8;
}

.article-content table,
.static-page-content table,
.category-desc table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
}

.article-content table th,
.article-content table td,
.static-page-content table th,
.static-page-content table td,
.category-desc table th,
.category-desc table td {
  border: 1px solid var(--news-border-color);
  padding: 0.6rem 0.85rem;
}

.article-content table th,
.static-page-content table th,
.category-desc table th {
  background-color: var(--news-bg-light);
  font-weight: 700;
}

[data-bs-theme="dark"] .article-content table th,
[data-bs-theme="dark"] .static-page-content table th,
[data-bs-theme="dark"] .category-desc table th {
  background-color: #16213c;
}

.article-content iframe,
.article-content video,
.article-content audio,
.static-page-content iframe,
.static-page-content video,
.static-page-content audio,
.category-desc iframe,
.category-desc video,
.category-desc audio {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.25rem 0;
}

.article-content pre,
.static-page-content pre,
.category-desc pre {
  background-color: var(--news-dark);
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.article-content code,
.static-page-content code,
.category-desc code {
  background-color: var(--news-bg-light);
  color: var(--news-red);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-content hr,
.static-page-content hr,
.category-desc hr {
  margin: 2rem 0;
  border-color: var(--news-border-color);
  opacity: 0.5;
}

.article-content figure,
.static-page-content figure,
.category-desc figure {
  margin: 1.5rem 0;
  text-align: center;
}

.article-content figcaption,
.static-page-content figcaption,
.category-desc figcaption {
  font-size: 0.85rem;
  color: var(--news-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

[data-bs-theme="dark"] .article-content figcaption,
[data-bs-theme="dark"] .static-page-content figcaption,
[data-bs-theme="dark"] .category-desc figcaption {
  color: #94a3b8;
}

/* --- Media Queries --- */
@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 320px;
  }
  .hero-carousel .caption-title {
    font-size: 1.35rem;
  }
  .article-header-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    font-size: 1.6rem;
  }
  .hero-carousel .carousel-item {
    height: 240px;
  }
  .ticker-label {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}


