/* Main section container */
.maeveport-capabilities-slider-section {
  --maeveport-experts-notch-depth: 8.9em; /* Desktop/iPad Pro default */
  --maeveport-experts-notch-flat-end: 25%;
  --maeveport-experts-notch-bottom-coord: 41%;
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-color: #000;
  overflow: hidden;
  will-change: transform, opacity, clip-path;
  box-sizing: border-box;
  margin-top: -6em;
  z-index: 2;
  clip-path: polygon(
    0 0,
    var(--maeveport-experts-notch-flat-end) 0,
    var(--maeveport-experts-notch-bottom-coord)
      var(--maeveport-experts-notch-depth),
    100% var(--maeveport-experts-notch-depth),
    100% 100%,
    0 100%
  );
  padding-top: var(--maeveport-experts-notch-depth);
}

/* Title wrapper for main heading */
.maeveport-capabilities-slider-title-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 1.5rem;
}

.maeveport-capabilities-slider-heading {
  font-size: var(--font-size-display-lg);
  font-weight: 300;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 1rem;
}

/* Desktop layout container (hidden on mobile by JS) */
.maeveport-capabilities-slider-desktop-content {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  gap: 3rem;
  padding: 0 2rem;
}

/* Pin wrapper for the scroll-pinned section */
.maeveport-capabilities-slider-pin-wrapper {
  display: flex;
  width: 100%;
  height: 100vh; /* This height will be controlled by ScrollTrigger */
  justify-content: center;
  align-items: center;
}

/* Left column for navigation links */
.maeveport-capabilities-slider-links-col {
  flex: 0 0 300px;
  padding-right: 2rem;
  position: relative;
  align-self: center;
}

.maeveport-capabilities-slider-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.maeveport-capabilities-slider-nav-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-body-md); /* 1rem (16px) */
  font-weight: 300;
  font-family: 'Open Sans', sans-serif;
  text-align: left;
  width: 100%;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.maeveport-capabilities-slider-nav-btn:hover {
  color: #fff;
}

.maeveport-capabilities-slider-nav-btn[aria-current='true'] {
  color: #fff;
  font-weight: 700;
}

/* Right column for image display and text */
.maeveport-capabilities-slider-content-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-height: 400px;
  width: auto;
  gap: 2.5rem;
  margin-left: auto;
  z-index: 2;
  position: relative;
}

.maeveport-capabilities-slider-image-display {
  position: relative;
  width: 350px;
  height: 260px;
  min-width: 220px;
  max-width: 350px;
  min-height: 180px;
  max-height: 260px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.maeveport-capabilities-slider-active-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.12);
}

.maeveport-capabilities-slider-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 2rem;
  max-width: 420px;
  width: 100%;
  height: auto;
  background: #1a1a1a;
  padding: 2rem 2rem;
  border-radius: 10px;
  z-index: 2;
}

.maeveport-capabilities-slider-slide-title {
  font-size: var(--font-size-heading-lg);
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
}

.maeveport-capabilities-slider-paragraph {
  font-size: var(--font-size-body-md);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Image track for background images */
.maeveport-capabilities-slider-image-track-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0; /* Keep behind other content */
}

.maeveport-capabilities-slider-image-track {
  position: absolute;
  width: 100%; /* Will be set by JS based on curve and number of images */
  height: 100%;
}

.maeveport-capabilities-slider-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 200px;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  filter: blur(16px) brightness(0.5) grayscale(0.2);
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
  border-radius: 4px;
  pointer-events: none;
}

/* When a background image is active (centered), override the blur and brightness */
.maeveport-capabilities-slider-bg-image.active {
  opacity: 0.18;
  filter: blur(2px) brightness(0.85) grayscale(0);
}

/* Mobile specific styles (managed by JS for content, but hide desktop by default) */
.maeveport-capabilities-slider-mobile-content {
  display: none; /* Hidden by default, shown by JS on mobile */
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.maeveport-capabilities-slider-mobile-slide {
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
}

.maeveport-capabilities-slider-mobile-slide img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.maeveport-capabilities-slider-mobile-slide h3 {
  font-size: var(--font-size-heading-lg);
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.2rem;
}

.maeveport-capabilities-slider-mobile-slide p {
  font-size: var(--font-size-body-md);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .maeveport-capabilities-slider-section {
    height: 140vh;
  }
}

@media (min-width: 992px) and (max-width: 1299.98px) {
  .maeveport-capabilities-slider-section {
    --maeveport-experts-notch-depth: 8.9em;
    height: auto;
    min-height: 0;
    padding: var(--maeveport-experts-notch-depth) 20px 60px 20px;
    margin-top: -4em;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .maeveport-capabilities-slider-section {
    --maeveport-experts-notch-depth: 6.8em;
    height: auto;
    min-height: 0;
    padding: var(--maeveport-experts-notch-depth) 20px 60px 20px;
    margin-top: -4em;
  }
}

@media screen and (max-width: 767.98px) {
  .maeveport-capabilities-slider-section {
    --maeveport-experts-notch-depth: 4.375em;
    --maeveport-experts-notch-flat-end: 256px;
    --maeveport-experts-notch-bottom-coord: 326px;
    margin-top: -2.5em;
    height: auto;
    min-height: 0;
    padding: 80px 20px;
  }
}

@media (max-width: 1299.98px) {
  .maeveport-capabilities-slider-mobile-slide h3 {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1300px) {
  .maeveport-capabilities-slider-section {
    height: auto;
  }
  .maeveport-capabilities-slider-scroll-spacer {
    display: block;
    height: 1200px;
    width: 100%;
  }
  .maeveport-capabilities-slider-nav-btn {
    font-size: var(--font-size-body-md); /* 1rem (16px) */
    font-weight: 300;
  }
}

.maeveport-capabilities-slider-scroll-spacer {
  display: none;
}

/* Hide the editable slides container on the frontend */
.maeveport-capabilities-slider-editable-slides {
  display: none !important;
}

/* Additional considerations for layout */
.maeveport-capabilities-slider-section {
  /* clip-path removed for standard rectangle background */
}

.maeveport-capabilities-slider-pin-area {
  margin-top: 0;
  padding-top: 0;
  /* Vertically center in viewport, offset for sticky header */
  position: relative;
  top: calc(
    50vh - 50% - 36.5px
  ); /* 36.5px = 73px/2, so center minus half header height */
}
