/* ==========================================================================
   SANSANI KHABAR — MASTER DESIGN SYSTEM & STYLESHEET
   Reference Theme: Carmine Red (#ba1b1b) & Crisp Executive White (#ffffff)
   ========================================================================== */

:root {
  /* Carmine / Crimson Red (From User Reference Screenshot 5) */
  --cgm-carmine-dark: #8c1414;   /* Deep Dark Carmine for active tabs */
  --cgm-carmine: #ba1b1b;        /* Primary Carmine Red */
  --cgm-carmine-bright: #dc2626; /* Bright Red highlight */
  --cgm-carmine-light: #ef4444;
  --cgm-carmine-tint: rgba(186, 27, 27, 0.08);
  --cgm-carmine-glow: rgba(186, 27, 27, 0.28);

  /* Deep Charcoal Slate Palette */
  --cgm-charcoal-deep: #090d16;
  --cgm-charcoal: #0f172a;       /* Slate Obsidian */
  --cgm-charcoal-surface: #1e293b;
  --cgm-charcoal-light: #334155;

  /* Theme Aliases */
  --cgm-primary: var(--cgm-carmine);
  --cgm-primary-dark: var(--cgm-carmine-dark);
  --cgm-red: var(--cgm-carmine);
  --cgm-red-bright: var(--cgm-carmine-bright);
  --cgm-red-tint: var(--cgm-carmine-tint);
  --cgm-navy: var(--cgm-carmine);
  --cgm-navy-deep: var(--cgm-charcoal-deep);

  /* Canvas & Surface */
  --cgm-bg: #f8fafc;             /* Crisp Clean Off-White */
  --cgm-surface: #ffffff;        /* Pure White Card */
  --cgm-card-bg: #ffffff;
  --cgm-border: #e2e8f0;
  --cgm-border-light: #f1f5f9;

  /* Typography */
  --cgm-text: #0f172a;           /* Deep Charcoal Headings */
  --cgm-text-body: #1e293b;      /* Slate Body Text */
  --cgm-text-muted: #64748b;     /* Meta Text */

  /* Radii & Shadows */
  --cgm-radius-sm: 6px;
  --cgm-radius-md: 10px;
  --cgm-radius-lg: 16px;
  --cgm-radius-xl: 20px;

  --cgm-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --cgm-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --cgm-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --cgm-shadow-hover: 0 16px 36px rgba(186, 27, 27, 0.14);

  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Noto Sans Devanagari", "Plus Jakarta Sans", -apple-system, sans-serif;
}

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

/* Global Image Reset: Prevents any image from ever overflowing its container */
img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--cgm-bg);
  color: var(--cgm-text-body);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Safety against horizontal scrollbars */
}

main {
  flex: 1 0 auto;
}

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

a:hover {
  color: var(--cgm-carmine);
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cgm-text);
  line-height: 1.28;
}

/* ==========================================================================
   1. TOP NOTIFICATION STRIP
   ========================================================================== */
.cgm-top-strip {
  background: var(--cgm-charcoal-deep);
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--cgm-carmine);
}

.cgm-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.cgm-top-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.cgm-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cgm-meta-item svg {
  color: var(--cgm-carmine-bright);
}

.cgm-live-dot {
  width: 9px;
  height: 9px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
  animation: pulse-red-dot 1.6s infinite;
}

@keyframes pulse-red-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

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

.cgm-top-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cgm-social-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.cgm-social-btn:hover {
  background: var(--cgm-carmine);
  color: #ffffff;
  transform: translateY(-2px);
}

.cgm-top-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.65rem;
  background: var(--cgm-carmine);
  border-radius: 20px;
}

/* ==========================================================================
   2. MAIN BRAND HEADER
   ========================================================================== */
.cgm-brand-header {
  background: #ffffff;
  border-bottom: 1px solid var(--cgm-border);
  padding: 1.15rem 0;
}

.cgm-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cgm-brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cgm-brand-logo-img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.cgm-brand-logo-link:hover .cgm-brand-logo-img {
  transform: scale(1.02);
}

.cgm-trending-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cgm-tag-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--cgm-carmine);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cgm-tag-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cgm-text-body);
  background: #f1f5f9;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--cgm-border);
  transition: all 0.2s ease;
}

.cgm-tag-pill:hover {
  background: var(--cgm-carmine);
  color: #ffffff;
  border-color: var(--cgm-carmine);
}

.cgm-header-search {
  max-width: 290px;
  width: 100%;
}

.cgm-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cgm-search-input {
  width: 100%;
  padding: 0.6rem 2.8rem 0.6rem 1.1rem;
  font-size: 0.88rem;
  border: 2px solid var(--cgm-border);
  border-radius: 24px;
  background: #ffffff;
  color: var(--cgm-text);
  outline: none;
  transition: all 0.2s ease;
}

.cgm-search-input:focus {
  border-color: var(--cgm-carmine);
  box-shadow: 0 0 0 3px rgba(186, 27, 27, 0.15);
}

.cgm-search-btn {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--cgm-carmine);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cgm-search-btn:hover {
  background: var(--cgm-carmine-dark);
  transform: scale(1.06);
}

/* ==========================================================================
   3. STICKY NAVBAR (DEEP CARMINE RED #ba1b1b — REFERENCE SCREENSHOT 5)
   ========================================================================== */
.cgm-navbar {
  background: var(--cgm-carmine);
  padding: 0;
  border-bottom: 2px solid var(--cgm-carmine-dark);
  box-shadow: 0 4px 18px rgba(186, 27, 27, 0.25);
  z-index: 1020;
}

.cgm-navbar .navbar-brand {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  padding: 0.6rem 0;
  line-height: 1.2;
}

.cgm-navbar .navbar-brand .cgm-brand-accent {
  color: #fef08a !important; /* Soft yellow contrast on red */
}

/* Three-Bar Toggler Icon Pure White */
.cgm-navbar .navbar-toggler {
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0.5rem;
}

.cgm-navbar .navbar-toggler svg,
.cgm-navbar .navbar-toggler line {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.cgm-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.15rem !important;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cgm-navbar .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: #ffffff !important;
}

/* Solid Dark Red Block for Active Navigation (Matching Reference Screenshot 5) */
.cgm-navbar .nav-link.active {
  background-color: var(--cgm-carmine-dark) !important;
  color: #ffffff !important;
}

/* Dropdown Menu */
.cgm-navbar .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--cgm-border);
  border-radius: var(--cgm-radius-md);
  box-shadow: var(--cgm-shadow-lg);
  padding: 0.5rem 0;
  margin-top: 0;
}

.cgm-navbar .dropdown-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cgm-text-body);
  padding: 0.5rem 1.25rem;
}

.cgm-navbar .dropdown-item:hover,
.cgm-navbar .dropdown-item.active {
  background: var(--cgm-carmine-tint);
  color: var(--cgm-carmine);
}

/* ==========================================================================
   4. BREAKING NEWS TICKER
   ========================================================================== */
.cgm-breaking-ticker {
  background: var(--cgm-charcoal-deep);
  border-bottom: 1px solid rgba(186, 27, 27, 0.25);
  color: #f1f5f9;
  font-size: 0.9rem;
  overflow: hidden;
}

.cgm-ticker-inner {
  display: flex;
  align-items: center;
  height: 44px;
}

.cgm-ticker-badge {
  background: var(--cgm-carmine);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 4px 0 12px rgba(186, 27, 27, 0.4);
}

.cgm-ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  flex: 1 1 auto;
  position: relative;
}

.cgm-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-slide 32s linear infinite;
}

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

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

.cgm-ticker-item {
  color: #f8fafc;
  margin-right: 2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.cgm-ticker-item:hover {
  color: #fef08a;
}

.cgm-ticker-sep {
  width: 5px;
  height: 5px;
  background: var(--cgm-carmine);
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   5. BENTO HERO EDITORIAL GRID
   ========================================================================== */
.cgm-hero-bento {
  margin: 1.75rem 0 2.5rem;
}

.cgm-bento-grid {
  display: grid;
  grid-template-columns: 2fr 1.35fr 1fr;
  gap: 1.25rem;
}

/* Lead Feature Card */
.cgm-bento-lead {
  position: relative;
  border-radius: var(--cgm-radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--cgm-shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cgm-bento-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.08) 0%, rgba(9, 13, 22, 0.65) 55%, rgba(9, 13, 22, 0.95) 100%);
  pointer-events: none;
}

.cgm-bento-lead:hover {
  transform: translateY(-3px);
  box-shadow: var(--cgm-shadow-hover);
}

.cgm-bento-lead-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #ffffff;
}

.cgm-lead-kicker {
  background: var(--cgm-carmine);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.cgm-bento-lead-title {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 0.75rem;
}

.cgm-bento-lead-title a {
  color: #ffffff;
}

.cgm-bento-lead-title a:hover {
  color: #fef08a;
}

.cgm-bento-lead-desc {
  font-size: 0.92rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cgm-bento-meta {
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Secondary Stack */
.cgm-bento-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cgm-stack-card {
  position: relative;
  border-radius: var(--cgm-radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex: 1 1 50%;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--cgm-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cgm-stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.12) 0%, rgba(9, 13, 22, 0.85) 100%);
  pointer-events: none;
}

.cgm-stack-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cgm-shadow-hover);
}

.cgm-stack-content {
  position: relative;
  z-index: 2;
  padding: 1.35rem;
  color: #ffffff;
}

.cgm-card-badge {
  background: var(--cgm-carmine);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.cgm-stack-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.cgm-stack-title a {
  color: #ffffff;
}

.cgm-stack-title a:hover {
  color: #fef08a;
}

/* Headlines Side Column */
.cgm-bento-headlines {
  background: #ffffff;
  border-radius: var(--cgm-radius-lg);
  border: 1px solid var(--cgm-border);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cgm-shadow-sm);
}

.cgm-headlines-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--cgm-carmine);
}

.cgm-headlines-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cgm-text);
  margin: 0;
}

.cgm-headlines-badge {
  background: var(--cgm-carmine);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.cgm-headlines-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cgm-headline-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--cgm-border-light);
}

.cgm-headline-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cgm-carmine);
  opacity: 0.9;
  line-height: 1;
}

.cgm-headline-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.25rem;
}

.cgm-headline-title a {
  color: var(--cgm-text);
}

.cgm-headline-title a:hover {
  color: var(--cgm-carmine);
}

.cgm-headline-time {
  font-size: 0.72rem;
  color: var(--cgm-text-muted);
}

/* ==========================================================================
   6. SECTION HEADERS & GENERAL NEWS CARDS
   ========================================================================== */
.cgm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--cgm-carmine);
}

.cgm-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cgm-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cgm-section-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--cgm-carmine);
  border-radius: 2px;
}

.cgm-view-all-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cgm-carmine);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cgm-view-all-link:hover {
  color: var(--cgm-carmine-dark);
}

/* News Cards */
.cgm-card {
  background: #ffffff;
  border: 1px solid var(--cgm-border);
  border-radius: var(--cgm-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cgm-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.cgm-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cgm-charcoal);
}

.cgm-card-media {
  display: block;
  width: 100%;
  height: 100%;
}

.cgm-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.cgm-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.cgm-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1 1 auto;
}

.cgm-card-title a {
  color: var(--cgm-text);
}

.cgm-card-title a:hover {
  color: var(--cgm-carmine);
}

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

/* ==========================================================================
   7. SIDEBAR & TRENDING NEWS (RESPONSIVE THUMBNAILS - FIX FOR ITEM 3)
   ========================================================================== */
.cgm-sidebar-box {
  background: #ffffff;
  border-radius: var(--cgm-radius-lg);
  border: 1px solid var(--cgm-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--cgm-shadow-sm);
  overflow: hidden; /* Guaranteed no horizontal overflow */
}

.cgm-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cgm-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--cgm-carmine);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cgm-sidebar-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cgm-carmine);
  border-radius: 2px;
}

/* Trending Items ("सबसे ज्यादा पढ़ी गई") */
.cgm-trending-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cgm-border-light);
  min-width: 0; /* Prevents flex child overflow */
}

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

.cgm-trending-thumb {
  width: 96px;
  height: 70px;
  min-width: 96px;
  max-width: 96px;
  border-radius: var(--cgm-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cgm-trending-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.cgm-trending-thumb:hover img {
  transform: scale(1.08);
}

.cgm-trending-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.cgm-trending-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cgm-trending-info h4 a {
  color: var(--cgm-text);
  text-decoration: none;
}

.cgm-trending-info h4 a:hover {
  color: var(--cgm-carmine);
}

.cgm-trending-views {
  font-size: 0.75rem;
  color: var(--cgm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Social Connect Cards */
.cgm-social-connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.cgm-social-connect-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--cgm-radius-md);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cgm-social-connect-card span {
  color: #ffffff !important;
  font-weight: 700;
}

.cgm-social-connect-card:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cgm-social-card--yt { background: #dc2626; }
.cgm-social-card--fb { background: #1877f2; }
.cgm-social-card--ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.cgm-social-card--x  { background: #000000; border: 1px solid #475569; }

/* ==========================================================================
   8. ARTICLE DETAIL PAGE (NEWS.PHP) — PURE WHITE CARD & SHADOW (NO SIDEBAR)
   ========================================================================== */
.cgm-article-wrap {
  padding: 1.5rem 0 3.5rem;
}

.cgm-article-card {
  background: #ffffff;
  border: 1px solid var(--cgm-border);
  border-radius: var(--cgm-radius-xl);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--cgm-shadow-md);
  margin-bottom: 2.5rem;
}

.cgm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cgm-text-muted);
  margin-bottom: 1.25rem;
}

.cgm-breadcrumb a {
  color: var(--cgm-text-muted);
}

.cgm-breadcrumb a:hover {
  color: var(--cgm-carmine);
}

.cgm-breadcrumb-sep {
  opacity: 0.5;
}

.cgm-article-header {
  margin-bottom: 1.5rem;
}

.cgm-article-badge-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.cgm-cat-badge {
  background: var(--cgm-carmine);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cgm-reading-time {
  font-size: 0.8rem;
  color: var(--cgm-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cgm-article-title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--cgm-text);
  margin-bottom: 1rem;
}

.cgm-article-lead {
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cgm-author-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--cgm-border);
  border-bottom: 1px solid var(--cgm-border);
  margin-bottom: 1.5rem;
}

.cgm-author-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cgm-author-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cgm-carmine);
}

.cgm-author-details {
  line-height: 1.25;
}

.cgm-author-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cgm-text);
}

.cgm-publish-date {
  font-size: 0.78rem;
  color: var(--cgm-text-muted);
}

/* Article Hero Image (Fully Responsive, Uncropped Display) */
.cgm-article-hero {
  border-radius: var(--cgm-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--cgm-shadow-sm);
  background: transparent;
  text-align: center;
}

.cgm-article-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--cgm-radius-lg);
}

/* Article Body Content */
.cgm-article-body {
  font-size: 1.12rem;
  line-height: 1.88;
  color: #1e293b;
}

.cgm-article-body p {
  margin-bottom: 1.5rem;
}

.cgm-article-body h2,
.cgm-article-body h3,
.cgm-article-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--cgm-text);
}

.cgm-article-body blockquote {
  border-left: 4px solid var(--cgm-carmine);
  background: var(--cgm-carmine-tint);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--cgm-radius-md) var(--cgm-radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  margin: 1.75rem 0;
  color: var(--cgm-text);
}

/* Author Bio Card */
.cgm-author-bio-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem;
  background: #f8fafc;
  border: 1px solid var(--cgm-border);
  border-radius: var(--cgm-radius-lg);
  margin-top: 2rem;
}

.cgm-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cgm-carmine);
  flex-shrink: 0;
}

/* ==========================================================================
   SHARE BUTTONS & COPY BUTTON (FIX FOR ITEM 4)
   ========================================================================== */
.cgm-share-panel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cgm-share-title {
  color: var(--cgm-text);
  font-size: 0.9rem;
}

.cgm-share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
}

.cgm-share-link:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  opacity: 0.92;
}

.cgm-share-wa { background: #25d366; }
.cgm-share-fb { background: #1877f2; }
.cgm-share-x  { background: #000000; }
.cgm-share-tg { background: #0088cc; }

/* Pure White Text on Solid Dark Slate Background for Copy Button */
.cgm-share-copy {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  cursor: pointer;
}

.cgm-share-copy:hover {
  background: #0f172a !important;
  color: #ffffff !important;
}

.cgm-share-copy svg {
  stroke: #ffffff !important;
}

.cgm-share-copy .copy-text,
.cgm-share-copy span {
  color: #ffffff !important;
  font-weight: 700;
}

/* ==========================================================================
   9. FOOTER (HIGH CONTRAST & WHITE LOGO BADGE)
   ========================================================================== */
.cgm-footer {
  background: var(--cgm-charcoal-deep);
  color: #cbd5e1;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-top: 3px solid var(--cgm-carmine);
  margin-top: 3.5rem;
}

.cgm-footer-logo-badge {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.cgm-footer-brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.cgm-footer-slogan {
  color: #fef08a;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.cgm-footer-col h5 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.cgm-footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--cgm-carmine);
}

.cgm-footer-col ul {
  padding-left: 0;
  list-style: none;
}

.cgm-footer-col li {
  margin-bottom: 0.55rem;
}

.cgm-footer-col a {
  color: #cbd5e1;
  font-size: 0.88rem;
}

.cgm-footer-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.cgm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Mobile Nav Logo Badge */
.cgm-mobile-logo-badge {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Back to top button */
.cgm-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cgm-carmine);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(186, 27, 27, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 999;
}

.cgm-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cgm-back-to-top:hover {
  background: var(--cgm-carmine-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1199px) {
  .cgm-bento-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .cgm-bento-headlines {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .cgm-bento-grid {
    grid-template-columns: 1fr;
  }
  .cgm-bento-lead {
    min-height: 360px;
  }
  .cgm-trending-tags {
    display: none;
  }
  .cgm-article-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .cgm-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .cgm-brand-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .cgm-brand-logo-img {
    height: 48px;
  }
  .cgm-header-search {
    max-width: 100%;
  }
  .cgm-bento-lead-content {
    padding: 1.25rem;
  }
  .cgm-article-card {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   CONTACT PAGE — PREMIUM CARD DESIGN & WHITE THEME
   ========================================================================== */
.cgm-contact-wrapper {
  background: #ffffff;
  padding: 2.5rem 0 4.5rem;
  min-height: 80vh;
}

.cgm-contact-header {
  margin-bottom: 2.25rem;
}

.cgm-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: rgba(186, 27, 27, 0.08);
  color: #ba1b1b;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(186, 27, 27, 0.18);
}

.cgm-contact-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.65rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.cgm-contact-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  max-width: 650px;
}

.cgm-contact-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.cgm-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}

/* Main Cards */
.cgm-contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cgm-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ba1b1b, #dc2626);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.cgm-contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.25rem;
}

.cgm-contact-card-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(186, 27, 27, 0.1);
  color: #ba1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info Tiles */
.cgm-contact-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  transition: all 0.2s ease;
}

.cgm-contact-tile:hover {
  background: #ffffff;
  border-color: rgba(186, 27, 27, 0.28);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transform: translateX(3px);
}

.cgm-contact-tile-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: rgba(186, 27, 27, 0.08);
  color: #ba1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cgm-contact-tile-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.cgm-contact-tile-text {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.45;
}

.cgm-contact-tile-link {
  color: #ba1b1b;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cgm-contact-tile-link:hover {
  color: #8c1414;
  text-decoration: underline;
}

/* Live Desk Status Banner */
.cgm-contact-desk-status {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #166534;
  margin-bottom: 1.25rem;
}

.cgm-desk-pulse-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: cgmPulseDot 2s infinite;
}

@keyframes cgmPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Social Connect Cards */
.cgm-contact-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.cgm-contact-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cgm-social-yt {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
}
.cgm-social-yt:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cgm-social-fb {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
}
.cgm-social-fb:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cgm-social-wa {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #16a34a;
}
.cgm-social-wa:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Contact Form Elements */
.cgm-contact-form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.cgm-contact-form-label .required-star {
  color: #ba1b1b;
  margin-left: 2px;
}

.cgm-contact-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.cgm-contact-input:focus {
  background: #ffffff;
  border-color: #ba1b1b;
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(186, 27, 27, 0.12);
}

.cgm-contact-input::placeholder {
  color: #94a3b8;
}

.cgm-contact-textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.55;
}

.cgm-contact-submit-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ba1b1b 0%, #991b1b 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(186, 27, 27, 0.28);
  transition: all 0.25s ease;
}

.cgm-contact-submit-btn:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(186, 27, 27, 0.38);
}

.cgm-contact-submit-btn:active {
  transform: translateY(0);
}

.cgm-form-privacy-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
