*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #00529c;
  --primary-light: #4d86b8;
  --white: #ffffff;
  --card-bg: #ffffff;
  --text-dark: #00529c;
  --text-mid: #3b6f9e;
  --slider-shell-width: 1080px;
  --desktop-active-extra: 56px;
  --card-height: 420px;
  --card-active-height: 480px;
  --arrow-size: 46px;
  --nav-offset: -22px;
  --card-radius: 4px;
}

.story-section {
  padding: 0px 16px 80px;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo-area {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.logo-text {
  line-height: 1;
  font-family: var(--font-manrope);
}

.logo-text .nha,
.logo-text .section-title {
  font-family: var(--font-manrope);
  font-size: clamp(1.7rem, 4vw, 54px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-text .section-title {
  display: block;
  margin-top: 4px;
}

.description {
  font-family: var(--font-manrope);
  border-top: 1px solid rgba(0, 82, 156, 0.22);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.9;
  padding-top: 20px;
  text-align: center;
}

.slider-outer {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

.slider-stage {
  max-width: var(--slider-shell-width);
  /* padding-inline: 34px; */
  isolation: isolate;
  width: 100%;
}

.slider-stage::before,
.slider-stage::after {
  content: none;
}

.showcase-swiper {
  overflow: hidden;
  width: 100%;
}

.showcase-swiper .swiper-wrapper {
  align-items: center;
  min-height: calc(var(--card-active-height) + 8px);
}

.showcase-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
}

.card {
  background: var(--card-bg);
  /* border: 1px solid rgba(0, 82, 156, 0.12); */
  border-radius: var(--card-radius);
  box-shadow: 0 12px 28px rgba(0, 82, 156, 0.12);
  display: flex;
  flex-direction: column;
  height: var(--card-height);
  overflow: hidden;
  position: relative;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    height 0.15s ease,
    opacity 0.35s ease;
  width: 100%;
}

.card::after {
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.35s ease;
  z-index: 4;
}

.showcase-swiper .swiper-slide-active .card {
  height: var(--card-active-height);
}

.showcase-swiper .swiper-slide:hover .card {
  box-shadow: 0 18px 36px rgba(0, 82, 156, 0.16);
}

.showcase-swiper .swiper-slide-prev .card,
.showcase-swiper .swiper-slide-next .card {
  opacity: 0.72;
}

.showcase-swiper .swiper-slide-prev .card::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.24) 100%);
  opacity: 1;
}

.showcase-swiper .swiper-slide-next .card::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.24) 100%);
  opacity: 1;
}

.card-image {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.card-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  width: 100%;
}

.card-overlay {
  background: rgba(0, 82, 156, 0.9);
  backdrop-filter: blur(4px);
  bottom: 0;
  left: 0;
  padding: 16px 16px 18px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.showcase-swiper .swiper-slide-active .card-image:hover .card-overlay {
  transform: translateY(0);
}

.overlay-title {
  font-family: var(--font-manrope);
  color: var(--white);
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.overlay-desc {
  font-family: var(--font-manrope);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin: 0;
}

.card-title-static {
  font-family: var(--font-manrope);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.98) 100%);
  bottom: 0;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  inset-inline: 0;
  letter-spacing: 0.05em;
  opacity: 0;
  padding: 24px;
  position: absolute;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: opacity 0.25s ease;
  z-index: 2;
}

.showcase-swiper .swiper-slide-active .card-title-static {
  opacity: 1;
}

.showcase-swiper .swiper-slide-active .card-image:hover .card-title-static {
  opacity: 0;
}

.card-sig {
  color: var(--primary);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.card-bookmark svg {
  fill: var(--primary);
  height: 12px;
  opacity: 0.8;
  width: 12px;
}

.nav-btn {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(0, 82, 156, 0.32);
  border-radius: unset;
  color: var(--primary);
  display: inline-flex;
  height: var(--arrow-size);
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  width: var(--arrow-size);
  z-index: 5;
}

.nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 82, 156, 0.22);
  color: var(--white);
}

/* .nav-btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(0, 82, 156, 0.25);
} */

.nav-btn-prev {
  left: 0;
  /* left: var(--nav-offset); */
}

.nav-btn-next {
  right: 0;
  /* right: var(--nav-offset); */
}

.nav-btn-prev svg {
  transform: rotate(180deg);
}

.nav-btn-prev svg path {
  stroke: var(--primary);
}

.nav-btn-prev:hover svg path {
  stroke: #ffffff;
}

.nav-btn-next svg path {
  stroke: var(--primary);
}

.nav-btn-next:hover svg path {
  stroke: #ffffff;
}

.showcase-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.showcase-pagination .swiper-pagination-bullet {
  background: var(--primary-light);
  border: 0;
  cursor: pointer;
  height: 7px;
  margin: 0;
  opacity: 1;
  padding: 0;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
  width: 7px;
}

.showcase-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.45);
}

@media (min-width: 1200px) {
  :root {
    --card-height: 460px;
    --card-active-height: 530px;
    --arrow-size: 48px;
    --nav-offset: -20px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --slider-shell-width: 100%;
    --card-height: 380px;
    --card-active-height: 440px;
    --arrow-size: 42px;
    --nav-offset: 4px;
  }

  .section {
    min-height: auto;
  }

  .left {
    margin-inline: auto;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .slider-stage {
    /* overflow: hidden; */
    padding-inline: calc(var(--desktop-active-extra) / 2);
  }

  .showcase-swiper {
    overflow: visible;
  }

  .showcase-swiper .swiper-slide {
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    transition:
      transform 0.45s ease,
      opacity 0.45s ease,
      visibility 0s linear 0.45s;
    z-index: 1;
    visibility: hidden;
  }

  .showcase-swiper .swiper-slide-prev,
  .showcase-swiper .swiper-slide-next,
  .showcase-swiper .swiper-slide-active {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    visibility: visible;
  }

  .showcase-swiper .swiper-slide .card {
    transition:
      box-shadow 0.35s ease,
      height 0.15s ease,
      width 0.35s ease,
      margin 0.35s ease,
      filter 0.35s ease,
      opacity 0.35s ease;
  }

  .showcase-swiper .swiper-slide-active {
    z-index: 3;
  }

  .showcase-swiper .swiper-slide-active .card {
    margin-inline: calc(var(--desktop-active-extra) / -2);
    width: calc(100% + var(--desktop-active-extra));
  }

  .showcase-swiper .swiper-slide-prev {
    transform: translateX(calc(var(--desktop-active-extra) / -2));
  }

  .showcase-swiper .swiper-slide-next {
    transform: translateX(calc(var(--desktop-active-extra) / 2));
  }

  /* .showcase-swiper .swiper-slide-prev .card-title-static,
  .showcase-swiper .swiper-slide-next .card-title-static {
    opacity: 0.68;
  } */
}

@media (max-width: 767.98px) {
  :root {
    --card-height: 330px;
    --card-active-height: 380px;
    --arrow-size: 36px;
    --nav-offset: 0;
    --card-radius: 4px;
  }

  body {
    overflow-x: hidden;
  }

  .section {
    padding-bottom: 32px;
    padding-top: 24px;
  }

  .slider-outer {
    gap: 22px;
    overflow: hidden;
    padding-bottom: 16px;
  }

  .showcase-swiper {
    overflow: unset;
  }

  .showcase-swiper .swiper-wrapper {
    min-height: calc(var(--card-active-height) + 8px);
  }

  .overlay-title {
    font-size: 0.9rem;
  }

  .overlay-desc {
    font-size: 0.68rem;
  }

  .nav-btn {
    font-size: 0.78rem;
  }
}


@media (min-width: 768px) {
    .story-section {
        padding: 64px 32px 100px;
    }
}

@media (min-width: 1200px) {
    .story-section {
        padding: 48px 80px 120px;
    }
}

@media (max-width: 575.98px) {
    .story-section {
        padding-left: 0;
        padding-right: 0;
    }
}

.brands-section {
  overflow: hidden;
  padding: 0px 16px 40px;
}

.brands-section__inner {
  margin: 0 auto;
  max-width: 1440px;
}

.brands-section__title {
  font-family: var(--font-manrope);
  font-size: clamp(1.9rem, 3vw, 48px);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 28px;
  text-align: center;
}

.brands-marquee {
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.brands-marquee::before,
.brands-marquee::after {
  content: "";
  inset-block: 0;
  pointer-events: none;
  position: absolute;
  width: min(10vw, 96px);
  z-index: 2;
}

.brands-marquee::before {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  left: 0;
}

.brands-marquee::after {
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  right: 0;
}

.brands-marquee__track {
  animation: brands-marquee-scroll 28s linear infinite;
  display: flex;
  width: max-content;
}

.brands-marquee:hover .brands-marquee__track {
  animation-play-state: paused;
}

.brands-marquee__group {
  display: flex;
  flex-shrink: 0;
  min-width: max-content;
  padding-right: 16px;
}

.brands-marquee__item {
  align-items: center;
  display: flex;
  height: 112px;
  justify-content: center;
  width: 241px;
  height: 100px;
}

.brands-marquee__item img {
  width: 190px;
  height: 100px;
}

@keyframes brands-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee__track {
    animation: none;
  }
}

@media (min-width: 768px) {
  .brands-section {
    padding: 48px 32px 112px;
  }

  .brands-section__title {
    margin-bottom: 36px;
  }

  .brands-marquee__group {
    padding-right: 20px;
  }
}

@media (min-width: 1200px) {
  .brands-section {
    padding: 64px 80px 120px;
  }
}

@media (max-width: 767.98px) {
  .brands-marquee__track {
    animation-duration: 22s;
  }

  .brands-marquee__item {
    border-radius: 20px;
    width: unset;
  }
}

/* Prevent horizontal scrollbar on homepage when the wider job popup is placed
   near the viewport edge. `clip` keeps sticky/fixed positioning behavior. */
body {
    overflow-x: clip;
}

.recruitment-safety-banner {
  padding: 0 0 56px;
}

.recruitment-safety-banner__inner {
  margin: 0 auto;
  max-width: 1440px;
}

.recruitment-safety-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .recruitment-safety-banner {
    padding: 0 0px 72px;
  }
}

@media (min-width: 1200px) {
  .recruitment-safety-banner {
    padding: 0 80px 96px;
  }
}
