@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  /* 允許在任何字元處斷行（包含標點） */
  line-break: anywhere;

  /* 讓中文斷行更自由（搭配上面效果更明顯） */
  word-break: break-word;
}

html,
body {
  scroll-behavior: smooth !important;
}

body {
  /* max-width: 1920px; */
  margin: 0 auto;
  /* 1) 確保不合成粗體 */
  font-synthesis: none;

  /* 2) 讓渲染更接近設計工具 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg {
  max-width: 100%;
}

h1,
h2 {
  z-index: 99 !important;
}

.web_search-input::placeholder {
  color: #0a0a0a;
  opacity: 1;
}

.site-header {
  z-index: 999;
  position: relative;
}

.site-header .custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 80px;
}

.page-template-page-thank-you .site-header {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(20px);
}

.privacy-policy .site-header {
  background: var(--Secondary-05, #f7f5ef);
}

/* ================================
   Mobile Header Menu
================================ */

.site-header {
  position: relative;
  z-index: 1000;
}

.site-branding {
  position: relative;
  z-index: 1001;
}

/* 按鈕 */
#m_menu-toggle {
  position: relative;
  z-index: 1003;
  display: block;
}

#m_menu-toggle .menu-label {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

#m_menu-toggle .menu-label-open {
  background: #c83c23;
  color: #ffffff;
  transform: translateY(0);
}

#m_menu-toggle .menu-label-close {
  background: #f7f5ef;
  color: #c83c23;
  transform: translateY(100%);
}

#m_menu-toggle.is-active .menu-label-open {
  transform: translateY(-100%);
}

#m_menu-toggle.is-active .menu-label-close {
  transform: translateY(0);
}

/* 手機選單：預設關閉，藏在畫面右邊 */
#webNavigationM.web_nav_m {
  position: fixed;
  top: 115px;
  right: 0;
  left: auto;

  width: 100%;
  height: calc(100dvh - 115px);
  z-index: 1002;

  background: #f7f5ef;
  overflow-y: auto;
  padding: 24px 8.3% 48px;

  display: block;

  transform: translate3d(100%, 0, 0);
  opacity: 1;
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.4s ease,
    visibility 0s linear 0.4s;

  will-change: transform;
  backface-visibility: hidden;
}

/* 手機選單：開啟，從右邊滑入 */
#webNavigationM.web_nav_m.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.4s ease,
    visibility 0s linear 0s;
}

/* 選單開啟時禁止 body 捲動 */
body.mobile-menu-open {
  overflow: hidden;
}

/* 手機搜尋 */
#webNavigationM .mobile-menu-search {
  margin-bottom: 24px;
}

#webNavigationM .mobile-search-field {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 100px;
  background: rgba(84, 60, 37, 0.1);
  padding: 0 48px;
}

#webNavigationM .mobile-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webNavigationM .mobile-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #0a0a0a;
}

#webNavigationM .mobile-search-submit {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 手機選單列表 */
#webNavigationM .mobile-menu-nav .designhuHeader {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#webNavigationM .mobile-menu-nav .designhuHeader li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#webNavigationM .mobile-menu-nav .designhuHeader a {
  display: block;
  color: var(--Gray-01, #0a0a0a);
  text-align: center;

  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1px;
}
#webNavigationM .mobile-menu-nav .designhuHeader a.accordion-item-li-item-link {
  color: #c83c23;
  font-size: 24px;
}
/* 子選單基本樣式 */
#webNavigationM .mobile-menu-nav .designhuHeader .accordion-item-content-ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web_nav ul {
  display: flex;
  gap: 40px;
}
.web_nav ul li span {
  color: var(--Gray-01, #0a0a0a);
  text-align: center;
  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 27px */
  letter-spacing: 1px;
}
html[lang^="en"] .web_nav ul li span {
  font-size: 13px;
}
@media (max-width: 1320px) {
  html[lang^="en"] .web_nav ul {
    gap: 24px;
  }
  html[lang^="en"] .web_nav ul li span {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .web_nav ul {
    gap: 20px;
  }
  html[lang^="en"] .web_nav ul {
    gap: 16px;
  }
  html[lang^="en"] .web_nav ul li span {
    font-size: 11px;
  }
  .web_nav ul li span {
    font-size: 15px;
  }
}
@media (max-width: 1024px) {
  .web_nav ul {
    gap: 12px;
  }
}

/* 第一層 li 當定位基準 */
#webNavigation .designhuHeader li.menu-item-has-children {
  position: relative;
}

/* 第二層預設隱藏 */
#webNavigation .accordion-item-content-nav {
  display: none;

  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  padding-top: 12px;

  z-index: 999;
}

/* 真正紅色選單 */
#webNavigation .accordion-item-content-ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;

  padding: 24px 40px;

  border-radius: 20px;
  background: var(--Primary-01, #e72418);
  box-shadow: 0 10px 60px rgba(84, 60, 37, 0.1);
}

/* hover 第一層時顯示第二層 */
#webNavigation .accordion-item-li:hover > .accordion-item-content-nav {
  display: flex;
}

/* 第二層選單樣式 */
#webNavigation .accordion-item-content-ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================================
   子選單 hover / current 白色圓點
================================ */

/* 關掉原本掛在 li 上的圓點，避免位置亂跑 */
#webNavigation .accordion-item-content-ul .accordion-item-content-li::before,
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li:hover::before,
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li.current_page_item::before,
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li.current-menu-item::before {
  content: none !important;
  display: none !important;
}

/* 實際的 a class 是 accordion-item-content-li-item-link */
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li
  > a.accordion-item-content-li-item-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: start !important;
  padding-left: 0 !important;
  transition: padding-left 0.3s ease;
}

/* 用 ::after 做圓點，避免跟 lineBottom 原本的 ::before 衝突 */
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li
  > a.accordion-item-content-li-item-link::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 20% !important;
  transform: translateY(-50%) !important;
  width: 12px !important;
  height: 12px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Ccircle cx='6' cy='6' r='6' fill='white'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  transition: opacity 0.3s ease;
}

/* hover 時文字右移，圓點顯示 */
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li
  > a.accordion-item-content-li-item-link:hover {
  padding-left: 24px !important;
}

#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li
  > a.accordion-item-content-li-item-link:hover::after {
  opacity: 1 !important;
}

/* 目前頁面也維持圓點 */
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li.current_page_item
  > a.accordion-item-content-li-item-link,
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li.current-menu-item
  > a.accordion-item-content-li-item-link {
  padding-left: 24px !important;
}

#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li.current_page_item
  > a.accordion-item-content-li-item-link::after,
#webNavigation
  .accordion-item-content-ul
  .accordion-item-content-li.current-menu-item
  > a.accordion-item-content-li-item-link::after {
  opacity: 1 !important;
}

#webNavigation .accordion-item-content-li a {
  display: block;
  padding: 4px 8px;
}

#webNavigation .accordion-item-content-li a span {
  white-space: nowrap;
  color: var(--Gray-07, #fff);

  /* 標題h5 */
  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 27px */
  letter-spacing: 1px;
}

/* =========================
   Footer sitemap 特殊排版
   ========================= */

/* 關鍵：讓 7 個 menu group 直接參與外層 grid */
.footer-sitemap-groups {
  display: contents;
}

/* 平板 */
@media (max-width: 1199px) {
  .footer-sitemap-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 36px;
  }
}

/* 手機 */
@media (max-width: 767px) {
  .footer-sitemap-layout {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
}

/* =========================
   Contact Form 7
   ========================= */

.footer-newsletter-form .wpcf7 {
  width: 100%;
}

.footer-newsletter-form .wpcf7 form {
  margin: 0;
}

.footer-newsletter-form .wpcf7-form p {
  margin: 0;
}

.footer-newsletter-form .footer-subscribe-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.footer-newsletter-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.footer-newsletter-form .footer-subscribe-input,
.footer-newsletter-form input[type="email"] {
  width: 100%;
  height: 44px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: #ffffff;
  padding: 0 14px;
  color: #0d0d0d;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
}

.footer-newsletter-form .footer-subscribe-input::placeholder,
.footer-newsletter-form input[type="email"]::placeholder {
  color: #c8c8c8;
}

.footer-newsletter-form .footer-subscribe-submit,
.footer-newsletter-form input[type="submit"] {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: #ffffff;
  color: #0d0d0d;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: opacity 0.3s ease;
}

.footer-newsletter-form .footer-subscribe-submit:hover,
.footer-newsletter-form input[type="submit"]:hover {
  opacity: 0.7;
}

.footer-newsletter-form .wpcf7-spinner {
  margin: 10px 0 0;
}

.footer-newsletter-form .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 12px;
  line-height: 150%;
}

.footer-newsletter-form .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 8px 12px !important;
  font-size: 13px;
  line-height: 150%;
}

.bottom-footer-grid .footer-menu-group:nth-of-type(3) a {
  color: #c83c23 !important;
}

/* 麵包屑 */
.custom-yoast-breadcrumbs span {
  display: flex;
  align-items: center;
  font-family: "Noto Sans TC";
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 150%;
}

.custom-yoast-breadcrumbs > span {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
}

.custom-yoast-breadcrumbs span a {
  color: var(--Gray-01, #0a0a0a);
  text-align: center;
  font-family: "Noto Sans TC";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
}

/* Home */
/* 只針對這顆新的 swiper，避免被你前面舊版 fixed 寬度干擾 */
.home-news-section {
  position: relative;
  z-index: 50;
  width: 100%;
  overflow: hidden;
  padding: 48px 0;
}

.home-news-swiper-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

/**
* 402 + 24 + 588 + 24 + 402 = 1440
*/
.home-news-swiper {
  width: 1440px;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.home-news-swiper .swiper-wrapper {
  align-items: stretch;
  will-change: transform;
  max-height: 382px;
}

.home-news-slide {
  width: 588px;
  height: auto;
  max-height: 382px;
  flex-shrink: 0;
  overflow: visible;
}
@media (max-width: 1200px) {
  .home-news-slide {
    width: 488px;
    max-height: 317px;
  }
}
@media (max-width: 768px) {
  .home-news-slide {
    width: 388px;
    max-height: 252px;
  }
}
@media (max-width: 480px) {
  .home-news-slide {
    width: 358px;
    max-height: 232px;
  }
}

/**
* 修正圖 2 陰影怪怪的問題：
* 不讓 slide 或 swiper 裁切陰影，並讓卡片本身負責陰影。
*/
.home-news-card {
  /* height: 100%; */
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 40px 0 rgba(84, 60, 37, 0.15);
  transform: translateZ(0);
}

.home-news-card__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-news-card__image {
  height: 294px;
  aspect-ratio: 588 / 294;
  overflow: hidden;
  background: #eee;
}
@media (max-width: 1200px) {
  .home-news-card__image {
    height: 244px;
  }
}

.home-news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: translateZ(0);
}

.home-news-card:hover .home-news-card__image img {
  transform: translateZ(0) scale(1.03);
}

.home-news-card__body {
  display: flex;
  height: 88px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px;
  background: #fff;
}

.home-news-card__title {
  margin: 0;
  padding: 4px 8px;
  color: #0a0a0a;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-news-card__desc {
  min-width: 0;
  margin: 4px 0 0;
  padding: 4px 8px;
  overflow: hidden;
  color: #5c5c5c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
}

.home-news-swiper-btn {
  position: absolute;
  top: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #c83c23;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-news-swiper-btn--prev {
  left: max(16px, calc(50% - 720px + 16px));
}

.home-news-swiper-btn--next {
  right: max(16px, calc(50% - 720px + 16px));
}

.home-news-swiper,
.home-news-swiper .swiper-wrapper,
.home-news-swiper .swiper-slide {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.vision-tab-btn.is-active {
  border-bottom: 2px solid var(--Secondary-04, #c83c23);
}
.vision-tab-btn.is-active span.text-h3 {
  color: var(--Gray-01, #0a0a0a);
}

.board-radius:last-child td:last-child {
  border-radius: 0 0 20px 0;
}
.board-radius td[rowspan="3"] {
  border-radius: 0 0 0 20px;
  border-bottom: 0;
  border-left: 0;
}
.board-radius td[rowspan="1"],
.board-radius td[rowspan="8"] {
  border-left: 0;
}

.slogan-block a:hover {
  text-decoration: underline;
}

/* =========================
   Doctor Filter
========================= */
.doctor-filter-btn.is-active,
.doctor-filter-btn:hover {
  background: rgba(200, 60, 35, 0.2);
  border-radius: 5px;
  color: #0a0a0a;
}

.doctor-card.is-hidden {
  display: none;
}

/* =========================
   Doctor Modal Base
========================= */
.doctor-modal {
  display: none;
}

.doctor-modal.is-open {
  display: block;
}

.doctor-modal__dialog {
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding-top: 48px; /* 給 tabs 空間 */
  border-radius: 0;
  box-sizing: border-box;
}

/* =========================
   Tabs
========================= */

.doctor-modal__tabs::-webkit-scrollbar {
  display: none;
}

.doctor-modal__tab {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.doctor-modal__tab-inner {
  position: relative;
  display: block;
}

.doctor-modal__tab-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.doctor-modal__tab-shape {
  fill: #b3b3b3;
  transition: fill 0.3s ease;
}

.doctor-modal__tab-text {
  color: #5f5f5f;
  transition: color 0.3s ease;
  pointer-events: none;
}

/* active */
.doctor-modal__tab.is-active .doctor-modal__tab-shape {
  fill: #ffffff;
}

.doctor-modal__tab.is-active .doctor-modal__tab-text {
  color: #0a0a0a;
}

/* hover */
.doctor-modal__tab:hover .doctor-modal__tab-shape {
  fill: #efefef;
}

.doctor-modal__tab:hover .doctor-modal__tab-text {
  color: #0a0a0a;
}

/* focus */
.doctor-modal__tab:focus-visible .doctor-modal__tab-inner {
  outline: 2px solid #c83c23;
  outline-offset: 2px;
  border-radius: 18px 18px 0 0;
}

/* =========================
   Panels
========================= */
.doctor-modal__panel {
  display: none;
}

.doctor-modal__panel.is-active {
  display: block;
}

.doctor-modal__panel-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .doctor-modal__panel-content {
    grid-template-columns: 1fr;
  }
}

.doctor-modal__panel-text {
  min-width: 0;
}

.doctor-modal__panel-image {
  width: 100%;
}

.doctor-modal__panel-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =========================
   Bio 內文
========================= */
.doctor-modal__bio p {
  margin: 0 0 1.2em;
}

.doctor-modal__bio p:last-child {
  margin-bottom: 0;
}

/* =========================
   Close Button
========================= */
.doctor-modal__close {
  transition: opacity 0.25s ease;
}

.doctor-modal__close:hover {
  opacity: 0.7;
}

.service-tab-btn.is-active {
  background: #c83c23;
  color: #fff;
}

.education-two-images-block-inside,
.education-image-content-block-inside {
  transition: background-color 0.4s ease;
}

.education-two-images-block-inside.is-active,
.education-image-content-block-inside.is-active {
  background-color: #f7f5ef !important;
}
.education-two-images-block-inside.is-active .title-block,
.education-image-content-block-inside.is-active .title-block {
  border-bottom-color: #e72418;
}

._df_book {
  border-radius: 20px;
}
.df-viewer canvas {
  background-color: #333;
}
.df-viewer .df-3dcanvas {
  padding: 20px 0 50px 0;
}
.df-float .df-ui {
  margin-bottom: 20px !important;
}

.enterprise-tab-button {
  background: #fff;
  color: #c83c23;

  transition: all 0.3s ease;

  cursor: pointer;
}

.enterprise-tab-button:hover,
.enterprise-tab-button.is-active {
  background: #c83c23;
  color: #fff;
}

.enterprise-tab-panel {
  display: none;
}

.enterprise-tab-panel.is-active {
  display: block;
}

/* 奇數 */
.thanks-cards .thanks-card:nth-child(odd) {
  background: #f5f5f5;
}
/* 偶數 */
.thanks-cards .thanks-card:nth-child(even) {
  background: #f7f5ef;
}

.footer-newsletter-form .wpcf7-form input[type="text"],
.footer-newsletter-form .wpcf7-form input[type="tel"],
.footer-newsletter-form .wpcf7-form input[type="email"] {
  width: 100%;
  height: 45px;

  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;

  border-radius: 5px;
  background: #fff;

  outline: none;
  border: none;

  color: var(--Gray-04, #8f8f8f);

  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 28.8px */
  letter-spacing: 1px;
}

.footer-newsletter-form .wpcf7-form input::placeholder {
  color: #999;
}

.footer-newsletter-form .join-submit-btn input[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;

  border-radius: 5px;
  background: #c83c23;

  color: #fff;

  border: none;
  cursor: pointer;

  transition: all 0.3s ease;
}

.join-submit-btn input[type="submit"]:hover {
  opacity: 0.9;
}

.footer-newsletter-form .wpcf7-form .grid-input {
  color: var(--Gray-04, #8f8f8f);
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
}

.wpcf7-spinner {
  display: none !important;
}

.grid-title-block {
  margin-bottom: 34px;
}
.grid-button {
  margin-top: 32px;
}

/* ========================================
   Sassy Social Share Custom Icons
======================================== */

.social-btn .heateor_sss_sharing_ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

/* 清除 float */
.social-btn .heateorSssClear {
  display: none !important;
}

/* ========================================
   每顆按鈕
======================================== */

.social-btn .heateor_sss_sharing_ul > a {
  position: relative !important;

  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;

  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 999px !important;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  overflow: hidden !important;

  transition: transform 0.3s ease !important;
}

/* hover */
.social-btn .heateor_sss_sharing_ul > a:hover {
  transform: translateY(-3px) !important;
}

/* ========================================
   隱藏原本 icon
======================================== */

.social-btn .heateor_sss_sharing_ul > a > span.heateor_sss_svg {
  display: none !important;
}

.social-btn .heateor_sss_sharing_ul > a svg {
  display: none !important;
}

/* ========================================
   自訂 icon
======================================== */

.social-btn .heateor_sss_sharing_ul > a::before {
  content: "" !important;

  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  background-repeat: no-repeat !important;
  background-position: center !important;

  /* icon 大小 */
  background-size: 40px 40px !important;

  transition: transform 0.3s ease !important;
}

/* hover */
.social-btn .heateor_sss_sharing_ul > a:hover::before {
  transform: scale(1.08) !important;
}

/* ========================================
   Facebook
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_facebook::before {
  background-image: url("/wp-content/uploads/Facebook-1.png") !important;
}

/* ========================================
   Instagram
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_instagram::before,
.social-btn .heateor_sss_sharing_ul > a.heateor_sss_instagram::before {
  background-image: url("/wp-content/uploads/Instagram-1.png") !important;
}

/* ========================================
   Threads
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_threads::before {
  background-image: url("/wp-content/uploads/Threads-1.png") !important;
}

/* ========================================
   LINE
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_line::before {
  background-image: url("/wp-content/uploads/Line-1.png") !important;
}

/* ========================================
   SMS
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_sms::before {
  background-image: url("/wp-content/uploads/Contact.png") !important;
}

.info-block:first-child .social-btn {
  padding-left: 0 !important;
}

/* 關閉搜尋的x */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

/* 聯絡表單CF7 */
.contact-form-custom {
  width: 100%;
}

.contact-form-custom .form-section {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form-custom .form-section .group {
  display: flex;
  flex-direction: column;
}

.contact-form-custom .contact-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  /* padding: 16px 48px 16px 16px; */

  border: none;
  border-radius: 4px;
  background-color: #f3f3f3;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M10.3152 10.5L17.6827 10.5C17.9736 10.4995 18.2586 10.5815 18.5048 10.7364C18.7511 10.8912 18.9484 11.1126 19.074 11.375C19.221 11.6862 19.2776 12.0326 19.2374 12.3745C19.1972 12.7163 19.0617 13.0401 18.8465 13.3087L15.1627 17.7712C15.0182 17.938 14.8394 18.0718 14.6386 18.1635C14.4379 18.2552 14.2197 18.3026 13.999 18.3026C13.7782 18.3026 13.5601 18.2552 13.3593 18.1635C13.1585 18.0718 12.9798 17.938 12.8352 17.7712L9.15148 13.3087C8.93622 13.0401 8.80077 12.7163 8.76054 12.3745C8.72032 12.0326 8.77695 11.6862 8.92398 11.375C9.04958 11.1126 9.24691 10.8912 9.49312 10.7364C9.73933 10.5815 10.0244 10.4995 10.3152 10.5Z' fill='%238F8F8F'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 28px 28px;

  cursor: pointer;
}
.contact-form-custom .contact-select:focus {
  outline: none;
}

.contact-form-custom h3 {
  color: var(--Gray-01, #0a0a0a);

  /* 標題h5 */
  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1px;
}

.contact-form-custom p {
  color: var(--Gray-01, #0a0a0a);

  /* 內文 Small */
  font-family: "Noto Sans TC";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
}

.contact-form-custom .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form-custom .form-left,
.contact-form-custom .form-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px;
}
.form-right .wpcf7-form-control-wrap {
  max-height: 89.5px;
}

.contact-form-custom .form-right.project .wpcf7-form-control-wrap {
  max-height: none;
  height: 274px;
}
.contact-form-custom .form-right.project textarea {
  height: 274px;
}

.contact-form-custom input,
.contact-form-custom select,
.contact-form-custom textarea {
  width: 100%;
  min-height: 53px;
  border: none;
  border-radius: 5px;
  background: #f5f5f5;
  padding: 12px 16px;
  outline: none;

  color: var(--Gray-01, #0a0a0a);
  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 28.8px */
  letter-spacing: 1px;
}

.contact-form-custom textarea {
  height: 89.5px;
  resize: vertical;
}

.contact-form-custom .field-note {
  margin-bottom: 0;
  color: #5c5c5c;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form-custom .radio-block {
  display: flex;
  flex-direction: column;
}

.contact-form-custom .radio-block p {
  margin: 0;
  color: #5c5c5c;
}

.contact-form-custom .radio-title {
  color: var(--Gray-04, #8f8f8f);

  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
}

.contact-form-custom .wpcf7-list-item-label {
  color: var(--Gray-03, #5c5c5c);
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
}

.contact-form-custom .wpcf7-list-item {
  margin: 0 16px 0 0;
}

.contact-form-custom .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   非 CF7 樣式
   Google Map / Privacy / Vision Tabs / More Button / Table
========================================================= */

/* google map 相關設定 */
.entering-locations__inner {
  display: block;
  width: 100%;
}

.entering-locations__map {
  width: 100%;
  height: 520px;
  min-height: 520px;
  display: block;
  border-radius: 40px;
  overflow: hidden;
  background: #e5e5e5;
  box-shadow: 0 10px 60px 0 rgba(84, 60, 37, 0.1);
}

/**
  * Google Map HTML Marker
  */
.map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.map-marker-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.map-label {
  color: #0a0a0a;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;

  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 -1px 2px rgba(255, 255, 255, 1),
    1px 0 2px rgba(255, 255, 255, 1),
    -1px 0 2px rgba(255, 255, 255, 1),
    1px 1px 2px rgba(255, 255, 255, 1),
    -1px -1px 2px rgba(255, 255, 255, 1),
    1px -1px 2px rgba(255, 255, 255, 1),
    -1px 1px 2px rgba(255, 255, 255, 1);

  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
}

.entering-map-info-window {
  max-width: 240px;
}

.entering-map-info-window h3 {
  margin: 0 0 6px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.entering-map-info-window p {
  margin: 0;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.6;
}

.gm-style .gm-style-iw-c {
  padding: 20px 20px 10px 20px !important;
}

.gm-style-iw-chr {
  position: absolute;
  right: 0;
  top: 0px;
}

@media (max-width: 1023px) {
  .entering-locations__map {
    height: 420px;
    min-height: 420px;
    border-radius: 28px;
  }

  .map-marker-icon {
    width: 70px;
    height: 70px;
  }

  .map-label {
    font-size: 14px;
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.95);
  }
}

/* Privacy Policy */
.privacy-policy .site-main {
  background: var(--Secondary-05, #f7f5ef);
  padding: 8.33%;
}

.privacy-policy .heateor_sss_sharing_container {
  display: none;
}

.privacy-policy h2 {
  margin-bottom: 12px;
}

/* ================================
   Vision Tabs RWD
   1024px 以下：左右箭頭 + 橫向滑動，顯示 2 個
   480px 以下：顯示 1 個
================================ */

.vision-tabs-outer {
  position: relative;
}

.vision-tab-arrow {
  display: none;
}

.vision-tab-btn[aria-selected="true"] span:last-child,
.vision-tab-btn.is-active span:last-child {
  color: #0a0a0a;
}

.vision-tab-btn[aria-selected="true"]::after,
.vision-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: #c83c23;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .vision-tabs-outer {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vision-tab-arrow {
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #c83c23;
    transition:
      color 0.3s ease,
      opacity 0.3s ease;
  }

  .vision-tab-arrow svg {
    display: block;
    width: 32px;
    height: 32px;
  }

  .vision-tab-arrow:disabled {
    color: #dbdbdb;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
  }

  .vision-tabs {
    width: calc(100% - 88px);
    display: flex !important;
    justify-content: flex-start !important;
    gap: 24px !important;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .vision-tabs::-webkit-scrollbar {
    display: none;
  }

  .vision-tab-btn {
    flex: 0 0 calc((100% - 24px) / 2) !important;
    width: calc((100% - 24px) / 2) !important;
    max-width: calc((100% - 24px) / 2) !important;
    min-width: 0;

    justify-content: center !important;
    align-items: center !important;
    text-align: center;

    padding: 12px 16px 16px !important;
    scroll-snap-align: start;

    gap: 12px !important;
  }

  .vision-tab-btn span:first-child {
    font-size: 18px !important;
    flex-shrink: 0;
  }

  .vision-tab-btn span:last-child {
    line-height: 1.5;
    color: #8f8f8f;
    transition: color 0.3s ease;
  }

  .vision-tab-panel > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }

  .vision-tab-panel .text-body-regular {
    width: 100% !important;
    max-width: none !important;
  }

  .vision-tab-panel .aspect-\[3\/2\] {
    width: 100% !important;
    flex: none !important;
  }
}

@media (max-width: 480px) {
  .vision-tabs {
    gap: 0 !important;
  }

  .vision-tab-btn {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 8px 16px !important;
    scroll-snap-align: center;
  }

  .vision-tab-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
  }
}

/* More Button Icon Animation */
.more-icon__eye-left,
.more-icon__eye-right,
.more-icon__nose,
.more-icon__nose-shadow,
.more-icon__mouth {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.more-btn:hover .more-icon__eye-left {
  transform: translateX(1.2px);
}

.more-btn:hover .more-icon__eye-right {
  transform: translateX(-1.2px);
}

.more-btn:hover .more-icon__nose,
.more-btn:hover .more-icon__nose-shadow,
.more-btn:hover .more-icon__mouth {
  transform: translateX(2px);
}

.more-btn {
  border-radius: 5px;
  transition:
    background-color 0.35s ease,
    border-radius 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-submit-btn:hover,
.more-btn:hover {
  border-radius: 28px !important;
}

/* Admin Board Table */
.admin-board-table tbody tr:nth-child(even) td:not([rowspan]) {
  background: var(--Gray-06, #f5f5f5);
}

/* =========================================================
   CF7 共用樣式
========================================================= */

/* Radio / Checkbox 外層 */
.contact-form-custom .radio-block .wpcf7-form-control-wrap,
.radio-block .wpcf7-form-control-wrap {
  display: flex;
  width: 100%;
}

/* radio 跟 checkbox 共用排列 */
.contact-form-custom .radio-block .wpcf7-radio,
.contact-form-custom .radio-block .wpcf7-checkbox,
.radio-block .wpcf7-radio,
.radio-block .wpcf7-checkbox {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* CF7 每個選項 */
.contact-form-custom .radio-block .wpcf7-list-item,
.radio-block .wpcf7-list-item {
  margin: 0;
}

/* Label */
.contact-form-custom .radio-block .wpcf7-list-item label,
.radio-block .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

/* 隱藏原本 radio / checkbox，改成圓形 */
.contact-form-custom .radio-block input[type="radio"],
.contact-form-custom .radio-block input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 20px;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  padding: 0 !important;

  border-radius: 999px;
  background: #f5f5f5;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

/* 中間填滿效果 */
.contact-form-custom .radio-block input[type="radio"]::after,
.contact-form-custom .radio-block input[type="checkbox"]::after,
.radio-block input[type="radio"]::after,
.radio-block input[type="checkbox"]::after {
  content: "";
  position: absolute;

  top: 50%;
  left: 50%;

  width: 10px;
  height: 10px;

  border-radius: 999px;
  background: #c83c23;

  transform: translate(-50%, -50%) scale(0);
  transition: all 0.25s ease;
}

/* checked */
.contact-form-custom .radio-block input[type="radio"]:checked::after,
.contact-form-custom .radio-block input[type="checkbox"]:checked::after,
.radio-block input[type="radio"]:checked::after,
.radio-block input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* 文字 */
.contact-form-custom .radio-block .wpcf7-list-item-label,
.radio-block .wpcf7-list-item-label {
  color: #5c5c5c;
  font-size: 20px;
  font-weight: 500;
}

/* Submit */
.contact-form-custom .form-submit-wrap,
.contact-form-custom .custom-submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.contact-form-custom .form-submit-wrap {
  margin-top: 40px;
}

.contact-form-custom .custom-submit-btn {
  width: auto;
  min-height: 48px;
  max-height: 56px;
  cursor: pointer;
  border-radius: 4px;
  background: #c83c23;
  padding: 12px 32px;
  color: #fff;
  font-weight: 700;
  margin: 4px;
  border: 0;
}

.contact-form-custom .custom-submit-btn:hover,
.custom-submit-btn:hover {
  opacity: 0.9;
}

.contact-form-custom .custom-submit-btn span:first-child,
.custom-submit-btn span:first-child {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.submit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-form-custom .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CF7：捐款資料變更 donor-contact
========================================================= */

.contact-form-custom .donor-form .form-section {
  margin-bottom: 40px;
}

.contact-form-custom .donor-form .form-section:last-child {
  margin-bottom: 0;
}

/* 個人資料兩欄 */
.contact-form-custom .donor-form .donor-personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form-custom .donor-form .donor-personal-grid .form-left,
.contact-form-custom .donor-form .donor-personal-grid .form-right {
  width: 100%;
}

/* 姓名、Email 垂直排列 */
.contact-form-custom .donor-form .donor-personal-grid .form-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 勾選區塊滿版 */
.contact-form-custom .donor-form .donor-check-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* donor 表單內 radio-block 滿版 */
.contact-form-custom .donor-form .radio-block {
  width: 100%;
}

/* 展開區塊 */
.contact-form-custom .donor-form .donor-sub-fields {
  width: 100%;
  margin-top: 16px;
  margin-left: 0 !important;
  padding-left: 0 !important;
  display: grid;
  gap: 20px;
}

.contact-form-custom .donor-form .donor-sub-fields .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 其他資訊 textarea 滿版 */
.contact-form-custom .donor-form .donor-textarea-row {
  width: 100%;
}

.contact-form-custom .donor-form .donor-textarea-row textarea {
  width: 100%;
  min-height: 120px;
}

/* 手機版個人資料改單欄 */
@media (max-width: 768px) {
  .contact-form-custom .donor-form .donor-personal-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CF7：donor-change-donation radio 說明文字排版修正
   解決階梯狀問題
========================================================= */

/* 三個捐款異動選項垂直排列 */
.contact-form-custom .donor-donation-type-block .wpcf7-form-control.wpcf7-radio,
.donor-donation-type-block .wpcf7-form-control.wpcf7-radio,
.donor-donation-type-block .wpcf7-form-control {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
}

/* 每個 radio item 強制獨立一列，避免 CF7 inline flow 階梯狀 */
.contact-form-custom .donor-donation-type-block .wpcf7-list-item,
.donor-donation-type-block .wpcf7-list-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}

/* radio label */
.contact-form-custom .donor-donation-type-block .wpcf7-list-item label,
.donor-donation-type-block .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 700;
}

/* radio input */
.contact-form-custom
  .donor-donation-type-block
  .wpcf7-list-item
  input[type="radio"],
.donor-donation-type-block .wpcf7-list-item input[type="radio"] {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* radio 文字 */
.contact-form-custom .donor-donation-type-block .wpcf7-list-item-label,
.donor-donation-type-block .wpcf7-list-item-label {
  display: inline-block !important;
  color: #5c5c5c;
  font-size: 20px;
  font-weight: 500;
}

/* radio 下方說明文字，不縮排、不階梯 */
.contact-form-custom .donor-donation-type-block .donor-donation-desc,
.donor-donation-type-block .donor-donation-desc {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  clear: both !important;
}

/* 說明文字 */
.contact-form-custom
  .donor-donation-type-block
  .donor-donation-desc
  .field-note,
.contact-form-custom .donor-donation-type-block .field-note,
.donor-donation-type-block .donor-donation-desc .field-note,
.donor-donation-type-block .field-note {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 1px;
}

/* 金額欄位 */
.contact-form-custom .donor-inline-field,
.donor-inline-field {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 12px !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.contact-form-custom .donor-inline-field label,
.donor-inline-field label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #0a0a0a;
}

.contact-form-custom .donor-inline-field input,
.donor-inline-field input {
  flex: 1;
}

@media (max-width: 768px) {
  .contact-form-custom .donor-inline-field,
  .donor-inline-field {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* =========================================================
    CF7：donor 變更聯絡資料 / 變更收據資訊
========================================================= */

.contact-form-custom .donor-expand-field {
  width: 100%;
  margin-top: 12px;
  margin-left: 0;
  padding-left: 0;
}

.contact-form-custom .donor-address-grid-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 8px;
}
.contact-form-custom .donor-address-grid-bottom {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.contact-form-custom .donor-address-grid input,
.donor-address-grid input {
  width: 100%;
}

.contact-form-custom .donor-receipt-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 16px;
  margin-left: 0;
  padding-left: 0;
}

.contact-form-custom .donor-receipt-fields .group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.contact-form-custom .donor-receipt-fields label {
  font-weight: 700;
  color: #0a0a0a;
}

.contact-form-custom .donor-receipt-fields input,
.contact-form-custom .donor-receipt-fields select,
.contact-form-custom .donor-receipt-fields textarea {
  width: 100%;
}

.contact-form-custom .donor-receipt-fields textarea {
  min-height: 120px;
}

@media (max-width: 768px) {
  .contact-form-custom .donor-address-grid,
  .donor-address-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CF7：轉帳捐款回函 reply-donation-contact
========================================================= */

.contact-form-custom .reply-donation-form .form-section {
  margin-bottom: 40px;
}

.contact-form-custom .reply-donation-form .form-section:last-child {
  margin-bottom: 0;
}

/* 兩欄，每列都有間距 */
.contact-form-custom .reply-donation-form .reply-donation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 每個欄位本身不要再額外推 margin，交給 grid gap 控制 */
.contact-form-custom .reply-donation-form .group {
  margin-bottom: 0;
}

/* 欄位滿版 */
.contact-form-custom .reply-donation-form input,
.contact-form-custom .reply-donation-form select,
.contact-form-custom .reply-donation-form textarea {
  width: 100%;
}

/* textarea 高度 */
.contact-form-custom .reply-donation-form textarea {
  min-height: 120px;
}

/* 手機改單欄 */
@media (max-width: 768px) {
  .contact-form-custom .reply-donation-form .reply-donation-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    column-gap: 0;
  }
}

/* =========================================================
   CF7：教育推廣 / 罕病兒童聚會 project-contact
========================================================= */

.contact-form-custom .education-promotion-form .education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 24px;
  width: 100%;
}

.contact-form-custom .education-promotion-form .education-full {
  grid-column: 1 / -1;
}

.contact-form-custom .education-promotion-form .group {
  margin-bottom: 0;
}

.contact-form-custom .education-promotion-form input,
.contact-form-custom .education-promotion-form select,
.contact-form-custom .education-promotion-form textarea {
  width: 100%;
}

.contact-form-custom .education-promotion-form textarea {
  min-height: 120px;
}

/* 活動形式 radio 直向卡片 */
.contact-form-custom
  .education-promotion-form
  .education-activity-radio
  .wpcf7-radio {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.contact-form-custom
  .education-promotion-form
  .education-activity-radio
  .wpcf7-list-item {
  width: 100%;
  margin: 0;
}

.contact-form-custom
  .education-promotion-form
  .education-activity-radio
  .wpcf7-list-item
  label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form-custom
  .education-promotion-form
  .education-activity-radio
  .wpcf7-list-item-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
}

@media (max-width: 768px) {
  .contact-form-custom .education-promotion-form .education-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }

  .contact-form-custom .education-promotion-form .education-full {
    grid-column: auto;
  }
}

/* =========================================================
   CF7：Join Us 頁面 input
========================================================= */

.joinUsPage .grid-input {
  min-width: 0;
  width: 100%;
}

.joinUsPage .grid-input .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.joinUsPage .grid-input input {
  display: block;
  width: 100%;
  height: 45px;
  box-sizing: border-box;

  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  background: #ffffff;

  color: var(--Gray-01, #0a0a0a);
  text-align: justify;

  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
  outline: none;
}

.joinUsPage .grid-input input::placeholder {
  color: var(--Gray-04, #8f8f8f);

  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;

  opacity: 1;
}

@media (max-width: 1350px) {
  .education-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  .news-database-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .contact-social {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  .contact-info-line {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

@media (max-width: 580px) {
  .entering-data__inner {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .education-tabs {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .online-donation-methods {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .online-donation-method {
    grid-column: span 2 / span 2 !important;
  }
  .rare-img-block--two {
    flex-direction: column !important;
  }
  .cooperating-institutions-icon {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .enterprise-partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .article-cards {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .articles-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .media-coverage-cards {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .media-coverage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stories-cards {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

/* ================================
  Fixed Header + Scroll Blur
================================ */
#masthead.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

#masthead.fixed-header.is-scrolled {
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(84, 60, 37, 0.08);
}

/* fixed header 會脫離文件流，內頁補上 header 高度，避免內容被蓋住 */
body:not(.home) #page {
  padding-top: 115px;
}

/* 首頁保留 hero 壓在 header 下方的視覺 */
body.home #page {
  padding-top: 0;
}

@media (max-width: 768px) {
  body:not(.home) #page {
    padding-top: 115px;
  }
}

/* ================================
  Automatic Translator Native Overlay
  不再用 JS 假點擊語言項目；直接把外掛原本可點擊按鈕蓋在自訂按鈕上
================================ */

/* 外掛尚未搬進 header 前，先收起來，避免出現在左上角 */
body > .auto_translate_button_wrapper,
body > .auto_translate_minimalist {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

.drn-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 10020;
}

.drn-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32.79px;
  min-width: 85px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(84, 60, 37, 0.1);
  color: #0a0a0a;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.drn-lang-switcher:hover .drn-lang-toggle {
  background: rgba(84, 60, 37, 0.16);
}

.drn-lang-toggle:active {
  opacity: 0.75;
}

.drn-lang-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.drn-lang-toggle__label {
  color: var(--Gray-01, #0a0a0a);
  text-align: center;
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
}

/* 這版不用自製下拉，避免假點擊外掛失效 */
.drn-lang-menu {
  display: none !important;
}

/* 外掛原始按鈕搬進 header 後，透明蓋在自訂按鈕上，吃使用者真實 click */
.drn-lang-switcher .auto_translate_button_wrapper,
.drn-lang-switcher .auto_translate_minimalist {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  overflow: visible !important;
  opacity: 0.001 !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  cursor: pointer !important;
}

.drn-lang-switcher .auto_translate_button_wrapper *,
.drn-lang-switcher .auto_translate_minimalist * {
  pointer-events: auto !important;
  cursor: pointer !important;
}

html[lang^="en"] .web_nav {
  font-size: 50% !important;
}

html[lang^="en"] {
  font-size: 80% !important;
}

.auto_translate_minimalist .wpat_lang_item div.wpat_lang_name {
  font-family: "Noto Sans TC";
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 2px;
}

html[lang^="en"] .pagination-numbers,
html[lang^="zh-TW"] .pagination-numbers {
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 18px */
  text-transform: capitalize;
}

.enterprise-partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 282/159;
}

.nowrap-tab-num {
	white-space: nowrap;
}

.home .banner-donate {
	top: 48% !important;
	bottom: auto !important;
}

@media (max-width: 768px) {
	.bread {
		padding: 0 24px;
	}
}