/*
Theme Name: Utopia Hello Child
Theme URI: https://utopiaonlineltd.com
Description: Child theme of Hello Elementor for the Utopia Online / Rise Study education site. Holds design tokens (colours, type stacks) and a few global base rules. All page content is built in Elementor so the client can edit it visually.
Author: Utopia Online Limited
Template: hello-elementor
Version: 0.4.10
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: utopia-hello-child
*/

/* -------------------------------------------------------------------------
   Design tokens — mirror design-ref/utopia-online/css/tokens.css.
   Elementor Global Colors / Fonts are the source of truth inside the editor;
   these variables exist so hand-written CSS (child theme, Custom CSS boxes)
   can reference the same values.
   ------------------------------------------------------------------------- */
:root {
  --uo-navy: #003888;
  --uo-navy-2: #002e70;
  --uo-sky: #11aabd;
  --uo-ink: #142033;
  --uo-ivory: #f6f7f4;
  --uo-paper: #fffdf8;
  --uo-gold: #cea549;
  --uo-gold-deep: #8d6d2f;
  --uo-line: #d5d8cf;
  --uo-muted: #5c6674;
  --uo-teal: #0b8a9a;
  --uo-wine: #7a2e3a;
  --uo-ok: #2f6b4f;
  --uo-warn: #9a6b1f;
  --uo-radius-btn: 10px;
  --uo-radius-card: 10px;

  /* System CJK stacks — match design-ref tokens.css (no web fonts, no Google Fonts). */
  --uo-font-sans: "PingFang TC", "PingFang SC", "Hiragino Sans GB", "Noto Sans TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  --uo-font-serif: "Songti TC", "Songti SC", "STSong", "Noto Serif TC", "PMingLiU", "SimSun", serif;
}

/* -------------------------------------------------------------------------
   "Utopia Sans" / "Utopia Serif" — aliases selectable in Elementor Global Fonts.
   They resolve to whichever of the design's system fonts is installed
   (first available local() wins). Nothing is downloaded.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Utopia Sans";
  font-weight: 100 500;
  src: local("PingFang TC"), local("PingFang SC"), local("PingFangTC-Regular"), local("Hiragino Sans GB"),
       local("Noto Sans TC"), local("Noto Sans CJK TC"), local("Microsoft JhengHei"), local("Microsoft YaHei");
}
@font-face {
  font-family: "Utopia Sans";
  font-weight: 600 900;
  src: local("PingFang TC Semibold"), local("PingFangTC-Semibold"), local("PingFang SC Semibold"), local("PingFangSC-Semibold"),
       local("Hiragino Sans GB W6"), local("Noto Sans TC Bold"), local("Noto Sans CJK TC Bold"),
       local("Microsoft JhengHei Bold"), local("Microsoft YaHei Bold"), local("PingFang TC"), local("Noto Sans TC");
}
@font-face {
  font-family: "Utopia Serif";
  font-weight: 100 500;
  src: local("Songti TC"), local("Songti SC"), local("STSong"), local("Noto Serif TC"), local("Noto Serif CJK TC"),
       local("PMingLiU"), local("SimSun");
}
@font-face {
  font-family: "Utopia Serif";
  font-weight: 600 900;
  src: local("Songti TC Bold"), local("STSongti-TC-Bold"), local("Songti SC Bold"), local("STSongti-SC-Bold"),
       local("Noto Serif TC Bold"), local("Noto Serif CJK TC Bold"), local("Songti TC"), local("Noto Serif TC"), local("PMingLiU"), local("SimSun");
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--uo-ivory);
  color: var(--uo-ink);
  font-family: var(--uo-font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Design: only display h1 is serif; section h2/h3 inherit --font-sans. */
h1 {
  font-family: var(--uo-font-serif);
  color: var(--uo-navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2, h3, h4 {
  font-family: var(--uo-font-sans);
  color: var(--uo-navy);
  line-height: 1.2;
}

a {
  color: var(--uo-navy);
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility classes the Elementor build attaches via "CSS Classes" so the client
   keeps native controls but repeated visual patterns stay consistent. */
.uo-kicker {
  color: var(--uo-gold-deep);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.uo-card {
  background: var(--uo-paper);
  border: 1px solid var(--uo-line);
  border-radius: var(--uo-radius-card);
}

.uo-tone-hk    { --uo-tone: var(--uo-navy); }
.uo-tone-os    { --uo-tone: var(--uo-teal); }
.uo-tone-vpas  { --uo-tone: var(--uo-gold-deep); }
.uo-tone-bar::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--uo-tone, var(--uo-navy));
  margin-bottom: 14px;
}

/* Floating contact buttons (tel / WhatsApp / WeChat) — content is an Elementor
   section pinned via Custom CSS; this only handles positioning. */
.uo-float {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

/* -------------------------------------------------------------------------
   Blog posts — fallback only when .uo-blog-article single template is absent.
   Design singles (.uo-blog-article) are full-bleed; do not apply this max-width.
   ------------------------------------------------------------------------- */
.single-post .site-main:not(.uo-blog-article) {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.single-post .site-main:not(.uo-blog-article) .page-header .entry-title,
.single-post .site-main:not(.uo-blog-article) h1.entry-title {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 12px;
}
.single-post .site-main:not(.uo-blog-article) .post-thumbnail img,
.single-post .site-main:not(.uo-blog-article) .wp-block-image img {
  border-radius: var(--uo-radius-card);
}
.single-post .site-main:not(.uo-blog-article) .entry-content {
  font-size: 17px;
  line-height: 1.85;
}
.single-post .site-main:not(.uo-blog-article) .entry-content h2 {
  font-size: 24px;
  margin: 36px 0 12px;
}
.single-post .site-main:not(.uo-blog-article) .entry-content blockquote {
  border-left: 4px solid var(--uo-gold);
  background: var(--uo-paper);
  padding: 16px 22px;
  margin: 24px 0;
  font-family: var(--uo-font-serif);
  color: var(--uo-navy);
}
.single-post .site-main:not(.uo-blog-article) .entry-content .uo-note {
  background: var(--uo-paper);
  border: 1px solid var(--uo-line);
  border-left: 4px solid var(--uo-gold);
  border-radius: var(--uo-radius-card);
  margin: 28px 0;
}
.single-post .site-main:not(.uo-blog-article) .entry-footer,
.single-post .site-main:not(.uo-blog-article) .post-navigation {
  margin-top: 40px;
  color: var(--uo-muted);
  font-size: 14px;
}
.archive .site-main,
.search .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* WPForms inside the contact block — inherit tokens (design .form-grid / .field). */
.wpforms-container .wpforms-field-label {
  color: var(--uo-ink);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 6px;
}
.wpforms-container .wpforms-field { padding: 7px 0; }
.wpforms-container .wpforms-field-container { display: flex; flex-wrap: wrap; gap: 0 16px; }
.wpforms-container .wpforms-field-container .wpforms-field { flex: 1 1 100%; }
.wpforms-container .wpforms-field-container .wpforms-field.wpforms-one-half { flex: 1 1 calc(50% - 8px); width: auto; margin-left: 0; }
@media (max-width: 767px) {
  .wpforms-container .wpforms-field-container .wpforms-field.wpforms-one-half { flex-basis: 100%; }
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container select {
  background: var(--uo-ivory) !important;
  padding: 11px 12px !important;
  max-width: 100% !important;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container select,
.wpforms-container textarea {
  border: 1px solid var(--uo-line) !important;
  border-radius: var(--uo-radius-btn) !important;
  background: #fff !important;
  font-family: var(--uo-font-sans) !important;
}
.wpforms-container button[type="submit"] {
  background: var(--uo-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--uo-radius-btn) !important;
  padding: 12px 22px !important;
  font-family: var(--uo-font-sans) !important;
  font-weight: 800 !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.wpforms-container button[type="submit"]:hover,
.wpforms-container button[type="submit"]:focus {
  background: var(--uo-gold) !important;
  color: var(--uo-navy) !important;
  box-shadow: 0 16px 34px rgba(206, 165, 73, 0.24);
}

/* -------------------------------------------------------------------------
   Buttons — design .btn: navy at rest, gold on hover (navy label).
   Covers kit-default Elementor buttons + builder classes btn-gold / btn-navy.
   Outline variants (ghost / line / ghost-light) keep transparent fill until hover.
   ------------------------------------------------------------------------- */
.elementor-button {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.elementor-widget-button.btn-gold .elementor-button,
.elementor-widget-button.btn-navy .elementor-button,
.elementor-button[type="submit"] {
  background-color: var(--uo-navy) !important;
  color: #fff !important;
  border-color: var(--uo-navy) !important;
}
.elementor-widget-button.btn-gold .elementor-button:hover,
.elementor-widget-button.btn-gold .elementor-button:focus,
.elementor-widget-button.btn-navy .elementor-button:hover,
.elementor-widget-button.btn-navy .elementor-button:focus,
.elementor-button[type="submit"]:hover,
.elementor-button[type="submit"]:focus {
  background-color: var(--uo-gold) !important;
  color: var(--uo-navy) !important;
  border-color: var(--uo-gold) !important;
}
.elementor-widget-button.btn-ghost .elementor-button:hover,
.elementor-widget-button.btn-ghost .elementor-button:focus,
.elementor-widget-button.btn-line .elementor-button:hover,
.elementor-widget-button.btn-line .elementor-button:focus,
.elementor-widget-button.btn-paper .elementor-button:hover,
.elementor-widget-button.btn-paper .elementor-button:focus,
.elementor-widget-button.btn-ghost-light .elementor-button:hover,
.elementor-widget-button.btn-ghost-light .elementor-button:focus {
  background-color: var(--uo-gold) !important;
  color: var(--uo-navy) !important;
  border-color: var(--uo-gold) !important;
}

/* -------------------------------------------------------------------------
   Homepage (design home-a.html). Layout, colours, radii and type are native
   Elementor settings set by scripts/elementor/home.php; the rules below only
   add decorations Elementor has no control for. Classes are set on the
   containers/widgets so the client can still edit every text/image.
   ------------------------------------------------------------------------- */
/* Tone accents: which edge carries the teal / navy / wine colour. */
.elementor-element.uo-home-wiki-col.uo-tone-hk   { border-top-color: var(--uo-teal) !important; }
.elementor-element.uo-home-wiki-col.uo-tone-os   { border-top-color: var(--uo-navy) !important; }
.elementor-element.uo-home-wiki-col.uo-tone-vpas { border-top-color: var(--uo-wine) !important; }
.elementor-element.uo-home-pathway.uo-tone-hk,
.elementor-element.uo-home-geo-card.uo-tone-hk   { border-left-color: var(--uo-teal) !important; }
.elementor-element.uo-home-pathway.uo-tone-os,
.elementor-element.uo-home-geo-card.uo-tone-os   { border-left-color: var(--uo-navy) !important; }
.elementor-element.uo-home-pathway.uo-tone-vpas,
.elementor-element.uo-home-geo-card.uo-tone-vpas { border-left-color: var(--uo-wine) !important; }

/* Pathway cards: line icon top-right (design .home-pathway::before, same SVGs).
   ::after because Elementor reserves .e-con::before for its background overlay. */
.uo-home-pathway::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  background: center / 30px no-repeat;
  pointer-events: none;
}
.uo-home-pathway.uo-tone-hk::after   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%233f919e' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 27h22M8 27V12l8-5 8 5v15M12 27v-9h8v9M11 14h2M19 14h2'/%3E%3C/svg%3E"); }
.uo-home-pathway.uo-tone-os::after   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23002e70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='11'/%3E%3Cpath d='M5 16h22M16 5c3 3.6 4.5 7.2 4.5 11S19 23.4 16 27M16 5c-3 3.6-4.5 7.2-4.5 11S13 23.4 16 27'/%3E%3C/svg%3E"); }
.uo-home-pathway.uo-tone-vpas::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%238b2e4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h10l4 4v18H9zM19 5v5h5M12 17l3 3 6-7M12 24h8'/%3E%3C/svg%3E"); }

/* Pill lists (.path-tags / .marks / .tabs): Icon List items drawn as pills. */
.uo-home-pills .elementor-icon-list-items { gap: 8px; }
.uo-home-pills .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.uo-home-pills .elementor-icon-list-item .elementor-icon-list-text {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #344052;
}
.uo-home-marks .elementor-icon-list-item .elementor-icon-list-text {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  color: #fff;
}
.uo-home-tabs .elementor-icon-list-item .elementor-icon-list-text {
  background: var(--uo-ivory);
  border: 1px solid var(--uo-line);
  border-radius: 4px;
  padding: 8px 14px;
  min-height: 40px;
}
/* Advisor filter pills (Elementor buttons) — design .tabs */
.uo-home-tabs .elementor-button {
  min-height: 40px;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  border: 1px solid var(--uo-line) !important;
  background: var(--uo-ivory) !important;
  color: var(--uo-ink) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}
.uo-home-tabs .elementor-button.is-advisor-filter-active,
.uo-home-tabs .elementor-button[aria-pressed="true"] {
  background: var(--uo-navy) !important;
  border-color: var(--uo-navy) !important;
  color: #fff !important;
}
.uo-home-advisor[hidden] { display: none !important; }

/* Service route "1 聯絡我們 → 2 據點面談 → 3 書面路徑" (design .service-route). */
.uo-home-route .elementor-icon-list-items { counter-reset: uo-route; }
.uo-home-route .elementor-icon-list-item { position: relative; padding: 10px 6px 8px 18px !important; margin: 0 !important; }
.uo-home-route .elementor-icon-list-item::before {
  counter-increment: uo-route;
  content: counter(uo-route);
  position: absolute;
  left: 0;
  top: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(210, 167, 76, 0.14);
  color: var(--uo-gold);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.uo-home-route .elementor-icon-list-item:first-child::before {
  background: #ffc84d;
  color: var(--uo-navy);
  box-shadow: 0 0 0 8px rgba(255, 200, 77, 0.18), 0 0 24px rgba(255, 200, 77, 0.74);
}
.uo-home-route .elementor-icon-list-item:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--uo-gold);
  font-size: 18px;
  font-weight: 700;
}
.uo-home-route .elementor-icon-list-item:first-child .elementor-icon-list-text {
  text-decoration: underline;
  text-decoration-color: var(--uo-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.uo-home-route .elementor-icon-list-item:not(:first-child) .elementor-icon-list-text {
  background: linear-gradient(100deg, var(--uo-navy) 6%, #0050a8 45%, var(--uo-teal) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.uo-home-summary strong { display: block; color: #35465a; font-weight: 800; margin-bottom: 4px; }
.uo-home-summary p { margin: 0; }

/* 資訊百科 list: first (active) item highlighted with the column tone. */
.uo-home-wiki-list .elementor-icon-list-item { padding: 14px 0 !important; margin: 0 !important; }
.uo-home-wiki-list .elementor-icon-list-item:first-child {
  padding-left: 12px !important;
  border-left: 3px solid var(--uo-navy);
  background: rgba(0, 56, 136, 0.09);
  font-weight: 600;
}
.uo-home-wiki-list .elementor-icon-list-item:first-child .elementor-icon-list-text { color: var(--uo-navy); }
.uo-home-wiki-list.uo-tone-hk .elementor-icon-list-item:first-child { border-left-color: var(--uo-teal); background: rgba(11, 138, 154, 0.09); }
.uo-home-wiki-list.uo-tone-hk .elementor-icon-list-item:first-child .elementor-icon-list-text { color: var(--uo-teal); }
.uo-home-wiki-list.uo-tone-vpas .elementor-icon-list-item:first-child { border-left-color: var(--uo-wine); background: rgba(122, 46, 58, 0.09); }
.uo-home-wiki-list.uo-tone-vpas .elementor-icon-list-item:first-child .elementor-icon-list-text { color: var(--uo-wine); }

/* 辦理流程: white wave behind the three steps + dashed stem / teal dot (design .process-wave / .flow-join). */
.uo-home-process-flow {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 70 40, 110 14, 200 14 S 400 66, 600 66 800 14, 1000 14 1130 40, 1200 40' fill='none' stroke='%23fff' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 80px no-repeat;
}
/* Stem + dot drawn in one ::after (dashed 22px line + 14px teal dot with #eef2f6 ring). */
.uo-home-flow { position: relative; }
.uo-home-flow::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 44px;
  transform: translateX(-50%);
  pointer-events: none;
}
.uo-home-flow-up::after {
  top: 50%;
  transform: translate(-50%, -44px);
  background:
    radial-gradient(circle at 50% 33px, var(--uo-sky) 6.5px, #eef2f6 7px, #eef2f6 10.5px, transparent 11px),
    repeating-linear-gradient(to bottom, #8ea0b5 0 3px, transparent 3px 6px) 50% 0 / 1px 22px no-repeat;
}
.uo-home-flow-down::after {
  top: 50%;
  transform: translate(-50%, 0);
  background:
    radial-gradient(circle at 50% 11px, var(--uo-sky) 6.5px, #eef2f6 7px, #eef2f6 10.5px, transparent 11px),
    repeating-linear-gradient(to bottom, #8ea0b5 0 3px, transparent 3px 6px) 50% 22px / 1px 22px no-repeat;
}
@media (max-width: 1024px) {
  .uo-home-process-flow { background: none; }
  .uo-home-flow::after { display: none; }
}

/* Homepage hero — same wash on localhost and the tunnel.
   Elementor's overlay lives in generated CSS; if that file is late or the
   image URL is host-specific the photo reads as almost bare. Pin both here. */
.elementor-element.uo-home-hero {
  position: relative;
  background-color: #00285c !important;
  background-image: url("/wp-content/uploads/2026/09/campus.jpg") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.elementor-element.uo-home-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(0, 40, 96, 0.82) 0%, rgba(0, 56, 136, 0.28) 70%) !important;
  opacity: 1 !important;
  z-index: 1;
  pointer-events: none;
}
.elementor-element.uo-home-hero > .e-con-inner {
  position: relative;
  z-index: 2;
}

/* Calendar slabs sit over the hero photo. Teal / wine are custom kit colours
   (var(--e-global-color-uo_teal / uo_wine)); if that variable is missing the
   card is transparent and the photo shows through. Pin opaque fills. */
.uo-home-nodes .elementor-element.node:nth-child(1) { background-color: var(--uo-teal) !important; }
.uo-home-nodes .elementor-element.node:nth-child(2) { background-color: var(--uo-navy) !important; }
.uo-home-nodes .elementor-element.node:nth-child(3) { background-color: var(--uo-wine) !important; }
.uo-home-nodes .elementor-element.node:nth-child(4) { background-color: var(--uo-navy-2) !important; }

/* 線下地區 map switch — no permanent underline (design shows gold bar only on press). */
.uo-home-geo-switches .elementor-icon-list-item .elementor-icon-list-text {
  text-decoration: none;
}
.uo-home-map .elementor-widget-shortcode,
.uo-home-map .elementor-widget-container,
.uo-home-map .uo-baidu-map,
.uo-home-map iframe { width: 100%; height: 100%; min-height: 520px; display: block; }
.uo-home-map iframe { filter: saturate(0.82) contrast(0.96); }

/* 成功案例 horizontal rail: snap + slim scrollbar (design .cards). */
.uo-home-rail { scroll-snap-type: x mandatory; scrollbar-color: var(--uo-navy) transparent; scrollbar-width: thin; }
.uo-home-rail > .elementor-element { scroll-snap-align: start; }
.uo-home-rail::-webkit-scrollbar { height: 8px; }
.uo-home-rail::-webkit-scrollbar-thumb { background: var(--uo-navy); border-radius: 999px; }
.uo-home-case .card-title a { color: inherit; }
.uo-home-case .elementor-widget-image a,
.uo-home-case .elementor-widget-image img { display: block; width: 100%; }

/* Advisor photos: 3:4 crop, faces kept in frame (design object-position 50% 15%). */
.uo-home-advisor-photo img { object-position: 50% 15%; }

/* Equal-height cards: stretch the row, then pin the CTA to the bottom so
   buttons share one baseline (design .advisor .cta { margin-top: auto }).
   height must stay auto — Elementor .e-con uses height: var(--height), and an
   explicit 100% would block align-items: stretch. */
.elementor-element.uo-home-advisor,
.elementor-element.uo-home-pathway {
  height: auto;
  align-self: stretch;
}
.elementor-element.uo-home-advisor > .e-con.advisor-body {
  flex: 1 1 auto;
}
.elementor-element.uo-home-advisor .elementor-widget-button,
.elementor-element.uo-home-pathway > .elementor-widget-button {
  margin-top: auto !important;
  align-self: flex-start;
  width: auto;
}
@media (max-width: 640px) {
  .elementor-element.uo-home-advisor .elementor-widget-button,
  .elementor-element.uo-home-pathway > .elementor-widget-button {
    align-self: stretch;
    width: 100%;
  }
}

/* -------------------------------------------------------------------------
   Header nav — design .nav-bar / .mega-menu on top of the HFE Navigation Menu
   widget. HFE shows submenus with visibility/opacity, so the level-1 <ul> can
   be laid out as the design's white 3-column panel and level-2 lists become
   the columns. Menu items stay editable in Appearance → Menus. Desktop only;
   ≤1024px HFE's own hamburger/accordion takes over.
   ------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .uo-mega-nav .hfe-nav-menu > li.menu-item > .hfe-has-submenu-container > a,
  .uo-mega-nav .hfe-nav-menu > li.menu-item > a { min-height: 58px; }
  .uo-mega-nav .hfe-nav-menu > li.menu-item:first-child > a,
  .uo-mega-nav .hfe-nav-menu > li.menu-item:first-child > .hfe-has-submenu-container > a { padding-left: 0; }
  .uo-mega-nav .sub-arrow { display: none; }

  /* Level-1 panel (design .mega-menu.wide) — roomy white card under the navy bar.
     Width uses the design max (920) so the box reads as large as the mock-up; padding
     and row gaps match the airy spacing in the design screenshots.

     Critical: HFE only toggles visibility/opacity. An invisible but still
     pointer-events:auto mega panel sits under neighbouring items (FAQ etc.),
     so hovering “empty” space below the bar re-triggers :hover on the parent.
     Match design-ref: pointer-events none while closed. */
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child > ul.sub-menu,
  .uo-mega-nav .hfe-nav-menu > li.menu-item-has-children > ul.sub-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 28px;
    width: min(920px, calc(100vw - 40px));
    min-width: min(920px, calc(100vw - 40px));
    max-width: min(920px, calc(100vw - 40px));
    padding: 28px 32px;
    background: #fff;
    color: var(--uo-ink);
    border: 1px solid var(--uo-line);
    border-radius: 24px 8px 22px 12px;
    box-shadow: 0 22px 48px rgba(0, 46, 112, 0.14);
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    pointer-events: none;
  }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:hover > ul.sub-menu,
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child.focus > ul.sub-menu,
  .uo-mega-nav .hfe-nav-menu > li.menu-item-has-children:hover > ul.sub-menu,
  .uo-mega-nav .hfe-nav-menu > li.menu-item-has-children.focus > ul.sub-menu {
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Narrow hover bridge: fill the 8px translate gap so the pointer can travel
     from the nav label into the panel without losing :hover — only while open. */
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:hover > ul.sub-menu::before,
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child.focus > ul.sub-menu::before,
  .uo-mega-nav .hfe-nav-menu > li.menu-item-has-children:hover > ul.sub-menu::before,
  .uo-mega-nav .hfe-nav-menu > li.menu-item-has-children.focus > ul.sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child > ul.sub-menu > li { display: grid; align-content: start; gap: 14px; }
  /* Column heading (design .mega-col strong — label, not a link) */
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child > ul.sub-menu > li.parent-has-child > .hfe-has-submenu-container {
    cursor: default;
  }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child > ul.sub-menu > li.parent-has-child > .hfe-has-submenu-container > a,
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child > ul.sub-menu > li.parent-has-child > .hfe-has-submenu-container > .uo-mega-heading-label {
    color: var(--uo-navy) !important;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    padding: 0 !important;
    background: transparent !important;
    cursor: default;
    text-decoration: none;
  }
  /* Level-2 list = column: always visible inside the panel, no second flyout */
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child > ul.sub-menu > li > ul.sub-menu {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: grid;
    gap: 14px;
    min-width: 0;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
  }
  .uo-mega-nav .hfe-nav-menu ul.sub-menu a.hfe-sub-menu-item {
    padding: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  .uo-mega-nav .hfe-nav-menu ul.sub-menu ul.sub-menu a.hfe-sub-menu-item { color: #344052 !important; }
  .uo-mega-nav .hfe-nav-menu ul.sub-menu ul.sub-menu a.hfe-sub-menu-item:hover { color: var(--uo-navy) !important; }

  /* One-level dropdowns (成功案例 / 關於我們) → design .mega-menu.simple: card links with a › badge */
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:not(:has(li.parent-has-child)) > ul.sub-menu {
    grid-template-columns: 1fr;
    gap: 12px;
    width: max-content;
    min-width: min(420px, calc(100vw - 40px));
    max-width: min(480px, calc(100vw - 40px));
    padding: 22px;
  }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:not(:has(li.parent-has-child)) > ul.sub-menu > li > a.hfe-sub-menu-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 14px 11px 12px !important;
    border: 1px solid rgba(0, 46, 112, 0.1);
    border-radius: 16px 6px 14px 8px;
    background: rgba(255, 255, 255, 0.68) !important;
    color: #344052 !important;
  }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:not(:has(li.parent-has-child)) > ul.sub-menu > li:nth-child(even) > a.hfe-sub-menu-item { border-radius: 6px 16px 8px 14px; }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:not(:has(li.parent-has-child)) > ul.sub-menu > li > a.hfe-sub-menu-item::before {
    content: "›";
    position: static !important;   /* HFE pointer CSS makes a::before absolute */
    opacity: 1 !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 11px 4px 10px 6px;
    background: var(--uo-navy);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
  }
  .uo-mega-nav .hfe-nav-menu > li.parent-has-child:not(:has(li.parent-has-child)) > ul.sub-menu > li > a.hfe-sub-menu-item:hover { color: var(--uo-navy) !important; }
}

/* ≤1024px: HFE accordion styled like the design's navy .nav-panel */
@media (max-width: 1024px) {
  .uo-mega-nav ul.hfe-nav-menu {
    background: var(--uo-navy);
    border-radius: 0 0 18px 18px;
    padding: 6px 0 10px;
    box-shadow: 0 22px 48px rgba(0, 46, 112, 0.24);
  }
  .uo-mega-nav .hfe-nav-menu a.hfe-menu-item,
  .uo-mega-nav .hfe-nav-menu a.hfe-sub-menu-item {
    color: #e8edf3 !important;
    background: transparent !important;
  }
  .uo-mega-nav .hfe-nav-menu ul.sub-menu {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .uo-mega-nav .hfe-nav-menu .sub-arrow { color: #fff; }
  .uo-mega-nav .hfe-nav-menu .uo-mega-heading-label {
    color: #fff !important;
    font-weight: 700;
    cursor: default;
  }
}

/* Floating tel / WhatsApp / WeChat badges (design .float) */
.float .elementor-widget-image { line-height: 0; }
.float .elementor-widget-image img { display: block; width: 54px; height: 54px; }

/* Header 繁 / 簡 switcher — same pill as design-ref `.lang`; links route to / and /sc/. */
.elementor-element.lang,
.elementor-widget.lang {
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
}
.lang .elementor-widget-container,
.lang .elementor-shortcode {
  display: inline-flex;
}
.uo-lang-switch {
  display: inline-flex;
  border: 1px solid var(--uo-line);
  border-radius: 14px 5px 14px 7px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.uo-lang-switch a {
  color: var(--uo-muted);
  text-decoration: none;
  padding: 6px 10px;
  background: transparent;
}
.uo-lang-switch a:hover {
  color: var(--uo-navy);
}
.uo-lang-switch a[aria-current="page"] {
  background: var(--uo-navy);
  color: #fff;
}
.uo-lang-switch a[aria-current="page"]:hover {
  color: #fff;
}

/* -------------------------------------------------------------------------
   Inner pages (service / wiki / case / faq / about / contact / utility).
   Layout, type and colour are native Elementor settings from inner.php;
   these rules only add decorations Elementor has no control for.
   ------------------------------------------------------------------------- */
.uo-inner-crumbs-wrap { max-width: 1160px; }
.uo-inner-crumbs,
.uo-inner-crumbs .elementor-widget-container,
.uo-inner-crumbs .elementor-widget-container p {
  font-size: 13px;
  color: var(--uo-muted);
  line-height: 1.5;
  margin: 0;
}
.uo-inner-crumbs a { color: var(--uo-navy); text-decoration: none; }
.uo-inner-crumbs a:hover { color: var(--uo-navy-2); }
.uo-inner-crumbs .crumb-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.uo-inner-crumbs .crumb-sep {
  display: inline-block;
  width: 7px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.62;
}

/* Service hero (.service-hero / .hero-card::before): Elementor's overlay carries the
   90deg left-to-right darkening; this ::after adds the design's bottom-up gradient
   so the copy at the foot of the photo stays legible. */
.uo-inner-service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 36, 84, 0.14) 42%, rgba(0, 36, 84, 0.72) 100%);
  pointer-events: none;
}
.uo-inner-service-hero > .e-con-inner { position: relative; z-index: 1; }

/* .hero-facts — gold serif 01 / 02 / 03 counters in front of each fact. */
.uo-inner-facts .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  counter-reset: uo-hero-fact;
}
.uo-inner-facts .elementor-icon-list-item {
  counter-increment: uo-hero-fact;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0 !important;
}
.uo-inner-facts .elementor-icon-list-text::before {
  content: counter(uo-hero-fact, decimal-leading-zero);
  color: var(--uo-gold);
  font-family: var(--uo-font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-right: 10px;
}

/* .step-list — vertical steps, navy 01 / 02 badge top-left (design .step::before). */
.uo-inner-steps { counter-reset: uo-service-step; }
.uo-inner-step { counter-increment: uo-service-step; position: relative; }
.uo-inner-step::after {
  content: counter(uo-service-step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px 4px 12px 7px;
  background: var(--uo-navy);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  pointer-events: none;
}

/* .side-rail — sticks under the 108px header on desktop. */
.uo-inner-rail {
  position: sticky;
  top: 108px;
}
.uo-inner-bullets .elementor-icon-list-icon { font-size: 6px; }
.uo-inner-bullets .elementor-icon-list-icon svg { width: 0.6em; }

/* Photo link cards (.related-grid a / .wiki-article-related-row a / .case-next a):
   whole container is the link; keep the type white and add the design's hover lift. */
.uo-inner-related-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.uo-inner-related-card .elementor-heading-title,
.uo-inner-related-card .elementor-heading-title a { color: #fff !important; }
a.uo-inner-related-card:hover,
a.uo-inner-related-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 32px rgba(0, 36, 84, 0.18); }
.uo-inner-related-card .elementor-widget-heading { pointer-events: none; }

/* Wiki article navline (.wiki-article-navline a::after): → badge between cells. */
.uo-inner-navcell { position: relative; }
a.uo-inner-navcell:hover { background: rgba(255, 255, 255, 0.06); }
.uo-inner-navcell:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--uo-navy);
  color: #ffdf84;
  font-size: 14px;
  line-height: 1;
}
@media (max-width: 1024px) {
  .uo-inner-navcell::after { display: none; }
  .uo-inner-navcell { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
}

/* Wiki note (.wiki-article-note::before): thin inner ring inside the navy band. */
.uo-inner-wiki-note::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px 6px 22px 8px;
  pointer-events: none;
}

/* Decorative watermark text (GUIDE / ?) is a Heading widget; never block clicks. */
.uo-inner-watermark { pointer-events: none; user-select: none; white-space: nowrap; }
.uo-inner-watermark .elementor-heading-title { white-space: nowrap; }

.uo-inner-note { position: relative; }

.uo-inner-assess .wpforms-container .wpforms-field { margin-bottom: 12px; }
.uo-inner-assess .wpforms-submit-container { margin-top: 8px; }

/* Case story (.case-story-photo sticky; .case-story-panel ↓ connector).
   Keep the ↓ circle fully in the gap between panels — never overlapping a box. */
.uo-inner-story-photo { position: sticky; top: 112px; }
.elementor-element.uo-inner-case-panels {
  --row-gap: 52px !important;
  --column-gap: 52px !important;
  gap: 52px !important;
}
.uo-inner-case-panel { position: relative; }
.uo-inner-case-panel:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -43px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(206, 165, 73, 0.34);
  background: rgba(255, 252, 247, 0.96);
  color: var(--uo-gold-deep);
  font-weight: 900;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 46, 112, 0.08);
}
/* Case portrait: people cut-out keeps its aspect; floating chips become a plain
   grid below 1024px (absolute positions are set in Elementor for desktop only). */
.uo-inner-case-people img { width: 100%; height: auto; display: block; }
@media (max-width: 1024px) {
  .uo-inner-portrait { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px !important; align-content: end; }
  .uo-inner-portrait .uo-inner-case-chip { position: static !important; width: auto !important; }
  .uo-inner-portrait .uo-inner-case-people { display: none; }
}
/* Service link in the student card (.case-service-link): gold underline on hover. */
.uo-inner-service-link .elementor-heading-title a { text-decoration: none; border-bottom: 3px solid transparent; transition: border-color 0.22s ease; }
.uo-inner-service-link .elementor-heading-title a:hover { border-bottom-color: var(--uo-gold); }

/* FAQ tag pills (.faq-hero-tags span / .about-hero-tags span). */
.uo-inner-tag-pills .elementor-icon-list-item .elementor-icon-list-text {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 56, 136, 0.08);
  background: #fff;
  color: var(--uo-navy);
  font-weight: 800;
}
.uo-inner-about-hero .uo-inner-tag-pills .elementor-icon-list-text { background: rgba(255, 255, 255, 0.9); }

/* About resources hero: cream wash + split h1 (design .about-hero-resources). */
.uo-inner-about-hero-resources {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(17, 170, 189, 0.07), transparent 30%),
    radial-gradient(circle at 50% 10%, rgba(206, 165, 73, 0.1), transparent 34%),
    linear-gradient(180deg, #fbf8ed 0%, #fff8e6 42%, #f8f5eb 72%, #f7fbfc 100%) !important;
}
.uo-inner-about-title .elementor-heading-title span {
  display: block;
  margin-top: 6px;
  font-size: 0.76em;
  letter-spacing: -0.04em;
}

/* About photo collage (design .about-photo-strip): large left + two stacked right, tilted. */
.uo-inner-about-photos {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 172px);
  align-items: stretch;
  gap: 18px 20px !important;
  width: min(780px, 100%);
  margin: 18px auto 0;
  flex-wrap: nowrap !important;
}
.uo-inner-about-photos::before,
.uo-inner-about-photos::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 28px 8px 24px 10px;
  background:
    linear-gradient(135deg, rgba(206, 165, 73, 0.28) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  background-size: 16px 16px, auto;
  opacity: 0.6;
  pointer-events: none;
}
.uo-inner-about-photos::before {
  left: -42px;
  bottom: -24px;
  width: 150px;
  height: 112px;
  transform: rotate(-8deg);
}
.uo-inner-about-photos::after {
  right: -34px;
  top: 74px;
  width: 134px;
  height: 96px;
  transform: rotate(7deg);
}
.uo-inner-about-photos > .elementor-element {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  align-self: stretch;
}
.uo-inner-about-photos > .elementor-element:nth-child(1) {
  grid-row: 1 / 3;
  transform: rotate(-4deg);
}
.uo-inner-about-photos > .elementor-element:nth-child(2) {
  transform: rotate(2deg) translate(-8px, 6px);
}
.uo-inner-about-photos > .elementor-element:nth-child(3) {
  transform: rotate(3deg) translate(-40px, -2px);
}
.uo-inner-about-photos .elementor-widget-container,
.uo-inner-about-photos .elementor-image {
  height: 100%;
}
.uo-inner-about-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 12px solid #fff;
  border-radius: 18px 8px 16px 10px;
  box-shadow: 0 18px 38px rgba(0, 46, 112, 0.14);
  display: block;
}
.uo-inner-about-photos > .elementor-element:nth-child(1) img {
  border-radius: 38px 10px 26px 12px;
}
.uo-inner-about-photos > .elementor-element:nth-child(2) img {
  border-radius: 30px 8px 24px 12px;
}
.uo-inner-about-photos > .elementor-element:nth-child(3) img {
  border-radius: 24px 8px 30px 12px;
}
@media (max-width: 1024px) {
  .uo-inner-about-photos {
    grid-template-rows: repeat(2, 152px);
    width: min(680px, 100%);
  }
}
@media (max-width: 767px) {
  .uo-inner-about-photos {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: repeat(2, clamp(108px, 29vw, 148px));
    gap: 12px !important;
    width: min(100%, 620px);
  }
  .uo-inner-about-photos img { border-width: 8px; }
  .uo-inner-about-photos > .elementor-element:nth-child(1) { transform: rotate(-3deg); }
  .uo-inner-about-photos > .elementor-element:nth-child(2) { transform: rotate(2deg) translate(-4px, 4px); }
  .uo-inner-about-photos > .elementor-element:nth-child(3) { transform: rotate(3deg) translate(-20px, -2px); }
}
/* FAQ quick points: design is a 2-column grid (1 column on phones) whose bullet is
   an 18px gold disc with a translucent white inner ring — i.e. a pale gold rim around
   a gold core. The core is the native icon; the rim is this disc behind it. */
.uo-inner-quick-points .elementor-icon-list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.uo-inner-quick-points .elementor-icon-list-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--uo-gold) 28%, #fff);
}
@media (max-width: 767px) {
  .uo-inner-quick-points .elementor-icon-list-items { grid-template-columns: 1fr; }
}
/* FAQ collage: three overlapping rotated photos on desktop; stacked on small screens. */
@media (max-width: 1024px) {
  .uo-inner-faq-collage { min-height: 0 !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .uo-inner-faq-collage .elementor-widget-image { position: static !important; width: 100% !important; max-width: none !important; transform: none !important; }
  .uo-inner-faq-collage .elementor-widget-image:first-child { grid-column: 1 / -1; }
}
/* Nested accordion (.faq-accordion). Elementor's accordion controls only style the
   title row, so two things sit here: the frame on the item wrapper, so an open item
   is one outlined box around the navy bar + its answer, and the round +/- badge,
   which has no native control. Everything else is on native controls. */
/* 16px text-to-badge gap: Elementor's Icon Spacing control is disabled while the
   item position is "stretch", which is what puts the badge hard right. */
.uo-inner-accordion { --n-accordion-icon-gap: 16px; }
.uo-inner-accordion .e-n-accordion-item {
  overflow: hidden;
  border: 1px solid rgba(0, 56, 136, 0.1);
  border-radius: 16px 5px 14px 8px;
  background: #f8fbff;
  transition: background 0.24s ease, box-shadow 0.24s ease;
}
.uo-inner-accordion .e-n-accordion-item[open] {
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 46, 112, 0.08);
}
.uo-inner-accordion .e-n-accordion-item-title { transition: background 0.24s ease, color 0.24s ease; }
/* 24px badge — this is also what sets the 56px row height in the design. */
.uo-inner-accordion .e-n-accordion-item-title-icon {
  flex: 0 0 auto;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--uo-navy);
  transition: background 0.24s ease;
}
.uo-inner-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon {
  background: var(--uo-gold);
}
/* The design's answer <p> is margin:0; Elementor's default bottom margin would
   otherwise add 15px below the last line. */
.uo-inner-accordion .e-n-accordion-item > .e-con p:last-child { margin-bottom: 0; }

/* 404 code "404" (design h1 span): block on its own line. */
.uo-inner-error-code .elementor-heading-title { display: block; }

.single .entry-title,
.single h1.entry-title {
  font-family: var(--uo-font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--uo-navy);
}
.single .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #344052;
  max-width: 760px;
}
.single .uo-blog-article .entry-content,
.single .uo-blog-article .blog-article-body {
  max-width: none;
}
.single .uo-note {
  background: var(--uo-ivory);
  border-left: 4px solid var(--uo-gold);
  border-radius: 8px;
}

/* -------------------------------------------------------------------------
   Footer — keep contact email/address inside its column (design .foot).
   ------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
   Blog index — match design-ref blog.html magazine layout.
   ------------------------------------------------------------------------- */
.uo-inner-blog-hero {
  position: relative;
}
.uo-inner-blog-hero::before {
  content: "NEWS";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  color: rgba(0, 56, 136, 0.045);
  font-size: clamp(86px, 15vw, 168px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.uo-inner-blog-hero > .e-con,
.uo-inner-blog-hero > .elementor-element {
  position: relative;
  z-index: 1;
}
.uo-inner-blog-pills .elementor-button {
  min-height: 34px;
  box-shadow: none !important;
}
.uo-inner-blog-caption {
  backdrop-filter: blur(10px);
}
.uo-inner-blog-post .elementor-widget-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.uo-inner-blog-post .blog-post-body {
  padding: 16px 18px 18px;
}
/* Linked magazine cards render as <a.e-con> — kill underline / inherit colour. */
a.uo-inner-blog-card,
a.uo-inner-blog-post,
a.uo-inner-related-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.uo-inner-blog-card:hover,
a.uo-inner-blog-post:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
/* Sidebar / hero category filters (design [data-blog-filter][aria-pressed]). */
.uo-inner-blog-cats .elementor-icon-list-item a[aria-pressed="true"],
.uo-inner-blog-cats .elementor-icon-list-item.is-blog-filter-active a,
.uo-inner-blog-pills .elementor-button.is-blog-filter-active,
.uo-inner-blog-pills a[aria-pressed="true"] {
  color: var(--uo-navy) !important;
  font-weight: 900;
}
.uo-inner-blog-cats .elementor-icon-list-item a {
  cursor: pointer;
}
.uo-inner-blog-rail {
  position: sticky;
  top: 110px;
}
.uo-inner-blog-top .elementor-icon-list-item {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--uo-line);
}
.uo-inner-blog-top .elementor-icon-list-item:last-child {
  border-bottom: 0;
}
.uo-inner-blog-search .elementor-search-form__container {
  border: 0 !important;
  background: transparent !important;
}
.uo-blog-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.uo-blog-search-form input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--uo-ink);
  font: inherit;
  outline: none;
}
.uo-blog-search-form button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--uo-navy);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 1024px) {
  .uo-inner-blog-rail { position: static; }
}

.foot > .e-con,
.foot-contact-col,
.foot-news,
.foot-brand,
.foot-quick,
.foot-services {
  min-width: 0;
  max-width: 100%;
}
.foot-contact .elementor-icon-list-item,
.foot-contact .elementor-icon-list-text,
.foot-contact a {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
/* Social icons wrap under a narrow brand column — give the second row clear air.
   Elementor renders .elementor-grid as inline-block here, so CSS gap alone is a no-op. */
.foot-social .elementor-social-icons-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 12px 10px !important;
}
.foot-social .elementor-grid-item {
  margin: 0 !important;
}

@media (max-width: 1024px) {
  .uo-inner-rail { position: static; }
  .elementor-element.uo-inner-service-body { flex-direction: column; }
}

/* -------------------------------------------------------------------------
   WeChat modal — design .modal[data-wechat-modal] / .modal-card
   ------------------------------------------------------------------------- */
html.uo-wechat-modal-open,
html.uo-wechat-modal-open body {
  overflow: hidden;
}
.uo-wechat-modal {
  display: none !important;
  place-items: center;
  padding: 20px !important;
  box-sizing: border-box;
}
.uo-wechat-modal.is-open {
  display: grid !important;
}
.uo-wechat-modal-card {
  width: min(420px, 100%) !important;
  max-height: calc(100vh - 36px);
  overflow: auto;
  text-align: center;
  margin: 0 auto;
}
.uo-wechat-modal-icon {
  margin: 0 auto 4px !important;
  flex: 0 0 auto !important;
}
.uo-wechat-modal-icon .elementor-widget-container,
.uo-wechat-modal-icon .elementor-image {
  display: grid;
  place-items: center;
  height: 100%;
}
.uo-wechat-modal-icon img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}
.uo-wechat-modal-qr img {
  width: 180px !important;
  height: 180px !important;
  object-fit: contain;
  margin: 4px auto;
  display: block;
}
.uo-wechat-modal-lead p,
.uo-wechat-modal-meta p {
  margin: 0;
}
.uo-wechat-modal-close .elementor-button {
  border-radius: 999px !important;
  min-width: 120px;
}
@media (max-width: 480px) {
  .uo-wechat-modal { padding: 18px !important; }
}

/* -------------------------------------------------------------------------
   Blog article single — design .blog-article-* (full-bleed hero + meta).
   ------------------------------------------------------------------------- */
.single-post .site-main.uo-blog-article,
.uo-blog-article.blog-article-main {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 84px !important;
  background:
    radial-gradient(circle at 10% 8%, rgba(206, 165, 73, 0.16), transparent 28%),
    radial-gradient(circle at 90% 28%, rgba(17, 170, 189, 0.12), transparent 24%);
}
.uo-blog-article > .crumbs {
  width: min(1160px, calc(100% - 48px));
  margin: 18px auto 24px;
  color: var(--uo-muted);
  font-size: 13px;
}
.uo-blog-article > .crumbs a { color: var(--uo-navy); text-decoration: none; }
.uo-blog-article > .crumbs a:hover { color: var(--uo-gold-deep); }
.uo-blog-article .blog-article-paper {
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.uo-blog-article .blog-article-hero {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 420px;
  background: var(--uo-navy);
}
.uo-blog-article .blog-article-title {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(34px, 5vw, 58px);
  color: #fff;
}
.uo-blog-article .blog-article-title .kicker {
  margin: 0;
  color: var(--uo-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.uo-blog-article .blog-article-title h1 {
  max-width: 9em;
  margin: 0;
  color: #fff;
  font-family: var(--uo-font-serif);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  word-break: keep-all;
}
.uo-blog-article .blog-article-title > p {
  max-width: 28em;
  margin: 0;
  color: #eaf1fb;
  font-size: 16px;
  line-height: 1.75;
}
.uo-blog-article .blog-article-image {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(0, 46, 112, 0.06), rgba(0, 46, 112, 0.28)),
    var(--blog-image) center / cover no-repeat;
}
.uo-blog-article .blog-article-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: #0d4092;
}
.uo-blog-article .blog-article-meta span {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f8ff;
}
.uo-blog-article .blog-article-meta span:last-child { border-right: 0; }
.uo-blog-article .blog-article-meta small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.uo-blog-article .blog-article-meta strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.uo-blog-article .blog-article-intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(34px, 5vw, 62px);
  border-bottom: 1px solid var(--uo-line);
  background: #fbfbfb;
}
.uo-blog-article .blog-author-card {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--uo-muted);
  font-size: 13px;
}
.uo-blog-article .blog-author-card span {
  color: var(--uo-gold-deep);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.uo-blog-article .blog-author-card strong {
  color: var(--uo-navy);
  font-size: 16px;
}
.uo-blog-article .blog-author-card small {
  color: var(--uo-muted);
  font-size: 13px;
  line-height: 1.5;
}
.uo-blog-article .blog-article-quote {
  margin: 0;
  color: var(--uo-navy);
  font-family: var(--uo-font-serif);
  font-size: clamp(25px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.uo-blog-article .blog-article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  padding: clamp(34px, 5vw, 62px);
}
.uo-blog-article .blog-article-share,
.uo-blog-article .blog-article-aside {
  display: grid;
  gap: 14px;
}
.uo-blog-article .blog-article-share {
  grid-column: 1;
  grid-row: 1;
  gap: 0;
  position: sticky;
  top: 112px;
}
.uo-blog-article .blog-article-aside {
  grid-column: 1;
  grid-row: 2;
  padding-top: 22px;
  border-top: 1px solid var(--uo-line);
}
.uo-blog-article .blog-article-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 28px;
  color: #344052;
  font-size: 16px;
  line-height: 1.88;
  max-width: none;
}
.uo-blog-article .blog-article-share .kicker,
.uo-blog-article .blog-article-aside .kicker {
  margin: 0 0 8px;
  color: var(--uo-gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.uo-blog-article .blog-article-share a,
.uo-blog-article .blog-article-share button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--uo-line);
  background: transparent;
  color: #344052;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.uo-blog-article .blog-article-share a[aria-label="分享到小紅書"]::after {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--uo-xhs-icon, none) center / contain no-repeat;
}
.uo-blog-article .blog-article-body h2.wp-block-heading,
.uo-blog-article .blog-article-body h2 {
  margin: 0;
  color: var(--uo-navy);
  font-family: var(--uo-font-sans);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
}
.uo-blog-article .blog-article-body h2.wp-block-heading::before,
.uo-blog-article .blog-article-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--uo-gold);
}
.uo-blog-article .blog-article-body p { margin: 0; }
.uo-blog-article .blog-article-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}
.uo-blog-article .blog-article-body .wp-block-image,
.uo-blog-article .blog-article-body figure {
  margin: 10px 0;
}
.uo-blog-article .blog-article-body .wp-block-image img,
.uo-blog-article .blog-article-body figure img {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: cover;
  border-radius: 22px 8px 20px 10px;
}
.uo-blog-article .blog-article-body .uo-note,
.uo-blog-article .blog-article-body .blog-takeaways {
  display: grid;
  gap: 12px;
  justify-items: start;
  text-align: left;
  padding: 22px !important;
  border: 1px solid rgba(0, 56, 136, 0.1);
  border-radius: 22px 8px 18px 10px;
  background: #f7fbfc;
}
/* WP constrained layout centers the inner blocks — keep takeaways flush left. */
.uo-blog-article .blog-article-body .uo-note.is-layout-constrained > *,
.uo-blog-article .blog-article-body .uo-note > .wp-block-heading,
.uo-blog-article .blog-article-body .uo-note > .wp-block-list,
.uo-blog-article .blog-article-body .uo-note > ul {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
  text-align: left;
}
.uo-blog-article .blog-article-body .uo-note h3,
.uo-blog-article .blog-article-body .blog-takeaways strong {
  margin: 0;
  color: var(--uo-navy);
  font-size: 18px;
  text-align: left;
}
.uo-blog-article .blog-article-body .uo-note ul,
.uo-blog-article .blog-article-body .uo-note .wp-block-list {
  text-align: left;
  justify-self: stretch;
}
.uo-blog-article .blog-aside-articles {
  display: grid;
  gap: 14px;
}
.uo-blog-article .blog-aside-article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.uo-blog-article .blog-aside-article img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px 4px 10px 6px;
}
.uo-blog-article .blog-aside-article strong {
  display: block;
  color: var(--uo-navy);
  font-size: 14px;
  line-height: 1.35;
}
.uo-blog-article .blog-aside-article small {
  color: var(--uo-muted);
  font-size: 12px;
}
.uo-blog-assess {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.uo-blog-assess .assess-panel {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(0, 56, 136, 0.1);
  border-radius: 28px 8px 24px 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 46, 112, 0.08);
}
.uo-blog-assess .kicker {
  margin: 0 0 8px;
  color: var(--uo-gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.uo-blog-assess .section-title {
  margin: 0 0 12px;
  color: var(--uo-navy);
  font-family: var(--uo-font-sans);
  font-size: clamp(28px, 3vw, 40px);
}
.uo-blog-assess .assess-panel > p {
  margin: 0 0 22px;
  color: #344052;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 1024px) {
  .uo-blog-article .blog-article-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .uo-blog-article .blog-article-image { min-height: 260px; }
  .uo-blog-article .blog-article-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uo-blog-article .blog-article-meta span:nth-child(2n) { border-right: 0; }
  .uo-blog-article .blog-article-intro,
  .uo-blog-article .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .uo-blog-article .blog-article-share,
  .uo-blog-article .blog-article-aside,
  .uo-blog-article .blog-article-body {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}
@media (max-width: 767px) {
  .uo-blog-article .blog-article-meta { grid-template-columns: 1fr; }
  .uo-blog-article .blog-article-meta span { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .uo-blog-article .blog-article-meta span:last-child { border-bottom: 0; }
  .uo-blog-article .blog-article-title h1 { max-width: none; }
}
