/* ==============================================================================
   GO FOR DIGITAL INDIA — 2026 WORLD-CLASS MODERN PORTAL DESIGN SYSTEM
   Rich Aesthetics: Glassmorphism, Micro-Animations, Modern Typography, Vibrant Accents
   ============================================================================== */

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

:root {
  --font-portal: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Premium Color Palette */
  --portal-bg: #f8fafc;
  --portal-card-bg: #ffffff;
  --portal-primary: #1e40af;
  --portal-primary-hover: #1d4ed8;
  --portal-accent: #ea580c;
  --portal-accent-light: #fff7ed;
  --portal-success: #16a34a;
  --portal-text-dark: #0f172a;
  --portal-text-muted: #64748b;
  --portal-text-subtle: #94a3b8;
  --portal-border: #e2e8f0;
  --portal-border-subtle: #f1f5f9;

  /* Modern Glass & Elevation */
  --portal-glass: rgba(255, 255, 255, 0.94);
  --portal-glass-border: rgba(226, 232, 240, 0.8);
  --portal-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --portal-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --portal-shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --portal-shadow-hover: 0 14px 30px -6px rgba(30, 64, 175, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.06);

  --portal-radius-sm: 8px;
  --portal-radius-md: 12px;
  --portal-radius-lg: 16px;
  --portal-radius-full: 9999px;
}

body {
  font-family: var(--font-portal) !important;
  background-color: var(--portal-bg);
  color: var(--portal-text-dark);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* 1. Header & Masthead */
.site-masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--portal-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--portal-glass-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  padding: 0.65rem 0;
  transition: all 0.25s ease;
}

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

.portal-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
  transition: transform 0.2s ease;
}
.site-header-logo:hover {
  transform: scale(1.02);
}

.masthead-center-trending {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--portal-text-muted);
}
@media (max-width: 992px) {
  .masthead-center-trending { display: none; }
}

.masthead-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--portal-border);
  border-radius: var(--portal-radius-full);
  padding: 0.45rem 1rem;
  width: 330px;
  box-shadow: var(--portal-shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.masthead-search-box:focus-within {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), var(--portal-shadow-md);
  width: 390px;
}
.masthead-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--portal-text-dark);
  width: 100%;
}
.search-shortcut-badge {
  font-size: 0.7rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-family: var(--font-en);
}

/* Mobile Search Strip */
.mobile-search-strip {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--portal-border);
  padding: 0.6rem 0;
}
@media (max-width: 768px) {
  .mobile-search-strip { display: block; }
  .masthead-search-box { display: none; }
}
.mobile-search-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid var(--portal-border);
  border-radius: var(--portal-radius-full);
  padding: 0.45rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
}
.mobile-search-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--portal-text-dark);
  margin-left: 0.5rem;
}
.mobile-trending-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  margin-top: 0.45rem;
  padding: 0.1rem 0;
}
.mobile-trending-chips::-webkit-scrollbar { display: none; }
.mobile-chip {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #334155;
  padding: 0.2rem 0.65rem;
  border-radius: var(--portal-radius-full);
  text-decoration: none;
  border: 1px solid #e2e8f0;
  display: inline-block;
  cursor: pointer;
}
.mobile-chip:hover {
  background: #eff6ff;
  color: var(--portal-primary);
  border-color: #bfdbfe;
}

/* 2. Category Nav Strip */
.category-menu-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--portal-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  padding: 0.4rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-menu-bar::-webkit-scrollbar { display: none; }

.category-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  white-space: nowrap;
  padding: 0.2rem 0;
  margin: 0;
}
.category-nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  padding: 0.45rem 0.9rem;
  border-radius: var(--portal-radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}
.category-nav-item a:hover {
  background: #f1f5f9;
  color: var(--portal-primary);
  transform: translateY(-1px);
}
.category-nav-item.active a {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* 3. Ticker Bar with Live Pulse */
.trending-news-ticker-bar {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  border-bottom: 2px solid #2563eb;
}
.ticker-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #ffffff; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.ticker-marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 40s linear infinite;
}
.ticker-marquee-content:hover {
  animation-play-state: paused;
}
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ticker-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}
.ticker-sep {
  margin: 0 0.8rem;
  color: #475569;
}
.ticker-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--portal-radius-full);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ticker-whatsapp-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

/* 4. Advertisement Architecture (Strict Zero-CLS Layout) */
.ad-slot-wrapper {
  margin: 0.75rem auto;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--portal-radius-sm);
  padding: 0.25rem 0.5rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.ad-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.2rem;
  line-height: 1;
  font-family: var(--font-en);
}

/* Slot 1: Top Leaderboard */
.ad-slot-top-leaderboard {
  height: 95px !important;
  max-height: 95px !important;
  max-width: 970px;
  margin: 0.5rem auto 1rem;
}
/* Slot 2: After Quick Access Hub */
.ad-slot-after-quick-hub {
  height: 105px !important;
  max-height: 105px !important;
  max-width: 970px;
  margin: 1.25rem auto 1.75rem;
}
/* Slot 3: Between Major Content Sections */
.ad-slot-mid-content {
  height: 105px !important;
  max-height: 105px !important;
  max-width: 970px;
  margin: 1.75rem auto;
}
/* Slot 4: Desktop Sidebar (Controlled Sticky) */
.ad-slot-sidebar {
  min-height: 250px;
  max-height: 280px;
  margin-top: 1.25rem;
  position: sticky;
  top: 85px;
  z-index: 10;
}
/* Slot 5: Pre-Footer */
.ad-slot-pre-footer {
  height: 105px !important;
  max-height: 105px !important;
  max-width: 970px;
  margin: 1.5rem auto 0.75rem;
}

.ad-slot-wrapper ins.adsbygoogle {
  display: block;
  margin: 0 auto;
  max-height: 100%;
}

@media (max-width: 768px) {
  .ad-slot-sidebar {
    display: none !important; /* Hide sidebar ad on mobile per user instructions */
  }
  .ad-slot-top-leaderboard {
    height: 55px !important;
    max-height: 55px !important;
    margin: 0.4rem auto 0.6rem;
  }
  .ad-slot-after-quick-hub,
  .ad-slot-mid-content,
  .ad-slot-pre-footer {
    height: 90px !important;
    max-height: 90px !important;
    margin: 0.85rem auto;
  }
}

/* 5. Quick Action Citizen Hub (Aadhaar, PM-Kisan, Jobs, e-District) */
.quick-hub-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.quick-hub-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  padding: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--portal-text-dark);
  box-shadow: var(--portal-shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.quick-hub-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--portal-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.quick-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow-md);
  border-color: #cbd5e1;
}
.quick-hub-card:hover::after {
  opacity: 1;
}
.quick-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--portal-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.quick-hub-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.quick-hub-desc {
  font-size: 0.78rem;
  color: var(--portal-text-muted);
  margin-top: 0.15rem;
}

/* 6. Editorial 3-Column Magazine Grid */
.editorial-three-column-grid {
  display: grid;
  grid-template-columns: 290px 1fr 310px;
  gap: 1.75rem;
  margin-bottom: 2rem;
  align-items: start;
}
@media (max-width: 1080px) {
  .editorial-three-column-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .col-center-lead {
    order: 1; /* Main Featured Story FIRST on Mobile/Tablet */
  }
  .col-latest-news {
    order: 2; /* Timeline Feed second */
  }
  .col-right-features {
    order: 3; /* Trending third */
  }
}

/* Left Column: Timeline Feed */
.col-latest-news {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  padding: 1.25rem;
  box-shadow: var(--portal-shadow-sm);
}
.column-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--portal-text-dark);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline-item {
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #bfdbfe;
}
.timeline-item:hover {
  transform: translateX(4px);
  border-left-color: #2563eb;
}
.timeline-meta {
  font-size: 0.75rem;
  color: var(--portal-text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-tag {
  background: #f1f5f9;
  color: #1e40af;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}
.timeline-title a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
}
.timeline-title a:hover {
  color: #2563eb;
}

/* Center Column: Featured Lead */
.col-center-lead {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.main-lead-article {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  overflow: hidden;
  box-shadow: var(--portal-shadow-md);
  transition: box-shadow 0.25s ease;
}
.main-lead-article:hover {
  box-shadow: var(--portal-shadow-lg);
}
.main-lead-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.main-lead-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-lead-article:hover .main-lead-image-wrap img {
  transform: scale(1.04);
}
.main-lead-floating-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--portal-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.main-lead-body {
  padding: 1.5rem;
}
.main-lead-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--portal-text-muted);
  margin-bottom: 0.75rem;
}
.main-lead-title {
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--portal-text-dark);
  margin-bottom: 0.75rem;
}
.main-lead-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.main-lead-title a:hover {
  color: var(--portal-primary);
}
.main-lead-snippet {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Secondary Leads Row (2x2 Grid under Lead) */
.secondary-lead-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .secondary-lead-row { grid-template-columns: 1fr; }
}
.sub-lead-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  overflow: hidden;
  box-shadow: var(--portal-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.sub-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow-md);
}
.sub-lead-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}
.sub-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.sub-lead-card:hover .sub-lead-thumb img {
  transform: scale(1.05);
}
.sub-lead-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sub-lead-meta {
  font-size: 0.75rem;
  color: var(--portal-text-muted);
  margin-bottom: 0.4rem;
}
.sub-lead-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--portal-text-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sub-lead-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.sub-lead-title a:hover {
  color: var(--portal-primary);
}

/* Right Column: Trending Ranked List */
.col-right-features {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  padding: 1.25rem;
  box-shadow: var(--portal-shadow-sm);
}
.trending-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.trending-ranked-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  transition: transform 0.15s ease;
}
.trending-ranked-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trending-ranked-item:hover {
  transform: translateX(3px);
}
.rank-badge {
  font-size: 1.2rem;
  font-weight: 900;
  font-family: var(--font-en);
  line-height: 1;
  color: #cbd5e1;
  width: 28px;
  flex-shrink: 0;
}
.rank-badge.top-1 { color: #f59e0b; }
.rank-badge.top-2 { color: #94a3b8; }
.rank-badge.top-3 { color: #d97706; }

.ranked-content {
  flex: 1;
}
.ranked-title a {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-text-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.ranked-title a:hover {
  color: var(--portal-primary);
}
.ranked-meta {
  font-size: 0.72rem;
  color: var(--portal-text-muted);
  margin-top: 0.25rem;
}

/* 7. Dedicated Category Homepage Sections (Clean Content Hierarchy) */
.homepage-category-section {
  margin: 2.25rem 0;
}
.category-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.category-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.category-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--portal-text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.category-section-desc {
  font-size: 0.85rem;
  color: var(--portal-text-muted);
  margin: 0;
}
.category-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--portal-primary);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--portal-radius-full);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.category-view-all-btn:hover {
  background: var(--portal-primary);
  color: #ffffff;
  transform: translateX(2px);
}
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .category-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .category-cards-grid { grid-template-columns: 1fr; }
}

/* 8. Master Guides Section & Article Cards (Strict Hierarchy) */
.section-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0f172a;
}
.section-headline-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--portal-text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.section-count-pill {
  font-size: 0.8rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: var(--portal-radius-full);
  border: 1px solid #bfdbfe;
}

/* 4-Column Modern Cards Grid */
.modern-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem; /* Reduced excessive blank space */
}

/* Standardized Modern Article Card (Image -> Category -> Headline -> Summary -> Date/Meta) */
.modern-guide-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  overflow: hidden;
  box-shadow: var(--portal-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  box-sizing: border-box;
}
.modern-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--portal-shadow-hover);
  border-color: #cbd5e1;
}
.card-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}
.card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.modern-guide-card:hover .card-media-wrap img {
  transform: scale(1.04);
}
.card-category-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.card-body-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title-heading {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--portal-text-dark);
  margin: 0 0 0.4rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title-heading a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.card-title-heading a:hover {
  color: var(--portal-primary);
}
.card-snippet-text {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0.25rem 0 0.85rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--portal-text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  margin-top: auto;
}
.card-date-meta {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card-read-meta {
  color: #94a3b8;
  font-size: 0.72rem;
}

/* 9. Clean Trimmed Footer (Eliminates Empty Space) */
.site-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
  padding: 2.5rem 0 2rem !important;
  margin-top: 1.5rem !important; /* Reduced from 4rem */
  border-top: 1px solid #1e293b;
}

/* 10. Responsive Utilities */
@media (max-width: 768px) {
  .site-masthead { padding: 0.5rem 0; }
  .section-headline-bar { margin: 1.75rem 0 1rem; }
  .homepage-category-section { margin: 1.5rem 0; }
  .editorial-three-column-grid { margin-bottom: 1.25rem; }
}

ins.adsbygoogle[data-ad-status="unfilled"], .ad-slot-wrapper:has(ins[data-ad-status="unfilled"]) { display: none !important; }
