/* ==========================================================================
   SarkariApp Design System
   Primary: #123B70 | Secondary: #2563EB | BG: #FFFFFF | Light: #F4F7FB | Text: #202938
   ========================================================================== */

:root {
  --navy: #123B70;
  --navy-dark: #0C284E;
  --royal: #2563EB;
  --royal-hover: #1D4ED8;
  --royal-soft: #EFF6FF;
  --bg: #FFFFFF;
  --bg-light: #F4F7FB;
  --text: #202938;
  --text-muted: #526075;
  --border: #DCE4F0;
  --border-strong: #C5D2E5;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --success-border: #A7F3D0;
  --warn-bg: #FFFBEB;
  --warn-text: #92400E;
  --warn-border: #FDE68A;
  --danger-bg: #FEF2F2;
  --danger-text: #991B1B;
  --danger-border: #FECACA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(18, 59, 112, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 59, 112, 0.08);
  --shadow-lg: 0 16px 36px rgba(18, 59, 112, 0.12);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --container-max: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--royal-soft);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-word;
}

a {
  color: var(--royal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Independence Notice Bar */
.top-notice {
  background: var(--navy-dark);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 7px 0;
  text-align: center;
}

.top-notice a {
  color: #93C5FD;
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--navy);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--bg-light);
  color: var(--navy);
}

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

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.header-search-btn:hover {
  border-color: var(--royal);
  color: var(--navy);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-links {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.mobile-nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  background: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--royal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--royal-hover);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-light);
  border-color: var(--navy);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--royal-soft);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid #BFDBFE;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 1.09375rem;
  color: var(--text-muted);
  max-width: 580px;
}

/* Search Box & Live Results */
.hero-search-wrap {
  position: relative;
  max-width: 580px;
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-form:focus-within {
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-input-icon {
  padding-left: 12px;
  color: var(--text-muted);
  display: inline-flex;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
}

.search-input:focus {
  outline: none;
}

.search-submit {
  padding: 11px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--royal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}

.search-submit:hover {
  background: var(--royal-hover);
}

.search-suggestions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.84375rem;
  color: var(--text-muted);
}

.search-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8125rem;
}

.search-chip:hover {
  border-color: var(--royal);
  background: var(--royal-soft);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.is-visible {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item:hover {
  background: var(--bg-light);
}

.search-result-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9375rem;
}

.search-result-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-visual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
}

.hero-visual-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-visual-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Section Layout */
.section {
  padding: 56px 0;
}

.section-light {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.875rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  max-width: 640px;
}

/* Category Cards Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--text);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--royal);
  color: var(--text);
}

.category-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--royal-soft);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #DBEAFE;
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}

.category-card p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.category-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--royal);
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.article-card-media {
  position: relative;
  background: var(--bg-light);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.article-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--royal-soft);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-card-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

.article-card-title a {
  color: var(--navy);
}

.article-card-title a:hover {
  color: var(--royal);
}

.article-card-excerpt {
  margin: 0 0 14px;
  font-size: 0.90625rem;
  color: var(--text-muted);
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Latest Articles Compact Grid */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.latest-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.latest-item:hover {
  border-color: var(--royal);
  box-shadow: var(--shadow-sm);
}

.latest-thumb {
  width: 124px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-content h3 {
  margin: 4px 0 6px;
  font-size: 1.025rem;
  line-height: 1.35;
}

.latest-content h3 a {
  color: var(--navy);
}

.latest-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Government Apps Explained */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--navy);
}

.app-publisher {
  font-size: 0.78125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.app-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.app-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.84375rem;
  font-weight: 600;
}

/* Useful Digital Services Info Cards */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.025rem;
  color: var(--navy);
}

.info-card p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.info-card-link {
  font-size: 0.84375rem;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

.faq-item.is-open .faq-answer {
  display: block;
  padding-top: 14px;
}

/* Editorial Transparency Notice */
.transparency-box {
  background: linear-gradient(135deg, var(--navy) 0%, #194A8D 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}

.transparency-box h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #fff;
}

.transparency-box p {
  margin: 0 0 14px;
  color: #E2E8F0;
}

.transparency-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.transparency-links a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.transparency-links a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.transparency-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 0.875rem;
}

.transparency-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.transparency-card li {
  margin-bottom: 6px;
}

/* Breadcrumbs & Page Headers */
.page-banner {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 32px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--navy);
  font-weight: 600;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 780px;
}

/* Article Layout & Editorial Components */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 36px 0 56px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.article-meta-bar a {
  font-weight: 700;
  color: var(--navy);
}

.article-hero-figure {
  margin: 0 0 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-light);
}

.article-hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero-figure figcaption {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: #fff;
  border-top: 1px solid var(--border);
}

.article-content h2 {
  margin: 30px 0 12px;
  font-size: 1.4rem;
  color: var(--navy);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  margin: 22px 0 8px;
  font-size: 1.125rem;
  color: var(--navy);
}

.article-content p {
  margin: 0 0 15px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 8px;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-light);
  margin: 22px 0;
}

.callout-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.callout-info {
  background: var(--royal-soft);
  border-color: #BFDBFE;
}

.callout-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.callout-warn .callout-title {
  color: var(--warn-text);
}

.portal-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.portal-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.portal-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84375rem;
  color: var(--navy);
  word-break: break-all;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  counter-reset: step-counter;
  display: grid;
  gap: 12px;
}

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problems-table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.problems-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.problems-table th,
.problems-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.problems-table th {
  background: var(--bg-light);
  color: var(--navy);
  font-weight: 700;
}

.problems-table tr:last-child td {
  border-bottom: 0;
}

.sources-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 28px;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-widget h3 {
  margin: 0 0 12px;
  font-size: 1.025rem;
  color: var(--navy);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}

.toc-list a {
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
}

.toc-list a:hover {
  color: var(--royal);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

/* AdSense Container Scaffolding (Disabled until approval) */
.ad-container {
  display: none;
  margin: 26px 0;
  padding: 14px;
  background: var(--bg-light);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
}

.ad-container.is-active {
  display: block;
}

.ad-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Static & Policy Pages */
.prose-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.prose-container h2 {
  margin: 28px 0 10px;
  color: var(--navy);
  font-size: 1.375rem;
}

.prose-container h3 {
  margin: 20px 0 8px;
  color: var(--navy);
  font-size: 1.125rem;
}

/* Contact & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 36px 0 60px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.90625rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96875rem;
  color: var(--text);
  background: #fff;
}

.form-control:focus {
  border-color: var(--royal);
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.90625rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.form-status.is-error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination .is-current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #CBD5E1;
  padding: 52px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-heading {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.newsletter-form {
  display: grid;
  gap: 8px;
}

.newsletter-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: #94A3B8;
}

.newsletter-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78125rem;
  color: #CBD5E1;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: #94A3B8;
}

.footer-bottom a {
  color: #CBD5E1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .categories-grid,
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid,
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-search-btn .search-btn-label {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .transparency-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .categories-grid,
  .articles-grid,
  .apps-grid,
  .info-cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 40px 0;
  }
  .hero-section {
    padding: 32px 0 40px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
  }
  .search-input-icon {
    display: none;
  }
  .latest-item {
    flex-direction: column;
  }
  .latest-thumb {
    width: 100%;
  }
  .transparency-box {
    padding: 24px 20px;
  }
  .author-box {
    flex-direction: column;
  }
}
