/* ═══════════════════════════════════════════════════════
   QA ADVANTAGES SECTION — Why Learn Quran Online
   Dark green background · white card carousel · slow auto-slide
═══════════════════════════════════════════════════════ */

.qa-adv-section {
  padding: 52px 0 60px;
  background: #0d3d1a;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

/* Subtle radial glow top-right */
.qa-adv-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Inner wrapper ───────────────────────────────────── */
.qa-adv-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────── */
.qa-adv-header {
  text-align: center;
  margin-bottom: 36px;
}

.qa-adv-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 10px;
}

.qa-adv-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1.13;
  letter-spacing: -.5px;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.qa-adv-desc {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Slider shell ────────────────────────────────────── */
.qa-adv-slider {
  position: relative;
  padding: 0 56px;    /* space for arrows */
}

.qa-adv-viewport {
  overflow: hidden;
  padding: 8px 0 14px;  /* let card shadows breathe */
}

.qa-adv-track {
  display: flex;
  gap: 24px;
  transition: transform .80s cubic-bezier(.22,1,.36,1);
}

/* ── Cards ───────────────────────────────────────────── */
.qa-adv-card {
  flex: 0 0 auto;           /* width injected by JS */
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 20px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.16);
  transition: transform .28s ease, box-shadow .28s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}

.qa-adv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

/* Coloured icon circle */
.qa-adv-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.qa-adv-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qa-adv-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  color: #0d3d1a;
  margin: 0 0 7px !important;
  padding: 0 !important;
  line-height: 1.3;
}

.qa-adv-card-desc {
  font-size: 12.5px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ── Arrow nav buttons ───────────────────────────────── */
.qa-adv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
  /* prevent Kadence hover override */
  text-decoration: none !important;
}

.qa-adv-arrow:hover {
  background: #c9a227 !important;
  border-color: #c9a227 !important;
  transform: translateY(-50%) scale(1.1) !important;
  color: #fff !important;
}

.qa-adv-arrow svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qa-adv-prev { left: 0; }
.qa-adv-next { right: 0; }

/* ── Dot nav ─────────────────────────────────────────── */
.qa-adv-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.qa-adv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .22s ease, transform .22s ease;
}

.qa-adv-dot.is-active {
  background: #c9a227;
  transform: scale(1.45);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .qa-adv-section { padding: 40px 0 48px; }
  .qa-adv-header  { margin-bottom: 28px; }
  .qa-adv-slider  { padding: 0 44px; }
  .qa-adv-track   { gap: 16px; }
}

@media (max-width: 500px) {
  .qa-adv-section { padding: 36px 0 44px; }
  .qa-adv-inner   { padding: 0 16px; }
  .qa-adv-slider  { padding: 0 38px; }
  .qa-adv-arrow   { width: 34px; height: 34px; }
  .qa-adv-arrow svg { width: 15px; height: 15px; }
  .qa-adv-track   { gap: 12px; }
}
