.stepsec-steps {
  display: grid;
  grid-template-columns: 1fr 90px 1fr 90px 1fr;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.stepsec-card {
  position: relative;
  min-height: 200px;
  padding: 35px 30px 30px;
  border: 1px solid #d8e7f2;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(16, 69, 111, 0.07);
  transition: transform 0.25s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.stepsec-card:hover {
  transform: translateY(-7px);
  border-color: rgba(81, 150, 209, 0.46);
  box-shadow: 0 24px 70px rgba(16, 69, 111, 0.15);
}

.stepsec-card__number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(28, 93, 155, 0.12);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

html[dir="rtl"] .stepsec-card__number {
  right: auto;
  left: 22px;
}

.stepsec-card__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #1c5d9b;
  background: linear-gradient(135deg, #eef7fd, #dceefa);
  border-radius: 22px;
}

.stepsec-card__icon svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stepsec-card__title {
  margin: 26px 0 9px;
  color: #0b2e4d;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.stepsec-card__desc {
  margin: 0;
  color: #607286;
  font-size: 0.9rem;
  line-height: 1.6;
}

.stepsec-connector {
  position: relative;
  height: 2px;
  margin: 0 14px;
  background: repeating-linear-gradient(90deg, #1A5791 0 6px, transparent 6px 12px);
  opacity: 0.55;
}

.stepsec-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #1A5791;
  border-right: 2px solid #1A5791;
  transform: rotate(45deg);
}

html[dir="rtl"] .stepsec-connector::after {
  right: auto;
  left: -2px;
  transform: rotate(-135deg);
}

@media (max-width: 900px) {
  .stepsec-steps {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
    padding: 0 1rem;
  }

  .stepsec-connector {
    width: 2px;
    height: 40px;
    margin: -3px auto;
    background: repeating-linear-gradient(180deg, #d9edfb 0 6px, transparent 6px 12px);
  }

  .stepsec-connector::after {
    right: -4px;
    top: auto;
    bottom: -2px;
    transform: rotate(135deg);
  }

  html[dir="rtl"] .stepsec-connector::after {
    left: -4px;
    bottom: -2px;
    transform: rotate(135deg);
  }

  .stepsec-card {
    min-height: auto;
  }
}
