/* Scrolling Stacking Slider Assets CSS */

.scrolling-slider-outer-wrapper {
  padding: 10px;
  width: 100%;
  position: relative;
  transition: background-color 0.3s ease;
}

.scrolling-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px; /* Spacings between cards */
}

/* Stacking Card Base Styling */
.scrolling-slider-card {
  position: sticky;
  top: 80px; /* Default sticky top - overridden by Elementor styling settings */
  background-color: #ffffff;
  border-radius: 32px;

  /* 10px Padding inside the card container */
  padding: 10px;

  /* Layered Soft Shadow and Premium Outline */
  /* box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.1); */
  border: 1px solid rgba(255, 255, 255, 0.6);

  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: stretch;

  /* Initial State for Scroll Reveal (Intersection Observer) */
  opacity: 0;
  transform: translateY(60px);

  /* Transition for smooth scroll reveal entry */
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  transform-origin: center top;
}

/* Revealed State via Intersection Observer */
.scrolling-slider-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disables transform transitions during active stacking to prevent scroll stutter */
.scrolling-slider-card.stack-active {
  transition: box-shadow 0.4s ease;
}

/* CSS Fallback z-indexing for stacking deck */
.scrolling-slider-card:nth-child(1) {
  z-index: 1;
}
.scrolling-slider-card:nth-child(2) {
  z-index: 2;
}
.scrolling-slider-card:nth-child(3) {
  z-index: 3;
}
.scrolling-slider-card:nth-child(4) {
  z-index: 4;
}
.scrolling-slider-card:nth-child(5) {
  z-index: 5;
}
.scrolling-slider-card:nth-child(6) {
  z-index: 6;
}
.scrolling-slider-card:nth-child(7) {
  z-index: 7;
}
.scrolling-slider-card:nth-child(8) {
  z-index: 8;
}
.scrolling-slider-card:nth-child(9) {
  z-index: 9;
}
.scrolling-slider-card:nth-child(10) {
  z-index: 10;
}

/* Grid Layouts inside Card */
.card-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Default: Image on left (1fr), Text on right (1.2fr) */
  width: 100%;
}

.scrolling-slider-card:nth-child(even) .card-content-wrapper {
  grid-template-columns: 1.2fr 1fr; /* Default even child: Text on left (1.2fr), Image on right (1fr) */
}

/* Column 1: Image container */
.card-image-col {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  order: 1;
}

.layout-force-left .card-image-col {
  border-top-left-radius: 24px !important;
  border-bottom-left-radius: 24px !important;
}

.layout-force-right .card-image-col {
  border-top-right-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}

.card-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Concentric border radius matching card outer curve (32px - 10px = 22px) on outer left side, 0 on right */
  border-radius: 22px 0 0 22px;

  /* GPU acceleration for smooth scrolling parallax */
  will-change: transform;
  transform: translateY(40px) scale(1.15); /* Start translated down slightly */
  transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* White Blend Parallax Gradient Overlay (Left-aligned images fade on the right) */
.scrolling-slider-card .card-image-col::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Adjust image border radius and overlay direction based on alignment settings */
.scrolling-slider-card.layout-alternate-even .card-image-col img,
.scrolling-slider-card.layout-force-right .card-image-col img {
  border-radius: 0 22px 22px 0;
}

.scrolling-slider-card.layout-alternate-even .card-image-col::after,
.scrolling-slider-card.layout-force-right .card-image-col::after {
  right: auto;
  left: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.scrolling-slider-card.layout-force-left .card-image-col img {
  border-radius: 22px 0 0 22px;
}

.scrolling-slider-card.layout-force-left .card-image-col::after {
  right: 0;
  left: auto;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.card-info-col {
  padding: 40px 50px; /* Adjusted to account for card's 10px padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
  background-color: #ffffff;
}

/* Dynamic layouts based on alignment settings */
.scrolling-slider-card.layout-alternate-even .card-content-wrapper,
.scrolling-slider-card.layout-force-right .card-content-wrapper {
  grid-template-columns: 1.2fr 1fr; /* Text on left (1.2fr), Image on right (1fr) */
}

.scrolling-slider-card.layout-alternate-even .card-image-col,
.scrolling-slider-card.layout-force-right .card-image-col {
  order: 2;
}

.scrolling-slider-card.layout-alternate-even .card-info-col,
.scrolling-slider-card.layout-force-right .card-info-col {
  order: 1;
}

.scrolling-slider-card.layout-force-left .card-content-wrapper {
  grid-template-columns: 1fr 1.2fr; /* Image on left (1fr), Text on right (1.2fr) */
}

.scrolling-slider-card.layout-force-left .card-image-col {
  order: 1;
}

.scrolling-slider-card.layout-force-left .card-info-col {
  order: 2;
}

/* Typography styles */
.card-info-col h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #2d3440 !important;
  font-family: "Inter", Sans-serif;
}

.card-info-col .description {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 25px;
  color: #64748b;
  font-weight: 500;
  font-family: "Inter", Sans-serif;
}

.card-info-col .description p {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
  color: #64748b;
}

.card-info-col .description p:last-child {
  margin-bottom: 0;
}

/* Bullet list styles */
.bullet-list,
.card-info-col .description ul {
  list-style: none;
  margin-top: 15px;
  margin-bottom: 25px;
  padding: 0;
}

.bullet-list li,
.card-info-col .description li {
  position: relative;
  padding-left: 20px;
  font-family: "Inter", Sans-serif;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #64748b; /* Matches the text color in the screenshot */
}

/* Standard round bullet point */
.bullet-list li::before,
.card-info-col .description li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: -1px;
  font-size: 16px;
  font-weight: 500;
  color: #64748b; /* Matches bullet dot color in screenshot */
}

/* Button Link Styling */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 8px; /* Rounded corners as in screenshot (not fully pill) */
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(15, 95, 216, 0.2);
  border: none;
}

.card-btn:hover {
  transform: translateY(-2px);
}

.card-btn:active {
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 991px) {
  .scrolling-slider-outer-wrapper {
    padding: 10px;
  }

  .scrolling-slider-card {
    min-height: auto;
    padding: 10px;
  }

  .card-content-wrapper {
    grid-template-columns: 1fr !important;
  }

  .card-image-col {
    order: 1 !important;
    height: 320px;
    min-height: auto;
  }

  .card-image-col img {
    transform: translateY(20px) scale(1.1);
    border-radius: 12px;
  }

  .scrolling-slider-card .card-image-col::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .card-info-col {
    order: 2 !important;
    padding: 25px 20px 35px 20px;
  }
}
@media (max-width: 700px) {
  .card-image-col img {
    border-radius: 22px !important;
  }
  .card-image-col {
    border-radius: 22px !important;
  }
  .card-info-col h2 {
    font-size: 28px;
  }
  .card-info-col .description p {
    font-size: 14px;
  }
  .card-btn {
    font-size: 14px;
  }
}
