@charset "UTF-8";
/* Masterskills Homepage — Soft Borders + Warm Hero Sync | 2026-10-22 */
#main-content.site-frame-system {
  --ms-frame-ink: #d4d8d7;
  --ms-frame-border: 1px;
  --ms-frame-shadow: rgba(50, 65, 69, .065);
  --ms-frame-offset: 0px;
  --ms-soft-border: #d5d9d8;
  --ms-soft-border-hover: #bcc9c9;
  --ms-soft-divider: #d9dddc;
  --ms-soft-shadow: 0 7px 22px rgba(39, 54, 60, .065);
  --ms-soft-shadow-hover: 0 10px 26px rgba(39, 54, 60, .10);
}

/* Main section panels and hero outline */
#main-content .site-section-frame {
  border: 1px solid var(--ms-soft-border) !important;
  box-shadow: var(--ms-soft-shadow) !important;
}
#main-content .home-hero__viewport.site-feature-frame {
  border: 1px solid var(--ms-soft-border) !important;
  box-shadow: var(--ms-soft-shadow) !important;
}
#main-content .site-card-frame {
  border: 1px solid var(--ms-soft-border) !important;
  box-shadow: var(--ms-soft-shadow) !important;
}
#main-content .site-card-frame:hover {
  border-color: var(--ms-soft-border-hover) !important;
  box-shadow: var(--ms-soft-shadow-hover) !important;
  transform: translateY(-2px);
}
#main-content .home-hero .stat-icon {
  border: 1px solid #d9c99f !important;
}
#main-content #giai-phap .enterprise-about,
#main-content #giai-phap .enterprise-tabs {
  border: 1px solid var(--ms-soft-border) !important;
  box-shadow: var(--ms-soft-shadow) !important;
}
#main-content #giai-phap .enterprise-about:hover,
#main-content #giai-phap .enterprise-tabs:hover {
  border-color: var(--ms-soft-border-hover) !important;
  box-shadow: var(--ms-soft-shadow-hover) !important;
}
#main-content #giai-phap .enterprise-tabs__nav {
  border-right-color: var(--ms-soft-divider) !important;
  border-bottom-color: var(--ms-soft-divider) !important;
}
#main-content #giai-phap .enterprise-tabs__tab,
#main-content #giai-phap .enterprise-tabs__tab:last-child {
  border: 1px solid #c7cdcc !important;
  box-shadow: none !important;
}
#main-content #giai-phap .enterprise-tabs--navy-arrow .enterprise-tabs__tab.is-active,
#main-content #giai-phap .enterprise-tabs--navy-arrow .enterprise-tabs__tab:hover,
#main-content #giai-phap .enterprise-tabs--navy-arrow .enterprise-tabs__tab:focus-visible {
  border-color: #738f9c !important;
}
#main-content #giai-phap .enterprise-tabs--navy-arrow
.enterprise-tabs__nav:has(.enterprise-tabs__tab:hover)
.enterprise-tabs__tab.is-active:not(:hover) {
  border-color: #c7cdcc !important;
}
#main-content #chuong-trinh .program-card,
#main-content #chuong-trinh .program-card:hover {
  border: 1px solid var(--ms-soft-border) !important;
  box-shadow: var(--ms-soft-shadow) !important;
}
#main-content #chuong-trinh .program-card:hover {
  border-color: var(--ms-soft-border-hover) !important;
  box-shadow: var(--ms-soft-shadow-hover) !important;
}
#main-content .section-cases .case-card img {
  border-bottom: 1px solid var(--ms-soft-divider) !important;
}
#main-content .final-cta .button {
  border-width: 1.5px !important;
  border-color: #6d7372 !important;
}

/* HERO — match footer #0468B1; moderated overlay and centered content */
.home-hero {
  background: #0468B1 !important;
}
.home-hero__viewport {
  background: #0468B1 !important;
}
.home-hero__viewport::before {
  background:
    linear-gradient(90deg,
      rgba(4, 104, 177, .78) 0%,
      rgba(4, 104, 177, .67) 24%,
      rgba(4, 104, 177, .42) 46%,
      rgba(4, 104, 177, .14) 70%,
      rgba(4, 104, 177, .045) 88%,
      rgba(4, 104, 177, .01) 100%),
    linear-gradient(0deg,
      rgba(3, 61, 105, .08) 0%,
      transparent 42%) !important;
}
.home-hero__slide {
  background: #0468B1 !important;
}
.home-hero .eyebrow,
.home-hero .eyebrow::before {
  color: #efc861 !important;
  background: #efc861 !important;
}
.home-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(8, 45, 73, .22) !important;
}
.home-hero__lead {
  color: #f5f2ee !important;
  text-shadow: 0 1px 8px rgba(8, 45, 73, .18) !important;
}
.home-hero__arrow {
  border-color: rgba(255,255,255,.52) !important;
  background: rgba(4, 86, 147, .48) !important;
}
.home-hero__arrow:hover {
  color: #2f4b58 !important;
  border-color: #ead8af !important;
  background: #efc861 !important;
}
.home-hero__dots button { background: rgba(255,255,255,.72) !important; }
.home-hero__dots button.is-active { background: #efc861 !important; }

@media (max-width: 920px) {
  .home-hero__viewport::before {
    background:
      linear-gradient(90deg,
        rgba(4, 104, 177, .78) 0%,
        rgba(4, 104, 177, .58) 44%,
        rgba(4, 104, 177, .26) 74%,
        rgba(4, 104, 177, .06) 100%),
      linear-gradient(0deg,
        rgba(3, 61, 105, .09) 0%,
        transparent 40%) !important;
  }
}
@media (max-width: 620px) {
  .home-hero__viewport::before {
    background:
      linear-gradient(90deg,
        rgba(4, 104, 177, .78),
        rgba(4, 104, 177, .56)),
      linear-gradient(0deg,
        rgba(3, 61, 105, .10),
        transparent 46%) !important;
  }
}

@media (max-width: 620px) {
  #main-content .site-section-frame,
  #main-content .home-hero__viewport.site-feature-frame,
  #main-content .site-card-frame,
  #main-content #giai-phap .enterprise-about,
  #main-content #giai-phap .enterprise-tabs,
  #main-content #chuong-trinh .program-card {
    border-width: 1px !important;
    box-shadow: 0 5px 15px rgba(39, 54, 60, .055) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .site-card-frame:hover { transform: none; }
}

.home-hero .eyebrow::before {
  content: none !important;
  display: none !important;
}
.home-hero .eyebrow {
  padding-left: 0 !important;
}

/* Refinement: restore the small label and remove the former solid gold strip. */
#main-content .home-hero .eyebrow {
  background: transparent !important;
  color: #f8dfa6 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  letter-spacing: 1.65px !important;
}
#main-content .home-hero .eyebrow::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
}
/* Center label + heading + description as a single visual unit. */
#main-content .home-hero__content {
  align-items: center !important;
}
#main-content .home-hero__copy {
  transform: none !important;
  width: min(720px, 63%) !important;
  padding: 0 0 8px !important;
}
#main-content .home-hero h1 {
  margin: 0 0 15px !important;
  max-width: 710px !important;
  font-size: clamp(38px, 3.35vw, 49px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.85px !important;
  text-wrap: balance;
}
#main-content .home-hero__lead {
  max-width: 590px !important;
  font-size: clamp(15px, 1.12vw, 18px) !important;
  line-height: 1.52 !important;
  font-weight: 600 !important;
}
@media (max-width: 1100px) {
  #main-content .home-hero__copy {
    width: min(670px, 68%) !important;
  }
  #main-content .home-hero h1 {
    font-size: clamp(36px, 3.8vw, 43px) !important;
  }
}
@media (max-width: 820px) {
  #main-content .home-hero__copy {
    width: 82% !important;
    padding-bottom: 12px !important;
  }
  #main-content .home-hero h1 {
    font-size: clamp(32px, 4.65vw, 39px) !important;
  }
  #main-content .home-hero__lead {
    font-size: 16px !important;
  }
}
@media (max-width: 620px) {
  #main-content .home-hero__copy {
    width: 100% !important;
    padding: 0 0 25px !important;
  }
  #main-content .home-hero .eyebrow {
    font-size: 11px !important;
    letter-spacing: 1.05px !important;
    margin-bottom: 12px !important;
  }
  #main-content .home-hero h1 {
    font-size: clamp(29px, 8.4vw, 35px) !important;
    line-height: 1.13 !important;
    margin-bottom: 12px !important;
  }
  #main-content .home-hero__lead {
    font-size: 15px !important;
    line-height: 1.53 !important;
  }
}


/* 2026-10-22 — Transparent hero assets integration
   Keep actual alpha pixels from PNGs, using footer blue as the only backdrop.
   Avoid a separate opaque rectangular photo layer or double gradient. */
#main-content.home-hero,
#main-content .home-hero,
#main-content .home-hero__viewport,
#main-content .home-hero__slide {
  background: #0468B1 !important;
}
#main-content .home-hero__viewport::before {
  /* Cut-out PNGs already fade into blue naturally. */
  background: none !important;
}
#main-content .home-hero__slide img {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: min(88%, 1400px) !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: none !important;
  transform-origin: right center !important;
  opacity: 1 !important;
}
@media (max-width: 1100px) {
  #main-content .home-hero__slide img {
    width: 94% !important;
    object-position: right center !important;
  }
}
@media (max-width: 820px) {
  #main-content .home-hero__slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right center !important;
    opacity: .48 !important;
  }
  #main-content .home-hero__viewport::before {
    background: linear-gradient(90deg, rgba(4,104,177,.72), rgba(4,104,177,.35) 70%, rgba(4,104,177,.06)) !important;
  }
}
@media (max-width: 620px) {
  #main-content .home-hero__slide img {
    top: auto !important;
    right: -14% !important;
    bottom: 0 !important;
    width: 114% !important;
    height: 72% !important;
    object-fit: cover !important;
    object-position: right center !important;
    opacity: .42 !important;
  }
  #main-content .home-hero__viewport::before {
    background: linear-gradient(180deg, #0468B1 0%, rgba(4,104,177,.96) 25%, rgba(4,104,177,.33) 100%) !important;
  }
}


/* 2026-10-22 — Mobile alignment and reduced-size in-house sticky ticker.
   Scoped to small screens only; desktop layouts are unchanged. */
@media (max-width: 620px) {
  /* Put the hero copy close to the top, not vertically centered. */
  #main-content .home-hero__content {
    align-items: flex-start !important;
    padding-top: clamp(22px, 6vw, 30px) !important;
    padding-bottom: 18px !important;
    box-sizing: border-box !important;
  }
  #main-content .home-hero__copy {
    align-self: flex-start !important;
    transform: none !important;
    padding: 0 !important;
  }
  /* Use compact mobile spacing while retaining the existing H1 scale. */
  #main-content .home-hero .eyebrow {
    margin-bottom: 11px !important;
  }
  #main-content .home-hero h1 {
    margin-bottom: 11px !important;
  }
  /* Shrink the fixed ticker, including its yellow text background. */
  body.page-course-detail .cd-inhouse-sticky {
    min-height: 0 !important;
    padding: 3px 6px !important;
    align-items: center !important;
  }
  body.page-course-detail .cd-inhouse-sticky a {
    max-width: 100% !important;
    padding: 2px 6px !important;
    font-size: 11.5px !important;
    line-height: 1.22 !important;
    font-weight: 400 !important;
  }
  body.page-course-detail .cd-inhouse-sticky strong {
    font-size: 1em !important;
    font-weight: 900 !important;
  }
}
@media (max-width: 360px) {
  body.page-course-detail .cd-inhouse-sticky a {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }
}


/* ====================================================================
   MASTERSKILLS HOMEPAGE FINAL REFINEMENT - 2026-10-22
   1) Mobile hero: content-height instead of the obsolete 460px min-height
   2) One consistent editorial heading scale for all homepage sections
   3) Low-emphasis institutional name in the footer
   ==================================================================== */

/* SECTION HEADINGS: unified hierarchy, desktop/tablet/mobile */
#main-content.site-frame-system .site-framed-section .section-heading h2 {
  font-family: Tahoma, Arial, sans-serif !important;
  font-size: clamp(28px, 2.25vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
  letter-spacing: -0.018em !important;
  text-wrap: balance;
  overflow-wrap: normal;
}
#main-content.site-frame-system .site-framed-section .section-heading h2::after {
  margin-top: 15px !important;
  margin-bottom: 16px !important;
}

/* FOOTER: institutional title as quiet secondary information */
.site-footer .footer-bottom .footer-academy-name {
  color: rgba(255,255,255,.72) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: .005em !important;
  margin: 0 0 7px !important;
  text-shadow: none !important;
}

@media (max-width: 620px) {
  /* Remove the forced 460px minimum: the actual copy defines hero height.
     Reserve ~65px beneath the copy for arrows/dots and breathing room. */
  #main-content .home-hero__viewport,
  #main-content .home-hero__content {
    height: auto !important;
    min-height: 0 !important;
  }
  #main-content .home-hero__content {
    align-items: flex-start !important;
    padding-top: 22px !important;
    padding-bottom: 66px !important;
  }
  #main-content .home-hero__copy {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #main-content .home-hero .eyebrow {
    margin-bottom: 9px !important;
  }
  #main-content .home-hero h1 {
    margin-bottom: 10px !important;
  }
  #main-content.site-frame-system > .home-hero {
    padding-bottom: 4px !important;
  }
  /* Same section hierarchy across all headings even when base CSS
     has a separate larger rule for #chuong-trinh. */
  #main-content.site-frame-system .site-framed-section .section-heading h2 {
    font-size: clamp(21px, 5.6vw, 25px) !important;
    line-height: 1.24 !important;
    letter-spacing: -.012em !important;
  }
  #main-content.site-frame-system .site-framed-section .section-heading h2::after {
    width: 58px !important;
    margin-top: 11px !important;
    margin-bottom: 13px !important;
  }
  #main-content .site-section-frame > .section-heading {
    margin-bottom: 22px !important;
  }
  #main-content #chuong-trinh .section-heading {
    margin-bottom: 24px !important;
  }
  .site-footer .footer-bottom .footer-academy-name {
    font-size: 11.5px !important;
    line-height: 1.42 !important;
    color: rgba(255,255,255,.70) !important;
  }
  .site-footer .footer-bottom > p:not(.footer-academy-name) {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }
}


/* 2026-10-22 | FIX: Footer bottom strip and legal text rhythm
   The inherited mobile body padding-bottom (76px) was sized for an old
   tall ticker. The ticker is now ~35–38px; that body's whitespace was
   appearing as a blank light strip after the footer. Keep the reserve
   INSIDE the footer, colored to match it, so legal text stays unobscured. */
.site-footer .footer-bottom > p {
  font-family: Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  color: rgba(255,255,255,.64) !important;
  margin: 0 0 5px !important;
  text-shadow: none !important;
  overflow-wrap: break-word !important;
}
.site-footer .footer-bottom > p:last-child {
  margin-bottom: 0 !important;
}
/* This CSS is linked by the homepage only, so removing the course-page
   body reserve does not affect the other course pages. */
body.page-course-detail {
  padding-bottom: 0 !important;
}
/* Ticker overlaps bottom edge; keep the clearance in the BLUE footer. */
.site-footer {
  padding-bottom: 42px !important;
  background-color: #0468B1 !important;
}
@media (max-width: 760px) {
  .site-footer {
    padding-bottom: 43px !important;
  }
  .site-footer .footer-bottom > p {
    font-size: 11px !important;
    line-height: 1.46 !important;
    margin-bottom: 5px !important;
    color: rgba(255,255,255,.65) !important;
  }
}

/* Consolidate the institutional, legal, and copyright text even when
   earlier .footer-academy-name rules specify a higher specificity. */
.site-footer .footer-bottom p.footer-academy-name,
.site-footer .footer-bottom p.footer-legal-details,
.site-footer .footer-bottom p.footer-copyright {
  font-size: 12px !important;
  color: rgba(255,255,255,.64) !important;
  font-weight: 400 !important;
  line-height: 1.48 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  margin: 0 0 5px !important;
}
.site-footer .footer-bottom p.footer-copyright {margin-bottom: 0 !important;}
@media (max-width: 760px) {
  .site-footer .footer-bottom p.footer-academy-name,
  .site-footer .footer-bottom p.footer-legal-details,
  .site-footer .footer-bottom p.footer-copyright {
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: rgba(255,255,255,.65) !important;
  }
}
/* Both controls are fixed widgets, not footer content. Preserve their
   document-independent positioning so no blank block can follow footer. */
body.page-course-detail > .cd-inhouse-sticky {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 998 !important;
  background: #004f8a !important;
}
body.page-course-detail > a.ctrlq.fb-button {
  position: fixed !important;
  right: 16px !important;
  bottom: 72px !important;
  z-index: 1001 !important;
}
@media (max-width: 760px) {
  body.page-course-detail > a.ctrlq.fb-button {
    right: 12px !important;
    bottom: 68px !important;
  }
}

/* ================================================================
   2026-10-22 | HOMEPAGE FINISHING — PROGRAM CARD HOVER & TICKER
   Restrict changes to program-category cards and bottom ticker.
   ================================================================ */

/* Soft slate-blue / corporate hover, replacing legacy bright #FFD54F.
   Keyboard focus gets the same visual feedback. */
#main-content #chuong-trinh .program-card:hover,
#main-content #chuong-trinh .program-card:focus-visible {
  background: #edf4f5 !important;
  border-color: #9ebdc8 !important;
  box-shadow: 0 9px 22px rgba(28, 73, 94, .11) !important;
  transform: translateY(-3px);
}
#main-content #chuong-trinh .program-card:hover h3,
#main-content #chuong-trinh .program-card:focus-visible h3 {
  color: #164b6a !important;
}
/* Keep the colorful category icons legible against the new soft hover. */
#main-content #chuong-trinh .program-card:hover .program-icon,
#main-content #chuong-trinh .program-card:focus-visible .program-icon {
  background: #fff !important;
}

/* The phrase should no longer grow to 125% of the ticker text. */
body.page-course-detail .cd-inhouse-sticky a strong {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 700 !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  #main-content #chuong-trinh .program-card:hover,
  #main-content #chuong-trinh .program-card:focus-visible {
    transform: none;
  }
}
