/* .c-list 右側說明文字(取代下拉選單) */
.c-desc {
  margin-left: 20px;
  font-size: 2rem;
  color: #5f6d68;
  line-height: 1.7;
}

/* 版面:左側主選單 + 右側內容 */
.faq-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 80px;
}

/* 讓 .faq-side 的 sticky 生效:祖先 body / .l-wp-html 的 overflow:hidden
   會建立捲動容器而使 sticky 失效;改用 clip(同樣裁切水平溢出但不建立捲動容器)。僅作用於 FAQ 頁。 */
body[data-id="faq"] {
  overflow-x: clip;
}

body[data-id="faq"] .l-wp-html {
  overflow: clip;
}

.faq-side {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e2e2;
  position: sticky;
  top: 117px;
}

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

.faq-side_title {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.faq-side_rule {
  width: 36px;
  height: 3px;
  background: #c89240;
  margin-top: 8px;
}

/* 側欄分類清單 */
.faq-side_list {
  border-top: 1px solid #e2e2e2;
}

.faq-side_link {
  display: block;
  padding: 14px 20px;
  font-size: 1.5rem;
  color: #5f6d68;
  text-decoration: none;
  border-bottom: 1px solid #efefef;
  transition: all .2s;
}

.faq-side_link:hover,
.faq-side_link.is-active {
  color: #c89240;
  background: #edf4f7;
}

.faq-main {
  flex: 1;
  min-width: 0;
}

/* 分類錨點:抵消固定 header(高 97px,對應 main 的 margin-top)+ 留白 */
.faq-cat {
  scroll-margin-top: 112px;
}

@media all and (max-width: 320px) {
  .faq-cat {
    scroll-margin-top: 84px;
  }
}

/* 分類區塊標題 */
.faq-cat_title {
  font-size: 2rem;
  font-weight: 500;
  color: #16556f;
  padding: 8px 0 4px;
  margin: 0 0 8px;
  border-bottom: 2px solid #16556f;
}

.faq-cat + .faq-cat {
  margin-top: 48px;
}

/* 手風琴 */
.faq-item {
  border-bottom: 1px solid #8b938f;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-q_text {
  flex: 1;
  font-size: 1.6rem;
  font-weight: 500;
  color: #4a4943;
  line-height: 1.6;
}

.faq-q_icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  color: #5f6d68;
  font-size: 1.3rem;
  transition: all .2s;
}

.faq-item.is-open .faq-q_text {
  color: #c89240;
}

.faq-item.is-open .faq-q_icon {
  background: #c89240;
  color: #fff;
}

.faq-a {
  display: none;
  padding: 0 8px 24px;
}

.faq-a_inner {
  background: #edf4f7;
  border-left: 3px solid #c89240;
  padding: 18px 22px;
}

.faq-a_inner p {
  margin: 0;
  font-size: 1.5rem;
  color: #5f6d68;
  line-height: 1.9;
}

.faq-a_inner ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.faq-a_inner li {
  font-size: 1.5rem;
  color: #5f6d68;
  line-height: 1.8;
}

/* 底部 CTA */
.faq-cta {
  margin: 40px 0 0;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #c89240;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.faq-cta_title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #4a4943;
  margin: 0 0 8px;
}

.faq-cta_text {
  font-size: 1.4rem;
  color: #5f6d68;
  line-height: 1.8;
  margin: 0;
}

.faq-cta_contact {
  margin-top: 12px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 1.4rem;
  color: #5f6d68;
}

.faq-cta_contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.faq-cta_contact a {
  color: #5f6d68;
  text-decoration: none;
}

.faq-cta_contact a:hover {
  color: #c89240;
}

/* 桌面全站對 a[href^="tel:"] 設 pointer-events:none;此處恢復,讓電話比照 mail 有 hover */
.faq-cta_contact a[href^="tel:"] {
  pointer-events: auto;
}

.faq-cta_btn {
  flex-shrink: 0;
  background: #16556f;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 14px 32px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-cta_btn:hover {
  background: #c89240;
  color: #fff;
}

/* RWD */
@media all and (max-width: 992px) {
  .faq-side {
    display: none;
  }
}

@media all and (max-width: 768px) {
  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-cta_btn {
    width: 100%;
    justify-content: center;
  }
}
