/**
 * Career extra section (culture slider) – layout and Swiper overrides.
 */

.aptly-culture-section {
  background: #000000;
  color: #ffffff;
  padding-top: 100px;
  padding-bottom: 100px;
  overflow: hidden;
}

.aptly-culture-content {
  max-width: 1200px;
  margin: 0 auto 24px;
  text-align: center;
  padding: 0 1rem;
}

.aptly-culture-heading {
  font-size: clamp(22px, 2.2vw, 40px);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #ffffff;
}
.aptly-culture-text {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
  color: #a1a1aa;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
}

.aptly-culture-slider {
  width: 100%;
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.aptly-culture-slider .swiper-wrapper {
  align-items: center;
}

.aptly-culture-slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.aptly-culture-slider .slide-inner {
  width: 100%;
  aspect-ratio: 466 / 312;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  transform-origin: center center;
}

.aptly-culture-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aptly-culture-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (min-width: 1024px) {
  .aptly-culture-slider .swiper-slide {
    opacity: 0;
    pointer-events: none;
  }

  .aptly-culture-slider .swiper-slide-active,
  .aptly-culture-slider .swiper-slide-prev,
  .aptly-culture-slider .swiper-slide-next {
    opacity: 1;
    pointer-events: auto;
  }

  .aptly-culture-slider .slide-inner {
    transform: scale(0.85);
  }

  .aptly-culture-slider .slide-overlay {
    opacity: 1;
  }

  .aptly-culture-slider .swiper-slide-prev .slide-inner {
    transform-origin: left center;
  }

  .aptly-culture-slider .swiper-slide-next .slide-inner {
    transform-origin: right center;
  }

  .aptly-culture-slider .swiper-slide-active {
    z-index: 10;
  }

  .aptly-culture-slider .swiper-slide-active .slide-inner {
    transform: scale(1.1);
    transform-origin: center center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  }

  .aptly-culture-slider .swiper-slide-active .slide-overlay {
    opacity: 0;
  }
}

@media (min-width: 1600px) {
  .aptly-culture-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .aptly-culture-content {
    max-width: 1400px;
    margin-bottom: 72px;
    padding: 0 1.5rem;
  }

  .aptly-culture-heading {
    font-size: clamp(26px, 2.5vw, 44px);
    margin-bottom: 28px;
  }

  .aptly-culture-text {
    font-size: clamp(15px, 1.1vw, 17px);
    max-width: 900px;
  }
}

@media (max-width: 1023px) {
  .aptly-culture-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .aptly-culture-slider .slide-inner {
    transform: none !important;
    aspect-ratio: 3 / 2;
  }

  .aptly-culture-slider .slide-overlay {
    display: none;
  }

  .aptly-culture-slider .swiper-slide {
    opacity: 1;
  }
}
