/* ============================================================
   Rohani Muhafiz - public website styles
   Plain CSS, mobile-first. No build step.
   ============================================================ */

:root {
  --green-900: #0f4335;
  --green-700: #17614a;
  --green-600: #1c7a5c;
  --green-500: #22936e;
  --gold:      #be9f41;
  --gold-soft: #f3eedd;

  --ink:       #1a1f1d;
  --ink-soft:  #4a5551;
  --muted:     #6b7772;
  --line:      #e2e8e5;
  --bg:        #ffffff;
  --bg-soft:   #f6f9f7;

  --red:       #b3261e;
  --red-soft:  #fdecea;
  --amber:     #8a6100;
  --amber-soft:#fff5dd;
  --blue:      #1b5e9c;
  --blue-soft: #e8f1fa;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 1px 3px rgba(15, 67, 53, .08), 0 6px 20px rgba(15, 67, 53, .06);
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--green-900);
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .45em;
  font-size: .9em;
}

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

.lead   { font-size: 1.1rem; color: var(--ink-soft); }
.muted  { color: var(--muted); }
.hint   { display: block; color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.err    { display: block; color: var(--red); font-size: .85rem; margin-top: .3rem; }
.req    { color: var(--red); }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin-bottom: .45rem; }

/* ---------------- Header ---------------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--green-900); display: block; flex: none; }
.logo-text { font-weight: 700; font-size: 1.15rem; color: var(--green-900); }

/* The Urdu wordmark stands in for .logo-text on Urdu pages. Traced outlines,
   so it takes a colour and not a font-size; currentColor picks up the green. */
.logo-wordmark { display: block; height: 22px; width: auto; color: var(--green-900); flex: none; }

.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { color: var(--ink-soft); font-size: .93rem; font-weight: 500; }
.site-nav a:hover { color: var(--green-600); text-decoration: none; }
.site-nav a.btn { color: #fff; }

.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .75rem 0 1rem;
    border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: .5rem 0; width: 100%; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

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

.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--green-500); }

/* On the dark hero and CTA band, the ghost button needs light text to be readable. */
.hero .btn-ghost,
.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--gold-soft); }

.btn-sm  { padding: .45rem .95rem; font-size: .85rem; }
.btn-lg  { padding: .9rem 1.9rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------------- Hero ---------------- */

.hero {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero-eyebrow {
  color: var(--gold);
  font-size: .88rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 2rem; }

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: .8rem; }
.card-icon { font-size: 2rem; margin-bottom: .6rem; }
.card-link { color: var(--green-600); font-weight: 600; font-size: .9rem; }

.tag {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--amber);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 99px;
  margin-bottom: .6rem;
}

/* ---------------- Steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step { text-align: center; padding: 1rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .8rem;
}
.step p { color: var(--ink-soft); font-size: .94rem; }

/* ---------------- CTA ---------------- */

.cta-band {
  background: var(--green-900);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 1.5rem; }

.cta-inline {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 2.5rem 0;
}
.cta-inline h3 { margin-top: 0; }
.cta-inline p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------------- Forms ---------------- */

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.form-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-600);
  padding-bottom: .5rem;
  margin: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.form-section-title:first-of-type { margin-top: 0; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 147, 110, .14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .has-error { border-color: var(--red); background: var(--red-soft); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.field-narrow { max-width: 160px; }
.field-row .field-narrow { max-width: none; }

/* The label is a flex row of exactly two children: the box, and one span
   holding the whole sentence. The markup must keep that span - a bare run of
   text with a link in it turns every fragment into its own flex item, and the
   sentence breaks into columns. */
.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 400;
  font-size: .93rem;
  line-height: 1.5;
}
.checkbox-field label > span { flex: 1; }
.checkbox-field input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green-600);
}

/* Honeypot - hidden from people, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------------- Alerts ---------------- */

.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin: 1.25rem 0;
  font-size: .94rem;
}
.alert-error,
.alert-danger  { background: var(--red-soft);   border-color: #f3c7c3; color: var(--red); }
.alert-success { background: #e7f6ef;           border-color: #b6e3cd; color: var(--green-700); }
.alert-warning { background: var(--amber-soft); border-color: #f0dca8; color: var(--amber); }
.alert-info    { background: var(--blue-soft);  border-color: #c3dcf2; color: var(--blue); }

/* ---------------- Success page ---------------- */

.success-card { text-align: center; padding: 1rem 0; }
.success-card .hero-actions { margin-top: 2rem; }

.success-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e7f6ef;
  color: var(--green-600);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.request-id-box {
  background: var(--gold-soft);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.request-id-label {
  display: block;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .4rem;
}
.request-id {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--green-900);
  margin-bottom: .8rem;
  word-break: break-all;
}

.next-steps { text-align: left; max-width: 480px; margin: 0 auto 1.5rem; padding-left: 1.2rem; }
.next-steps li { margin-bottom: .6rem; color: var(--ink-soft); }

/* ---------------- Content pages ---------------- */

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  line-height: 2.4;
  text-align: right;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.urdu-text {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.2rem;
  line-height: 2.6;
  text-align: right;
  margin-bottom: 1.5rem;
}

.transliteration { font-style: italic; color: var(--ink-soft); }

/* ---------------- Breadcrumb ---------------- */

.breadcrumb { padding: 1rem 0 0; font-size: .87rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--ink); font-weight: 500; }

/* ---------------- Empty state ---------------- */

.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4rem) 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}
.empty-icon { font-size: 2.8rem; margin-bottom: .75rem; }
.empty-state p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 1.5rem; }

/* ---------------- Pagination ---------------- */

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a {
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: .9rem;
}
.pagination a:hover { border-color: var(--green-500); text-decoration: none; }
.pagination a.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.contact-card h3 { margin-bottom: .3rem; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .8);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: rgba(255, 255, 255, .6); font-size: .9rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .87rem; color: rgba(255, 255, 255, .6); }

/* ---- Social profiles, in the footer ---- */

.footer-follow {
  margin: 1.4rem 0 .55rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.social-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }

.social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-link:hover {
  background: var(--gold);
  color: var(--green-900);
  text-decoration: none;
  transform: translateY(-2px);
}
.social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.social-icon { display: block; }

/* ---- Share row, at the foot of an article ---- */

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.share-label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--green-900);
}

.share-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }

.share-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
  text-decoration: none;
}
.share-btn:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

/* The one piece of feedback the copy button has, since nothing visible
   happens on the page when the clipboard is written. */
.share-btn.is-copied {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

@media (max-width: 520px) {
  .share-row { gap: .5rem; padding: .85rem; }
  .share-label { width: 100%; }
}


/* Attached image on a content page */
.content-image {
  display: block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============================================================
   Client portal
   ============================================================ */

.portal-intro { text-align: center; margin-bottom: 1.5rem; }

.portal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin-bottom: 1.75rem;
}
.portal-bar-who { display: flex; align-items: center; gap: .7rem; }
.portal-bar-who strong { display: block; font-size: .95rem; }
.portal-bar-who small { font-size: .8rem; }

.portal-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.portal-bar-actions { display: flex; align-items: center; gap: 1rem; font-size: .88rem; }
.inline-form { display: inline; }
.link-plain {
  background: none; border: none; padding: 0;
  color: var(--green-600);
  font-family: inherit; font-size: .88rem;
  cursor: pointer; text-decoration: underline;
}
.link-plain:hover { color: var(--green-700); }

.portal-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 2rem;
}
.portal-stats div {
  flex: 1;
  min-width: 130px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .87rem;
  color: var(--muted);
}
.portal-stats span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
}

/* ---------------- Request cards ---------------- */

.portal-list { display: flex; flex-direction: column; gap: 1rem; }

.portal-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.portal-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.portal-card-problem { color: var(--ink-soft); font-size: .94rem; margin-bottom: .75rem; }
.portal-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .85rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}
.guidance-pill { color: var(--green-600); font-weight: 600; }

.portal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.portal-head h1 { margin-bottom: 0; }

.back-link { display: inline-block; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }

.portal-problem {
  background: var(--bg-soft);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------------- Guidance ---------------- */

.guidance-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.guidance-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.guidance-head h3 { margin: 0; }
.guidance-head .muted { font-size: .85rem; white-space: nowrap; }
.guidance-body { line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

.guidance-files { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.guidance-files h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .6rem;
}

.file-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin-bottom: .5rem;
  color: inherit;
}
.file-row:hover { border-color: var(--green-500); background: var(--bg-soft); text-decoration: none; }
.file-row-icon { font-size: 1.4rem; flex-shrink: 0; }
.file-row-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-row-meta strong { font-size: .92rem; }
.file-row-meta small { font-size: .8rem; }
.file-row-action { color: var(--green-600); font-weight: 600; font-size: .85rem; flex-shrink: 0; }

/* ---------------- Waiting state ---------------- */

.waiting-box {
  text-align: center;
  background: var(--gold-soft);
  border: 1px solid #e8dcae;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
}
.waiting-icon { font-size: 2.4rem; margin-bottom: .5rem; }
.waiting-box h3 { margin-bottom: .5rem; }
.waiting-box p { color: var(--ink-soft); max-width: 420px; margin: 0 auto .6rem; font-size: .95rem; }

.portal-help {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.portal-help h2 { font-size: 1.1rem; margin-top: 0; }
.portal-help p { font-size: .92rem; color: var(--ink-soft); }

/* Status badges on the public side */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-new           { background: var(--blue-soft);  color: var(--blue); }
.badge-in-progress   { background: var(--amber-soft); color: var(--amber); }
.badge-reply-pending { background: #fdecea;           color: var(--red); }
.badge-completed     { background: #d9f2ef;           color: #0f766e; }
.badge-closed        { background: #eceeed;           color: var(--muted); }

/* ============================================================
   Phase 5 - bilingual, RTL, search, FAQ
   ============================================================ */

/* ---------------- Right-to-left ---------------- */

[dir="rtl"] body,
html[dir="rtl"] {
  font-family: 'Noto Nastaliq Urdu', 'Inter', system-ui, sans-serif;
}

/* Nastaliq needs far more line height than Latin text. */
html[lang="ur"] body { line-height: 2.1; }
html[lang="ur"] h1   { line-height: 1.7; }
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4   { line-height: 1.8; }
html[lang="ur"] .btn { line-height: 1.9; }

/* Flip the things whose direction is baked into the layout. */
[dir="rtl"] .breadcrumb li + li::before { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .cta-inline { border-left: 1px solid var(--line); border-right: 4px solid var(--gold); }
[dir="rtl"] .portal-problem { border-left: 0; border-right: 3px solid var(--line);
                              border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .guidance-card { border-left: 1px solid var(--line); border-right: 4px solid var(--green-600); }
[dir="rtl"] .next-steps,
[dir="rtl"] .faq-list { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .card-link,
[dir="rtl"] .back-link { display: inline-block; }

/* Arabic and transliteration keep their own direction inside an RTL page. */
[dir="rtl"] .transliteration { text-align: left; }

/* ---------------- Language switcher ---------------- */

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a {
  padding: .3rem .7rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
}
.lang-switch a:hover { background: var(--bg-soft); color: var(--green-700); text-decoration: none; }
.lang-switch a.active { background: var(--green-600); color: #fff; }
.lang-switch a[lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; }

@media (max-width: 900px) {
  .lang-switch { align-self: flex-start; margin: .35rem 0; }
}

/* ---------------- Search ---------------- */

.search-form {
  display: flex;
  gap: .6rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.search-form input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 147, 110, .14);
}

.result-line { color: var(--muted); font-size: .93rem; margin-bottom: 1.25rem; }

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

/* ---------------- FAQ ---------------- */

.faq-list { display: flex; flex-direction: column; gap: .6rem; }

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.faq summary {
  padding: .9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--green-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--bg-soft); }
.faq-answer {
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------------- Article extras ---------------- */

.article-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.article-meta .tag { margin-bottom: 0; }
.article-meta .muted { font-size: .85rem; }

.reference-line {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .9rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* Uppercase and letter-spacing are Latin devices - they break the cursive
   joining that Arabic and Urdu script depend on, so drop them there. */
[dir="rtl"] .tag,
.tag:lang(ur),
.tag:lang(ar) {
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Noto Nastaliq Urdu', 'Amiri', serif;
  font-size: .8rem;
  line-height: 1.9;
}
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .request-id-label,
[dir="rtl"] .guidance-files h4,
[dir="rtl"] .form-section-title {
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   Homepage - single prominent call to action, five services
   ============================================================ */

/* Gold on the deep green hero, so the one thing we want pressed
   is the brightest thing on the page. */
.btn-gold {
  background: var(--gold);
  color: var(--green-900);
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(201, 162, 39, .32);
}
.btn-gold:hover {
  background: #d8b23a;
  border-color: #d8b23a;
  color: var(--green-900);
  box-shadow: 0 8px 26px rgba(201, 162, 39, .42);
}

.btn-xl {
  padding: 1.05rem 2.6rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

.hero-note {
  margin: 1.1rem 0 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .72);
}

/* Five cards: three across on desktop, then two. */
.service-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.service-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  /* The glyph is stroked in currentColor - deep green on the cream tile. */
  color: var(--green-900);
  margin-bottom: .9rem;
}
.service-card:hover .card-icon { background: #efe3bb; }

@media (max-width: 420px) {
  .btn-xl { padding: .9rem 1.5rem; font-size: 1rem; width: 100%; }
}

/* Cards in a row share a height, so the closing link should sit on the same
   line in each one rather than floating wherever the text happens to end. */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card p { flex: 1; }
.service-card .card-link { margin-top: auto; }

/* ---- Mobile number with the dialling code attached ---- */
/* The code is not typed: it follows whichever country is chosen above. */
.phone-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.phone-group:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 147, 110, .14);
}
.phone-group .phone-code {
  display: flex;
  align-items: center;
  padding: .7rem .8rem;
  border-inline-end: 1px solid var(--line);
  background: var(--bg-soft, #f4f6f5);
  font-size: .97rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.field .phone-group input[type="tel"] {
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.field .phone-group input[type="tel"]:focus { box-shadow: none; }
.phone-group.has-error { border-color: var(--red); background: var(--red-soft); }

/* ============================================================
   Basirat - article library
   ============================================================ */

.toc {
  margin: 1.8rem 0 2.2rem;
  padding: 1rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc-title {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 0; padding-inline-start: 1.15rem; }
.toc li { margin: .28rem 0; font-size: .95rem; }
.toc a { color: var(--green-700); }

.article-body { font-size: 1.03rem; }
.article-body h2 {
  margin-top: 2.1em;
  scroll-margin-top: 1.5rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
}
.article-body h3 { margin-top: 1.6em; color: var(--green-700); }
.article-body ul,
.article-body ol { padding-inline-start: 1.3rem; }
.article-body li { margin: .4rem 0; }
.article-body blockquote {
  margin: 1.4rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-inline-start: 3px solid var(--gold);
  color: var(--ink-soft);
  font-style: italic;
}
.article-body blockquote p { margin: 0; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }

.checked-note {
  margin-top: 1.6rem;
  padding: .75rem 1rem;
  background: var(--gold-soft);
  border-radius: var(--radius);
  font-size: .87rem;
  color: var(--amber);
}

/* Diagrams inside an article */
.article-figure {
  margin: 1.9rem 0;
  padding: 0;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.article-figure figcaption {
  margin-top: .6rem;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}
