/* ================================
   GLOBAL RESET SAFETY
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================
   FAQ SECTION WRAPPER
================================ */
.faq {
  border-top: 1px solid var(--black-opacity--8);
  border-bottom: 1px solid var(--black-opacity--8);
  background-color: var(--black-opacity--3);
  padding: clamp(64px, 12vw, 14px) 20px;
  display: flex;
  flex-direction: column;
}

/* ================================
   TWO-COLUMN LAYOUT
================================ */
.faq-content {
  width: 100%;
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: flex-start;
}

/* ================================
   LEFT COLUMN
================================ */
.section-heading-and-button.align-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-left-heading .caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.faq-left-heading .caption-shape {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent, #000);
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  margin: 4px 0 8px;
}

.faq-left-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
}

/* ================================
   RIGHT COLUMN – FAQ LIST
================================ */
.faq-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================================
   FAQ CARD
================================ */
.faq-item {
  border-radius: 4rem;
  border: 1px solid var(--black-opacity--8);
  background-color: var(--black-opacity--3);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  padding: 6px 18px;
  position: relative;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-item.active {
  background-color: rgba(255, 255, 255, 0.75);
}

/* ================================
   QUESTION ROW
================================ */
.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 4px;
}

/* IMAGE */
.faq-image {
  width: clamp(48px, 7vw, 60px);
  height: clamp(48px, 7vw, 60px);
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  padding: 0.45rem;
  object-fit: cover;
}

/* TITLE */
.faq-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  line-height: 1.4;
}

/* ICON */
.faq-icon {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  /* border: 1px solid rgba(0, 0, 0, 0.18); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.faq-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #18181b;
  border-bottom: 1.5px solid #18181b;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon::before {
  transform: rotate(-135deg);
}

/* ================================
   ANSWER
================================ */
.faq-answer {
  max-height: 0;
  padding: 0 14px 0 80px;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.7);
  transition:
    max-height 0.35s ease,
    padding-bottom 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px; /* prevents clipping */
  padding-bottom: 18px;
}

.faq-answer-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ================================
   TABLET (≤1024px)
================================ */
@media (max-width: 1024px) {
  .faq-title {
    font-size: 15px;
  }

  .faq-answer-text {
    font-size: 14.5px;
  }
}

/* ================================
   MOBILE (≤768px)
================================ */
@media (max-width: 768px) {
  .faq-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-item {
    border-radius: 28px;
    padding: 6px 14px;
  }

  .faq-question {
    align-items: flex-start;
    gap: 14px;
  }

  .faq-image {
    width: 46px;
    height: 46px;
  }

  .faq-answer {
    padding-left: 68px;
    padding-right: 10px;
  }
}

/* ================================
   SMALL MOBILE (≤480px)
================================ */
@media (max-width: 480px) {
  .faq {
    padding: 56px 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .faq-title {
    font-size: 14.5px;
  }

  .faq-item {
    border-radius: 22px;
  }

  .faq-image {
    width: 42px;
    height: 42px;
  }

  .faq-answer {
    padding-left: 58px;
  }

  .faq-answer-text {
    font-size: 14px;
  }
}

/* ================================
   LARGE DESKTOP (≥1440px)
================================ */
@media (min-width: 1440px) {
  .faq-content {
    max-width: 1280px;
  }

  .faq-title {
    font-size: 17px;
  }

  .faq-answer-text {
    font-size: 15.5px;
  }
}
