/* Full-bleed background for section (layout only) */
.full-bleed-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* No background color here */
}


.feature-section-wrapper {
  /* Remove padding here, handled by .container */
  background-color: #fff;
}

.feature-section {
  display: flex;
  justify-content: space-between;
  gap: 40px; /* Updated from 60px */
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.feature-section__image-column,
.feature-section__content-column {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
}

/* Image on Right Layout */
.feature-section--right .feature-section__image-column {
  order: 2;
}

.feature-section--right .feature-section__content-column {
  order: 1;
}
.feature-section__image-wrapper {
  aspect-ratio: 301/256;
  padding: 60px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  /* background-image: url("../../images/cibo-dot-pattern.svg"); */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.feature-section__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  border-radius: 24px;
  aspect-ratio: 301/256;
}

.feature-section__content-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-section__sub-title {
  display: block;
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 125% */
  text-transform: uppercase;
/*   margin-bottom: 12px; */
}

.feature-section__title {
  font-family: "Roboto Slab";
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: 46px; /* 115% */
  margin-bottom: 20px;
}

.feature-section__description {
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 26px; /* 162.5% */
  margin-bottom: 30px;
}

.feature-section__cta .cta-button {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
}

/* .feature-section__cta .cta-button:hover {
  opacity: 0.8;
} */

/* Scroll Animation Styles */
.feature-section-wrapper .container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-section-wrapper.animate-in .container {
  opacity: 1;
  transform: translateY(0);
}

.feature-section__image-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0s, transform 0.8s ease-out 0s;
}

.feature-section-wrapper.animate-in .feature-section__image-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.feature-section__image-wrapper img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

.feature-section-wrapper.animate-in .feature-section__image-wrapper img {
  opacity: 1;
  transform: translateY(0);
}

.feature-section__content-column {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0s, transform 0.8s ease-out 0s;
}

.feature-section-wrapper.animate-in .feature-section__content-column {
  opacity: 1;
  transform: translateY(0);
}

/* Safari-specific fixes for image animations */
@supports (-webkit-appearance: none) {
  .feature-section__image-wrapper {
    /* Ensure proper transform behavior in Safari */
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -webkit-transition: opacity 0.8s ease-out 0s, -webkit-transform 0.8s ease-out 0s, transform 0.8s ease-out 0s;
    transition: opacity 0.8s ease-out 0s, transform 0.8s ease-out 0s;
  }
  
  .feature-section-wrapper.animate-in .feature-section__image-wrapper {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  
  .feature-section__image-wrapper img {
    /* Ensure proper transform behavior in Safari */
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -webkit-transition: opacity 0.8s ease-out 0.5s, -webkit-transform 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    /* Force hardware acceleration for better Safari performance */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }
  
  .feature-section-wrapper.animate-in .feature-section__image-wrapper img {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  
  /* Alternative approach: Use margin-top instead of transform for Safari */
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    .feature-section__image-wrapper {
      transform: none;
      -webkit-transform: none;
      margin-top: 30px;
      transition: opacity 0.8s ease-out 0s, margin-top 0.8s ease-out 0s;
    }
    
    .feature-section-wrapper.animate-in .feature-section__image-wrapper {
      transform: none;
      -webkit-transform: none;
      margin-top: 0;
    }
    
    .feature-section__image-wrapper img {
      transform: none;
      -webkit-transform: none;
      margin-top: 30px;
      transition: opacity 0.8s ease-out 0.5s, margin-top 0.8s ease-out 0.5s;
    }
    
    .feature-section-wrapper.animate-in .feature-section__image-wrapper img {
      transform: none;
      -webkit-transform: none;
      margin-top: 0;
    }
  }
}

/* Responsive Styles */
@media (max-width: 767px) {
  .feature-section {
    flex-direction: column;
    gap: 24px;
  }

  .feature-section--right .feature-section__image-column,
  .feature-section--right .feature-section__content-column {
    order: unset; /* Reset order for stacking */
  }
} 

/* Home page only - Content Feature parallax */
.page-home .feature-section-wrapper {
  position: relative !important;
  z-index: 100 !important;
}