/* =============================================
   創興國際人力資源有限公司 - 主要樣式
   企業色：#162349（深藍）、#A67257（金棕）
   ============================================= */

:root {
  --primary: #162349;
  --secondary: #A67257;
  --primary-light: #1e3266;
  --secondary-light: #c08a6a;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f8f9fc;
  --bg-section: #f0f3f8;
  --white: #ffffff;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(22, 35, 73, 0.1);
  --shadow-hover: 0 8px 32px rgba(22, 35, 73, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}
.section-divider.left { margin-left: 0; }

/* ===== Navbar ===== */
#mainNav {
  background: rgba(22, 35, 73, 0);
  backdrop-filter: none;
  padding: 0;
  transition: var(--transition);
  z-index: 1050;
}
#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.navbar-brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
#mainNav.scrolled .navbar-brand img {
  filter: brightness(1) invert(0);
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 2rem 0.85rem !important;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
#mainNav.scrolled .navbar-nav .nav-link {
  color: var(--primary) !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
/* 移除下拉選單箭頭 */
.navbar-nav .dropdown-toggle::after {
  display: none !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}
#mainNav.scrolled .navbar-nav .nav-link:hover,
#mainNav.scrolled .navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 80%; }
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(22, 35, 73, 0.15);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  min-width: 220px;
  padding: 10px 0;
  animation: fadeInDown 0.2s ease;
  margin-top: 12px;
}
.dropdown-item {
  font-size: 0.9rem;
  padding: 12px 18px;
  color: var(--primary);
  transition: var(--transition);
  border-radius: 8px;
  margin: 0 8px;
}
.dropdown-item:hover {
  background: rgba(166, 114, 87, 0.08);
  color: var(--secondary);
  padding-left: 18px;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-cta {
  background: var(--secondary);
  color: var(--white) !important;
  border-radius: 8px;
  padding: 0.35rem 1rem !important;
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.navbar-cta:hover {
  background: var(--secondary-light) !important;
  color: var(--white) !important;
}
.navbar-cta::after { display: none !important; }

/* ===== Hero Banner ===== */
#heroCarousel { margin-top: 0; }
.hero-slide {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,35,73,0.88) 0%, rgba(22,35,73,0.55) 50%, rgba(166,114,87,0.35) 100%);
  backdrop-filter: blur(2px);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  position: relative;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--secondary), transparent);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 6px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.03em;
  word-spacing: 0.2em;
}
.hero-title span {
  color: #D4A574;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  line-height: 1.85;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.hero-btns .btn { margin-right: 0.75rem; margin-bottom: 0.5rem; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #c08a6a 100%);
  border: 2px solid transparent;
  color: var(--white);
  padding: 0.75rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(166,114,87,0.3);
}
.btn-hero-primary:hover {
  background: linear-gradient(135deg, #c08a6a 0%, var(--secondary) 100%);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(166,114,87,0.5);
}
.btn-hero-outline {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  padding: 0.75rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  margin: 0 5px;
}
.carousel-indicators .active { background: var(--secondary); }
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(22,35,73,0.5);
  border-radius: 50%;
  background-size: 50%;
}

/* ===== Section Padding ===== */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }
.bg-section { background: var(--bg-section); }
.bg-primary-dark { background: var(--primary); }

/* ===== Core Value Section ===== */
.core-value-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3266 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.core-value-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(166,114,87,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.core-value-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.core-value-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-8px);
  border-color: rgba(166,114,87,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.core-value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, #c08a6a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(166,114,87,0.4);
}
.core-value-card h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.75rem; }
.core-value-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }

/* ===== Service Entry ===== */
.service-entry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  transition: var(--transition);
}
.service-entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-entry-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.service-entry-card:hover .service-entry-bg { transform: scale(1.05); }
.service-entry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,35,73,0.92) 0%, rgba(22,35,73,0.5) 60%, transparent 100%);
  transition: var(--transition);
}
.service-entry-card:hover .service-entry-overlay {
  background: linear-gradient(to top, rgba(22,35,73,0.96) 0%, rgba(22,35,73,0.6) 60%, rgba(166,114,87,0.15) 100%);
}
.service-entry-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--white);
}
.service-entry-tag {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.service-entry-content h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.5rem; }
.service-entry-content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1rem; }
.service-entry-content .btn-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  text-decoration: none;
}
.service-entry-content .btn-link:hover { color: var(--secondary-light); }

/* ===== Advantage Cards ===== */
.advantage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 4px solid transparent;
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--secondary);
}
.advantage-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--bg-section), #e8edf5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}
.advantage-card:hover .advantage-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}
.advantage-card h5 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.6rem; }
.advantage-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== News Cards ===== */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card-item {
  will-change: transform;
}
.news-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
}
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}
.news-card-link:hover { color: var(--primary); gap: 0.5rem; }

/* ===== Contact Section ===== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h6 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 1rem; color: var(--primary); font-weight: 600; margin: 0; }

/* ===== Form Styles ===== */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,35,73,0.1);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--primary); margin-bottom: 0.4rem; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166,114,87,0.35);
  color: var(--white);
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3266 60%, #2a4080 100%);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(166,114,87,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero-subtitle { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin: 0; }
.breadcrumb-item a { color: #FFFFFF; }
.breadcrumb-item.active { color: #FFFFFF; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== Info Cards ===== */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
  border-left: 4px solid var(--secondary);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.info-card-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.info-card h5 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.75rem; }
.info-card p, .info-card li { font-size: 0.9rem; color: var(--text-muted); }
.info-card ul { padding-left: 1.2rem; margin: 0; }
.info-card li { margin-bottom: 0.3rem; }

/* ===== Step Flow ===== */
.step-flow { position: relative; }
.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 52px;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}
.step-num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h5 { color: var(--primary); font-size: 1rem; margin-bottom: 0.4rem; }
.step-content p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== Tables ===== */
.table-custom {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-custom thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border: none;
}
.table-custom tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-color: #e8ecf3;
  vertical-align: middle;
}
.table-custom tbody tr:hover { background: var(--bg-section); }
.table-custom tbody tr:nth-child(even) { background: #f8f9fc; }
.table-custom tbody tr:nth-child(even):hover { background: var(--bg-section); }

/* ===== FAQ ===== */
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  font-size: 0.95rem;
  padding: 1.1rem 1.25rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--secondary);
  background: var(--bg-section);
  box-shadow: none;
}
.faq-accordion .accordion-button::after {
  filter: invert(0);
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(50%) sepia(50%) saturate(500%) hue-rotate(350deg);
}
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-accordion .accordion-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 1rem 1.25rem;
  background: var(--bg-section);
}

/* ===== Knowledge Articles ===== */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.article-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.article-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  display: inline-block;
  background: var(--bg-section);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.article-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-card-date { font-size: 0.8rem; color: var(--text-muted); }
.article-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}
.article-read-more:hover { color: var(--primary); }

/* ===== Footer ===== */
#mainFooter {
  background: linear-gradient(180deg, #0d1a38 0%, #0a1428 100%);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-brand img {
  height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a::before {
  content: '›';
  color: var(--secondary);
  font-size: 1rem;
}
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item i {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 1.2rem 0;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--secondary); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-right: 0.5rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== LINE Float Button ===== */
.line-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.line-float-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #06C755;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(6,199,85,0.4);
  transition: var(--transition);
  position: relative;
}
.line-float-btn a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(6,199,85,0.55);
  color: var(--white);
}
.line-float-label {
  background: #06C755;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}
/* Pulse animation */
.line-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #06C755;
  animation: linePulse 2s ease-out infinite;
}
.line-pulse:nth-child(2) { animation-delay: 0.5s; }
.line-pulse:nth-child(3) { animation-delay: 1s; }
@keyframes linePulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Buttons ===== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166,114,87,0.35);
}
.btn-secondary-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-secondary-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  border: none;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #8a5e42, var(--secondary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166,114,87,0.4);
}

/* ===== Badge / Tag ===== */
.badge-primary { background: var(--primary); color: var(--white); }
.badge-secondary { background: var(--secondary); color: var(--white); }
.badge-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== License Card ===== */
.license-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3266 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.license-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 150px; height: 150px;
  background: rgba(166,114,87,0.2);
  border-radius: 50%;
}
.license-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary);
  display: block;
  margin: 0.5rem 0;
}

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--secondary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--secondary);
}
.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.timeline-item h5 { color: var(--primary); font-size: 1rem; margin-bottom: 0.3rem; }
.timeline-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== Stat Counter ===== */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  display: block;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }

/* ===== Map ===== */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== Back to Top ===== */
#backToTop {
  position: fixed;
  bottom: 180px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  cursor: pointer;
  border: none;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--secondary); transform: translateY(-3px); }

/* ===== Animations ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .navbar-collapse { background: rgba(22,35,73,0.98); padding: 1rem; border-radius: 0 0 var(--radius) var(--radius); }
  .navbar-nav .nav-link { padding: 0.7rem 0.5rem !important; }
  .navbar-nav .nav-link::after { display: none; }
  .dropdown-menu { background: rgba(255,255,255,0.05); box-shadow: none; border: none; }
  .dropdown-item { color: rgba(255,255,255,0.8); }
  .dropdown-item:hover { background: rgba(255,255,255,0.08); color: var(--secondary); }
  .hero-slide { height: 85vh; min-height: 500px; }
  .hero-title { font-size: 2rem; }
  .section-pad { padding: 60px 0; }
  .service-entry-card { height: 320px; }
  .line-float-btn { bottom: 20px; right: 20px; }
  .line-float-btn a { width: 52px; height: 52px; font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 1.7rem; }
  .hero-desc { font-size: 0.95rem; }
  .section-title { font-size: 1.6rem; }
  .page-hero { padding: 100px 0 50px; }
  .page-hero-title { font-size: 1.6rem; }
  .map-container { height: 280px; }
  .stat-number { font-size: 2.2rem; }
}

/* ===== Utility ===== */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-secondary-custom { background: var(--secondary) !important; }
.border-primary-custom { border-color: var(--primary) !important; }
.border-secondary-custom { border-color: var(--secondary) !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }
.lh-lg { line-height: 1.9 !important; }
.highlight-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== News Card Category (alias) ===== */
.news-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
}

/* ===== Contact Info Card ===== */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(22,35,73,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-card h5 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 600; }
.contact-info-card p { font-size: 0.95rem; color: var(--primary); margin: 0; font-weight: 500; }

/* ===== Contact Form Wrap ===== */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}
.contact-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,35,73,0.1);
}

/* ===== FAQ Num Badge ===== */
.faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* ===== Outline Button ===== */
.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== fw-600 fw-700 ===== */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

/* ===== Knowledge Cards ===== */
.knowledge-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}
.knowledge-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.knowledge-card-item {
  will-change: transform;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.knowledge-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.knowledge-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
}
.knowledge-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.knowledge-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.knowledge-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.knowledge-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ===== Article Content ===== */
.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  line-height: 1.9;
}
.article-content h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.article-content h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--secondary);
}
.article-content p { color: var(--text-muted); font-size: 0.95rem; }
.article-content ul { padding-left: 1.5rem; }
.article-content li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.article-header hr { border-color: var(--border); margin: 1.25rem 0; }

/* ===== Category Filter Buttons (統一樣式) ===== */
.category-filter {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.category-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #162498;
  background: white;
  color: #162498;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}
.category-btn:hover,
.category-btn.active {
  background: #162498;
  color: white;
}
