/*
 * hero.css — Hero Banner v4.0.0
 * Quran Assistant Child Theme
 *
 * PERFORMANCE NOTES:
 * - No backdrop-filter (causes child-element blur, expensive GPU op)
 * - will-change used sparingly only on animated decorative elements
 * - translate3d used for GPU-composited animations (no text blur)
 * - font-smoothing on dark cards prevents subpixel blur
 * - contain: layout paint on hero for faster paint cycles
 */

/* ══════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════ */
@keyframes qaFadeUp {
  from { opacity:0; transform:translate3d(0,28px,0); }
  to   { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes qaSlideRight {
  from { opacity:0; transform:translate3d(44px,0,0); }
  to   { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes qaOrbFloat {
  0%,100% { transform:translate3d(0,0,0) scale(1); }
  33%     { transform:translate3d(20px,-28px,0) scale(1.06); }
  66%     { transform:translate3d(-14px,12px,0) scale(0.95); }
}
@keyframes qaParticle {
  0%,100% { opacity:0; transform:translate3d(0,0,0) scale(.4); }
  50%     { opacity:.4; transform:translate3d(0,-20px,0) scale(1); }
}
@keyframes qaShimmer {
  from { background-position:-200% center; }
  to   { background-position: 200% center; }
}
@keyframes qaBadgeFloat {
  0%,100% { transform:translate3d(0,0,0); }
  50%     { transform:translate3d(0,-5px,0); }
}
@keyframes qaBadgePulse {
  0%,100% { box-shadow:0 0 0 0 rgba(201,162,39,.4); }
  50%     { box-shadow:0 0 0 10px rgba(201,162,39,0); }
}
@keyframes qaLineGrow {
  from { width:0; }
  to   { width:60px; }
}
@keyframes qaPopupIn {
  from { opacity:0; transform:translate3d(0,16px,0) scale(.96); }
  to   { opacity:1; transform:translate3d(0,0,0) scale(1); }
}
@keyframes qaSuccessPop {
  0%   { opacity:0; transform:scale(.8); }
  60%  { transform:scale(1.04); }
  100% { opacity:1; transform:scale(1); }
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.qa-hero {
  position: relative;
  min-height: 93vh;
  background-image: url('../images/hero-bg.webp');
  background-color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 90px 0 70px;
  contain: layout paint;           /* PageSpeed: isolate paint area */
}

/* Light tint overlay — lets background image show through */
.qa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(255,255,255,.72) 0%,
    rgba(255,255,255,.50) 45%,
    rgba(255,255,255,.68) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Background decorations */
.qa-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.qa-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,61,26,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,61,26,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.qa-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(255,255,255,.25) 100%);
}

/* Glow orbs */
.qa-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: qaOrbFloat 12s ease-in-out infinite;
  will-change: transform;           /* Only on decorative elements */
}
.qa-hero-orb-1 {
  width:500px; height:500px;
  background: radial-gradient(circle, rgba(13,61,26,.07) 0%, transparent 70%);
  top:-12%; right:-6%;
  animation-duration:11s;
}
.qa-hero-orb-2 {
  width:350px; height:350px;
  background: radial-gradient(circle, rgba(201,162,39,.09) 0%, transparent 70%);
  bottom:-10%; left:-5%;
  animation-duration:15s;
  animation-delay:-5s;
}
.qa-hero-orb-3 {
  width:200px; height:200px;
  background: radial-gradient(circle, rgba(13,61,26,.05) 0%, transparent 70%);
  top:45%; left:28%;
  animation-duration:8s;
  animation-delay:-2s;
}

/* Particles */
.qa-hero-particles { position:absolute; inset:0; }
.qa-hero-particles span {
  position: absolute;
  width:4px; height:4px;
  border-radius:50%;
  background: var(--gm, #155724);
  animation: qaParticle 6s ease-in-out infinite;
  will-change: transform, opacity;
}
.qa-hero-particles span:nth-child(1)  { top:12%; left:7%;  animation-duration:5s;   animation-delay:0s; }
.qa-hero-particles span:nth-child(2)  { top:22%; left:18%; animation-duration:7s;   animation-delay:1.2s; }
.qa-hero-particles span:nth-child(3)  { top:58%; left:6%;  animation-duration:6s;   animation-delay:2.1s; }
.qa-hero-particles span:nth-child(4)  { top:78%; left:14%; animation-duration:8s;   animation-delay:0.6s; }
.qa-hero-particles span:nth-child(5)  { top:8%;  left:42%; animation-duration:5.5s; animation-delay:3.3s; }
.qa-hero-particles span:nth-child(6)  { top:42%; left:52%; animation-duration:7.5s; animation-delay:1.8s; }
.qa-hero-particles span:nth-child(7)  { top:68%; left:72%; animation-duration:6s;   animation-delay:4s; }
.qa-hero-particles span:nth-child(8)  { top:28%; left:82%; animation-duration:9s;   animation-delay:2.5s; }
.qa-hero-particles span:nth-child(9)  { top:83%; left:88%; animation-duration:5.5s; animation-delay:0.9s; }
.qa-hero-particles span:nth-child(10) { top:4%;  left:62%; animation-duration:7s;   animation-delay:3.7s; }

/* ══════════════════════════════════════════════
   MAIN GRID
   ══════════════════════════════════════════════ */
.qa-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════
   LEFT CONTENT — dark text on light bg
   ══════════════════════════════════════════════ */
.qa-hero-content {
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) both;
}

/* Badge */
.qa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(255,255,255,.88);
  border: 1.5px solid rgba(13,61,26,.18);
  border-radius: 50px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(13,61,26,.08);
  animation:
    qaFadeUp    .85s cubic-bezier(.22,1,.36,1) .1s both,
    qaBadgePulse 3.5s ease-in-out 1.5s infinite,
    qaBadgeFloat 4s   ease-in-out infinite;
  will-change: transform;
}
.qa-hero-badge-dot {
  width:5px; height:5px; border-radius:50%;
  background: var(--go, #c9a227);
  flex-shrink:0;
  box-shadow:0 0 6px var(--go, #c9a227);
}
.qa-hero-badge-text {
  font-size:11px; font-weight:700;
  color: var(--gm, #155724);
  letter-spacing:1.8px; text-transform:uppercase;
}

/* H1 — dark green, crisp */
.qa-hero-heading {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 900;
  color: var(--gd, #0d3d1a);
  line-height: 1.13;
  letter-spacing: -1.2px;
  margin: 0 0 10px;
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) .18s both;
}
/* Gold shimmer — no text-shadow to keep text crisp */
.qa-hero-heading em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gld,#a07c10) 0%, var(--go,#c9a227) 40%, var(--gli,#e4c060) 60%, var(--go,#c9a227) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: qaShimmer 4s linear infinite;
}

.qa-hero-subheading {
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700;
  color: rgba(13,61,26,.72);
  line-height: 1.3;
  margin: 0 0 22px;
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) .26s both;
}

.qa-hero-arabic {
  font-family: 'Amiri', 'Traditional Arabic', 'Arial Unicode MS', serif;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--gld, #a07c10);
  direction: rtl;
  text-align: left;
  margin: 0 0 22px;
  line-height: 2;
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) .32s both;
}

.qa-hero-divider {
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--go,#c9a227), var(--gli,#e4c060), rgba(201,162,39,0));
  border-radius: 3px;
  margin: 0 0 22px;
  animation: qaLineGrow .85s cubic-bezier(.22,1,.36,1) .38s forwards;
}

.qa-hero-desc {
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  font-weight: 600;
  color: var(--gd, #0d3d1a);
  line-height: 1.85;
  margin: 0 0 38px;
  max-width: 520px;
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) .44s both;
}
.qa-hero-desc em { color: var(--gm, #155724); font-style:italic; font-weight:600; }

/* CTA buttons */
.qa-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) .52s both;
}

/* Button 1 — Gold — opens popup */
.qa-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--go,#c9a227), var(--gli,#e4c060));
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(201,162,39,.4), 4px 4px 0 rgba(160,124,16,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.qa-hero-btn-primary::before {
  content:''; position:absolute;
  top:0; left:-100%; width:100%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);
  transition:left .5s;
}
.qa-hero-btn-primary:hover::before { left:100%; }
.qa-hero-btn-primary:hover,
.qa-hero .qa-hero-btns .qa-hero-btn-primary:hover,
html body button.qa-hero-btn-primary:hover {
  transform: translate(-2px,-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,.55), 6px 6px 0 rgba(160,124,16,.35);
  background: linear-gradient(135deg, #c9a227, #e4c060) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
}
.qa-hero-btn-primary svg {
  width:16px; height:16px; flex-shrink:0;
  transition:transform .25s ease;
}
.qa-hero-btn-primary:hover svg { transform:translateX(5px); }

/* Button 2 — Dark green — Tawk.to */
.qa-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--gd, #0d3d1a);
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
  border: 1.5px solid var(--gd, #0d3d1a);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.qa-hero-btn-secondary:hover {
  background: var(--gm, #155724);
  border-color: var(--gm, #155724);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,61,26,.3);
}
.qa-hero-btn-secondary svg {
  width:16px; height:16px; flex-shrink:0;
  transition:transform .25s ease;
}
.qa-hero-btn-secondary:hover svg { transform:scale(1.15); }

/* ══════════════════════════════════════════════
   SOCIAL PROOF — avatar stack + star rating
   ══════════════════════════════════════════════ */
.qa-hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  animation: qaFadeUp .85s cubic-bezier(.22,1,.36,1) .6s both;
}

/* Overlapping avatar circles */
.qa-hero-avatars {
  display: flex;
  align-items: center;
}

.qa-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
  margin-left: -12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.qa-hero-avatar:first-child { margin-left: 0; }

/* Unique fallback background per avatar if image fails to load */
.qa-hero-avatar--1 { background: linear-gradient(135deg, #c9f0d4, #5aad7a); }
.qa-hero-avatar--2 { background: linear-gradient(135deg, #fde68a, #d97706); }
.qa-hero-avatar--3 { background: linear-gradient(135deg, #bfdbfe, #3b82f6); }
.qa-hero-avatar--4 { background: linear-gradient(135deg, #fecaca, #ef4444); }

.qa-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Stars + rating text */
.qa-hero-rating-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qa-hero-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.qa-hero-stars svg {
  width: 17px;
  height: 17px;
  fill: #f59e0b;
}

.qa-hero-rating-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gd, #0d3d1a);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.qa-hero-rating-text strong {
  font-weight: 800;
  font-size: 14.5px;
}

/* Responsive — center on mobile */
@media (max-width: 960px) {
  .qa-hero-social-proof { justify-content: center; }
}


/* ══════════════════════════════════════════════
   FORM CARD — dark green with mint inputs
   font-smoothing prevents blur on dark bg
   ══════════════════════════════════════════════ */
.qa-hero-form-wrap {
  animation: qaSlideRight .95s cubic-bezier(.22,1,.36,1) .3s both;
}

.qa-hero-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 64px rgba(0,0,0,.13), 0 4px 20px rgba(0,0,0,.06);
  /* No float animation — translate3d on a card causes GPU subpixel blur on text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Green top accent bar */
.qa-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gd,#0d3d1a), var(--gm,#1a5c2a), var(--gd,#0d3d1a));
}

/* Card header row — icon left, title-wrap right */
.qa-hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qa-hero-card-icon {
  width: 78px;
  height: 78px;
  background: #f0ffe8;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Title + subtitle stacked in the right column */
.qa-hero-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qa-hero-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  margin: 0 !important;   /* override Kadence h2 margin-bottom */
  padding: 0 !important;
  letter-spacing: 0;
  line-height: 1.2;
}

.qa-hero-card-title em {
  font-style: normal;
  color: var(--gd, #0d3d1a);
}

/* Subtitle — sits below title inside the header */
.qa-hero-card-sub {
  font-size: 12.5px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}


/* ══════════════════════════════════════════════
   FORM FIELDS — icon + placeholder design
   ══════════════════════════════════════════════ */
.qa-hero-form { display:flex; flex-direction:column; gap:10px; }

.qa-form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Labels visually hidden — kept for accessibility & SEO */
.qa-form-group label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Icon + input wrapper — no flex needed, icon is absolute */
.qa-form-field {
  position: relative;
  display: block;
}

/* Icon inside the field */
.qa-form-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gd, #0d3d1a);
  pointer-events: none;
  z-index: 2;
  line-height: 0;
}
.qa-form-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.qa-form-group--area .qa-form-icon {
  top: 15px;
  transform: none;
}

/* Use !important to override any Kadence parent-theme input padding */
.qa-form-group input,
.qa-form-group textarea {
  width: 100% !important;
  background: #f8f9fa !important;
  border: 1.5px solid #e8e8e8 !important;
  border-radius: 10px !important;
  padding: 14px 16px 14px 46px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #222 !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit !important;
  -webkit-appearance: none;
  appearance: none;
  display: block !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
.qa-form-group textarea { min-height: 84px; resize: vertical; }
.qa-form-group input::placeholder,
.qa-form-group textarea::placeholder {
  color: #999;
  opacity: 1;
}
.qa-form-group input:focus,
.qa-form-group textarea:focus {
  border-color: var(--gd, #0d3d1a) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(13,61,26,.08) !important;
}
.qa-form-group.has-error input,
.qa-form-group.has-error textarea {
  border-color: rgba(252,129,129,.8) !important;
  background: rgba(254,215,215,.15) !important;
}


.qa-form-error-msg {
  display: none;
  font-size: 11px;
  color: #fc8181;
  font-weight: 700;
  padding-left: 2px;
}
.qa-form-group.has-error .qa-form-error-msg { display:block; }

.qa-form-server-error {
  display: none;
  margin: 10px 0 0;
  padding: 10px 14px;
  background: rgba(252,129,129,.15);
  border: 1px solid rgba(252,129,129,.4);
  border-radius: 6px;
  font-size: 13px;
  color: #fc8181;
  text-align: center;
  line-height: 1.5;
}

/* Submit — gold button with white text */
.qa-form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--go,#c9a227), var(--gli,#e4c060));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201,162,39,.4), 4px 4px 0 rgba(160,124,16,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}
.qa-form-submit::before {
  content:''; position:absolute;
  top:0; left:-100%; width:100%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);
  transition:left .5s;
}
.qa-form-submit:not(:disabled):hover::before { left:100%; }
.qa-form-submit:not(:disabled):hover {
  background: linear-gradient(135deg, var(--gli,#e4c060), var(--go,#c9a227));
  color: #fff;
  transform: translate(-2px,-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,.55), 6px 6px 0 rgba(160,124,16,.35);
}
.qa-form-submit:active { transform:translate(1px,1px); }
.qa-form-submit:disabled { opacity:.7; cursor:not-allowed; }
.qa-form-submit svg { width:16px; height:16px; flex-shrink:0; transition:transform .25s ease; }
.qa-form-submit:hover svg { transform:translateX(4px); }

.qa-form-success {
  display: none;
  text-align: center;
  padding: 24px 12px;
  animation: qaSuccessPop .5s cubic-bezier(.22,1,.36,1) both;
}
.qa-form-success svg { width:48px; height:48px; display:block; margin:0 auto 12px; color: var(--gd,#0d3d1a); }
.qa-form-success h3 { font-size:18px; font-weight:800; color:#1a1a1a; margin:0 0 8px; }
.qa-form-success p  { font-size:13px; color:#666; line-height:1.7; margin:0; }

/* ══════════════════════════════════════════════
   REGISTRATION POPUP MODAL
   No backdrop-filter: avoids child-element blur
   + significantly better PageSpeed score
   ══════════════════════════════════════════════ */
.qa-popup-overlay {
  position: fixed;
  inset: 0;
  /* Solid dark overlay — no backdrop-filter (causes blur on children) */
  background: rgba(4,20,8,.88);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s;
  /* Prevent the overlay itself from scrolling */
  overflow: hidden;
}
.qa-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Compact card — sized to fit without scrollbar on all screens */
.qa-popup-card {
  background: var(--gd, #0d3d1a);
  border-radius: 20px;
  padding: 32px 32px 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
  border: 1px solid rgba(201,162,39,.2);
  border-top: 3px solid var(--go, #c9a227);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 8px 24px rgba(4,20,8,.4);
  animation: qaPopupIn .35s cubic-bezier(.22,1,.36,1) both;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Popup header — override for dark green card */
.qa-popup-card .qa-hero-card-icon           { background: rgba(255,255,255,.12); }
.qa-popup-card .qa-hero-card-icon svg       { stroke: #fff; }
.qa-popup-card .qa-hero-card-title          { color: #fff; }
.qa-popup-card .qa-hero-card-title em       { color: var(--go, #c9a227); }
.qa-popup-card .qa-hero-card-sub            { color: rgba(255,255,255,.6); }

.qa-popup-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22);
  background: transparent;
  font-size: 18px;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .22s ease;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}
.qa-popup-close:hover {
  background: var(--go, #c9a227);
  color: var(--gd, #0d3d1a);
  border-color: var(--go, #c9a227);
  transform: rotate(90deg);
}

/* ══════════════════════════════════════════════
   STATS BAR — rounded dark green card floating
   between hero section and about section
   ══════════════════════════════════════════════ */

.qa-stats-bar {
  background: transparent;
  padding: 0 24px;
  position: relative;
  z-index: 20;
  margin-top: -44px;
  margin-bottom: -44px;
  list-style: none;
}

.qa-stats-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--gd, #0d3d1a);
  border-radius: 16px;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  list-style: none;
  box-shadow: 0 8px 40px rgba(13,61,26,.28);
}

/* Each stat item */
.qa-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  padding: 22px 16px;
}

/* Vertical divider between items via CSS — no DOM element needed */
.qa-stat-item + .qa-stat-item {
  border-left: 1px solid rgba(255,255,255,.2);
}

.qa-stat-icon {
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.qa-stat-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.qa-stat-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qa-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.3px;
}

.qa-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

/* ── Tablet ─── */
@media (max-width: 960px) {
  .qa-stats-bar { padding: 0 16px; margin-top: -36px; margin-bottom: -36px; }
  .qa-stats-bar-inner { padding: 0 24px; border-radius: 14px; }
  .qa-stat-item { gap: 10px; padding: 18px 10px; }
  .qa-stat-icon svg { width: 28px; height: 28px; }
  .qa-stat-num { font-size: 20px; }
}

@keyframes qa-spin { to { transform: rotate(360deg); } }
.qa-spin { animation: qa-spin .7s linear infinite; }

/* ── Mobile: 2×2 grid ─── */
@media (max-width: 600px) {
  .qa-stats-bar { padding: 0 14px; margin-top: -28px; margin-bottom: -28px; }

  .qa-stats-bar-inner {
    flex-wrap: wrap;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .qa-stat-item {
    flex: 0 0 50%;
    width: 50%;
    justify-content: flex-start;
    padding: 16px 14px;
    box-sizing: border-box;
    border-left: none;
  }

  /* Vertical line: right column */
  .qa-stat-item:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,.2);
  }

  /* Horizontal line: between row 1 and row 2 */
  .qa-stat-item:nth-child(1),
  .qa-stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .qa-stat-num      { font-size: 18px; }
  .qa-stat-label    { font-size: 11px; white-space: normal; }
  .qa-stat-icon svg { width: 24px; height: 24px; }
  .qa-stat-item     { gap: 10px; }
}


/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════ */

/* 1200px */
@media (max-width: 1200px) {
  .qa-hero-inner { grid-template-columns: 1fr 400px; gap: 48px; }
}

/* 1100px */
@media (max-width: 1100px) {
  .qa-hero-inner { grid-template-columns: 1fr 380px; gap: 40px; }
}

/* 960px — stack to single column */
@media (max-width: 960px) {
  .qa-hero {
    padding: 70px 0 60px;
    min-height: auto;
    background-image: url('../images/hero-bg-mobile.webp');
  }
  .qa-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .qa-hero-content  { text-align: center; }
  .qa-hero-badge    { margin: 0 auto 24px; }
  .qa-hero-divider  { margin: 0 auto 22px; }
  .qa-hero-desc     { margin-left:auto; margin-right:auto; max-width:600px; }
  .qa-hero-btns     { justify-content: center; }
  .qa-hero-arabic   { text-align: center; }
  .qa-hero-form-wrap { max-width: 520px; margin: 0 auto; width: 100%; }
  .qa-hero-card     { animation: none; }           /* No float on tablet/mobile */
  /* Popup: centered with padding */
  .qa-popup-overlay { padding: 16px; align-items: center; }
  .qa-popup-card    { max-width: 440px; }
}

/* 768px */
@media (max-width: 768px) {
  .qa-hero { padding: 60px 0 52px; }
  .qa-hero-inner { padding: 0 20px; gap: 36px; }
  .qa-hero-btn-primary,
  .qa-hero-btn-secondary { padding: 14px 26px; font-size: 14.5px; }
}

/* 600px */
@media (max-width: 600px) {
  .qa-hero { padding: 52px 0 44px; }
  .qa-hero-inner { padding: 0 16px; gap: 32px; }
  .qa-hero-card  { padding: 28px 22px 24px; border-radius: 18px; }
  .qa-hero-btns  { flex-direction: column; align-items: stretch; gap: 10px; }
  .qa-hero-btn-primary,
  .qa-hero-btn-secondary { justify-content: center; width: 100%; font-size: 14px; padding: 14px 20px; }
  /* Popup: full width, centered */
  .qa-popup-overlay { padding: 12px; }
  .qa-popup-card    { padding: 24px 20px 20px; border-radius: 18px; max-width: 100%; }
  .qa-popup-close   { top: 10px; right: 10px; width:30px; height:30px; font-size:16px; }
}

/* 480px */
@media (max-width: 480px) {
  .qa-hero { padding: 48px 0 40px; }
  .qa-hero-inner { padding: 0 14px; }
  .qa-hero-card  { padding: 24px 18px 22px; border-radius: 16px; }
  .qa-hero-form  { gap: 10px; }
  .qa-hero-card-title { margin-bottom: 16px; }
  .qa-hero-btn-primary,
  .qa-hero-btn-secondary { font-size: 13.5px; }
  .qa-popup-card { padding: 26px 20px 22px; }
  .qa-form-submit { font-size: 15px; padding: 14px; }
}

/* 380px */
@media (max-width: 380px) {
  .qa-hero-inner { padding: 0 12px; }
  .qa-hero-card  { padding: 20px 16px 18px; }
  .qa-popup-card { padding: 22px 16px 18px; }
  .qa-hero-btn-primary,
  .qa-hero-btn-secondary { font-size: 13px; padding: 13px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qa-hero-orb,
  .qa-hero-particles span,
  .qa-hero-badge,
  .qa-hero-heading em,
  .qa-hero-card::before,
  .qa-hero-btn-primary {
    animation: none !important;
    transition-duration: .1s !important;
  }
}
