/*
 Theme Name:   CGSOS Child
 Theme URI:    https://cgsos.co.in
 Description:  Ultra-lightweight GeneratePress child theme for CGSOS.co.in — optimized for 5L+ concurrent traffic.
 Author:       CGSOS Team
 Author URI:   https://cgsos.co.in
 Template:     generatepress
 Version:      2.1.0
 License:      GNU General Public License v2 or later
 Text Domain:  cgsos-child
*/

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1342a8;
  --primary-light: #e8effc;
  --accent: #f97316;
  --accent-light: #fff4eb;
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --surface-sunken: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #4b5563;
  --radius: 4px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 36px;
  --max-width: 1000px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-sunken);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
img.site-logo-img { height: 24px; } /* Override height:auto for logo — HTML attrs control size */

/* Static placeholder background for images — NO animation to prevent CLS */
.article-featured-img,
.featured-card img,
.related-card img,
.author-avatar {
  background: var(--surface-sunken);
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 1001; background: transparent;
}
.reading-progress .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  overflow: hidden;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 4px;
  display: flex; align-items: center; gap: 6px;
  height: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; height: 24px; overflow: hidden;
}
.logo .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
/* Logo img: HTML width+height attributes control size. CSS must NOT override with auto. */
img.site-logo-img,
.logo .site-logo-img,
.site-logo-img {
  height: 24px !important;
  max-height: 24px;
  max-width: 160px;
  display: block;
  object-fit: contain;
}
.nav-links { display: none; gap: 1px; align-items: center; }
.nav-links a {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  padding: 4px 8px; border-radius: var(--radius);
  font-family: var(--font-heading);
  min-height: 28px; display: flex; align-items: center;
}
.nav-links a:hover { background: var(--surface-sunken); color: var(--text-primary); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { background: var(--primary-light); color: var(--primary); font-weight: 600; }
/* Mobile menu: see overlay styles */
.header-search {
  display: flex; align-items: center;
  background: var(--surface-sunken);
  border-radius: var(--radius);
  padding: 3px 8px; gap: 4px;
  border: 1px solid transparent;
  flex: 1; min-width: 0;
}
.header-search:focus-within { border-color: var(--primary); background: white; }
.header-search svg { color: var(--text-muted); flex-shrink: 0; width: 14px; height: 14px; }
.header-search input {
  border: none; outline: none; background: transparent;
  font-size: 12px; width: 100%; color: var(--text-primary);
  font-family: var(--font-body); min-height: 20px;
  -webkit-appearance: none; appearance: none;
}
.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--text-secondary);
  flex-shrink: 0;
}
.mobile-menu-btn svg { width: 18px; height: 18px; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  z-index: 100;
}
.mobile-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 8px; font-size: 10px; color: var(--text-muted);
  font-weight: 600; font-family: var(--font-heading);
  min-width: 44px; min-height: 44px; justify-content: center;
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav a svg { width: 20px; height: 20px; }

/* ===== TRENDING TICKER ===== */
.trending-bar {
  background: var(--text-primary);
  overflow: hidden; white-space: nowrap;
  height: 28px;
}
.trending-inner {
  display: flex; align-items: center;
  padding: 6px 5px;
  max-width: var(--max-width); margin: 0 auto;
  height: 100%; overflow: hidden;
}
.trending-badge {
  background: var(--accent);
  color: white; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius);
  margin-right: 10px; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-family: var(--font-heading);
}
.trending-items {
  display: flex; gap: 8px; align-items: center;
  overflow: hidden; flex: 1;
}
.trending-items a {
  color: #cbd5e1; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0; white-space: nowrap;
  animation: blink-text 2s ease-in-out infinite;
}
.trending-items a:hover { color: white; }
.trending-items .sep { color: #475569; flex-shrink: 0; animation: none; }
@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.7} }

/* ===== MAIN CONTAINER — TIGHT PADDING ===== */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 5px 60px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 50%, #312e81 100%);
  border-radius: var(--radius);
  padding: 16px 12px; margin-bottom: 8px;
  position: relative; overflow: hidden;
  min-height: 180px;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section * { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 800; color: white;
  margin-bottom: 6px; line-height: 1.3;
}
.hero-subtitle {
  color: rgba(255,255,255,0.75); font-size: 12px;
  margin-bottom: 10px; max-width: 500px; line-height: 1.4;
}
.hero-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 10px 12px; gap: 8px;
  
}
.hero-search:focus-within { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.hero-search svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.hero-search input {
  border: none; outline: none; background: transparent;
  font-size: 14px; width: 100%; color: white;
  font-family: var(--font-body); min-height: 26px;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search form { width: 100%; display: flex; }
.hero-search form input { width: 100%; }
.hero-stats { display: flex; gap: 14px; margin-top: 10px; }
.hero-stat-num { font-family: var(--font-heading); font-size: 17px; font-weight: 800; color: white; display: block; }
.hero-stat-label { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== QUICK CATEGORIES ===== */
.quick-categories {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-bottom: 8px;
}
.quick-cat {
  background: white; border-radius: var(--radius);
  padding: 8px 4px; text-align: center;
  border: 1px solid var(--border);
   cursor: pointer; min-height: 44px;
}
.quick-cat:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.quick-cat-icon {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 5px; font-size: 18px;
}
.quick-cat-icon.news { background: #dbeafe; }
.quick-cat-icon.result { background: #dcfce7; }
.quick-cat-icon.admit { background: #fef3c7; }
.quick-cat-icon.govt { background: #ede9fe; }
.quick-cat-icon.board { background: #fce7f3; }
.quick-cat-name { font-family: var(--font-heading); font-size: 11px; font-weight: 600; }
.quick-cat-count { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.section-title {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.section-title .icon {
  width: 28px; height: 28px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.view-all {
  font-size: 12px; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: var(--radius);
  font-family: var(--font-heading); min-height: 36px;
}
.view-all:hover { background: var(--primary-light); }

/* ===== FEATURED CARDS ===== */
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 10px; }
.featured-card {
  background: white; border-radius: var(--radius);
  padding: 10px; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.featured-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.featured-card.highlight {
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  border: none; color: white;
}
.featured-card.highlight .card-category { background: rgba(255,255,255,0.2); color: white; }
.featured-card.highlight .card-title { color: white; }
.featured-card.highlight .card-meta { color: rgba(255,255,255,0.9); }
.featured-card.highlight .card-excerpt { color: rgba(255,255,255,0.85); }
.card-badges { display: flex; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.card-category {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 2px 8px;
  border-radius: var(--radius); font-family: var(--font-heading);
}
.cat-news { background: #dbeafe; color: #1d4ed8; }
.cat-result { background: #dcfce7; color: #15803d; }
.cat-admit { background: #fef3c7; color: #a16207; }
.cat-govt { background: #ede9fe; color: #6d28d9; }
.cat-board { background: #fce7f3; color: #be185d; }
.card-status {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius); font-family: var(--font-heading);
  animation: pulse-badge 2s infinite;
}
.status-released { background: var(--success-light); color: var(--success); }
.status-expected { background: var(--warning-light); color: var(--warning); }
.status-new { background: var(--danger-light); color: var(--danger); }
.card-title {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700; line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 180 character excerpt display */
.card-excerpt {
  font-size: 12px; color: var(--text-secondary); line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.card-arrow {
  position: absolute; bottom: 12px; right: 12px;
  width: 28px; height: 28px;
  background: var(--surface-sunken); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
}
.featured-card:hover .card-arrow { background: var(--primary); color: white; }

/* ===== CONTENT LIST SECTIONS ===== */
.content-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 10px; }
.content-section {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.content-section-header {
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}
.content-section-title {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.list-item {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 6px 10px; border-bottom: 1px solid var(--border-light);
  
  cursor: pointer; min-height: 36px;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-sunken); }
.list-num {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-sunken); border-radius: var(--radius);
  flex-shrink: 0; margin-top: 2px;
}
.list-content { flex: 1; min-width: 0; }
.list-title { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--text-primary); }
/* Status badge inline with title in list items */
.list-status {
  display: inline-block; font-size: 9px; font-weight: 600;
  padding: 1px 6px; border-radius: var(--radius);
  margin-left: 4px; vertical-align: middle; font-family: var(--font-heading);
}

/* ===== ARTICLE PAGE ===== */
.article-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 10px; align-items: start;
}
/* FIX: prevent content from overflowing */
.article-main {
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}
.article-sidebar { display: none; }

/* Breadcrumbs */
.breadcrumbs, .rank-math-breadcrumb, #breadcrumbs {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 6px; flex-wrap: wrap; padding: 0;
  line-height: 1.3;
}
.breadcrumbs a, .rank-math-breadcrumb a, #breadcrumbs a { color: var(--text-secondary);  }
.breadcrumbs a:hover, .rank-math-breadcrumb a:hover, #breadcrumbs a:hover { color: var(--primary); }
.rank-math-breadcrumb .separator { margin: 0 2px; color: var(--text-muted); }
.breadcrumbs svg { width: 10px; height: 10px; color: var(--text-muted); flex-shrink: 0; }

/* Article Header */
.article-header {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px; margin-bottom: 6px;
}
.article-header .card-badges { margin-bottom: 6px; }

/* Breadcrumbs inside article header */
.article-breadcrumbs {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px;
  flex-wrap: nowrap; overflow: hidden; white-space: nowrap;
  line-height: 1.3;
}
.article-breadcrumbs a {
  color: var(--primary); font-weight: 500; flex-shrink: 0;
}
.article-breadcrumbs a:hover { text-decoration: underline; }
.article-breadcrumbs .bc-sep { color: var(--text-muted); opacity: 0.5; flex-shrink: 0; }
.article-breadcrumbs .bc-current {
  color: var(--text-muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  max-width: 280px;
}

.article-h1, .entry-title {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 800; line-height: 1.25;
  margin-bottom: 6px; color: var(--text-primary);
  word-wrap: break-word; overflow-wrap: break-word;
}
.article-excerpt {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.45; margin-bottom: 8px;
}
.article-meta-share {
  padding-top: 8px; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 6px;
  min-height: 36px; contain: layout style;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted);
}
.article-meta-bar .meta-item { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.article-meta-bar svg { width: 13px; height: 13px; }

/* Social Share — fixed dimensions prevent CLS */
.social-share { display: flex; align-items: center; gap: 4px; flex-shrink: 0; height: 28px; }
.social-share-label { font-size: 10px; font-weight: 600; color: var(--text-muted); font-family: var(--font-heading); margin-right: 1px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius);
  cursor: pointer; min-width: 28px; min-height: 28px;
  flex-shrink: 0; contain: strict;
}
.share-btn svg { width: 14px; height: 14px; display: block; }
.share-btn.whatsapp { background: #dcfce7; color: #16a34a; }
.share-btn.whatsapp:hover { background: #16a34a; color: white; }
.share-btn.twitter { background: #e0f2fe; color: #0284c7; }
.share-btn.twitter:hover { background: #0284c7; color: white; }
.share-btn.facebook { background: #dbeafe; color: #2563eb; }
.share-btn.facebook:hover { background: #2563eb; color: white; }
.share-btn.telegram { background: #e0f2fe; color: #0ea5e9; }
.share-btn.telegram:hover { background: #0ea5e9; color: white; }
.share-btn.copy-link { background: var(--surface-sunken); color: var(--text-muted); }
.share-btn.copy-link:hover { background: var(--text-primary); color: white; }

/* Key Points */
.key-points-box {
  background: linear-gradient(135deg, var(--primary-light), #f0f4ff);
  border: 1px solid #c7d7fe;
  border-radius: var(--radius); padding: 10px; margin-bottom: 6px;
}
.key-points-title {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.key-point { display: flex; gap: 6px; padding: 3px 0; font-size: 12px; line-height: 1.4; }
.key-point .check { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Featured Image */
.article-featured-img {
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 6px; background: var(--surface-sunken);
  line-height: 0;
}
.article-featured-img img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
}

/* Skeleton placeholder (JS-only, not auto-applied) */
.skeleton { background: var(--surface-sunken); border-radius: var(--radius); }
.skeleton-text { height: 12px; margin-bottom: 6px; width: 80%; }
.skeleton-title { height: 16px; margin-bottom: 8px; width: 90%; }
.skeleton-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px;
}

/* Article Body — FIX OVERFLOW */
.article-body, .entry-content {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px; margin-bottom: 6px;
  min-width: 0; overflow: hidden;
  word-wrap: break-word; overflow-wrap: break-word;
}
.article-body h2, .entry-content h2 {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  margin: 14px 0 6px; padding-top: 10px;
  border-top: 1px solid var(--border-light); color: var(--text-primary);
}
.article-body h2:first-child, .entry-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body p, .entry-content p {
  font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 8px;
  word-wrap: break-word; overflow-wrap: break-word;
}
/* Tables — prevent overflow */
.article-body table, .entry-content table, .info-table {
  width: 100%; border-collapse: collapse;
  margin: 10px 0; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  display: block; overflow-x: auto;
}
.article-body table, .entry-content table { display: table; }
.info-table th, .info-table td,
.entry-content table th, .entry-content table td {
  padding: 8px 10px; text-align: left; font-size: 13px;
  word-wrap: break-word; overflow-wrap: break-word;
}
.info-table th, .entry-content table th {
  background: var(--surface-sunken); font-family: var(--font-heading);
  font-weight: 600; color: var(--text-primary); width: 130px;
}
.info-table td, .entry-content table td { color: var(--text-secondary); }
.info-table tr, .entry-content table tr { border-bottom: 1px solid var(--border-light); }
.info-table tr:last-child, .entry-content table tr:last-child { border-bottom: none; }
/* Fix images inside article */
.article-body img, .entry-content img { max-width: 100%; height: auto; }
/* Fix iframes/embeds */
.article-body iframe, .entry-content iframe { max-width: 100%; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border-radius: var(--radius); padding: 16px; color: white;
  text-align: center; margin: 14px 0;
}
.cta-box h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cta-box p { font-size: 13px; opacity: 0.9; margin-bottom: 10px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: white; color: var(--accent);
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  padding: 8px 20px; border-radius: var(--radius);
   min-height: 40px;
}
.cta-btn:hover { box-shadow: var(--shadow-sm); }

/* Author Bio */
.author-bio-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px;
  margin-bottom: 6px; display: flex; gap: 10px; align-items: flex-start;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-heading);
  font-size: 18px; font-weight: 800; flex-shrink: 0; overflow: hidden;
}
.author-avatar img { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; }
.author-info { flex: 1; min-width: 0; }
.author-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-heading); margin-bottom: 2px; }
.author-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin-bottom: 1px; }
.author-role { font-size: 11px; color: var(--primary); font-weight: 500; margin-bottom: 3px; }
.author-desc { font-size: 12px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 6px; }
.author-desc-short { display: inline; }
.author-desc-full { display: none; }
.author-desc.expanded .author-desc-short { display: none; }
.author-desc.expanded .author-desc-full { display: inline; }
.author-read-more {
  color: var(--primary); font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: var(--font-heading);
  background: none; border: none; padding: 0; margin-left: 2px;
}
.author-read-more:hover { text-decoration: underline; }
.author-stats { display: flex; gap: 12px; }
.author-stat { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.author-stat strong { color: var(--text-primary); font-weight: 700; font-family: var(--font-heading); }

/* ===== MOBILE MENU OVERLAY (Image 2 style) ===== */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: white;
  display: none; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu-overlay.open { display: flex; }
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.mobile-menu-top .logo { font-size: 22px; }
.mobile-menu-close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); border-radius: var(--radius);
}
.mobile-menu-close svg { width: 24px; height: 24px; }
.mobile-menu-search {
  margin: 12px 14px; display: flex; align-items: center;
  background: var(--surface-sunken); border-radius: var(--radius);
  padding: 10px 14px; gap: 8px;
  border: 1.5px solid transparent;
}
.mobile-menu-search:focus-within { border-color: var(--primary); background: white; }
.mobile-menu-search svg { color: var(--text-muted); flex-shrink: 0; width: 18px; height: 18px; }
.mobile-menu-search input {
  border: none; outline: none; background: transparent;
  font-size: 15px; width: 100%; color: var(--text-primary);
  font-family: var(--font-body); min-height: 24px;
}
.mobile-menu-search input::placeholder { color: var(--text-muted); }
.mobile-menu-nav { padding: 8px 0; flex: 1; }
.mobile-menu-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-size: 15px; font-weight: 500;
  color: var(--text-primary); font-family: var(--font-heading);
   border-left: 3px solid transparent;
}
.mobile-menu-nav a:hover, .mobile-menu-nav a.active {
  background: var(--primary-light); color: var(--primary);
  border-left-color: var(--primary);
}
.mobile-menu-nav a svg { width: 20px; height: 20px; color: var(--text-muted); }
.mobile-menu-nav a.active svg { color: var(--primary); }
.mobile-menu-nav .menu-divider {
  height: 1px; background: var(--border-light); margin: 6px 14px;
}
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.4);
  display: none;
}
.mobile-menu-backdrop.open { display: block; }

/* ===== TOOLS / EXPLORE WIDGET (Image 3 Jio style) ===== */
.tools-widget { margin-bottom: 10px; height: 260px; overflow: hidden; contain: strict; }
.tools-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.tools-grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  margin-top: 6px;
}
.tool-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 12px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer; height: 72px;
}
.tool-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.tool-card-icon {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 32px; opacity: 0.9;
}
.tool-card-name {
  font-family: var(--font-heading); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.3px;
  color: var(--text-primary); line-height: 1.2;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tool-card-sub {
  font-size: 11px; color: var(--text-muted); font-weight: 400;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tools-grid-3 .tool-card { height: 60px; }
.tools-grid-3 .tool-card-icon { font-size: 24px; right: 6px; }
.tools-grid-3 .tool-card-name { font-size: 10px; }

/* ===== ADSENSE CLS FIX (auto ads) ===== */
.ad-slot {
  min-height: 100px; width: 100%;
  background: transparent; border-radius: var(--radius);
  overflow: hidden;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 250px;
  margin: 6px 0;
}
.ad-slot-header { min-height: 90px; contain-intrinsic-size: auto 90px; }
.ad-slot-sidebar { min-height: 250px; contain-intrinsic-size: auto 250px; }
.ad-slot-inline { min-height: 250px; contain-intrinsic-size: auto 280px; }
/* Google auto ads CLS override */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; min-height: 0 !important; }
ins.adsbygoogle { min-height: 0; }

/* ===== WHATSAPP FOLLOW POPUP ===== */
.wa-popup {
  position: fixed; bottom: 70px; left: 10px; z-index: 150;
  width: 290px; background: white;
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none; /* Hidden until triggered by JS */
}
.wa-popup.show { display: block; }
.wa-popup-header {
  background: linear-gradient(135deg, #25d366, #128c7e);
  padding: 10px 12px; display: flex; align-items: center; gap: 8px;
  color: white;
}
.wa-popup-header svg { width: 24px; height: 24px; flex-shrink: 0; }
.wa-popup-header-text { flex: 1; }
.wa-popup-header-text strong { font-family: var(--font-heading); font-size: 13px; display: block; }
.wa-popup-header-text span { font-size: 10px; opacity: 0.85; }
.wa-popup-close {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; flex-shrink: 0; border: none;
}
.wa-popup-close svg { width: 14px; height: 14px; }
.wa-popup-body { padding: 10px 12px; }
.wa-popup-msg {
  font-size: 12px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 8px;
}
.wa-popup-msg strong { color: var(--text-primary); }
.wa-popup-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; background: #25d366; color: white;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  border-radius: var(--radius); border: none; cursor: pointer;
 
}
.wa-popup-btn:hover { background: #1da851; }
.wa-popup-btn svg { width: 18px; height: 18px; }
.gnews-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; background: #4285F4; color: white;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  border-radius: var(--radius); border: none; cursor: pointer;
  margin-top: 6px; text-decoration: none;
}
.gnews-btn:hover { background: #3367d6; }
.gnews-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.wa-popup-dismiss {
  text-align: center; padding: 6px; border-top: 1px solid var(--border-light);
}
.wa-popup-dismiss button {
  font-size: 10px; color: var(--text-muted); background: none;
  border: none; cursor: pointer; font-family: var(--font-body);
}
@media (min-width: 960px) {
  .wa-popup { bottom: 20px; width: 320px; }
  .wa-popup.show { left: 20px; }
  .mobile-menu-overlay, .mobile-menu-backdrop { display: none !important; }
}

/* FAQ Section */
.faq-section {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px; margin-bottom: 6px;
}
.faq-section > h2 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 4px; overflow: hidden; }
.faq-item.open { border-color: var(--primary); }
.faq-q {
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading); min-height: 40px; gap: 8px;
}
.faq-q:hover { background: var(--surface-sunken); }
.faq-q svg { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--primary); }
.faq-a { padding: 0 12px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 12px; color: var(--text-secondary); line-height: 1.45; }
.faq-item.open .faq-a { padding: 0 12px 10px; max-height: 300px; }

/* Related Articles */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; }
.related-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px;
  cursor: pointer;
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.related-card .card-category { margin-bottom: 6px; display: inline-block; }
.related-card .card-title { font-size: 13px; margin-bottom: 4px; }

/* In-Post Table of Contents (visible on all devices) */
.inpost-toc {
  background: var(--surface-sunken); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 10px;
  margin-bottom: 6px; contain: content;
}
.inpost-toc-header {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 5px; height: 20px;
  cursor: pointer;
}
.inpost-toc-header svg { width: 14px; height: 14px; display: block; transition: transform 0.3s; }
.inpost-toc.collapsed .inpost-toc-header svg { transform: rotate(-90deg); }
.inpost-toc-list { list-style: none; padding: 0; margin: 6px 0 0; }
.inpost-toc.collapsed .inpost-toc-list { display: none; margin: 0; }
.inpost-toc-list a {
  display: flex; align-items: center;
  padding: 4px 8px; font-size: 12px; color: var(--text-secondary);
  border-left: 2px solid transparent; 
  line-height: 1.3;
}
.inpost-toc-list a:hover, .inpost-toc-list a.active {
  color: var(--primary); background: var(--primary-light);
  border-left-color: var(--primary);
}

/* Sidebar */
.sidebar-widget {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 8px; overflow: hidden;
}
.sidebar-widget-header {
  padding: 10px 12px; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-link {
  display: flex; align-items: center;
  padding: 8px 12px; font-size: 12px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  min-height: 38px;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: var(--surface-sunken); color: var(--primary); padding-left: 16px; }
.toc-item {
  display: flex; align-items: center;
  padding: 8px 12px; font-size: 12px; color: var(--text-secondary);
  border-left: 2px solid transparent; 
  cursor: pointer; min-height: 38px;
}
.toc-item:hover, .toc-item.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); }

/* Sticky Share Bar (mobile) */
.sticky-share-bar {
  position: fixed; bottom: 52px; left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  padding: 6px 10px;
  display: none; align-items: center; justify-content: center; gap: 6px;
  z-index: 90;
}
.sticky-share-bar.visible { display: flex; }

/* Ad slots moved to new section above */

/* ===== FOOTER ===== */
.site-footer { background: var(--text-primary); color: rgba(255,255,255,0.6); margin-top: 6px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 16px 5px 10px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.footer-brand .logo { color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 11px; line-height: 1.4; max-width: 300px; }
.footer-col-title {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.footer-links a {
  display: flex; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.7);
  padding: 3px 0; min-height: 28px;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; display: flex; flex-direction: column; gap: 4px;
}

/* ===== RESPONSIVE — Tablet ===== */
@media (min-width: 600px) {
  .main-container { padding: 10px 5px 60px; }
  .quick-categories { grid-template-columns: repeat(5, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card.highlight { grid-column: span 2; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .hero-section { padding: 22px 18px; }
  .hero-title { font-size: 22px; }
  .article-header { padding: 14px; }
  .article-h1, .entry-title { font-size: 22px; }
  .article-body, .entry-content { padding: 14px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-title { font-size: 14px; }
  .article-body h2, .entry-content h2 { font-size: 18px; }
  .article-body p, .entry-content p { font-size: 14px; line-height: 1.65; }
}

/* ===== RESPONSIVE — Desktop ===== */
@media (min-width: 960px) {
  .main-container { padding: 12px 5px 40px; }
  .header-inner { padding: 0 5px; }
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none; }
  .header-search { width: 200px; flex: none; }
  .hero-section { padding: 28px 24px; }
  .hero-title { font-size: 26px; }
  .quick-categories { gap: 8px; }
  .quick-cat { padding: 10px 8px; }
  .quick-cat-icon { width: 40px; height: 40px; font-size: 20px; }
  .quick-cat-name { font-size: 12px; }
  .featured-grid { gap: 10px; }
  .featured-card { padding: 14px; }
  .content-grid { gap: 10px; }
  /* Article 2-column layout */
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
  .article-sidebar { display: block; position: sticky; top: calc(var(--header-height) + 8px); }
  .article-header { padding: 18px; }
  .article-h1, .entry-title { font-size: 24px; }
  .article-body, .entry-content { padding: 18px; }
  .article-body h2, .entry-content h2 { font-size: 20px; }
  .article-body p, .entry-content p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .sticky-share-bar { display: none; }
  .section-title { font-size: 18px; }
  .info-table th, .entry-content table th { width: 160px; }
  /* Hide in-post TOC on desktop — sidebar TOC is visible */
  .inpost-toc { display: none; }
  .share-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
  .share-btn svg { width: 16px; height: 16px; }
}

/* ===== ANIMATIONS ===== */
/* Animations removed — no layout shift */

/* ===== PRINT ===== */
@media print {
  .site-header, .trending-bar, .mobile-nav, .social-share,
  .sticky-share-bar, .article-sidebar, .ad-slot { display: none !important; }
  .article-body, .entry-content { border: none; padding: 0; }
}

/* ===== GeneratePress overrides ===== */
.site-content { padding: 0; }
.inside-article { padding: 0; }
.entry-header { display: none; }
#primary { margin: 0; padding: 0; }
.generate-columns-container { margin: 0; }
.site-main .entry-content > *:first-child { margin-top: 0; }
/* #page overflow removed — was causing white shadow flash on navigation */
