/* ==========================================================
   Process Flow Section
   Architecture: Universal · Isolated · Enterprise-grade
   Status: FINAL
========================================================== */

:root {
  --pf-primary: var(--mt-brand-primary, #0d6efd);
  --pf-primary-soft: rgba(13, 110, 253, 0.08);
  --pf-text-main: #1f2937;
  --pf-text-muted: #6b7280;
  --pf-border-color: rgba(0,0,0,0.06);
  --pf-shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
  --pf-shadow-hover: 0 18px 40px rgba(0,0,0,0.1);
}

/* ==========================================================
   SECTION
========================================================== */
.process-flow-section {
  padding: 100px 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #fafbfc 100%
  );
}

/* ==========================================================
   HEADER
========================================================== */
.process-flow-header {
  max-width: 760px;
  margin-inline: auto;
}

.process-flow-title {
  font-weight: 800;
  font-size: 2.3rem;
  margin-bottom: 14px;
  color: var(--pf-text-main);
  letter-spacing: -0.02em;
}

.process-flow-subtitle {
  font-size: 1.05rem;
  color: var(--pf-text-muted);
  line-height: 1.6;
}

/* ==========================================================
   STEPS GRID
========================================================== */
.process-flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  position: relative;
}

/* ==========================================================
   STEP CARD
========================================================== */
.process-flow-step {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--pf-border-color);
  border-radius: 18px;
  padding: 36px 28px 34px;
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* subtle top accent */
.process-flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--pf-primary),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.process-flow-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--pf-shadow-hover);
  border-color: rgba(13, 110, 253, 0.25);
}

.process-flow-step:hover::before {
  opacity: 1;
}

/* ==========================================================
   ICON
========================================================== */
.process-flow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pf-primary-soft);
  color: var(--pf-primary);
  font-size: 26px;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.process-flow-step:hover .process-flow-icon {
  background: var(--pf-primary);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================
   CONTENT
========================================================== */
.process-flow-step-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--pf-text-main);
}

.process-flow-step-desc {
  font-size: 0.96rem;
  color: var(--pf-text-muted);
  line-height: 1.65;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 768px) {
  .process-flow-section {
    padding: 80px 0;
  }

  .process-flow-title {
    font-size: 2rem;
  }

  .process-flow-steps {
    gap: 24px;
  }
}
/* ==========================================================
   PROCESS FLOW – SCROLL CONTAINER
========================================================== */
.process-flow-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  margin-inline: -6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.25) transparent;
}

/* Webkit scrollbar */
.process-flow-scroll::-webkit-scrollbar {
  height: 6px;
}
.process-flow-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
}

/* ==========================================================
   STEPS GRID (AUTO FLOW)
========================================================== */
.process-flow-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 32px;
  padding: 6px;
}

/* ==========================================================
   DESKTOP LIMIT (4 ITEMS VISIBLE)
========================================================== */
@media (min-width: 992px) {
  .process-flow-steps {
    grid-auto-columns: calc((100% - (3 * 32px)) / 4);
  }
}
/* ==========================================================
   PROCESS FLOW – PROFESSIONAL SCROLL UX
========================================================== */

/* WRAPPER */
.process-flow-wrapper {
  position: relative;
}

/* SCROLL AREA */
.process-flow-scroll {
  overflow-x: auto;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE */
  cursor: grab;
}

.process-flow-scroll:active {
  cursor: grabbing;
}

.process-flow-scroll::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

/* STEPS GRID */
.process-flow-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 32px;
  padding: 6px 48px; /* space for arrows */
}

/* DESKTOP: 4 ITEMS */
@media (min-width: 992px) {
  .process-flow-steps {
    grid-auto-columns: calc((100% - (3 * 32px)) / 4);
  }
}

/* ==========================================================
   NAVIGATION ARROWS (VISUAL ONLY)
========================================================== */
.pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  pointer-events: none; /* visual hint only */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* LEFT / RIGHT */
.pf-nav-left {
  left: -10px;
}
.pf-nav-right {
  right: -10px;
}

/* SHOW ON HOVER */
.process-flow-wrapper:hover .pf-nav {
  opacity: 1;
}

/* ICON */
.pf-nav i {
  font-size: 14px;
}

/* MOBILE */
@media (max-width: 768px) {
  .pf-nav {
    display: none;
  }
}
