/*
  TEAMade About Page SEO Sections CSS
  Purpose: independent section styling for /page/html/about.php.
  Naming rule: all new classes use the prefix `.tm-about-` to avoid conflicts with the existing website CSS.
  Suggested placement: load this CSS after the original website style.css.
*/

:root {
  --tm-about-red: #d71920;
  --tm-about-dark: #1f2933;
  --pg-text: #344054;
  --tm-about-muted: #667085;
  --tm-about-light: #f7f7f8;
  --tm-about-line: #e5e7eb;
  --tm-about-white: #ffffff;
  --tm-about-max: 1180px;
}

.pg-page,
.pg-page * {
  box-sizing: border-box;
}

.pg-page {
  color: var(--tm-about-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--tm-about-white);
}

.pg-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pg-container {
  width: 100%;
  max-width: var(--tm-about-max);
  margin: 0 auto;
  padding: 0 24px;
}

.pg-section {
  clear: both;
  padding: 72px 0;
}

.pg-section--alt {
  background: var(--tm-about-light);
}

.pg-grid {
  display: grid;
  gap: 36px;
}

.pg-grid--2 {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}

.pg-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-eyebrow {
  margin-bottom: 10px;
  color: var(--tm-about-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pg-title {
  text-align: left;
  margin: 0 0 18px;
  color: var(--tm-about-dark);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  font-family: Arial, Helvetica, sans-serif;
}

.pg-title--hero {
  /*max-width: 860px;*/
  text-align: left;
  color: var(--tm-about-white);
  font-size: clamp(34px, 5vw, 58px);
}

.pg-subtitle {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--pg-text);
  font-size: 20px;
}

.pg-hero .pg-subtitle {
  color: #f4f4f5;
}

.pg-text {
  margin: 0 0 18px;
  color: var(--pg-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.tm-about-muted {
  color: var(--tm-about-muted);
}

.pg-hero {
  position: relative;
  display: flex;
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  color: var(--tm-about-white);
  background: #111111;
}

.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.35));
}

.pg-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}
.pg-hero__image.pg-hero-bg-contain {
    object-fit: contain;
}

.pg-hero__content {
  position: relative;
  z-index: 2;
}

.pg-media {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: var(--tm-about-white);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .12);
}

.pg-media--spaced {
  margin: 30px 0 0;
}

.pg-media img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.pg-caption {
  padding: 14px 18px;
  color: var(--tm-about-muted);
  font-size: 14px;
  background: var(--tm-about-white);
}

.pg-card {
  padding: 28px;
  border: 1px solid var(--tm-about-line);
  border-radius: 18px;
  background: var(--tm-about-white);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.pg-card__title {
  margin: 0 0 10px;
  color: var(--tm-about-dark);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.pg-card__text {
  margin: 0;
  color: var(--tm-about-muted);
  line-height: 1.65;
  font-size: 16px;
}

/*.pg-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pg-list li {
  position: relative;
  padding-left: 28px;
  color: var(--pg-text);
}

.pg-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tm-about-red);
  font-weight: 700;
}*/

.pg-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.pg-stat {
  padding: 22px;
  border-left: 4px solid var(--tm-about-red);
  border-radius: 14px;
  background: var(--tm-about-white);
}

.pg-stat__number {
  display: block;
  color: var(--tm-about-red);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums; /* 等寬數字，roll-up 動畫過程不抖動 */
}

.pg-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
  gap: 24px;
  align-items: center;
  padding: 44px;
  border-radius: 24px;
  color: var(--tm-about-white);
  background: var(--tm-about-dark);
}

.pg-cta .pg-title,
.pg-cta .pg-text {
  color: var(--tm-about-white);
}

.pg-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  color: var(--tm-about-white);
  background: var(--tm-about-red);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.pg-btn:hover,
.pg-btn:focus {
  color: var(--tm-about-white);
  opacity: .88;
  text-decoration: none;
}

@media (max-width: 860px) {
  .pg-section {
    padding: 52px 0;
  }

  .pg-hero {
    min-height: 560px;
  }

  .pg-grid--2,
  .pg-grid--3,
  .pg-grid--4,
  .pg-stats,
  .pg-cta {
    grid-template-columns: 1fr;
  }

  .pg-cta {
    padding: 34px 24px;
  }
}


/* Split section helpers for page builder blocks */
.pg-layout-heading {
  padding-bottom: 28px;
}

.pg-layout-image {
  padding-top: 0;
  padding-bottom: 28px;
}

/* .pg-layout-cards {
  padding-top: 0;
} */


/* page_slider_01：Swiper 輪播（獨立樣式，所有規則限定於 .pg-swiper 之下，
   不與 _slider_01 的 .bannerSwipper 或全域 .swiper-pagination-bullet 互相影響） */
.pg-swiper {
  /* 可調整輪播比例 */
  --pg-swiper-ratio: 16 / 9;
  /* 導覽箭頭與分頁顏色（獨立於 _slider_01 的設定） */
  --swiper-navigation-color: #fff;
  --swiper-navigation-size: 26px;
  --swiper-pagination-color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: var(--tm-about-white);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .12);
}

.pg-swiper .swiper {
  width: 100%;
}

.pg-swiper__item {
  margin: 0;
}

.pg-swiper__item img {
  display: block;
  width: 100%;
  aspect-ratio: var(--pg-swiper-ratio);
  object-fit: cover;
}

/* 分頁圓點（限定 .pg-swiper，不影響全域 .swiper-pagination-bullet） */
.pg-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, .6);
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, .35));
}

.pg-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

/* 箭頭加上半透明底，提高在淺色圖片上的辨識度 */
.pg-swiper .swiper-button-prev,
.pg-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  transition: background .2s ease;
}

.pg-swiper .swiper-button-prev:hover,
.pg-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, .55);
}

@media screen and (max-width: 900px) {
  .pg-swiper {
    --swiper-navigation-size: 20px;
  }

  .pg-swiper .swiper-button-prev,
  .pg-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }
}


/* qa.php：QA 折疊（手風琴）區塊（獨立樣式，所有規則限定於 .pg-qa 之下） */
.pg-section.pg-layout-qa {
  padding-top:0px;
  padding-bottom: 16px;
}

.pg-section.pg-layout-qa:last-child {
  padding-bottom: 48px;
}

.pg-qa {
  display: grid;
  gap: 14px;
  /* margin-top: 28px; */
}

.pg-qa__item {
  overflow: hidden;
  border: 1px solid var(--tm-about-line);
  border-radius: 14px;
  background: var(--tm-about-white);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.pg-qa__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--tm-about-dark);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.pg-qa__question:hover {
  color: var(--tm-about-red);
}

/* +/× 切換圖示，使用兩條線旋轉 */
.pg-qa__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.pg-qa__icon::before,
.pg-qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--tm-about-red);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}

.pg-qa__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.pg-qa__item.is-open .pg-qa__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* 答案面板：以 max-height 做展開/收合動畫（高度由 JS 計算） */
.pg-qa__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.pg-qa__answer-inner {
  padding: 0 24px 22px;
  color: var(--pg-text);
  font-size: 16px;
  line-height: 1.7;
}

@media screen and (max-width: 900px) {
  .pg-qa__question {
    padding: 16px 18px;
    font-size: 16px;
  }

  .pg-qa__answer-inner {
    padding: 0 18px 18px;
  }
}


/* page_breadcrumb.php：麵包屑導覽（獨立樣式，所有規則限定於 .pg-breadcrumb-container 之下，
   避免與 Bootstrap 原生 .breadcrumb / .container / .row 互相影響）

   結構：
   .pg-breadcrumb-container  → 滿版底色帶（full-bleed band）
     .pg-breadcrumb          → 置中、對齊頁面內容寬度的內層容器
       ul > li(.active) > a  → 項目 */
.pg-breadcrumb-container {
  padding: 14px 0;
  background: var(--tm-about-light);
  border-bottom: 1px solid var(--tm-about-line);
}

.pg-breadcrumb-container .pg-breadcrumb {
  /* 內層容器：對齊 .pg-container 的最大寬度與左右留白，並覆寫 Bootstrap 原生 .breadcrumb */
  width: 100%;
  max-width: var(--tm-about-max);
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  border-radius: 0;
}

.pg-breadcrumb-container .pg-breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-breadcrumb-container .pg-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0; /* 允許子項 ellipsis 正常運作 */
  color: var(--tm-about-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* 分隔符號（每個項目前方加一個 chevron，第一個項目除外） */
.pg-breadcrumb-container .pg-breadcrumb li:not(:first-child)::before {
  content: "›";
  flex: 0 0 auto;
  margin: 0 10px;
  color: var(--tm-about-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  opacity: .6;
  user-select: none;
}

.pg-breadcrumb-container .pg-breadcrumb li a {
  display: inline-block;
  max-width: 20em;
  overflow: hidden;
  padding: 2px 0;
  color: var(--tm-about-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  transition: color .2s ease;
}

.pg-breadcrumb-container .pg-breadcrumb li a:hover {
  color: var(--tm-about-red);
  text-decoration: none;
}

/* 鍵盤聚焦：無障礙可見的 focus 樣式 */
.pg-breadcrumb-container .pg-breadcrumb li a:focus-visible {
  outline: 2px solid var(--tm-about-red);
  outline-offset: 2px;
  border-radius: 3px;
  color: var(--tm-about-red);
}


/* 目前所在頁面（最後一個項目）：深色高亮、不可點擊感 */
.pg-breadcrumb-container .pg-breadcrumb li.active {
  color: var(--tm-about-dark);
}

.pg-breadcrumb-container .pg-breadcrumb li.active a {
  max-width: 24em;
  overflow: hidden;
  color: var(--tm-about-dark);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  cursor: default;
}


@media screen and (max-width: 900px) {
  .pg-breadcrumb-container {
    padding: 11px 0;
  }

  .pg-breadcrumb-container .pg-breadcrumb {
    padding: 0 16px;
  }

  .pg-breadcrumb-container .pg-breadcrumb li,
  .pg-breadcrumb-container .pg-breadcrumb li a {
    font-size: 13px;
  }

  .pg-breadcrumb-container .pg-breadcrumb li a {
    max-width: 12em;
  }

  .pg-breadcrumb-container .pg-breadcrumb li:not(:first-child)::before {
    margin: 0 7px;
  }
}



.pg-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.pg-glance__item {
  padding: 24px;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: var(--pg-white);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.pg-glance__label {
  display: block;
  margin-bottom: 8px;
  color: var(--pg-muted);
  font-size: 14px;
  font-weight: 700;
}

.pg-glance__value {
  display: block;
  color: var(--pg-red);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
}

@media (max-width: 860px) {
  .pg-glance {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pg-glance {
    grid-template-columns: 1fr;
  }
}

.pg-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.pg-icon-card {
  padding: 30px;
  border: 1px solid var(--pg-line);
  border-radius: 20px;
  background: var(--pg-white);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.pg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--pg-white);
  background: var(--pg-red);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.pg-icon-card h3 {
  margin: 0 0 10px;
  color: var(--pg-dark);
  font-size: 21px;
  line-height: 1.3;
}

.pg-icon-card p {
  margin: 0;
  color: var(--pg-muted);
}

.pg-section-action {
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 860px) {
  .pg-icon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pg-icon-grid {
    grid-template-columns: 1fr;
  }
}