.flow-section {
  padding:  120px 0; /* Bỏ padding top vì header đã có padding */
  background: white; /* f3f4f6/50 */
  position: relative;
  overflow: visible; /* Quan trọng để sticky hoạt động */
}

/* Background Architectural Grid Lines */
.arch-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(15, 118, 110, 0.05);
  display: none;
}

@media (min-width: 1280px) {
  .arch-line {
    display: block;
  }
}

.line-left { left: 15%; }
.line-right { right: 15%; }

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* Header Styles */
.header-section {
    width: 100%;
    margin-bottom: 24px;
background-color: white;
    z-index: 999;
    padding: 24px 0;
}

@media (min-width: 1280px) {
    .header-section {
        position: sticky;
        top: 72px; /* Dựa theo chiều cao của Navbar chính */
    }
}

.header-section .section-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

@media (min-width: 768px) {
    .header-section .section-container {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    
    line-height: 1.3;
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--color-primary);
}

/* Main Layout Container */
.flow-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

@media (min-width: 1280px) {
  .flow-layout {
    flex-direction: row;
    gap: 80px;
    align-items: stretch; /* Dùng stretch để bên trái cao bằng bên phải, giúp sticky hoạt động hết vùng này */
  }
}

/* Left Side: Large Blueprint Visual */
.flow-visual-side {
  flex: 1;
  position: relative;
  order: 1;
}

@media (min-width: 1280px) {
  .flow-visual-side {
    position: relative;
  }

  /* Kích hoạt Sticky cho wrapper chứa Img */
  .sticky-wrapper {
    position: sticky;
    top: 250px; /* Điều chỉnh cùng vị trí cố định với Title */
    height: fit-content;
  }
}

.blueprint-frame {
  position: relative;
  height: auto;
  background-color: white;
  border: 1px solid rgba(15, 118, 110, 0.2);
  padding: 8px;
  box-shadow: 10px 10px 0px rgba(15, 118, 110, 0.03);
}

@media (min-width: 768px) {
  .blueprint-frame {
    box-shadow: 20px 20px 0px rgba(15, 118, 110, 0.03);
  }
}

.blueprint-inner {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
  background-color: rgba(15, 118, 110, 0.05);
}

.blueprint-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: white; /* Thêm nền trắng để mascot hiển thị rõ */
}

 

.blueprint-img.changing {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}

.crosshair-h, .crosshair-v {
  display: none;
}

.blueprint-watermark {
  position: absolute;
  bottom: -40px;
  left: -16px;
  font-size: 60px;
  font-weight: 900;
  color: rgba(15, 118, 110, 0.02);
  
  line-height: 1;
  user-select: none;
  pointer-events: none;

  z-index: -1;
}

@media (min-width: 768px) {
  .blueprint-watermark {
    bottom: -64px;
    left: -40px;
    font-size: 160px;
  }
}

/* Right Side: Step List */
.flow-steps-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 0;
  order: 2;
  gap: 64px;
}

@media (min-width: 1280px) {
    .flow-steps-side {
        margin-top: 0; /* Reset margin vì title đã tách ra ngoài */
        gap: 120px;
    }
}

@media (min-width: 1440px) {
    .flow-steps-side {
        margin-top: 60px;
    }
}

@media (min-width: 768px) {
  .flow-steps-side {
    gap: 80px;
  }
}

@media (min-width: 1280px) {
  .flow-steps-side {
    width: 45%;
    order: 2;
  }
}

.flow-step {
  position: relative;
}

.step-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .step-layout {
    gap: 32px;
  }
}

/* Step Timeline Col */
.step-timeline-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.step-number-box {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--color-primary);
  font-size: 12px;
  
  transition: background-color 0.3s, color 0.3s;
}

@media (min-width: 768px) {
  .step-number-box {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

.flow-step.group:hover .step-number-box {
  background-color: var(--color-primary);
  color: white;
}

.step-connector {
  width: 1px;
  height: 96px;
  background-color: rgba(15, 118, 110, 0.2);
}

@media (min-width: 768px) {
  .step-connector {
    height: 128px;
  }
}

/* Step Content Col */
.step-content-col {
  flex: 1;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  transition: all 0.3s;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);

  letter-spacing: -0.05em;
  
  margin: 0 0 24px 0;
}

@media (min-width: 768px) {
  .step-title {
    font-size: 24px;
  }
}
 

/* Step Tags */
.step-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.step-tag-wrapper {
  position: relative;
  width: fit-content;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .step-tag-wrapper.staggered {
    margin-left: 32px;
  }
}

.step-tag {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-left: 4px solid var(--color-primary);
  padding: 8px 16px;
  box-shadow: 2px 2px 0px rgba(15, 118, 110, 0.05);
  transition: all 0.2s;
  cursor: default;
}

.step-tag-wrapper:hover .step-tag {
  box-shadow: 4px 4px 0px rgba(15, 118, 110, 0.1);
  border-color: var(--color-primary);
}

.tag-text {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .tag-text {
    font-size: 14px;
  }
}

.step-tag-wrapper:hover .tag-text {
  color: var(--color-primary);
}

/* Step Outcome */
.step-outcome {
  background-color: white;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-left: 6px solid var(--color-primary);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 10px 10px 0px rgba(15, 118, 110, 0.05);
  transition: all 0.3s;
  width: 100%;
}

@media (min-width: 768px) {
  .step-outcome {
    padding: 24px;
  }
}

.flow-step.group:hover .step-outcome {
  box-shadow: 15px 15px 0px rgba(15, 118, 110, 0.08);
}

.outcome-hatch {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  background-image: repeating-linear-gradient(45deg, var(--color-primary) 0, var(--color-primary) 1px, transparent 0, transparent 12px);
}

.outcome-content {
  position: relative;
  z-index: 10;
}

.outcome-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.outcome-icon-box {
  background-color: var(--color-primary);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-check {
  width: 14px;
  height: 14px;
  color: white;
}

.outcome-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--color-primary);

  letter-spacing: 0.05em;
}

.outcome-text {
  color: #111827;
  font-size: 16px;
  font-weight: 500;

  line-height: 1.25;
  margin: 0;
}
@media (max-width: 1280px) {
  .flow-visual-side {
    display: none;
  }
}