/* ==========================================================================
   PAGES: blocks used by inner pages (features, packages, courses, team,
   blog, events, results, certificates) and the animated product widgets.
   ========================================================================== */

/* ---- Feature rows (alternating image and text) ------------------------- */

.feature-rows {
  display: grid;
  gap: clamp(56px, 8vw, 110px);
}

.feature-row {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

@media (min-width: 992px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row--flip .feature-row__copy { order: 2; }
}

.feature-row__copy .lead {
  margin-bottom: 26px;
}

/* ---- Packages ----------------------------------------------------------- */

.packages {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3);
}

.package:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.package h3 {
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.package__for {
  color: var(--muted);
  min-height: 3em;
}

.package .check-list {
  margin: 20px 0 28px;
}

.package .btn-hl {
  margin-top: auto;
}

.package--featured {
  background: var(--grad-night);
  border-color: transparent;
  color: var(--on-dark-muted);
  box-shadow: var(--shadow-lg);
}

.package--featured h3 {
  color: var(--white);
}

.package--featured .package__for {
  color: var(--on-dark-muted);
}

.package--featured .check-list li {
  color: var(--on-dark);
}

.package--featured .check-list li::before {
  background: rgba(201, 162, 255, 0.16);
  color: var(--lavender-300);
}

.package__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Result sheet widget ------------------------------------------------ */

.result-sheet {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 80px rgba(10, 8, 32, 0.45), 0 0 0 1px rgba(201, 162, 255, 0.2);
}

.result-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.result-sheet__head strong {
  display: block;
  font-family: var(--font-display);
}

.result-sheet__head small {
  color: var(--muted);
}

.result-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.result-sheet th {
  text-align: left;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}

.result-sheet td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}

.result-sheet tr.is-filled td {
  background: linear-gradient(90deg, var(--indigo-50), transparent 70%);
}

.result-sheet td[data-score] {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result-sheet [data-grade] {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.45s var(--ease-spring);
}

.result-sheet [data-grade].is-visible {
  opacity: 1;
  transform: scale(1);
}

.result-sheet__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.result-sheet__chart span {
  flex: 1;
  height: var(--h, 4%);
  border-radius: 6px 6px 2px 2px;
  background: var(--grad-brand);
  transition: height 0.9s var(--ease-out);
}

.result-sheet__stamp {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--night-900);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  opacity: 0;
  transform: rotate(-6deg) scale(1.4);
  transition: all 0.5s 1.8s var(--ease-spring);
}

.result-sheet.is-filled .result-sheet__stamp {
  opacity: 1;
  transform: rotate(-6deg) scale(1);
}

/* ---- Device frames (digital solutions) --------------------------------- */

.devices {
  position: relative;
  padding: 20px 40px 60px 0;
}

.device-laptop {
  position: relative;
  border-radius: 16px 16px 6px 6px;
  padding: 12px 12px 18px;
  background: var(--night-800);
  box-shadow: 0 40px 80px rgba(10, 8, 32, 0.55), 0 0 0 1px rgba(201, 162, 255, 0.18);
  transition: transform 0.4s var(--ease-out);
}

.device-laptop::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -14px;
  height: 14px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(var(--night-700), var(--night-900));
}

.device-screen {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--page);
}

.device-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  padding: 8px;
  border-radius: 26px;
  background: var(--night-900);
  box-shadow: 0 30px 60px rgba(10, 8, 32, 0.6), 0 0 0 1px rgba(201, 162, 255, 0.25);
  animation: float 7s var(--ease-in-out) infinite;
}

.device-phone .device-screen {
  aspect-ratio: 9 / 18;
  border-radius: 20px;
}

/* Mock interfaces drawn in HTML so they stay sharp at any size */
.mock-ui {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.mock-ui__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--night-900);
}

.mock-ui__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--night-600);
}

.mock-ui__bar i:first-child { background: var(--magenta-500); }

.mock-ui__body {
  display: grid;
  grid-template-columns: 22% 1fr;
}

.mock-ui__side {
  background: var(--night-800);
  padding: 10px 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.mock-ui__side span {
  height: 6px;
  border-radius: 3px;
  background: rgba(201, 162, 255, 0.25);
}

.mock-ui__side span:first-child {
  background: var(--grad-brand);
}

.mock-ui__main {
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.mock-ui__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mock-ui__tiles span {
  height: 34px;
  border-radius: 6px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--line);
}

.mock-ui__tiles span:first-child {
  background: var(--grad-brand);
}

.mock-ui__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.mock-ui__chart span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--violet-400);
  transform-origin: bottom;
  animation: grow-bar 1.2s var(--ease-out) both;
}

.mock-ui__chart span:nth-child(odd) { background: var(--indigo-400); }
.mock-ui__chart span:nth-child(2) { animation-delay: 0.1s; }
.mock-ui__chart span:nth-child(3) { animation-delay: 0.2s; }
.mock-ui__chart span:nth-child(4) { animation-delay: 0.3s; }
.mock-ui__chart span:nth-child(5) { animation-delay: 0.4s; }
.mock-ui__chart span:nth-child(6) { animation-delay: 0.5s; }
.mock-ui__chart span:nth-child(7) { animation-delay: 0.6s; }

.mock-ui__rows span {
  display: block;
  height: 6px;
  margin-bottom: 5px;
  border-radius: 3px;
  background: var(--surface-3);
}

.mock-phone {
  height: 100%;
  padding: 14px 10px;
  background: var(--grad-night);
  display: grid;
  align-content: start;
  gap: 8px;
}

.mock-phone span {
  height: 26px;
  border-radius: 8px;
  background: rgba(201, 162, 255, 0.14);
}

.mock-phone span:first-child {
  height: 60px;
  background: var(--grad-brand);
}

/* ---- Code typing ------------------------------------------------------- */

.code-card {
  border-radius: var(--radius-lg);
  background: var(--night-950);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.code-card__bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
}

.code-card__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--night-600);
}

.code-card__bar i:first-child { background: var(--magenta-500); }
.code-card__bar i:nth-child(2) { background: var(--violet-500); }
.code-card__bar i:nth-child(3) { background: var(--indigo-500); }

.code-card pre {
  margin: 0;
  padding: 20px;
  min-height: 230px;
  color: var(--lavender-200);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.code-card pre.is-typing::after {
  content: "\258B";
  color: var(--magenta-400);
  animation: blink 1s steps(1) infinite;
}

/* ---- Course cards ------------------------------------------------------- */

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: var(--body);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-2);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-200);
  color: var(--body);
}

.course-card[hidden] {
  display: none;
}

.course-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--night-800);
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.course-card__media-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.course-card:hover .course-card__media img {
  transform: scale(1.06);
}

.course-card__media-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 14, 43, 0.75));
}

.course-card__icon {
  position: absolute;
  left: 18px;
  bottom: -22px;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: var(--glow-indigo);
  transition: transform var(--dur-3) var(--ease-spring);
}

.course-card:hover .course-card__icon {
  transform: rotate(-8deg) scale(1.08);
}

.course-card__ring {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  width: 46px;
  height: 46px;
}

.course-card__ring circle {
  fill: none;
  stroke-width: 4;
}

.course-card__ring .bg { stroke: rgba(255, 255, 255, 0.25); }

.course-card__ring .fg {
  stroke: var(--white);
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s var(--ease-out);
}

.course-card:hover .course-card__ring .fg {
  stroke-dashoffset: 20;
}

.course-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 36px 22px 22px;
}

.course-card__body h3 {
  font-size: var(--fs-h4);
  margin: 8px 0;
}

.course-card__fees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
}

.course-card__fees span {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.course-card__fees strong {
  color: var(--ink);
}

.course-card .text-link {
  margin-top: auto;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-chips button {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: all var(--dur-2) var(--ease-out);
}

.filter-chips button:hover {
  border-color: var(--indigo-300);
}

.filter-chips button[aria-pressed="true"] {
  background: var(--night-900);
  border-color: var(--night-900);
  color: var(--white);
}

/* ---- Fee table on course detail ---------------------------------------- */

.fee-table {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.fee-row strong {
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: right;
  color: var(--ink);
}

.sticky-card {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.sticky-card h2 {
  font-size: var(--fs-h4);
}

/* ---- Form pages --------------------------------------------------------- */

.form-page {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 992px) {
  .form-page { grid-template-columns: 0.8fr 1.2fr; }
  .form-page__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* On phones the form comes first; the reassurance column follows it. */
@media (max-width: 991.98px) {
  .form-page__aside { order: 2; }
}

.form-page__aside h2 {
  font-size: var(--fs-h3);
}

.aside-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.aside-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.aside-list li > i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  color: var(--indigo-600);
}

.aside-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
}

.aside-list span {
  font-size: var(--fs-sm);
}

.contact-strip {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-strip a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--dur-2) var(--ease-out);
}

.contact-strip a:hover {
  border-color: var(--indigo-200);
  transform: translateX(4px);
  color: var(--ink);
}

.contact-strip a > i:first-child {
  color: var(--violet-500);
  font-size: 1.2rem;
}

.contact-strip a > i:last-child {
  margin-left: auto;
  color: var(--muted);
}

/* ---- Team -------------------------------------------------------------- */

.team-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-900);
  aspect-ratio: 3 / 4;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card__info {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(17, 14, 43, 0.96) 50%);
  color: var(--on-dark-muted);
}

.team-card__info h3 {
  color: var(--white);
  font-size: var(--fs-h4);
  margin: 0;
}

.team-card__role {
  display: block;
  margin: 2px 0 8px;
  color: var(--lavender-300);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.team-card__bio {
  font-size: var(--fs-sm);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out), opacity 0.4s;
}

.team-card:hover .team-card__bio,
.team-card:focus-within .team-card__bio {
  max-height: 140px;
  opacity: 1;
}

@media (hover: none) {
  .team-card__bio { max-height: none; opacity: 1; }
}

/* ---- Gallery ----------------------------------------------------------- */

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  grid-auto-rows: 200px;
}

.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--night-800);
}

.gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 575.98px) {
  .gallery figure:first-child { grid-column: auto; grid-row: auto; }
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(17, 14, 43, 0.85));
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

.gallery figure:hover figcaption {
  transform: none;
}

@media (hover: none) {
  .gallery figcaption { transform: none; }
}

/* ---- Blog -------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  color: var(--body);
  text-decoration: none;
  transition: all var(--dur-3) var(--ease-out);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--body);
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--night-800);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-card__body h3 {
  font-size: var(--fs-h4);
  margin: 0;
}

.post-card__body p {
  margin: 0;
}

.post-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.post-cover {
  margin: 0 0 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow-lg);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Lists (jobs, events) ---------------------------------------------- */

.list-stack {
  display: grid;
  gap: 14px;
}

.list-card {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all var(--dur-3) var(--ease-out);
}

@media (min-width: 768px) {
  .list-card { grid-template-columns: 1fr auto; }
}

.list-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-md);
}

.list-card h3 {
  font-size: var(--fs-h4);
  margin: 0 0 6px;
}

.list-card p {
  margin: 0;
}

.list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.list-card details {
  grid-column: 1 / -1;
}

.list-card details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--indigo-600);
}

.event-feature {
  display: grid;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .event-feature { grid-template-columns: 0.9fr 1.1fr; }
}

.event-feature__media {
  min-height: 240px;
  background: var(--night-800);
}

.event-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-feature__body {
  padding: clamp(22px, 3vw, 36px);
}

.event-feature__body h3 {
  font-size: var(--fs-h3);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.event-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.event-meta i {
  color: var(--violet-500);
}

/* ---- Lookup panels (results, certificates) ---------------------------- */

.lookup {
  max-width: 560px;
  margin: -90px auto 0;
  position: relative;
  z-index: 2;
}

.result-slip {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.6s var(--ease-out);
}

.result-slip__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--violet-500);
}

.result-slip__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-slip__brand img {
  width: 52px;
  height: 52px;
}

.result-slip__brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
}

.result-slip__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.result-slip__meta div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.result-slip__meta dt {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-slip__meta dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.grade-pill {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-family: var(--font-display);
  font-weight: 700;
}

.grade-pill--low {
  background: var(--danger-soft);
  color: var(--danger);
}

.certificate {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--lavender-200);
}

.certificate__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-weight: 700;
  animation: pop-in 0.6s var(--ease-out);
}

.certificate__status--bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.certificate h2 {
  font-size: var(--fs-h2);
  margin: 18px 0 6px;
}

.certificate dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.certificate dl div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.certificate dt {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.certificate dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

/* ---- Contact map ------------------------------------------------------- */

.map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Student portal ---------------------------------------------------- */

.portal-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 992px) {
  .portal-grid { grid-template-columns: 1.4fr 1fr; }
}

.panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel h2 {
  font-size: var(--fs-h4);
  margin-bottom: 16px;
}

.material {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: all var(--dur-2) var(--ease-out);
}

.material + .material {
  margin-top: 10px;
}

.material:hover {
  border-color: var(--indigo-200);
  transform: translateX(4px);
  color: var(--ink);
}

.material > i:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  color: var(--indigo-600);
}

.material > i:last-child {
  margin-left: auto;
  color: var(--muted);
}

/* ---- Pricing ------------------------------------------------------------ */

.container--narrow {
  max-width: 920px;
}

.package__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.package__price strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.package--featured .package__price {
  border-top-color: var(--line-dark);
  color: var(--on-dark-muted);
}

.package--featured .package__price strong {
  color: var(--white);
}

/* Hero: the three starting prices as a short ledger. */
.price-peek {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.price-peek__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.price-peek__row span {
  font-weight: 700;
  color: var(--ink);
}

.price-peek__row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.price-peek__row small {
  grid-column: 2;
  justify-self: end;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.price-peek__row.is-featured {
  background: var(--grad-night);
}

.price-peek__row.is-featured span,
.price-peek__row.is-featured strong {
  color: var(--white);
}

.price-peek__row.is-featured small {
  color: var(--on-dark-muted);
}

/* Comparison table: fits a phone without scrolling sideways. */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.compare__table th,
.compare__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.compare__table thead th {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--surface-2);
  text-align: center;
}

.compare__table thead th:first-child,
.compare__table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.compare__table td {
  width: 18%;
  text-align: center;
}

.compare__table .is-featured {
  background: color-mix(in srgb, var(--lavender-100) 55%, transparent);
}

.compare__yes {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo-600);
  color: var(--white);
  font-size: 0.85rem;
}

.compare__no {
  color: var(--line-strong);
  font-weight: 700;
}

.compare__level {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 575.98px) {
  .compare__table th,
  .compare__table td {
    padding: 10px 6px;
  }

  .compare__table thead th {
    font-size: var(--fs-xs);
  }

  .compare__table tbody th {
    padding-left: 12px;
  }

  .compare__level {
    font-size: var(--fs-xs);
  }
}

/* Add-ons: a two-column price list. */
.add-ons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.add-ons li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.add-ons strong {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  text-align: right;
}

.add-ons small {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}

/* Quotes and other multi-line thank-you messages keep their line breaks. */
.form-success__text,
.message-card p {
  white-space: pre-line;
}

/* ---- Print: results and certificates ---------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .mobile-bar,
  .whatsapp-float,
  .page-hero,
  .no-print,
  .cta-band,
  .skip-link {
    display: none !important;
  }

  body {
    background: var(--white);
    padding: 0;
  }

  .result-slip,
  .certificate {
    box-shadow: none;
    border: 1px solid var(--line-strong);
  }

  .lookup {
    margin-top: 0;
  }
}
