:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #525d6d;
  --border: #e5e7eb;
  --accent: #c81e1e;
  --accent-dark: #9b1616;
  --whatsapp: #16a34a;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
  --header-bg: rgba(255, 255, 255, 0.96);
  --surface-subtle: #f3f4f6;
  --badge-bg: rgba(200, 30, 30, 0.1);
  --body-text: #1f2937;
  --font-sans: 'Hind', 'Poppins', 'Noto Sans Devanagari', 'Nirmala UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Poppins', 'Hind', 'Noto Sans Devanagari', 'Nirmala UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #121826;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #232c3f;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(18, 24, 38, 0.95);
  --surface-subtle: #1b2436;
  --badge-bg: rgba(255, 255, 255, 0.08);
  --body-text: #e5e7eb;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form {
  display: none;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  padding: 4px 12px;
}

.search-form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 190px;
  color: var(--text);
}

.search-form button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  padding: 4px;
}

.mobile-search-toggle,
.theme-toggle-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle-btn .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: block;
}

.mobile-search-drawer {
  display: none;
  padding-bottom: 12px;
}

.mobile-search-drawer.open {
  display: block;
}

.mobile-search-form {
  display: flex;
  gap: 8px;
}

.mobile-search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.mobile-search-form button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.category-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 10px;
  padding-bottom: 10px;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.cat-pill:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.cat-pill.active {
  background: var(--accent);
  color: #fff;
}

/* Main Content */
.main-content {
  padding-top: 24px;
  padding-bottom: 56px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--badge-bg);
  padding: 3px 8px;
  border-radius: 6px;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Hero Featured Story */
.hero-story {
  margin-bottom: 32px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.hero-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.hero-subtitle {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 1rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* Grid */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--text);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-media {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 16px;
  flex: 1;
}

.news-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 8px;
}

.news-card-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Archive Banner */
.archive-banner {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.archive-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.archive-banner h1 {
  font-family: var(--font-serif);
  margin: 4px 0;
  font-size: 1.9rem;
}

.archive-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Single Article */
.article-container {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 12px;
}

.article-subtitle {
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.article-byline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.share-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
}

.share-x {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.share-fb {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.article-cover {
  margin: 0 0 24px;
}

.article-cover img {
  width: 100%;
  border-radius: 10px;
  max-height: 520px;
  object-fit: cover;
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--body-text);
}

.article-body p {
  margin: 0 0 1.2em;
}

.article-body h2, .article-body h3 {
  font-family: var(--font-serif);
  margin: 1.6em 0 0.6em;
  line-height: 1.25;
}

.article-body blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface-subtle);
  color: var(--text);
  font-style: italic;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-inline-figure {
  margin: 24px 0;
}

.article-inline-figure img {
  width: 100%;
  border-radius: 10px;
}

.article-inline-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.article-footer-share {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.related-section {
  max-width: 1140px;
  margin: 40px auto 0;
}

.preview-notice {
  max-width: 780px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-notice a {
  text-decoration: underline;
}

/* Pagination & Empty */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.page-btn {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
}

.empty-state a {
  color: var(--accent);
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
}

/* Advertisement Slots */
.top-ad-wrap {
  padding-top: 16px;
}

.ad-slot {
  margin: 0 auto 24px;
  padding: 10px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
}

.ad-slot-article_top,
.ad-slot-article_bottom {
  margin: 22px 0;
  background: var(--surface-subtle);
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.ad-image-link {
  display: inline-block;
  max-width: 100%;
}

.ad-image-link img {
  margin: 0 auto;
  max-height: 280px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.ad-code-wrap {
  max-width: 100%;
  overflow-x: auto;
}

/* Video Badges & Social Embeds (YouTube / Instagram) */
.hero-media,
.news-card-media {
  position: relative;
}

.video-play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.article-video-hero,
.article-inline-embed {
  margin: 0 0 24px;
}

.social-embed-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.embed-responsive {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.embed-video-16x9 {
  aspect-ratio: 16 / 9;
}

.embed-video-short {
  max-width: 390px;
  aspect-ratio: 9 / 16;
}

.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-embed-instagram .instagram-media {
  margin: 0 auto !important;
  max-width: 540px !important;
  width: 100% !important;
  border-radius: 10px !important;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .brand-date {
    display: inline;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-container {
    padding: 36px 40px;
  }
  .article-title {
    font-size: 2.35rem;
  }
}

@media (min-width: 900px) {
  .search-form {
    display: inline-flex;
  }
  .mobile-search-toggle,
  .mobile-search-drawer {
    display: none !important;
  }
  .hero-card {
    grid-template-columns: 1.25fr 1fr;
  }
  .hero-media {
    min-height: 360px;
  }
  .hero-body {
    padding: 32px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
