/* ==========================================================================
   LINK BERKAH – Halaman FAQ
   ========================================================================== */

.fq-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-bottom: 18px; padding: 22px 20px;
  color: #fff; border-radius: var(--radius-card);
  background: radial-gradient(420px 180px at 100% 0%, rgba(255, 215, 0, .22), transparent 60%), linear-gradient(125deg, #047857 0%, #059669 45%, #0d9488 100%);
  box-shadow: 0 18px 32px -20px rgba(4, 120, 87, .85);
}
.fq-hero::before, .fq-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.fq-hero::before { width: 220px; height: 220px; right: -70px; top: -100px; background: radial-gradient(circle, rgba(255, 255, 255, .24), transparent 68%); }
.fq-hero::after { width: 190px; height: 190px; right: 12%; bottom: -150px; border: 26px solid rgba(245, 179, 1, .2); }
.fq-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 5px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.fq-eyebrow i { color: #fcd34d; }
.fq-hero h1 {
  margin: 0; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
}
.fq-hero p { margin: 8px 0 0; max-width: 52ch; font-size: .86rem; line-height: 1.6; color: #d1fae5; }

.fq-search { position: relative; margin-bottom: 16px; }
.fq-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--em-600); pointer-events: none; }
.fq-search input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px;
  border: 1px solid var(--em-200); border-radius: 16px; background: #fff;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; color: var(--ink); outline: none; box-shadow: var(--shadow-card);
  -webkit-appearance: none; appearance: none;
}
.fq-search input:focus { border-color: var(--em-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.fq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.fq-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fq-item {
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-card);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.fq-item[hidden] { display: none !important; }
.fq-item.is-on {
  border-color: var(--em-200);
  box-shadow: 0 18px 32px -20px rgba(5, 150, 105, .4);
}

.fq-q {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px;
  border: 0; margin: 0; background: transparent; text-align: left; cursor: pointer;
  color: var(--ink); font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; font-weight: 700; line-height: 1.4;
  -webkit-appearance: none; appearance: none; box-shadow: none;
}
.fq-q:hover { color: var(--em-700); }
.fq-num {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 13px; background: var(--em-50); color: var(--em-700);
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
}
.fq-item.is-on .fq-num {
  background: linear-gradient(145deg, var(--em-500), var(--teal-600)); color: #fff;
  box-shadow: 0 10px 16px -10px rgba(5, 150, 105, .9);
}
.fq-title { flex: 1; min-width: 0; }
.fq-q em {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--em-50); color: var(--em-700);
  font-style: normal; font-size: .72rem;
  transition: transform .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.fq-item.is-on .fq-q em { transform: rotate(180deg); background: var(--em-600); color: #fff; }

.fq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.fq-item.is-on .fq-a { grid-template-rows: 1fr; }
.fq-clip { min-height: 0; overflow: hidden; }
.fq-a-in {
  margin: 0 16px 16px; padding: 14px 16px;
  border-radius: 14px; background: var(--em-50); border: 1px solid var(--em-200);
  font-size: .9rem; line-height: 1.75; color: #334155;
}
.fq-a-in p { margin: 0 0 .75rem; }
.fq-a-in p:last-child { margin-bottom: 0; }
.fq-a-in :is(ul, ol) { margin: 0 0 .75rem; padding-left: 1.2rem; }
.fq-a-in img { max-width: 100%; height: auto; border-radius: 10px; }

.fq-empty { padding: 36px 20px; text-align: center; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); color: var(--muted); font-weight: 600; }
.fq-empty i { display: block; font-size: 2rem; color: var(--em-500); margin-bottom: 8px; }
.fq-empty[hidden] { display: none !important; }

.fq-cta {
  margin-top: 22px; padding: 22px 20px;
  background: linear-gradient(135deg, var(--gold-soft), #ecfdf5);
  border: 1px solid rgba(245, 179, 1, .3); border-radius: var(--radius-card);
}
.fq-cta h2 { margin: 0; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.fq-cta p { margin: 6px 0 0; font-size: .83rem; line-height: 1.6; color: #475569; }
.fq-cta a {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; background: linear-gradient(120deg, var(--em-500), var(--teal-600));
  color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-glow);
}

@media (min-width: 1024px) {
  .fq-hero { padding: 36px 40px; margin-bottom: 24px; }
  .fq-hero h1 { font-size: 2.1rem; }
  .fq-hero p { font-size: .95rem; }
  .fq-q { padding: 18px 20px; font-size: 1.05rem; }
  .fq-a-in { margin: 0 20px 20px 72px; padding: 16px 18px; font-size: .95rem; }
  .fq-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 32px; }
  .fq-cta a { margin-top: 0; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .fq-a, .fq-q em { transition: none; }
}
