/* ============================================================
   Hameed Urdu Academy — FAQ page
============================================================ */

.hua-faq-page { overflow: clip; background: var(--hua-white); }
.hua-faq-page .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Hero */
.hua-faq-hero {
  position: relative;
  padding: 158px 0 108px;
  background:
    radial-gradient(circle at 11% 18%, rgba(201,162,39,.1), transparent 29%),
    var(--hua-ivory);
}
.hua-faq-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--hua-border); }
.hua-faq-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .76fr); gap: clamp(58px, 8vw, 126px); align-items: center; }
.hua-faq-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 52px; color: var(--hua-muted); font-size: 11px; }
.hua-faq-breadcrumb a:hover { color: var(--hua-navy); }
.hua-faq-hero h1 { max-width: 810px; margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(72px, 7.6vw, 116px); font-weight: 600; line-height: .86; letter-spacing: -.055em; }
.hua-faq-hero h1 em { color: var(--hua-gold); font-style: normal; }
.hua-faq-hero__lead { max-width: 600px; margin: 30px 0 32px; color: var(--hua-muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; }

.hua-faq-hero__index { position: relative; overflow: hidden; min-height: 590px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(34px, 4vw, 54px); border-radius: 32px; color: var(--hua-white); background: linear-gradient(145deg, rgba(255,255,255,.055), transparent 46%), var(--hua-navy); box-shadow: var(--hua-shadow-high); }
.hua-faq-hero__index::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; pointer-events: none; }
.hua-faq-hero__index > *:not(.hua-faq-hero__mark) { position: relative; z-index: 1; }
.hua-faq-hero__mark { position: absolute; top: -16px; right: 20px; color: rgba(226,201,108,.11); font-family: var(--hua-serif); font-size: 280px; line-height: 1; }
.hua-faq-hero__index > strong {
  display: block;
  margin: 0;
  color: var(--hua-gold-light);
  font-family: var(--hua-serif);
  font-size: clamp(90px, 10vw, 144px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.06em;
}
.hua-faq-hero__index > span {
  display: block;
  max-width: 250px;
  margin-top: 24px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.65;
}
.hua-faq-hero__index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.hua-faq-hero__index li { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.74); font-size: 10px; }
.hua-faq-hero__index li span { color: var(--hua-gold-light); font-family: var(--hua-serif); font-size: 13px; }

/* Search */
.hua-faq-tools { position: relative; z-index: 6; margin-top: -35px; }
.hua-faq-tools__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 20px 22px 20px 28px; border: 1px solid var(--hua-border); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--hua-shadow-soft); backdrop-filter: blur(14px); }
.hua-faq-search { display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: center; }
.hua-faq-search svg { width: 21px; fill: none; stroke: var(--hua-gold); stroke-width: 1.7; }
.hua-faq-search input { width: 100%; min-height: 44px; padding: 0; border: 0; outline: 0; color: var(--hua-text); background: transparent; font-size: 15px; }
.hua-faq-search input::placeholder { color: var(--hua-faint); }
.hua-faq-search kbd { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--hua-border); border-radius: 8px; color: var(--hua-muted); background: var(--hua-card); font: inherit; font-size: 11px; }
.hua-faq-result-count { min-width: 74px; margin: 0; color: var(--hua-muted); font-size: 11px; text-align: right; }

/* FAQ library */
.hua-faq-library { padding-top: clamp(100px, 11vw, 164px); }
.hua-faq-library__grid { display: grid; grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr); gap: clamp(70px, 9vw, 142px); align-items: start; }
.hua-faq-categories { position: sticky; top: 126px; }
.hua-faq-categories h2 { max-width: 420px; margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(48px, 5vw, 72px); font-weight: 600; line-height: .95; letter-spacing: -.04em; }
.hua-faq-categories__list { display: grid; margin-top: 48px; border-top: 1px solid var(--hua-border); }
.hua-faq-categories__list button { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 17px 0; border: 0; border-bottom: 1px solid var(--hua-border); color: var(--hua-muted); background: transparent; text-align: left; cursor: pointer; transition: color .25s var(--hua-ease), padding-left .25s var(--hua-ease); }
.hua-faq-categories__list button:hover,
.hua-faq-categories__list button.is-active { padding-left: 8px; color: var(--hua-navy); }
.hua-faq-categories__list button > span { color: var(--hua-gold); font-family: var(--hua-serif); font-size: 15px; }
.hua-faq-categories__list button strong { font-size: 12px; font-weight: 600; }
.hua-faq-categories__list button small { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 999px; color: var(--hua-muted); background: var(--hua-card); font-size: 9px; }
.hua-faq-categories__list button.is-active small { color: var(--hua-white); background: var(--hua-navy); }

.hua-faq-groups { min-width: 0; }
.hua-faq-group + .hua-faq-group { margin-top: clamp(76px, 9vw, 124px); }
.hua-faq-group__heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); gap: 34px; align-items: end; margin-bottom: 22px; }
.hua-faq-group__heading > div { display: flex; align-items: baseline; gap: 18px; }
.hua-faq-group__heading span { color: var(--hua-gold); font-family: var(--hua-serif); font-size: 18px; }
.hua-faq-group__heading h3 { margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(38px, 4vw, 56px); font-weight: 600; line-height: .95; letter-spacing: -.03em; }
.hua-faq-group__heading p { margin: 0; color: var(--hua-muted); font-size: 11px; text-align: right; }
.hua-faq-accordion { border-top: 1px solid var(--hua-border); }
.hua-faq-item { border-bottom: 1px solid var(--hua-border); }
.hua-faq-item[hidden], .hua-faq-group[hidden] { display: none !important; }
.hua-faq-item > button { width: 100%; display: grid; grid-template-columns: 1fr 30px; gap: 26px; align-items: center; padding: 27px 0; border: 0; color: var(--hua-navy); background: transparent; text-align: left; cursor: pointer; }
.hua-faq-item > button span { max-width: 760px; font-family: var(--hua-serif); font-size: clamp(23px, 2.35vw, 31px); font-weight: 600; line-height: 1.16; transition: color .25s var(--hua-ease); }
.hua-faq-item > button:hover span { color: var(--hua-gold); }
.hua-faq-item > button i { position: relative; width: 24px; height: 24px; }
.hua-faq-item > button i::before,
.hua-faq-item > button i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 17px; height: 1px; background: var(--hua-gold); transform: translate(-50%, -50%); transition: transform .25s var(--hua-ease); }
.hua-faq-item > button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.hua-faq-item.is-open > button i::after { transform: translate(-50%, -50%); }
.hua-faq-answer p { max-width: 760px; margin: -5px 56px 28px 0; color: var(--hua-muted); font-size: 13px; line-height: 1.8; }

.hua-faq-empty { padding: clamp(50px, 8vw, 90px); border: 1px solid var(--hua-border); border-radius: 28px; background: var(--hua-card); text-align: center; }
.hua-faq-empty > span { color: var(--hua-gold); font-family: var(--hua-serif); font-size: 86px; line-height: .8; }
.hua-faq-empty h3 { margin: 22px 0 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: 36px; font-weight: 600; }
.hua-faq-empty p { margin: 13px auto 22px; color: var(--hua-muted); }

/* Route guide */
.hua-faq-route { padding: clamp(96px, 11vw, 158px) 0; color: var(--hua-white); background: var(--hua-navy); }
.hua-faq-route__heading { display: grid; grid-template-columns: .52fr 1fr; gap: 70px; align-items: end; margin-bottom: clamp(56px, 7vw, 90px); }
.hua-faq-route__heading h2 { max-width: 950px; margin: 0; font-family: var(--hua-serif); font-size: clamp(54px, 6vw, 88px); font-weight: 600; line-height: .92; letter-spacing: -.045em; }
.hua-faq-route__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.15); }
.hua-faq-route__grid article { min-height: 330px; display: flex; flex-direction: column; padding: 34px 38px 10px 0; }
.hua-faq-route__grid article + article { padding-left: 38px; border-left: 1px solid rgba(255,255,255,.15); }
.hua-faq-route__grid article > span { color: var(--hua-gold-light); font-family: var(--hua-serif); font-size: 19px; }
.hua-faq-route__grid h3 { margin: auto 0 0; font-family: var(--hua-serif); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1; }
.hua-faq-route__grid p { min-height: 66px; margin: 18px 0 26px; color: rgba(255,255,255,.62); font-size: 12px; }
.hua-faq-route button.hua-text-link { padding: 0; border: 0; background: transparent; cursor: pointer; }

/* CTA */
.hua-faq-cta { padding: clamp(96px, 11vw, 160px) 0; background: var(--hua-ivory); }
.hua-faq-cta__inner { max-width: 1020px; text-align: center; }
.hua-faq-cta h2 { max-width: 900px; margin: 0 auto; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(58px, 6.5vw, 94px); font-weight: 600; line-height: .92; letter-spacing: -.045em; }
.hua-faq-cta__inner > p:not(.hua-eyebrow) { max-width: 650px; margin: 25px auto 0; color: var(--hua-muted); }
.hua-faq-cta .hua-button { margin-top: 34px; }

@media (max-width: 1050px) {
  .hua-faq-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr); gap: 50px; }
  .hua-faq-library__grid { grid-template-columns: 270px minmax(0, 1fr); gap: 70px; }
  .hua-faq-route__grid article { padding-right: 28px; }
  .hua-faq-route__grid article + article { padding-left: 28px; }
}

@media (max-width: 860px) {
  .hua-faq-hero { padding-top: 128px; }
  .hua-faq-hero__grid { grid-template-columns: 1fr; }
  .hua-faq-hero__index { min-height: 490px; }
  .hua-faq-tools { margin-top: -24px; }
  .hua-faq-library__grid { grid-template-columns: 1fr; }
  .hua-faq-categories { position: static; }
  .hua-faq-categories h2 { max-width: 600px; }
  .hua-faq-categories__list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 8px; }
  .hua-faq-categories__list button { padding: 14px; border: 1px solid var(--hua-border); border-radius: 12px; background: var(--hua-card); }
  .hua-faq-categories__list button:hover,
  .hua-faq-categories__list button.is-active { padding-left: 14px; border-color: rgba(201,162,39,.5); }
  .hua-faq-route__heading { grid-template-columns: 1fr; gap: 20px; }
  .hua-faq-route__grid { grid-template-columns: 1fr; }
  .hua-faq-route__grid article { min-height: 0; padding: 30px 0 34px; }
  .hua-faq-route__grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .hua-faq-route__grid h3 { margin-top: 42px; }
  .hua-faq-route__grid p { min-height: 0; }
}

@media (max-width: 640px) {
  .hua-faq-hero { padding: 112px 0 82px; }
  .hua-faq-breadcrumb { margin-bottom: 30px; }
  .hua-faq-hero h1 { font-size: clamp(57px, 17vw, 76px); }
  .hua-faq-hero__index { min-height: 450px; padding: 32px 28px; border-radius: 24px; }
  .hua-faq-hero__index ol { grid-template-columns: 1fr; }
  .hua-faq-tools__inner { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .hua-faq-search { grid-template-columns: 22px 1fr; }
  .hua-faq-search kbd { display: none; }
  .hua-faq-result-count { text-align: left; padding-left: 38px; }
  .hua-faq-categories__list { grid-template-columns: 1fr; }
  .hua-faq-group__heading { grid-template-columns: 1fr; gap: 10px; }
  .hua-faq-group__heading p { text-align: left; }
  .hua-faq-item > button { gap: 16px; padding: 23px 0; }
  .hua-faq-answer p { margin-right: 34px; }
  .hua-faq-cta .hua-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hua-faq-categories__list button,
  .hua-faq-item > button span,
  .hua-faq-item > button i::before,
  .hua-faq-item > button i::after { transition: none; }
}
