/* The page keeps the live reference's section rhythm while using local YS assets. */
.diploma-engineering {
  color: #1f2937;
  background: #f8fafc;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26.4px;
}

.diploma-engineering__hero {
  height: 400px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(22, 133, 255, .24), transparent 34%),
    linear-gradient(135deg, #020d26 0%, #061b46 58%, #0b3b91 100%);
}

.diploma-engineering__hero-container {
  width: min(100%, 1140px);
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-inline: auto;
}

.diploma-engineering__hero-column {
  width: 69.5587%;
  min-height: 1px;
  padding: 10px;
}

.diploma-engineering__hero-copy {
  padding-right: 50px;
}

.diploma-engineering__hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font: 600 46px / 64.4px var(--font-reference-heading);
}

.diploma-engineering__hero p {
  margin: 0 0 25.6px;
  color: rgba(255, 255, 255, .9);
  font: 400 16px / 26.4px var(--font-body);
}

.diploma-engineering__hero-spacer {
  width: 30.4413%;
  min-height: 1px;
}

.diploma-engineering__programs {
  margin: 60px 0;
}

.diploma-engineering__programs-container {
  width: min(100%, 1140px);
  margin-inline: auto;
  padding: 10px;
}

.diploma-engineering__program-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 50px;
}

.diploma-program-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: center;
}

.diploma-program-card__logo {
  width: 33%;
  height: auto;
  display: block;
  align-self: center;
  margin: 0 auto 20px;
}

.diploma-program-card h2 {
  margin: 0;
  color: #0f2d7a;
  font: 600 19px / 24.7px var(--font-reference-heading);
  text-align: center;
}

.diploma-program-card--empty {
  min-height: 1px;
}

.diploma-reference-share {
  position: fixed;
  z-index: 55;
  top: 100px;
  right: -10px;
  width: 64px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 4px;
  background: transparent;
}

.diploma-reference-share a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.diploma-reference-share a[data-diploma-share="facebook"] { background: #0765fe; }
.diploma-reference-share a[data-diploma-share="x"] { background: #2a2a2a; }
.diploma-reference-share a[data-diploma-share="linkedin"] { background: #0077b5; }
.diploma-reference-share a[data-diploma-share="pinterest"] { background: #cc2329; }
.diploma-reference-share a[data-diploma-share="whatsapp"] { background: #55eb4c; }
.diploma-reference-share a[data-diploma-share="instagram"] { background: #53beee; }

.diploma-reference-share img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
}

.diploma-reference-share a[data-diploma-share="more"] {
  color: #fff;
  background: #ee8e2d;
  font: 400 34px / 40px Arial, sans-serif;
}

.diploma-reference-chat {
  position: fixed;
  z-index: 57;
  right: 30px;
  bottom: 92px;
  width: 248px;
  min-height: 87px;
  padding: 29px 14px 13px;
  border: 1px solid #e7e7e7;
  border-radius: 7px;
  color: #333;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
}

.diploma-reference-chat[hidden] {
  display: none;
}

.diploma-reference-chat img {
  position: absolute;
  top: -25px;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 50%;
  object-fit: cover;
}

.diploma-reference-chat p {
  margin: 0;
  font: 400 16px / 24px var(--font-body);
}

.diploma-reference-chat__close {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  color: #777;
  background: transparent;
  font: 300 21px / 22px Arial, sans-serif;
  cursor: pointer;
}

.diploma-reference-chat__launcher {
  position: fixed;
  z-index: 57;
  right: 30px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1b63c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.diploma-reference-chat__launcher span {
  position: relative;
  width: 25px;
  height: 20px;
  display: block;
  border: 2px solid #fff;
  border-radius: 3px;
}

.diploma-reference-chat__launcher span::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: skewY(-32deg);
}

@media (min-width: 1246px) {
  body.diploma-engineering-page .site-header .shell {
    width: min(calc(100% - 40px), 1200px);
    padding-inline: 0;
  }
}

/* The live reference keeps its desktop header through tablet widths, where the nav wraps. */
@media (min-width: 901px) and (max-width: 1245px) {
  body.diploma-engineering-page .site-header .shell {
    width: calc(100% - 40px);
    padding-inline: 0;
  }

  body.diploma-engineering-page .contact-bar,
  body.diploma-engineering-page .identity-contacts,
  body.diploma-engineering-page .navbar-wrap {
    display: block;
  }

  body.diploma-engineering-page .contact-bar {
    min-height: 53.78125px;
  }

  body.diploma-engineering-page .contact-bar__inner {
    min-height: 52.78125px;
    grid-template-columns: 230px minmax(0, 1fr) 120px;
  }

  body.diploma-engineering-page .social-list {
    flex-wrap: wrap;
  }

  body.diploma-engineering-page .identity-row__inner {
    min-height: 82px;
    gap: 16px;
  }

  body.diploma-engineering-page .identity-contacts {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    flex: 1 1 auto;
  }

  body.diploma-engineering-page .identity-contact {
    min-width: 0;
  }

  body.diploma-engineering-page .navbar__actions {
    margin-left: 0;
    flex: 0 0 auto;
  }

  body.diploma-engineering-page .navbar {
    min-height: 60px;
    height: auto;
  }

  body.diploma-engineering-page .desktop-nav,
  body.diploma-engineering-page .desktop-nav__list {
    width: 100%;
  }

  body.diploma-engineering-page .desktop-nav__list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.diploma-engineering-page .menu-toggle {
    display: none;
  }

  body.diploma-engineering-page .menu-backdrop,
  body.diploma-engineering-page .mobile-menu {
    display: none;
  }
}

@media (max-width: 900px) {
  .diploma-engineering {
    font-size: 14.592px;
    line-height: 24.0768px;
  }

  body.diploma-engineering-page .contact-bar,
  body.diploma-engineering-page .identity-contacts,
  body.diploma-engineering-page .navbar-wrap {
    display: none;
  }

  body.diploma-engineering-page .site-header .shell {
    width: calc(100% - 40px);
    padding-inline: 0;
  }

  body.diploma-engineering-page .identity-row__inner {
    min-height: 80px;
  }

  body.diploma-engineering-page .brand__logo-wrap {
    width: 56px;
    height: 56px;
  }

  body.diploma-engineering-page .brand__logo {
    width: 55px;
    height: 55px;
  }

  body.diploma-engineering-page .apply-button--desktop {
    display: none;
  }

  body.diploma-engineering-page .menu-toggle {
    display: block;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 2px;
    background: #0f2d7a;
  }

  body.diploma-engineering-page .menu-toggle > span {
    background: #fff;
  }

  .diploma-engineering__hero p {
    font-size: 14.592px;
    line-height: 24.0768px;
    margin-bottom: 23.3472px;
  }

  .diploma-reference-share {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 42px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .diploma-reference-share a {
    width: auto;
    height: 40px;
    flex: 1 1 0;
    border-radius: 20px;
  }

  .diploma-reference-share img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) {
  .diploma-engineering__hero-container {
    align-items: flex-start;
    padding-top: 27.625px;
  }

  .diploma-engineering__hero-column {
    width: 100%;
  }

  .diploma-engineering__hero-spacer {
    display: none;
  }

  .diploma-engineering__program-row {
    grid-template-columns: 1fr;
  }

  .diploma-program-card--empty {
    height: 1px;
    min-height: 1px;
    padding: 0;
  }
}

@media (max-width: 900px) {
  /* Match the reference's full-width yellow mobile menu while keeping the shared keyboard logic. */
  body.diploma-engineering-page .menu-backdrop {
    display: none;
  }

  body.diploma-engineering-page .mobile-menu {
    position: absolute;
    z-index: 45;
    top: 80px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    padding: 0;
    overflow: visible;
    background: #f8b900;
    box-shadow: none;
    transform: none;
    visibility: hidden;
  }

  body.diploma-engineering-page .mobile-menu.is-open {
    visibility: visible;
  }

  body.diploma-engineering-page .mobile-menu__head,
  body.diploma-engineering-page .mobile-menu__contact,
  body.diploma-engineering-page .apply-button--mobile {
    display: none;
  }

  body.diploma-engineering-page .mobile-nav {
    padding: 0;
  }

  body.diploma-engineering-page .mobile-nav > li {
    border: 0;
  }

  body.diploma-engineering-page .mobile-nav__link {
    min-height: 42px;
    padding: 0 20px;
    color: #111827;
    background: #f8b900;
    font-size: 14px;
    font-weight: 400;
  }

  body.diploma-engineering-page .mobile-nav__link.is-active {
    color: #fff;
    background: #0f2d7a;
  }

  body.diploma-engineering-page .mobile-submenu {
    margin: 0;
    padding: 0;
    border: 0;
    background: #f8b900;
  }

  body.diploma-engineering-page .mobile-submenu a {
    min-height: 42px;
    padding: 0 30px;
    border-radius: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 400;
  }

  body.diploma-engineering-page .mobile-submenu li.is-active a {
    color: #fff;
    background: #0f2d7a;
  }

  body.diploma-engineering-page.menu-open > .diploma-engineering {
    margin-top: 336px;
  }

  body.diploma-engineering-page.menu-open:has(.mobile-submenu:not([hidden])) > .diploma-engineering {
    margin-top: 672px;
  }
}

@media (max-width: 480px) {
  .diploma-reference-chat {
    right: 30px;
    width: 235px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diploma-reference-chat__launcher {
    transition: none;
  }
}
