/* ============================================================
   ACADEMICS PAGE — academics.css
   ============================================================ */

.stage-badge {
  display: inline-block; background: var(--red); color: #fff;
  padding: 5px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 10px;
}

.stage-img-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stage-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.stage-img-wrap-sm {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-md); width: 300px; flex-shrink: 0;
}
.stage-img-wrap-sm img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.stage-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;
}

/* ── Journey steps ── */
.prog-journey {
  display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 8px;
}
.journey-step {
  background: var(--white); border-radius: 14px; padding: 32px 28px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--red);
  flex: 1; min-width: 200px; transition: var(--transition);
}
.journey-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.js-num { font-family: var(--serif); font-size: 42px; font-weight: 700; color: rgba(0,30,95,.15); line-height: 1; margin-bottom: 4px; }
.js-grade { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.journey-step h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.journey-step p { font-size: 13px; color: var(--mid); line-height: 1.6; }
.journey-arrow { font-size: 28px; color: var(--border); padding: 0 12px; flex-shrink: 0; }

/* ── Subject grid ── */
.subject-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.subject-grid span {
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--ink); padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; transition: var(--transition);
}
.subject-grid span:hover { border-color: var(--red); color: var(--red); background: rgba(0,158,210,0.10); }

/* ── Subject categories ── */
.subject-categories {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  flex-wrap: wrap;
}
.subcat {
  background: var(--white); border-radius: 14px; padding: 28px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--red);
  transition: var(--transition);
}
.subcat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.subcat h4 {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.subcat ul li {
  font-size: 13px; color: var(--mid); padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  display: flex; align-items: center; gap: 8px;
}
.subcat ul li::before { content: '✓'; color: var(--red); font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* ── Approach list ── */
.approach-list { display: flex; flex-direction: column; gap: 14px; }
.approach-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--light); border-radius: 10px; padding: 14px 18px;
  transition: var(--transition);
}
.approach-item:hover { background: rgba(0,158,210,0.10); }
.approach-item span { font-size: 22px; flex-shrink: 0; }
.approach-item p  { font-size: 15px; color: var(--ink); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .subject-categories { grid-template-columns: 1fr 1fr; }
  .stage-img-wrap img { aspect-ratio: 3/2; }
}
@media (max-width: 768px) {
  .prog-journey { flex-direction: column; align-items: stretch; }
  .journey-arrow { transform: rotate(90deg); text-align: center; padding: 4px 0; }
  .subject-categories { grid-template-columns: 1fr; }
  .stage-img-wrap-sm { width: 100%; }
  .stage-img-wrap-sm img { aspect-ratio: 3/2; }
  .stage-header { flex-direction: column; }
  /* Fix portrait images on mobile */
  .stage-img-wrap img { aspect-ratio: 16/9; max-height: 260px; }
  /* Ensure image grid items that come first in DOM appear after text */
  .grid-2 .stage-img-wrap { order: 2; }
}
@media (max-width: 480px) {
  .journey-step { padding: 24px 20px; }
  .js-num { font-size: 32px; }
  .subcat { padding: 20px; }
}
