/**
 * Siksha Connects — FAQ (light premium, homepage-aligned).
 */

.sc-faq-page {
  --sc-navy: #071c4d;
  --sc-navy-mid: #0b245f;
  --sc-teal: #16d5c0;
  --sc-teal-dim: #12b8c8;
  --sc-text: #0f172a;
  --sc-muted: #475569;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  color: var(--sc-text);
  background: linear-gradient(180deg, #f5fafc 0%, #ffffff 38%, #f4f9fb 100%);
}

body.sc-page-faq-premium .main-banner,
body.sc-page-faq-premium .blog.section-padding .sidebar {
  display: none !important;
}

/* Hero — light */
.sc-faq-hero {
  padding: 26px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(7, 28, 77, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7fa 100%);
}

.sc-faq-hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.sc-faq-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--sc-navy);
}

.sc-faq-hero__sub {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--sc-muted);
}

.sc-faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sc-faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.sc-faq-btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--sc-navy-mid) 0%, var(--sc-teal-dim) 100%);
  box-shadow: 0 6px 22px rgba(7, 28, 77, 0.15);
}

.sc-faq-btn--solid:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(22, 213, 192, 0.25);
}

.sc-faq-btn--outline-light {
  color: var(--sc-navy);
  background: #fff;
  border: 1px solid rgba(7, 28, 77, 0.12);
}

.sc-faq-btn--outline-light:hover {
  border-color: rgba(22, 213, 192, 0.45);
  background: rgba(22, 213, 192, 0.06);
}

.sc-faq-btn--ghost-light {
  color: var(--sc-navy-mid);
  background: rgba(22, 213, 192, 0.1);
  border: 1px solid rgba(22, 213, 192, 0.25);
}

.sc-faq-btn--ghost-light:hover {
  background: rgba(22, 213, 192, 0.16);
}

/* Body */
.sc-faq-body {
  padding: 20px 20px 32px;
}

.sc-faq-body__inner {
  max-width: 800px;
  margin: 0 auto;
}

.sc-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 18px;
  justify-content: center;
}

.sc-faq-tab {
  appearance: none;
  border: 1px solid rgba(7, 28, 77, 0.1);
  background: #fff;
  color: var(--sc-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sc-faq-tab--all {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc-faq-tab:hover {
  border-color: rgba(22, 213, 192, 0.4);
}

.sc-faq-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #071c4d 0%, #0b245f 50%, #12b8c8 100%);
  box-shadow: 0 4px 16px rgba(7, 28, 77, 0.12);
}

/* Accordions */
.sc-faq-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-faq-acc {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(7, 28, 77, 0.08);
  box-shadow: 0 2px 14px rgba(7, 28, 77, 0.04);
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.sc-faq-acc:hover {
  border-color: rgba(22, 213, 192, 0.2);
  box-shadow: 0 6px 22px rgba(7, 28, 77, 0.06);
}

.sc-faq-acc.is-hidden {
  display: none;
}

.sc-faq-acc.is-open {
  border-color: rgba(22, 213, 192, 0.35);
  box-shadow: 0 8px 28px rgba(7, 28, 77, 0.08);
}

.sc-faq-acc__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.sc-faq-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--sc-text);
}

.sc-faq-acc__q {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--sc-text);
}

.sc-faq-acc__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(22, 213, 192, 0.12);
  position: relative;
  transition:
    transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.25s ease;
}

.sc-faq-acc__icon::before,
.sc-faq-acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--sc-navy);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.sc-faq-acc__icon::before {
  width: 12px;
  height: 2px;
}

.sc-faq-acc__icon::after {
  width: 2px;
  height: 12px;
}

.sc-faq-acc.is-open .sc-faq-acc__icon {
  background: rgba(22, 213, 192, 0.22);
  transform: rotate(180deg);
}

.sc-faq-acc.is-open .sc-faq-acc__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.sc-faq-acc__panel {
  border-top: 1px solid rgba(7, 28, 77, 0.06);
}

.sc-faq-acc__panel[hidden] {
  display: none;
}

.sc-faq-acc__panel-inner {
  padding: 0 17px 16px;
}

.sc-faq-acc__panel-inner p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
}

/* CTA — compact light card */
.sc-faq-cta {
  padding: 24px 20px 40px;
}

.sc-faq-cta__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 22px 24px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(7, 28, 77, 0.08);
  box-shadow: 0 8px 32px rgba(7, 28, 77, 0.06);
}

.sc-faq-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sc-navy);
}

.sc-faq-cta__sub {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--sc-muted);
}

.sc-faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 600px) {
  .sc-faq-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sc-faq-tab {
    flex: 0 0 auto;
  }

  .sc-faq-acc__q {
    font-size: 15px;
  }

  .sc-faq-cta__inner {
    padding: 18px 16px 20px;
  }
}
