/* ==========================================================================
   Dubai Sports Council — DataFlow portal theme
   Matches the dubaisc.ae look: Government of Dubai + Dubai Sports header,
   soft-blue hero band, deep-indigo primary, teal accent, rounded cards.
   ========================================================================== */
:root {
  /* Dubai Sports brand palette (per brand guidelines): teal-green #51b499, dark grey #353535, white */
  --dsc-primary: #51b499;      /* Dubai Sports teal-green — buttons, accents, active nav */
  --dsc-primary-600: #3f9e85;  /* darker teal for hover */
  --dsc-teal: #51b499;
  --dsc-hero-a: #e6f3ee;       /* soft teal band top */
  --dsc-hero-b: #d0e9df;       /* soft teal band bottom */
  --dsc-ink: #353535;          /* brand dark grey — headings */
  --dsc-body: #4a4a4a;         /* body text */
  --dsc-muted: #7c8481;
  --dsc-line: #e6e8ee;
  --dsc-bg-soft: #f5f7f6;
  --dsc-chip-bg: #dff0ea;
  --dsc-chip-tx: #2f8f75;
}

* { box-sizing: border-box; }

html { font-size: 16px; position: relative; min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Dubai-Regular', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--dsc-body);
  background: #fff;
}

a { color: var(--dsc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { color: var(--dsc-ink); font-family: 'Dubai-Bold', 'Segoe UI', Tahoma, Arial, sans-serif; font-weight: 700; }

/* ---------- Language switch (sits in the nav row, opposite the Home link) ---------- */
.dsc-nav-lang {
  color: var(--dsc-ink); font-weight: 700; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px;
}
.dsc-nav-lang:hover { background: var(--dsc-bg-soft); color: var(--dsc-ink); text-decoration: none; }

/* ---------- Top brand bar ---------- */
.dsc-topbar { background: #fff; border-bottom: 1px solid var(--dsc-line); }
.dsc-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  /* Keep the crest on the left and DSC logo on the right in both English and
     Arabic — the logos have fixed physical positions, they don't mirror. */
  direction: ltr;
}
.dsc-gov, .dsc-sports { display: flex; align-items: center; gap: 12px; }
/* Logos link out to the official sites — keep them flush (no inline baseline gap). */
.dsc-gov > a, .dsc-sports > a { display: inline-flex; align-items: center; }
/* Different heights on purpose: the Government crest is compact, the DSC wordmark
   is a wide horizontal logo — matching height makes DSC dominate, so we size them
   independently to look visually balanced. */
.dsc-logo-gov { height: 66px; width: auto; }
.dsc-logo-dsc { height: 40px; width: auto; }

.dsc-gov-text { display: flex; flex-direction: column; line-height: 1.15; }
.dsc-gov-ar { font-size: 17px; font-weight: 700; color: #111; }
.dsc-gov-en { font-size: 11px; letter-spacing: .14em; color: #111; font-weight: 600; }

.dsc-sports-text {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1; color: var(--dsc-teal); font-weight: 800; font-size: 24px;
}
.dsc-sports-text small { font-size: 10px; letter-spacing: .3em; font-weight: 600; margin-top: 3px; }

/* ---------- Nav (Home only) ---------- */
.dsc-nav { background: #fff; border-bottom: 1px solid var(--dsc-line); }
.dsc-nav-inner { display: flex; align-items: center; min-height: 58px; }
.dsc-nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.dsc-nav-links a {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  color: var(--dsc-ink); font-weight: 600; font-size: .95rem;
}
.dsc-nav-links a:hover { background: var(--dsc-bg-soft); text-decoration: none; }
.dsc-nav-links a.active { background: var(--dsc-primary); color: #fff; }
/* Right-hand nav group (language + auth). Logical margin so it moves to the
   opposite end of the Home link automatically in both LTR and RTL. */
.dsc-nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.dsc-nav-user { color: var(--dsc-ink); font-weight: 600; font-size: .9rem; }
.dsc-logout-form { margin: 0; }
.dsc-logout-btn {
  border: 1px solid var(--dsc-primary); background: #fff; color: var(--dsc-primary);
  padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.dsc-logout-btn:hover { background: var(--dsc-primary); color: #fff; }

/* ---------- Hero band ---------- */
.dsc-hero {
  background: linear-gradient(180deg, var(--dsc-hero-a) 0%, var(--dsc-hero-b) 100%);
}
.dsc-hero-inner { padding: 36px 0 44px; }
.dsc-breadcrumb { font-size: .85rem; color: #4a4a4a; font-weight: 600; margin-bottom: 12px; }
.dsc-breadcrumb a { color: #4a4a4a; }
.dsc-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.dsc-hero h1 { font-size: 2.4rem; font-weight: 800; margin: 0; color: var(--dsc-ink); }

/* ---------- Main ---------- */
.dsc-main { padding: 0 0 48px; flex: 1 0 auto; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--dsc-line); border-radius: 14px;
  box-shadow: 0 6px 20px rgba(20, 25, 60, .06); overflow: hidden;
}
.card .card-header {
  background: #fff; border-bottom: 1px solid var(--dsc-line);
  font-weight: 700; color: var(--dsc-ink);
}
.card .card-title { color: var(--dsc-ink); }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1.15rem; }
.btn-primary { background: var(--dsc-primary); border-color: var(--dsc-primary); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--dsc-primary-600) !important; border-color: var(--dsc-primary-600) !important;
}
.btn-outline-primary { color: var(--dsc-primary); border-color: var(--dsc-primary); }
.btn-outline-primary:hover { background: var(--dsc-primary); border-color: var(--dsc-primary); color: #fff; }
.btn-success { background: var(--dsc-teal); border-color: var(--dsc-teal); }
.btn-success:hover { background: #018a80; border-color: #018a80; }

/* ---------- Badges / chips ---------- */
.badge { border-radius: 999px; padding: .45em .9em; font-weight: 600; }
.badge.bg-primary { background: var(--dsc-primary) !important; }
.badge.bg-success { background: var(--dsc-teal) !important; }
.dsc-chip {
  display: inline-block; padding: .35em .85em; border-radius: 999px;
  background: var(--dsc-chip-bg); color: var(--dsc-chip-tx);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 10px; border-color: #d7dae3; padding: .6rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--dsc-primary); box-shadow: 0 0 0 .2rem rgba(38, 42, 117, .12);
}
label, .form-label { font-weight: 600; color: var(--dsc-ink); }

/* ---------- Tables ---------- */
.table > thead th {
  background: var(--dsc-bg-soft); color: var(--dsc-ink);
  font-weight: 700; border-bottom: 2px solid var(--dsc-line);
}

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; border: none; }

/* ---------- Footer (brand dark grey) ---------- */
.dsc-footer { background: var(--dsc-ink); color: #c9c9c9; padding: 22px 0; margin-top: auto; }
.dsc-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dsc-footer a { color: #fff; }
.dsc-footer a:hover { color: var(--dsc-primary); }

/* ---------- Standalone login page ---------- */
.dsc-login-body {
  min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: 'Dubai', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #f3f7f6 0%, #e2f1eb 55%, #d3ece2 100%);
}
.dsc-login-card {
  position: relative;
  width: 100%; max-width: 400px; background: #fff; border-radius: 18px;
  box-shadow: 0 16px 48px rgba(53, 53, 53, .14);
  padding: 42px 36px 38px; text-align: center;
}
.dsc-login-lang {
  position: absolute; top: 14px; right: 18px;
  font-size: .82rem; font-weight: 700; color: var(--dsc-primary);
}
html[dir="rtl"] .dsc-login-lang { right: auto; left: 18px; }
.dsc-login-logo { height: 44px; width: auto; margin-bottom: 28px; }
.dsc-login-title { font-size: 1.55rem; font-weight: 800; color: var(--dsc-ink); margin: 0 0 4px; }
.dsc-login-sub { color: var(--dsc-muted); font-size: .9rem; margin: 0 0 26px; }
.dsc-login-card .form-label { text-align: left; display: block; margin-bottom: 6px; }
.dsc-login-field { text-align: left; margin-bottom: 18px; }
.dsc-login-btn { margin-top: 6px; padding: .72rem; font-size: 1rem; color: #fff; }
.dsc-login-error {
  background: #fdecea; color: #b02a37; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 20px; font-size: .9rem; text-align: left;
}
.dsc-field-error { color: #b02a37; font-size: .82rem; }
.dsc-login-foot { margin-top: 24px; font-size: .78rem; color: var(--dsc-muted); }

/* ---------- Apply page (centered, modern form) ---------- */
.dsc-apply-wrap { max-width: 660px; margin: 0 auto; }

/* Card */
.dsc-apply-card {
  background: #fff; border: 1px solid var(--dsc-line); border-radius: 18px;
  box-shadow: 0 16px 44px rgba(53, 53, 53, .09); overflow: hidden;
}
.dsc-apply-head {
  padding: 26px 32px 22px; border-bottom: 1px solid var(--dsc-line);
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--dsc-bg-soft) 100%);
}
.dsc-apply-icon {
  flex: none; width: 50px; height: 50px; border-radius: 13px;
  background: var(--dsc-chip-bg); color: var(--dsc-primary);
  display: flex; align-items: center; justify-content: center;
}
.dsc-apply-head h2 { margin: 0; font-size: 1.35rem; }
.dsc-apply-head p { margin: 3px 0 0; font-size: .88rem; color: var(--dsc-muted); }
.dsc-apply-body { padding: 26px 32px 30px; }

.dsc-field-label { font-weight: 600; color: var(--dsc-ink); margin-bottom: 6px; display: block; font-size: .9rem; }
.dsc-hint { font-size: .82rem; color: var(--dsc-muted); margin-top: 5px; }

/* Segmented control (Fresh / Renewal) */
.dsc-segment { display: flex; gap: 12px; }
.dsc-seg-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.dsc-seg-label {
  flex: 1; margin: 0; cursor: pointer; text-align: center;
  padding: 13px 14px; border: 1.5px solid var(--dsc-line); border-radius: 12px;
  font-weight: 700; color: var(--dsc-body); transition: border-color .15s, background .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 2px;
}
.dsc-seg-label:hover { border-color: var(--dsc-primary); }
.dsc-seg-input:checked + .dsc-seg-label {
  border-color: var(--dsc-primary); background: var(--dsc-chip-bg); color: var(--dsc-ink);
  box-shadow: 0 0 0 3px rgba(81, 180, 153, .15);
}
.dsc-seg-input:focus-visible + .dsc-seg-label { outline: 2px solid var(--dsc-primary); outline-offset: 2px; }
.dsc-seg-sub { font-size: .74rem; font-weight: 500; color: var(--dsc-muted); }
.dsc-seg-input:checked + .dsc-seg-label .dsc-seg-sub { color: var(--dsc-chip-tx); }

/* Terms & Conditions (read + accept) */
.dsc-terms {
  max-height: 150px; overflow-y: auto; border: 1px solid var(--dsc-line); border-radius: 12px;
  padding: 14px 16px; background: var(--dsc-bg-soft); font-size: .85rem; color: var(--dsc-body);
  margin-bottom: 12px;
}
.dsc-terms p { margin: 0 0 10px; }
.dsc-terms p:last-child { margin-bottom: 0; }
/* reCAPTCHA Enterprise: Google's floating badge is replaced by the in-form notice below the button. */
.grecaptcha-badge { visibility: hidden !important; }
.dsc-recaptcha-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: .9rem; }
.dsc-recaptcha-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--mu-muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.dsc-recaptcha-note svg { flex: none; margin-top: 2px; color: var(--dsc-primary); }
.dsc-recaptcha-note a { color: var(--dsc-primary); text-decoration: underline; }
.dsc-accept { display: flex; align-items: center; gap: 9px; }
.dsc-accept .form-check-input { margin: 0; width: 18px; height: 18px; flex: none; cursor: pointer; }
.dsc-accept .form-check-input:checked { background-color: var(--dsc-primary); border-color: var(--dsc-primary); }
.dsc-accept label { font-weight: 600; color: var(--dsc-ink); cursor: pointer; margin: 0; }

/* Redirect loader overlay */
.dsc-loader-overlay {
  position: fixed; inset: 0; z-index: 1080;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(2px); padding: 24px; text-align: center;
}
.dsc-loader-overlay.show { display: flex; }
.dsc-spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 5px solid var(--dsc-chip-bg); border-top-color: var(--dsc-primary);
  animation: dsc-spin .8s linear infinite;
}
@keyframes dsc-spin { to { transform: rotate(360deg); } }
.dsc-loader-text { font-family: 'Dubai-Bold', 'Segoe UI', Tahoma, Arial, sans-serif; font-weight: 700; color: var(--dsc-ink); font-size: 1.1rem; }
.dsc-loader-sub { color: var(--dsc-muted); font-size: .88rem; margin-top: -6px; }

/* Submit */
.dsc-apply-submit {
  width: 100%; padding: .8rem; font-size: 1.02rem; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.dsc-apply-submit .arw { transition: transform .15s; }
.dsc-apply-submit:hover .arw { transform: translateX(3px); }
html[dir="rtl"] .dsc-apply-submit .arw { transform: scaleX(-1); }
html[dir="rtl"] .dsc-apply-submit:hover .arw { transform: scaleX(-1) translateX(3px); }

@media (max-width: 576px) {
  .dsc-apply-head, .dsc-apply-body { padding-left: 20px; padding-right: 20px; }
  .dsc-apply-head { gap: 12px; }
  .dsc-segment { flex-direction: column; }
}

/* ==========================================================================
   Home landing page — "Mu'Ahal" design (pixel-match scaffold of vendor Figma)
   Full-bleed bands break out of the .container; body clips horizontal overflow.
   Image slots reference /images/home/*; colour fallbacks show until the
   vendor's files are dropped in. Colours/fonts are approximations to be
   confirmed against the vendor's exact values/assets.
   ========================================================================== */
:root {
  --mu-teal: #2bb29b;         /* Mu'Ahal teal-green — eyebrow, buttons, hero shape */
  --mu-teal-600: #229a86;     /* darker teal for hover */
  --mu-indigo: #2b2a80;       /* video play + Submit button navy-indigo */
  --mu-faq-blue: #8fb2de;     /* FAQ banner */
  --mu-ink: #14181a;          /* near-black headings */
  --mu-body: #5b6167;         /* grey body text */
  --mu-muted: #9aa0a6;
  --mu-red: #d0021b;          /* "mandatory from" */
  --mu-hero-a: #e6f3ee;
}

body { overflow-x: hidden; }
html { scroll-behavior: smooth; }        /* smooth scroll for the hero CTA → #apply-form */
#apply-form { scroll-margin-top: 12px; }

/* Staff toolbar + mock banner (contained, above the hero) */
.home-staffbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.home-mock { margin-bottom: 18px; }

/* Full-width band + section rhythm */
.mu-band { width: 100vw; margin-inline-start: calc(50% - 50vw); }
.mu-band-soft { background: var(--mu-hero-a); }
.mu-section { padding: 88px 0; }
.mu-narrow { max-width: 900px; }
.mu-center { text-align: center; max-width: 840px; margin: 0 auto 40px; }
.mu-sub { color: var(--mu-body); font-size: 1.02rem; margin: 8px 0 0; }

/* Eyebrow labels */
.mu-eyebrow {
  display: inline-block; color: var(--mu-teal); font-weight: 700;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px;
  font-family: 'Dubai-Bold', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.mu-eyebrow-lg {
  display: block; font-size: 3.2rem; line-height: 1; letter-spacing: .01em;
  font-weight: 800; margin-bottom: 16px; text-transform: none;
}
.mu-h2 { font-size: 2.4rem; font-weight: 700; color: var(--mu-ink); margin: 0; }

/* Buttons */
.mu-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  border-radius: 12px; font-weight: 700; padding: .85rem 1.7rem; font-size: 1.02rem;
  font-family: 'Dubai-Bold', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.mu-btn-teal { background: var(--mu-teal); color: #fff; }
.mu-btn-teal:hover { background: var(--mu-teal-600); color: #fff; text-decoration: none; }
.mu-btn-indigo { background: var(--mu-indigo); color: #fff; }
.mu-btn-indigo:hover { background: #22215f; color: #fff; text-decoration: none; }
.mu-arw { display: inline-block; transition: transform .15s; }
.mu-btn:hover .mu-arw { transform: translateX(3px); }
html[dir="rtl"] .mu-arw { transform: scaleX(-1); }
html[dir="rtl"] .mu-btn:hover .mu-arw { transform: scaleX(-1) translateX(3px); }

/* ---------- HERO ---------- */
.mu-hero {
  position: relative; overflow: hidden;
  background-color: var(--mu-hero-a);
}

/* Text on the inline-start side; the hero photo fills the inline-end ~58% of
   the band at full height and fades into the mint background behind the copy. */
.mu-hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: 520px; padding: 64px 0;
}
.mu-hero-text { flex: 1 1 auto; max-width: 680px; position: relative; z-index: 2; }
@media (min-width: 768px) { .mu-nowrap { white-space: nowrap; } }
.mu-hero-title { font-size: clamp(2rem, 3.4vw, 3.05rem); line-height: 1.1; font-weight: 800; color: var(--mu-ink); margin: 0 0 22px; }
.mu-hero-lead { font-size: 1.32rem; font-weight: 600; color: var(--mu-ink); margin: 0 0 16px; }
.mu-hero-sub { font-size: 1rem; color: var(--mu-body); line-height: 1.65; max-width: 560px; margin: 0 0 16px; }
.mu-hero-sub:last-of-type { margin-bottom: 30px; }

.mu-hero-photo {
  position: absolute; z-index: 1; top: 0; bottom: 0; inset-inline-end: 0;
  width: 56%;
}
.mu-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Soft fade from the band colour into the photo on the side facing the copy. */
.mu-hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--mu-hero-a) 0%, rgba(230,243,238,.85) 12%, rgba(230,243,238,0) 42%);
}
html[dir="rtl"] .mu-hero-photo::before {
  background: linear-gradient(to left, var(--mu-hero-a) 0%, rgba(230,243,238,.85) 12%, rgba(230,243,238,0) 42%);
}

/* ---------- WATCH / video ---------- */
.mu-watch-head { text-align: center; margin-bottom: 30px; }
.mu-watch-head .mu-h2 { font-size: 2.1rem; }
.mu-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: #0a0a0b;
  overflow: hidden; box-shadow: 0 22px 60px rgba(10,10,12,.30);
  /* centered, capped width */
  max-width: 960px; margin-inline: auto;
}
.mu-video-el { width: 100%; height: 100%; object-fit: cover; display: block; background: #0a0a0b; }
/* Suppress the browser's native centre play-overlay so only our custom button shows. */
.mu-video-el::-webkit-media-controls-overlay-play-button { display: none; }
.mu-video-el::-webkit-media-controls-start-playback-button { display: none; }

/* Professional centre play button over the poster; hidden while playing. */
.mu-video-play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 88px; height: 88px; border: none; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(43, 178, 155, .95); color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 10px rgba(255,255,255,.18);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.mu-video-play-btn svg { width: 40px; height: 40px; fill: currentColor; margin-inline-start: 4px; }
.mu-video-play-btn:hover { transform: scale(1.07); background: var(--mu-teal); box-shadow: 0 14px 38px rgba(0,0,0,.45), 0 0 0 14px rgba(255,255,255,.22); }
.mu-video-play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mu-video.is-playing .mu-video-play-btn { opacity: 0; visibility: hidden; }

/* ---------- WHY ---------- */
.mu-why p { text-align: start; color: var(--mu-body); line-height: 1.9; max-width: 820px; margin: 0 auto 22px; }

/* ---------- ELIGIBILITY ---------- */
.mu-elig-cards { margin: 8px 0 30px; }
.mu-elig-card { text-align: start; padding: 10px 12px; }
.mu-elig-card h3 { font-size: 1.35rem; margin: 0 0 10px; color: var(--mu-ink); }
.mu-elig-card p { color: var(--mu-body); margin: 0; }
.mu-elig-note { margin-bottom: 30px; }
.mu-elig-note p { text-align: start; color: var(--mu-body); line-height: 1.8; margin: 0 auto 8px; max-width: 900px; }

/* ---------- PROCESS ---------- */
.mu-steps .mu-step h3 { font-size: 1.2rem; margin: 0 0 12px; color: var(--mu-ink); }
.mu-steps .mu-step p { color: var(--mu-body); line-height: 1.75; margin: 0; }

/* ---------- FAQ ---------- */
.mu-faq-banner { background: var(--mu-faq-blue); border-radius: 16px; padding: 44px 48px; margin-bottom: 30px; }
.mu-faq-banner h2 { color: #fff; font-size: 2.5rem; font-weight: 700; margin: 0; }
.mu-faq .accordion-item { border: 1px solid var(--dsc-line); border-radius: 12px !important; margin-bottom: 14px; overflow: hidden; }
.mu-faq .accordion-button { font-weight: 700; color: var(--mu-ink); font-family: 'Dubai-Bold', 'Segoe UI', Tahoma, Arial, sans-serif; }
.mu-faq .accordion-button:not(.collapsed) { background: #eef6f3; color: var(--mu-ink); box-shadow: none; }
.mu-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(43,178,155,.18); }
.mu-faq .accordion-body { color: var(--mu-body); line-height: 1.7; }
/* RTL: we ship the LTR Bootstrap, whose chevron uses margin-left:auto and stays
   stuck next to the text. Push it to the far (left) end so it mirrors the EN side. */
html[dir="rtl"] .mu-faq .accordion-button { text-align: right; }
html[dir="rtl"] .mu-faq .accordion-button::after { margin-left: 0; margin-right: auto; }

/* ---------- APPLY ---------- */
.mu-mandatory { color: var(--mu-red); font-weight: 700; letter-spacing: .1em; font-size: .85rem; margin: 14px 0 0; }
.mu-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; max-width: 900px; margin: 24px auto 34px; }
.mu-field label { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mu-ink); font-weight: 700; margin-bottom: 10px; }
.mu-field input { width: 100%; border: none; border-bottom: 1px solid #cfd3d8; padding: 8px 2px; font-size: 1rem; background: transparent; color: var(--mu-ink); }
.mu-field input:focus { outline: none; border-bottom-color: var(--mu-teal); }
.mu-apply-actions { margin-bottom: 6px; }
.mu-apply-fine { text-align: center; color: var(--mu-muted); font-size: .85rem; margin-top: 18px; }

/* ---------- Home responsive ---------- */
@media (max-width: 992px) {
  /* Stack: text first, then the overlapping group centered below it. */
  .mu-hero-inner { flex-direction: column; align-items: stretch; min-height: 0; gap: 0; padding: 56px 0 32px; }
  .mu-hero-text { max-width: none; }
  .mu-hero-photo { position: relative; top: auto; bottom: auto; width: 100%; aspect-ratio: 1605 / 980; }
  .mu-hero-photo::before, html[dir="rtl"] .mu-hero-photo::before { background: linear-gradient(to bottom, var(--mu-hero-a) 0%, rgba(230,243,238,0) 22%); }
  .mu-video { max-width: none; }
  .mu-apply-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 576px) {
  .mu-section { padding: 56px 0; }
  .mu-eyebrow-lg { font-size: 2.3rem; }
  .mu-hero-title { font-size: 2.1rem; }
  .mu-hero-lead { font-size: 1.12rem; }
  .mu-h2 { font-size: 1.8rem; }
  .mu-faq-banner { padding: 28px 24px; }
  .mu-faq-banner h2 { font-size: 1.7rem; }

  /* Header: the topbar row zeroes its side padding, so on a full-width phone the
     logos/nav sit flush to the edges — give them breathing room. */
  .dsc-topbar-inner, .dsc-nav-inner { padding-left: 16px; padding-right: 16px; }

  /* Centre the hero copy + its CTA on a phone. */
  .mu-hero-text { text-align: center; }
  .mu-hero-lead, .mu-hero-sub { margin-inline: auto; }

  /* Smaller intro-video play button on a phone. */
  .mu-video-play-btn { width: 56px; height: 56px; box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.18); }
  .mu-video-play-btn svg { width: 24px; height: 24px; }
}

/* ---------- Legal / policy pages (Privacy) ---------- */
.dsc-legal { max-width: 820px; margin: 0 auto; color: var(--dsc-body); line-height: 1.75; }
.dsc-legal h2 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--dsc-ink); }
.dsc-legal p { margin: 0 0 12px; }
.dsc-legal ul { margin: 0 0 12px; padding-inline-start: 1.3rem; }
.dsc-legal li { margin-bottom: 6px; }
.dsc-legal-updated { color: var(--dsc-muted); font-size: .9rem; }

/* ---------- Mu'Ahal display font (Montserrat, self-hosted, matches Figma) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/montserrat/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserrat/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserrat/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/montserrat/montserrat-800.woff2') format('woff2'); }
/* Latin headings use Montserrat; Arabic glyphs fall back to Dubai automatically. */
.mu-hero-title, .mu-eyebrow, .mu-eyebrow-lg, .mu-h2, .mu-btn,
.mu-faq-banner h2, .mu-elig-card h3, .mu-steps .mu-step h3,
.mu-faq .accordion-button, .mu-field label {
  font-family: 'Montserrat', 'Dubai-Bold', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ---------- Admin console: JSON output ---------- */
.dsc-json {
  background: #1e1e28; color: #e6e6ef; border-radius: 8px; padding: 12px 14px;
  font-size: .82rem; line-height: 1.45; max-height: 420px; overflow: auto;
  white-space: pre-wrap; word-break: break-word; direction: ltr; text-align: left; margin: 0;
}
.dsc-json summary { cursor: pointer; }

/* ---------- Two-factor (authenticator) setup ---------- */
.dsc-2fa-steps { padding-left: 1.1rem; }
.dsc-2fa-steps > li { margin-bottom: 22px; }
.dsc-qr {
  display: inline-block; padding: 12px; background: #fff;
  border: 1px solid var(--dsc-line); border-radius: 12px;
}
.dsc-qr img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.dsc-qr-key { font-size: .9rem; color: var(--dsc-body); }
.dsc-qr-key kbd {
  font-size: 1rem; background: var(--dsc-bg-soft); color: var(--dsc-ink);
  border: 1px solid var(--dsc-line); border-radius: 6px; padding: 4px 8px;
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] .dsc-login-field,
html[dir="rtl"] .dsc-login-card .form-label,
html[dir="rtl"] .dsc-login-error { text-align: right; }
html[dir="rtl"] .dsc-2fa-steps { padding-left: 0; padding-right: 1.1rem; }
html[dir="rtl"] .dsc-qr-key kbd { direction: ltr; unicode-bidi: embed; }

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .dsc-hero h1 { font-size: 1.8rem; }
  .dsc-logo-gov { height: 50px; }
  .dsc-logo-dsc { height: 30px; }
}
