/* Highlights Section */
.highlights-section {
  margin: 117px auto 100px;
}

.highlights-columns {
  display: flex;
  justify-content: center;
  gap: 165px;
}

.highlights-section .highlights-columns .highlight-column {
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
}

.highlight-heading {
  font-size: 40px !important;
  font-weight: 600;
}

.highlight-text {
  font-size: 25px !important;
}

/* Key Features Section */
.key-features-section {
  padding: 87px 156px 97px;
}

.key-features-heading {
  margin-top: 0 !important;
}

.key-features-sub-heading {
  margin: 11px 180px 68px;
  line-height: 33px;
}

.key-sections-row {
  display: flex;
  gap: 47px;
}

.key-feature-card {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0px 4px 6px 0px #0000001a;
}

.key-feature-heading {
  font-size: 20px !important;
  font-weight: 700;
  margin: 10px 0;
  color: #000;
}

/* How OCR works section */
.how-sub-heading {
  font-weight: 500;
  line-height: 33px;
}

.how-heading {
  margin: 2px auto 0 !important;
}

.process-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Process steps row */
.steps-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  gap: 10px;
}

.step-wrapper {
  position: relative;
}

/* Step circles */
.step-circle {
  width: 99px;
  height: 99px;
  border-radius: 50%;
  display: flex;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 250px auto;
  border: 10px solid #fde2e4;
}

/* Step content */
.step-content {
  text-align: center;
  position: absolute;
}

/* Alternate content positioning for desktop */
.step-wrapper:nth-child(odd) .step-content {
  bottom: 390px;
}

.step-wrapper:nth-child(even) .step-content {
  top: 385px;
}

.step-wrapper .step-content h2 {
  font-size: 22.7px !important;
  font-weight: bold;
  margin-bottom: 5px !important;
  color: #000;
}

.step-wrapper .step-content p {
  color: #666;
  font-size: 14px !important;
  line-height: 1.4;
  margin: 0 auto;
}

/* Number badges */
.step-number {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #e63946;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  z-index: 2;
  font-weight: 500;
  font-size: 19.33px;
  box-shadow: 0px 2.2px 2.2px 0px #00000040;
}

/* Specific number positions */
.step-wrapper:nth-child(odd) .step-number {
  top: -20px;
}

.step-wrapper:nth-child(even) .step-number {
  bottom: -50px;
}

/* Horizontal connecting lines */
.step-wrapper:not(:last-child) .step-circle::after {
  content: "";
  position: absolute;
  height: 2px;
  background-color: #e63946;
  top: 34.5px;
  z-index: -1;
  left: 79px;
  width: calc(100% + 20px);
}

/* Vertical connecting lines for top numbers */
.step-wrapper:nth-child(odd) .step-number::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #e63946;
  top: -20px;
  height: 20px;
  z-index: 0;
}

/* Vertical connecting lines for bottom numbers */
.step-wrapper:nth-child(even) .step-number::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #e63946;
  bottom: 30px;
  height: 25px;
  z-index: 0;
}

@media (max-width: 768px) {
  .process-container {
    padding: 20px 10px;
  }

  .steps-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
    gap: 0;
  }

  .step-wrapper:not(:last-child) .step-circle::after {
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    z-index: 0;
  }

  /* Reset desktop connecting lines */
  .step-wrapper::before,
  .step-wrapper::after {
    display: none;
  }

  /* Mobile step wrapper */
  .step-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
  }

  /* Center the circles */
  .step-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* Position the step content */
  .step-content {
    position: absolute;
    width: calc(50% - 80px);
    max-width: 300px;
    margin: 0;
  }

  /* Left side content */
  .step-wrapper:nth-child(odd) .step-content {
    left: 0;
    padding-right: 20px;
    margin-bottom: 0;
  }

  /* Right side content */
  .step-wrapper:nth-child(even) .step-content {
    right: 0;
    margin-top: 0;
  }

  .step-content h2 {
    font-size: 22px;
  }

  .step-content p {
    font-size: 14px;
    margin: 0;
    max-width: none;
  }

  /* Number badges on top of circles */
  .step-wrapper:nth-child(odd) .step-number,
  .step-wrapper:nth-child(even) .step-number {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
  }
}

@media only screen and (max-width: 572px){
	 /* Highlight section */
  .highlights-section {
    padding: 50px 57px;
    margin-bottom: 0;
    margin-top: 0;
  }

  .highlights-columns {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    margin-bottom: 0;
  }

  .highlights-section .highlights-columns .highlight-column {
    flex-basis: auto !important;
  }

  .highlight-heading {
    font-size: 16px !important;
    margin-bottom: 5px;
  }

  .highlight-text {
    font-size: 11px !important;
  }
	
	  /* Key Features Section */
  .key-features-section {
    padding: 39px 0 43px;
    margin: 0 auto;
    background-color: #fff;
  }

  .key-features-heading {
    padding: 0 10px;
  }

  .key-features-sub-heading {
    line-height: 15px;
    margin: 7px auto 28px;
    padding: 0 55px;
  }

  .key-sections-container {
    display: flex;
    flex-direction: column;
    gap: 21px;
  }

  .key-sections-row {
    width: 90%;
    margin: auto;
  }

  .key-sections-row:not(:last-child) {
    margin-bottom: 21px;
  }

  .key-feature-card {
    padding: 13px;
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .key-feature-icon {
    transform: scale(0.6);
    transform-origin: left;
    margin-bottom: 0;
  }

  .key-feature-heading {
    font-size: 12px !important;
    padding-left: 0;
    margin: 7px 0 !important;
  }

  .key-feature-text {
    padding-left: 0;
  }
	
	 /* Steps section */
  .how-heading {
    margin-bottom: 34px !important;
  }

  .steps-row {
    padding-top: 0;
    margin-top: 0;
  }

  .step-content {
    width: calc(50% - 35px);
    text-align: center;
  }

  .step-wrapper:nth-child(odd) .step-content,
  .step-wrapper:nth-child(even) .step-content {
    top: unset;
    bottom: unset;
  }

  .step-wrapper:nth-child(odd) .step-content {
    padding-right: 10px;
  }

  .step-wrapper:nth-child(even) .step-content {
    padding-left: 10px;
  }

  .step-wrapper .step-content h2 {
    font-size: 15px !important;
    margin-top: 0 !important;
  }

  .step-wrapper .step-content p {
    padding: 0;
  }

  .step-circle {
    width: 74px;
    height: 74px;
    border: 5px solid #fde2e4;
  }

  .step-wrapper:not(:last-child) .step-circle::after {
    width: 2px;
    top: 69px;
    z-index: -2;
    left: 31px;
    height: calc(100% + 10px);
  }

  .step-number {
    width: 22.5px;
    height: 22.5px;
    font-size: 14.66px;
    box-shadow: 0px 1.67px 1.67px 0px #00000040;
  }

  .step-wrapper:nth-child(odd) .step-number,
  .step-wrapper:nth-child(even) .step-number {
    top: -12px;
  }

  .step-wrapper .step-number::before {
    display: none;
  }

  .step-icon {
    transform: scale(0.75);
  }
}