/* ============================================================
   OnlineBiodata.in — shared site header + footer (all pages)
   Source of truth: includes/site-header.html, includes/site-footer.html
   Static pages are synced with: python3 tools/sync-layout.py
   Selectors are prefixed (ob-) and doubled so page CSS
   (Bootstrap, Tailwind, old navbar/footer rules) cannot override.
   ============================================================ */
html body .ob-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  margin: 0; padding: 0;
}
html body .ob-header .ob-wrap {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  box-sizing: border-box;
}
html body .ob-header .ob-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #001A3F; font-weight: 700; font-size: 1.25rem; line-height: 1.2;
}
html body .ob-header .ob-brand img { height: 52px; width: auto; display: block; }
html body .ob-header .ob-nav-check { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
html body .ob-header .ob-nav-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid #E5E7EB; border-radius: 8px;
  color: #001A3F; cursor: pointer; background: #fff; margin: 0;
}
html body .ob-header .ob-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px;
}
html body .ob-header .ob-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px;
  color: #0B1C30; font-weight: 500; font-size: .98rem; text-decoration: none; background: transparent;
  transition: background 150ms ease-out, color 150ms ease-out;
}
html body .ob-header .ob-nav a:hover,
html body .ob-header .ob-nav a[aria-current="page"] { background: #F1F5F9; color: #001A3F; }
html body .ob-header .ob-nav a.ob-cta { background: #F57C00; color: #fff; font-weight: 600; margin-left: 6px; }
html body .ob-header .ob-nav a.ob-cta:hover { background: #DB6E00; color: #fff; }

@media (max-width: 991px) {
  html body .ob-header .ob-nav-btn { display: flex; }
  html body .ob-header .ob-nav { display: none; width: 100%; }
  html body .ob-header .ob-nav-check:checked ~ .ob-nav { display: block; }
  html body .ob-header .ob-nav ul { flex-direction: column; align-items: stretch; padding: 6px 0 10px; }
  html body .ob-header .ob-nav a.ob-cta { margin: 6px 0 0; justify-content: center; }
  html body .ob-header .ob-brand img { height: 44px; }
  html body .ob-header .ob-brand { font-size: 1.1rem; }
}

html body footer.ob-footer {
  background: #001A3F; color: #fff; margin: 0; padding: 56px 0 24px;
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: .95rem; line-height: 1.6;
}
html body footer.ob-footer .ob-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
html body footer.ob-footer .ob-f-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 36px;
}
html body footer.ob-footer .ob-f-title {
  font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: #fff; margin: 0 0 14px; padding: 0; border: 0;
}
html body footer.ob-footer p { color: rgba(255,255,255,.78); margin: 0 0 10px; }
html body footer.ob-footer ul { list-style: none; margin: 0; padding: 0; }
html body footer.ob-footer li { margin: 0 0 9px; padding: 0; }
html body footer.ob-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
html body footer.ob-footer a:hover { color: #fff; text-decoration: underline; }
html body footer.ob-footer .ob-f-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center;
  color: rgba(255,255,255,.6); font-size: .88rem;
}
html body footer.ob-footer .ob-f-bottom p { color: rgba(255,255,255,.6); margin: 0; }
@media (max-width: 575px) {
  html body footer.ob-footer { padding-top: 40px; }
  html body footer.ob-footer .ob-f-grid { text-align: center; gap: 24px; }
}

/* Pages with the mobile sticky "Biodata Banva" bar: keep footer text above it */
@media (max-width: 991px) {
  html body:has(.mobile-sticky-cta) footer.ob-footer { padding-bottom: 96px; }
}
