/* CSS for Our process layout */

.acf-layout-our-process {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

/* Background glow details for rich aesthetics */
.acf-layout-our-process::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 582px;
  height: 582px;
  background-color: #878232;
  opacity: 0.5;
  filter: blur(180px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.acf-layout-our-process::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 594px;
  height: 594px;
  background-color: #e65125;
  opacity: 0.5;
  filter: blur(180px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.acf-layout-our-process .our-process-heading {
  font-family: var(--font-secondary, "Funnel Display", sans-serif);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 700;
  color: var(--color-white, #ffffff);
  margin-bottom: 80px;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.acf-layout-our-process .our-process-heading p,
.acf-layout-our-process .our-process-heading span,
.acf-layout-our-process .our-process-heading * {
  margin: 0;
}

.acf-layout-our-process .our-process-heading span {
  color: var(--color-1, #e65125);
}

.process-flow-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.process-flow-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
}

.process-step {
  flex: 1 1 0px;
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.process-step-top,
.process-step-top-empty {
  height: 85px;
  position: relative;
  top: -5%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.process-step-bottom,
.process-step-bottom-empty {
  /* height: 250px; */
  height: auto;
  position: relative;
  bottom: -5%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.process-number-badge {
  background-color: var(--color-4, #5c489c);
  color: var(--color-white, #ffffff);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-arrow-up-img {
  transform: rotate(-90deg);
  display: block;
  margin: 24px auto 0;
  width: 24px;
  height: 24px;
}

.process-arrow-down-img {
  transform: rotate(90deg);
  display: block;
  margin: 0 auto 12px;
  width: 24px;
  height: 24px;
}

.process-desc-box {
  background-color: var(--color-5);
  padding: 25px 15px;
  text-align: center;
  max-width: 200px;
  width: 100%;
  min-height: 182px;
  margin-top: 10px;
}

.process-card {
  width: 100%;
  max-width: 200px;
  height: 225px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.process-card-header {
  background-color: var(--color-4, #5c489c);
  color: var(--color-white, #ffffff);
  text-align: center;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.process-card-header span {
  display: block;
  line-height: 1.2;
}

.process-card-body {
  background-color: var(--color-5);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-top: none;
}

.process-card-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.process-connector {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 225px;
  position: relative;
  z-index: 1;
}

.process-arrow-img {
  width: 60px;
  height: 20px;
  max-width: 100%;
  object-fit: contain;
}

/* Responsive Styling for Screens < 1280px */
@media (max-width: 1279px) {
  .acf-layout-our-process .our-process-heading {
    margin-bottom: 40px;
  }
  .process-flow-container {
    overflow-x: auto;
    overflow-y: hidden;
    height: 520px;
    background-color: #000;
    display: flex;
    align-items: center;

    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .process-flow-container::-webkit-scrollbar {
    display: none;
  }

  .process-flow-row {
    flex-wrap: nowrap;
    padding: 0 15px;
    width: max-content;
    margin: 0 auto;
  }

  .process-step {
    flex: 0 0 200px;
    width: 200px;
  }

  .process-connector {
    flex: 0 0 50px;
    height: 159px;
    margin-top: 85px;
    align-items: center;
  }

  .process-arrow-img {
    width: 40px;
    height: 20px;
  }

  .process-card-icon {
    width: 50px;
    height: 50px;
  }
  .process-card {
    height: 159px;
  }
  .process-desc-box {
    min-height: 130px;
    max-width: 182px;
  }
  .acf-layout-our-process::after,
  .acf-layout-our-process::before {
    width: 370px;
    height: 370px;
  }
  .acf-layout-our-process::after {
    top: -80px;
    right: -80px;
  }
  .acf-layout-our-process::before {
    bottom: -80px;
    left: -80px;
  }
}
