/* ============================================================
   SchoolFMS — How It Works Page (howitworks.css)
   ============================================================ */

/* ── Steps Section ── */
.hiw-steps-section { padding: 90px 6%; background: var(--white); }
.hiw-steps-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; justify-content: center;
}
.hiw-step-card {
  flex: 1; min-width: 260px; max-width: 320px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  text-align: center; transition: all 0.3s;
}
.hiw-step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hiw-step-num { font-size: 3.5rem; color: rgba(26,86,219,0.1); line-height: 1; margin-bottom: 12px; }
.hiw-step-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.hiw-step-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.hiw-step-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.75; margin-bottom: 16px; }
.hiw-step-time { font-size: 0.75rem; font-weight: 700; color: var(--blue); background: rgba(26,86,219,0.06); padding: 4px 12px; border-radius: 20px; display: inline-block; }
.hiw-connector { font-size: 1.5rem; color: rgba(26,86,219,0.2); align-self: center; font-weight: 700; padding-top: 20px; }

/* ── Detail Section ── */
.hiw-detail-section { padding: 90px 6%; background: var(--light); }
.hiw-detail-inner { max-width: 1100px; margin: 0 auto; }
.hiw-detail-title { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); margin: 10px 0; }
.hiw-detail-title em { font-style: italic; color: var(--blue); }
.hiw-detail-section > .hiw-detail-inner > .text-center > p { color: var(--gray); font-size: 0.93rem; }
.hiw-workflow-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.hiw-wf-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; transition: all 0.3s; }
.hiw-wf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.hiw-wf-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; }
.hiw-wf-card h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.hiw-wf-card p { font-size: 0.845rem; color: var(--gray); line-height: 1.72; }

@media (max-width: 960px) {
  .hiw-steps-inner { flex-direction: column; align-items: center; }
  .hiw-connector { transform: rotate(90deg); align-self: center; }
  .hiw-workflow-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .hiw-workflow-grid { grid-template-columns: 1fr; } }
