/* Solutions Overview: overlapping diamond icon on card (home page) */

/* Equal-height columns: row flexes to tallest card (desktop / tablet) */
section .mW-2 .solution-overview-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  gap: 0.75rem;
}

section .mW-2 .solution-overview-row > .deployment-card,
section .mW-2 .solution-overview-row > .data-engg-card,
section .mW-2 .solution-overview-row > .gen-AI-card {
  flex: 1 1 0;
  min-width: 0;
  float: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
}

section .mW-2 .deployment-card .solution-overview-stack,
section .mW-2 .data-engg-card .solution-overview-stack,
section .mW-2 .gen-AI-card .solution-overview-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 3.65rem;
  text-decoration: none;
  color: inherit;
  outline-offset: 4px;
}

section .mW-2 .deployment-card .solution-overview-stack:focus-visible,
section .mW-2 .data-engg-card .solution-overview-stack:focus-visible,
section .mW-2 .gen-AI-card .solution-overview-stack:focus-visible {
  outline: 2px solid #e74d3c;
}

/* No hover motion or shadow change on these cards */
section .mW-2 .deployment-card .solution-overview-stack:hover .solution-card,
section .mW-2 .data-engg-card .solution-overview-stack:hover .solution-card,
section .mW-2 .gen-AI-card .solution-overview-stack:hover .solution-card {
  transform: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

section .mW-2 .deployment-card .solution-overview-stack .solution-card,
section .mW-2 .data-engg-card .solution-overview-stack .solution-card,
section .mW-2 .gen-AI-card .solution-overview-stack .solution-card {
  float: none;
  width: auto;
  margin-top: 0;
  padding: 4.55rem 1.25rem 1.35rem;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

section .mW-2 .deployment-card .solution-overview-stack .solution-card h3,
section .mW-2 .data-engg-card .solution-overview-stack .solution-card h3,
section .mW-2 .gen-AI-card .solution-overview-stack .solution-card h3 {
  margin-top: 0.75rem;
}

section .mW-2 .deployment-card .solution-overview-stack__lede,
section .mW-2 .data-engg-card .solution-overview-stack__lede,
section .mW-2 .gen-AI-card .solution-overview-stack__lede {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: #333;
}

section .mW-2 .deployment-card .solution-overview-stack__list,
section .mW-2 .data-engg-card .solution-overview-stack__list,
section .mW-2 .gen-AI-card .solution-overview-stack__list {
  display: inline-block;
  margin: 0.85rem auto 0;
  padding-left: 1.15rem;
  text-align: left;
  list-style-position: outside;
}

section .mW-2 .deployment-card .solution-overview-stack__list p,
section .mW-2 .data-engg-card .solution-overview-stack__list p,
section .mW-2 .gen-AI-card .solution-overview-stack__list p {
  text-align: left;
}

section .mW-2 .deployment-card .solution-overview-diamond,
section .mW-2 .data-engg-card .solution-overview-diamond,
section .mW-2 .gen-AI-card .solution-overview-diamond {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 7.25rem;
  height: 7.25rem;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

section .mW-2 .deployment-card .solution-overview-diamond__shape,
section .mW-2 .data-engg-card .solution-overview-diamond__shape,
section .mW-2 .gen-AI-card .solution-overview-diamond__shape {
  position: relative;
  width: 6.75rem;
  height: 6.75rem;
  flex-shrink: 0;
  margin: 0;
  transform: rotate(45deg);
  transform-origin: center center;
  background: #fff;
  border: 2px solid #e74d3c;
  border-radius: 0.78rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  /* visible: half the stroke sits outside the path; hidden clips it and shows a gap at the diamond tips */
  overflow: visible;
}

/* Inner holds the flow SVG only — no second bordered diamond on any card */
section .mW-2 .deployment-card .solution-overview-diamond__inner,
section .mW-2 .data-engg-card .solution-overview-diamond__inner,
section .mW-2 .gen-AI-card .solution-overview-diamond__inner {
  position: absolute;
  inset: 2%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  /* Slightly larger radius than at 3% inset so the inner track reads flush with the outer diamond */
  border-radius: 0.62rem;
  z-index: 0;
  pointer-events: none;
  display: block;
  overflow: visible;
}

section .mW-2 .deployment-card .solution-overview-diamond__inner {
  color: #146ef5;
}

section .mW-2 .data-engg-card .solution-overview-diamond__inner,
section .mW-2 .gen-AI-card .solution-overview-diamond__inner {
  color: #e74d3c;
}

/* Animated stroke follows the inner rounded square */
section .mW-2 .deployment-card .solution-overview-diamond__flow-svg,
section .mW-2 .data-engg-card .solution-overview-diamond__flow-svg,
section .mW-2 .gen-AI-card .solution-overview-diamond__flow-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

section .mW-2 .deployment-card .solution-overview-diamond__flow-path,
section .mW-2 .data-engg-card .solution-overview-diamond__flow-path,
section .mW-2 .gen-AI-card .solution-overview-diamond__flow-path {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  /* pathLength=100: dash >100 closes the seam where the animated stroke meets its start */
  stroke-dasharray: 101;
  stroke-dashoffset: 101;
  stroke-opacity: 0;
  transition: none;
}

/* Flow line only when this section is in view (JS adds .solution-overview-section--is-active) */
section .mW-2.solution-overview-section.solution-overview-section--is-active .deployment-card .solution-overview-diamond__flow-path {
  stroke-opacity: 1;
  stroke-dashoffset: 0;
  transition:
    stroke-opacity 0.4s ease-out,
    stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s, 0.2s;
}

section .mW-2.solution-overview-section.solution-overview-section--is-active .data-engg-card .solution-overview-diamond__flow-path {
  stroke-opacity: 1;
  stroke-dashoffset: 0;
  transition:
    stroke-opacity 0.2s ease-out,
    stroke-dashoffset 0.92s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.18s, 0.18s;
}

section .mW-2.solution-overview-section.solution-overview-section--is-active .gen-AI-card .solution-overview-diamond__flow-path {
  stroke-opacity: 1;
  stroke-dashoffset: 0;
  transition:
    stroke-opacity 0.2s ease-out,
    stroke-dashoffset 0.92s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.28s, 0.28s;
}

/* Icon sits inside rotated __shape so it shares the diamond’s center (matches reference layout) */
section .mW-2 .deployment-card .solution-overview-diamond__icon,
section .mW-2 .data-engg-card .solution-overview-diamond__icon,
section .mW-2 .gen-AI-card .solution-overview-diamond__icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
}

section .mW-2 .deployment-card .solution-overview-diamond__img,
section .mW-2 .data-engg-card .solution-overview-diamond__img,
section .mW-2 .gen-AI-card .solution-overview-diamond__img {
  display: block;
  max-width: 4.15rem;
  max-height: 4.15rem;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transform: rotate(-45deg);
  transform-origin: center center;
  background: transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.14));
}

@media (min-width: 1px) and (max-width: 768px) {
  section .mW-2 .solution-overview-row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  section .mW-2 .solution-overview-row > .deployment-card,
  section .mW-2 .solution-overview-row > .data-engg-card,
  section .mW-2 .solution-overview-row > .gen-AI-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  /* Stack columns full width and leave room so diamonds do not overlap the card above */
  section .mW-2 .deployment-card,
  section .mW-2 .data-engg-card,
  section .mW-2 .gen-AI-card {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 3.25rem;
    clear: both;
  }

  section .mW-2 > h2:first-of-type {
    margin-bottom: 3.35rem;
  }

  /* First card: space under heading; following cards: room for diamond sitting above previous block */
  section .mW-2 .deployment-card .solution-overview-stack {
    margin-top: 4rem;
    margin-bottom: 0.75rem;
  }

  section .mW-2 .data-engg-card .solution-overview-stack,
  section .mW-2 .gen-AI-card .solution-overview-stack {
    margin-top: 5.35rem;
    margin-bottom: 0.75rem;
  }

  section .mW-2 .deployment-card .solution-overview-stack .solution-card,
  section .mW-2 .data-engg-card .solution-overview-stack .solution-card,
  section .mW-2 .gen-AI-card .solution-overview-stack .solution-card {
    text-align: left;
  }

  section .mW-2 .deployment-card .solution-overview-stack .solution-card h3,
  section .mW-2 .data-engg-card .solution-overview-stack .solution-card h3,
  section .mW-2 .gen-AI-card .solution-overview-stack .solution-card h3 {
    text-align: left;
  }

  section .mW-2 .deployment-card .solution-overview-stack__lede,
  section .mW-2 .data-engg-card .solution-overview-stack__lede,
  section .mW-2 .gen-AI-card .solution-overview-stack__lede {
    text-align: left;
  }

  section .mW-2 .deployment-card .solution-overview-stack__list,
  section .mW-2 .data-engg-card .solution-overview-stack__list,
  section .mW-2 .gen-AI-card .solution-overview-stack__list {
    display: block;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.15rem;
    box-sizing: border-box;
  }
}

.solution-card:hover{
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

@media (prefers-reduced-motion: reduce) {
  section .mW-2.solution-overview-section.solution-overview-section--is-active .deployment-card .solution-overview-diamond__flow-path,
  section .mW-2.solution-overview-section.solution-overview-section--is-active .data-engg-card .solution-overview-diamond__flow-path,
  section .mW-2.solution-overview-section.solution-overview-section--is-active .gen-AI-card .solution-overview-diamond__flow-path {
    transition: none !important;
    stroke-dashoffset: 0 !important;
    stroke-opacity: 1 !important;
  }
}
