/*
 * FatwaaOnline presentation layer
 * This file intentionally contains UI styles only. Database and PHP behavior
 * remain in the original page files.
 */

:root {
  --fo-font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Nafees", serif;
  --fo-font-arabic: "Amiri", "Noto Naskh Arabic", serif;
  --fo-font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fo-ink: #17241f;
  --fo-ink-soft: #53615b;
  --fo-emerald-950: #052d26;
  --fo-emerald-900: #073d32;
  --fo-emerald-800: #075344;
  --fo-emerald-700: #0b6956;
  --fo-emerald-100: #dcece6;
  --fo-emerald-50: #edf6f2;
  --fo-gold: #c79645;
  --fo-gold-dark: #9e6f25;
  --fo-gold-soft: #f5ead6;
  --fo-ivory: #f8f6f0;
  --fo-paper: #fffefa;
  --fo-line: #e4e4dc;
  --fo-danger: #8c3434;
  --fo-shadow-sm: 0 8px 24px rgba(12, 50, 41, .07);
  --fo-shadow-md: 0 18px 55px rgba(12, 50, 41, .11);
  --fo-shadow-lg: 0 28px 80px rgba(4, 38, 31, .18);
  --fo-radius-sm: 14px;
  --fo-radius: 22px;
  --fo-radius-lg: 32px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 150, 69, .08), transparent 25rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--fo-ivory) 100%);
  color: var(--fo-ink);
  font-family: var(--fo-font-urdu);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.urdu-font,
.fatwaa-title,
.question-list a,
.fatwa-text {
  font-family: var(--fo-font-urdu);
}

[lang="ar"],
.arabic-text,
.book-ref,
.detail-tags,
.meta-link,
.badge-soft {
  font-family: var(--fo-font-arabic);
}

::selection {
  background: var(--fo-gold-soft);
  color: var(--fo-emerald-950);
}

a,
button,
input,
select,
textarea {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 150, 69, .45) !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 18px;
  top: -80px;
  z-index: 10050;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: var(--fo-emerald-900);
  padding: 10px 18px;
  font-weight: 800;
}

.skip-link:focus { top: 0; }

.container { max-width: 1220px; }

.top-strip {
  position: relative;
  z-index: 1040;
  background: var(--fo-emerald-950);
  color: rgba(255, 255, 255, .78);
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: .01em;
}

.top-strip .container { align-items: center; }

.top-strip .trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-strip .trust-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76c9a7;
  box-shadow: 0 0 0 5px rgba(118, 201, 167, .12);
}

.navbar {
  min-height: 82px;
  background: rgba(255, 254, 250, .94);
  border-bottom: 1px solid rgba(7, 61, 50, .08);
  box-shadow: 0 10px 35px rgba(7, 61, 50, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 55px;
  max-width: 184px;
  object-fit: contain;
}

.navbar-nav { align-items: center; }

.nav-link {
  position: relative;
  border-radius: 10px;
  color: #34423c;
  padding: 9px 12px !important;
  font-size: 15px;
  font-weight: 700;
}

.nav-link::after {
  border: 0 !important;
}

.nav-link:hover,
.nav-link.active {
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-800);
}

.navbar-toggler {
  border: 1px solid var(--fo-line);
  border-radius: 12px;
  padding: 9px 11px;
  box-shadow: none !important;
}

.dropdown-menu {
  min-width: 220px;
  padding: 9px;
  background: var(--fo-paper);
  border: 1px solid var(--fo-line);
  border-radius: 16px;
  box-shadow: var(--fo-shadow-md);
}

.dropdown-item {
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--fo-ink);
  font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-800);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-inline-start: 10px;
  border-radius: 12px;
  background: var(--fo-emerald-800);
  color: #fff !important;
  padding: 9px 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(7, 83, 68, .18);
}

.nav-cta:hover {
  background: var(--fo-emerald-950);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 13% 20%, rgba(220, 182, 106, .25), transparent 20rem),
    radial-gradient(circle at 88% 80%, rgba(32, 118, 95, .55), transparent 26rem),
    linear-gradient(125deg, var(--fo-emerald-950), #075344 72%, #0a6754);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  inset-inline-end: -80px;
  top: -170px;
  box-shadow: 0 0 0 56px rgba(255,255,255,.025), 0 0 0 112px rgba(255,255,255,.018);
}

.hero::after {
  width: 220px;
  height: 220px;
  inset-inline-start: 6%;
  bottom: -145px;
  box-shadow: 0 0 0 46px rgba(199, 150, 69, .045);
}

.hero .container { z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  padding: 64px 0 82px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  padding: 7px 14px;
  color: #efe1c5;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fo-gold);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 13px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 800;
}

.hero-primary {
  background: var(--fo-gold);
  color: #1f2d27;
  box-shadow: 0 14px 32px rgba(0,0,0,.2);
}

.hero-primary:hover {
  background: #dbad5f;
  color: #15201b;
  transform: translateY(-2px);
}

.hero-secondary {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: #fff;
}

.hero-secondary:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.hero-trust-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--fo-radius-lg);
  background: rgba(255,255,255,.08);
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}

.hero-trust-card::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 4px;
  top: 0;
  inset-inline-start: 30px;
  border-radius: 0 0 10px 10px;
  background: var(--fo-gold);
}

.hero-trust-card .mini-title {
  color: #f1dfbd;
  font-weight: 800;
  font-size: 14px;
}

.trust-feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 22px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

.trust-feature strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.trust-feature-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(199,150,69,.16);
  color: #f0c577;
  font-size: 18px;
  font-weight: 900;
}

.search-box {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

.search-card {
  border: 1px solid rgba(7,61,50,.1);
  border-radius: var(--fo-radius);
  background: rgba(255,254,250,.98);
  box-shadow: var(--fo-shadow-lg);
  padding: 18px;
}

.search-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.search-intro-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-800);
  font-size: 20px;
  font-weight: 900;
}

.search-intro strong {
  display: block;
  color: var(--fo-emerald-950);
  line-height: 1.4;
}

.search-intro small { color: var(--fo-ink-soft); }

.form-control,
.form-select {
  min-height: 52px;
  border: 1px solid #d9ddd7;
  border-radius: 13px;
  background-color: #fff;
  color: var(--fo-ink);
  padding: 10px 15px;
  font-size: 16px;
}

.form-control::placeholder { color: #8b958f; }

.form-control:focus,
.form-select:focus {
  border-color: rgba(7,105,86,.65);
  box-shadow: 0 0 0 4px rgba(11,105,86,.1);
}

label.form-label {
  margin-bottom: 7px;
  color: #36443e;
  font-size: 15px;
}

.btn-primary-custom,
#loadMoreFatwaBtn,
.calc-btn,
.submit-fatwa-btn {
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: var(--fo-emerald-800);
  color: #fff;
  padding: 10px 22px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(7,83,68,.15);
}

.btn-primary-custom:hover,
#loadMoreFatwaBtn:hover,
.calc-btn:hover,
.submit-fatwa-btn:hover {
  background: var(--fo-emerald-950);
  color: #fff;
  transform: translateY(-1px);
}

.ask-action-btn.gold {
  min-height: 52px;
  border-radius: 13px;
  background: var(--fo-gold);
  color: #1e2e27;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(158,111,37,.14);
}

.ask-action-btn.gold:hover {
  background: #d8aa59;
  color: #14201b;
  transform: translateY(-1px);
}

.featured-action-section { padding: 56px 0 12px; }

.featured-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius);
  background: var(--fo-paper);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--fo-shadow-sm);
}

.featured-action-card h2 {
  margin: 0 0 6px;
  color: var(--fo-emerald-950);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.featured-action-card p { margin: 0; color: var(--fo-ink-soft); }

.ask-fatwa-btn {
  width: auto;
  min-width: 210px;
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  background: var(--fo-emerald-800);
  color: #fff;
  padding: 12px 25px;
  box-shadow: 0 14px 30px rgba(7,83,68,.18);
  font-size: 19px;
  font-weight: 900;
}

.ask-fatwa-btn:hover {
  background: var(--fo-emerald-950);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7,61,50,.23);
}

.section-kicker {
  margin-bottom: 5px;
  color: var(--fo-gold-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
}

.section-title span {
  width: 34px;
  height: 4px;
  flex: 0 0 34px;
  border-radius: 20px;
  background: var(--fo-gold);
}

.section-title h2 {
  margin: 0;
  color: var(--fo-emerald-950);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
}

#islamic-calculators { padding-top: 74px !important; padding-bottom: 74px !important; }

.calculators-heading {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.calculators-heading h2 {
  margin-bottom: 9px;
  color: var(--fo-emerald-950);
  font-size: clamp(29px, 3.5vw, 42px);
  font-weight: 800;
}

.calculators-heading p { margin: 0; color: var(--fo-ink-soft); }

.calculator-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius);
  background: var(--fo-paper);
  padding: 26px;
  box-shadow: var(--fo-shadow-sm);
}

.calculator-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  inset-inline-end: -50px;
  top: -50px;
  border-radius: 50%;
  background: var(--fo-gold-soft);
}

.calculator-card:hover {
  border-color: rgba(7,105,86,.28);
  box-shadow: var(--fo-shadow-md);
  transform: translateY(-4px);
}

.calculator-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-800);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.calc-title {
  margin-bottom: 8px;
  color: var(--fo-emerald-950);
  font-size: 24px;
  font-weight: 800;
}

.calculator-card .text-muted { color: var(--fo-ink-soft) !important; }

.calc-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--fo-emerald-800);
  text-decoration: none;
  font-weight: 800;
}

.calc-page-link::after { content: "←"; }

.calc-page-link:hover { color: var(--fo-gold-dark); }

.calculator-result {
  margin-top: 18px;
  border: 1px solid #d6e6df;
  border-right: 4px solid var(--fo-emerald-700);
  border-radius: 14px;
  background: var(--fo-emerald-50);
  color: #23483d;
  padding: 15px 17px;
  line-height: 2;
  font-weight: 700;
}

#fatwaas {
  position: relative;
  padding-top: 82px !important;
  padding-bottom: 80px !important;
  border-top: 1px solid rgba(7,61,50,.07);
  background: rgba(255,255,255,.34);
}

.fatwaa-card,
.side-card,
.detail-box {
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius);
  background: var(--fo-paper);
  box-shadow: var(--fo-shadow-sm);
}

.fatwaa-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.fatwaa-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--fo-gold), rgba(199,150,69,.15));
  opacity: .55;
}

.fatwaa-card:hover {
  border-color: rgba(7,105,86,.25);
  box-shadow: var(--fo-shadow-md);
  transform: translateY(-4px);
}

.fatwaa-card .card-body,
.side-card .card-body { padding: 24px; }

.fatwaa-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #758079;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.fatwaa-number::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fo-gold);
}

.fatwaa-title {
  min-height: 76px;
  margin: 14px 0 20px;
  color: var(--fo-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.8;
}

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #d7e4df;
  border-radius: 12px;
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-800);
  padding: 7px 15px;
  font-weight: 800;
}

.read-more:hover {
  border-color: var(--fo-emerald-800);
  background: var(--fo-emerald-800);
  color: #fff;
}

.badge-soft,
.meta-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 7px 7px;
  border: 1px solid #e4dbc9;
  border-radius: 999px;
  background: #fbf5e8;
  color: #72531d;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}

.meta-link:hover {
  border-color: var(--fo-gold-dark);
  background: var(--fo-gold-dark);
  color: #fff;
}

.side-card { overflow: hidden; }

.side-card .section-title {
  margin: -24px -24px 10px;
  border-bottom: 1px solid var(--fo-line);
  background: #faf9f4;
  padding: 19px 24px;
}

.side-card .section-title h2 { font-size: 22px !important; }

.question-list a {
  position: relative;
  display: block;
  border-bottom: 1px solid #ecece5;
  color: #34413b;
  padding: 13px 0 13px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.question-list a::after {
  content: "←";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  color: var(--fo-gold-dark);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: .2s ease;
}

.question-list a:hover {
  color: var(--fo-emerald-800);
  padding-inline-end: 20px;
}

.question-list a:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.question-list a:last-child { border-bottom: 0; }

.load-status {
  color: #758079;
  padding: 26px;
  text-align: center;
}

.fatwaa-loader,
.page-overlay-loader .spinner {
  border-color: rgba(7,83,68,.12);
  border-top-color: var(--fo-emerald-700);
}

.page-overlay-loader {
  background: rgba(248,246,240,.88);
  color: var(--fo-emerald-900);
  backdrop-filter: blur(6px);
}

.fatwaa-detail-page .hero { min-height: 285px; }

.fatwaa-detail-page .hero h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-box {
  max-width: 950px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 56px);
}

.detail-heading-line { margin-bottom: 34px; }

.detail-heading-line::before,
.detail-heading-line::after { background: var(--fo-line); }

.detail-heading-line h1 {
  color: var(--fo-emerald-950);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.65;
}

.fatwa-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 17px;
  border: 0;
  border-radius: 12px;
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-900);
  padding: 10px 15px;
  font-size: 20px;
  font-weight: 900;
}

.fatwa-section-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fo-gold);
}

.fatwa-text {
  color: #26342e;
  padding: 0 7px;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 2.05;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: pre-line;
}

.fatwa-text .arabic-line {
  font-family: var(--fo-font-arabic);
  line-height: 1.9;
  unicode-bidi: isolate;
}

.book-ref {
  margin-top: 28px;
  border: 1px solid #eadfc9;
  border-radius: 14px;
  background: #fcf6e9;
  padding: 16px;
}

.detail-tags {
  margin-top: 22px;
  border-top: 1px dashed var(--fo-line);
  padding-top: 20px;
}

.page-hero {
  min-height: 300px;
}

.page-hero .container { padding-top: 52px; padding-bottom: 52px; }

.page-hero .hero-eyebrow { margin-bottom: 13px; }

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(35px, 4.5vw, 55px);
}

.calculator-page-main {
  padding: 64px 0 78px;
}

.calculator-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 30px;
}

.calculator-page-main .calculator-card {
  padding: clamp(25px, 4vw, 42px);
}

.calculator-page-main .calculator-card:hover { transform: none; }

.calculator-page-main .calc-title {
  font-size: clamp(27px, 3vw, 36px);
}

.helper-card {
  position: sticky;
  top: 112px;
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius);
  background: var(--fo-paper);
  padding: 24px;
  box-shadow: var(--fo-shadow-sm);
}

.helper-card h3 {
  margin-bottom: 10px;
  color: var(--fo-emerald-950);
  font-size: 21px;
  font-weight: 900;
}

.helper-card p,
.helper-card li {
  color: var(--fo-ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.helper-card ul { margin: 0; padding-right: 20px; }

.helper-card .helper-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 12px;
  background: var(--fo-gold-soft);
  color: #70511d;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 900;
}

.helper-card .helper-cta:hover {
  background: var(--fo-gold);
  color: #1f2d27;
}

.page-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--fo-line);
}

.page-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  margin: 0;
  border: 1px solid #d7e4df;
  border-radius: 12px;
  background: var(--fo-emerald-50);
  color: var(--fo-emerald-800);
  padding: 8px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.page-link-btn:hover {
  border-color: var(--fo-emerald-800);
  background: var(--fo-emerald-800);
  color: #fff;
}

.form-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 13px;
  color: var(--fo-emerald-950);
  font-size: 18px;
  font-weight: 900;
}

.form-section-label::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 10px;
  background: var(--fo-gold);
}

footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: var(--fo-emerald-950);
  color: rgba(255,255,255,.72);
  padding: 0;
}

footer::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  inset-inline-end: -210px;
  top: -280px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012);
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 50px;
  padding: 56px 0 42px;
}

.footer-brand img {
  height: 58px;
  max-width: 190px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff;
  padding: 7px 10px;
}

.footer-brand p { max-width: 430px; margin: 0; }

.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 15px;
}

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

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 17px 0;
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 12px;
    border-top: 1px solid var(--fo-line);
    padding: 12px 0 4px;
  }

  .navbar-nav { align-items: stretch; }
  .nav-cta { margin: 8px 0 3px; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 56px 0 76px;
  }

  .hero-trust-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero-trust-card .mini-title { grid-column: 1 / -1; }
  .trust-feature { margin-top: 0; }

  .calculator-page-grid { grid-template-columns: 1fr; }
  .helper-card { position: static; }

  .footer-main {
    grid-template-columns: 1.2fr .8fr;
    gap: 34px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .top-strip { display: none; }

  .navbar { min-height: 72px; }
  .navbar-brand img { height: 47px; max-width: 158px; }

  .hero { min-height: auto; text-align: right; }
  .hero-grid { gap: 30px; padding: 44px 0 68px; }
  .hero h1 { font-size: clamp(34px, 10vw, 47px); line-height: 1.55; }
  .hero p { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }

  .hero-trust-card { grid-template-columns: 1fr; padding: 24px; }
  .trust-feature { align-items: center; }

  .search-box { margin-top: -25px; }
  .search-card { padding: 15px; }

  .featured-action-section { padding-top: 45px; }
  .featured-action-card { align-items: stretch; flex-direction: column; }
  .ask-fatwa-btn { width: 100%; }

  #islamic-calculators { padding-top: 58px !important; padding-bottom: 58px !important; }
  #fatwaas { padding-top: 58px !important; padding-bottom: 58px !important; }

  .fatwaa-title { min-height: auto; }
  .fatwaa-card .card-body,
  .side-card .card-body { padding: 21px; }

  .side-card .section-title { margin: -21px -21px 8px; padding: 17px 21px; }

  .page-hero .container { padding-top: 42px; padding-bottom: 42px; }
  .calculator-page-main { padding: 42px 0 58px; }

  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 34px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 420px) {
  .hero-actions { grid-template-columns: 1fr; }
  .hero-primary,
  .hero-secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
