/* ==========================================================================
   Axom Vision - Complete Responsive Design System & Stylesheet
   ========================================================================== */

:root {
  /* Color Palette - Premium Axom Vision Network Theme */
  --primary: #e50914;
  --primary-hover: #b71c1c;
  --primary-light: rgba(229, 9, 20, 0.12);
  --secondary: #1d4ed8;
  --brand-blue: #1d4ed8;
  --brand-blue-glow: rgba(29, 78, 216, 0.35);
  --brand-red-glow: rgba(229, 9, 20, 0.35);
  --accent: #ff9800;
  --live-red: #e50914;
  
  /* Light Mode Colors */
  --bg-main: #f5f7fa;
  --bg-card: #ffffff;
  --bg-header: #12161f;
  --bg-nav: #1a202c;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f9fafb;
  --border-color: #e5e7eb;
  --border-subtle: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

  /* Font Families */
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Article Content Settings */
  --article-font-size: 1.125rem;

  /* Layout Dimensions */
  --header-height: 70px;
  --ticker-height: 40px;
  --nav-height: 50px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Assamese Gamocha Pattern Border */
.gamocha-border {
  height: 6px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    #d32f2f,
    #d32f2f 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  border-bottom: 2px solid #b71c1c;
  z-index: 1000;
  position: relative;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-main: #0b0f17;
  --bg-card: #151c28;
  --bg-header: #080b11;
  --bg-nav: #0f141e;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #2d3748;
  --border-subtle: #1a202c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.badge-live {
  background-color: var(--live-red);
  color: #ffffff;
  animation: pulse-live 1.8s infinite;
}

.badge-cat {
  background-color: var(--primary);
  color: #ffffff;
}

.badge-assamese {
  background-color: #059669;
  color: #ffffff;
}

@keyframes pulse-live {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Utility Bar */
.top-bar {
  background-color: #090c10;
  color: #9ca3af;
  font-size: 0.825rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #1f2937;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-left-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn, .lang-toggle-btn {
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  transition: var(--transition);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* Breaking News Ticker */
.ticker-wrap {
  background: #111827;
  color: #ffffff;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--primary);
  overflow: hidden;
}

.ticker-label {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-items {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.ticker-item::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.75rem;
  font-weight: bold;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Main Site Header */
.main-header {
  background-color: var(--bg-header);
  color: var(--text-light);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title .vision-text {
  color: var(--primary);
}

.brand-title span.assamese-text {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  border-radius: 20px;
  border: 1px solid #374151;
  background-color: #1f2937;
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  background-color: #111827;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

.header-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cms-portal {
  background: linear-gradient(135deg, var(--primary) 0%, #b71c1c 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.btn-cms-portal:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.6);
}

.mobile-menu-btn {
  display: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.3rem;
}

/* Primary Category Navigation Bar */
.cat-nav {
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

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

.cat-nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.cat-nav-item a {
  display: block;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.cat-nav-item a:hover,
.cat-nav-item a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  left: 0;
}

.mobile-drawer-header {
  padding: 1.25rem;
  background-color: var(--bg-header);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-body {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav-list {
  display: flex;
  height: 100%;
  list-style: none;
}

.mobile-bottom-nav-item {
  flex: 1;
}

.mobile-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 0.2rem;
  transition: var(--transition);
}

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

.mobile-bottom-nav-item i {
  font-size: 1.2rem;
}

/* ==========================================================================
   Main Layout & News Grids
   ========================================================================== */
.main-content {
  padding: 1.5rem 0;
  min-height: 80vh;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--primary);
  padding-left: 0.6rem;
  line-height: 1.2;
}

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

/* Hero Section Layout */
.hero-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

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

/* Primary Hero Card */
.hero-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.hero-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}

.hero-card-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: #ffffff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #d1d5db;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.hero-excerpt {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Secondary Trending News Sidebar */
.trending-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-news-card {
  display: flex;
  gap: 0.85rem;
  background-color: var(--bg-card);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

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

.side-news-thumb {
  width: 100px;
  height: 75px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-news-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.side-news-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Standard Article Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.article-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

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

.article-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #1a202c;
}

.article-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb {
  transform: scale(1.05);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: rgba(229, 9, 20, 0.88);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.article-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.author-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* YouTube Video Hub Section */
.video-section {
  background-color: var(--bg-header);
  color: #ffffff;
  padding: 2rem 0;
  margin: 2rem calc(50% - 50vw);
  width: 100vw;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.video-card {
  background-color: #1a202c;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
}

.video-card-body {
  padding: 0.9rem;
}

.video-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

/* ==========================================================================
   Article Detail Modal / Full View
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.article-modal-container {
  background-color: var(--bg-card);
  color: var(--text-main);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--primary);
}

.article-header {
  padding: 2rem 2rem 1rem 2rem;
}

.article-title-main {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.tool-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tool-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.article-hero-media {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.responsive-video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.responsive-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.article-body-content {
  padding: 0 2rem 2rem 2rem;
  font-size: var(--article-font-size);
  line-height: 1.75;
}

.article-body-content p {
  margin-bottom: 1.25rem;
}

.article-body-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
}

.article-body-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-light);
  margin: 1.5rem 0;
  font-style: italic;
  font-weight: 500;
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   Editorial CMS Dashboard & Authoring Portal
   ========================================================================== */
.cms-modal-container {
  background-color: var(--bg-main);
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cms-header {
  background-color: var(--bg-header);
  color: #ffffff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary);
}

.cms-team-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cms-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.cms-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.cms-sidebar {
  width: 240px;
  background-color: var(--bg-nav);
  color: var(--text-light);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border-color);
}

.cms-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.cms-nav-item:hover, .cms-nav-item.active {
  background-color: var(--primary);
  color: #ffffff;
}

.cms-content-area {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background-color: var(--bg-main);
}

/* Account Switcher Component */
.account-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.account-chip.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Article Authoring Form */
.cms-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .cms-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CMS Data Table */
.cms-table-wrap {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.cms-table th, .cms-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cms-table th {
  background-color: var(--bg-main);
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }

  .header-search {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-bottom-nav {
    display: block;
  }
  
  .cms-body {
    flex-direction: column;
  }
  
  .cms-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Top Utility Bar */
  .top-bar {
    font-size: 0.75rem;
    padding: 0.25rem 0;
  }
  
  .top-left-info {
    gap: 0.5rem;
  }
  
  .top-left-info > div:not(#current-date-display) {
    display: none; /* Hide weather on phones to preserve space */
  }
  
  .top-right-actions {
    gap: 0.4rem;
  }
  
  .theme-toggle-btn span, .lang-toggle-btn span {
    display: none; /* Icon only for dark mode & login on small screens */
  }
  
  /* Main Header */
  .main-header {
    padding: 0.4rem 0;
  }
  
  .brand-logo-img {
    height: 36px;
  }
  
  .brand-title {
    font-size: 1.15rem;
    line-height: 1.05;
  }
  
  .brand-title span.assamese-text {
    font-size: 0.7rem;
  }
  
  .btn-cms-portal {
    display: none; /* Hide large red button from top header on mobile (accessible via mobile bottom nav & drawer) */
  }
  
  /* Breaking Ticker */
  .ticker-wrap {
    height: 36px;
  }
  
  .ticker-label {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
  
  .ticker-item {
    font-size: 0.8rem;
    padding: 0 1rem;
  }

  /* Category Navigation */
  .cat-nav-item a {
    padding: 0.55rem 0.75rem;
    font-size: 0.825rem;
  }

  /* Hero Section */
  .hero-card {
    height: 280px !important;
  }
  
  .hero-card-img {
    height: 100%;
  }
  
  .hero-card-body {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 1.15rem !important;
    line-height: 1.25;
    margin-bottom: 0.25rem;
  }
  
  .hero-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
  }

  /* News Grid */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .side-news-card {
    padding: 0.6rem;
  }
  
  .side-news-thumb {
    width: 80px;
    height: 65px;
  }
  
  .side-news-title {
    font-size: 0.85rem;
  }

  /* Article Modal */
  .article-modal-container {
    width: 95%;
    max-height: 90vh;
    border-radius: 8px;
  }
  
  .article-title-main {
    font-size: 1.25rem !important;
  }
  
  .article-header, .article-body-content {
    padding: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1rem;
  }
  
  .hero-card {
    height: 250px !important;
  }
  
  .hero-title {
    font-size: 1.05rem !important;
  }
}

/* ==========================================================================
   Social Share Modal & Rich Link Previews
   ========================================================================== */
.share-modal-container {
  background-color: var(--bg-card);
  color: var(--text-main);
  width: 92%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.share-modal-header {
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.share-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-modal-title i {
  color: var(--primary);
}

.share-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.share-preview-card {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.share-preview-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: #000;
}

.share-preview-info {
  flex: 1;
  min-width: 0;
}

.share-preview-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-preview-badge {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.share-btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-btn-facebook {
  background-color: #1877F2;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn-telegram {
  background-color: #0088cc;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.share-btn-twitter {
  background-color: #111827;
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.share-btn-linkedin {
  background-color: #0a66c2;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.share-btn-native {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.share-copy-box {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.share-copy-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-main);
  outline: none;
}

.share-copy-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.share-copy-btn:hover {
  background: #1e40af;
}

.share-copy-btn.copied {
  background: #059669;
}

