.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font: inherit;
  font-size: 0.7125rem;
  cursor: pointer;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--text);
}

.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .76;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  transform: translateY(-4px);
  width: max-content;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15,23,42,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 20;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

nav .nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: nowrap;
}

nav .nav-dropdown-menu a:hover,
nav .nav-dropdown-menu a:focus-visible {
  background: #eef4ff;
  color: #1d4ed8;
  text-decoration: none;
}

#insights {
  display: none;
}

.hero-cta-stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.hero-cta-main,
.hero-cta-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .hero-cta:not(.hero-cta-stack) {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
  justify-content: start;
  align-items: center;
}

.hero .hero-cta:not(.hero-cta-stack) .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
}

html[lang="zh-Hant"] .hero .hero-cta:not(.hero-cta-stack) a[href$=".pdf"]::before,
html[lang="zh-Hans"] .hero .hero-cta:not(.hero-cta-stack) a[href$=".pdf"]::before {
  content: "\1F4C4";
  margin-right: 6px;
}

html[lang="zh-Hant"] .hero .hero-cta:not(.hero-cta-stack) a[href*="linkedin.com"]::before,
html[lang="zh-Hans"] .hero .hero-cta:not(.hero-cta-stack) a[href*="linkedin.com"]::before {
  content: "\1F517";
  margin-right: 6px;
}

.btn-social.icon-only .social-icon-x {
  display: none;
}

.btn-social.icon-only::after {
  content: "X";
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.service-gateway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.service-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-top: 4px solid #3b82f6;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.service-card-link::after {
  content: none;
}

.service-card-link:hover,
.service-card-link:focus-visible {
  transform: translateY(-3px);
  border-color: #60a5fa;
  box-shadow: 0 18px 38px rgba(37,99,235,0.13);
  outline: none;
}

.service-card-link h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text);
}

.service-card-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card-link p:not(.pill) {
  margin-bottom: 18px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  transition: background .16s ease, color .16s ease;
}

.service-card-link:hover .card-action,
.service-card-link:focus-visible .card-action {
  background: #2563eb;
  color: #ffffff;
}

.insight-link-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.insight-link-card .card {
  height: 100%;
}

.service-page-hero {
  padding: 74px 0 34px;
}

.service-page-hero h1 {
  max-width: 17ch;
}

.service-page-hero .hero-cta .btn-ghost[href*="/problems-i-solve/"],
.service-page-hero .hero-cta .btn-ghost[href*="/typical-engagement/"],
.service-page-hero .hero-cta .btn-ghost[href*="/who-i-help/"],
.service-page-hero .hero-cta .btn-ghost[href*="/market-entry-plan/"] {
  display: none;
}

.service-page-layout {
  display: block;
}

.service-aside {
  background: transparent;
  border: 0;
  border-left: 3px solid #bfdbfe;
  border-radius: 0;
  padding: 2px 0 2px 18px;
  margin: 0 0 22px;
  position: static;
  max-width: 760px;
}

.service-aside h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #1d4ed8;
}

.service-aside p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-list article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 0;
  padding: 18px;
}

.service-list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-detail {
  display: none;
}

.service-steps {
  counter-reset: service-step;
}

.service-steps article {
  position: relative;
  padding-left: 62px;
}

.service-steps article::before {
  counter-increment: service-step;
  content: counter(service-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0ecff;
  color: #1d4ed8;
  font-weight: 800;
}

.service-cta-band {
  margin-top: 30px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.service-cta-band h2 {
  margin: 0;
  font-size: 0;
}

.service-cta-band h2::after {
  content: "Next";
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[lang="zh-Hant"] .service-cta-band h2::after {
  content: "下一頁";
}

html[lang="zh-Hans"] .service-cta-band h2::after {
  content: "下一页";
}

.service-cta-band p {
  display: none;
}

.service-cta-band .btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  box-shadow: none;
  font-size: 1rem;
}

.service-cta-band .btn:hover,
.service-cta-band .btn:focus-visible {
  text-decoration: underline;
  transform: none;
}

html body .service-page-layout {
  display: block !important;
}

html body .service-aside {
  background: transparent !important;
  border: 0 !important;
  border-left: 3px solid #bfdbfe !important;
  border-radius: 0 !important;
  margin: 0 0 22px !important;
  max-width: 760px !important;
  padding: 2px 0 2px 18px !important;
  position: static !important;
}

html body .service-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .service-list article {
  min-height: 0 !important;
}

html body .service-detail {
  display: none !important;
}

html body .service-cta-band {
  align-items: flex-end !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  grid-template-columns: none !important;
  margin-top: 30px !important;
  padding: 18px 0 0 !important;
  text-align: right !important;
}

html body .service-cta-band h2 {
  font-size: 0 !important;
  margin: 0 !important;
}

html body .service-cta-band p {
  display: none !important;
}

html body .service-cta-band .btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #2563eb !important;
  font-size: 1rem !important;
  padding: 0 !important;
}

.service-page-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.service-page-links a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.service-page-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .service-list,
  html body .service-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .nav-dropdown {
    width: 100%;
    display: grid;
    gap: 6px;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 0.93rem;
    padding: 8px 0;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 6px 0 0 12px;
    border: 0;
    border-left: 2px solid #dbe7fb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    transform: none;
  }

  nav .nav-dropdown-menu a {
    padding: 7px 0;
    color: var(--muted);
    font-size: 0.88rem;
    white-space: normal;
  }

  html body main#main-content section.hero div.container.hero-content div.hero-cta,
  html body main#main-content section.hero div.container.hero-content div.hero-cta.hero-cta-stack,
  html body main#main-content section.hero div.container.hero-content div.hero-cta.hero-cta-mobile-stack,
  html body main#main-content section.hero div.container.hero-content div.hero-cta .hero-cta-main,
  html body main#main-content section.hero div.container.hero-content div.hero-cta .hero-cta-secondary {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .hero .hero-cta:not(.hero-cta-stack),
  .hero-cta-main,
  .hero-cta-secondary {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-cta-main,
  .hero-cta-secondary {
    flex-direction: column;
  }

  .hero-cta-main .btn,
  .hero-cta-secondary .btn,
  .hero .hero-cta:not(.hero-cta-stack) .btn {
    width: 100%;
    justify-content: center;
  }
}
