/* ============================================================
   愛你婚友社 — 主樣式表
   Bootstrap 5 擴充 + 品牌色系
   ============================================================ */

/* ── CSS 變數（品牌色） ── */
:root {
  --primary:        #C8553A;
  --primary-light:  #E8735A;
  --primary-dark:   #A03E28;
  --gold:           #D49B5A;
  --cream:          #FFF8F3;
  --bg:             #FDF4EE;
  --text-dark:      #3D2B1F;
  --text-mid:       #7A5C4F;
  --border:         #F0D9CC;
}

/* ── Base ── */
body {
  background-color: var(--bg);
  color: var(--text-dark);
  font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── Topbar ── */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: .82rem;
  padding: 5px 0;
}
.topbar a {
  color: #ffd9cc;
  text-decoration: none;
}
.topbar a:hover { color: #fff; }

/* ── Navbar ── */
.navbar {
  background: var(--cream);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(200,85,58,.12);
}
.navbar-brand {
  color: var(--primary) !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.navbar-brand span { color: var(--gold); }
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  border-radius: 4px;
  transition: all .2s;
}
.nav-link:hover,
.nav-link.active {
  background: var(--primary);
  color: #fff !important;
}
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 20px;
  padding: .4rem 1.2rem !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, #3D2B1F 0%, var(--primary-dark) 50%, var(--primary) 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,15,10,.65) 0%, rgba(30,15,10,.3) 55%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.hero-badge {
  background: var(--gold);
  color: var(--text-dark);
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 14px;
}

/* ── Hero Carousel ── */
.hero-carousel { background: var(--primary-dark); }
.hero-carousel .carousel-item { transition: transform .7s ease; }
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
}
.carousel-indicators .active { background: var(--gold); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 1.8rem 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: .85rem; opacity: .9; margin-top: .3rem; }

/* ── Section Title ── */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: var(--gold);
  margin: .5rem auto 0;
  border-radius: 2px;
}
.section-title.text-start h2::after { margin-left: 0; }
.section-title p { color: var(--text-mid); margin-top: .5rem; }

/* ── Country Filter Tabs ── */
.country-tabs .tab-link {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--text-mid);
  border-radius: 20px;
  margin: 3px;
  font-size: .9rem;
  padding: .35rem 1rem;
  transition: all .2s;
  text-decoration: none;
}
.country-tabs .tab-link.active,
.country-tabs .tab-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Profile Card ── */
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200,85,58,.15);
}
.profile-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 2.5rem;
}
.profile-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.profile-card-body { padding: 1rem; }
.profile-card-body h5 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .4rem;
  font-size: 1rem;
}
.profile-badge {
  background: var(--bg);
  color: var(--text-mid);
  font-size: .73rem;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-block;
  margin: 2px 1px;
}
.profile-card-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: .35rem 1.2rem;
  font-size: .85rem;
  width: 100%;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: block;
  text-align: center;
}
.profile-card-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ── Success Story Card ── */
.story-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(200,85,58,.12);
}
.story-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.story-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--border), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

/* ── News List ── */
.news-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--primary);
  margin-bottom: .8rem;
  transition: box-shadow .2s;
}
.news-item:hover { box-shadow: 0 4px 12px rgba(200,85,58,.1); }
.news-date { font-size: .78rem; color: var(--text-mid); margin-bottom: .2rem; }
.news-title {
  color: var(--text-dark);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-title:hover { color: var(--primary); }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--cream), #FFE8DF);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: .8rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(200,85,58,.3);
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,85,58,.4);
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.breadcrumb { margin: 0; font-size: .85rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-mid); }

/* ── Sidebar ── */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  padding-bottom: .6rem;
  margin-bottom: 1rem;
}
.sidebar-link {
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  transition: color .15s;
}
.sidebar-link:hover { color: var(--primary); }

/* ── Pagination ── */
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Footer ── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
footer h5 { color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .9rem;
  display: block;
  margin-bottom: .4rem;
  transition: color .15s;
}
footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .8rem;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .2rem;
  white-space: nowrap;
}
.footer-bottom-links a {
  display: inline;
  margin: 0;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom-links a:hover { color: var(--gold); }
.footer-sep {
  opacity: .4;
  padding: 0 .4rem;
}

/* ── Buttons（覆寫 Bootstrap） ── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ── Section 背景 ── */
.section-bg   { background: var(--bg); }
.section-white { background: #fff; padding: 3rem 0; }

/* ── 回到頂端按鈕 ── */
.btn-back-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  z-index: 999;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(200,85,58,.3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-back-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ── Footer 聯絡資訊 ── */
.footer-desc {
  font-size: .9rem;
  line-height: 1.8;
}
.footer-contact-item {
  font-size: .88rem;
  margin-bottom: .4rem;
}
.footer-icon {
  color: var(--gold);
  margin-right: .5rem;
}

/* ── Section Title h1（內頁用） ── */
.section-title h1 {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title h1::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: var(--gold);
  margin: .5rem auto 0;
  border-radius: 2px;
}

/* ── Profile Detail ── */
.profile-detail-img {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
}
.profile-detail-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--border), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
}
.profile-detail-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.profile-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
.profile-detail-table th,
.profile-detail-table td {
  padding: .5rem .8rem;
  border-bottom: 1px solid var(--border);
}
.profile-detail-table th {
  width: 90px;
  color: var(--text-mid);
  font-weight: 600;
  background: var(--cream);
}
.profile-detail-table td { color: var(--text-dark); }
.profile-detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: .6rem;
  margin-bottom: .8rem;
}
.profile-detail-content {
  color: var(--text-mid);
  line-height: 1.9;
  font-size: .93rem;
}
.profile-card-title {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .4rem;
  font-size: .92rem;
}
.section-related-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

/* ── Article（新聞詳情） ── */
.article-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.article-meta {
  font-size: .83rem;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.article-content {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--text-dark);
}
.article-content p,
.article-content span,
.article-content div,
.article-content li,
.article-content td { font-size: .95rem !important; }
.article-content h1 { font-size: 1.4rem !important; }
.article-content h2 { font-size: 1.2rem !important; }
.article-content h3 { font-size: 1.05rem !important; }
.article-content h4,
.article-content h5,
.article-content h6 { font-size: 1rem !important; }
.article-content img { max-width: 100%; height: auto; border-radius: 6px; }
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--text-dark); font-weight: 600; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
}
.article-nav a {
  color: var(--primary);
  text-decoration: none;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-nav a:hover { color: var(--primary-dark); }
.article-nav-next { text-align: right; }

/* ── Privacy Consent ── */
.privacy-consent {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1.1rem;
}
.privacy-consent .form-check-label { font-size: .88rem; color: var(--text-mid); line-height: 1.6; }
.privacy-consent a { color: var(--primary); text-decoration: underline; }
.footer-platform-note { font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-top: .8rem; margin-bottom: 0; }

/* ── Contact Form ── */
.contact-form .form-control,
.contact-form .form-select {
  border-color: var(--border);
  border-radius: 8px;
  font-size: .93rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(200,85,58,.15);
}
.contact-ref-notice {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: .8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--text-mid);
}
.form-label.form-required::after {
  content: ' *';
  color: var(--primary);
  font-weight: 700;
}

/* ── About Page ── */
.about-section-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}
.about-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .8rem;
}
.about-section-content {
  font-size: .93rem;
  line-height: 1.9;
  color: var(--text-mid);
}

/* ── Services Page ── */
.service-block {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.service-block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: .7rem;
  margin-bottom: 1.2rem;
}
.service-fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}
.service-fee-item {
  background: var(--cream);
  border-radius: 8px;
  padding: .8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}
.service-fee-label { font-size: .9rem; color: var(--text-mid); }
.service-fee-value { font-weight: 700; color: var(--primary); font-size: .95rem; }
.service-bank-item {
  font-size: .92rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.service-memo {
  font-size: .88rem;
  color: var(--text-mid);
  background: var(--bg);
  border-radius: 6px;
  padding: .8rem 1rem;
  margin-top: .5rem;
  line-height: 1.8;
}

/* ── Services Page Hero ── */
.svc-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--gold) 100%);
  padding: 4rem 0;
  color: #fff;
}
.svc-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  font-size: .82rem;
  padding: .3rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.svc-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.svc-hero-title span { color: var(--gold); }
.svc-hero-desc { font-size: .97rem; opacity: .9; margin-bottom: 1.8rem; line-height: 1.8; }
.svc-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.svc-stat {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}
.svc-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.svc-stat-num small { font-size: 1rem; }
.svc-stat-label { display: block; font-size: .8rem; opacity: .85; margin-top: .3rem; }

/* ── Service Country Cards ── */
.svc-country-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.svc-country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(200,85,58,.15);
  border-color: var(--primary);
}
.svc-country-flag { font-size: 2.8rem; margin-bottom: .8rem; }
.svc-country-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.svc-country-card p { font-size: .85rem; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* ── Service Timeline ── */
.svc-timeline {
  max-width: 720px;
  margin: 0 auto;
}
.svc-tl-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.svc-tl-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.svc-tl-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 1;
}
.svc-tl-icon-gold { background: var(--gold); }
.svc-tl-line {
  width: 2px;
  flex: 1;
  min-height: 2rem;
  background: linear-gradient(to bottom, var(--primary), var(--border));
  margin: .3rem 0;
}
.svc-tl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
  flex: 1;
  transition: box-shadow .2s;
}
.svc-tl-card:hover { box-shadow: 0 6px 20px rgba(200,85,58,.1); }
.svc-tl-card-gold { border-color: var(--gold); background: linear-gradient(135deg, #fff, #FFF8F3); }
.svc-tl-step {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  display: block;
  margin-bottom: .4rem;
}
.svc-tl-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.svc-tl-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.8; margin: 0; }

/* ── Service Why Cards ── */
.svc-why-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.svc-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200,85,58,.12);
  border-color: var(--primary);
}
.svc-why-icon {
  font-size: 2rem;
  color: var(--primary);
  display: block;
  margin-bottom: .8rem;
}
.svc-why-card h3 { font-size: .97rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.svc-why-card p { font-size: .85rem; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* ── FAQ Accordion ── */
.faq-accordion { border-radius: 12px; overflow: hidden; }
.faq-item { border: 1px solid var(--border) !important; margin-bottom: .5rem; border-radius: 10px !important; overflow: hidden; }
.faq-item .accordion-button {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  padding: 1rem 1.2rem;
}
.faq-item .accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background: var(--cream);
  box-shadow: none;
}
.faq-item .accordion-button::after {
  filter: none;
}
.faq-item .accordion-button:not(.collapsed)::after {
  filter: none;
}
.faq-answer {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.9;
  background: #fff;
  padding: 1rem 1.2rem;
}

/* ── Service Fee Cards ── */
.svc-fee-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.svc-fee-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.svc-fee-flag { font-size: 2.4rem; margin-bottom: .5rem; line-height: 1; }
.svc-fee-country { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
.svc-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .6rem;
  border-radius: 8px;
  background: var(--cream);
  margin-bottom: .5rem;
}
.svc-fee-row-full { background: var(--primary-light, #fce8f0); }
.svc-fee-label { font-size: .8rem; color: var(--text-mid); }
.svc-fee-price { font-size: .95rem; font-weight: 700; color: var(--primary-dark); }
.svc-fee-memo {
  background: #f8f9fa;
  border-left: 4px solid var(--primary);
  padding: .85rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
  color: var(--text-mid);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Service Bottom CTA ── */
.svc-bottom-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 4rem 0;
  color: #fff;
}
.svc-bottom-cta h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .8rem; }
.svc-bottom-cta p { font-size: .97rem; opacity: .9; margin-bottom: 1.8rem; }
.svc-bottom-cta .cta-btn { background: #fff; color: var(--primary); }
.svc-bottom-cta .cta-btn:hover { background: var(--cream); color: var(--primary-dark); }

/* ── Service Steps ── */
.service-steps { display: flex; flex-direction: column; gap: 1.2rem; }
.service-step-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.service-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .3rem;
}
.service-step-body p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0;
}

/* ── Service Features ── */
.service-feature-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 8px;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  height: 100%;
}
.service-feature-icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .1rem;
}
.service-feature-item strong { font-size: .93rem; color: var(--text-dark); display: block; margin-bottom: .2rem; }
.service-feature-item p { font-size: .85rem; color: var(--text-mid); margin: 0; line-height: 1.7; }

/* ── Service CTA Block ── */
.service-cta-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #fff;
  margin-top: 1.5rem;
}
.service-cta-block h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.service-cta-block p { font-size: .92rem; opacity: .9; margin-bottom: 1.2rem; }
.service-cta-block .cta-btn {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.service-cta-block .cta-btn:hover { background: var(--cream); color: var(--primary-dark); transform: translateY(-2px); }

/* ── Sitemap Page ── */
.sitemap-list {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.sitemap-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .8rem;
}
.sitemap-list ul { padding-left: 1.2rem; list-style: disc; }
.sitemap-list ul li { margin-bottom: .4rem; }
.sitemap-list ul li a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: .92rem;
}
.sitemap-list ul li a:hover { color: var(--primary); }

/* ── Pagination 強化 ── */
.pagination {
  gap: .25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  border-radius: 8px !important;
  min-width: 38px;
  text-align: center;
  font-size: .88rem;
  padding: .45rem .75rem;
  transition: all .15s;
}
.pagination .page-link:hover {
  background: var(--cream);
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.pagination .page-item.disabled .page-link {
  color: var(--border);
  border-color: var(--border);
  background: transparent;
}
.pagination-wrap {
  margin-top: 2rem;
}

/* ── RWD ── */
@media (max-width: 991px) {
  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.7rem; }
  .stat-num { font-size: 1.6rem; }
  .article-box { padding: 1.2rem; }
  .article-nav { flex-direction: column; gap: .4rem; }
  .article-nav a { max-width: 100%; }
  .profile-detail-table th { width: 70px; }
  footer .row > div { margin-bottom: .5rem; }
}

@media (max-width: 767px) {
  /* Services */
  .svc-hero { padding: 2.5rem 0; }
  .svc-hero-title { font-size: 1.5rem; }
  .svc-hero-stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .svc-stat { padding: .8rem; }
  .svc-stat-num { font-size: 1.4rem; }
  .svc-tl-card { padding: 1rem 1.1rem; }
  .svc-bottom-cta { padding: 2.5rem 0; }
  .svc-bottom-cta h2 { font-size: 1.3rem; }

  /* Topbar */
  .topbar { font-size: .78rem; padding: 4px 0; }

  /* Navbar */
  .navbar-brand { font-size: 1.25rem; }
  .navbar-collapse { background: var(--cream); padding: .5rem 1rem; border-top: 1px solid var(--border); }
  .nav-link { padding: .6rem .8rem !important; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-cta { border-radius: 0 !important; margin-top: .3rem; }

  /* Hero */
  .hero { min-height: 280px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: .9rem; }
  .hero-badge { font-size: .75rem; }
  .hero .btn { font-size: .85rem; padding: .5rem 1.2rem; }

  /* Stats */
  .stats-bar { padding: 1.2rem 0; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .78rem; }

  /* Section */
  .section-title { margin-bottom: 1.5rem; }
  .section-title h1, .section-title h2 { font-size: 1.3rem; }
  .section-bg { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .section-white { padding: 2.5rem 0; }

  /* Profile cards */
  .profile-card-img { aspect-ratio: 3/4; }
  .profile-card-body { padding: .7rem; }
  .profile-card-body h5 { font-size: .88rem; }
  .profile-card-btn { font-size: .8rem; padding: .3rem .8rem; }

  /* Profile detail */
  .profile-detail-name { font-size: 1.2rem; }
  .profile-detail-table { font-size: .85rem; }
  .profile-detail-table th, .profile-detail-table td { padding: .4rem .6rem; }

  /* Article */
  .article-box { padding: 1rem; }
  .article-title { font-size: 1.2rem; }
  .article-cover { max-height: 240px; }

  /* Contact form */
  .contact-form .form-control,
  .contact-form .form-select { font-size: .88rem; }

  /* About */
  .about-section-item { padding: 1.2rem; }

  /* Services */
  .service-block { padding: 1.2rem; }
  .service-fee-grid { grid-template-columns: 1fr; }

  /* Sidebar */
  .sidebar-widget { margin-bottom: 1rem; }

  /* CTA */
  .cta-section { padding: 2.5rem 0; }
  .cta-btn { font-size: .95rem; padding: .7rem 2rem; }

  /* Footer */
  footer { padding: 2rem 0 1rem; }
  footer h5 { margin-bottom: .6rem; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
}

@media (max-width: 575px) {
  /* Breadcrumb */
  .breadcrumb { font-size: .78rem; }
  .breadcrumb-item { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Country tabs */
  .country-tabs .tab-link { font-size: .8rem; padding: .25rem .7rem; }

  /* Pagination */
  .pagination .page-link { min-width: 32px; padding: .35rem .55rem; font-size: .8rem; }

  /* Story cards */
  .story-card img { aspect-ratio: 1/1; }

  /* Carousel indicators */
  .carousel-indicators { bottom: .5rem; }
}
