html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

nav a,
.btn-apply,
.btn-apply-banner,
.language-option,
.track-chip-button,
.mge-admin-entry,
footer a,
.faq-item button {
  cursor: pointer;
}

nav a {
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  transform: translateY(-1px);
}

.btn-apply {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.btn-apply:hover,
.btn-apply:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 28px rgba(242, 111, 33, 0.28);
}

.btn-apply-banner {
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    opacity 0.22s ease;
}

.btn-apply-banner:hover,
.btn-apply-banner:focus-visible {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 16px 26px rgba(242, 111, 33, 0.26));
}

.mge-image-hero {
  width: 100%;
  background: #ffffff;
  padding: 0;
}

.mge-image-hero-inner {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.mge-hero-banner-image,
.mge-footer-image {
  display: block;
  width: 100%;
  height: auto;
}

.mge-hero-banner-image {
  object-fit: var(--mge-hero-fit, cover);
  object-position: var(--mge-hero-position, center center);
  transform: scale(var(--mge-hero-desktop-scale, 1));
  transform-origin: var(--mge-hero-position, center center);
}

.mge-hero-apply-link {
  position: absolute;
  left: var(--mge-apply-desktop-left, 32.5%);
  top: var(--mge-apply-desktop-top, 77.8%);
  z-index: 4;
  display: block;
  width: var(--mge-apply-desktop-width, 12.4%);
  --mge-apply-active-scale: var(--mge-apply-desktop-scale, 1);
  transform: translate(-50%, -50%) scale(var(--mge-apply-active-scale));
  border-radius: 999px;
  filter: drop-shadow(0 8px 0 rgba(0, 23, 90, 0.45));
  animation: mge-apply-bob 1.35s ease-in-out infinite;
}

.mge-image-hero.mge-apply-hidden .mge-hero-apply-link {
  display: none;
}

.mge-image-hero .btn-apply-banner {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  animation: mge-apply-flash 1.1s ease-in-out infinite;
}

.mge-hero-apply-link::before {
  content: "";
  position: absolute;
  inset: -9%;
  border-radius: inherit;
  background: rgba(0, 153, 255, 0.26);
  box-shadow: 0 0 0 0 rgba(0, 174, 255, 0.5);
  animation: mge-apply-ring 1.1s ease-out infinite;
  pointer-events: none;
}

.mge-hero-apply-link:hover,
.mge-hero-apply-link:focus-visible {
  transform: translate(-50%, -50%) scale(calc(var(--mge-apply-active-scale) * 1.06));
  outline: none;
}

@keyframes mge-apply-flash {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2) saturate(1.15);
  }
}

@keyframes mge-apply-bob {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(var(--mge-apply-active-scale));
  }
  50% {
    transform: translate(-50%, -54%) scale(calc(var(--mge-apply-active-scale) * 1.04));
  }
}

@keyframes mge-apply-ring {
  0% {
    opacity: 0.85;
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(0, 174, 255, 0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
    box-shadow: 0 0 0 16px rgba(0, 174, 255, 0);
  }
}

@media (max-width: 768px) {
  .mge-hero-banner-image {
    transform: scale(var(--mge-hero-mobile-scale, 1));
  }

  .mge-hero-apply-link {
    left: var(--mge-apply-mobile-left, 32.4%);
    top: var(--mge-apply-mobile-top, 78.5%);
    width: var(--mge-apply-mobile-width, 13.8%);
    --mge-apply-active-scale: var(--mge-apply-mobile-scale, 1);
    height: auto;
    min-width: 60px;
    min-height: 30px;
    border-radius: 999px;
    filter: none;
  }

  .mge-image-hero .btn-apply-banner {
    opacity: 1;
  }

  .mge-hero-apply-link::before {
    inset: 0;
    background: rgba(0, 153, 255, 0.2);
    box-shadow: 0 0 0 0 rgba(0, 174, 255, 0.42);
  }
}

.career-image-card {
  position: relative;
  opacity: 1 !important;
  transform: none;
  transition: transform 0.3s ease;
}

.career-image-card:hover {
  transform: translateY(-6px);
}

.career-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #tracks .container > .grid {
    gap: 16px;
  }
}

.mge-image-footer {
  position: relative;
  width: 100%;
  background: #004ac6;
}

.mge-footer-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mge-footer-social {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 12px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mge-footer-social:hover,
.mge-footer-social:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.mge-footer-facebook {
  left: 23.8%;
  top: 88.8%;
  width: 24.2%;
  height: 8.6%;
}

.mge-footer-linkedin {
  left: 53.8%;
  top: 88.8%;
  width: 28.8%;
  height: 8.6%;
}

@media (max-width: 768px) {
  .mge-footer-stage {
    width: 100%;
    margin-left: 0;
  }

  .mge-footer-facebook {
    left: 0;
    top: 86.5%;
    width: 50%;
    height: 10.5%;
  }

  .mge-footer-linkedin {
    left: 50%;
    top: 86.5%;
    width: 50%;
    height: 10.5%;
  }
}

footer a {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  transform: translateY(-1px);
}

#tracks,
#timeline,
#benefits,
#candidate,
#hiring-process {
  opacity: 1 !important;
}

.masan-page section,
.masan-page footer {
  scroll-margin-top: 90px;
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 0.78s ease,
    transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal[data-reveal-direction="left"] {
  transform: translate3d(-46px, 0, 0);
}

.scroll-reveal[data-reveal-direction="right"] {
  transform: translate3d(46px, 0, 0);
}

.scroll-reveal[data-reveal-direction="zoom"] {
  transform: translate3d(0, 28px, 0) scale(0.97);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.timeline-image {
  transform-origin: center bottom;
  animation: timeline-image-float 3.6s ease-in-out infinite;
  will-change: transform;
}

.timeline:nth-child(2) .timeline-image {
  animation-delay: 0.25s;
}

.timeline:nth-child(3) .timeline-image {
  animation-delay: 0.5s;
}

.icon-rocket {
  opacity: 1 !important;
  animation: rocket-float 3.2s ease-in-out infinite;
}

@keyframes timeline-image-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.015);
  }
}

@keyframes rocket-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

[data-mobile-menu].is-open {
  max-height: 520px !important;
  opacity: 1 !important;
}

.lang-switcher {
  position: relative;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  border: 1px solid rgba(0, 85, 255, 0.15);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 23, 55, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.lang-switcher.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  color: #001737;
}

.language-option:hover {
  background: #eef5ff;
}

.track-chip {
  position: relative;
  display: inline-block;
}

.track-chip-button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #0055ff;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.track-chip-button:hover,
.track-chip-button:focus-visible,
.track-chip.is-open .track-chip-button {
  background: #0c44d8;
  transform: translateY(-1px);
  outline: none;
}

.track-chip-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 240px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 23, 55, 0.18);
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.track-chip-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateX(-50%) rotate(45deg);
}

.track-chip[data-align="left"] .track-chip-tooltip {
  left: 0;
  transform: translateY(8px);
}

.track-chip[data-align="left"] .track-chip-tooltip::after {
  left: 26px;
  transform: rotate(45deg);
}

.track-chip:hover .track-chip-tooltip,
.track-chip:focus-within .track-chip-tooltip,
.track-chip.is-open .track-chip-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.track-chip[data-align="left"]:hover .track-chip-tooltip,
.track-chip[data-align="left"]:focus-within .track-chip-tooltip,
.track-chip[data-align="left"].is-open .track-chip-tooltip {
  transform: translateY(0);
}

.track-chip-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #3b82f6;
  margin-top: 2px;
}

.faq-item.faq-open .remixicon {
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding-right: 2rem;
}

.faq-answer.is-open {
  max-height: 800px;
  opacity: 1;
  padding-bottom: 1rem;
}

.faq-answer p,
.faq-answer a {
  color: #183153;
  font-size: 14px;
  line-height: 1.7;
}

.faq-answer a {
  text-decoration: underline;
}

.mge-admin-entry-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 20px 14px;
}

.mge-admin-entry {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.mge-admin-entry:hover,
.mge-admin-entry:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline-image {
    animation: none;
  }
}

@media (max-width: 768px) {
  .language-menu {
    right: auto;
    left: 0;
  }

  .track-chip-tooltip {
    left: 0;
    max-width: min(240px, calc(100vw - 56px));
    transform: translateY(8px);
  }

  .track-chip-tooltip::after {
    left: 26px;
    transform: rotate(45deg);
  }

  .track-chip:hover .track-chip-tooltip,
  .track-chip:focus-within .track-chip-tooltip,
  .track-chip.is-open .track-chip-tooltip {
    transform: translateY(0);
  }

  .faq-answer {
    padding-right: 0;
  }

  .faq-answer.is-open {
    max-height: 800px;
  }
}
