/* Help Center — inspired by the reference's calm hero and grouped accordions,
   adapted to Alawi Foundation's visual system and content. */

.help-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 96px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(168, 213, 88, 0.24), transparent 32%),
    radial-gradient(circle at 14% 88%, rgba(2, 169, 92, 0.28), transparent 36%),
    linear-gradient(135deg, #0a2540 0%, #063b2a 58%, #0b2f25 100%);
}

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

.help-hero::before {
  width: 360px;
  height: 360px;
  top: -210px;
  right: 8%;
}

.help-hero::after {
  width: 240px;
  height: 240px;
  bottom: -180px;
  left: 12%;
}

.help-hero .container-narrow { position: relative; z-index: 1; }

.help-hero-label,
.help-contact-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--brand-leaf);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.help-hero h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -0.045em;
}

.help-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.help-content-section {
  padding: 76px 0 88px;
  background: #f4f7f5;
}

.help-shell {
  max-width: 920px;
}

.help-category + .help-category { margin-top: 58px; }

.help-category-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.help-category-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce5df;
}

.help-faq-list {
  display: grid;
  gap: 14px;
}

.help-faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e7e2;
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(10, 37, 64, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.help-faq-item.is-open {
  border-color: rgba(2, 169, 92, 0.36);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.085);
}

.help-faq-question {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 22px 28px;
  color: var(--navy);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.help-faq-question:hover { color: var(--brand-dark); }

.help-faq-question:focus-visible {
  outline: 3px solid rgba(2, 169, 92, 0.3);
  outline-offset: -4px;
}

.help-faq-symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid #dce9e1;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.help-faq-answer {
  padding: 0 74px 26px 28px;
}

.help-faq-answer p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.help-faq-answer a {
  color: var(--brand-dark);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-contact-section {
  padding: 72px 0;
  background: #fff;
}

.help-contact-card {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: 58px 40px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(168, 213, 88, 0.2), transparent 30%),
    linear-gradient(135deg, var(--brand-deep), #0a2540);
  border-radius: 24px;
  text-align: center;
}

.help-contact-card h2 {
  margin-bottom: 14px;
  color: #fff;
}

.help-contact-card p {
  max-width: 570px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.help-contact-card .btn-primary {
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.help-noscript {
  margin-top: 24px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .help-hero { padding: 68px 0 72px; }
  .help-content-section { padding: 54px 0 64px; }
  .help-category + .help-category { margin-top: 44px; }
  .help-faq-question { min-height: 70px; padding: 19px 18px 19px 20px; font-size: 0.96rem; }
  .help-faq-answer { padding: 0 20px 22px; }
  .help-contact-section { padding: 54px 0; }
  .help-contact-card { padding: 44px 22px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .help-faq-item { transition: none; }
}
