/* Blog-specific visual components */

.flow-style-1 {
  margin: 2rem 0;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-top: 4px solid #17365d;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.flow-style-1 figcaption {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8dee8;
  text-align: left;
}

.flow-style-1-title {
  display: block;
  color: #17365d;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.flow-style-1-subtitle {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.88rem;
}

.flow-style-1-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-style-1-track.flow-style-1-track-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-style-1-step {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 1.1rem;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.flow-style-1-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  left: 100%;
  width: 1.25rem;
  height: 2px;
  background: #9aa8ba;
}

.flow-style-1-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 34px;
  left: calc(100% + 1.25rem - 6px);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #9aa8ba;
}

.flow-style-1-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.flow-style-1-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border: 1px solid #b8c7d9;
  border-radius: 4px;
  background: #eaf0f6;
  color: #17365d;
  font-size: 0.76rem;
  font-weight: 700;
}

.flow-style-1-icon {
  color: #24598f;
  font-size: 1.25rem;
}

.flow-style-1-step strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #17365d;
  font-family: "Poppins", sans-serif;
  font-size: 0.93rem;
  line-height: 1.35;
}

.flow-style-1-step p {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .flow-style-1 {
    padding: 1.25rem 1rem;
  }

  .flow-style-1-track {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .flow-style-1-track.flow-style-1-track-5 {
    grid-template-columns: 1fr;
  }

  .flow-style-1-step {
    min-height: 0;
    padding: 1rem;
  }

  .flow-style-1-step:not(:last-child)::after {
    top: 100%;
    left: 27px;
    width: 2px;
    height: 1.35rem;
  }

  .flow-style-1-step:not(:last-child)::before {
    top: calc(100% + 1.35rem - 7px);
    left: 23px;
    border-top: 6px solid #9aa8ba;
    border-right: 5px solid transparent;
    border-bottom: 0;
    border-left: 5px solid transparent;
  }
}
