/* Start custom CSS for text-editor, class: .elementor-element-41ab396 *//* =========================================================
   景鴻移民小百科 – 文章主體 + CTA + FAQ (Accordion)
   ========================================================= */

/* === 全文架構 === */
.ek-article {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.85;
  color: #333;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 15px;
}

.ek-article p {
  margin-bottom: 1.2em;
  font-size: 16.5px;
}

.ek-article h3 {
  color: #004c97;
  border-left: 4px solid #004c97;
  padding-left: 10px;
  margin: 35px 0 20px;
  font-size: 1.5em;
  font-weight: 700;
}

.ek-article ul {
  padding-left: 25px;
  margin-bottom: 1.2em;
}

/* === 主圖設定（SEO + Layout Friendly）=== */
.ek-article img.ek-image {
  display: block;
  max-width: 85%;
  height: auto;
  margin: 25px auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === CTA 區塊 === */
.ek-cta-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
  border: 1px solid #cce0ff;
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  margin: 45px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ek-cta-box p {
  font-size: 17px;
  margin-bottom: 18px;
  font-weight: 500;
  color: #003366;
}

/* === CTA 按鈕 === */
.ek-btn,
.ek-btn-alt {
  display: inline-block;
  margin: 8px 10px;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 16px;
}

.ek-btn {
  background: #0072ce;
  color: #fff;
}

.ek-btn:hover {
  background: #004c97;
  transform: translateY(-2px);
}

.ek-btn-alt {
  background: #28a745;
  color: #fff;
}

.ek-btn-alt:hover {
  background: #1e7e34;
  transform: translateY(-2px);
}

/* === 重溫區 === */
.ek-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.ek-gallery a {
  text-align: center;
  text-decoration: none;
  color: #222;
  transition: 0.3s ease;
}

.ek-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.ek-gallery a:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ek-gallery span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #004c97;
}

/* === 頁尾 CTA === */
.ek-footer-cta {
  text-align: center;
  background: #eef6ff;
  border-radius: 10px;
  padding: 30px 25px;
  margin: 50px 0 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ek-footer-cta p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #003366;
}

.ek-footer-cta .ek-btn {
  margin-top: 10px;
  display: inline-block;
}

/* === FAQ 區塊（乾淨簡約版，可展開 / 收合）=== */
.ek-faq-section {
  background: transparent;
  border-top: 1px solid #e6e6e6;
  margin: 40px 0;
  padding-top: 10px;
}

.ek-faq-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #222;
  text-align: left;
  margin-bottom: 20px;
}

.ek-faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

/* summary（可點擊） */
.ek-faq-item > summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.05em;
  font-weight: 600;
  color: #333;
  padding: 8px 0;
  position: relative;
  transition: color 0.25s ease;
}

.ek-faq-item > summary::-webkit-details-marker {
  display: none;
}

/* 右側箭頭 icon */
.ek-faq-item > summary::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
  color: #666;
}

/* 展開狀態 */
.ek-faq-item[open] > summary {
  color: #000;
  font-weight: 650;
}

.ek-faq-item[open] > summary::after {
  transform: translateY(-50%) rotate(90deg);
  color: #0072ce;
}

/* 展開內容 */
.ek-faq-answer {
  margin-top: 6px;
  padding-left: 0;
}

.ek-faq-answer p {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #444;
}

.ek-faq-answer a {
  color: #0066cc;
  text-decoration: underline;
}

.ek-faq-answer a:hover {
  color: #004c97;
}

/* === 行動端優化 === */
@media (max-width: 768px) {
  .ek-article {
    padding: 5px 10px;
  }

  .ek-article img.ek-image {
    max-width: 100%;
    margin: 20px auto;
  }

  .ek-cta-box,
  .ek-footer-cta {
    padding: 20px 15px;
  }

  .ek-btn,
  .ek-btn-alt {
    width: 100%;
    margin: 6px 0;
  }

  .ek-faq-section {
    margin: 30px 0;
  }

  .ek-faq-title {
    font-size: 1.3em;
  }

  .ek-faq-item > summary {
    font-size: 1em;
  }

  .ek-faq-answer p {
    font-size: 15px;
  }
}/* End custom CSS */