@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&display=swap');
/*
 * Tech6Sense homepage (views/home/index.php). Loaded only on "/" through $extraCss.
 * Everything is namespaced .hm-* and built on the theme variables in app.css, so light and dark
 * both work without separate colour sets. The promo slider keeps its .pb-* names (admin banners).
 */

.hm {
  --hm-ink: var(--text-primary);
  --hm-sub: var(--text-secondary);
  --hm-faint: var(--text-muted);
  --hm-line: var(--border);
  --hm-card: var(--bg-card);
  --hm-green: #0d6e56;
  --hm-accent-ink: #0d6e56;          /* accent used as text or icon colour */
  --hm-soft: #ecfdf5;                /* tinted surface behind accent text */
  --hm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .22);
  --hm-shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 34px 70px -34px rgba(15, 23, 42, .38);
}
[data-theme="dark"] .hm {
  --hm-accent-ink: #34d399;
  --hm-soft: rgba(16, 185, 129, .12);
  --hm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --hm-shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 70px -30px rgba(0, 0, 0, .8);
}
.hm a { text-decoration: none; }

/* ── Colour tones for monograms and icon tiles ─────────────────────────── */
.hm-tone--green  { --t: #15803d; --tb: #dcfce7; --g1: #064e3b; --g2: #10b981; }
.hm-tone--blue   { --t: #1d4ed8; --tb: #dbeafe; --g1: #1e3a8a; --g2: #3b82f6; }
.hm-tone--violet { --t: #6d28d9; --tb: #ede9fe; --g1: #4c1d95; --g2: #8b5cf6; }
.hm-tone--amber  { --t: #b45309; --tb: #fef3c7; --g1: #92400e; --g2: #f59e0b; }
.hm-tone--rose   { --t: #be123c; --tb: #ffe4e6; --g1: #9f1239; --g2: #f43f5e; }
.hm-tone--cyan   { --t: #0e7490; --tb: #cffafe; --g1: #155e75; --g2: #06b6d4; }
.hm-tone--indigo { --t: #4338ca; --tb: #e0e7ff; --g1: #312e81; --g2: #6366f1; }
.hm-tone--teal   { --t: #0f766e; --tb: #ccfbf1; --g1: #115e59; --g2: #14b8a6; }
[data-theme="dark"] .hm-tone--green  { --t: #4ade80; --tb: rgba(34, 197, 94, .16); }
[data-theme="dark"] .hm-tone--blue   { --t: #60a5fa; --tb: rgba(59, 130, 246, .18); }
[data-theme="dark"] .hm-tone--violet { --t: #a78bfa; --tb: rgba(139, 92, 246, .18); }
[data-theme="dark"] .hm-tone--amber  { --t: #fbbf24; --tb: rgba(245, 158, 11, .16); }
[data-theme="dark"] .hm-tone--rose   { --t: #fb7185; --tb: rgba(244, 63, 94, .16); }
[data-theme="dark"] .hm-tone--cyan   { --t: #22d3ee; --tb: rgba(6, 182, 212, .16); }
[data-theme="dark"] .hm-tone--indigo { --t: #818cf8; --tb: rgba(99, 102, 241, .18); }
[data-theme="dark"] .hm-tone--teal   { --t: #2dd4bf; --tb: rgba(20, 184, 166, .16); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.hm-btn svg { transition: transform .18s ease; }
.hm-btn:hover svg { transform: translateX(3px); }
.hm-btn--primary { background: linear-gradient(135deg, #0d6e56, #059669); color: #fff; box-shadow: 0 12px 24px -12px rgba(13, 110, 86, .75); }
.hm-btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(13, 110, 86, .85); }
.hm-btn--ghost { background: var(--hm-card); border-color: var(--border-strong); color: var(--hm-ink); }
.hm-btn--ghost:hover { border-color: var(--hm-accent-ink); color: var(--hm-accent-ink); }
.hm-btn--white { background: #fff; color: #0f172a; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.hm-btn--white:hover { color: #0f172a; transform: translateY(-1px); }
.hm-btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); color: #fff; }
.hm-btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hm-btn--sm { height: 38px; padding: 0 15px; font-size: .84rem; border-radius: 10px; }

/* ── Section scaffolding ───────────────────────────────────────────────── */
.hm-sec { padding: 50px 0; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.hm-head--center { justify-content: center; text-align: center; margin-bottom: 30px; }
.hm-label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hm-accent-ink);
}
.hm-label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hm-label--light { color: rgba(255, 255, 255, .78); }
.hm-head h2, .hm-panel__head h2 {
  margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.2; color: var(--hm-ink);
}
.hm-head__sub { margin: 6px 0 0; font-size: .95rem; color: var(--hm-sub); }
.hm-head__side { display: flex; align-items: center; gap: 14px; }
.hm-arrows { display: flex; gap: 8px; }
.hm-arrows[hidden] { display: none; }
.hm-arrows button {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--hm-card); color: var(--hm-ink); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.hm-arrows button:hover { background: var(--hm-green); border-color: var(--hm-green); color: #fff; }
.hm-arrows button:disabled { opacity: .4; cursor: default; background: var(--hm-card); color: var(--hm-ink); border-color: var(--border-strong); }
.hm-arrows--light button { background: rgba(4, 53, 43, .62); color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm-arrows--light button:hover { background: #fff; color: #0d6e56; border-color: #fff; }
.hm-more {
  display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--hm-accent-ink); white-space: nowrap;
  padding: 6px 0;
}
.hm-more svg { transition: transform .18s ease; }
.hm-more:hover { color: var(--hm-accent-ink); }
.hm-more:hover svg { transform: translateX(3px); }

/* Reveal on scroll: only when the script adds .hm--anim, so nothing is ever hidden without it. */
.hm--anim [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.hm--anim [data-rv].is-in { opacity: 1; transform: none; }

/* ══ Promo banners ═════════════════════════════════════════════════════── */
.pb-section {
  --pb-ratio: 5 / 2;                 /* the one banner size: upload 1400x560 px (matches the admin banner forms) */
  background: transparent !important; padding: 14px 0 0; margin-bottom: 0 !important; border: 0 !important; position: relative; z-index: 1;
}
.pb-wrap { position: relative; max-width: 1248px; margin: 0 auto; padding: 0 48px; }
.pb-viewport { overflow: hidden; border-radius: 14px; }
.pb-track { display: flex; gap: 14px; transition: transform .48s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.pb-card {
  flex: 0 0 calc((100% - 28px) / 3); aspect-ratio: var(--pb-ratio); border-radius: 14px; display: flex; align-items: center; padding: 10px 14px;
  position: relative; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .09); transition: transform .18s ease, box-shadow .18s ease;
}
.pb-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0, 0, 0, .14); }
/* Image banners are never cropped: an off-size image sits on a blurred copy of itself. */
.pb-card--image { display: block; padding: 0; background: #0b1720; }
.pb-card__fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px); transform: scale(1.15); }
.pb-card__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.pb-tag {
  position: absolute; top: 8px; right: 10px; z-index: 3; max-width: 80px; padding: 2px 7px; border-radius: 4px; color: #fff;
  font-size: .5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.pb-blob--1 { width: 110px; height: 110px; top: -36px; right: 62px; }
.pb-blob--2 { width: 70px; height: 70px; bottom: -26px; right: 18px; }
.pb-body { flex: 1; min-width: 0; padding-top: 12px; padding-right: 66px; z-index: 1; }
.pb-brand { display: flex; align-items: center; gap: 4px; font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 5px; }
.pb-title { font-size: .86rem; font-weight: 800; line-height: 1.25; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sub { font-size: .68rem; line-height: 1.35; margin: 0 0 7px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pb-cta { display: inline-flex; align-items: center; font-size: .66rem; font-weight: 700; padding: 3px 10px; border: 1.5px solid; border-radius: 50px; white-space: nowrap; }
.pb-badge {
  position: absolute; right: 12px; bottom: 10px; width: 50px; height: 50px; border-radius: 50%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 3px 14px rgba(0, 0, 0, .22);
}
.pb-badge::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); animation: pbSpin 12s linear infinite; }
@keyframes pbSpin { to { transform: rotate(360deg); } }
.pb-badge-v { font-size: .82rem; font-weight: 900; color: #fff; line-height: 1; }
.pb-badge-l { font-size: .44rem; font-weight: 700; color: rgba(255, 255, 255, .82); text-transform: uppercase; letter-spacing: .04em; }
.pb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--hm-line); background: var(--hm-card); color: var(--hm-ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--hm-shadow); transition: background .15s, color .15s, border-color .15s;
}
.pb-arrow:hover { background: var(--hm-green); border-color: var(--hm-green); color: #fff; }
.pb-arrow--prev { left: 6px; }
.pb-arrow--next { right: 6px; }
@media (max-width: 1100px) {
  .pb-wrap { padding: 0 40px; }
  .pb-card { padding: 8px 12px; }
  .pb-body { padding-top: 10px; padding-right: 56px; }
  .pb-title { font-size: .8rem; }
  .pb-sub { display: none; }
  .pb-badge { width: 44px; height: 44px; }
  .pb-badge-v { font-size: .74rem; }
}
@media (max-width: 900px) {
  .pb-wrap { padding: 0 32px; }
  .pb-card { flex-basis: calc((100% - 14px) / 2); padding: 10px 16px; }
  .pb-body { padding-right: 70px; }
  .pb-title { font-size: .9rem; }
  .pb-badge { width: 52px; height: 52px; right: 14px; bottom: 12px; }
  .pb-badge-v { font-size: .9rem; }
}
@media (max-width: 640px) {
  .pb-section { padding: 0 0 22px; }
  .pb-wrap { padding: 0 12px; }
  .pb-track { gap: 0; }
  .pb-card { flex: 0 0 100%; border-radius: 12px; }
  .pb-viewport { border-radius: 12px; }
  .pb-arrow { display: none; }
  .pb-badge { width: 46px; height: 46px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .pb-body { padding-right: 62px; padding-top: 10px; }
  .pb-title { font-size: .84rem; }
}

/* ══ Hero ══════════════════════════════════════════════════════════════── */
/* Banners and hero sit on one shared background so they read as a single block. */
.hm-top {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 440px at 8% 0%, rgba(16, 185, 129, .17), transparent 62%),
    radial-gradient(720px 400px at 96% 0%, rgba(59, 130, 246, .11), transparent 62%),
    linear-gradient(180deg, #f3fbf8 0%, var(--bg-primary) 100%);
}
.hm-hero { position: relative; z-index: 1; padding: 22px 0 44px; }
.hm-top::before {                  /* faint dot grid that fades out downwards */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(15, 23, 42, .09) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
[data-theme="dark"] .hm-top {
  background:
    radial-gradient(900px 440px at 8% 0%, rgba(16, 185, 129, .2), transparent 62%),
    radial-gradient(720px 400px at 96% 0%, rgba(59, 130, 246, .16), transparent 62%),
    var(--bg-primary);
}
[data-theme="dark"] .hm-top::before { background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hm-hero__copy { min-width: 0; }
.hm-hero__title {
  margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.036em; color: var(--hm-ink);
}
.hm-hero__title span { background: linear-gradient(92deg, #0d6e56 0%, #10b981 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .hm-hero__title span { background-image: linear-gradient(92deg, #34d399 0%, #6ee7b7 100%); }
.hm-rot { display: grid; }
.hm-rot__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.hm-rot__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hm-rot__slide--sap .hm-hero__title span { background-image: linear-gradient(92deg, #1d4ed8 0%, #38bdf8 100%); }
[data-theme="dark"] .hm-rot__slide--sap .hm-hero__title span { background-image: linear-gradient(92deg, #60a5fa 0%, #7dd3fc 100%); }
.hm-hero__sub { margin: 14px 0 0; font-size: 1.05rem; line-height: 1.55; color: var(--hm-sub); }

/* Google button (guests) */
.hm-join { margin-top: 24px; max-width: 420px; }
.hm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; max-width: 420px; }
.hm-duo__btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; border-radius: 12px; background: var(--hm-card); border: 1px solid var(--border-strong);
  font-size: .92rem; font-weight: 700; color: var(--hm-ink); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hm-duo__btn:hover { transform: translateY(-1px); border-color: var(--hm-accent-ink); box-shadow: var(--hm-shadow); color: var(--hm-ink); }
.hm-duo__btn svg { flex: none; }
.hm-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; padding: 0 22px; border-radius: 14px; cursor: pointer;
  background: #fff; color: #1f2937; border: 1.5px solid #dadce0; font: inherit; font-size: 1.02rem; font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 28px -16px rgba(15, 23, 42, .35); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hm-google:hover { transform: translateY(-1px); border-color: #b9bdc3; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 32px -16px rgba(15, 23, 42, .45); }
.hm-google:focus-visible { outline: 3px solid rgba(16, 185, 129, .45); outline-offset: 2px; }
.hm-google:disabled { opacity: .75; cursor: progress; transform: none; }
.hm-join__err { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-size: .84rem; font-weight: 600; }
[data-theme="dark"] .hm-join__err { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.hm-join__note { margin: 8px 2px 0; font-size: .7rem; line-height: 1.4; color: var(--hm-faint); }
.hm-join__note a { color: var(--hm-sub); text-decoration: underline; text-underline-offset: 2px; }
.hm-join__note a:hover { color: var(--hm-accent-ink); }

/* Resume card (signed in) */
.hm-resume {
  display: flex; align-items: center; gap: 14px; margin-top: 24px; max-width: 520px; padding: 12px 14px 12px 12px; border-radius: 18px;
  background: var(--hm-card); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hm-resume:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--hm-shadow-lg); }
.hm-resume__thumb { flex: none; width: 96px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--bg-secondary); }
.hm-resume__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-resume__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-resume__body small { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-accent-ink); }
.hm-resume__body b { font-size: .98rem; font-weight: 800; line-height: 1.3; color: var(--hm-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-resume__bar { display: block; height: 6px; margin-top: 3px; border-radius: 99px; background: var(--bg-secondary); overflow: hidden; }
.hm-resume__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0d6e56, #34d399); }
.hm-resume__body em { font-style: normal; font-size: .72rem; color: var(--hm-faint); }
.hm-resume__go {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 11px; font-size: .86rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0d6e56, #059669); box-shadow: 0 10px 20px -12px rgba(13, 110, 86, .8);
}
.hm-resume__go svg { width: 15px; height: 15px; transition: transform .18s ease; }
.hm-resume:hover .hm-resume__go svg { transform: translateX(3px); }
.hm-resume--empty { padding: 16px 16px 16px 20px; }

/* Course and job cards */
.hm-cards { display: grid; gap: 16px; min-width: 0; width: 100%; max-width: 470px; justify-self: end; }
.hm-cta {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-height: 196px; padding: 22px 24px 24px; border-radius: 20px; color: #fff;
  box-shadow: 0 26px 50px -30px rgba(15, 23, 42, .65); transition: transform .2s ease, box-shadow .2s ease;
}
.hm-cta:hover { transform: translateY(-3px); box-shadow: 0 32px 56px -30px rgba(15, 23, 42, .75); color: #fff; }
.hm-cta--courses { background: linear-gradient(90deg, #0b1a2e 0%, #0b1a2e 22%, rgba(11, 26, 46, 0) 62%), var(--cta-img) right center / cover no-repeat, #0b1a2e; }
.hm-cta--jobs { background: linear-gradient(90deg, #1b0a42 0%, #1b0a42 22%, rgba(27, 10, 66, 0) 62%), var(--cta-img) right center / cover no-repeat, #1b0a42; }
.hm-cta__rings { display: none;
  position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 22px, rgba(255, 255, 255, .07) 22px 23px);
}
.hm-cta > * { position: relative; }
.hm-cta .hm-cta__rings { display: none; position: absolute; }
.hm-cta__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.hm-cta__text { max-width: 58%; font-size: .86rem; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .92); }
.hm-cta__chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 62%; margin-bottom: 6px; }
.hm-cta__chips i { font-style: normal; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .86); font-size: .64rem; font-weight: 600; letter-spacing: .01em; }
.hm-cta__who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hm-cta__avs { display: flex; }
.hm-cta__avs i {
  width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal;
  background: var(--tb); color: var(--t); border: 2px solid #3f1b82; font-size: .74rem; font-weight: 800;
}
.hm-cta__avs i:first-child { margin-left: 0; }
.hm-cta__who em { font-style: normal; font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hm-cta__btn { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; margin-bottom: 2px; height: 34px; padding: 0 14px; border-radius: 10px; background: #fff; color: #0f172a; font-size: .82rem; font-weight: 700; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .6); }
.hm-cta__btn svg { transition: transform .18s ease; }
.hm-cta:hover .hm-cta__btn svg { transform: translate(2px, -2px); }

/* ══ Prepare by company: a coloured band so it is the first thing seen after the hero ══ */
.hm-companies { padding: 8px 0 50px; scroll-margin-top: calc(var(--nav-h, 86px) + 12px); }
.hm-co-band {
  position: relative; overflow: hidden; padding: 26px 28px 24px; border-radius: 26px; color: #fff;
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(52, 211, 153, .38), transparent 62%),
    radial-gradient(520px 300px at 0% 100%, rgba(59, 130, 246, .28), transparent 62%),
    linear-gradient(125deg, #04352b 0%, #0a5a47 55%, #0d6e56 100%);
  box-shadow: 0 34px 70px -40px rgba(13, 110, 86, .85);
}
.hm-co-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%); mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
}
.hm-co-band > * { position: relative; }
.hm-co-band__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hm-co-band__head .hm-head__side { margin-top: 0; flex: none; }
.hm-co-band .hm-btn--glass { background: rgba(4, 53, 43, .62); border-color: rgba(255, 255, 255, .55); }
.hm-co-band .hm-btn--glass:hover { background: #fff; color: #0d6e56; }
.hm-co-band h2 {
  margin: 0; font-family: 'Outfit', var(--font-sans); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(95deg, #ffffff 0%, #bbf7d0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25));
}
.hm-co-band__sub { margin: 6px 0 0; max-width: 34em; font-size: .98rem; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hm-co-band.has-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(0, 12, 9, .6) 0%, rgba(0, 12, 9, .5) 100%), var(--co-img) right top / auto 100% no-repeat;   /* dark overlay keeps the buttons and cards readable */
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 52%); mask-image: linear-gradient(90deg, transparent 30%, #000 52%);
}
.hm-co-band.has-bg > * { z-index: 1; }
/* /placement-prep: the same cards as a grid */
.hm-hubpage { margin-top: 26px; }
.hm-co-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-hubpage .hm-co { flex: none; }
@media (max-width: 1100px) { .hm-co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hm-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.hm-track.hm-track--co { gap: 16px; padding: 8px 4px 12px; margin: -8px -4px -12px; }
.hm-co {
  position: relative; flex: 0 0 calc((100% - 48px) / 4); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; background: var(--hm-card); border-radius: 18px;
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .55); transition: transform .2s ease, box-shadow .2s ease, opacity .5s ease;
}
.hm-co:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .7); }
/* Own thumbnail: tone gradient, soft rings and the company's initials. Not a company logo on purpose. */
.hm-co__media {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.hm-co__media::before {
  content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 14px, rgba(255, 255, 255, .13) 14px 15px);
}
.hm-co__media::after {
  content: ""; position: absolute; left: -36px; bottom: -48px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.hm-co__media.has-img::before, .hm-co__media.has-img::after { display: none; }
.hm-co__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hm-co:hover .hm-co__media img { transform: scale(1.04); }
.hm-co__mark {
  position: relative; z-index: 1; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; text-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .25s ease;
}
.hm-co:hover .hm-co__mark { transform: scale(1.08); }
.hm-co__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 6px; min-width: 0; flex: 1; }
.hm-co__name { font-size: 1.02rem; font-weight: 800; line-height: 1.25; color: var(--hm-ink); }
.hm-co__name:hover { color: var(--hm-accent-ink); }
.hm-co__blurb { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--hm-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-co__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.hm-co__chips span { padding: 3px 10px; border-radius: 999px; background: var(--tb); color: var(--t); font-size: .7rem; font-weight: 700; }
.hm-co__date { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; color: var(--hm-faint); }
.hm-co__links { display: flex; gap: 8px; padding: 10px 14px 14px; }
.hm-co__links a {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 36px; padding: 0 8px; border-radius: 10px;
  border: 1px solid var(--border-strong); font-size: .8rem; font-weight: 700; color: var(--hm-ink); white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.hm-co__links a svg { width: 12px; height: 12px; transition: transform .15s ease; }
.hm-co__links a:hover { border-color: var(--hm-accent-ink); color: var(--hm-accent-ink); }
.hm-co__links a.is-strong { background: linear-gradient(135deg, #0d6e56, #059669); border-color: transparent; color: #fff; }
.hm-co__links a.is-strong:hover { color: #fff; filter: brightness(1.08); }
.hm-co__links a.is-strong:hover svg { transform: translateX(2px); }

/* ══ In numbers: ticket-style band with notches between figures ══ */
.hm-numbers { padding: 6px 0 46px; }
.hm-numbers__title {
  position: relative; display: table; margin: 0 auto 22px; padding-bottom: 8px; font-size: .86rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--hm-ink);
}
.hm-numbers__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: linear-gradient(90deg, #4f46e5, #10b981); }
.hm-num { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 18px; background: linear-gradient(100deg, #081a30 0%, #0f2c52 55%, #1b4f94 100%); box-shadow: none; }
.hm-num__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px 12px; text-align: center; color: #fff; }
.hm-num__item b { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.hm-num__item span { font-size: .84rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.hm-num__item + .hm-num__item::before {
  content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 32px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, var(--bg-primary) 0 15px, transparent 16px) top / 100% 51% no-repeat,
    radial-gradient(circle at 50% 100%, var(--bg-primary) 0 15px, transparent 16px) bottom / 100% 51% no-repeat;
}

/* ══ Sliders (courses, reviews) ════════════════════════════════════════── */
.hm-slider { position: relative; }
.hm-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px; padding: 6px 4px 10px; margin: -6px -4px -10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
}
.hm-track::-webkit-scrollbar { display: none; height: 0; }


/* ══ Courses ═══════════════════════════════════════════════════════════── */
.hm-courses { padding-top: 24px; }
.hm-tabs { display: flex; gap: 8px; margin: -6px 0 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hm-tabs::-webkit-scrollbar { display: none; }
.hm-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hm-line); background: var(--hm-card); color: var(--hm-sub); font: inherit; font-size: .86rem; font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.hm-tab span { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg-secondary); color: var(--hm-faint); }
.hm-tab:hover { border-color: var(--border-strong); color: var(--hm-ink); }
.hm-tab.is-active { background: var(--hm-ink); border-color: var(--hm-ink); color: var(--bg-card); }
.hm-tab.is-active span { background: rgba(255, 255, 255, .18); color: inherit; }
[data-theme="dark"] .hm-tab.is-active span { background: rgba(15, 23, 42, .14); }

.hm-citem { flex: 0 0 calc(25% - 13.5px); min-width: 0; display: flex; scroll-snap-align: start; }
.hm-citem[hidden] { display: none; }
.hm-citem > .course-card { width: 100%; height: auto; display: flex; flex-direction: column; border-radius: 16px; }
.hm-track--courses .course-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.hm-track--courses .course-card__thumb { min-height: 0; }
.hm-track--courses .course-card__title { font-size: .95rem; margin-bottom: 6px; }
.hm-track--courses .course-card__desc { display: none; }
.hm-track--courses .course-card__footer { padding-top: 10px; gap: 8px; flex-wrap: nowrap; }
.hm-track--courses .course-card .btn--sm { padding: 7px 12px; font-size: .78rem; white-space: nowrap; }

/* ══ Tech6Sense Play: a slim band ══ */
.hm-play { padding-top: 6px; padding-bottom: 40px; }
.hm-play__card {
  display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: center; padding: 18px 22px 18px 30px; border-radius: 22px; color: #fff; overflow: hidden;
  background: radial-gradient(520px 260px at 100% 0%, rgba(96, 165, 250, .35), transparent 60%), linear-gradient(120deg, #0b1b4a 0%, #1e3a8a 55%, #1d4ed8 100%);
  box-shadow: 0 24px 50px -34px rgba(29, 78, 216, .7);
}
.hm-play__tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hm-play__tag i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.hm-play__card .hm-btn { margin-top: 14px; }
.hm-play__card h2 { margin: 8px 0 4px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.hm-play__card p { margin: 0; max-width: 34em; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.hm-play__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 14px; padding: 0; }
.hm-play__list li { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hm-play__list svg { flex: none; width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: rgba(74, 222, 128, .22); color: #86efac; }
.hm-play__card .hm-btn { height: 42px; font-size: .9rem; }
.hm-play__img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #eef4fb; box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .7); }
.hm-play__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hm-play__img:hover img { transform: scale(1.03); }

/* ══ Jobs and articles: card sliders ══ */
.hm-jobs { padding-bottom: 8px; }
.hm-posts { padding-top: 24px; padding-bottom: 28px; }
.hm-track.hm-track--cards { gap: 16px; }
.hm-card {
  flex: 0 0 calc((100% - 48px) / 4); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hm-card:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow); border-color: var(--border-strong); }
.hm-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-secondary); }
.hm-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hm-card:hover .hm-card__media img { transform: scale(1.05); }
.hm-card__media.is-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.hm-card__media.is-ph b { font-size: 2.2rem; font-weight: 800; color: #fff; text-shadow: 0 6px 18px rgba(0, 0, 0, .25); display: flex; }
.hm-card__flag {
  position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, .74); color: #fff; font-size: .68rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hm-card__flag i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.hm-card__flag--post i { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .25); }
.hm-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; flex: 1; min-width: 0; }
.hm-card__eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-card__title { font-size: .95rem; font-weight: 800; line-height: 1.35; color: var(--hm-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.hm-card:hover .hm-card__title { color: var(--hm-accent-ink); }
.hm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--hm-line); font-size: .74rem; color: var(--hm-faint); }
.hm-card__foot span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-card__foot em { flex: none; display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-weight: 700; color: var(--hm-accent-ink); }
.hm-card__foot em svg { transition: transform .15s ease; }
.hm-card:hover .hm-card__foot em svg { transform: translateX(3px); }

/* ══ Student reviews: endless marquee of photo cards ═══════════════════════ */
.hm-reviews { padding-top: 24px; padding-bottom: 54px; overflow: hidden; }
.hm-marquee {
  overflow: hidden; padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hm-marquee__track { display: flex; width: max-content; animation: hmMarquee var(--dur, 60s) linear infinite; will-change: transform; }
.hm-marquee:hover .hm-marquee__track, .hm-marquee:focus-within .hm-marquee__track { animation-play-state: paused; }
@keyframes hmMarquee { to { transform: translateX(-50%); } }

.hm-tcard {
  position: relative; flex: none; width: 400px; height: 276px; margin-right: 20px; overflow: hidden; border-radius: 22px; color: #fff; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .1); transition: transform .25s ease;
}
.hm-tcard:hover { transform: translateY(-3px); color: #fff; }
.hm-tcard--navy    { background: linear-gradient(135deg, #0a2142 0%, #123b73 100%); --tc: #5aa0ff; }
.hm-tcard--emerald { background: linear-gradient(135deg, #04281f 0%, #0a5744 100%); --tc: #34d399; }
.hm-tcard--indigo  { background: linear-gradient(135deg, #1a1252 0%, #382b8c 100%); --tc: #a78bfa; }
.hm-tcard__photo {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 47%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}
.hm-tcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.hm-tcard__photo b { font-size: 4.2rem; font-weight: 800; color: rgba(255, 255, 255, .28); }
.hm-tcard__copy { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; width: 64%; padding: 20px 0 18px 24px; }
.hm-tcard__top { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.hm-tcard__q { flex: none; width: 34px; height: 34px; color: #fff; }
.hm-tcard .tst-avg-stars { font-size: .9rem; }
.hm-tcard__msg { margin: 10px 0 0; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .94); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hm-tcard__who { display: flex; flex-direction: column; margin-top: auto; padding-top: 10px; }
.hm-tcard__who b { font-size: .98rem; font-weight: 800; line-height: 1.25; }
.hm-tcard__who small { font-size: .78rem; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tcard__placed { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 9px; padding: 4px 10px 4px 11px; border-radius: 10px; background: #fff; color: #0f172a; }
.hm-tcard__placed em { font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #475569; }
.hm-tcard__placed img { height: 20px; width: auto; max-width: 84px; object-fit: contain; display: block; }
.hm-tcard__placed b { font-size: .8rem; font-weight: 800; }
.hm-tcard--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; width: auto; height: auto; padding: 30px 22px; background: linear-gradient(135deg, #0a2142, #123b73); }
.hm-tcard--empty b { font-size: 1rem; }
.hm-tcard--empty span { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; opacity: .85; }
@media (max-width: 900px) { .hm-tcard { width: 360px; height: 268px; } }
@media (max-width: 560px) {
  .hm-reviews { padding-bottom: 38px; }
  .hm-tcard { width: 300px; height: 268px; margin-right: 14px; border-radius: 18px; }
  .hm-tcard__copy { width: 70%; padding: 16px 0 14px 18px; }
  .hm-tcard__photo { width: 44%; }
  .hm-tcard__q { width: 28px; height: 28px; }
  .hm-tcard__msg { font-size: .84rem; line-height: 1.5; -webkit-line-clamp: 5; }
  .hm-tcard__who b { font-size: .88rem; }
  .hm-tcard__who small { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hm-marquee__track { animation: none; }
}

/* ══ SAP track ═════════════════════════════════════════════════════════── */
.hm-sap { padding-top: 12px; padding-bottom: 48px; }
.hm-sap__card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: center; min-height: 300px; padding: 38px 34px; border-radius: 24px; color: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, #041a3d 0%, rgba(4, 26, 61, .96) 34%, rgba(5, 36, 88, .6) 62%, rgba(6, 44, 104, .12) 100%), var(--sap-img, none) right center / cover no-repeat, #041a3d;
  box-shadow: 0 30px 60px -36px rgba(0, 112, 243, .7);
}
.hm-sap__card h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: #fff; }
.hm-sap__copy > p:not(.hm-label) { margin: 0; max-width: 34em; font-size: .98rem; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.hm-sap__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hm-sap__copy { max-width: 560px; }
.hm-sap__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; max-width: 560px; }
.hm-sap__list li {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(4, 22, 54, .55); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .84rem; font-weight: 600;
}
.hm-sap__list svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: rgba(125, 211, 252, .25); color: #bae6fd; }

/* ══ Responsive ════════════════════════════════════════════════════════── */
@media (max-width: 1100px) {
  .hm-hero__grid { gap: 36px; }
  .hm-citem { flex-basis: calc(33.333% - 12px); }
  .hm-co { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 900px) {
  .hm-sec { padding: 44px 0; }
  .hm-hero { padding: 30px 0 26px; }
  .hm-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: none; justify-self: stretch; }
  .hm-cta { min-height: 170px; }
  .hm-co-band { padding: 26px; }
  .hm-courses { padding-top: 16px; }
  .hm-sap__card { padding: 30px 26px; }
}
@media (max-width: 760px) {
  .hm-citem { flex-basis: calc(50% - 9px); }
  .hm-co { flex-basis: calc((100% - 14px) / 2.15); }
  .hm-track.hm-track--co { gap: 14px; }
  .hm-arrows { display: none; }
}
@media (max-width: 560px) {
  .hm-sec { padding: 36px 0; }
  .hm-head { margin-bottom: 18px; }
  .hm-head .hm-more { display: none; }             /* the section's cards already lead there; keeps phone headers clean */
  .hm-hero { padding: 16px 0 14px; }
  .hm-hero__title { font-size: 1.85rem; line-height: 1.1; }
  .hm-hero__sub { font-size: .92rem; margin-top: 10px; }
  .hm-join { margin-top: 20px; }
  .hm-google { height: 50px; font-size: .95rem; border-radius: 13px; }
  .hm-join__note { font-size: .68rem; }
  .hm-duo { gap: 8px; }
  .hm-duo__btn { height: 42px; font-size: .86rem; border-radius: 11px; }
  .hm-resume { margin-top: 20px; padding: 10px 12px 10px 10px; gap: 12px; border-radius: 16px; }
  .hm-resume__thumb { width: 74px; border-radius: 10px; }
  .hm-resume__body b { font-size: .88rem; }
  .hm-resume__go { height: 36px; padding: 0 12px; font-size: .8rem; }
  .hm-resume__go svg { display: none; }
  .hm-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: none; }
  .hm-cta { min-height: 0; padding: 20px 20px 18px; border-radius: 18px; gap: 6px; }
  .hm-cta__title { font-size: 1.5rem; }
  .hm-cta__text { font-size: .86rem; }
  .hm-cta__chips i { font-size: .7rem; padding: 4px 9px; }
  .hm-cta__btn { height: 38px; font-size: .84rem; margin-top: 8px; }
  .hm-btn { height: 44px; font-size: .88rem; }
  .hm-btn--sm { height: 36px; font-size: .8rem; }
  .hm-head h2, .hm-panel__head h2 { font-size: 1.2rem; }
  .hm-label { font-size: .66rem; margin-bottom: 6px; }
  .hm-more { font-size: .8rem; }
  .hm-tab { height: 34px; padding: 0 13px; font-size: .8rem; }
  .hm-co-band h2 { font-size: 1.2rem; }
  .hm-sap__list li { font-size: .78rem; }
  .hm-track--courses .course-card__title { font-size: .88rem; }
  .hm-companies { padding: 4px 0 36px; }
  .hm-companies > .container { padding: 0 10px; }
  .hm-co-band { padding: 22px 12px 14px; border-radius: 22px; }
  .hm-co-band__head { margin-bottom: 18px; padding: 0 6px; min-height: 0; }
  .hm-co-band h2 { font-size: 1.75rem; }
  .hm-co-band.has-bg::after { background: linear-gradient(180deg, rgba(4, 53, 43, .92) 0%, rgba(4, 53, 43, .8) 100%), var(--co-img) center top / cover no-repeat; -webkit-mask-image: none; mask-image: none; }
  .hm-co-band__sub { font-size: .9rem; margin-top: 8px; }
  .hm-co { flex-basis: 46%; }
  .hm-track.hm-track--co { gap: 10px; }
  .hm-co__chips span { font-size: .62rem; padding: 2px 8px; }
  .hm-co__date { font-size: .64rem; }
  .hm-numbers { padding: 0 0 34px; }
  .hm-numbers__title { font-size: .76rem; margin-bottom: 16px; }
  .hm-num { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
  .hm-num__item { min-height: 96px; padding: 14px 8px; }
  .hm-num__item b { font-size: 1.7rem; }
  .hm-num__item span { font-size: .68rem; }
  .hm-num__item + .hm-num__item::before { display: none; }
  .hm-num--5 .hm-num__item:last-child { grid-column: 1 / -1; box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
  .hm-num__item:nth-child(even) { box-shadow: -1px 0 0 rgba(255, 255, 255, .14); }
  .hm-num__item:nth-child(n+3) { box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
  .hm-num__item:nth-child(4) { box-shadow: -1px -1px 0 rgba(255, 255, 255, .14); }
  .hm-co-band__head .hm-btn { display: none; }
  .hm-co { border-radius: 15px; }
  .hm-co__media { aspect-ratio: 16 / 7.5; }
  .hm-co__mark { font-size: 1.6rem; }
  .hm-co__body { padding: 10px 11px 4px; gap: 5px; }
  .hm-co__name { font-size: .86rem; }
  .hm-co__blurb { font-size: .72rem; line-height: 1.4; }
  .hm-co__links { padding: 8px 9px 10px; gap: 6px; }
  .hm-co__links a { height: 30px; font-size: .72rem; padding: 0 4px; border-radius: 8px; }
  .hm-co__links a svg { display: none; }
  .hm-track { gap: 12px; }
  .hm-citem { flex-basis: 78%; }
  .hm-sap { padding-bottom: 44px; }
  .hm-sap__card { padding: 24px 18px; border-radius: 20px; min-height: 0;
    background: linear-gradient(180deg, rgba(4, 26, 61, .9) 0%, rgba(4, 26, 61, .82) 100%), var(--sap-img, none) center / cover no-repeat, #041a3d; }
  .hm-sap__cta .hm-btn { flex: 1 1 0; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-badge::before { animation: none; }
  .hm *, .hm *::before { scroll-behavior: auto; }
}

.hm-cta__avs img { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; object-fit: cover; background: #fff; }
.hm-cta__avs img:first-child { margin-left: 0; }

/* ══ Card sliders on smaller screens ══ */
@media (max-width: 1100px) { .hm-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 760px)  { .hm-card { flex-basis: calc((100% - 14px) / 2.2); } .hm-track.hm-track--cards { gap: 14px; } }
@media (max-width: 560px) {
  .hm-card { flex-basis: 74%; border-radius: 14px; }
  .hm-track.hm-track--cards { gap: 12px; }
  .hm-card__title { font-size: .9rem; line-height: 1.35; }
  .hm-card__foot, .hm-card__foot em { font-size: .78rem; }
  .hm-jobs { padding-bottom: 0; }
  .hm-posts { padding-top: 16px; padding-bottom: 8px; }
  .hm-numbers__title { margin-top: 0; }
}

/* Play card: stack on tablets and phones */
@media (max-width: 820px) {
  .hm-play__card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px; }
  .hm-play__img { order: -1; max-width: 460px; width: 100%; }
}
@media (max-width: 560px) {
  .hm-play { padding-bottom: 28px; }
  .hm-play__card { padding: 14px 14px 18px; border-radius: 18px; gap: 14px; }
  .hm-play__img { max-width: none; border-radius: 12px; }
  .hm-play__card h2 { font-size: 1.25rem; }
  .hm-play__card p { font-size: .84rem; }
  .hm-play__list { gap: 5px 12px; margin: 8px 0 12px; }
  .hm-play__list li { font-size: .75rem; }
  .hm-play__card .hm-btn { width: 100%; justify-content: center; }
  .hm-numbers { padding-top: 22px; }
}

/* ── testimonial cards: fixes on the original layout ── */
/* 1. Photos uploaded already cropped round (with dark or transparent corners): zoom in so the corners fall outside
      the panel, and blend the panel edges into the card colour so any leftover corner disappears. */
.hm-tcard--navy    { --tcd: #0e2c57; }
.hm-tcard--emerald { --tcd: #073f31; }
.hm-tcard--indigo  { --tcd: #251a6e; }
.hm-tcard__photo { background: var(--tcd, #0e2c57); }
.hm-tcard__photo img { transform: scale(1.22); transform-origin: center 30%; object-position: center 22%; }
.hm-tcard__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 85% at 55% 42%, transparent 58%, var(--tcd, #0e2c57) 100%),
              linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--tcd, #0e2c57) 70%, transparent) 100%); }
/* 2. Long reviews end on a whole line with "…" and a "Read full review" link instead of being cut mid-line. */
.hm-tcard__msg { flex: none; -webkit-line-clamp: 4; }
.hm-tcard__msg--long { -webkit-line-clamp: 3; }
.hm-tcard__more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--tc, #93c5fd); }
.hm-tcard__more svg { transition: transform .2s ease; }
.hm-tcard:hover .hm-tcard__more svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .hm-tcard__msg { -webkit-line-clamp: 4; }
  .hm-tcard__msg--long { -webkit-line-clamp: 3; }
  .hm-tcard__more { font-size: .72rem; }
}
