
/* Wrapper container for the stacking cards section */
.stack-wrapper {
  padding: 5vh 0;
  background: #fff;
}

/* Individual card container with sticky positioning */
.stack-card {
  position: sticky;
  top: 10vh; /* Adjust how far from the top it stops */
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Main card content with flexbox layout for side-by-side layout */
.stack-content {
  width: 90%;
  max-width: 1100px;
  height: 100%;
  background: #1d639b; /* Slightly darker shade */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
}

/* Text content section */
.stack-text {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

/* Step counter/label styling */
.stack-step {
  color: #fff; /* Your brand pink */
  font-weight: 900;
  font-size: 1.2rem;
}

/* Heading styling */
.stack-text h2 {
  font-size: 3rem;
  margin: 15px 0;
  color: #fff;
}

/* Paragraph styling with reduced opacity */
.stack-text p {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Image container */
.stack-img-box {
  flex: 1.2;
  background: #000;
}

/* Image styling with cover fit and opacity */
.stack-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Individual card stacking offsets for visual depth */
.card-1 {
  top: 10vh;
}
.card-2 {
  top: 13vh;
}
.card-3 {
  top: 16vh;
}

/* Mobile responsiveness for screens 768px and below */
@media (max-width: 768px) {
  .stack-content {
    flex-direction: column;
    width: 100%;
  }
  .stack-card {
    height: 52vh;
    padding: 14px;
  }
  .stack-text {
    padding: 20px;
  }
}
