/* Main hero: local artwork, editable course copy and an automatic course carousel. */
@font-face {
  font-family: "Gmarket Sans";
  src: url("../../assets/fonts/gmarket-sans-light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Gmarket Sans";
  src: url("../../assets/fonts/gmarket-sans-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Gmarket Sans";
  src: url("../../assets/fonts/gmarket-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.hero {
  padding-top: 16px;
  padding-bottom: 154px;
  text-align: center;
  font-family: "techupSans", Arial, sans-serif;
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 795;
  min-height: 490px;
  overflow: hidden;
  background: #000;
}
.hero-background {
  width: 100%;
  height: auto;
}
.hero-logo {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 15%;
  height: auto;
  transform: translateX(-50%);
}
.hero-course {
  --hero-slide-offset: 28px;
  position: absolute;
  top: 14.7%;
  left: 50%;
  width: 24.322917%;
  transform: translateX(-50%);
  color: #fff;
}
.hero-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero-course-slides {
  display: grid;
}
.hero-course-slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(var(--hero-slide-offset), 0, 0) scale(0.985);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 650ms;
}
.hero-course[data-carousel-direction="previous"] {
  --hero-slide-offset: -28px;
}
.hero-course-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
}
/* The image, copy and CTA form one native course link. */
.hero-course-link {
  position: relative;
  left: 50%;
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 64px);
  transform: translateX(-50%);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: pan-y;
}
.hero-course-link::after {
  content: "";
  position: absolute;
  inset: 0 0 -20px;
}
.hero-course-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 8px;
}
.hero-course-media {
  position: relative;
  width: min(100%, 467px);
  aspect-ratio: 467 / 415;
  margin-inline: auto;
  line-height: 0;
}
.hero-course-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-course-image--poster {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 172%;
  max-width: none;
  height: auto;
  transform: translate(-58.4%, -50%);
}
.hero-course-image--management {
  width: 184%;
}
.hero-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  pointer-events: none;
}
.hero-course[data-carousel-ready="true"] + .hero-carousel-controls {
  display: block;
}
.hero-carousel-control {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.58);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 180ms ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-carousel-control:hover {
  background: rgb(0 0 0 / 0.8);
}
.hero-carousel-control:focus-visible {
  opacity: 1;
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.hero-carousel-control--previous {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}
.hero-carousel-control--next {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}
.hero-carousel-control--toggle {
  display: none;
}
.hero-course-eyebrow {
  color: #d4c4db;
  font-size: max(16px, 1.25vw);
  font-weight: 400;
  line-height: 1.21;
}
.hero-course-title {
  position: relative;
  left: 50%;
  width: max-content;
  text-align: center;
  transform: translateX(-50%);
  margin-top: 0.208333vw;
  font-size: 2.083333vw;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.hero-course-title > strong,
.hero-course-title > span {
  font-family: "Gmarket Sans", techupSans, Arial, sans-serif;
}
.hero-course-title > strong {
  font-weight: 700;
}
.hero-course-title > span {
  font-weight: 300;
}
.hero-course-title--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}
.hero-course-title--stacked > .hero-course-ai-label {
  display: block;
  margin-top: 0.12em;
  text-align: center;
}
.hero-course-description {
  margin-top: 0.625vw;
  color: #ebebf0;
  font-size: max(12px, 0.9375vw);
  font-weight: 400;
  line-height: 1.444445;
  letter-spacing: -0.035em;
}
.hero-course-description span {
  display: block;
}
.hero-course-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.520833vw;
  margin-top: 1.145833vw;
  min-height: max(44px, 2.395833vw);
  padding: 0.46875vw 1.041667vw;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-size: max(14px, 0.9375vw);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.hero-course-link:hover .hero-course-cta,
.hero-course-link:focus-visible .hero-course-cta {
  background: #df0010;
}
.hero-course-arrow {
  font-family: Arial, sans-serif;
  font-size: 1.25em;
  line-height: 1;
}
.hero > .wrap h1 {
  margin-top: 55px;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
}
.hero-copy {
  margin-top: 43px;
  font-size: 16px;
  line-height: 26px;
}
.hero-status {
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
}
.hero-status span {
  background: #252211;
  color: #ffe12e;
  padding: 2px 4px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero-visual {
    aspect-ratio: auto;
    padding: 120px 20px 36px;
  }
  .hero-background {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }
  .hero-logo {
    top: 24px;
    width: 260px;
    max-width: calc(100% - 80px);
  }
  .hero-course {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 467px);
    margin-inline: auto;
    transform: none;
  }
  .hero-course-eyebrow {
    font-size: 22px;
    line-height: 29px;
  }
  .hero-course-title {
    margin-top: 4px;
    font-size: 38px;
    line-height: 50px;
  }
  .hero-course-description {
    margin-top: 12px;
    font-size: 17px;
    line-height: 26px;
  }
  .hero-course-cta {
    gap: 10px;
    margin-top: 22px;
    min-height: 46px;
    padding: 9px 20px;
    font-size: 17px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-bottom: 125px;
  }
  .hero-logo {
    width: 240px;
  }
  .hero-course-link {
    width: 100%;
    max-width: 100%;
  }
  .hero-course-eyebrow {
    font-size: 18px;
    line-height: 26px;
  }
  .hero-course-title {
    max-width: 100%;
    font-size: clamp(22px, 6.9vw, 36px);
    line-height: 1.4;
    white-space: normal;
  }
  .hero-course-title > strong,
  .hero-course-title > span {
    white-space: nowrap;
  }
  .hero-course-description {
    font-size: clamp(12px, 3.5vw, 16px);
    line-height: 24px;
  }
  .hero > .wrap h1 {
    font-size: 26px;
    margin-top: 36px;
    line-height: 1.4;
  }
  .hero-copy {
    margin-top: 30px;
    font-size: 14px;
  }
  .hero-carousel-control--previous {
    left: 12px;
  }
  .hero-carousel-control--next {
    right: 12px;
  }
}

/* Desktop typography follows the supplied PC reference at a readable fixed size. */
@media (min-width: 1101px) {
  .hero-carousel-control--previous {
    left: 500px;
  }
  .hero-carousel-control--next {
    right: 500px;
  }
  .hero-visual {
    min-height: 720px;
  }
  .hero-course {
    width: 523px;
  }
  .hero-course-media {
    width: min(24.322917vw, 467px);
  }
  .hero-course-eyebrow {
    font-size: 18.3px;
    line-height: 26px;
    letter-spacing: -0.025em;
  }
  .hero-course-title {
    margin-top: 7px;
    font-size: 40px;
    line-height: 52px;
    letter-spacing: 0;
  }
  .hero-course-title--stacked {
    line-height: 46px;
  }
  .hero-course-title > strong {
    margin-inline: 2px;
    letter-spacing: -0.01em;
  }
  .hero-course-title > span {
    letter-spacing: 0;
  }
  .hero-course-description {
    margin-top: 12px;
    font-size: 20px;
    line-height: 25px;
  }
  .hero-course-description span {
    white-space: nowrap;
  }
  .hero-course-cta {
    gap: 10px;
    width: 155px;
    height: 46px;
    min-height: 46px;
    margin-top: 24px;
    padding: 0;
    font-size: 15.5px;
    line-height: 24px;
  }
}
@media (max-width: 1100px) {
  .hero-course-description span {
    white-space: normal;
  }
}
@media (max-width: 700px) {
  .hero-course-description {
    font-size: 14px;
    line-height: 1.7;
    text-wrap: pretty;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-course-slide,
  .hero-carousel-control {
    transition: none;
  }
  .hero-course-slide {
    transform: none;
  }
}
