:root {
  --navy: #1a365d;
  --navy-light: #2c5282;
  --navy-dark: #0f2440;
  --gold: #c9a96e;
  --gold-light: #d4b87a;
  --text: #1a202c;
  --text-muted: #4a5568;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 10px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.no-js .toggle-content { display: block !important; }
html.no-js .toggle-header { cursor: default; }
html.no-js .toggle-header:hover { border-color: var(--border); background: var(--bg-soft); }
html.no-js #primary-menu-trigger { display: none !important; }
html.no-js .primary-menu { display: flex !important; position: static; box-shadow: none; border: none; padding: 0; }
html.no-js .primary-menu ul { flex-direction: row; }
html.no-js #gotoTop { display: none; }
html.no-js .noscript-warning { display: block; }
.noscript-warning { display: none; background: #dc2626; color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; font-family: 'Inter', sans-serif; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', 'Noto Sans TC', sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); transition: var(--transition); text-decoration: none; }
a:hover { color: var(--gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Noto Sans SC', 'Noto Sans TC', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
[class*="col-"] { padding: 0 12px; width: 100%; }
.col-lg-4 { width: 33.333%; }
.col-lg-6 { width: 50%; }
.col-lg-8 { width: 66.667%; }
.col-lg-9 { width: 75%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-15 { width: 50%; }
@media (max-width: 991px) {
  .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9 { width: 100%; margin-bottom: 30px; }
}
@media (max-width: 767px) {
  .col-md-4, .col-md-15 { width: 100%; margin-bottom: 30px; }
}

.text-center { text-align: center; }
.text-md-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.col-mb-30 > [class*="col-"] { margin-bottom: 30px; }
.col-mb-50 > [class*="col-"] { margin-bottom: 50px; }
.col-mb-80 > [class*="col-"] { margin-bottom: 80px; }

#wrapper { overflow: hidden; }
body.stretched #wrapper { width: 100%; }

#header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
#header-wrap { padding: 0 24px; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  max-width: 1200px;
  margin: 0 auto;
  transition: var(--transition);
}
#logo a { display: flex; align-items: center; transition: var(--transition); }
#logo img { height: 88px; width: auto; transition: var(--transition); }
#logo { flex-shrink: 0; }
.retina-logo { display: none; }
#header.scrolled #logo img { height: 48px; }
#header.scrolled .header-row { height: 66px; }

.primary-menu ul { display: flex; gap: 4px; white-space: nowrap; }
.primary-menu .menu-link {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text) !important;
  border-radius: 6px;
  transition: var(--transition);
}
.primary-menu .menu-link:hover { background: rgba(26,54,93,0.05); color: var(--navy) !important; }
.header-lang { display: flex; gap: 8px; }
.header-lang a {
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted) !important;
  transition: var(--transition);
  white-space: nowrap;
}
.header-lang a:hover { border-color: var(--navy); color: var(--navy) !important; }
.header-lang a.lang-active { background: var(--navy); color: #fff !important; border-color: var(--navy); }
.header-lang a.lang-active:hover { background: var(--navy-dark); color: #fff !important; }

#primary-menu-trigger { display: none; cursor: pointer; padding: 8px; }
#primary-menu-trigger svg { width: 28px; height: 28px; stroke: var(--navy); stroke-width: 4; fill: none; }

@media (max-width: 991px) {
  #primary-menu-trigger { display: block; flex-shrink: 0; }
  #logo img { height: 62px; }
  #header.scrolled #logo img { height: 47px; }
  #header.scrolled .header-row { height: 64px; }
  .header-lang { gap: 4px; }
  .header-lang a { font-size: 12px; padding: 4px 10px; }
  .header-row { height: 80px; gap: 6px; }
  .primary-menu {
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .primary-menu.open { display: block; }
  .primary-menu ul { flex-direction: column; gap: 0; }
  .primary-menu .menu-link { padding: 12px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
}
@media (max-width: 400px) {
  #logo img { height: 49px; }
  #header.scrolled #logo img { height: 36px; }
  #header.scrolled .header-row { height: 52px; }
  .header-lang a { font-size: 11px; padding: 3px 7px; }
  .header-row { height: 64px; gap: 4px; }
  #primary-menu-trigger svg { width: 24px; height: 24px; }
  .primary-menu { top: 65px; }
}

#page-title {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 30px 0 60px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  min-height: 220px;
}
#page-title.page-title-hero { padding: 40px 0 330px; }
#page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#page-title span {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.breadcrumb { display: flex; gap: 8px; margin-top: 16px; font-size: 14px; list-style: none; padding: 0; }
.breadcrumb a { color: rgba(255,255,255,0.65); text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(255,255,255,0.4);
  margin-right: 8px;
}

@media (max-width: 768px) {
  #page-title h1 { font-size: 1.8rem; }
  #page-title span { font-size: 0.95rem; }
  #page-title { padding: 20px 0 40px; min-height: 160px; }
  #page-title.page-title-hero { padding: 30px 0 120px; background-position: top center; min-height: 200px; }
}
@media (max-width: 480px) {
  #page-title h1 { font-size: 1.5rem; }
  #page-title { padding: 16px 0 32px; min-height: 140px; }
  #page-title.page-title-hero { padding: 20px 0 80px; background-position: top center; min-height: 180px; }
}

#content { padding: 0; }
.content-wrap { padding: 60px 0; }
@media (max-width: 768px) { .content-wrap { padding: 40px 0; } }

.home-cards { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.home-card { padding: 0 12px; width: 33.333%; margin-bottom: 24px; display: flex; }
.home-card-inner {
  padding: 40px 32px;
  border-radius: 16px;
  color: #fff;
  flex: 1;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.home-card-inner:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.col-lg-4:nth-child(1) .home-card-inner { background: linear-gradient(135deg, #1a365d, #2c5282); }
.col-lg-4:nth-child(2) .home-card-inner { background: linear-gradient(135deg, #5c1a2e, #7a2d45); }
.col-lg-4:nth-child(3) .home-card-inner { background: linear-gradient(135deg, #c9a96e, #d4b87a); color: #1a202c; }
.col-lg-4:nth-child(3) .home-card-inner h3,
.col-lg-4:nth-child(3) .home-card-inner p { color: #1a202c; }
.col-lg-4:nth-child(3) .btn { border-color: #1a202c; color: #1a202c; }
.col-lg-4:nth-child(3) .btn:hover { background: #1a202c; color: #fff; }
.home-card-inner h3 { font-size: 1rem; letter-spacing: 1.5px; margin-bottom: 16px; color: #fff; }
.home-card-inner p { font-size: 14px; line-height: 1.8; opacity: 0.92; margin-bottom: 20px; }
.home-card-icon {
  position: absolute; right: 24px; bottom: 24px; font-size: 56px; opacity: 0.1;
  transition: var(--transition); line-height: 1; pointer-events: none;
}
.home-card-inner:hover .home-card-icon { opacity: 0.15; transform: scale(1.1); }

@media (max-width: 991px) {
  .home-card { width: 100%; }
  .home-card-inner:hover { transform: none; }
}
@media (max-width: 480px) {
  .home-card-inner { padding: 28px 22px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--navy); }

.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 24px 0;
  margin-top: 100px;
  background: var(--navy);
  border: none;
  border-radius: 0;
  color: #fff;
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.btn-cta:hover { background: var(--navy-light); color: #fff; }
.btn-cta strong { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .btn { padding: 10px 22px; font-size: 11px; }
}

.heading-block { margin-bottom: 24px; }
.fancy-title h4 {
  font-family: 'Playfair Display', Georgia, 'Noto Sans SC', 'Noto Sans TC', serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.25rem;
}
.fancy-title h4 span { font-style: italic; }
.fancy-title.title-border { position: relative; padding-bottom: 14px; margin-bottom: 20px; }
.fancy-title.title-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.border-bottom-0::after { display: none; }

.team-image img { border-radius: 12px; box-shadow: var(--shadow-md); transition: var(--transition); }
.team-image img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.team-bio { line-height: 1.9; margin-bottom: 1.5em; }
.people-divider { margin: 60px 0; border: 0; height: 1px; background: linear-gradient(to right, var(--gold), transparent); }
.list-disc { list-style: disc; padding-left: 20px; }
.text-6rem { font-size: 6rem; line-height: 1; color: var(--gold); }

.toggle { margin-bottom: 12px; }
.toggle-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.toggle-header:hover { border-color: var(--navy); background: #edf2f7; }
.toggle-icon { font-size: 14px; color: var(--gold); line-height: 1; transition: var(--transition); }
.toggle.open .toggle-icon { transform: rotate(90deg); }
.toggle-title {
  font-family: 'Inter', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  flex: 1;
}
.toggle-content {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  display: none;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.toggle.open .toggle-content { display: block; }
.toggle.open .toggle-header { border-radius: var(--radius) var(--radius) 0 0; }

#footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 48px 0 0; }
.footer-widgets-wrap .row { margin-bottom: 0; }
.footer-logo { width: 120px; margin-bottom: 12px; opacity: 0.8; transition: var(--transition); }
.footer-logo:hover { opacity: 1; }
.footer-info { font-size: 14px; line-height: 2; color: var(--text-muted); }
.footer-info i { margin-right: 6px; }

#copyrights { background: var(--navy-dark); padding: 20px 0; color: rgba(255,255,255,0.7); font-size: 13px; text-align: center; }
#copyrights .col-md-15 { width: 100%; }
#copyrights .col-md-15:first-child { display: none; }
.copyright-links { margin-top: 4px; }
.copyright-links a { color: var(--gold); }
.copyright-links a:hover { color: var(--gold-light); }

#gotoTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 50;
  font-size: 18px;
  border: none;
}
#gotoTop.visible { opacity: 1; visibility: visible; }
#gotoTop:hover { background: var(--gold); transform: translateY(-3px); }

::selection { background: var(--gold); color: #fff; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.gutter-40 { margin: 0 -20px; }
.gutter-40 > [class*="col-"] { padding: 0 20px; }

.postcontent ul { list-style: disc; padding-left: 20px; }
.postcontent li { margin-bottom: 6px; }

[class^="icon-"] { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.icon-phone::before { content: "\1F4DE"; }
.icon-fax::before { content: "\1F4E0"; }
.icon-envelope2::before { content: "\1F4E7"; }
.icon-location::before { content: "\1F4CD"; }
.icon-angle-up::before { content: "\2191"; }
.icon-angle-right::before { content: "\2192"; }
.icon-caret-right::before { content: "\203A"; }
.icon-ok::before { content: "\2713"; color: var(--gold); font-weight: 700; }
