/* "What We Do" / "How We Work" step cards on sector + project pages (2026-11-06,
   user: "what we do ke cards ko attractive banao"). Hand-written, loaded after
   lx-sections.css by layouts/program.html; not lightify/darkify output.
   Desktop: one row, gold number badge on top, icon tile, arrow to the next step.
   Tablet: wrapped grid. Phone: vertical timeline (number left, text right).
   Base colours = light / High contrast; html:not(.hc) = the site's dark theme. */

.lx-inner .steps--flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; padding: 18px 0 6px; margin: 0; list-style: none; max-width: none; }
.lx-inner .steps--flow .steps__item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 14px 20px; border-radius: 18px; overflow: visible;
  transition: translate .25s ease, box-shadow .25s ease; }
.lx-inner .steps--flow .steps__item::after { content: none; }                        /* old corner counter */
.lx-inner .steps--flow .steps__item::before {                                          /* gold strip on top */
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, #ffd700 20%, #ffd700 80%, transparent); }
.lx-inner .steps--flow .steps__num {
  position: absolute; top: -16px; left: 50%; translate: -50% 0; z-index: 1;
  min-width: 40px; height: 32px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px;
  background: #ffd700; color: #000; font: 800 14px/1 'Noto Serif', Georgia, serif; letter-spacing: .02em;
  box-shadow: 0 6px 16px -6px rgba(255, 215, 0, .55), 0 0 0 4px rgba(255, 215, 0, .14); }
.lx-inner .steps--flow .steps__mark { justify-content: center; }
.lx-inner .steps--flow .steps__line { display: none; }
.lx-inner .steps--flow .steps__icon { width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 16px;
  background: linear-gradient(145deg, #3d4c39, #232d21); color: #ffd700; box-shadow: inset 0 0 0 1px rgba(255, 215, 0, .3), 0 12px 22px -14px rgba(0, 0, 0, .6); transition: transform .25s ease; }
.lx-inner .steps--flow .steps__icon svg { width: 26px; height: 26px; fill: currentColor; }
.lx-inner .steps--flow .steps__text { margin: 14px 0 0; padding: 0; text-align: center !important; hyphens: none; font: 600 14.5px/1.5 'Roboto', 'Segoe UI', sans-serif; }
.lx-inner .steps--flow .steps__item:hover { translate: 0 -6px; box-shadow: 0 0 0 1px rgba(255, 215, 0, .55), 0 24px 40px -22px rgba(255, 215, 0, .35); }
.lx-inner .steps--flow .steps__item:hover .steps__icon { transform: scale(1.08) rotate(-4deg); }

/* desktop, all steps in one row: arrow between cards shows the sequence */
@media (min-width: 1100px) {
  .lx-inner .steps--flow { grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); grid-auto-flow: column; }
  .lx-inner .steps--flow .steps__item:not(:last-child) > .steps__mark::after {
    content: ""; position: absolute; right: -19px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; z-index: 2;
    background: #ffd700; clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%); }
}

/* phones: vertical timeline */
@media (max-width: 600px) {
  .lx-inner .steps--flow { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; position: relative; }
  .lx-inner .steps--flow::before { content: ""; position: absolute; left: 25px; top: 24px; bottom: 24px; width: 2px;
    background: repeating-linear-gradient(to bottom, #ffd700 0 6px, transparent 6px 12px); opacity: .7; }
  .lx-inner .steps--flow .steps__item { flex-direction: row; align-items: center; gap: 12px; padding: 14px 14px 14px 64px; text-align: left; min-height: 72px; }
  .lx-inner .steps--flow .steps__item::before { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, transparent, #ffd700 25%, #ffd700 75%, transparent); }
  .lx-inner .steps--flow .steps__num { left: 8px; top: 50%; translate: 0 -50%; min-width: 36px; height: 36px; padding: 0; font-size: 13px; }
  .lx-inner .steps--flow .steps__icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
  .lx-inner .steps--flow .steps__icon svg { width: 20px; height: 20px; }
  .lx-inner .steps--flow .steps__text { margin: 0; text-align: left !important; font-size: 14.5px; }
  .lx-inner .steps--flow .steps__item:hover { translate: 0 -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-inner .steps--flow .steps__item, .lx-inner .steps--flow .steps__icon { transition: none; }
  .lx-inner .steps--flow .steps__item:hover { translate: none; }
  .lx-inner .steps--flow .steps__item:hover .steps__icon { transform: none; }
}

/* dark theme (always on): icon tile + text colour (card background/ring stay from brand-borders.css); beats theme-dark.gen.css (.steps__icon yellow fill) */
html:not(.hc) body.lx-inner .steps--flow .steps__icon { border: 0; background: linear-gradient(145deg, #3d4c39, #1c2519); color: #ffd700; box-shadow: inset 0 0 0 1px rgba(255, 215, 0, .35), 0 12px 22px -14px rgba(0, 0, 0, .7); }
html:not(.hc) body.lx-inner .steps--flow .steps__text { color: #fff; }
html:not(.hc) body.lx-inner .steps--flow .steps__num { color: #000; }
