.as-setup-steps {
  background: radial-gradient(circle at 50% 10%, rgba(245, 248, 254, 0.7) 0%, #ffffff 70%);
  padding: 85px 0 95px;
  position: relative;
}

.as-setup-steps__header {
  margin-bottom: 56px;
  text-align: center;
}

/* Timeline Flow Container */
.as-setup-flow {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Connecting Progress Line (Desktop) */
.as-setup-flow__track {
  position: absolute;
  top: 22px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.as-setup-flow__line {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ca4441 0%, #cbd5e1 50%, #e2e8f0 100%);
}

/* 3-Column Grid */
.as-setup-flow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

/* Step Item Wrapper */
.as-setup-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  cursor: default;
}

/* Milestone Circle (Desktop only) */
.as-setup-milestone {
  margin-bottom: 24px;
  position: relative;
  z-index: 3;
}

.as-setup-milestone__node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  padding: 0 !important;
  line-height: 1;
}

.as-setup-step-item:first-child .as-setup-milestone__node {
  border-color: #ca4441;
  color: #ca4441;
}

.as-setup-step-item:hover .as-setup-milestone__node {
  border-color: #ca4441;
  color: #ffffff;
  background-color: #ca4441;
}

/* Step Card */
.as-setup-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 28px 30px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  text-align: left;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.as-setup-step-item:hover .as-setup-card {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px -8px rgba(202, 68, 65, 0.14), 0 8px 20px rgba(15, 23, 42, 0.04);
  border-color: var(--as-color-primary-red, #ca4441);
}

/* Card Icon Box */
.as-setup-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #fee2e2;
  color: #ca4441;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.as-setup-card__icon i {
  line-height: 1;
}

.as-setup-step-item:hover .as-setup-card__icon {
  background-color: #ca4441;
  color: #ffffff;
  transform: scale(1.08);
}

/* Card Step Label */
.as-setup-card__step-tag {
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
  padding: 0 !important;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.as-setup-step-item:hover .as-setup-card__step-tag {
  color: var(--as-color-primary-red, #ca4441);
}

/* Card Title */
.as-setup-card__title {
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--as-color-heading-dark, #0f172a);
  line-height: 1.35;
  margin: 0 0 12px;
  min-height: 54px;
}

/* Card Body Text */
.as-setup-card__text {
  font-family: var(--as-font-body, 'Poppins', sans-serif);
  font-size: 14.5px;
  color: var(--as-color-body-text, #475569);
  line-height: 1.6;
  margin: 0;
}

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .as-setup-steps {
    padding: 65px 0 60px;
  }

  .as-setup-flow__track,
  .as-setup-milestone {
    display: none;
  }

  .as-setup-flow__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .as-setup-card {
    padding: 28px 24px 26px;
  }

  .as-setup-card__title {
    min-height: auto;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .as-setup-steps {
    padding: 50px 0 45px;
  }

  .as-setup-flow__grid {
    gap: 16px;
  }

  .as-setup-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .as-setup-card__icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .as-setup-card__title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .as-setup-card__text {
    font-size: 14px;
  }
}
