* ==========================================================================
   Product Search Header (top.php)
   ========================================================================== */

.section-product-search-header {
  background-color: #ffffff;
}

/* 頂部橫幅圖片高與定位 */
.section-product-search-header .header-hero-banner {
  height: 280px;
  overflow: hidden;
}

.section-product-search-header .hero-img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 圖片右下角標註文字 */
.section-product-search-header .photo-credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #ffffff;
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

/* 左側重疊卡片定位 */
.section-product-search-header .header-content-container {
  margin-top: -80px; /* 向上重疊至 Banner 上 */
  z-index: 3;
}

.section-product-search-header .search-header-card {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-left: 0;
}

/* 頂部膠囊 Badge */
.section-product-search-header .search-badge {
  background-color: #0096a4;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
}

/* 主標題 & 內文 */
.section-product-search-header .search-title {
  font-size: 36px;
  line-height: 1.25;
  color: #061838;
  letter-spacing: 0.5px;
}

.section-product-search-header .search-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568 !important;
}

/* --------------------------------------------------------------------------
   RWD 響應式切換
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .section-product-search-header .header-hero-banner {
    height: 220px;
  }

  .section-product-search-header .header-content-container {
    margin-top: -50px;
  }

  .section-product-search-header .search-title {
    font-size: 28px;
  }
}

/* 響應式微調 */
@media (max-width: 767.98px) {
  .section-product-search-header .search-header-card {
    margin-left: 0;
    border-top-right-radius: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .section-product-search-header .header-hero-banner {
    height: 180px;
  }

  .section-product-search-header .header-content-container {
    margin-top: -30px;
  }

  .section-product-search-header .search-title {
    font-size: 24px;
  }

  .section-product-search-header .search-header-card {
    border-radius: 16px !important;
  }
}

/* ==========================================================================
   Section List of Distributors 1 (代理店一覧 - エリアパートナー)
   ========================================================================== */

.section-distributors {
  background-image: url('../img/listofdistributors/listofdistributors1/bg.png'); 
}

/* 深藍色標題文字 */
.text-dark-navy {
  color: #061838 !important;
}

/* 左側地圖區塊 */
.distributor-map-box img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

/* 代理商卡片 */
.distributor-card {
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.distributor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* 分類/區域標籤 (青綠色) */
.distributor-category {
  color: #0096a4;
  font-size: 13px;
  letter-spacing: -0.2px;
}

/* 代理商標題 */
.distributor-title {
  font-size: 20px;
  letter-spacing: -0.3px;
}

/* 內文說明 */
.distributor-desc {
  color: #475569;
  line-height: 1.6;
  font-size: 14px;
}

/* 右下角標籤 (Tags) */
.distributor-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0096a4;
  border: 1px solid #0096a4;
  background-color: #ffffff;
  padding: 3px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .distributor-title {
    font-size: 18px;
  }
  
  .distributor-card {
    padding: 1.25rem !important;
  }
  
  .distributor-map-box img {
    max-height: 350px;
  }
}

/* ==========================================================================
   Section List of Distributors 2 (Network Flow Section)
   ========================================================================== */

.section-network-flow {
  background-color: #ffffff;
}

/* 顏色變數類別 */
.text-dark-navy {
  color: #061838 !important;
}

.text-teal {
  color: #0096a4 !important;
}

/* 頂部標籤 */
.network-badge {
  display: inline-block;
  background-color: #0096a4;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 50px;
}

/* 頂部標題與說明 */
.network-title {
  font-size: 28px;
  letter-spacing: -0.3px;
}

.network-desc {
  font-size: 14px;
  line-height: 1.6;
}

/* 圖片與數字標籤容器 */
.flow-img-wrapper {
  width: 100%;
  max-width: 210px;
  padding-top: 10px; /* 給數字凸出留空間 */
}

/* 左上角青綠色圓形數字 */
.step-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  background-color: #0096a4;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 150, 164, 0.3);
}

/* 膠囊/橢圓形圖片框 */
.flow-img-box {
  width: 100%;
  height: 130px;
  border-radius: 100px !important; /* 製作橫向橢圓形/膠囊形 */
  background-color: #f1f5f9;
}

/* 內文文字區域 */
.flow-cat {
  font-size: 12px;
  letter-spacing: 1px;
}

.flow-title {
  font-size: 16px;
}

.flow-desc {
  color: #64748b;
  line-height: 1.5;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .network-title {
    font-size: 22px;
  }
  
  .flow-img-wrapper {
    max-width: 240px;
  }

  .flow-img-box {
    height: 140px;
  }
}

/* ==========================================================================
   Section List of Distributors 3 (Partner Recruitment Section)
   ========================================================================== */

.section-partner-recruitment {
  background-color: #f1f5f9; /* 淡藍灰背景 */
}

/* 顏色樣式重置 */
.text-dark-navy {
  color: #061838 !important;
}

/* 大外框卡片 */
.partner-card {
  border: 1px solid #e2e8f0;
}

/* 左側圖片容器 */
.partner-img-box {
  height: 380px;
}

/* 標題與說明文字 */
.partner-title {
  font-size: 28px;
  letter-spacing: -0.3px;
}

.partner-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

/* 打勾清單圖示與文字 */
.check-icon {
  color: #0096a4; /* 青綠色 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-feature-list li span {
  font-size: 15px;
  letter-spacing: -0.2px;
}

/* 青綠色 CTA 按鈕 */
.btn-teal-action {
  background-color: #0096a4;
  color: #ffffff !important;
  transition: all 0.2s ease;
  border: none;
}

.btn-teal-action:hover {
  background-color: #007a86;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 164, 0.3);
}

/* 按鈕內圓形箭頭 */
.btn-arrow-icon {
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .partner-title {
    font-size: 22px;
  }
  
  .partner-img-box {
    height: 260px;
  }
}