/* ==========================================================================
   PolicyVani - High-Performance Clean Light Theme Stylesheet
   Optimized for Core Web Vitals, Google Discover & LLM/AI Citation Parsers
   ========================================================================== */

:root {
  --primary: #0284c7;        /* Trust Blue */
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #16a34a;         /* Growth Green */
  --accent-light: #dcfce7;
  --warning: #d97706;        /* Alert Amber */
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--primary-dark);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Non-Governmental Disclaimer Bar */
.gov-disclaimer-bar {
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gov-disclaimer-bar .disclaimer-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gov-disclaimer-bar .badge-nongov {
  background: #f59e0b;
  color: #0f172a;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gov-disclaimer-bar a {
  color: #38bdf8;
  text-decoration: underline;
}

/* ============================================================
   Navigation Header — Clean, Non-Sticky & Fully Responsive
   ============================================================ */
.site-header {
  position: relative;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 0.5rem 0;
  gap: 1rem;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}

/* Nav list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* Nav link base */
.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Highlight nav item (State Schemes) */
.nav-link-highlight {
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.nav-link-highlight:hover {
  background: var(--primary-light);
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.header-cta {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

/* ============================================================
   Animated Hamburger Icon
   ============================================================ */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  color: var(--text-main);
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
/* X state when open */
.mobile-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}




/* ============================================================
   Button Components
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: #15803d;
  color: #ffffff;
}
.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top right, var(--primary-light) 0%, transparent 60%),
              radial-gradient(circle at bottom left, var(--accent-light) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: #166534;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Search Bar Box */
.hero-search-box {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.2);
}

.hero-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
}

.hero-search-box input::placeholder {
  color: var(--text-light);
}

.quick-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.quick-stat-item {
  display: flex;
  flex-direction: column;
}

.quick-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.quick-stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Interactive Calculator Card */
.hero-calc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #16a34a);
}

.calc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.calc-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Category Grid */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.category-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
}

.category-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.category-count {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Policy Card Grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.policy-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.policy-card-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.policy-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.policy-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag-badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-cat {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tag-benefit {
  background: var(--accent-light);
  color: #166534;
}

.tag-active {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.policy-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

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

.policy-card-title a:hover {
  color: var(--primary);
}

.policy-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.policy-highlights {
  background: var(--bg-subtle);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.policy-highlight-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.policy-highlight-row:last-child {
  border-bottom: none;
}

.policy-highlight-label {
  color: var(--text-muted);
  font-weight: 500;
}

.policy-highlight-val {
  color: var(--text-main);
  font-weight: 700;
}

.policy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  gap: 0.5rem;
}

/* Detail Policy Page Styles */
.policy-detail-header {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-color);
}

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

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

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.policy-detail-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.policy-article {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.policy-hero-img-box {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.policy-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text-main);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.policy-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-main);
}

.policy-article p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.policy-article ul, .policy-article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.policy-article li {
  margin-bottom: 0.6rem;
}

/* Callout Box */
.callout-box {
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  color: var(--text-main);
}

.callout-box.success {
  border-left-color: var(--accent);
  background: var(--accent-light);
}

.callout-box.warning {
  border-left-color: var(--warning);
  background: var(--warning-light);
}

/* Documents Checklist */
.doc-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.doc-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.doc-item-icon {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Application Steps Timeline */
.steps-timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.75rem;
  width: 2px;
  background: var(--primary-light);
}

.timeline-step {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step-num {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 0 0 4px #ffffff;
}

.timeline-step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Sidebar Widgets */
.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

/* Official Direct Links Box */
.official-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.official-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.official-link-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.badge-official-gov {
  background: #0284c7;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.825rem;
  text-align: center;
}

.footer-legal-disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links {
    gap: 0.15rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.5rem;
  }
  .header-cta {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 900px) {
  /* Mobile: hide desktop nav links, show as slide-down panel below header */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 1rem;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 0;
  }
  .nav-links.show {
    display: flex;
  }

  /* Mobile nav items */
  .nav-links li {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    border-radius: 0;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    display: flex;
    border-bottom: 1px solid var(--bg-subtle);
  }

  /* Show hamburger on mobile */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide header CTA on mobile to give room for logo and hamburger */
  .header-cta {
    display: none;
  }

  /* Hero adjustments */
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .quick-stats-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Disclaimer bar: stack on mobile */
  .gov-disclaimer-bar .disclaimer-text {
    font-size: 0.75rem;
  }
  .gov-disclaimer-bar .disclaimer-link {
    display: none;
  }
}



/* Fix for eligibility container layout */
.eligibility-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1rem;
}

/* Fixes for Policy Page & Global Responsiveness */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

.policy-article {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-calc-card {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.btn {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .policy-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem 0 !important;
  }
  
  .hero-title {
    font-size: 1.6rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .policy-article {
    padding: 1.25rem !important;
  }
  
  .policy-hero-img-box {
    margin: 0 0 1.25rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
  }

  .policy-hero-img-box img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }

  .official-link-btn {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

.filter-pill {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media (max-width: 768px) {
  .blog-lead-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-lead-hero-img-box {
    min-height: 220px !important;
  }
}

@media (max-width: 480px) {
  .hero-calc-card {
    padding: 1.25rem !important;
  }
  .btn:not(.filter-pill) {
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}


/* ============================================================
   Modern Form Components (PolicyVani Upgraded)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b; /* Darker slate for better readability */
}

.form-input, .form-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #f8fafc; /* Very subtle blue-grey */
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem; /* softer, rounder corners */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  appearance: none; /* Modernize select arrow */
}

select.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.form-input:focus, .form-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:hover, .form-select:hover {
  border-color: #94a3b8;
}

/* Modernize the eligibility container */
.eligibility-container {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.5rem;
  padding: 3.5rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.07), 0 0 10px rgba(0,0,0,0.02);
  margin-top: -1rem; 
  position: relative;
  z-index: 10;
}

@media (max-width: 640px) {
  .eligibility-container {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }
}

/* ============================================================
   Redesigned Modern Status Guides Styling (PolicyVani UI)
   ============================================================ */
.status-guide-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.status-guide-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  padding: 2.75rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05), 0 0 4px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .status-guide-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }
}

.status-header-box {
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.guide-official-bar {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.guide-official-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #0369a1;
}

.guide-official-info strong {
  color: #0c4a6e;
}

.guide-cta-btn {
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.guide-cta-btn:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.guide-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2.25rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.guide-section-title span.step-pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-weight: 700;
}

/* Timeline Step Cards */
.guide-steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.guide-step-card {
  display: flex;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.guide-step-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.04);
}

.guide-step-num {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
}

.guide-step-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

/* Status Verification Indicators */
.status-indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

.status-indicator-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #16a34a;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.status-indicator-card.alert-card {
  border-left-color: #f59e0b;
}

.status-indicator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.status-indicator-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.status-check-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
}

.status-indicator-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Fix & Troubleshooting Cards */
.troubleshoot-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 2.25rem;
}

.troubleshoot-card {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.troubleshoot-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: #92400e;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.troubleshoot-card p {
  margin: 0;
  font-size: 0.925rem;
  color: #451a03;
  line-height: 1.6;
}

/* Navigation footer bar */
.guide-footer-nav {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Modern Blog Article Redesign Styles
   ========================================================================== */
.blog-header-section {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 2.25rem 0 1.75rem;
}

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

.blog-breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

.blog-breadcrumb a:hover {
  color: var(--primary);
}

.blog-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pill-verified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-pill-category {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-pill-time {
  background: #f1f5f9;
  color: #475569;
}

.blog-article-title {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .blog-article-title {
    font-size: 1.65rem;
  }
}

.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
}

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

.blog-meta-item img {
  border-radius: 50%;
  border: 1.5px solid #0284c7;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

@media (max-width: 1024px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.blog-lead-hero {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-lead-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.blog-lead-hero img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .blog-lead-hero > div {
    grid-template-columns: 1fr !important;
  }
}

.blog-main-card {
  background: var(--bg-surface);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

@media (max-width: 768px) {
  .blog-main-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
}

.blog-featured-banner {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.blog-featured-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* TL;DR Quick Highlights Box */
.blog-tldr-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.blog-tldr-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.75rem;
}

.blog-tldr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #14532d;
  line-height: 1.6;
}

.blog-tldr-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.blog-tldr-list li::before {
  content: "✔";
  color: #16a34a;
  font-weight: 900;
}

/* Interactive Table of Contents */
.blog-toc-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.25rem;
}

.blog-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-toc-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.blog-toc-list li a:hover {
  color: #0284c7;
  background: #e0f2fe;
  padding-left: 0.75rem;
}

.blog-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Social Share Bar */
.blog-share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
}

.blog-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  color: #ffffff !important;
}

.btn-share:hover {
  opacity: 0.9;
}

.btn-share-whatsapp {
  background: #25D366;
}

.btn-share-telegram {
  background: #229ED9;
}

.btn-share-twitter {
  background: #0F1419;
}

.btn-share-copy {
  background: #475569;
  cursor: pointer;
  border: none;
}

/* Editorial Body Typography */
.blog-content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.blog-content-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0f2fe;
}

.blog-content-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-content-body p {
  margin-bottom: 1.4rem;
}

.blog-content-body ul, .blog-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content-body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* Author Trust Box */
.blog-author-card {
  margin-top: 3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.blog-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #0284c7;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-author-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.blog-author-info p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Sticky Sidebar Components */
.blog-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-action-btn {
  display: block;
  text-align: center;
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.sidebar-action-btn:hover {
  background: #0369a1;
}

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

.trending-post-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trending-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.trending-post-item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  text-decoration: none;
}

.trending-post-item a:hover {
  color: #0284c7;
}

/* Related Articles Grid at Bottom */
.related-posts-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid #e2e8f0;
}

.related-posts-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-post-card {
  background: var(--bg-surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.related-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-post-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.related-post-content h4 a {
  color: #0f172a;
  text-decoration: none;
}

.related-post-content h4 a:hover {
  color: #0284c7;
}


picture { display: contents; }
