.work_flow_section_2_scroll_space {
  min-height: calc(100vh - 70px + (4 * 80vh));
  /* fixed overlap */
  min-height: calc(100svh - 70px + (4 * 80svh));
  /* fixed overlap */
  margin-bottom: 50px;
  /* fixed overlap */
}

.work_flow_section_2_main {
  position: relative;
  /* fixed overlap */
  width: 100%;
  height: calc(100vh - 70px);
  height: calc(100svh - 70px);
  background-color: black;
  overflow: hidden;
}

.work_flow_tag_2_main {
  margin-top: 24px;
  position: relative;
  width: 110px;
  height: 34px;
  border-radius: 24px;
  overflow: hidden;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-size: 14px;
}

.work_flow_tag_2_main::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  background: conic-gradient(from 0deg,
      rgba(216, 156, 39, 0) 0%,
      rgba(216, 156, 39, 0) 80%,
      #d89c27 92%,
      #dfc86f 96%,
      #d89c27 98%,
      rgba(216, 156, 39, 0.12) 100%);
  animation: rotateBorder 3s linear infinite;
  z-index: -2;
}

.work_flow_tag_2_main::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #171717;
  border-radius: 24px;
  z-index: -1;
}

@keyframes rotateBorder {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  12.5% {
    transform: translate(-50%, -50%) rotate(60deg);
  }

  25% {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  37.5% {
    transform: translate(-50%, -50%) rotate(120deg);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  62.5% {
    transform: translate(-50%, -50%) rotate(240deg);
  }

  75% {
    transform: translate(-50%, -50%) rotate(270deg);
  }

  87.5% {
    transform: translate(-50%, -50%) rotate(300deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.work_flow_2_dot {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
}

.work_flow_2_text {
  margin-top: 16px;
  letter-spacing: 1px;
  color: white;
}

.work_flow_2_title {
  font-family: var(--font-Glida-Display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.work_flow_2_content_main {
  position: relative;
  height: 555px;
  margin-top: 0px;
  overflow: visible;
  width: 100%;
}

.work_flow_details_and_image_mian {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96%;
  display: flex;
  overflow: hidden;
  padding: 0px 12px;
  margin-bottom: -2px;
  margin-top: 6px;
}

.work_flow_left_side_details_main {
  width: 50%;
  height: 100%;
  background-color: rgba(16, 16, 16, 1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom-left-radius: 30px;
  border-top-left-radius: 30px;
}

.work_flow_top_title>h3 {
  font-family: var(--font-Glida-Display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1px;
}

.work_flow_bottom_discrptions>p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 1px;
  margin-bottom: 0px;
}

.work_flow_right_side_image_main {
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-bottom-right-radius: 30px;
  border-top-right-radius: 30px;
}

.work_flow_right_side_image_main>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Ensure the final delivery image (last card) is always fully visible (contain) at all breakpoints to prevent text/branding clipping */
.work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main {
  background-color: #000;
}

.work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main>img {
  object-fit: contain !important;
  object-position: center center;
}



@media (max-width: 1600px) {
  .work_flow_tag_2_main {
    margin-top: 16px;
  }

  .work_flow_details_and_image_mian {
    justify-content: center;
    margin-top: 10px;
  }

  .work_flow_2_content_main {
    height: 520px;
  }

  .work_flow_right_side_image_main {
    width: 45%;
  }

  .work_flow_left_side_details_main {
    width: 45%;
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main {
    /* fixed height */
    background-color: transparent;
    /* fixed height */
  }

  /* fixed height */

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main>img {
    /* fixed height */
    width: 100%;
    /* fixed height */
    height: 100%;
    /* fixed height */
    object-fit: fill !important;
    /* fixed height */
    object-position: center center !important;
    /* fixed height */
    display: block;
    /* fixed height */
  }

  /* fixed height */
}

/* @media(max-width: 1800px) and (min-height: 969px) {

  .work_flow_details_and_image_mian {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    padding: 0px 12px;
    margin-bottom: 0;
    margin-top: 70px;
  }


} */

@media (max-width: 1285px) and (max-height: 600px) {
  .work_flow_tag_2_main {
    margin-top: 10px;
  }

  .work_flow_2_title {
    font-size: 22px;
    margin-top: 8px;
    margin-bottom: 0px;
  }

  /* .work_flow_details_and_image_mian {
    margin-top: 10px;
  } */

  .work_flow_details_and_image_mian {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 82%;
    display: flex;
    overflow: hidden;
    padding: 0px 12px;
    margin-bottom: 0;
    margin-top: 10px;
  }

  .work_flow_2_content_main {
    height: 370px;
    margin-top: 5px;
  }

  .work_flow_right_side_image_main {
    width: 35%;
  }

  .work_flow_left_side_details_main {
    width: 40%;
    padding: 26px;
  }

  .work_flow_top_title>h3 {
    font-size: 20px;
  }

  .work_flow_bottom_discrptions>p {
    font-size: 16px;
  }
}

@media (max-width: 1200px) and (max-height: 700px) {
  .work_flow_section_2_scroll_space {
    margin-bottom: 120px !important;
    /* fixed overlap */
  }

  .work_flow_2_content_main {
    height: 421px;
    margin-top: 42px;
  }

  .work_flow_right_side_image_main {
    width: 50%;
  }

  /* .work_flow_details_and_image_mian {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 92%;
    display: flex;
    overflow: hidden;
    padding: 0px 12px;
    margin-bottom: -2px;
    margin-top: 6px;
  } */

  .work_flow_left_side_details_main {
    width: 50%;
    padding: 32px;
  }
}

@media (max-width: 992px) {

  /* Make the sticky section flex-column so the card area fills all remaining height */
  .work_flow_section_2_main {
    position: sticky;
    /* fixed overlap */
    top: 70px;
    /* fixed overlap */
    display: flex;
    flex-direction: column;
  }

  /* Header container: let it shrink to its natural height */
  .work_flow_section_2_main>.container:first-child {
    flex-shrink: 0;
  }

  .work_flow_tag_2_main {
    margin-top: 18px;
  }

  .work_flow_2_title {
    font-size: 22px;
    margin-top: 12px;
    margin-bottom: 10px;
  }

  /* Card container: grow to fill all space left after the header */
  .work_flow_2_content_main {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    /* clip cards strictly inside container — prevents overlap with heading above */
  }

  /* Each card: image on TOP, text panel on BOTTOM (matches Figma) */
  .work_flow_details_and_image_mian {
    position: absolute;
    height: 670px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 24px);
    max-width: 550px;
    display: flex;
    flex-direction: column-reverse;
    /* image first visually (top), text panel below */
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  /* Text panel: now at BOTTOM — rounded bottom corners, flat top */
  .work_flow_left_side_details_main {
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    min-height: 160px;
    padding: 20px 24px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    justify-content: center;
  }

  /* Image panel: now on TOP — rounded top corners, flat bottom */
  .work_flow_right_side_image_main {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
  }

  /* Image fills the panel completely */
  .work_flow_right_side_image_main>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }



  .work_flow_top_title>h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .work_flow_bottom_discrptions>p {
    font-size: 20px;
    line-height: 1.5;
  }

  /* Last card uses the same card space as others and stretches image without cropping. fixed cuts */
  .work_flow_details_and_image_mian:last-child {
    /* fixed cuts */
    height: 670px;
    /* fixed cuts */
    overflow: hidden;
    /* fixed cuts */
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main {
    /* fixed cuts */
    width: 100%;
    /* fixed cuts */
    flex: 1 1 0;
    /* fixed cuts */
    height: auto;
    /* fixed cuts */
    min-height: 0;
    /* fixed cuts */
    overflow: hidden;
    /* fixed cuts */
    background-color: transparent;
    /* fixed cuts */
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main>img {
    /* fixed cuts */
    width: 100%;
    /* fixed cuts */
    height: 100%;
    /* fixed cuts */
    max-height: 100%;
    /* fixed cuts */
    object-fit: fill !important;
    /* fixed cuts */
    object-position: center center !important;
    /* fixed cuts */
    display: block;
    /* fixed cuts */
  }
}

@media (max-width: 770px) {
  .work_flow_left_side_details_main {
    min-height: 140px;
    padding: 16px 18px;
  }

  .work_flow_top_title>h3 {
    font-size: 18px;
  }

  .work_flow_bottom_discrptions>p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .work_flow_tag_2_main {
    margin-top: 10px;
  }

  .work_flow_2_title {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .work_flow_left_side_details_main {
    padding: 16px;
  }

  .work_flow_2_content_main {
    height: 530px;
  }

  .work_flow_bottom_discrptions>p {
    font-size: 14px;
  }

  .work_flow_top_title>h3 {
    font-size: 16px;
  }

  .work_flow_2_text {
    margin-top: 16px;
    font-size: 14px;
  }

  /* Image now on TOP at 576px — rounded top corners */
  .work_flow_right_side_image_main {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* Text panel now at BOTTOM at 576px — rounded bottom corners */
  .work_flow_left_side_details_main {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}

@media(max-width:576px) and (max-height:830px) {

  .work_flow_details_and_image_mian {
    height: 591px;
  }

  .work_flow_details_and_image_mian:last-child {
    /* fixed cuts */
    height: 591px;
    /* fixed cuts */
    overflow: hidden;
    /* fixed cuts */
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main {
    /* fixed cuts */
    width: 100%;
    /* fixed cuts */
    flex: 1 1 0;
    /* fixed cuts */
    height: auto;
    /* fixed cuts */
    min-height: 0;
    /* fixed cuts */
    overflow: hidden;
    /* fixed cuts */
    background-color: transparent;
    /* fixed cuts */
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main>img {
    /* fixed cuts */
    width: 100%;
    /* fixed cuts */
    height: 100%;
    /* fixed cuts */
    max-height: 100%;
    /* fixed cuts */
    object-fit: fill !important;
    /* fixed cuts */
    object-position: center center !important;
    /* fixed cuts */
    display: block;
    /* fixed cuts */
  }

}

@media(max-width:576px) and (max-height:750px) {

  .work_flow_details_and_image_mian {
    height: 515px;
  }

  .work_flow_details_and_image_mian:last-child {
    /* fixed cuts */
    height: 515px;
    /* fixed cuts */
    overflow: hidden;
    /* fixed cuts */
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main {
    /* fixed cuts */
    width: 100%;
    /* fixed cuts */
    flex: 1 1 0;
    /* fixed cuts */
    height: auto;
    /* fixed cuts */
    min-height: 0;
    /* fixed cuts */
    overflow: hidden;
    /* fixed cuts */
    background-color: transparent;
    /* fixed cuts */
  }

  .work_flow_details_and_image_mian:last-child .work_flow_right_side_image_main>img {
    /* fixed cuts */
    width: 100%;
    /* fixed cuts */
    height: 100%;
    /* fixed cuts */
    max-height: 100%;
    /* fixed cuts */
    object-fit: fill !important;
    /* fixed cuts */
    object-position: center center !important;
    /* fixed cuts */
    display: block;
    /* fixed cuts */
  }

}