/*
 * Final YS Global Study homepage colour lock.
 * The markup, content, ordering and dimensions remain owned by the existing
 * approved layout. This layer only keeps coloured surfaces within the logo's
 * navy, royal blue, electric blue and white palette.
 */
.home-body {
  --home-ink: #071a3e;
  --home-ink-soft: #12346b;
  --home-blue: #0b3b91;
  --home-blue-bright: #1685ff;
  --home-cyan: #55e5ff;
  --home-gold: #1685ff;
  --home-paper: #f7f9fd;
  --home-line: rgba(11, 59, 145, .14);
  --ys-navy-950: #020d26;
  --ys-navy-900: #04183c;
  --ys-navy-800: #061b46;
  --ys-royal: #0b3b91;
  --ys-electric: #1685ff;
  --ys-cyan: #55e5ff;
  background: var(--home-paper);
}

.home-body .contact-bar {
  border-bottom-color: rgba(22, 133, 255, .25);
  background: linear-gradient(90deg, var(--ys-navy-950), var(--ys-navy-800) 50%, var(--ys-navy-950));
}

.home-body .apply-button--desktop,
.home-body .home-button,
.home-body .home-button:not(.home-button--yellow),
.home-body .home-button--yellow {
  color: #fff !important;
  border-color: rgba(85, 229, 255, .22) !important;
  background: linear-gradient(135deg, var(--ys-royal), var(--ys-electric)) !important;
  box-shadow: 0 12px 28px rgba(5, 52, 135, .25) !important;
}

.home-body .apply-button--desktop:hover,
.home-body .home-button:hover,
.home-body .home-button:focus-visible {
  color: #fff !important;
  border-color: var(--ys-cyan) !important;
  background: linear-gradient(135deg, #1268d8, #2497ff) !important;
}

.home-body .nav-link:hover,
.home-body .nav-dropdown.is-open > .nav-link,
.home-body .nav-dropdown.is-open > .nav-link-group > .nav-link,
.home-body .nav-link-group:hover > .nav-link,
.home-body .nav-link-group:focus-within > .nav-link,
.home-body .nav-link.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--ys-royal), var(--ys-electric)) !important;
}

.home-body .dropdown-panel {
  border-color: rgba(85, 229, 255, .2) !important;
  background: rgba(2, 13, 38, .98) !important;
  box-shadow: 0 22px 44px rgba(2, 13, 38, .3) !important;
}

.home-body .dropdown-panel li a:hover,
.home-body .dropdown-panel li.is-active a {
  color: #fff !important;
  background: var(--ys-royal) !important;
}

.home-body .home-hero {
  background-color: #0b224e !important;
}

.home-body .home-hero__slide,
.home-body .home-hero__slide--fit-image {
  background-color: transparent !important;
}

.home-body .home-hero .home-button,
.home-body .home-hero .home-button:not(.home-button--yellow),
.home-body .home-hero .home-hero__slide .home-button,
.home-body .home-hero__content .home-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: clamp(200px, 15vw, 230px) !important;
  min-height: 56px !important;
  height: 56px !important;
  margin-top: clamp(22px, 2.5vw, 34px) !important;
  padding: 0 clamp(26px, 2.2vw, 36px) !important;
  border: none !important;
  border-radius: 14px !important;
  background: #1c68cb !important;
  background-image: linear-gradient(180deg, #1f6fd8 0%, #1963c6 100%) !important;
  box-shadow: 0 10px 24px rgba(28, 104, 203, 0.32), 0 4px 10px rgba(28, 104, 203, 0.18) !important;
  color: #ffffff !important;
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(15px, 1.1vw, 17px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.home-body .home-hero .home-button:hover,
.home-body .home-hero .home-button:focus-visible,
.home-body .home-hero .home-hero__slide .home-button:hover,
.home-body .home-hero .home-hero__slide .home-button:focus-visible,
.home-body .home-hero__content .home-button:hover,
.home-body .home-hero__content .home-button:focus-visible {
  color: #ffffff !important;
  background: #2374de !important;
  background-image: linear-gradient(180deg, #2779e5 0%, #1d69d0 100%) !important;
  box-shadow: 0 14px 28px rgba(28, 104, 203, 0.42), 0 6px 14px rgba(28, 104, 203, 0.22) !important;
  transform: translateY(-2px) !important;
  outline: none !important;
}

.home-body .home-hero .home-button:focus-visible,
.home-body .home-hero .home-hero__slide .home-button:focus-visible,
.home-body .home-hero__content .home-button:focus-visible {
  outline: 2px solid rgba(85, 229, 255, 0.85) !important;
  outline-offset: 3px !important;
}

.home-body .quick-action {
  color: #fff !important;
  border: 1px solid rgba(85, 229, 255, .18) !important;
  box-shadow: 0 18px 38px rgba(2, 13, 38, .2) !important;
}

.home-body .quick-action--apply {
  background: linear-gradient(135deg, #0b3b91 0%, #1268d8 100%) !important;
}

.home-body .quick-action--universities {
  background: linear-gradient(135deg, #04183c 0%, #0b3b91 100%) !important;
}

.home-body .quick-action--scholarships {
  background: linear-gradient(135deg, #08275d 0%, #1685ff 100%) !important;
}

.home-body .quick-action img {
  border-color: rgba(255, 255, 255, .28) !important;
  filter: brightness(0) invert(1) !important;
  opacity: .9 !important;
}

.home-body .quick-action small {
  color: rgba(255, 255, 255, .8) !important;
}

.home-body .home-about,
.home-body .universities-section,
.home-body .courses-section,
.home-body .why-section,
.home-body .testimonials-section,
.home-body .faq-section {
  background: #fff !important;
}

.home-body .scholarships-section {
  color: #fff !important;
  background:
    radial-gradient(820px 480px at 88% 82%, rgba(22, 133, 255, .34), transparent 72%),
    linear-gradient(135deg, rgba(2, 13, 38, .96), rgba(6, 27, 70, .94) 58%, rgba(11, 59, 145, .92)),
    url('/assets/home/hero-study-library.jpg') center / cover no-repeat !important;
}

.home-body .scholarships-section::before {
  opacity: .12 !important;
  background-image:
    linear-gradient(rgba(85, 229, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 229, 255, .1) 1px, transparent 1px) !important;
  mix-blend-mode: screen !important;
}

.home-body .scholarships-section .home-section__header--light > p,
.home-body .programs-section .home-section__header--light > p,
.home-body .admissions-section .home-section__header--light > p {
  color: var(--ys-cyan) !important;
}

.home-body .scholarships-section .home-section__header--light h2,
.home-body .programs-section .home-section__header--light h2,
.home-body .admissions-section .home-section__header--light h2 {
  color: #fff !important;
}

.home-body .scholarship-grid a,
.home-body .scholarship-grid a:nth-child(3n + 2),
.home-body .scholarship-grid a:nth-child(3n) {
  color: rgba(255, 255, 255, .96) !important;
  border-color: rgba(85, 229, 255, .2) !important;
  background: linear-gradient(135deg, rgba(11, 59, 145, .72), rgba(4, 24, 60, .92)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 14px 30px rgba(2, 13, 38, .22) !important;
}

.home-body .scholarship-grid a::after {
  color: var(--ys-cyan) !important;
}

.home-body .scholarship-grid a:hover,
.home-body .scholarship-grid a:focus-visible,
.home-body .scholarship-grid a.is-selected {
  color: #fff !important;
  border-color: var(--ys-cyan) !important;
  background: linear-gradient(135deg, #0b3b91, #1685ff) !important;
  box-shadow: 0 18px 34px rgba(0, 94, 218, .3) !important;
}

.home-body .programs-section {
  position: relative;
  isolation: isolate;
  color: #fff !important;
  background:
    radial-gradient(720px 430px at 92% 8%, rgba(22, 133, 255, .2), transparent 70%),
    radial-gradient(620px 360px at 6% 90%, rgba(11, 59, 145, .32), transparent 72%),
    linear-gradient(145deg, var(--ys-navy-950) 0%, var(--ys-navy-900) 56%, var(--ys-navy-800) 100%) !important;
}

.home-body .programs-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(85, 229, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 229, 255, .12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 86% 30%, #000 0%, transparent 68%);
}

.home-body .program-card__circle,
.home-body .program-card:nth-child(n) .program-card__circle {
  border-color: rgba(85, 229, 255, .2) !important;
  background: linear-gradient(145deg, rgba(8, 39, 93, .86), rgba(2, 13, 38, .96)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 38px rgba(0, 5, 22, .28) !important;
  backdrop-filter: none !important;
}

.home-body .program-card__image {
  border: 1px solid rgba(85, 229, 255, .24) !important;
  background: radial-gradient(circle, rgba(22, 133, 255, .14), rgba(3, 19, 52, .64)) !important;
  box-shadow: inset 0 0 24px rgba(22, 133, 255, .1), 0 8px 22px rgba(0, 8, 32, .24) !important;
}

.home-body .program-card h3,
.home-body .program-card h3 a {
  color: #fff !important;
}

.home-body .program-card:hover .program-card__circle,
.home-body .program-card:focus-within .program-card__circle {
  border-color: var(--ys-cyan) !important;
  background: linear-gradient(145deg, rgba(11, 59, 145, .92), rgba(4, 24, 60, .98)) !important;
  box-shadow: 0 22px 44px rgba(0, 89, 210, .24) !important;
}

.home-body .course-card h3::before,
.home-body .home-carousel-line span {
  background: linear-gradient(90deg, var(--ys-royal), var(--ys-electric)) !important;
}


.home-body .admissions-section {
  color: #fff !important;
  background:
    radial-gradient(760px 420px at 92% 18%, rgba(22, 133, 255, .2), transparent 72%),
    linear-gradient(140deg, var(--ys-navy-950), var(--ys-navy-800) 68%, var(--ys-royal)) !important;
}

.home-body .admissions-section::before {
  opacity: .1 !important;
  mix-blend-mode: screen !important;
}

.home-body .stats-section {
  color: #fff !important;
  background:
    radial-gradient(620px 360px at 86% 18%, rgba(22, 133, 255, .24), transparent 70%),
    linear-gradient(135deg, var(--ys-navy-950), var(--ys-navy-800) 64%, var(--ys-royal)) !important;
}

.home-body .contact-section::before {
  opacity: .1 !important;
}

.home-body .contact-section .home-contact-form {
  border-color: rgba(85, 229, 255, .2) !important;
  background: rgba(3, 19, 52, .68) !important;
  box-shadow: 0 24px 52px rgba(0, 5, 22, .28) !important;
}

.home-body .site-footer {
  background: var(--ys-navy-950) !important;
}

.home-body .site-footer__upper {
  background: linear-gradient(180deg, var(--ys-navy-800), var(--ys-navy-950)) !important;
}

@media (max-width: 1020px) {
  .home-body .programs-section {
    height: auto !important;
    min-height: 0 !important;
  }

  .home-body .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .home-body .programs-section {
    padding-block: 62px 68px !important;
  }

  .home-body .program-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .home-body .program-card__circle,
  .home-body .program-card:nth-child(n) .program-card__circle {
    min-height: 210px !important;
  }
}

/* Approved homepage quick-actions treatment.  Keep the existing structure,
   spacing and decorative highlights while restoring the three-card palette
   from the approved reference screenshot. */
 .home-body .quick-action {
   border-color: rgba(255, 255, 255, .32) !important;
   box-shadow: 0 18px 32px rgba(17, 42, 94, .18) !important;
 }

 .home-body .quick-action--apply {
   color: #132244 !important;
   background: linear-gradient(135deg, #ffd447 0%, #ffc038 100%) !important;
 }

 .home-body .quick-action--apply strong {
   color: #132244 !important;
 }

 .home-body .quick-action--apply small {
   color: rgba(19, 34, 68, .84) !important;
 }

 .home-body .quick-action--apply img {
   filter: none !important;
   border-color: rgba(19, 34, 68, .24) !important;
   opacity: .82 !important;
 }

 .home-body .quick-action--universities {
   color: #fff !important;
   background: linear-gradient(135deg, #334ee9 0%, #4c44d9 100%) !important;
 }

 .home-body .quick-action--universities strong,
 .home-body .quick-action--universities small {
   color: #fff !important;
 }

 .home-body .quick-action--universities img {
   filter: none !important;
   border-color: rgba(255, 255, 255, .32) !important;
   opacity: .9 !important;
 }

 .home-body .quick-action--scholarships {
   color: #fff !important;
   background: linear-gradient(135deg, #e4386b 0%, #d13b7f 100%) !important;
 }

 .home-body .quick-action--scholarships strong,
 .home-body .quick-action--scholarships small {
   color: #fff !important;
 }

 .home-body .quick-action--scholarships img {
   filter: none !important;
   border-color: rgba(255, 255, 255, .32) !important;
   opacity: .9 !important;
 }

/* Scoped section palette from the approved reference.  The existing
   decorative layers, cards, typography and section geometry remain intact. */
.home-body .programs-section,
.home-body .stats-section,
.home-body .stats-section {
  background: #3a35b5 !important;
}

/* Keep component surfaces inside the same royal-blue family while retaining
   the approved card and form geometry. */
.home-body .programs-section .program-card__circle,
.home-body .programs-section .program-card:nth-child(n) .program-card__circle {
  border-color: rgba(85, 229, 255, .26) !important;
  background: linear-gradient(145deg, #211fa5 0%, #17168d 100%) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 38px rgba(12, 10, 91, .28) !important;
}

.home-body .programs-section .program-card__image {
  border-color: rgba(85, 229, 255, .28) !important;
  background: radial-gradient(circle, rgba(58, 53, 181, .34), rgba(17, 18, 112, .82)) !important;
  box-shadow: inset 0 0 24px rgba(58, 53, 181, .16), 0 8px 22px rgba(12, 10, 91, .24) !important;
}

.home-body .programs-section .program-card:hover .program-card__circle,
.home-body .programs-section .program-card:focus-within .program-card__circle {
  border-color: rgba(85, 229, 255, .48) !important;
  background: linear-gradient(145deg, #2a27b3 0%, #1a1895 100%) !important;
}

.home-body .contact-section .home-contact-form {
  border-color: rgba(255, 255, 255, .24) !important;
  background: linear-gradient(145deg, rgba(7, 29, 73, 0.92) 0%, rgba(4, 20, 54, 0.95) 100%) !important;
  box-shadow: 0 24px 52px rgba(2, 10, 30, 0.42) !important;
}

/* -------------------------------------------------------------------------
 * Key statistics: exact reference match
 * Follows reference image layout, square framed icons, typography, spacing,
 * and royal blue campus background overlay.
 * ------------------------------------------------------------------------- */
.home-body .stats-section {
  position: relative !important;
  min-height: auto !important;
  height: auto !important;
  padding: clamp(52px, 4.4vw, 76px) 0 clamp(54px, 4.8vw, 80px) !important;
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(38, 46, 192, 0.86) 0%, rgba(29, 36, 172, 0.90) 100%),
    url('/assets/home/pattern-background.jpg') center center / cover no-repeat !important;
  overflow: hidden !important;
}

.home-body .stats-section::before {
  display: none !important;
  content: none !important;
}

.home-body .stats-section > .home-shell {
  width: min(calc(100% - 48px), 1220px) !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
}

.home-body .stats-section .home-section__header {
  margin: 0 0 clamp(36px, 3vw, 48px) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.home-body .stats-section .home-section__header > p {
  order: 1 !important;
  margin: 0 0 6px !important;
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

.home-body .stats-section .home-section__header h2 {
  order: 2 !important;
  margin: 0 !important;
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(38px, 3.4vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #fff !important;
  letter-spacing: normal !important;
  text-align: center !important;
}

.home-body .stats-grid {
  width: 100% !important;
  max-width: 1200px !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1.2vw, 20px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  align-items: start !important;
}

.home-body .stats-grid > div,
.home-body .stats-grid > div:nth-child(3) {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Sharp square icon frame matching the reference exactly */
.home-body .stat-icon {
  width: 72px !important;
  height: 72px !important;
  border: 2px solid #ffffff !important;
  border-radius: 0px !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.home-body .stat-icon svg {
  width: 36px !important;
  height: 36px !important;
  fill: currentColor !important;
  color: #ffffff !important;
  stroke: none !important;
  stroke-width: 0 !important;
  display: block !important;
  margin: auto !important;
}

.home-body .stats-grid strong {
  display: block !important;
  margin: 0 0 6px 0 !important;
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(38px, 3.2vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #fff !important;
  letter-spacing: -0.01em !important;
}

.home-body .stats-grid small {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(12.5px, 0.95vw, 15px) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.95) !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .home-body .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px 16px !important;
  }
}

@media (max-width: 580px) {
  .home-body .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 12px !important;
  }
  .home-body .stats-grid > div:last-child {
    grid-column: span 2;
  }
  .home-body .stats-grid small {
    white-space: normal !important;
  }
}

/* Section header hierarchy: big title first, subtitle below */
.home-body .home-section__header,
.home-body .about-testimonials__heading,
.about-testimonials__heading,
.about-stats__heading,
.about-features__heading,
.about-team__heading,
.home-body .faq-section .home-section__header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.home-body .home-section__header h2,
.home-body .about-testimonials__heading h2,
.about-testimonials__heading h2,
.about-stats__heading h2,
.about-features__heading h2,
.about-team__heading h2 {
  order: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.home-body .home-section__header > p,
.home-body .about-testimonials__heading p,
.about-testimonials__heading p,
.about-stats__heading p,
.about-features__heading p,
.about-team__heading p {
  order: 2 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Key statistics: Keep exact reference order: subtitle first, title second */
.home-body .stats-section .home-section__header > p,
.home-body .stats-section .home-section__header p {
  order: 1 !important;
}
.home-body .stats-section .home-section__header h2 {
  order: 2 !important;
}

.home-body .home-about__copy h2 {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.home-body .home-about__copy .home-kicker {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

/* Testimonial Rating Stars: change from blue to yellow for all student cards */
.about-testimonial__star.is-filled,
.home-body .about-testimonial__star.is-filled {
  color: #ffb800 !important;
}

.about-testimonial__star.is-half,
.home-body .about-testimonial__star.is-half {
  color: transparent !important;
  background: linear-gradient(90deg, #ffb800 50%, #d7dee8 50%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.about-testimonial__star:not(.is-filled):not(.is-half),
.home-body .about-testimonial__star:not(.is-filled):not(.is-half) {
  color: #d7dee8 !important;
}

/* Slider CTA Buttons: prominent blue rectangular button matching visual reference */
.home-body .home-hero .home-button,
.home-body .home-hero .home-button:not(.home-button--yellow),
.home-body .home-hero .home-hero__slide .home-button,
.home-body .home-hero__content .home-button,
.home-body .home-hero a.home-button,
.home-body a.home-button[href*="agent"],
.home-body .home-hero a.home-button[href*="agent"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: clamp(190px, 14.5vw, 232px) !important;
  min-height: 50px !important;
  height: 50px !important;
  margin-top: 0 !important;
  padding: 0 clamp(22px, 1.9vw, 34px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #1035b5 0%, #0a2082 100%) !important;
  box-shadow: 0 8px 20px rgba(8, 24, 96, 0.36) !important;
  color: #ffffff !important;
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(14px, 1.05vw, 16.5px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.home-body .home-hero .home-button:link,
.home-body .home-hero .home-button:visited,
.home-body .home-hero .home-button:hover,
.home-body .home-hero .home-button:focus,
.home-body .home-hero .home-button:active,
.home-body .home-hero .home-hero__slide .home-button:link,
.home-body .home-hero .home-hero__slide .home-button:visited,
.home-body .home-hero .home-hero__slide .home-button:hover,
.home-body .home-hero .home-hero__slide .home-button:focus,
.home-body .home-hero .home-hero__slide .home-button:active,
.home-body a.home-button[href*="agent"]:link,
.home-body a.home-button[href*="agent"]:visited,
.home-body a.home-button[href*="agent"]:hover,
.home-body a.home-button[href*="agent"]:focus,
.home-body a.home-button[href*="agent"]:active {
  color: #ffffff !important;
}

.home-body .home-hero .home-button:hover,
.home-body .home-hero .home-hero__slide .home-button:hover,
.home-body a.home-button[href*="agent"]:hover {
  background: linear-gradient(180deg, #1744d1 0%, #0e2ba0 100%) !important;
  box-shadow: 0 12px 26px rgba(12, 36, 128, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* -------------------------------------------------------------------------
 * Hero Slider: Proportional Aspect-Ratio Lock (Zero Horizontal/Vertical Crop)
 * ------------------------------------------------------------------------- */
.home-body .home-hero {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #091a38 !important;
}

@media (min-width: 701px) {
  .home-body .home-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 2048 / 860 !important;
  }
}

@media (max-width: 700px) {
  .home-body .home-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 3 / 2 !important;
  }
}

.home-body .home-hero__slides {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* All slides: standard absolute positioning with smooth crossfade */
.home-body .home-hero__slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: opacity 0.6s ease, visibility 0.6s ease !important;
  background-image: var(--hero-image) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.home-body .home-hero__slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

/* Wipe out all darkening/blur pseudo overlays: pure original bright colors */
.home-body .home-hero__slide::before,
.home-body .home-hero__slide::after,
.home-body .home-hero__slide--fit-image::before,
.home-body .home-hero__slide--fit-image::after,
.home-body .home-hero__slide.home-hero__slide--art-directed::before,
.home-body .home-hero__slide.home-hero__slide--art-directed::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  filter: none !important;
  transform: none !important;
}

/* -------------------------------------------------------------------------
 * Per-Slide Widescreen Desktop Images (min-width: 701px -> 2048x860 1:1 Fit)
 * ------------------------------------------------------------------------- */
.home-body .home-hero__slide--sunset {
  background-image: url('/assets/home/hero-graduate-sunset.jpg?v=20261108a') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #0b224e !important;
  justify-content: flex-start !important;
}

.home-body .home-hero__slide--collage {
  background-image: url('/assets/home/hero-student-collage-wide.jpg?v=20261108a') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #041f4a !important;
  justify-content: flex-start !important;
}

.home-body .home-hero__slide--acceptance-gate {
  background-image: url('/assets/home/hero-your-dream-admission-gate.jpg?v=20261108a') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #0b224e !important;
  justify-content: flex-start !important;
}

.home-body .home-hero__slide--campus {
  background-image: url('/assets/home/hero-campus-students-wide.jpg?v=20261108a') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  justify-content: flex-start !important;
}

.home-body .home-hero__slide--graduate {
  background-image: url('/assets/home/hero-graduate-blue-wide-v2.png?v=20261108a') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  justify-content: flex-start !important;
}

/* -------------------------------------------------------------------------
 * Consistent Reference-Based Semi-Transparent Dark-Gray Content Box on Left
 * (Applied Consistently Across All 5 Slides)
 * ------------------------------------------------------------------------- */
.home-body .home-hero__slide .home-hero__content,
.home-body .home-hero__slide .home-hero__content--panel {
  box-sizing: border-box !important;
  width: min(38.5vw, 540px) !important;
  min-height: 0 !important;
  margin: 0 auto 0 clamp(28px, 3.5vw, 60px) !important;
  padding: clamp(22px, 2.8vw, 40px) clamp(20px, 2.4vw, 36px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 3px !important;
  background: rgba(46, 48, 54, 0.56) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
  color: #ffffff !important;
}

.home-body .home-hero__slide .home-hero__content h2,
.home-body .home-hero__slide .home-hero__content--panel h2 {
  font-family: 'Poppins', 'Inter', var(--font-sans) !important;
  font-size: clamp(21px, 2.35vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  color: #ffffff !important;
  margin: 0 0 clamp(10px, 1.2vw, 16px) 0 !important;
  max-width: 19ch !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.26) !important;
}

.home-body .home-hero__slide .home-hero__content p,
.home-body .home-hero__slide .home-hero__content--panel p {
  font-family: 'Roboto', 'Inter', var(--font-sans) !important;
  font-size: clamp(13.5px, 1.05vw, 17px) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.96) !important;
  margin: 0 0 clamp(16px, 1.8vw, 26px) 0 !important;
  max-width: 48ch !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

/* -------------------------------------------------------------------------
 * Tablet & Compact Landscape Overrides (701px - 1024px)
 * ------------------------------------------------------------------------- */
@media (min-width: 701px) and (max-width: 1024px) {
  .home-body .home-hero__slide .home-hero__content,
  .home-body .home-hero__slide .home-hero__content--panel {
    width: min(45vw, 430px) !important;
    margin: 0 auto 0 clamp(20px, 3.2vw, 40px) !important;
    padding: clamp(14px, 2vw, 22px) clamp(16px, 2vw, 22px) !important;
  }

  .home-body .home-hero__slide .home-hero__content h2,
  .home-body .home-hero__slide .home-hero__content--panel h2 {
    font-size: clamp(17px, 2.2vw, 24px) !important;
    margin-bottom: 8px !important;
  }

  .home-body .home-hero__slide .home-hero__content p,
  .home-body .home-hero__slide .home-hero__content--panel p {
    font-size: clamp(11.5px, 1.2vw, 13.5px) !important;
    line-height: 1.42 !important;
    margin-bottom: 12px !important;
  }

  .home-body .home-hero .home-button,
  .home-body .home-hero__content .home-button {
    min-width: 155px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }
}

/* -------------------------------------------------------------------------
 * Mobile Responsive Overrides (<= 700px) — 3:2 Full Uncropped Image + Compact Left Box
 * ------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .home-body .home-hero__slide--sunset {
    background-image: url('/assets/home/hero-graduate-sunset-mobile.jpg?v=20261108a') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
  }

  .home-body .home-hero__slide--collage {
    background-image: url('/assets/home/hero-student-collage-mobile.jpg?v=20261108a') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
  }

  .home-body .home-hero__slide--acceptance-gate {
    background-image: url('/assets/home/hero-your-dream-admission-gate-mobile.jpg?v=20261108a') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
  }

  .home-body .home-hero__slide--campus {
    background-image: url('/assets/home/hero-campus-students-mobile.jpg?v=20261108a') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
  }

  .home-body .home-hero__slide--graduate {
    background-image: url('/assets/home/hero-graduate-blue-mobile.jpg?v=20261108a') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
  }

  .home-body .home-hero .home-hero__arrow {
    width: 15px !important;
    height: 30px !important;
    font-size: 17px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.72 !important;
    z-index: 6 !important;
  }

  .home-body .home-hero .home-hero__arrow--prev {
    left: 1px !important;
  }

  .home-body .home-hero .home-hero__arrow--next {
    right: 1px !important;
  }

  .home-body .home-hero .home-hero__progress {
    left: 50% !important;
    right: auto !important;
    bottom: 5px !important;
    transform: translateX(-50%) !important;
    gap: 6px !important;
    z-index: 6 !important;
  }

  .home-body .home-hero .home-hero__progress button {
    width: 7px !important;
    height: 7px !important;
  }

  .home-body .home-hero__slide .home-hero__content,
  .home-body .home-hero__slide .home-hero__content--panel {
    width: clamp(148px, 41.5vw, 186px) !important;
    margin: 0 auto 12px 17px !important;
    padding: 8px 9px !important;
    border-radius: 3px !important;
    background: rgba(46, 48, 54, 0.56) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .home-body .home-hero__slide .home-hero__content h2,
  .home-body .home-hero__slide .home-hero__content--panel h2 {
    font-size: clamp(11.5px, 3.15vw, 14px) !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
    max-width: none !important;
  }

  .home-body .home-hero__slide .home-hero__content p,
  .home-body .home-hero__slide .home-hero__content--panel p {
    font-size: clamp(8.8px, 2.35vw, 10.2px) !important;
    line-height: 1.28 !important;
    margin-bottom: 7px !important;
    max-width: none !important;
  }

  .home-body .home-hero .home-button,
  .home-body .home-hero .home-hero__slide .home-button,
  .home-body .home-hero__content .home-button,
  .home-body .home-hero a.home-button[href*="agent"] {
    min-width: 108px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 10px !important;
    border-radius: 3px !important;
    font-size: clamp(9.5px, 2.5vw, 10.5px) !important;
    letter-spacing: 0.02em !important;
    margin-top: 0 !important;
  }
}

/* -------------------------------------------------------------------------
 * Mobile & Landscape Fixes for Sections Below the Slider
 * ------------------------------------------------------------------------- */
.home-body .home-social-rail {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.home-body .home-social-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px), (max-height: 540px) {
  .home-social-rail,
  .home-body .home-social-rail.is-visible {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .brand__text {
    display: grid !important;
  }

  .brand__text strong {
    font-size: 11.5px !important;
    letter-spacing: 0.02em !important;
  }

  .brand__text > span {
    margin-top: 3px !important;
    font-size: 6.8px !important;
    letter-spacing: 0.08em !important;
  }
}

/* Admissions section: rich navy contrast + clean 2-column mobile document grid */
.home-body .admissions-section,
.home-body .contact-section {
  color: #ffffff !important;
  background: linear-gradient(180deg, #04183c 0%, #061e4c 50%, #0a3582 100%) !important;
}

.home-body .admissions-section::before,
.home-body .admissions-section::after,
.home-body .contact-section::before,
.home-body .contact-section::after {
  display: none !important;
  content: none !important;
}

.home-body .admissions-section .home-section__header h2,
.home-body .admissions-section .home-section__header p,
.home-body .contact-section .home-section__header h2,
.home-body .contact-section .home-section__header p {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 700px) {
  .home-body .university-carousel {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%) !important;
  }

  .home-body .university-item {
    flex: 0 0 168px !important;
  }

  .home-body .university-item strong {
    max-width: 162px !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .home-body .admissions-grid,
  .home-body .admissions-grid--jw {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .home-body .admissions-grid img,
  .home-body .admissions-grid--jw img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
    padding: 6px !important;
    border-radius: 6px !important;
  }
}

.home-body .contact-form input {
  height: 48px !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
}

.home-body .contact-form textarea[name="wechat"] {
  min-height: 48px !important;
  height: 48px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  resize: none !important;
}

.home-body .contact-form textarea[name="message"] {
  min-height: 118px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
}

/* Share the header CTA design across slider buttons without changing layout. */
.home-body .home-hero .home-hero__slide .apply-button.home-button--slider {
  border: 1px solid rgba(16, 71, 183, .25) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #1761c5, #2f7fdf) !important;
  box-shadow: 0 10px 22px rgba(23, 97, 197, .18) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 16px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  transform: none !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease !important;
}

.home-body .home-hero .home-hero__slide .apply-button.home-button--slider:hover {
  transform: translateY(-1px) !important;
}

@media (max-width: 1245px) {
  .home-body .home-hero .home-hero__slide .apply-button.home-button--slider {
    border-radius: 10px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 560px) {
  .home-body .home-hero .home-hero__slide .apply-button.home-button--slider {
    font-size: 9.5px !important;
  }
}
