/* ============================================ */
/* FAQ PAGE                                     */
/* ============================================ */

/* ── Narrow Container (900px for readability) ── */
.coastline-container-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .coastline-container-narrow {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Category Header ─────────────────────────── */
.cfaq-category-header {
  margin-bottom: 30px;
}

.cfaq-category-header .coastline-section-heading {
  text-align: left;
  font-size: 30px;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #af6661;
}

/* ── Accordion Container ─────────────────────── */
.cfaq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Single FAQ Item ─────────────────────────── */
.cfaq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cfaq-item:last-child {
  border-bottom: none;
}

/* ── Question Button ─────────────────────────── */
.cfaq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0 22px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  transition: color 0.2s ease;
}

.cfaq-question:hover,
.cfaq-question:focus {
  color: #af6661;
  background-color: #fff;
}

.cfaq-question-text {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #121b25;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.cfaq-question:hover .cfaq-question-text {
  color: #af6661;
}

/* ── Plus/Minus Icon ─────────────────────────── */
.cfaq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #375472;
  transition: all 0.3s ease;
}

.cfaq-question:hover .cfaq-icon {
  background: #f4fbff;
  color: #af6661;
}

/* Active state: rotate plus into minus */
.cfaq-item.cfaq-active .cfaq-icon {
  background: #af6661;
  color: #ffffff;
  transform: rotate(45deg);
}

.cfaq-item.cfaq-active .cfaq-question-text {
  color: #af6661;
}

/* ── Answer Panel ────────────────────────────── */
.cfaq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0px 22px;
  border-left: 3px solid #121b25;
}

.cfaq-answer-inner {
  padding: 22px 0;
}

.cfaq-answer-inner p {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #375472;
  margin: 0;
}

.cfaq-answer-inner a {
  color: #af6661;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cfaq-answer-inner a:hover {
  color: #121b25;
}

.cfaq-answer-link {
  margin-top: 14px !important;
}

.cfaq-answer-link a {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #af6661;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cfaq-answer-link a:hover {
  color: #121b25;
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .cfaq-category-header .coastline-section-heading {
    font-size: 24px;
  }

  .cfaq-question {
    padding: 18px 0;
    gap: 14px;
  }

  .cfaq-question-text {
    font-size: 16px;
  }

  .cfaq-answer-inner p {
    font-size: 15px;
  }

  .cfaq-icon {
    width: 28px;
    height: 28px;
  }
}

/* ── GeneratePress Full-Width Override ────────── */
.page-template-templates-page-faq-php .site-content,
.page-template-page-faq .site-content {
  display: block !important;
}
.page-template-templates-page-faq-php .inside-article,
.page-template-page-faq .inside-article {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-templates-page-faq-php #primary,
.page-template-page-faq #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
.page-template-templates-page-faq-php .entry-content,
.page-template-page-faq .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-templates-page-faq-php #right-sidebar,
.page-template-templates-page-faq-php #left-sidebar,
.page-template-page-faq #right-sidebar,
.page-template-page-faq #left-sidebar {
  display: none !important;
}
/* ── Reduce padding between FAQ category sections ── */
.page-template-templates-page-faq-php .coastline-section-white,
.page-template-page-faq .coastline-section-white {
  padding: 80px 20px 0;
}

.page-template-templates-page-faq-php .coastline-section-white:last-of-type,
.page-template-page-faq .coastline-section-white:last-of-type {
  padding-bottom: 100px;
}
