/* ============================================================
   become.css
   Thin polish layer for the "How to Become" page type.
   Link AFTER style.css. Everything here is scoped under
   .how-to-page so it cannot leak into other page types.

   The base timeline / FAQ / clinical-sidebar / info-box styles
   already live in style.css. This file ONLY adds the few
   become-page extras the base does not cover:
     1. An at-a-glance fact strip under the hero
     2. Info-box list spacing (base styles the box, not its list)
     3. Minor timeline-content polish for <strong> lead-ins
   ============================================================ */

/* ---- At-a-glance fact strip (sits right under the intro) ---- */
.how-to-page .become-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff;
}

.how-to-page .become-glance-item {
  text-align: center;
}

.how-to-page .become-glance-item .num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.how-to-page .become-glance-item .lbl {
  font-size: 0.85rem;
  opacity: 0.95;
}

/* ---- Info-box list (base styles the box + heading only) ---- */
.how-to-page .info-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.how-to-page .info-box li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
  color: #2c3e50;
}

.how-to-page .info-box li:last-child {
  margin-bottom: 0;
}

/* ---- Lead-in label inside timeline steps ---- */
.how-to-page .timeline-content strong {
  display: inline-block;
  margin-top: 0.4rem;
  color: #2c3e50;
}

/* ---- Responsive: collapse the glance strip ---- */
@media (max-width: 968px) {
  .how-to-page .become-glance {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .how-to-page .become-glance {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Specialty Explorer (replaces the old specialties accordion)
   Tap a chip -> the matching panel shows. Reuses the site's
   purple accent and card surfaces so it matches the base.
   ============================================================ */

.specialty-explorer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.specialty-explorer .section-header {
  text-align: center;
  margin-bottom: 28px;
}

.specialty-explorer .section-header h2 {
  color: #2c3e50;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 3px solid #6366F1;
}

.specialty-explorer .section-header p {
  max-width: 720px;
  margin: 14px auto 0;
  color: #4a5568;
  line-height: 1.6;
}

/* ---- Chips / tabs ---- */
.spx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.spx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.spx-chip i { color: #6366F1; }

.spx-chip:hover {
  border-color: #6366F1;
  color: #6366F1;
  transform: translateY(-1px);
}

.spx-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-color: transparent;
}

.spx-chip.active i { color: #fff; }

/* ---- Panels: only the active one shows ---- */
.spx-panels {
  position: relative;
}

.spx-panel {
  display: none;
  gap: 22px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.spx-panel.active {
  display: flex;
  animation: spxFade 0.25s ease;
}

@keyframes spxFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spx-panel-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.spx-panel-body h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.spx-panel-body p {
  color: #4a5568;
  line-height: 1.65;
  margin: 0 0 16px;
}

/* ---- Quick facts row ---- */
.spx-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.spx-fact {
  flex: 1 1 200px;
  background: #f8f9ff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}

.spx-fact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366F1;
  font-weight: 700;
  margin-bottom: 3px;
}

.spx-fact-value {
  display: block;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Section-wide link to the full specialties page ---- */
.spx-viewall {
  text-align: center;
  margin-top: 26px;
}

.spx-viewall-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spx-viewall-link i { transition: transform 0.2s ease; }

.spx-viewall-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
}

.spx-viewall-link:hover i { transform: translateX(4px); }

@media (max-width: 640px) {
  .spx-panel { flex-direction: column; }
  .spx-panel-icon { margin-bottom: 4px; }
}
