:root {
  --bg: #FAF9F6;
  --panel: #FFFFFF;
  --ink: #1B1F3B;
  --ink-soft: #5A5E78;
  --accent: #FF6B4A;
  --accent-soft: #FFE7DF;
  --line: #E7E4DC;
  --shadow: rgba(27, 31, 59, 0.06);
  --radius: 14px;
}

.faq-section {
  padding: 50px 0;
  background-image: url(../images/why-bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.faq-section:after {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8feff96;
}

.faq-section .container {
  width: 80%;
  margin: auto;
  position: relative;
  z-index: 1;
}

.faq-section .faq-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.faq-section .faq-eyebrow span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-light);
}

.faq-section .faq-eyebrow::before,
.faq-section .faq-eyebrow::after {
  content: "";
  height: 1px;
  width: 28px;
  background: #9f9d99;
}

.faq-section .faq_heading h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 45px);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.faq-section .faq_heading h2 em {
  font-style: italic;
  color: var(--txt-light);
}

.faq-section .faq_heading p {
  text-align: center;
  color: var(--txt-light);
  font-size: 18px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 56px;
}

.faq-section .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-section .faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    -10px -10px 15px rgba(255, 255, 255, 0.5),
    10px 10px 15px rgba(70, 70, 70, 0.12);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin: 10px 0;
  padding: 10px 0;
}

.faq-section .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-section .faq-item.active::before {
  transform: scaleY(1);
}

.faq-section .faq-item.active {
  border-color: #EFE1DC;
  box-shadow: 0 6px 20px var(--shadow);
}

.faq-section .faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 26px 5px 26px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--base-color);
}

.faq-section .faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.faq-section .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-section .faq-item.active .faq-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(180deg);
}

.faq-section .faq-icon::before,
.faq-section .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: background 0.3s ease, transform 0.3s ease;
}

.faq-section .faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-section .faq-icon::after {
  width: 1.5px;
  height: 10px;
}

.faq-section .faq-item.active .faq-icon::before,
.faq-section .faq-item.active .faq-icon::after {
  background: #fff;
}

.faq-section .faq-item.active .faq-icon::after {
  transform: scaleY(0);
}

.faq-section .faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq-section .faq-answer {
  padding: 0 26px 24px 26px;
  color: #001079;
  font-size: 16px;
  line-height: 1.7;
}



@media (prefers-reduced-motion: reduce) {

  .faq-section .faq-item,
  .faq-section .faq-icon,
  .faq-section .faq-answer-wrap,
  .faq-section .faq-item::before {
    transition: none !important;
  }
}

@media (max-width: 520px) {
  .faq-section {
    padding: 64px 18px 90px;
  }

  .faq-section .faq-question {
    padding: 18px 18px;
    font-size: 15.5px;
    gap: 14px;
  }

  .faq-section .faq-answer {
    padding: 0 18px 20px 18px;
  }
}

@media (min-width:1200px) and (max-width:1399px) {
  .faq-section .faq_heading p {
    font-size: 16px;
  }

  .faq-section .faq-question {
    font-size: 17px;
  }

  .faq-section .faq-answer {
    font-size: 15px;
  }
}


@media (min-width:1901px) and (max-width:3000px) {
  .faq-section .faq_heading p {
    font-size: 25px;
    max-width: 660px;
  }

  .faq-section .faq-question {
    font-size: 22px;
  }

  .faq-section .faq-answer {
    font-size: 20px;
  }

  .faq-section .faq_heading h2 {
    font-size: clamp(40px, 5vw, 60px);
  }
}