/* ============================================================
   GO CAMTY ACADEMY — How It Works Page CSS
   ============================================================ */

/* ── Stats strip ────────────────────────────────────────────── */
.hiw-stats-strip { background: #fff; }

.hiw-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.hiw-strip-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .25rem;
}
.hiw-strip-red   { background: var(--gc-red-pale);   color: var(--gc-red); }
.hiw-strip-navy  { background: var(--gc-navy-pale);  color: var(--gc-navy); }
.hiw-strip-green { background: #d1fae5;              color: var(--gc-green); }
.hiw-strip-gold  { background: #fef3c7;              color: #92400e; }

.hiw-strip-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gc-gray-900);
  line-height: 1;
}
.hiw-strip-label {
  font-size: .75rem;
  color: var(--gc-gray-500);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Main Timeline ──────────────────────────────────────────── */
.hiw-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical centre line */
.hiw-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--gc-red-pale) 0%,
    var(--gc-navy-pale) 50%,
    #d1fae5 100%);
  transform: translateX(-50%);
  z-index: 0;
}

/* Each step row */
.hiw-step {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 3.5rem;
}
.hiw-step:last-child { margin-bottom: 0; }

/* Left steps: card | dot | empty */
.hiw-step-left  { }
.hiw-step-right { }

/* Connector (centre column) */
.hiw-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.hiw-line {
  width: 2px;
  flex: 1;
  background: transparent;
}
.hiw-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px currentColor;
  flex-shrink: 0;
}
.hiw-dot-red   { background: var(--gc-red-pale);  color: var(--gc-red);   box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--gc-red); }
.hiw-dot-navy  { background: var(--gc-navy-pale); color: var(--gc-navy);  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--gc-navy); }
.hiw-dot-green { background: #d1fae5;             color: var(--gc-green); box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--gc-green); }
.hiw-dot-gold  { background: #fef3c7;             color: #92400e;         box-shadow: 0 0 0 6px #fff, 0 0 0 8px #f59e0b; }

/* Step card */
.hiw-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gc-gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
}
.hiw-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }

/* Left: card goes to col 1, connector col 2, empty col 3 */
.hiw-step-left .hiw-card       { grid-column: 1; grid-row: 1; margin-right: 1.5rem; }
.hiw-step-left .hiw-connector  { grid-column: 2; grid-row: 1; }

/* Right: empty col 1, connector col 2, card col 3 */
.hiw-step-right .hiw-connector { grid-column: 2; grid-row: 1; }
.hiw-step-right .hiw-card      { grid-column: 3; grid-row: 1; margin-left: 1.5rem; }

.hiw-card-inner {
  display: flex;
  gap: 0;
  position: relative;
}

.hiw-step-num {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gc-gray-100);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Image side */
.hiw-card-visual {
  flex-shrink: 0;
  width: 160px;
}
.hiw-img-wrap {
  height: 100%;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.hiw-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hiw-img-red   { background: var(--gc-red-pale); }
.hiw-img-navy  { background: var(--gc-navy-pale); }
.hiw-img-green { background: #d1fae5; }
.hiw-img-gold  { background: #fef3c7; }

.hiw-img-icon {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  opacity: .25;
  pointer-events: none;
}
.hiw-img-placeholder .hiw-img-icon { opacity: .4; }
.hiw-img-placeholder img { display: none; }

/* Text side */
.hiw-card-body {
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  flex: 1;
}
.hiw-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: var(--gc-gray-900);
}
.hiw-card-desc {
  font-size: .9rem;
  color: var(--gc-gray-600, #555);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Feature badges */
.hiw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}
.hiw-badge-red   { background: var(--gc-red-pale);  color: var(--gc-red-dark); }
.hiw-badge-navy  { background: var(--gc-navy-pale); color: var(--gc-navy-dark); }
.hiw-badge-green { background: #d1fae5;             color: #065f46; }
.hiw-badge-gold  { background: #fef3c7;             color: #78350f; }
.hiw-badge i     { font-size: .8rem; }

/* ── Platform features ──────────────────────────────────────── */
.hiw-platform-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--gc-gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
  height: 100%;
}
.hiw-platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}
.hiw-platform-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hiw-platform-title { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.hiw-platform-desc  { font-size: .82rem; color: var(--gc-gray-500); margin: 0; line-height: 1.6; }

/* Fix Bootstrap text-primary to use red */
.text-primary { color: var(--gc-red) !important; }
.bg-primary.bg-opacity-10 { background-color: var(--gc-red-pale) !important; }
.text-navy   { color: var(--gc-navy); }
.bg-navy.bg-opacity-10 { background-color: var(--gc-navy-pale); }

/* ── Program cards ──────────────────────────────────────────── */
.hiw-prog-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--gc-gray-200);
  transition: all var(--transition);
}
.hiw-prog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.hiw-prog-red   { background: var(--gc-red-pale);   border-color: rgba(227,11,19,.15); }
.hiw-prog-gold  { background: #fff8e1;              border-color: rgba(245,158,11,.2); }
.hiw-prog-navy  { background: var(--gc-navy-pale);  border-color: rgba(47,80,128,.15); }

.hiw-prog-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.hiw-prog-red  .hiw-prog-icon  { background: rgba(227,11,19,.12);  color: var(--gc-red); }
.hiw-prog-gold .hiw-prog-icon  { background: rgba(245,158,11,.15); color: #92400e; }
.hiw-prog-navy .hiw-prog-icon  { background: rgba(47,80,128,.12);  color: var(--gc-navy); }

.hiw-prog-title { font-size: 1.2rem; font-weight: 800; margin-bottom: .25rem; }
.hiw-prog-age   { font-size: .82rem; color: var(--gc-gray-500); margin-bottom: 1rem; }
.hiw-prog-features {
  list-style: none; padding: 0; margin: 0 0 .5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.hiw-prog-features li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .87rem; color: var(--gc-gray-700);
}
.hiw-prog-features i { color: var(--gc-green); font-size: .9rem; }

.btn-hiw-prog-red  { background: var(--gc-red);   border-color: var(--gc-red);   color: #fff; border-radius: var(--radius-full); font-weight:600; }
.btn-hiw-prog-red:hover  { background: var(--gc-red-dark); border-color: var(--gc-red-dark); color:#fff; }
.btn-hiw-prog-gold { background: #f59e0b; border-color: #f59e0b; color: #fff; border-radius: var(--radius-full); font-weight:600; }
.btn-hiw-prog-gold:hover { background: #d97706; border-color: #d97706; color:#fff; }
.btn-hiw-prog-navy { background: var(--gc-navy);  border-color: var(--gc-navy);  color: #fff; border-radius: var(--radius-full); font-weight:600; }
.btn-hiw-prog-navy:hover { background: var(--gc-navy-dark); border-color: var(--gc-navy-dark); color:#fff; }

/* ── Responsive Timeline ────────────────────────────────────── */
@media (max-width: 767px) {
  .hiw-timeline::before {
    left: 28px;
    transform: none;
  }

  .hiw-step {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto;
    margin-bottom: 2rem;
  }

  /* Both left and right become the same on mobile */
  .hiw-step-left .hiw-card,
  .hiw-step-right .hiw-card {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 0 .75rem;
  }
  .hiw-step-left .hiw-connector,
  .hiw-step-right .hiw-connector {
    grid-column: 1;
    grid-row: 1;
  }

  .hiw-card-inner { flex-direction: column; }
  .hiw-card-visual { width: 100%; }
  .hiw-img-wrap { min-height: 120px; }
  .hiw-card-body { padding: 1.25rem; }
  .hiw-step-num { font-size: 2rem; }

  .hiw-dot { width: 44px; height: 44px; font-size: 1rem; }
}
