:root {
  --primary: #126ef5;
  --primary-light: #eaf2ff;
  --text: #222;
  --paragraph: #667085;
  --border: #e8ecf3;
}

.workflow-section {
  padding: 100px 8rem;
  background: #fafafa;
  margin: 4rem 0;
}

.workflow-section .container {
  margin: auto;
}

/* Heading */

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.badge {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 25px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 650px;
  margin: auto;
  color: var(--paragraph);
  line-height: 1.8;
}

/* Workflow */

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.workflow-item {
  position: relative;
  text-align: center;
  padding: 0 18px;
}

.workflow-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eaf2ff;
  color: #126ef5;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 22px;
  font-weight: 700;
  position: relative;
  z-index: 2;

  transition: 0.35s;
}

.workflow-top::after {
  content: "";
  position: absolute;

  left: calc(50% + 36px);
  right: -50%;

  height: 2px;
  background: #e8ecf3;

  top: 50%;
  transform: translateY(-50%);
}

.workflow-item:last-child .workflow-top::after {
  display: none;
}

/* Text */

.workflow-item h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text);
}

.workflow-item p {
  color: var(--paragraph);
  line-height: 1.8;
  font-size: 16px;
}

/* Tablet */

@media (max-width: 1100px) {
  .workflow {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 0;
  }

  .workflow-top::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #126ef5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: 0.35s;
  }

  .workflow-section {
    padding: 100px 1rem;
  }
}

@media (max-width: 768px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workflow-top::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .workflow {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
  }

  .workflow-item:nth-child(3) .line,
  .workflow-item:nth-child(6) .line {
    display: none;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .workflow-top {
    justify-content: center;
  }

  .line {
    display: none;
  }

  .workflow-item {
    max-width: 300px;
    margin: auto;
  }

  .workflow-item h3 {
    font-size: 28px;
  }

  .workflow-section {
    padding: 70px 0;
  }

  .workflow-item h3 {
    font-size: 20px;
    text-align: center;
  }

  .workflow-item p {
    font-size: 14px;
    text-align: center;
  }
}
