/* Sticky Scroll Cards Module */
.dynamic-scroll-cards {
  padding: 5rem 0 0;
}

.scroll-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.left-sticky-section {
  position: sticky;
  top: 10rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1;
}

.dynamic-scroll-cards .module-title.h2 {
  margin-bottom: 5rem;
}

.sticky-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sticky-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sticky-image.wide-image {
  position: relative;
  left: -25%;
  max-width: 125%;
  width: 125%;
}
.right-scroll-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0;
}

.scroll-card {
  position: relative;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 0;
  padding-bottom: 10rem;
  opacity: 0.63;
}
.scroll-card:last-child:before {display:none;}
.scroll-card:before {
  content: '';
  position: absolute;
  top: 3rem;
  bottom: -5rem;
  left: -2rem;
  width: 2px;
  border-left: 2px dashed #3A68CC;
  opacity: 0.5;
}
.scroll-card:after {
  content: '';
  position: absolute;
  top: 3rem;
  left: -2.4rem;
  width: 1rem;
  height: 1rem;
  background: #0836A3;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 1;
}
.scroll-card.is-active:before,
.scroll-card.is-active:after {
  opacity: 1;
}
.scroll-card.is-active {
  opacity: 1;
}
.scroll-card:last-child {
  padding-bottom: 7rem;
}
.card-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.dynamic-scroll-cards .card-description {
  line-height: 1.6;
}

/* Hide images in right-side scroll cards */
.card-image {
  display: none;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}
@media screen and (min-width: 768px) {
/* Ensure Sticky Works Across Browsers */
  @supports (position: sticky) {
    .left-sticky-section {
      position: -webkit-sticky;
      position: sticky;
    }
  }
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .scroll-container {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    min-height: 100vh;
  }  

  .module-title.h2 {
    margin-bottom: 2rem;
  }
  .left-sticky-section {
    top: 10rem;
  }
  .scroll-card {
    padding-bottom: 15rem;
    min-height: 6rem;
  }
  .sticky-image.wide-image {
    left: 0;
    max-width: 100%;
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .scroll-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: flex-start;
    min-height: 100vh;
  }  

  .left-sticky-section {
    position: relative;
    top: 0;
    z-index: 1;
  }
  .right-scroll-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
  }
  /* Hide sticky image on mobile */
  .sticky-image {
    display: none;
  }

  /* Show card images on mobile */
  .card-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    object-fit: cover;
  }

  /* Mobile cards always full opacity */
  .scroll-card {
    opacity: 1;
    padding: 0;
    padding-bottom: 2rem;
    min-height: auto;
  }

  /* Mobile active state */
  .scroll-card.is-active {
    opacity: 1;
  }

  /* Mobile timeline indicators */
  .scroll-card:before,
  .scroll-card:after {
    opacity: 0.5;
  }

  .scroll-card.is-active:before,
  .scroll-card.is-active:after {
    opacity: 0.8;
  }
}




