/* Start custom CSS for text-editor, class: .elementor-element-78a2621f *//* ======== 通用排版 ======== */
.immigration-article {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  background-color: #f5f7fa;
  color: #2a2a2a;
  line-height: 1.8;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: auto;
}

.immigration-article img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.immigration-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.immigration-article table th,
.immigration-article table td {
  border: 1px solid #e0e4eb;
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
}

.immigration-article table tr:nth-child(even) {
  background-color: #f9fbff;
}

.immigration-article h3 {
  color: #2d4d90;
  margin-top: 25px;
  text-align: center;
}

/* ======== CTA 區塊 ======== */
.cta-section {
  text-align: center;
  margin: 50px 0 30px;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3366ff, #5c85ff);
  color: #fff;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(51, 102, 255, 0.3);
}

.cta-btn:hover {
  background: linear-gradient(135deg, #274bcc, #4c73ff);
  box-shadow: 0 6px 16px rgba(51, 102, 255, 0.45);
  transform: translateY(-2px);
}

/* ======== 相關連結 (重溫移民資訊) - Full Width ======== */
.related-links {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ PC 版固定三欄 */
  gap: 30px;
  justify-items: center;
  align-items: start;
  margin: 40px auto 0;
  padding: 0 40px; /* 保留左右少少內距，避免太貼邊 */
  box-sizing: border-box;
}

/* 卡片 */
.related-links div {
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 100%; /* ✅ 移除 max-width 限制 */
}

.related-links div:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

/* 標題連結 */
.related-links a {
  display: block;
  color: #2d4d90;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 10px 8px;
  transition: color 0.3s ease;
}

.related-links a:hover {
  color: #3366ff;
}

/* ✅ 圖片固定 16:9 比例，全寬等高 */
.related-links img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 3px solid #e0e4eb;
  display: block;
}

/* 平板兩欄 */
@media (max-width: 991px) {
  .related-links {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 25px;
  }
}

/* 手機單欄 */
@media (max-width: 600px) {
  .related-links {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
}


/* ======== FAQ 區塊 ======== */
.faq-section {
  margin-top: 50px;
  background-color: #ffffff;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.faq-item {
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e4eb;
  padding-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: #f0f4ff;
  border: none;
  text-align: left;
  padding: 14px 16px;
  font-weight: bold;
  font-size: 15px;
  color: #2d4d90;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #e1e8ff;
}

.faq-answer {
  display: none;
  color: #444;
  padding: 10px 15px 0;
  line-height: 1.7;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ======== 聯絡資訊區塊 - Full Width 獨立樣式 ======== */
.contact-section {
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 30px 40px;
  text-align: center;
  color: #2d4d90;
  font-size: 15px;
  line-height: 1.8;
  box-sizing: border-box;
  margin: 60px auto 0;
}

/* ✅ 讓聯絡資訊不受 .immigration-article 限制 */
.immigration-article + .contact-section {
  max-width: 100%;
}

/* ✅ 當與 Full Width 區塊接駁時統一邊距 */
.related-links + .contact-section {
  margin-top: 50px;
}

.contact-section a {
  color: #3366ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: #274bcc;
  text-decoration: underline;
}

/* ✅ 手機優化 */
@media (max-width: 600px) {
  .contact-section {
    padding: 25px 20px;
    font-size: 14px;
  }
}/* End custom CSS */