/* ==========================================================================
   ND30 LIVE - Modern Multilingual News Portal Stylesheet
   Designed for High-End Broadcasting & Multilingual Readability
   Supports: Assamese (অসমীয়া), Hindi (हिंदी), and English
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
  --primary-red: #dc2626;
  --primary-dark-red: #991b1b;
  --accent-gold: #f59e0b;
  --accent-blue: #2563eb;
  
  --bg-main: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-secondary: #0f172a;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(220, 38, 38, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.25);
  
  --font-base: 'Inter', 'Noto Sans Bengali', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-secondary: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(220, 38, 38, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
}

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

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */

.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Selector Navigation */
.lang-selector-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.lang-tag {
  font-size: 0.68rem;
  opacity: 0.8;
  text-transform: uppercase;
}

/* Theme Toggle */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* Main Brand Header */
.main-header {
  padding: 20px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

/* Animated Logo Container with Shimmer Effect */
.brand-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  padding: 4px;
}

.brand-logo-wrapper::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -130%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.15) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(22deg);
  animation: logoLightSheen 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes logoLightSheen {
  0%, 60% {
    left: -130%;
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  80% {
    left: 170%;
    opacity: 1;
  }
  82%, 100% {
    left: 170%;
    opacity: 0;
  }
}

/* Increased Logo Size with Live Breathing Red Neon Glow */
.brand-logo-img {
  height: 76px;
  max-width: 250px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 3px rgba(220, 38, 38, 0.3));
  animation: logoLiveBreathe 3.2s ease-in-out infinite alternate;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

@keyframes logoLiveBreathe {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 3px rgba(220, 38, 38, 0.25));
  }
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.8)) drop-shadow(0 0 28px rgba(220, 38, 38, 0.4));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 3px rgba(220, 38, 38, 0.25));
  }
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.06) translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 36px rgba(220, 38, 38, 0.5));
}

.brand-logo-link:hover .brand-logo-wrapper::after {
  animation-duration: 2s;
}

.brand-logo-badge {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark-red));
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -1px;
  box-shadow: var(--shadow-glow);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid rgba(220, 38, 38, 0.45);
  padding-left: 14px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.brand-logo-link:hover .brand-tagline {
  color: var(--text-main);
}

.header-ad-banner {
  flex: 1;
  max-width: 728px;
  display: flex;
  justify-content: flex-end;
}

/* Official Header Social QR Codes Hub */
.header-social-qr-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.3s ease;
}

.header-social-qr-container:hover {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(239, 68, 68, 0.15);
}

/* Animated Calling Text Above QR Codes */
.qr-animated-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.qr-pulse-icon {
  font-size: 0.95rem;
  display: inline-block;
  animation: qrIconRing 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes qrIconRing {
  0%, 100% { transform: scale(1) rotate(0deg); }
  10% { transform: scale(1.2) rotate(-12deg); }
  20% { transform: scale(1.2) rotate(12deg); }
  30% { transform: scale(1.2) rotate(-12deg); }
  40% { transform: scale(1) rotate(0deg); }
}

.qr-animated-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #ff4d4d 0%, #fbbf24 25%, #38bdf8 50%, #ffffff 75%, #ff4d4d 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: qrGradientShine 4s linear infinite;
  text-shadow: 0 0 12px rgba(255, 77, 77, 0.25);
  white-space: nowrap;
}

@keyframes qrGradientShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

/* QR Code Grid Row */
.header-qr-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Individual Platform QR Card */
.header-qr-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 6px 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.header-qr-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.header-qr-card.facebook:hover {
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.25);
}

.header-qr-card.youtube:hover {
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.25);
}

.header-qr-card.instagram:hover {
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.25);
}

.header-qr-card.x:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* QR Code Image Wrapper with Centered Logo */
.qr-code-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* Platform Logo in the Center of QR Code */
.qr-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

/* QR Info & Actions */
.qr-info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qr-platform-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.qr-action-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-qr-card:hover .qr-action-hint {
  color: #38bdf8;
}

/* Ad Placement Box */
.ad-slot-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-subtle);
  margin-bottom: 4px;
  display: block;
}

/* Category Navigation Bar */
.category-nav-bar {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-btn-label-desktop {
  display: inline;
}

.nav-btn-label-mobile {
  display: none;
}

.nav-item a {
  display: inline-block;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--primary-red);
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 3px 3px 0 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 1.1rem;
}

.search-toggle-btn:hover {
  color: var(--primary-red);
}

/* Breaking News Ticker */
.breaking-ticker {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.ticker-label {
  background: var(--primary-red);
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.ticker-marquee {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.ticker-item:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.ticker-separator {
  color: var(--accent-gold);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Homepage Layout & News Grids
   ========================================================================== */

.main-content {
  flex: 1;
  padding: 30px 0;
}

/* Hero Section */
.hero-news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .hero-news-grid {
    grid-template-columns: 1fr;
  }
}

.hero-primary-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  group: hover;
}

.hero-img-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.8) 60%, rgba(11, 15, 25, 0.98) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 32px;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-summary {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Secondary Hero Stack */
.hero-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.news-card-compact:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.news-card-compact-img {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.news-card-compact-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-compact-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 24px;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-red);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-red);
}

/* Homepage Main Content & Sidebar Grid */
.home-main-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .home-main-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .home-main-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }
}

/* 2-Column Responsive Card Grid for Homepage & Article Pages */
.news-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .news-grid-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Standard 3-Column News Grid */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .news-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid-3 {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.news-card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

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

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

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

.news-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 6px;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: auto;
}

/* ==========================================================================
   Article Single Page & Language Relationship Bar
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 36px;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb-bar a:hover {
  color: var(--primary-red);
}

.article-header {
  margin-bottom: 24px;
}

.article-category-tag {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  color: var(--primary-red);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-headline {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .article-headline {
    font-size: 1.65rem;
  }
}

.article-lead-box {
  background: var(--bg-card);
  border-left: 4px solid var(--primary-red);
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Language Availability & Switcher Bar on Article */
.article-lang-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.article-lang-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.article-lang-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.article-lang-pill:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-1px);
}

.article-lang-pill.current {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  cursor: default;
}

.article-lang-pill.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
}

/* Article Author & Timestamp */
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn.tg { background: #229ED9; }
.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.x { background: #000000; }
.share-btn.copy { background: #475569; }

/* Article Body Content */
.article-featured-img-wrap {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-img-caption {
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding: 8px 12px;
  font-style: italic;
  background: var(--bg-card);
}

.article-prose {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 32px;
}

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

.article-prose h3 {
  font-size: 1.4rem;
  margin: 30px 0 16px;
  color: var(--text-main);
}

.article-prose strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Tags List */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.article-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-tag:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #060911;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.8fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Registered Office Footer Card (Animated) */
.footer-office-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.footer-office-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.4);
}

.footer-office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
  background-size: 200% auto;
  animation: officeBorderGlow 3s linear infinite;
}

@keyframes officeBorderGlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.footer-office-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-office-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: officeDotPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes officeDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.footer-office-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  background: linear-gradient(90deg, #ffffff 0%, #fbbf24 30%, #ef4444 50%, #fbbf24 70%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: officeTitleShimmer 3.5s linear infinite;
  display: inline-block;
}

@keyframes officeTitleShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.footer-office-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-office-body p {
  margin: 0 0 6px 0;
}

.footer-office-email a {
  color: var(--accent-gold, #fbbf24);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-office-email a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  text-decoration: underline;
}

.footer-col-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   ND30 LIVE - Comprehensive Tablet & Mobile Responsive Architecture
   Fully Optimized for Android (Chrome / Samsung) & iPhone / iPad (Safari)
   ========================================================================== */

/* --- Tablet Devices (iPad / Android Tablets: max-width: 992px) --- */
@media (max-width: 992px) {
  .container {
    padding: 0 16px;
  }

  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .header-social-qr-container {
    align-items: center;
    width: 100%;
    max-width: 580px;
  }

  .header-qr-grid {
    justify-content: center;
  }

  .qr-animated-text {
    white-space: normal;
    text-align: center;
  }

  .hero-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .hero-primary-card {
    min-height: 360px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* --- Mobile Landscape & Small Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Top Bar */
  .top-bar {
    padding: 6px 0;
  }

  .top-bar-inner {
    gap: 8px;
    justify-content: space-between;
  }

  .top-bar-left .current-date,
  .top-bar-left span:last-child {
    display: none; /* Hide long date & Guwahati text to conserve mobile screen space */
  }

  .top-bar-right {
    gap: 8px;
  }

  .top-bar-right .top-link {
    display: none; /* Clean top bar on mobile */
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.74rem;
    gap: 4px;
  }

  .lang-tag {
    font-size: 0.62rem;
  }

  .theme-toggle-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  /* Header Branding */
  .brand-logo-img {
    height: 52px;
    max-width: 175px;
  }

  .brand-text-block {
    padding-left: 10px;
    border-left-width: 1.5px;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

  /* Sticky Category Navigation */
  .category-nav-bar {
    top: 0;
  }

  .category-nav-inner {
    padding: 0 4px;
    gap: 8px;
  }

  .nav-item a {
    padding: 12px 13px;
    font-size: 0.88rem;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .advertise-cta-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .reporter-cta-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  /* Article Header & Typography */
  .article-headline {
    font-size: 1.55rem;
    line-height: 1.35;
  }

  .article-lead-box {
    padding: 12px 14px;
    font-size: 0.94rem;
  }

  .article-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .share-buttons-group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .share-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .article-prose {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .article-prose img,
  .article-prose iframe,
  .article-prose video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }

  .article-lang-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .article-lang-options {
    flex-wrap: wrap;
    gap: 6px;
  }

  .article-lang-pill {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

/* --- Mobile Phones (Android & iPhone: max-width: 640px) --- */
@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  /* Header Branding & QR Container */
  .main-header {
    padding: 14px 0;
  }

  .brand-logo-img {
    height: 46px;
    max-width: 155px;
  }

  .brand-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }

  .brand-text-block {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .brand-tagline {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .header-social-qr-container {
    padding: 8px 10px;
    border-radius: 10px;
    width: 100%;
  }

  .header-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .header-qr-card {
    padding: 6px 8px;
    justify-content: center;
    gap: 8px;
  }

  .qr-code-wrapper {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .qr-code-img {
    width: 34px;
    height: 34px;
  }

  .qr-channel-name {
    font-size: 0.72rem;
    font-weight: 700;
  }

  .qr-channel-badge {
    font-size: 0.62rem;
  }

  .qr-animated-text {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  /* Breaking News Ticker */
  .ticker-label {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .ticker-item {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  /* Hero Section */
  .hero-primary-card {
    min-height: 270px;
    border-radius: 10px;
  }

  .hero-content {
    padding: 14px 12px;
  }

  .hero-tag {
    font-size: 0.68rem;
    padding: 3px 7px;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: 1.22rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .hero-summary {
    display: none; /* Hide summary excerpt on mobile so photo remains visible */
  }

  .hero-meta {
    font-size: 0.7rem;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-secondary-stack {
    gap: 12px;
  }

  .news-card-compact {
    padding: 10px;
    gap: 10px;
    border-radius: 8px;
  }

  .news-card-compact-img {
    width: 90px;
    height: 70px;
    border-radius: 6px;
  }

  .news-card-compact-title {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .news-card-cat {
    font-size: 0.66rem;
  }

  /* Advertisement Slider Mobile Scaling */
  .nd30-ad-slider-card {
    padding: 10px;
    border-radius: 10px;
  }

  .nd30-carousel-container {
    height: 205px !important;
  }

  .nd30-ad-contact-btn {
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .nd30-carousel-caption {
    padding: 12px 10px 8px 10px;
  }

  .nd30-carousel-caption-title {
    font-size: 0.8rem;
  }

  .nd30-carousel-caption-sub {
    font-size: 0.68rem;
  }

  .nd30-carousel-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  /* Latest Stories Card Stream */
  .news-card {
    border-radius: 10px;
  }

  .news-card-img-wrap {
    height: 175px;
  }

  .news-card-body {
    padding: 14px;
  }

  .news-card-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .news-card-summary {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
  }

  .news-card-footer {
    font-size: 0.72rem;
  }

  /* Category Page */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 1.32rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .footer-office-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* Prevent iOS Safari auto-zoom on input focus: inputs must be >= 16px */
  .form-control,
  .ad-form-control,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* --- Ultra-Compact Mobile Phones (iPhone SE, Small Android: max-width: 440px) --- */
@media (max-width: 440px) {
  .nav-item a {
    padding: 10px 10px;
    font-size: 0.82rem;
  }

  .nav-btn-label-desktop {
    display: none;
  }

  .nav-btn-label-mobile {
    display: inline;
  }

  .advertise-cta-btn,
  .reporter-cta-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  .header-qr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .header-qr-card {
    padding: 5px 6px;
    gap: 6px;
  }

  .qr-code-wrapper,
  .qr-code-img {
    width: 30px;
    height: 30px;
  }

  .qr-channel-name {
    font-size: 0.68rem;
  }

  .qr-channel-badge {
    font-size: 0.58rem;
  }
}
