/* Public footer and home page refinements. */
.v152-footer .foot-bottom { text-align: center; }

.v156-banner > .jee-slide {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.jee-slide > picture { display: block; width: 100%; height: 100%; }

/* Keep the original scene art. Cover the source headline zone so the
   localized title and description can be shown as actual page text. */
.jee-slide[data-localized]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #04234a 0%, #04234a 54.5%, #04234a00 67%);
  pointer-events: none;
}

.jee-slide-copy {
  position: absolute;
  inset: 0 auto 0 6%;
  z-index: 1;
  width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.jee-slide-copy strong { font-size: clamp(22px, 3.2vw, 56px); line-height: 1.15; text-wrap: balance; }
.v152-hero .jee-slide-copy p {
  margin: 0;
  color: #e2f1ff;
  font-size: clamp(13px, 1.35vw, 23px);
  line-height: 1.45;
  text-wrap: pretty;
}

.v156-banner + .jee-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(215px, 30%);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  padding-block: clamp(24px, 3.3vw, 48px);
  text-align: center;
}
.v152-hero .jee-home-intro h1 {
  color: var(--jee-ink);
  font-size: clamp(25px, 2.25vw, 37px);
  margin: 0 auto 9px;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.v152-hero .jee-home-intro p { color: #3d5066; margin: 0 auto; line-height: 1.62; }
.jee-home-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.v152-hero .jee-home-actions small { color: #3d5066; font-size: 13px; max-width: 34ch; }
.v152-hero .jee-home-actions .jee-flow-link {
  color: var(--jee-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.jee-service-card { display: flex; flex-direction: column; align-items: flex-start; }
.v152-page .jee-service-card a {
  margin-top: auto;
  padding-top: 14px;
  color: var(--jee-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jee-home-bottom .v152-cta-box { padding-block: 25px; gap: 16px; }
.jee-home-bottom .v152-cta-box > div { width: auto; }
.jee-home-bottom .v152-cta-box h2 { margin-block: 0; }

@media (max-width: 760px) {
  .v156-banner + .jee-home-intro { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .v152-hero .jee-home-intro :is(h1, p) { margin-inline: auto; }
}
@media (max-width: 640px) {
  .jee-slide-copy { left: 4.5%; width: 48%; gap: 7px; }
  .jee-slide-copy strong { font-size: clamp(16px, 5vw, 25px); }
  .v152-hero .jee-slide-copy p { font-size: clamp(11px, 3vw, 15px); }
  .v152-hero .jee-home-intro h1 { font-size: clamp(24px, 6vw, 30px); }
}

/* Final V156 layout refinements. Existing labels and actions stay in the HTML. */
.v152-header .v152-nav {
  gap: clamp(12px, 1.65vw, 24px);
}

.v152-header .v152-logo .ybs-logo {
  width: clamp(214px, 18vw, 252px);
  height: 74px;
}

.v152-header .v152-navlinks {
  min-width: 0;
  gap: clamp(15px, 1.6vw, 24px);
}

.v152-header .v152-navlinks > a { font-size: clamp(15px, 1.15vw, 16px); }
.v152-header .v152-actions { flex: none; margin-inline-start: auto; }

.v156-banner + .jee-home-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-block: clamp(20px, 2.45vw, 35px);
}

.v152-hero .jee-home-intro h1 {
  max-inline-size: 880px;
  margin-block-end: 8px;
}
.v152-hero .jee-home-intro p { max-inline-size: 800px; }
.jee-home-actions {
  flex-flow: row wrap;
  justify-content: center;
  column-gap: 18px;
  row-gap: 8px;
}
.v152-hero .jee-home-actions small {
  flex: 0 0 100%;
  order: 1;
  max-inline-size: none;
}

.v152-page .v152-hero ~ .v152-section .v152-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
  gap: 16px;
}
.v152-page .v152-hero ~ .v152-section .v152-card {
  padding: clamp(16px, 1.65vw, 24px);
}
.v152-hero ~ .v152-section .v152-card h3 {
  margin-block: 0 7px;
  line-height: 1.35;
}
.v152-hero ~ .v152-section .v152-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #30465e;
}
.v152-hero ~ .v152-section .v152-card .v152-num { margin: 0 0 9px; }
.v152-hero ~ .v152-section .jee-service-card a { padding-block-start: 11px; }

/* The same content rows line up across neighbouring cards. */
@supports (grid-template-rows: subgrid) {
  .v152-hero ~ .v152-section .jee-service-card,
  .v152-hero ~ .jee-steps .v152-card {
    display: grid;
    grid-template-rows: subgrid;
    align-items: start;
    row-gap: 5px;
  }
  .v152-hero ~ .v152-section .jee-service-card { grid-row: span 3; }
  .v152-hero ~ .jee-steps .v152-card { grid-row: span 3; }
  .v152-hero ~ .v152-section .jee-service-card a { justify-self: start; margin-block-start: 0; }
}

.jee-home-bottom .v152-cta-box {
  align-items: center;
  justify-content: center;
  gap: 16px clamp(16px, 2.4vw, 34px);
}
.jee-home-bottom .v152-cta-box > div { min-inline-size: 0; }
.jee-home-bottom .v152-cta-box > a { flex: none; }
.v152-footer.jee-footer { padding-block: clamp(26px, 3vw, 42px) 16px; }
.jee-footer .foot-grid {
  display: grid;
  grid-template-columns: minmax(245px, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.7vw, 38px);
  align-items: start;
}
.jee-footer .jee-footer-brand {
  inline-size: min(100%, clamp(242px, 20vw, 268px));
  container-type: inline-size;
}
.jee-footer .foot-brand { display: block; inline-size: 100%; margin-block-end: 12px; }
.v152-page .jee-footer .jee-logo-lockup { width: 100%; }
.jee-footer .jee-logo-tagline { column-gap: 7px; letter-spacing: normal; }
.jee-footer .foot-grid p { color: #d1e0ef; font-size: 15px; line-height: 1.7; margin: 0; }
.jee-footer .foot-heading {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}
.jee-footer .foot-links { min-width: 0; display: block; }
.jee-footer .foot-links ul { list-style: none; margin: 0; padding: 0; }
.jee-footer .foot-links li + li { margin-top: 6px; }
.jee-footer .foot-links a {
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  color: #d8e4f1 !important;
  overflow-wrap: anywhere;
}
.jee-footer .foot-links a:hover, .jee-footer .foot-links a:focus-visible {
  color: #ffc274 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jee-footer .foot-bottom { border-color: #365578; font-size: 13px; text-align: center; }

@media (max-width: 1040px) {
  .v152-header .v152-nav {
    height: 66px;
    gap: 8px;
  }
  .v152-header .v152-logo .ybs-logo {
    width: clamp(134px, 43vw, 186px);
    height: 55px;
  }
  .v152-header .v152-menu { display: block; }
  .v152-header .v152-navlinks {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 12px 22px 16px;
    background: #fff;
    box-shadow: 0 14px 20px #183a4d21;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  /* Legacy news pages hide all header navigation with !important. */
  .v152-header .v152-navlinks.open { display: flex !important; }
  .v152-header .v152-navlinks > a {
    font-size: 15px;
    padding: 11px 5px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
}
@media (max-width: 940px) {
  .v152-page .v152-hero ~ .v152-section .v152-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .jee-home-bottom .v152-cta-box { flex-direction: column; }
}

@media (max-width: 900px) {
  .jee-footer .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .jee-footer .foot-grid > .jee-footer-brand { grid-column: 1 / -1; }
  .jee-footer .foot-heading { font-size: 17px; }
}

@media (max-width: 520px) {
  .v152-page .v152-hero ~ .v152-section .v152-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Reference prices */
.jee-home-prices {
  background: #eff5fc;
  padding-block: clamp(28px, 4vw, 50px);
}
.v152-page .jee-home-prices .jee-price-panel {
  max-width: 900px;
}
.jee-price-panel h1, .jee-rate-heading {
  color: var(--jee-navy);
  text-align: center;
  text-wrap: balance;
  font-size: clamp(24px, 2.65vw, 34px);
  line-height: 1.25;
  margin: 0 0 clamp(18px, 2.3vw, 28px);
}
.jee-price-table-wrap {
  overflow: hidden;
  border: 1px solid #cbd9eb;
  border-radius: 12px;
  background: #fff;
}
.jee-price-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #30465e;
  font-size: 16px;
  line-height: 1.55;
}
.jee-price-table th, .jee-price-table td {
  padding: 10px clamp(10px, 2vw, 20px);
  text-align: start;
  overflow-wrap: anywhere;
}
.jee-price-table thead {
  background: var(--jee-navy);
  color: #fff;
}
.jee-price-table thead th:first-child { width: 54%; }
.jee-price-table thead th:not(:first-child),
.jee-price-table td { text-align: center; }
.jee-price-table td { font-variant-numeric: tabular-nums; }
.jee-price-table th, .jee-price-table td { vertical-align: middle; }
.jee-price-table thead small { color: inherit; font-weight: 500; }
.jee-price-examples { margin-top: 3px; font-weight: 400; }
.jee-price-table tbody th { color: var(--jee-navy); }
.jee-price-table tbody tr + tr { border-top: 1px solid #dce7f3; }
.jee-price-table tbody tr:nth-child(even) { background: #f8fbff; }
.jee-price-table .jee-price-amount {
  display: inline-block;
  color: var(--jee-navy);
  font-size: clamp(22px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
.jee-price-amount .jee-price-unit { font-size: 14px; font-weight: 600; }
.jee-price-table:lang(zh) .jee-price-unit { margin-inline-start: .2em; }
.jee-price-table small { display: block; color: #465e7a; font-size: 14px; }
.jee-price-note {
  max-inline-size: 45rem;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: #30465e;
  text-wrap: balance;
}
.jee-price-note > span { display: block; }
.jee-price-note > span + span { margin-block-start: 3px; }
.jee-price-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
}
.jee-price-actions a:not(.v152-btn) {
  color: var(--jee-blue);
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .jee-price-table th, .jee-price-table td { padding: 9px 7px; }
  .jee-price-table { font-size: 15px; }
  .jee-price-table thead th:first-child { width: 48%; }
  .jee-price-table .jee-price-amount { font-size: clamp(18px, 4.7vw, 21px); }
  .jee-price-amount .jee-price-unit { font-size: 12px; }
  .jee-price-table small { font-size: 13px; }
}
@media (max-width: 680px) {
  .jee-price-table:lang(en) .jee-price-unit { display: block; }
}
@media (max-width: 400px) {
  .jee-price-table th, .jee-price-table td { padding-inline: 4px; }
  .jee-price-table thead th:first-child { width: 42%; }
  .jee-price-table:lang(zh) .jee-price-unit { margin-inline-start: 0; }
}

/* Homepage typography */
.jee-home .v152-header .v152-navlinks > a[href*="contact/index.html"],
.jee-home .v152-header .v152-navlinks > a[data-preview-route$="/contact/"] {
  font-weight: 750;
  color: var(--jee-blue) !important;
}
.jee-home .v152-section-head h2 {
  font-size: clamp(24px, 2.55vw, 34px);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.jee-home .v152-section-head p { font-size: 16px; line-height: 1.65; }
.jee-home .v152-hero ~ .v152-section .v152-card h3 { font-size: 19px; }
.jee-home .v152-hero ~ .v152-section .v152-card p { font-size: 16px; }
.jee-home .jee-service-card a, .jee-home .v152-btn { font-size: 15px; }
.jee-home #v154-resources { padding-block: clamp(30px, 3.25vw, 48px); }
.jee-home #v154-resources h2, .jee-home .jee-home-bottom .v152-cta-box h2 {
  font-size: clamp(24px, 2.25vw, 28px);
  line-height: 1.3;
  text-wrap: balance;
}
.jee-home #v154-resources p, .jee-home .jee-home-bottom .jee-bottom-lead {
  font-size: 16px;
  line-height: 1.65;
}
.jee-home #v154-resources .v154-index-links a { font-size: 15px; }
@media (max-width: 560px) {
  .jee-home .v152-hero ~ .v152-section .v152-card h3 { font-size: 18px; }
  .jee-home .v152-hero ~ .v152-section .v152-card p { font-size: 15px; }
  .jee-home #v154-resources p, .jee-home .jee-home-bottom .jee-bottom-lead { font-size: 15px; }
}

/* Language navigation */
.v152-header .jee-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  flex: none;
  padding: 3px;
  background: #edf4fc;
  border: 1px solid #cbdcf0;
  border-radius: 11px;
}
.v152-header .jee-language-switch > a {
  display: grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 32px;
  padding: 0 5px;
  border-radius: 7px;
  color: var(--jee-navy) !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color .16s ease, color .16s ease;
}
.v152-header .jee-language-switch > a:hover {
  background: #dceafa;
  color: #083c75 !important;
}
.v152-header .jee-language-switch > a:focus-visible {
  outline: 2px solid #1262ab;
  outline-offset: 2px;
}
.v152-header .jee-language-switch > a[aria-current="page"] {
  color: #fff !important;
  background: var(--jee-navy);
  box-shadow: inset 0 -2px #ffad48;
}
.jee-language-switch .jee-lang-short { display: none; }
@media (max-width: 1040px) {
  .v152-header .v152-actions { gap: 6px; }
  .v152-header .jee-language-switch > a { min-inline-size: 28px; padding-inline: 3px; }
  .jee-language-switch .jee-lang-full { display: none; }
  .jee-language-switch .jee-lang-short { display: inline; }
}
@media (max-width: 400px) {
  .v152-header .jee-language-switch > a { min-inline-size: 27px; padding-inline: 0; }
  .v152-header .v152-menu { padding-inline: 5px; }
  .v152-header .v152-logo .jee-logo-lockup { width: clamp(124px, 43vw, 161px); }
}
@media (prefers-reduced-motion: reduce) {
  .v152-header .jee-language-switch > a { transition: none; }
}

/* Distribute the words across each line at the same width as the logo. */
.jee-footer .foot-grid .jee-footer-description {
  font-size: clamp(13px, 6.8cqi, 18px);
  line-height: 1.55;
}
.jee-footer .foot-grid .jee-footer-description:lang(en) {
  font-size: clamp(13px, 5.8cqi, 16px);
}
.jee-footer-description > .jee-footer-description-line {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}
.jee-footer-description:lang(zh) > .jee-footer-description-line:last-child > span {
  letter-spacing: .12em;
}
.jee-footer-description-end {
  position: relative;
  inset-inline-start: -.1em;
  letter-spacing: normal;
}
.jee-footer-description:lang(en) > .jee-footer-description-line:last-child {
  font-size: clamp(14px, 6.65cqi, 18px);
}
.jee-payment-info p + p { margin-block-start: 10px; }

/* Keep enquiry controls conditional, even when the button class sets display. */
[data-inquiry-availability][hidden],
.v155-retry-controls[hidden],
.v155-retry-controls > button[hidden],
.jee-inquiry-page .v152-field[hidden] { display: none !important; }
.jee-inquiry-page .v152-pagehead { padding-block: clamp(27px, 4vw, 49px); }
.jee-inquiry-page .v152-section { padding-block: clamp(24px, 4vw, 48px); }
.jee-inquiry-page .v152-form-head { margin-bottom: 16px; }
.jee-inquiry-page .v152-aside li { margin-bottom: 12px; }
.jee-inquiry-page .v152-aside li:last-child { margin-bottom: 0; }
.jee-inquiry-page #inquiry-privacy-hint { font-weight: 400; color: #42586b; }
.v155-retry-controls { display: flex; flex-wrap: wrap; gap: 8px; }

/* Site-wide region links and footer. */
.jee-visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.v152-legacy-intro .jee-legacy-title {
  color: #fff; line-height: 1.28; font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 700; margin: 12px auto; text-align: center;
}
.jee-areas { background: #fff; padding-block: clamp(24px, 4vw, 44px); color: #0d2d53; }
.jee-areas h2 { margin: 0 0 17px; font-size: clamp(22px, 2.45vw, 30px); text-align: center; }
.jee-area-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  list-style: none; padding: 0; margin: 0;
}
.jee-area-grid li { padding: 15px 16px; background: #f3f7fd; border: 1px solid #d6e3f3; border-radius: 10px; }
.jee-area-grid .jee-area-link { font-weight: 700; text-underline-offset: .18em; }
.jee-area-grid p { margin: 5px 0 0; font-size: 14px; color: #40556c; line-height: 1.55; }
.jee-area-note { font-size: 14px; text-align: center; margin: 15px auto 0; color: #40556c; }
.v152-footer .jee-footer-bottom {
  display: grid; justify-items: center; gap: 5px;
  text-align: center; padding-block: 12px 4px;
}
.jee-footer-copyright { margin: 0; color: #d0def0; }
.jee-footer-areas { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; }
.jee-footer-areas > span { font-weight: 650; color: #fff; }
.jee-footer-areas ul {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap; align-items: center; padding: 0;
  gap: 2px 12px; margin: 0;
}
.jee-footer-areas .jee-area-link { display: inline-flex; align-items: center; min-height: 32px; color: #e1ecfa; }
.jee-footer-areas .jee-area-link:hover { color: #ffc977; text-decoration: underline; }
.jee-footer-areas .jee-area-link:focus-visible { outline: 2px solid #ffc977; outline-offset: 2px; }
@media (max-width: 700px) {
  .jee-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .jee-area-grid li { padding: 12px; }
}

.jee-cooperation-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: auto; max-width: 900px;
}
.jee-cooperation-grid h2 { font-size: clamp(20px, 2.5vw, 26px); margin: 0 0 .5em; }
.jee-cooperation-grid h2 a { text-underline-offset: .18em; }
.jee-application-box { max-width: 820px; margin: 0 auto; }
.jee-application-note { margin: 0 0 .55em; color: #40556c; line-height: 1.6; }
.jee-application-box input[type=file] { max-inline-size: 100%; padding-inline: 8px; }
@media (max-width: 580px) {
  .jee-cooperation-grid { grid-template-columns: minmax(0,1fr); }
}

.jee-region-page .v152-section { padding-block: clamp(32px, 5vw, 60px); }
.jee-region-page .v152-pagehead p { max-width: 45em; }
.jee-region-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jee-region-index .jee-region-card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.jee-region-card-grid .v152-card { display: flex; flex-direction: column; padding: 22px; }
.jee-region-card-grid .v152-card h3 { margin: 0 0 .55rem; }
.jee-region-card-grid .v152-card p { flex: 1 1 auto; margin: 0 0 .85rem; line-height: 1.75; }
.jee-region-card-grid .v152-card p:last-child { margin-bottom: 0; }
.jee-region-card-link { color: #104878; font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
.jee-region-card-link:hover { color: #0b2c56; }
.jee-region-tinted { background: #f3f7fd; }
.jee-region-prep { max-width: 830px; margin: 0 auto; }
.jee-region-prep h2 { margin: 0 0 12px; }
.jee-region-prep ul { margin: 0 0 18px; padding-inline-start: 1.25rem; line-height: 1.8; }
.jee-region-prep li + li { margin-top: .35rem; }
.jee-region-cost { margin: 0 0 .5rem; }
.jee-region-cta .v152-cta-box { margin-bottom: 20px; }
@media(max-width: 850px) {
  .jee-region-index .jee-region-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 700px) {
  .jee-region-card-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media(max-width: 480px) {
  .jee-region-index .jee-region-card-grid { grid-template-columns: minmax(0,1fr); }
}
