/* 彰師地理系網站 — 主色取自系徽（logo）的綠 */
:root {
  /* 系徽「地理學系」書法字的綠，全站識別色 */
  --geo-logo-green: #609050;
  /* 由系徽綠加深，確保文字連結有足夠對比 */
  --geo-green: #4e7a40;
  --geo-green-dark: #3a5c30;
  /* 系徽三角形的淺綠 */
  --geo-lime: #90c088;
  --geo-green-light: #eef4ea;
  /* 輔色：深海藍。呼應系徽「山在水上」的意象，也讓全站不會只有綠色 */
  --geo-blue: #2c6c82;
  --geo-blue-dark: #1f4f61;
  --geo-blue-light: #ecf3f6;
  /* 師資介紹專用的咖啡色，沿用舊網站師資頁的配色 */
  --geo-brown: #744f2a;
  --geo-brown-dark: #563e24;
  --geo-brown-mid: #776150;
  --geo-brown-light: #f6f1ea;
  --geo-ink: #2b3230;
  --geo-gray: #6b7d72;
}

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--geo-ink);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #fff;
}

/* 連結一律使用輔色，與綠色的區塊、按鈕區隔 */
a { color: var(--geo-blue); }
a:hover { color: var(--geo-blue-dark); }

/* ---------- 導覽列 ---------- */
/* 頁尾在深綠底上，連結維持白色 */
.site-footer a, .site-footer a:hover { color: rgba(255, 255, 255, 0.9); }
.site-footer a:hover { color: #fff; }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 575px) {
  .brand-logo { height: 38px; }
}
.footer-logo { height: 42px; width: auto; max-width: 100%; }
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--geo-ink);
  padding-inline: 0.85rem;
}
.dropdown-item { font-size: 1rem; }
.navbar-nav .nav-link:hover { color: var(--geo-green); }
.nav-en {
  border: 1px solid var(--geo-green);
  border-radius: 999px;
  padding: 0.15rem 0.9rem !important;
  color: var(--geo-green) !important;
  margin-left: 0.4rem;
}
.dropdown-menu {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.dropdown-item:active { background: var(--geo-green); }

/* ---------- 首頁輪播 ---------- */
.hero .carousel-item {
  height: min(62vh, 560px);
  min-height: 340px;
  background: var(--geo-green-dark);
}
.hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
}
.hero .carousel-caption {
  bottom: 18%;
  text-align: left;
  left: 8%;
  right: auto;
  max-width: 640px;
}
.hero .carousel-caption h2 {
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero .carousel-caption p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- 區塊標題 ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-heading h2 {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--geo-ink);
  margin: 0;
}
.section-heading .en {
  color: var(--geo-blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.section-heading .more { margin-left: auto; font-size: 0.95rem; text-decoration: none; }

/* ---------- 最新消息 ---------- */
.news-tabs .nav-pills .nav-link {
  color: var(--geo-ink);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-weight: 500;
  font-size: 1rem;
}
/* 需明確指定白字：本檔載入順序在 Bootstrap 之後，
   上面那條規則的權重與 Bootstrap 的 .active 相同，會蓋掉它的白字設定 */
.news-tabs .nav-pills .nav-link.active { background: var(--geo-green); color: #fff; }
.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.04rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid #eceff1;
  text-decoration: none;
  color: var(--geo-ink);
  transition: background 0.15s;
}
.news-item:hover { background: var(--geo-green-light); color: var(--geo-green-dark); }
.news-item .date {
  color: var(--geo-gray);
  font-size: 0.93rem;
  white-space: nowrap;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.badge-cat {
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.3em 0.8em;
  white-space: nowrap;
  color: #fff;
  background: var(--geo-gray);
}
.badge-cat.activity { background: var(--geo-logo-green); }
.badge-cat.admission { background: #ef6c00; }
.badge-cat.lecture { background: #0288d1; }
.badge-cat.honor { background: #c62828; }
.badge-cat.other { background: #78909c; }
.pin-flag { color: #ef6c00; font-size: 0.8rem; }

/* ---------- 首頁右欄活動花絮 ---------- */
.highlight-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #eceff1;
  text-decoration: none;
  color: var(--geo-ink);
  transition: background 0.15s;
}
.highlight-item:hover { background: var(--geo-green-light); }
.highlight-item .thumb {
  width: 148px;
  height: 111px;
  flex: 0 0 148px;
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--geo-green-light);
}
@media (max-width: 400px) {
  .highlight-item .thumb { width: 110px; height: 83px; flex-basis: 110px; }
}
.highlight-item .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--geo-green);
  font-size: 1.4rem;
}
.highlight-item .meta { display: flex; flex-direction: column; gap: 0.2rem; }
.highlight-item .t { font-size: 1.03rem; font-weight: 500; line-height: 1.5; }
.highlight-item .d { font-size: 0.87rem; color: var(--geo-gray); }

/* ---------- 相關影片 ---------- */
.video-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(38, 50, 56, 0.08);
  height: 100%;
}
.video-card iframe { border: 0; }
.video-title {
  padding: 0.85rem 1.1rem;
  font-weight: 500;
  font-size: 1.02rem;
}

/* ---------- 卡片 ---------- */
.gallery-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(38, 50, 56, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(38, 50, 56, 0.14); }
.gallery-card .cover {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--geo-green-light);
}
.gallery-card .cover-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--geo-green-light), #f1f8e9);
  color: var(--geo-green);
  font-size: 2rem;
}
.gallery-card .card-body { padding: 1rem 1.1rem; }
.gallery-card .card-title { font-size: 1.06rem; font-weight: 700; }
.gallery-card .card-date { color: var(--geo-gray); font-size: 0.89rem; }

/* ---------- 花絮相片牆 ---------- */
/* 統一縮圖比例，直式與橫式照片混排也不會參差；點擊開啟原圖 */
.photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--geo-green-light);
  cursor: zoom-in;
}
.photo-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.photo-thumb:hover img { transform: scale(1.04); }
#photoModal .modal-content { box-shadow: none; }

/* ---------- 師資（咖啡色系，沿用舊網站師資頁）---------- */
/* 師資相關頁面套上 .faculty-theme，把內文的輔色由深海藍換成咖啡色。
   標題橫條與側欄維持全站主視覺的綠色，不在此覆蓋。 */
.faculty-theme a { color: var(--geo-brown); }
.faculty-theme a:hover { color: var(--geo-brown-dark); }
.faculty-theme .page-hero a { color: #fff; }

.faculty-row {
  display: flex;
  gap: 1.75rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid #e6ece6;
}
.faculty-row:first-child { padding-top: 0; }
/* 原始照片多為 130px 見方，顯示尺寸不宜再放大以免模糊 */
.faculty-photo, .faculty-photo-placeholder {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: var(--geo-green-light);
}
.faculty-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--geo-green);
  font-size: 2.6rem;
  font-weight: 700;
}
.faculty-info { flex: 1 1 auto; min-width: 0; }
.faculty-info .fname {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--geo-ink);
  margin: 0 0 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #d8e2d6;
}
.faculty-photo-link { display: block; flex: 0 0 auto; }
.faculty-photo-link .faculty-photo { transition: transform 0.2s, box-shadow 0.2s; }
.faculty-photo-link:hover .faculty-photo {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(116, 79, 42, 0.22);
}
.faculty-info .fname a { color: inherit; text-decoration: none; }
.faculty-info .fname a:hover { color: var(--geo-brown); }
/* 職稱使用輔色，與姓名、專長區隔 */
.faculty-info .ftitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--geo-brown);
  margin-left: 0.85rem;
}
.faculty-info .more-link {
  float: right;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--geo-brown);
  text-decoration: none;
}
.faculty-info .more-link:hover { text-decoration: underline; }
.faculty-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.1rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}
.faculty-info dt {
  color: var(--geo-brown);
  font-weight: 500;
  white-space: nowrap;
}
.faculty-info dd { margin: 0; color: #46524b; word-break: break-word; }

@media (max-width: 575px) {
  .faculty-row { gap: 1rem; flex-direction: column; }
  .faculty-photo, .faculty-photo-placeholder { width: 130px; height: 130px; flex-basis: 130px; }
  .faculty-info dl { grid-template-columns: 1fr; gap: 0 0; }
  .faculty-info dt { margin-top: 0.4rem; }
}

/* ---------- 教師個人頁 ---------- */
.profile-card {
  background: #fff;
  border: 1px solid #e6ece6;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 90px;
}
.profile-photo, .profile-photo-placeholder {
  width: 170px;
  height: 170px;
  border-radius: 0.9rem;
  object-fit: cover;
  background: var(--geo-green-light);
  margin: 0 auto 1rem;
}
.profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--geo-green);
  font-size: 3rem;
  font-weight: 700;
}
.profile-card .pname {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.25rem;
  color: var(--geo-ink);
}
.profile-card .ptitle {
  color: var(--geo-brown);
  font-weight: 500;
  font-size: 1.02rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e6ece6;
}
.profile-meta {
  display: block;
  text-align: left;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}
.profile-meta dt {
  color: var(--geo-brown);
  font-weight: 500;
  font-size: 1.02rem;
  margin-top: 0.75rem;
}
.profile-meta dt:first-child { margin-top: 0; }
.profile-meta dd { margin: 0; color: #46524b; word-break: break-word; }

.profile-courses {
  text-align: left;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e6ece6;
}
.profile-courses h4 {
  color: var(--geo-brown);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
}
.profile-courses ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #46524b;
}
.profile-courses li {
  padding-left: 1rem;
  position: relative;
}
.profile-courses li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--geo-brown);
}

.profile-section { margin-bottom: 2.5rem; }
.profile-section h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--geo-ink);
  border-left: 5px solid var(--geo-brown);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}
.profile-list {
  padding-left: 1.4rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #46524b;
}
.profile-list li { margin-bottom: 0.55rem; }
.profile-list li::marker { color: var(--geo-brown); font-weight: 600; }

@media (max-width: 991px) {
  .profile-card { position: static; }
}

/* ---------- 內頁 ---------- */
.page-hero {
  /* 由陸地的綠過渡到海洋的藍 */
  background: linear-gradient(115deg, var(--geo-green-dark), var(--geo-green) 42%, var(--geo-blue) 100%);
  color: #fff;
  padding: 1.9rem 0 1.7rem;
}
.page-hero h1 { font-weight: 900; font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0; }
.page-hero .crumb { opacity: 0.85; font-size: 0.84rem; margin-bottom: 0.25rem; }
.page-hero .crumb a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
.page-hero .crumb a:hover { text-decoration-color: #fff; }
.article-body {
  font-size: 1.09rem;
  line-height: 1.95;
  color: #37474f;
}
.article-body img { max-width: 100%; border-radius: 0.75rem; }
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--geo-ink);
  border-left: 5px solid var(--geo-logo-green);
  padding-left: 0.75rem;
  margin: 2.2rem 0 1rem;
}
.article-body h3:first-child { margin-top: 0; }
.article-body p { margin-bottom: 0.85rem; }
/* 段落中以 **文字** 標示的重點句，作為小標題使用。
   用咖啡色（與師資頁同一組輔色），比深海藍更明顯，
   也不會與綠色的小節標線互相搶眼。 */
.article-body strong {
  color: var(--geo-brown);
  font-weight: 700;
}
.article-body p > strong:only-child {
  display: block;
  margin-top: 1.4rem;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

/* 內容頁中以全形空白分隔的資料自動組成的表格 */
.content-table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.content-table th {
  background: var(--geo-green-light);
  color: var(--geo-green-dark);
  font-weight: 500;
  white-space: nowrap;
}
.content-table th, .content-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #e6ece6;
  vertical-align: top;
  line-height: 1.6;
}
.content-table tbody tr:hover { background: #fafcf9; }

/* 內容頁的條列清單（內文以「- 」開頭的行）*/
.content-list {
  padding-left: 1.6rem;
  margin: 0 0 1.4rem;
  line-height: 1.85;
}
.content-list li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.content-list li::marker { color: var(--geo-logo-green); font-weight: 700; }
/* 圓點清單：適合連結、下載等短項目 */
.content-list--bullet { list-style: disc; }
.content-list--bullet li::marker { font-size: 0.9em; }

/* 表格內的下載連結不加底色，避免整格過於厚重 */
.content-table .inline-file { background: none; padding: 0; }

/* 內容頁的附件下載連結（以 [檔案N] 插入）*/
.article-body .attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0.5rem 0.3rem 0;
  background: var(--geo-green-light);
  border-radius: 0.6rem;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-size: 0.98rem;
}
.article-body .attachment-link:hover { background: #e2ece0; }
.attachment-list { display: flex; flex-wrap: wrap; }

/* 內容頁以 [影片:網址] 嵌入的 YouTube */
.page-video {
  margin: 1.2rem 0 1.6rem;
  max-width: 640px;
}
.page-video .ratio { border-radius: 0.75rem; overflow: hidden; }
.page-video iframe { border: 0; }
.page-video figcaption {
  margin-top: 0.55rem;
  font-size: 0.94rem;
  color: var(--geo-gray);
}

/* 內容頁以 [圖N] 插入的圖片 */
.page-figure { margin: 1.5rem 0 1.8rem; }
.page-figure img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 18px rgba(38, 50, 56, 0.1);
}
/* 多張圖並排（[圖1,2]）*/
.figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 1.8rem;
}
.figure-row .page-figure {
  flex: 1 1 0;
  min-width: 240px;
  margin: 0;
}
.figure-row .page-figure img { display: block; }
/* 窄螢幕改為上下排列，取消依比例分配寬度 */
@media (max-width: 575px) {
  .figure-row .page-figure { flex: 1 1 100% !important; }
}
.page-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--geo-gray);
  text-align: center;
}
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--geo-green-light);
  border-radius: 0.6rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 1rem;
}
.sidebar-menu .list-group-item { border-color: #eceff1; }
.sidebar-menu .list-group-item.active {
  background: var(--geo-green);
  border-color: var(--geo-green);
}

/* ---------- 相關連結 ---------- */
.quicklink {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--geo-ink);
  transition: border-color 0.15s, color 0.15s;
}
.quicklink:hover { border-color: var(--geo-green); color: var(--geo-green); }

/* ---------- 頁尾 ---------- */
.site-footer {
  background: var(--geo-green-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3rem;
  font-size: 0.96rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* 系徽在左，辦公室與友善校園資源分兩欄（參考高師地理的頁尾配置） */
.footer-main {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.footer-brand { padding-right: 1rem; }
.footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 2rem;
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}
.footer-col p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col p:last-child { margin-bottom: 0; }
.footer-emergency {
  margin-top: 0.7rem !important;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-emergency a { font-weight: 700; }

@media (max-width: 991px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 575px) {
  .footer-main { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-col { border-left: 0; padding-left: 0; }
}
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 其他 ---------- */
.section-alt { background: #f5f8f2; }
.pagination { gap: 0.3rem; }
.pagination .page-link {
  color: var(--geo-green);
  border-radius: 0.5rem;
  border-color: #e0e6e2;
  min-width: 2.6rem;
  text-align: center;
}
.pagination .page-link:hover { background: var(--geo-green-light); }
/* 選取頁：綠底白字。需寫得比上面的 .pagination .page-link 更明確，
   否則會被它的綠色文字蓋掉，變成綠底綠字看不見 */
.pagination .page-item.active > .page-link,
.pagination .page-item.active > .page-link:hover {
  background: var(--geo-green);
  border-color: var(--geo-green);
  color: #fff;
}
.pagination-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--geo-gray);
  margin: 0.9rem 0 0;
}

/* ── 英文版（/en/）──────────────────────────────────── */
.en-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5.5rem 0 4rem;
}
.en-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 61, 44, 0.86), rgba(20, 61, 44, 0.42));
}
.en-hero .container { position: relative; }
.en-hero .crumb { font-size: 0.84rem; opacity: 0.85; margin-bottom: 0.6rem; }
.en-hero .crumb a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }
.en-hero h1 { font-weight: 900; font-size: clamp(1.8rem, 4.4vw, 2.9rem); margin: 0; letter-spacing: 0.01em; }
.en-hero .lead { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.92; margin: 0.35rem 0 0; }
.en-hero .motto {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.en-intro { font-size: 1.03rem; line-height: 1.95; }

.en-stats {
  display: grid;
  /* 固定 4 欄（窄螢幕 2 欄），避免自動換行後留下空格子 */
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e6ebe8;
  border: 1px solid #e6ebe8;
  border-radius: 10px;
  overflow: hidden;
  margin: 2.2rem 0 2.6rem;
}
.en-stats > div { background: #fff; padding: 1.15rem 1rem; text-align: center; }
.en-stats strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--geo-green);
  line-height: 1.2;
}
.en-stats span { font-size: 0.82rem; color: #6b7770; }
@media (max-width: 767px) {
  .en-stats { grid-template-columns: repeat(2, 1fr); }
}

.en-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.en-card {
  display: block;
  padding: 1.3rem 1.4rem;
  border: 1px solid #e6ebe8;
  border-left: 4px solid var(--geo-green);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.en-card:hover {
  box-shadow: 0 6px 18px rgba(20, 61, 44, 0.1);
  transform: translateY(-2px);
}
.en-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--geo-green); margin: 0 0 0.4rem; }
.en-card p { font-size: 0.88rem; color: #5f6b64; margin: 0; line-height: 1.7; }

.en-contact {
  border-top: 3px solid var(--geo-green);
  background: #f6f9f7;
  border-radius: 0 0 8px 8px;
  padding: 1.1rem 1.2rem;
}
.en-contact h4 { font-size: 0.95rem; font-weight: 800; color: var(--geo-green); margin: 0 0 0.6rem; }
.en-contact p { font-size: 0.85rem; color: #5f6b64; line-height: 1.75; margin: 0 0 0.6rem; }
.en-contact p:last-child { margin-bottom: 0; }

.group-heading-en {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--geo-brown);
  border-bottom: 2px solid var(--geo-brown);
  padding-bottom: 0.45rem;
  margin: 2.4rem 0 1.4rem;
}
.group-heading-en:first-child { margin-top: 0; }

/* Google 翻譯元件（頁尾）
   採用 InlineLayout.SIMPLE，Google 會插入一個連結式的小工具，
   以下把它調整成在深綠頁尾上可讀的樣式。 */
.footer-translate { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-translate .translate-label { font-size: 0.78rem; opacity: 0.7; }
.footer-translate .goog-te-gadget { font-size: 0.8rem !important; color: rgba(255,255,255,0.85) !important; }
.footer-translate .goog-te-gadget-simple {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 4px;
  padding: 0.25rem 0.55rem !important;
  font-size: 0.8rem;
}
.footer-translate .goog-te-gadget-simple span,
.footer-translate .goog-te-gadget-simple a { color: #fff !important; text-decoration: none; }
.footer-translate .goog-te-gadget-icon { display: none !important; }
/* Google 翻譯啟用後會插入一條頂端工具列並把頁面往下推，關閉它。
   注意：只隱藏 banner，語言選單（goog-te-menu-frame）必須保留。 */
body { top: 0 !important; }
.goog-te-banner-frame { display: none !important; }
