/* =========================================================
   faq.css  –  FAQ Page  (ใช้ร่วมกับ rental.css)
   ========================================================= */

/* ── FAQ icon – clickable link ── */
.Icon-faq-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s, filter 0.2s;
  text-decoration: none;
}

.Icon-faq-link:hover {
  filter: brightness(0.85);
}

.SiteHeader-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.BtnLogin {
  background: var(--color-white);
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-white);
  padding: 10px 28px;
  cursor: pointer;
}

.BtnLogin-text {
  color: var(--color-header);
  font-size: 24px;
  font-weight: 900;
}

/* active state: อยู่หน้า FAQ → ไอคอนเข้มขึ้น (วงกลมพื้นหลังเข้ม) */
.Icon-faq-link--active .Icon-faq {
  filter: brightness(0.6) saturate(1.4);
}

/* ── Page wrapper ── */
.FaqPage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 32px 80px;
  min-height: calc(100vh - 140px);
  background: #ffffff;
}

/* ── White card ── */
.FaqCard {
  width: 100%;
  max-width: 871px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.10);
  padding: 40px 48px 48px;
}

/* ── Page title ── */
.FaqCard-title {
  font-size: 32px;
  font-weight: 700;
  color: #114E72;
  font-family: 'Hanuman', serif;
  text-align: center;
  margin-bottom: 32px;
}

/* ── FAQ list ── */
.FaqList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── FAQ item ── */
.FaqItem {
  border-bottom: 1px solid #7E7E7E;
  overflow: hidden;
  transition: background 0.2s;
}

.FaqItem:nth-child(odd)  { background: #F3F3F3; }
.FaqItem:nth-child(even) { background: #F5F5F5; }

.FaqItem.open { background: #E8F0F6; }

/* ── Question button ── */
.FaqItem-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 65px;
  padding: 0 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Hanuman', serif;
  font-size: 20px;
  font-weight: 700;
  color: #114E72;
  text-align: left;
  gap: 12px;
  transition: color 0.2s;
}

.FaqItem-question:hover { color: #0d3d5b; }

/* ── +/− icon ── */
.FaqItem-icon {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  color: #114E72;
  line-height: 1;
  transition: transform 0.25s ease;
}

.FaqItem.open .FaqItem-icon {
  transform: rotate(180deg);
}

/* ── Answer panel ── */
.FaqItem-answer {
  padding: 4px 28px 20px;
  font-family: 'Hanuman', serif;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.7;
  animation: slideDown 0.25s ease;
}

.FaqItem-answer[hidden] {
  display: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .FaqCard {
    padding: 28px 20px 36px;
  }

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

  .FaqItem-question {
    font-size: 16px;
    padding: 0 16px;
  }

  .FaqItem-answer {
    padding: 4px 16px 16px;
    font-size: 14px;
  }
}