/* Roti Bank Akola — draft website styles
   Colours are taken from the Flying Colours Education Foundation logo. */

:root {
  --red: #E2231A;
  --red-dark: #B51C15;
  --orange: #F18A21;
  --orange-soft: #FDE9D3;
  --blue: #1C9AD6;
  --green: #22A24B;
  --yellow: #F2B705;
  --ink: #1F2328;
  --muted: #5B6168;
  --bg: #FFFFFF;
  --bg-soft: #FFF7EE;
  --line: #EDE2D6;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(31, 35, 40, .08);
  --shadow-hover: 0 14px 36px rgba(31, 35, 40, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lh: 1.65;
}

/* Language-specific fonts (use fonts already on the visitor's device) */
html[lang="hi"] {
  --font: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
  --lh: 1.8;
}
html[lang="ur"] {
  --font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Geeza Pro", serif;
  --lh: 2.2;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
html[lang="ur"] .brand-text { line-height: 1.9; }
.brand-name {
  font-weight: 800;
  color: var(--red);
  font-size: 1rem;
}
.brand-sub { font-size: .85rem; color: var(--muted); }

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
}
.lang-switch button {
  font: inherit;
  font-size: .9rem;
  line-height: 1.4;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button[lang="hi"] { font-family: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
.lang-switch button[lang="ur"] { font-family: "Noto Nastaliq Urdu", "Geeza Pro", serif; }
.lang-switch button:hover { background: var(--orange-soft); }
.lang-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding-block: 64px 80px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  background: var(--orange-soft);
  color: #A4520A;
  font-weight: 700;
  font-size: .9rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--red);
  letter-spacing: -.01em;
}
html[lang="ur"] .hero h1 { line-height: 1.8; letter-spacing: 0; }
html[lang="hi"] .hero h1 { line-height: 1.4; }
.hero h1 .accent { color: var(--green); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(226, 35, 26, .3); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-2px); }

.hero-visual-wrap {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-visual {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
}
.hero-visual img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Rainbow dashed ring in the logo colours (S15 option B, kept in S16) */
  opacity: .8;
  background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--red));
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)),
    repeating-conic-gradient(#000 0deg 3deg, transparent 3deg 6deg);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)),
    repeating-conic-gradient(#000 0deg 3deg, transparent 3deg 6deg);
          mask-composite: intersect;
  animation: spin 60s linear infinite;
}

/* Floating coloured circles in the background */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: .16;
  animation: float 14s ease-in-out infinite;
}
.bubble.b1 { width: 180px; height: 180px; background: var(--blue);   top: -40px;  inset-inline-start: -60px; }
.bubble.b2 { width: 110px; height: 110px; background: var(--green);  bottom: 30px; inset-inline-start: 38%; animation-delay: -4s; }
.bubble.b3 { width: 70px;  height: 70px;  background: var(--yellow); top: 60px;   inset-inline-start: 46%; animation-delay: -8s; opacity: .3; }
.bubble.b4 { width: 240px; height: 240px; background: var(--orange); bottom: -110px; inset-inline-end: -80px; animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
section { padding-block: 72px; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 10px;
}
html[lang="ur"] .section-head h2 { line-height: 1.9; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-head .bar {
  display: block;
  width: 72px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue));
}

/* ---------- Registration cards ---------- */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reg-card {
  --c: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.reg-card.c-blue { --c: var(--blue); }
.reg-card.c-green { --c: var(--green); }
.reg-card.c-yellow { --c: var(--yellow); }
.reg-card.c-orange { --c: var(--orange); }
a.reg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.reg-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--c);
}
.reg-card .icon svg { width: 30px; height: 30px; }
.reg-card h3 { margin: 4px 0 0; font-size: 1.15rem; line-height: 1.4; }
html[lang="ur"] .reg-card h3 { line-height: 2; }
.reg-card p { margin: 0; color: var(--muted); font-size: .95rem; flex-grow: 1; }
.reg-card .card-cta {
  align-self: flex-start;
  margin-top: 8px;
  font-weight: 700;
  color: #fff;
  background: var(--c);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .95rem;
}
.reg-card .card-cta::after { content: " →"; }
html[dir="rtl"] .reg-card .card-cta::after { content: " ←"; }
.reg-card.is-soon { opacity: .82; cursor: default; }
.reg-card .soon {
  align-self: flex-start;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  background: #F1F2F4;
  border: 1px dashed #C9CDD2;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- About ---------- */
.about-text {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.about-text p { margin: 0 0 18px; }
.about-text p:first-child::first-letter {
  color: var(--red);
  font-weight: 800;
}

/* ---------- Initiatives ---------- */
.init-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.init-card {
  --c: var(--red);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.init-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.init-card.c-orange { --c: var(--orange); }
.init-card.c-blue { --c: var(--blue); }
.init-card.c-green { --c: var(--green); }
.init-card.c-red { --c: var(--red); }
.init-card .icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  color: #fff;
}
.init-card .icon svg { width: 32px; height: 32px; }
.init-card h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--c); line-height: 1.4; }
html[lang="ur"] .init-card h3 { line-height: 2; }
.init-card p { margin: 0; color: var(--muted); }

/* ---------- Footer (S3) ---------- */
.site-footer {
  background: #1E1B18;
  color: #D9D3CC;
  padding-block: 48px 36px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.3fr;
  gap: 36px;
  align-items: start;
}
.footer-col p { margin: 0 0 6px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand strong { color: #fff; display: block; }
.footer-h {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.phone-list a::before {
  content: "";
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/15px no-repeat;
  flex-shrink: 0;
}
.phone-list a:hover { color: var(--yellow); }
.addr { line-height: 1.6; }
html[lang="ur"] .addr { line-height: 2.1; }
.map-box {
  position: relative;
  margin-top: 12px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #3A342E;
  background-color: #2A2520;
  background-image:
    linear-gradient(#34302B 2px, transparent 2px),
    linear-gradient(90deg, #34302B 2px, transparent 2px),
    linear-gradient(35deg, transparent 46%, #4A3F33 46%, #4A3F33 54%, transparent 54%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.map-pin { width: 38px; height: 38px; color: var(--red); filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); animation: bob 2.4s ease-in-out infinite; }
.map-note { font-size: .78rem; color: #A89F95; }
.directions {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}
.directions::after { content: "↗"; }
.directions:hover { text-decoration: underline; }
.footer-donate { margin: 12px 0 14px; }
.footer-small { font-size: .85rem; color: #A89F95; }
.draft-note {
  display: inline-block;
  background: var(--yellow);
  color: #3A2E00;
  font-weight: 700;
  font-size: .8rem;
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- Header actions & Donate button (S4) ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(241, 138, 33, .35);
  transition: transform .2s, background .2s;
}
.btn-donate svg { width: 16px; height: 16px; }
.btn-donate:hover { background: #D9740E; transform: translateY(-2px); }
.btn-donate[aria-current="page"] { background: var(--red); box-shadow: none; }

/* Small secondary buttons (S1, S3, S4) */
.btn-mini {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-mini:hover { border-color: var(--orange); background: var(--orange-soft); }
.map-load { background: #fff; border-color: #fff; }

/* S1: Select all / Unselect all */
.bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }

/* S5: Diagnostic tick box under Type */
.diag-field { margin-top: -6px; }
.diag-field .check-line { padding: 4px 0; font-weight: 500; }

/* ---------- Donate page (S4) ---------- */
.donate-wrap { padding-block: 16px 72px; }
.donate-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 32px;
  align-items: start;
}
.qr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}
.qr-card img { width: 100%; height: auto; border-radius: 12px; }
.qr-caption { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.donate-side { display: grid; gap: 20px; }
.info-card, .note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.info-card h2, .note-card h2 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.5; }
html[lang="ur"] .info-card h2, html[lang="ur"] .note-card h2 { line-height: 2; }
.info-card .muted { color: var(--muted); margin: 0 0 16px; }
.btn-block { width: 100%; }
.hint { margin: 6px 0 16px; font-size: .88rem; color: var(--muted); text-align: center; }
.upi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.upi-label { font-weight: 700; font-size: .9rem; flex-basis: 100%; }
.upi-id {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92rem;
  word-break: break-all;
  flex-basis: 100%;
  font-size: 1rem;
}
.copied { color: var(--green); font-weight: 700; font-size: .9rem; }
.copied:empty { display: none; }
.note-card p { margin: 0 0 8px; }
.note-safe { border-inline-start: 6px solid var(--yellow); background: #FFFBEB; }
.note-tax { border-inline-start: 6px solid var(--green); background: #F2FAF4; }
.call-line a { font-weight: 700; white-space: nowrap; color: var(--green); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Form page ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding-block: 40px 24px;
}
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 14px;
}
.back-link::before { content: "←"; }
html[dir="rtl"] .back-link::before { content: "→"; }
.back-link:hover { color: var(--red); }
.page-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.3;
  color: var(--red);
}
html[lang="ur"] .page-hero h1 { line-height: 1.9; }
.page-hero p { margin: 0; color: var(--muted); }

.form-wrap { padding-block: 16px 72px; }
.reg-form { max-width: 860px; margin: 0 auto; }

.form-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 0 0 22px;
}
.form-section legend {
  float: left; /* keeps legend inside the box */
  width: 100%;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  padding: 0 0 6px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--orange-soft);
}
html[dir="rtl"] .form-section legend { float: right; }
.form-section legend + * { clear: both; }
.section-hint { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label {
  font-weight: 600;
  font-size: .97rem;
}
.req { color: var(--red); margin-inline-start: 2px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field input[type="password"],
.field textarea {
  font: inherit;
  line-height: 1.5;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #D5D9DE;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(241, 138, 33, .18);
}
.field.has-error input,
.field.has-error textarea,
.field.has-error .select { border-color: var(--red); background: #FFF6F5; }
.error {
  margin: 0;
  color: var(--red-dark);
  font-size: .88rem;
  font-weight: 600;
  min-height: 0;
}
.error:empty { display: none; }

/* Radio and checkbox "chips" */
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid #D5D9DE;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.chip input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.chip:hover { border-color: var(--orange); }
.chip:has(input:checked) { border-color: var(--red); background: #FFF1F0; }
.field.has-error .chip { border-color: var(--red); }

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.facility-grid .chip { border-radius: 12px; }
.other-input { margin-top: 12px; }
.other-input[hidden] { display: none; }

/* Concession rows */
.concession-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.concession-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.concession-row label { font-weight: 600; }
.pct {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pct input {
  font: inherit;
  width: 84px;
  padding: 8px 10px;
  border: 1.5px solid #D5D9DE;
  border-radius: 10px;
  text-align: center;
  direction: ltr;
}
.pct input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 138, 33, .18); }
.pct span { font-weight: 700; color: var(--muted); }
.concession-row.has-error { border-color: var(--red); }
.concession-row .error { flex-basis: 100%; }
.concession-row.has-error { flex-wrap: wrap; }

/* Declaration */
.declaration-text {
  background: var(--bg-soft);
  border-inline-start: 5px solid var(--orange);
  padding: 16px 18px;
  border-radius: 12px;
  margin: 0 0 16px;
  font-size: 1.02rem;
}
.check-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 10px 0;
}
.check-line input {
  accent-color: var(--red);
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  flex-shrink: 0;
}
.field.has-error .check-line { color: var(--red-dark); }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.form-actions .btn { min-width: 220px; font-size: 1.05rem; }
.form-summary {
  display: none;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFF1F0;
  color: var(--red-dark);
  font-weight: 700;
  text-align: center;
}
.form-summary.show { display: block; }

.success-panel {
  max-width: 620px;
  margin: 20px auto 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 28px;
}
.success-panel[hidden] { display: none; }
.success-panel .tick {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  animation: pop .5s ease;
}
.success-panel .tick svg { width: 40px; height: 40px; }
.success-panel h2 { margin: 0 0 8px; color: var(--green); }
.success-panel p { color: var(--muted); margin: 0 0 22px; }
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---------- S8: About Us background animation ---------- */
.about-anim { position: relative; overflow: hidden; isolation: isolate; }
.about-anim > .container { position: relative; z-index: 1; }
.about-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Floating initiative icons (roti, shirt, book, heart) */
.anim-b .fi {
  position: absolute;
  top: 105%;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  background: center / contain no-repeat;
  opacity: 0;
  animation: fi-rise var(--t) linear var(--dl) infinite;
}
.anim-b .fi.roti  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F18A21' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='8.5' cy='9.5' r='.9'/%3E%3Ccircle cx='14' cy='8' r='.9'/%3E%3Ccircle cx='15.5' cy='13.5' r='.9'/%3E%3Ccircle cx='10' cy='15' r='.9'/%3E%3C/svg%3E"); }
.anim-b .fi.shirt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C9AD6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 3 6l2 4 3-1v12h8V9l3 1 2-4-5-3a4 4 0 0 1-8 0z'/%3E%3C/svg%3E"); }
.anim-b .fi.book  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322A24B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h6a4 4 0 0 1 4 4v11a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 5h-6a4 4 0 0 0-4 4v11a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }
.anim-b .fi.heart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2231A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.1 4.1 0 0 1 12 7.4a4.1 4.1 0 0 1 7.5 2.4C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
@keyframes fi-rise {
  0%   { top: 105%; transform: translateX(0) rotate(-10deg); opacity: 0; }
  12%  { opacity: .22; }
  50%  { transform: translateX(22px) rotate(10deg); }
  88%  { opacity: .22; }
  100% { top: -15%; transform: translateX(0) rotate(-10deg); opacity: 0; }
}


/* ---------- S10: Apply Overall ---------- */
.hint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.hint-row .section-hint { margin: 0; flex: 1 1 260px; }
.apply-all { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.apply-all .pct input { width: 76px; }
.apply-msg { flex-basis: 100%; margin: 0; font-size: .9rem; font-weight: 700; }
.apply-msg:empty { display: none; }
.apply-msg.is-ok { color: var(--green); }
.apply-msg.is-err { color: var(--red-dark); }

/* ---------- S11 / S12: Events ---------- */
.footer-links { margin: 8px 0 0 !important; }
.footer-link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); }
.footer-link::after { content: " →"; }
html[dir="rtl"] .footer-link::after { content: " ←"; }
.footer-link:hover { color: var(--yellow); }

.ico { display: inline-grid; place-items: center; flex-shrink: 0; }
.ico svg { width: 18px; height: 18px; }

.ev-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; line-height: 1.5;
  padding: 3px 12px; border-radius: 999px;
  background: #F1F2F4; color: var(--ink);
}
.tag-up { background: #FFF1F0; color: var(--red-dark); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(226, 35, 26, .5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 35, 26, .55); }
  100% { box-shadow: 0 0 0 10px rgba(226, 35, 26, 0); }
}
.tag-type.t-medical { background: #E8F5FC; color: #0E6E9C; }
.tag-type.t-blood { background: #FFF1F0; color: var(--red-dark); }
.tag-type.t-gathering { background: #FFF4E6; color: #A4520A; }
.tag-type.t-donor { background: #ECF8EF; color: #16733A; }
.tag-count { background: var(--yellow); color: #3A2E00; }

.ev-title { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.35; }
html[lang="ur"] .ev-title { line-height: 1.9; }
.ev-meta { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; color: var(--muted); }
.ev-meta li { display: flex; gap: 8px; align-items: flex-start; }
.ev-meta .ico { color: var(--red); margin-top: 3px; }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.all-events { font-weight: 700; color: var(--red); text-decoration: none; margin-inline-start: 4px; }
.all-events::after { content: " →"; }
html[dir="rtl"] .all-events::after { content: " ←"; }
.all-events:hover { text-decoration: underline; }

/* Poster buttons */
.poster-btn {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(31, 35, 40, .14);
  transition: transform .25s;
}
.poster-btn:hover { transform: translateY(-3px) rotate(-.5deg); }
.poster-btn img { width: 100%; height: auto; display: block; }
.poster-zoom {
  position: absolute; bottom: 8px; inset-inline-end: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
}
.poster-zoom svg { width: 16px; height: 16px; }

/* Drop-down menus */
.drop { position: relative; }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary .ico svg { width: 16px; height: 16px; }
.drop[open] > summary { border-color: var(--orange); background: var(--orange-soft); }
.drop-menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline-start: 0;
  min-width: 240px; max-width: min(360px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-hover); padding: 8px;
}
.drop-item {
  display: block; width: 100%; text-align: start;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.5;
  color: var(--ink); text-decoration: none; background: none; border: 0;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
}
.drop-item:hover { background: var(--bg-soft); }
.drop-note { margin: 4px 8px 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.drop-call .drop-menu { min-width: 300px; }

/* Store list */
.stores { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.store {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.store-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
html[lang="ur"] .store-info { line-height: 1.9; }
.store-area { font-size: .85rem; color: var(--muted); }
.store-call {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .92rem; padding: 6px 12px; border-radius: 999px;
}
.store-call .ico svg { width: 14px; height: 14px; }
.store-call:hover { background: #1B8A3F; }
.stores.compact .store { padding: 8px 10px; border: 0; background: var(--bg-soft); }

/* S12: home page compact card */
.next-event-section { padding-block: 0 72px; }
.event-compact {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-inline-start: 6px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 24px; max-width: 920px; margin: 0 auto;
}
.event-compact .ev-title { font-size: 1.25rem; }

/* S11: Events page */
.events-section { padding-block: 40px 56px; }
.events-h { font-size: 1.5rem; margin: 0 0 20px; }
.event-full {
  display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 32px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px;
  scroll-margin-top: 90px;
}
.poster-lg { position: sticky; top: 96px; }
.ev-h {
  margin: 18px 0 10px; font-size: 1rem; text-transform: none;
  padding-bottom: 6px; border-bottom: 2px solid var(--orange-soft);
}
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: #E8F5FC; color: #0E6E9C;
}
.doc-chip .ico svg { width: 16px; height: 16px; }
.ev-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-services li { display: flex; gap: 10px; align-items: flex-start; }
.ev-services .ico {
  width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; margin-top: 2px;
}
.ev-services .ico svg { width: 13px; height: 13px; }
.ev-register { background: var(--bg-soft); border-radius: 14px; padding: 4px 16px 16px; margin-top: 18px; }
.ev-fee { margin: 0 0 6px; font-size: 1.05rem; }
.ev-advance {
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  background: #FFF1F0; color: var(--red-dark); font-weight: 700; font-size: .92rem;
}
.ev-callnote { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.ev-register .ev-h { border-bottom-color: #F4DCC3; }
.event-full .ev-actions { margin-top: 18px; }
.empty-note {
  margin: 0; padding: 24px; text-align: center; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-row:empty { display: none; }
.filter-chip {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.event-past {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.past-body .ev-title { font-size: 1.05rem; margin-bottom: 4px; }
.past-date { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }

/* Poster lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(92vw, 720px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 16, 12, .82); }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 12px; display: block; margin: 0 auto; }
.lightbox-close {
  position: absolute; top: -14px; inset-inline-end: -14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .event-compact { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; align-items: start; }
  .event-compact .ev-title { font-size: 1.1rem; }
  .event-full { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .poster-lg { position: static; max-width: 360px; margin-inline: auto; width: 100%; }
  .next-event-section { padding-bottom: 56px; }
}
@media (max-width: 480px) {
  .event-compact { grid-template-columns: 1fr; }
  .event-compact .poster-sm { max-width: 160px; }
  .event-compact .ev-actions > .btn { width: 100%; }
  .drop-menu { position: fixed; inset-inline: 16px; top: auto; bottom: 16px; max-width: none; min-width: 0; }
  .drop-call .drop-menu { min-width: 0; max-height: 70vh; overflow: auto; }
  .store { flex-wrap: wrap; }
  .lightbox-close { top: 8px; inset-inline-end: 8px; }
}

/* ---------- S17: phone-only / computer-only bits ---------- */
.only-desktop { display: none; }
.is-desktop .only-desktop { display: block; }
.is-desktop .only-mobile { display: none !important; }

/* ====================================================================
   BUILD 5
   ==================================================================== */

/* ---------- S18: "Have surplus food?" orb ---------- */
.food-orb-wrap {
  position: fixed;
  z-index: 60;
  bottom: 20px;
  inset-inline-end: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.food-orb-wrap > * { pointer-events: auto; }
body.story-open .food-orb-wrap,
body:has(details.drop[open]) .food-orb-wrap { display: none; }
.food-orb {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  min-width: 60px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF9A2E, var(--orange) 55%, #E86F0C);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(241, 138, 33, .45), inset 0 1px 0 rgba(255,255,255,.35);
  animation: orb-breathe 3.2s ease-in-out infinite;
  font: inherit;
}
.orb-ring {
  position: absolute;
  inset: -6px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px)), repeating-conic-gradient(#000 0deg 5deg, transparent 5deg 10deg);
  -webkit-mask-composite: source-in;
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px)), repeating-conic-gradient(#000 0deg 5deg, transparent 5deg 10deg);
          mask-composite: intersect;
  animation: spin 14s linear infinite;
  pointer-events: none;
}
.orb-icon { width: 60px; height: 60px; display: grid; place-items: center; flex-shrink: 0; }
.orb-icon svg { width: 30px; height: 30px; }
.orb-pill {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: .95rem;
  transition: max-width .45s ease, padding .45s ease;
}
.food-orb:hover .orb-pill,
.food-orb:focus-visible .orb-pill,
.food-orb-wrap.peek .orb-pill { max-width: 260px; padding-inline-end: 20px; }
.food-orb:hover .orb-ring,
.food-orb-wrap.peek .orb-ring,
.food-orb-wrap.is-open .orb-ring { opacity: 0; transition: opacity .2s; }
.food-orb-wrap.is-open .food-orb { animation: none; background: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.food-orb-wrap.is-open .orb-pill { max-width: 0; padding: 0; }
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(241, 138, 33, .45); }
  50% { transform: scale(1.05); box-shadow: 0 12px 34px rgba(241, 138, 33, .6); }
}

.food-card {
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(31, 35, 40, .25);
  padding: 18px 18px 14px;
  transform-origin: bottom right;
  animation: card-rise .32s cubic-bezier(.2, .8, .3, 1.15);
}
html[dir="rtl"] .food-card { transform-origin: bottom left; }
.food-card[hidden] { display: none; }
@keyframes card-rise { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
.food-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.food-title { margin: 0; font-size: 1.2rem; line-height: 1.4; }
html[lang="ur"] .food-title { line-height: 2; }
.food-close {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: #F1F2F4; color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.food-sub { margin: 4px 0 12px; color: var(--muted); font-size: .92rem; }
.food-q { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.food-q legend, .food-area-label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.food-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.food-chip { position: relative; cursor: pointer; }
.food-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.food-chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
  transition: all .15s;
}
.food-chip:hover span { border-color: var(--orange); }
.food-chip input:checked + span { background: #D9690A; border-color: #D9690A; color: #fff; transform: scale(1.05); }
.food-chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.food-area {
  font: inherit; width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #D5D9DE; border-radius: 12px; background: #fff;
}
.food-area:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 138, 33, .18); }
.food-send {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25D366; color: #fff;
  font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
  transition: transform .2s, background .2s;
}
.food-send:hover { background: #1EBE5B; transform: translateY(-2px); }
.food-send .wa-ico svg { width: 20px; height: 20px; display: block; }
.food-note { margin: 10px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

.roti-steam {
  position: absolute;
  bottom: 30px;
  inset-inline-end: 22px;
  width: var(--size);
  height: var(--size);
  color: var(--orange);
  pointer-events: none;
  animation: steam 1.3s ease-out var(--delay) both;
}
.roti-steam svg { width: 100%; height: 100%; display: block; }
@keyframes steam {
  0% { opacity: 0; transform: translate(0, 0) scale(.6) rotate(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -150px) scale(1.1) rotate(160deg); }
}
.donate-food { margin-top: 12px; }

/* ---------- S19: Story strip + ticker (home) ---------- */
.story-strip { padding-block: 22px 8px; }
.strip-inner {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.stories-block { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stories-block[hidden] { display: none; }
.strip-label {
  font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  writing-mode: horizontal-tb;
}
.story-bubbles { display: flex; gap: 14px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.story-bubbles::-webkit-scrollbar { display: none; }
.story-bubble {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink);
  flex-shrink: 0;
}
.bubble-ring {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--red));
  animation: spin 8s linear infinite;
  transition: transform .2s;
}
.bubble-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  animation: spin 8s linear infinite reverse;
  display: block;
}
.story-bubble:hover .bubble-ring { transform: scale(1.07); }
.story-bubble.is-seen .bubble-ring { background: #D5D9DE; animation: none; }
.story-bubble.is-seen .bubble-ring img { animation: none; }
.bubble-label { font-size: .8rem; font-weight: 600; max-width: 84px; text-align: center; line-height: 1.3; }
html[lang="ur"] .bubble-label { line-height: 1.8; }

.news-ticker { flex: 1 1 320px; min-width: 0; }
.news-ticker[hidden] { display: none; }
.ticker-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  min-width: 0;
}
.ticker-link:hover { border-color: var(--orange); }
.ticker-tag {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--red-dark);
}
.ticker-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.ticker-inner { display: inline-block; }
.ticker-more { flex-shrink: 0; color: var(--red); font-weight: 700; font-size: .9rem; }
.ticker-more::after { content: " →"; }
html[dir="rtl"] .ticker-more::after { content: " ←"; }
@media (max-width: 700px) {
  .ticker-text { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ticker-inner { animation: ticker-scroll 14s linear infinite; padding-inline-end: 40px; }
  html[dir="rtl"] .ticker-inner { animation-name: ticker-scroll-rtl; }
}
@keyframes ticker-scroll { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes ticker-scroll-rtl { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- S19: Story viewer ---------- */
body.story-open { overflow: hidden; }
.story-viewer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at top, #2A2420, #0E0C0A 70%);
  color: #fff;
  animation: sv-in .25s ease;
}
.story-viewer[hidden] { display: none; }
@keyframes sv-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.sv-top { padding: 12px 16px 6px; max-width: 560px; width: 100%; margin: 0 auto; }
.sv-bars { display: flex; gap: 4px; margin-bottom: 10px; direction: ltr; }
html[dir="rtl"] .sv-bars { direction: rtl; }
.sv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-fill { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.sv-head { display: flex; align-items: center; gap: 10px; }
.sv-cover { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.sv-headtxt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
html[lang="ur"] .sv-headtxt { line-height: 1.9; }
.sv-title { font-size: 1rem; }
.sv-date { font-size: .8rem; opacity: .75; }
.sv-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sv-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 16px; touch-action: pan-y; }
.sv-img { max-width: min(100%, 560px); max-height: 100%; border-radius: 16px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.sv-zone { position: absolute; top: 0; bottom: 0; width: 38%; background: transparent; border: 0; cursor: pointer; }
.sv-prev { left: 0; }
.sv-next { right: 0; }
.sv-bottom { padding: 10px 20px 22px; max-width: 560px; width: 100%; margin: 0 auto; text-align: center; }
.sv-text { margin: 0 0 12px; font-size: 1.15rem; font-weight: 600; line-height: 1.5; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
html[lang="ur"] .sv-text { line-height: 2; }
.sv-cta:empty { display: none; }
.sv-cta { margin-bottom: 12px; }
.sv-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  background: #25D366; color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none;
}
.sv-share:hover { background: #1EBE5B; }

/* ---------- S19: News timeline ---------- */
.news-section { padding-block: 32px 72px; }
.news-section .filter-row { max-width: 860px; margin-inline: auto; margin-bottom: 24px; }
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-inline-start: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 11px;
  top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue));
  box-shadow: 0 0 12px rgba(241, 138, 33, .45);
}
.tl-item { position: relative; margin-bottom: 30px; scroll-margin-top: 100px; }
.tl-dot {
  position: absolute;
  inset-inline-start: -31px;
  top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--orange);
  box-shadow: 0 0 0 5px rgba(241, 138, 33, .15);
}
.tl-item.cat-medical .tl-dot { border-color: var(--red); }
.tl-item.cat-education .tl-dot { border-color: var(--green); }
.tl-item.cat-kapda .tl-dot { border-color: var(--blue); }
.tl-date { display: block; font-weight: 800; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.tl-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform .25s, box-shadow .25s;
}
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tl-item.is-target .tl-card { box-shadow: 0 0 0 3px var(--orange), var(--shadow-hover); }
.tl-img { border-radius: 12px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; }
.tl-cat { margin-bottom: 6px; }
.cat-medical .tl-cat { background: #FFF1F0; color: var(--red-dark); }
.cat-education .tl-cat { background: #ECF8EF; color: #16733A; }
.tl-title { margin: 4px 0 6px; font-size: 1.15rem; line-height: 1.4; }
html[lang="ur"] .tl-title { line-height: 1.9; }
.tl-summary, .tl-more p { margin: 0 0 10px; color: var(--muted); }
.tl-more p { color: var(--ink); }
.tl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tl-link { color: var(--red); font-weight: 700; font-size: .92rem; text-decoration: none; }
.tl-link::after { content: " →"; }
html[dir="rtl"] .tl-link::after { content: " ←"; }
.tl-link:hover { text-decoration: underline; }

/* ---------- S20: In the News ---------- */
.itn-section { padding-block: 24px 72px; }
.itn-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.news-table {
  position: relative;
  height: clamp(560px, 78vh, 820px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(241,138,33,.12), transparent 50%),
    repeating-linear-gradient(115deg, rgba(120,90,60,.035) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #F6EBDD, #EFDFCB);
  box-shadow: inset 0 2px 20px rgba(120, 80, 40, .12), var(--shadow);
  touch-action: pan-y;
}
.news-table.is-stack { background: linear-gradient(160deg, #F6EBDD, #EFDFCB); }
body[data-itn-mode="list"] .news-table { display: none; }
.clip {
  position: absolute;
  padding: 6px;
  border: 0;
  background: #fff;
  border-radius: 4px;
  cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(60, 40, 20, .22), 0 1px 3px rgba(60, 40, 20, .2);
  transform: rotate(var(--rot, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
}
.clip.landed { opacity: 1; }
.clip img { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; }
.clip:hover, .clip:focus-visible {
  transform: rotate(calc(var(--rot, 0deg) * .4)) scale(1.05) translateY(-6px);
  box-shadow: 0 22px 40px rgba(60, 40, 20, .3);
}
.news-table.is-stack .clip { cursor: grab; transition: box-shadow .25s ease; }
.news-table.is-stack .clip:hover { transform: rotate(var(--rot, 0deg)); }
.stack-controls { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
body[data-itn-mode="stack"] .stack-controls { display: flex; }
.stack-hint { margin: 0; color: var(--muted); font-size: .9rem; }
.clip-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
body[data-itn-mode="list"] .clip-grid { display: grid; }
.clip-tile {
  display: flex; flex-direction: column; gap: 8px; text-align: start;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.clip-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.clip-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; }
.clip-meta { font-size: .82rem; color: var(--muted); font-weight: 600; }
.clip-head { font-size: .98rem; line-height: 1.4; }
html[lang="ur"] .clip-head { line-height: 1.9; }

.clip-reader {
  border: 0; padding: 0; background: transparent; overflow: visible;
  width: min(94vw, 900px); max-height: 94vh;
  display: none; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; align-items: center; gap: 10px;
}
.clip-reader[open] { display: grid; }
.clip-reader::backdrop { background: rgba(20, 16, 12, .86); }
.reader-fig { grid-column: 2; grid-row: 1; display: grid; place-items: center; min-height: 0; }
.reader-fig img { max-width: 100%; max-height: 74vh; border-radius: 6px; background: #fff; padding: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.reader-nav {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.reader-prev { grid-column: 1; grid-row: 1; }
.reader-next { grid-column: 3; grid-row: 1; }
.reader-cap { grid-column: 1 / -1; grid-row: 2; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.reader-meta { font-size: .85rem; opacity: .8; }
.reader-head { font-size: 1.1rem; line-height: 1.45; }
html[lang="ur"] .reader-head { line-height: 2; }
.reader-row { display: flex; justify-content: center; gap: 18px; font-size: .88rem; }
.reader-full { color: var(--yellow); font-weight: 700; }
.clip-reader .lightbox-close { position: absolute; top: -12px; inset-inline-end: -12px; z-index: 2; }

/* ---------- S21 ---------- */
.past-summary { margin: -4px 0 10px; font-size: .88rem; font-weight: 600; color: var(--ink); }

/* ---------- S22: Explore tiles ---------- */
.explore-section { padding-block: 64px 80px; background: var(--bg-soft); }
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 900px; }
.explore-tile {
  --c: var(--blue);
  --rx: 0deg; --ry: 0deg;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .2s ease-out, box-shadow .3s;
  isolation: isolate;
}
.explore-tile.c-blue { --c: var(--blue); }
.explore-tile.c-green { --c: var(--green); }
.explore-tile.c-yellow { --c: #D9A100; }
.explore-tile.c-red { --c: var(--red); }
.explore-tile::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}
.explore-tile:hover { box-shadow: 0 18px 40px rgba(31,35,40,.16), 0 0 28px color-mix(in srgb, var(--c) 30%, transparent); }
.explore-tile:hover::before, .explore-tile:focus-visible::before { opacity: 1; }
.explore-tile:active { transform: scale(.97); }
.tile-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
  transform: translateZ(30px);
}
.tile-icon svg { width: 28px; height: 28px; }
.tile-title { font-size: 1.15rem; font-weight: 800; line-height: 1.4; transform: translateZ(20px); }
html[lang="ur"] .tile-title { line-height: 1.9; }
.tile-text { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.tile-arrow { color: var(--c); font-weight: 800; font-size: 1.2rem; transition: transform .2s; }
html[dir="rtl"] .tile-arrow { transform: scaleX(-1); }
.explore-tile:hover .tile-arrow { transform: translateX(6px); }
html[dir="rtl"] .explore-tile:hover .tile-arrow { transform: scaleX(-1) translateX(6px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 960px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .tl-card { grid-template-columns: 1fr; }
  .tl-img { aspect-ratio: 16 / 9; }
  .timeline { padding-inline-start: 28px; }
  .tl-dot { inset-inline-start: -25px; }
  .timeline::before { inset-inline-start: 7px; }
  .news-table { border-radius: 20px; }
  .itn-controls { justify-content: flex-start; }
  .clip-reader { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; width: 96vw; }
  .reader-fig { grid-column: 1 / -1; }
  .reader-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .reader-next { grid-column: 2; grid-row: 2; justify-self: end; }
  .reader-cap { grid-row: 3; }
  .clip-reader .lightbox-close { top: 6px; inset-inline-end: 6px; }
  .food-orb-wrap { bottom: 14px; inset-inline-end: 14px; }
  .story-strip { padding-top: 16px; }
  .strip-label { display: none; }
}
@media (max-width: 480px) {
  .explore-grid { gap: 12px; }
  .explore-tile { padding: 18px 14px 16px; border-radius: 18px; }
  .tile-icon { width: 44px; height: 44px; }
  .tile-text { font-size: .85rem; }
}

/* ====================================================================
   BUILD 6
   ==================================================================== */

/* ---------- S23: rotating news bar ---------- */
.news-bar {
  --nb-c: var(--red);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news-bar[hidden] { display: none; }
.nb-dot {
  width: 12px; height: 12px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--nb-c);
  box-shadow: 0 0 0 0 var(--nb-c);
  transition: background .6s ease;
  animation: nb-glow 1.6s ease-out infinite;
  margin-inline-start: 4px;
}
@keyframes nb-glow {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nb-c) 60%, transparent); }
  100% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--nb-c) 0%, transparent); }
}
.nb-window { position: relative; flex: 1; min-width: 0; height: 1.8em; overflow: hidden; }
html[lang="ur"] .nb-window { height: 2.3em; }
.nb-item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 0;
  white-space: nowrap; overflow: hidden;
  color: var(--ink); text-decoration: none;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s ease;
}
.nb-item.nb-enter { transform: translateY(100%); opacity: 0; }
.nb-item.nb-leave { transform: translateY(-100%); opacity: 0; }
.nb-date { font-weight: 800; color: var(--nb-c); flex-shrink: 0; transition: color .6s ease; }
.nb-sep { flex-shrink: 0; white-space: pre; color: var(--muted); font-weight: 700; }
.nb-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.nb-item:hover .nb-title { text-decoration: underline; }
.nb-read { flex-shrink: 0; color: var(--red); font-weight: 800; text-decoration: none; }
.nb-read::after { content: " →"; }
html[dir="rtl"] .nb-read::after { content: " ←"; }
.nb-read:hover { text-decoration: underline; }
.nb-dots { display: flex; gap: 5px; flex-shrink: 0; }
.nb-pip {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: #D5D9DE; cursor: pointer; transition: width .3s, background .3s;
}
.nb-pip[aria-current="true"] { width: 18px; background: var(--nb-c); }
.nb-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--nb-c);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .7;
}
html[dir="rtl"] .nb-progress { transform-origin: right; }
@media (max-width: 700px) {
  .news-bar { border-radius: 20px; flex-wrap: wrap; padding: 14px 16px 16px; row-gap: 10px; }
  .nb-window { flex-basis: calc(100% - 30px); height: 3.4em; }
  html[lang="ur"] .nb-window { height: 4.4em; }
  .nb-item { flex-direction: column; align-items: flex-start; white-space: normal; }
  .nb-sep { display: none; }
  .nb-date { font-size: .85rem; }
  .nb-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .nb-read { margin-inline-start: 26px; }
  .nb-dots { margin-inline-start: auto; }
}

/* ---------- S25: food card extras ---------- */
.food-num {
  font: inherit; font-size: .92rem;
  width: 150px; margin-top: 10px;
  padding: 7px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
}
.food-num:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 138, 33, .18); }
.food-num.has-value { border-color: #D9690A; background: #FFF4E6; font-weight: 700; }
.food-area.is-error { border-color: var(--red); background: #FFF6F5; box-shadow: 0 0 0 4px rgba(226, 35, 26, .15); animation: shake .35s; }
.food-err { margin: 6px 0 0; color: var(--red-dark); font-size: .85rem; font-weight: 700; }
.food-err:empty { display: none; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- S27: year chips on In the News ---------- */
.itn-controls { align-items: center; }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-end: auto; }
.year-chips .filter-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.year-chips .filter-chip.chip-all[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.year-chips .filter-chip { direction: ltr; }


/* ====================================================================
   BUILD 7
   ==================================================================== */

/* ---------- S29: test-mode banner ---------- */
.test-banner {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 860px; margin: 0 auto 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #FFF8DB;
  border: 1.5px dashed #E0B400;
  color: #4A3B00;
}
.test-banner p { margin: 0; line-height: 1.6; }
html[lang="ur"] .test-banner p { line-height: 2.1; }
.test-ico { font-size: 1.4rem; line-height: 1.3; }
.test-phone { font-weight: 800; color: var(--red-dark); white-space: nowrap; unicode-bidi: isolate; }

/* ---------- S35: privacy link + page ---------- */
.pp-link { display: inline-block; margin: -2px 0 6px; margin-inline-start: 34px; font-size: .9rem; font-weight: 600; color: var(--red); }
.pp-wrap { max-width: 820px; padding-block: 40px 72px; }
.pp-lang { display: none; }
html[lang="en"] .pp-lang[data-lang="en"],
html[lang="hi"] .pp-lang[data-lang="hi"],
html[lang="ur"] .pp-lang[data-lang="ur"] { display: block; }
.pp-lang h1 { color: var(--red); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 4px; line-height: 1.3; }
html[lang="ur"] .pp-lang h1 { line-height: 1.9; }
.pp-updated { margin: 0 0 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.pp-intro { font-size: 1.08rem; padding: 16px 18px; background: var(--bg-soft); border-inline-start: 5px solid var(--orange); border-radius: 12px; }
.pp-sec { margin-top: 26px; padding-block: 0; }
.pp-sec h2 { font-size: 1.2rem; margin: 0 0 8px; line-height: 1.5; }
html[lang="ur"] .pp-sec h2 { line-height: 2; }
.pp-sec p, .pp-sec li { color: #33383E; }
.pp-sec ul { margin: 6px 0 0; padding-inline-start: 22px; }
.pp-sec li { margin-bottom: 6px; }
.pp-sec a { font-weight: 700; }
.pp-close { margin-top: 30px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- S30: 404 page ---------- */
.nf-wrap { padding-block: 64px 88px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.nf-inner { text-align: center; max-width: 640px; }
.nf-art { position: relative; width: 220px; height: 220px; margin: 0 auto 18px; }
.nf-roti { width: 100%; height: 100%; animation: nf-wobble 5s ease-in-out infinite; filter: drop-shadow(0 12px 20px rgba(160, 100, 30, .25)); }
@keyframes nf-wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-6px); } }
.nf-code {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3.4rem; font-weight: 900; color: var(--red); letter-spacing: .04em;
  text-shadow: 0 2px 0 #fff, 0 6px 16px rgba(226, 35, 26, .25);
}
.nf-inner h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 8px; line-height: 1.35; }
html[lang="ur"] .nf-inner h1 { line-height: 1.9; }
.nf-inner > p { color: var(--muted); margin: 0 0 22px; }
.nf-links { display: flex; justify-content: center; gap: 18px; margin-top: 22px !important; }
.nf-links a { font-weight: 700; color: var(--red); text-decoration: none; }
.nf-links a:hover { text-decoration: underline; }

/* ====================================================================
   BUILD 8
   ==================================================================== */

/* ---------- S36: news bar strip under the welcome banner ---------- */
.nb-strip { padding-block: 20px 0; }
.nb-strip .news-bar { margin-top: 0; }
.nb-strip:has(.news-bar[hidden]) { display: none; }


/* ---------- S37 / S39: photo & document pickers ---------- */
.up-ui { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.up-preview {
  position: relative; flex-shrink: 0;
  width: 84px; height: 84px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--bg-soft); border: 2px dashed #E6CBAE; color: #D8B48E; overflow: hidden;
}
.up-preview.is-photo { border-radius: 50%; }
.up-preview .up-ico svg { width: 38px; height: 38px; }
.up-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.up-preview.has-img { border: 3px solid var(--orange); }
.up-preview.has-img .up-ico { display: none; }
.up-right { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.up-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.up-btns .btn-mini .up-ico svg { width: 17px; height: 17px; display: block; }
.up-remove { font: inherit; font-size: .88rem; font-weight: 700; color: var(--red-dark); background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; }
.up-remove[hidden] { display: none; }
.up-name { font-size: .88rem; color: var(--muted); font-weight: 600; word-break: break-all; }
.up-name:empty { display: none; }
.up-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.up-hint { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.upload-field.has-error .up-preview { border-color: var(--red); background: #FFF6F5; }
.opt { font-weight: 500; color: var(--muted); }

/* ---------- S37: Imam & Muazzin form ---------- */
.im-only { font-weight: 600; color: var(--ink) !important; margin-bottom: 6px !important; }
.aadhaar-wrap { position: relative; }
.aadhaar-wrap input { padding-inline-end: 48px !important; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.aadhaar-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; font-size: 1.05rem; opacity: .55;
}
.aadhaar-eye:hover, .aadhaar-eye.is-on { opacity: 1; background: var(--bg-soft); }
.field input[type="date"] { min-height: 46px; }
.im-age { font-size: .88rem; font-weight: 700; color: var(--green); }
.im-age:empty { display: none; }
.select {
  font: inherit; width: 100%; padding: 11px 14px; border: 1.5px solid #D5D9DE; border-radius: 12px; background: #fff; color: var(--ink);
}
.select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 138, 33, .18); }
.unit-input { display: flex; align-items: center; gap: 8px; }
.unit-input input { flex: 1; min-width: 0; }
.unit-input span { font-weight: 700; color: var(--muted); }
.unit-input.rupee span { font-size: 1.1rem; }
.fam-list { display: grid; gap: 14px; }
.fam-row {
  display: grid; grid-template-columns: 110px 1fr 1fr; gap: 14px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft);
}
.fam-rel { font-weight: 800; color: var(--red); padding-top: 34px; }
.child-list { display: grid; gap: 14px; }
.child-card { padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: card-rise .3s ease; }
.child-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.child-title { color: var(--blue); font-size: 1.02rem; }
.child-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.add-child { font-size: 1rem; padding: 10px 18px; border-color: var(--orange); }
.add-child:disabled { opacity: .45; cursor: not-allowed; }
.child-note { font-size: .88rem; color: var(--muted); }
.child-note.is-max { color: var(--red-dark); font-weight: 700; }

/* ---------- S38: Donate Cooked Food ---------- */
.btn-food {
  margin-top: 16px;
  background: linear-gradient(135deg, #FF9A2E, var(--orange) 55%, #E86F0C);
  color: #fff; box-shadow: 0 8px 22px rgba(241, 138, 33, .35);
}
.btn-food:hover { transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 700px) {
  .fam-row { grid-template-columns: 1fr; gap: 8px; }
  .fam-rel { padding-top: 0; }
  .btn-food { width: 100%; }
}

/* =========================================================
   BUILD 8.2
   ========================================================= */
/* S44: form boxes with the "hidden" attribute must really hide (.field sets display:flex) */
.field[hidden], .up-preview img[hidden] { display: none; }
/* S45: laptop hint under the photo picker */
.up-desk-hint { margin-top: 0; }

/* =========================================================
   BUILD 9.1
   ========================================================= */
/* S46: hidden trap box (never visible to people) */
.hp-field { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; white-space: nowrap; }
/* S46: sending state */
.btn.is-sending { opacity: .75; cursor: progress; }
.btn.is-sending::after { content: ""; width: 14px; height: 14px; margin-inline-start: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: rbaSpin .8s linear infinite; }
@keyframes rbaSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-sending::after { animation: none; } }
/* S46: reference number + copy */
.ref-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 14px auto 6px; padding: 12px 16px; border: 2px dashed var(--orange); border-radius: 14px; background: #FFF7EE; max-width: 520px; }
.ref-no { font-size: 1.35rem; letter-spacing: .04em; unicode-bidi: isolate; direction: ltr; font-variant-numeric: tabular-nums; }
.ref-copy.is-done { background: var(--green); color: #fff; border-color: var(--green); }

/* =========================================================
   BUILD 9.2
   ========================================================= */
/* S63: District fixed to Akola (looks like a box, greyed out, cannot be changed) */
.fixed-input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #F1F1F1; color: #555; cursor: not-allowed; font-weight: 600; }
.c-age-out { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { padding-block: 40px 56px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual-wrap { order: -1; }
  .hero-visual { width: min(240px, 64vw); }
  .init-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .concession-list { grid-template-columns: 1fr; }
  .form-section { padding: 20px 16px; }
  section { padding-block: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .donate-grid { grid-template-columns: 1fr; }
  .qr-card { max-width: 380px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .reg-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .brand-name { font-size: .88rem; }
  .brand img { width: 44px; height: 44px; }
  .header-inner { min-height: 64px; flex-wrap: wrap; padding-block: 8px; gap: 8px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .lang-switch button { padding: 6px 9px; font-size: .85rem; }
  .init-card { padding: 20px; gap: 14px; }
  .init-card .icon { width: 52px; height: 52px; }
}
@media (max-width: 400px) {
  .facility-grid { grid-template-columns: 1fr; }
}

/* Respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-ring { background: none; -webkit-mask: none; mask: none; border: 3px dashed var(--orange); opacity: .55; }
  .clip { opacity: 1; }
  .ticker-inner { animation: none !important; }
  .nb-item { transition: opacity .3s ease !important; }
  .nb-item.nb-enter, .nb-item.nb-leave { transform: none; }
}

/* ==========================================================================
   BUILD 9.4 · S71 doctors with name + speciality (Events page)
   ========================================================================== */
.doc-chip-named { align-items: flex-start; border-radius: 14px; padding: 8px 14px 9px; }
.doc-chip-named .ico { margin-top: 2px; flex: none; }
.doc-chip .doc-txt { display: flex; flex-direction: column; gap: 1px; }
.doc-chip .doc-name { font-weight: 700; }
.doc-chip .doc-role { font-weight: 500; font-size: .84rem; color: #2C5F78; }

/* ==========================================================================
   BUILD 10 · S72 Health Screening Camp (Events page) · S73 camp registration form
   ========================================================================== */
.tag-type.t-screening { background: #EAF7EE; color: #17803A; }
.ev-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  margin: 14px 0 4px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #EAF7EE, #FFF7EE); border: 1px solid #CFEBD8;
}
.ev-price p { margin: 0; }
.ev-price-main { display: flex; align-items: baseline; gap: 10px; }
.ev-price-label { font-weight: 600; color: #17803A; }
.ev-price-camp { font-size: 1.6rem; font-weight: 800; color: #17803A; }
.ev-price-actual { color: #6B7280; }
.ev-price-actual s { text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.ev-price-lab { flex-basis: 100%; font-weight: 600; color: #0E6E9C; }
.ev-audience { margin: 0; }
.test-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.test-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
  background: #E8F5FC; color: #0E6E9C; font-weight: 600; font-size: .92rem;
}
.test-chip .test-n { font-weight: 500; opacity: .8; }
.test-more { margin-top: 10px; }
.test-more > summary { cursor: pointer; font-weight: 700; color: var(--red-dark); width: max-content; max-width: 100%; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin-top: 10px; }
.test-group strong { display: block; margin-bottom: 4px; }
.test-group ul { margin: 0; padding-inline-start: 18px; font-size: .9rem; color: #374151; }
.ev-instr { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.ev-signup .ev-paynote { margin: 0 0 12px; }
.ev-signup .ev-reg-online { margin-bottom: 4px; }
.ev-phones { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-closed { font-weight: 700; color: var(--red-dark); }

/* camp registration page */
.camp-facts { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.camp-facts li { display: flex; gap: 8px; align-items: flex-start; }
.camp-facts .ico { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.camp-facts .ico svg { width: 20px; height: 20px; }
.camp-pay {
  margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; background: #EAF7EE; border: 1px solid #CFEBD8; font-weight: 600; color: #14532D;
}
.camp-closed { text-align: center; padding: 32px 20px; }
.camp-closed p { font-size: 1.1rem; }
.camp-closed strong { display: block; font-size: 1.3rem; color: var(--red-dark); margin-bottom: 8px; }
.success-panel .camp-come { font-weight: 700; font-size: 1.05rem; }
.success-panel .camp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ==========================================================================
   BUILD 10.1 · S80 video slide in stories (plays only when tapped, with sound)
   ========================================================================== */
.sv-stage { grid-template-rows: 100%; }                    /* lets pictures and videos fit the space above the caption */
.sv-video { height: 100%; width: auto; max-width: min(100%, 560px); object-fit: contain; border-radius: 16px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sv-video[hidden], .sv-img[hidden], .sv-play[hidden] { display: none; }
.sv-is-video .sv-zone { width: 14%; bottom: 76px; }       /* keep the video's own controls free */
.sv-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  background: rgba(226, 35, 26, .92); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.sv-play svg { width: 38px; height: 38px; margin-inline-start: 6px; }
html[dir="rtl"] .sv-play svg { margin-inline-start: 0; margin-inline-end: 6px; transform: none; }
.sv-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
