/* ==========================================================================
   FAQ Page — Centered 1-Column Editorial Layout (#9E0C17 on White)
   ========================================================================== */

.faq-page {
  background: #ffffff;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   1. Centered Hero Section
   -------------------------------------------------------------------------- */
.faq-hero {
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 4vw, 56px);
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.faq-hero__header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-hero__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  border-radius: 9999px;
  background: #fff5f5;
  border: 1px solid #fee2e2;
}

.faq-hero__sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #9E0C17;
}

.faq-hero__sparkle svg {
  width: 15px;
  height: 15px;
}

.faq-hero__eyebrow {
  color: #9E0C17;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.faq-hero__title {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.faq-hero__title-accent {
  color: #9E0C17;
}

.faq-hero__desc {
  margin: 0 0 28px;
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
}

/* Centered Live Search Box */
.faq-search-box {
  width: 100%;
  max-width: 620px;
  margin-bottom: 24px;
}

.faq-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.faq-search-icon svg {
  width: 18px;
  height: 18px;
}

.faq-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 20px 0 50px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.03);
}

.faq-search-input:focus {
  background: #ffffff;
  border-color: #9E0C17;
  box-shadow: 0 0 0 3px rgb(158 12 23 / 0.08);
}

.faq-search-input::placeholder {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Sticky Filter Tabs Bar (Berdiri sendiri & menempel di bawah header saat scroll)
   -------------------------------------------------------------------------- */
.faq-tabs-bar {
  position: sticky;
  top: var(--header-height, 72px);
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 0;
  box-shadow: 0 4px 16px rgb(15 23 42 / 0.03);
}

.faq-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.faq-tabs-nav::-webkit-scrollbar {
  display: none;
}

.faq-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 180ms ease;
  user-select: none;
}

.faq-tab-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.faq-tab-btn.is-active {
  background: #9E0C17;
  border-color: #9E0C17;
  color: #ffffff;
  box-shadow: 0 4px 14px rgb(158 12 23 / 0.18);
}

.faq-tab-btn__count {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. 1-Column Centered Accordion Content (Max-Width 860px)
   -------------------------------------------------------------------------- */
.faq-content-section {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
}

.faq-accordion-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card-item {
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.faq-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgb(15 23 42 / 0.04);
}

.faq-card-item[open] {
  border-color: #9E0C17;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgb(158 12 23 / 0.06);
}

.faq-card-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-card-item__summary::-webkit-details-marker {
  display: none;
}

.faq-card-item__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.faq-card-item__badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #fff5f5;
  border: 1px solid #fee2e2;
  color: #9E0C17;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.faq-card-item__question {
  margin: 0;
  color: #0f172a;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.faq-card-item[open] .faq-card-item__question {
  color: #9E0C17;
}

.faq-card-item__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

.faq-card-item__chevron svg {
  width: 18px;
  height: 18px;
}

.faq-card-item[open] .faq-card-item__chevron {
  transform: rotate(180deg);
  color: #9E0C17;
}

.faq-card-item__answer {
  padding: 0 28px 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.68;
}

.faq-card-item__answer p {
  margin: 0;
}

/* Empty State (saat pencarian tidak menemukan hasil) */
.faq-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #ffffff;
}

.faq-empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff5f5;
  color: #9E0C17;
  margin-bottom: 14px;
}

.faq-empty-state__icon svg {
  width: 24px;
  height: 24px;
}

.faq-empty-state h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.faq-empty-state p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  max-width: 420px;
}

/* --------------------------------------------------------------------------
   3. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .faq-tabs-bar {
    top: 68px;
    padding: 10px 0;
  }
  .faq-hero {
    padding: 36px 0 32px;
  }
  .faq-hero__title {
    font-size: 26px;
  }
  .faq-hero__desc {
    font-size: 14.5px;
    margin-bottom: 20px;
  }
  .faq-search-input {
    min-height: 48px;
    font-size: 14px;
    padding-left: 44px;
  }
  .faq-tabs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .faq-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .faq-tab-btn {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }
  .faq-content-section {
    padding: 36px 0 52px;
  }
  .faq-card-item__summary {
    padding: 18px 20px;
    gap: 14px;
  }
  .faq-card-item__question {
    font-size: 15px;
  }
  .faq-card-item__answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-tab-btn,
  .faq-card-item,
  .faq-card-item__chevron {
    transition: none !important;
  }
}
