/* Workflow section styles */
.minlong-workflow-section {
  position: relative;
  padding: var(--component-gap) 0;
  overflow: hidden;
}

/* Background wrapper */
.minlong-workflow-section .bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.minlong-workflow-section .bg-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F5F5F5;
}

.minlong-workflow-section .bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.minlong-workflow-section .container {
  position: relative;
  z-index: 1;
}

/* Section header */
.minlong-workflow-section .section-header {
  text-align: left;
  margin-bottom: 60px;
}

.minlong-workflow-section .section-title {
  font-family: var(--semibold-font-family);
  font-size: var(--title-size-h3);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
}

/* Workflow wrapper */
.minlong-workflow-section .workflow-wrapper {
  /* Use flex-wrap so the last row can be centered when it's not full */
  --cols: 5;
  --row-gap: 50px;
  --col-gap: 64px;
  --icon-wrap-size: 80px;
  --icon-size: 40px;
  --connector-width: 56px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  /* Simulate column gap via inner padding */
  margin-left: calc(var(--col-gap) / -2);
  margin-right: calc(var(--col-gap) / -2);
}

/* Workflow item wrapper */
.minlong-workflow-section .workflow-item-wrapper {
  position: relative;
  box-sizing: border-box;
  width: calc(100% / var(--cols));
  flex: 0 0 calc(100% / var(--cols));
  max-width: calc(100% / var(--cols));
  padding-left: calc(var(--col-gap) / 2);
  padding-right: calc(var(--col-gap) / 2);
  margin-bottom: var(--row-gap);

  display: flex;
  justify-content: center;
}

/* Always hide connector for the last item */
.minlong-workflow-section .workflow-item-wrapper:last-child .step-connector {
  display: none !important;
}
/* Workflow item */
.minlong-workflow-section .workflow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  transition: all 0.3s ease;
}
.minlong-workflow-section .workflow-item:hover .step-number,
.minlong-workflow-section .workflow-item:hover .step-title{
  color:var(--color-primary);
}
.minlong-workflow-section .workflow-item:hover .step-icon-circle{
  background:var(--color-primary);
}
.minlong-workflow-section .workflow-item:hover .step-icon svg path{
  fill:#fff !important;
}
.minlong-workflow-section .step-icon-wrapper {
  width: var(--icon-wrap-size);
  height: var(--icon-wrap-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minlong-workflow-section .step-icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minlong-workflow-section .step-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minlong-workflow-section .step-icon svg {
  width: 100%;
  height: 100%;
}

.minlong-workflow-section .step-number {
  font-family: var(--semibold-font-family);
  font-size: var(--title-size-h4);
  font-weight: 600;
  line-height: 1.85;
  color: #333;
  text-align: center;
  margin-top: var(--text-gap-lg);
}

.minlong-workflow-section .step-title {
  font-family: var(--medium-font-family);
  font-size: var(--text-title-size);
  font-weight: 500;
  line-height: 1.56;
  color: #333;
  text-align: center;
  max-width: 180px;
}

/* Step connector */
.minlong-workflow-section .step-connector {
  width: var(--connector-width);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* Keep connector out of the layout flow to prevent wrapping issues */
  position: absolute;
  left: 100%;
  top: calc(var(--icon-wrap-size) / 2);
  transform: translate(-50%, -50%);
}

.minlong-workflow-section .connector-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6e859f;
  flex-shrink: 0;
}

.minlong-workflow-section .connector-arrow {
  flex-shrink: 0;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minlong-workflow-section .connector-arrow svg {
  width: 100%;
  height: 100%;
}

/* Hide connector for last item in each row - Default: 5 items per row */
.minlong-workflow-section .workflow-item-wrapper:nth-child(5n) .step-connector {
  display: none;
}

/* Mobile view hidden */
.minlong-workflow-section .workflow-mobile {
  display: none;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  .minlong-workflow-section .section-header {
    margin-bottom: 50px;
  }

  .minlong-workflow-section .workflow-wrapper {
    --cols: 4;
    --row-gap: 40px;
    --col-gap: 48px;
    /* --icon-wrap-size: 60px; */
    /* --icon-size: 32px; */
  }


  /* 4 items per row */
  .minlong-workflow-section .workflow-item-wrapper:nth-child(5n) .step-connector {
    display: flex;
  }
  .minlong-workflow-section .workflow-item-wrapper:nth-child(4n) .step-connector {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .minlong-workflow-section .workflow-wrapper {
    --cols: 3;
    --row-gap: 30px;
    --col-gap: 32px;
    /* --icon-wrap-size: 50px; */
    /* --icon-size: 24px; */
  }

  .minlong-workflow-section .step-title {
    font-size: var(--text-size);
  }

  /* 3 items per row at this breakpoint */
  .minlong-workflow-section .workflow-item-wrapper:nth-child(4n) .step-connector {
    display: flex;
  }
  .minlong-workflow-section .workflow-item-wrapper:nth-child(3n) .step-connector {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .minlong-workflow-section .workflow-wrapper {
    --row-gap: 24px;
    --col-gap: 24px;
  }

}

@media screen and (max-width: 576px) {
  .minlong-workflow-section .workflow-wrapper {
    --row-gap: 20px;
    --col-gap: 18px;
    /* --icon-wrap-size: 70px;
    --icon-size: 28px; */
    --connector-width: 44px;
  }

 

  .minlong-workflow-section .connector-dot {
    width: 3px;
    height: 3px;
  }


}

@media screen and (max-width: 480px) {
  .minlong-workflow-section .step-title{
    max-width: 100px;
  }
  .minlong-workflow-section .workflow-wrapper {
    --icon-wrap-size: 50px;
    --icon-size: 24px;
  }
}