/* ==========================================================================
   PPL Academy — College stream picker (/students/college)

   Loads on top of new-students.css, which owns the palette tokens, the
   buttons and the course card. Everything here is the two-step picker:
   ten streams, then the five courses inside the one you tapped.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Five more accents, so each of the ten streams is its own colour.
   Same earthy family as the brand — nothing neon, nothing that fights gold.
   -------------------------------------------------------------------------- */

.stu-page [data-c="indigo"] { --a: #4f6390; --a-tint: rgba(79, 99, 144, 0.11);  --a-line: rgba(79, 99, 144, 0.32); }
.stu-page [data-c="sage"]   { --a: #5f8a6a; --a-tint: rgba(95, 138, 106, 0.12); --a-line: rgba(95, 138, 106, 0.34); }
.stu-page [data-c="rose"]   { --a: #a85c72; --a-tint: rgba(168, 92, 114, 0.11); --a-line: rgba(168, 92, 114, 0.32); }
.stu-page [data-c="rust"]   { --a: #b0603c; --a-tint: rgba(176, 96, 60, 0.11);  --a-line: rgba(176, 96, 60, 0.32); }
.stu-page [data-c="bronze"] { --a: #96702f; --a-tint: rgba(150, 112, 47, 0.12); --a-line: rgba(150, 112, 47, 0.34); }

.stu-band--dark [data-c="indigo"] { --a: #93a8d6; --a-tint: rgba(147, 168, 214, 0.14); --a-line: rgba(147, 168, 214, 0.40); }
.stu-band--dark [data-c="sage"]   { --a: #97c2a2; --a-tint: rgba(151, 194, 162, 0.14); --a-line: rgba(151, 194, 162, 0.40); }
.stu-band--dark [data-c="rose"]   { --a: #dd9aab; --a-tint: rgba(221, 154, 171, 0.14); --a-line: rgba(221, 154, 171, 0.40); }
.stu-band--dark [data-c="rust"]   { --a: #e3a184; --a-tint: rgba(227, 161, 132, 0.14); --a-line: rgba(227, 161, 132, 0.40); }
.stu-band--dark [data-c="bronze"] { --a: #d9b96f; --a-tint: rgba(217, 185, 111, 0.15); --a-line: rgba(217, 185, 111, 0.42); }

/* --------------------------------------------------------------------------
   The question — a short dark band, not a full hero. The answer is the page.
   -------------------------------------------------------------------------- */

.col-head {
  overflow: hidden;
  padding: clamp(96px, 13vh, 132px) 0 clamp(56px, 7vh, 78px) !important;
}

.col-head-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 12% -10%, rgba(201, 162, 74, 0.16), transparent 62%),
    radial-gradient(620px 420px at 88% 110%, rgba(63, 196, 163, 0.12), transparent 64%);
  pointer-events: none;
}

.col-head-deco {
  position: absolute;
  top: 50%;
  right: -3%;
  width: min(500px, 44vw);
  transform: translateY(-46%);
  opacity: 1;
  pointer-events: none;
}

.col-head .container { position: relative; z-index: 2; }

.col-back,
.col-panel-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-small);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--stu-gold-warm);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.22s, gap 0.22s;
}

.col-back:hover,
.col-panel-back:hover { color: #f7f1e6; gap: 13px; }

.col-back-arrow { transition: transform 0.25s var(--stu-ease); }
.col-back:hover .col-back-arrow,
.col-panel-back:hover .col-back-arrow { transform: translateX(-3px); }

.col-head-inner { max-width: 760px; margin-top: 28px; }

.col-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--stu-cream);
}

.col-title em {
  font-style: italic;
  color: var(--stu-gold-warm);
}

/* Flex, not a fixed three-up grid — the row holds whatever promises the
   copy carries without leaving empty columns behind. */
.col-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 241, 230, 0.13);
  list-style: none;
}

/* One promise reads as one line: the label and the detail run together,
   separated by a gold rule, rather than stacking into a block with dead
   space beside it. Several promises still sit side by side and wrap. */
.col-promises li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-small);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(247, 241, 230, 0.66);
}

.col-promises strong {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--stu-cream);
}

.col-promises strong::after {
  content: '—';
  margin: 0 9px;
  font-weight: 400;
  color: rgba(224, 191, 114, 0.65);
}

.col-promise-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(224, 191, 114, 0.12);
  border: 1px solid rgba(224, 191, 114, 0.26);
  color: var(--stu-gold-warm);
}

.col-promise-icon svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   Step one — the ten streams.
   -------------------------------------------------------------------------- */

/* A warm off-white ground, so a white card reads as a card. White on white
   needs a heavy border to separate; a tinted band lets a light one do it. */
.col-pick {
  background: #faf8f3 !important;
  padding: clamp(52px, 7vh, 76px) 0 clamp(72px, 10vh, 118px) !important;
}

.col-stage[hidden] { display: none; }

.col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.col-stream {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px 18px 23px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(13, 68, 56, 0.16);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(13, 68, 56, 0.07),
    0 8px 18px rgba(13, 68, 56, 0.09),
    0 18px 38px rgba(13, 68, 56, 0.09);
  transition: border-color 0.25s, box-shadow 0.28s, transform 0.25s var(--stu-ease);
}

/* A colour edge on the leading side — the one cue that tells you at a glance
   which rows you have already looked at. Widens when you point at it. */
.col-stream::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--a);
  opacity: 0.55;
  transition: width 0.25s var(--stu-ease), opacity 0.25s;
}

.col-stream:hover,
.col-stream:focus-visible {
  transform: translateY(-3px);
  border-color: var(--a-line);
  outline: none;
  box-shadow:
    0 3px 6px rgba(13, 68, 56, 0.09),
    0 14px 28px rgba(13, 68, 56, 0.13),
    0 30px 58px rgba(13, 68, 56, 0.14);
}

.col-stream:hover::before,
.col-stream:focus-visible::before { width: 5px; opacity: 1; }

.col-stream:active { transform: translateY(-1px); }

.col-stream:focus-visible {
  border-color: var(--a);
  box-shadow:
    0 0 0 3px var(--a-tint),
    0 14px 28px rgba(13, 68, 56, 0.13),
    0 30px 58px rgba(13, 68, 56, 0.14);
}

.col-stream-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--a-tint);
  border: 1px solid var(--a-line);
  color: var(--a);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--stu-ease);
}

.col-stream-icon svg { width: 22px; height: 22px; }

.col-stream:hover .col-stream-icon { transform: scale(1.06) rotate(-3deg); }

.col-stream-text { flex: 1; min-width: 0; }

.col-stream-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #0a3e34;
}

.col-stream-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-small);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5b6d68;
}

.col-dot { margin: 0 5px; color: #b8c9c4; }

.col-stream-count { color: var(--a); font-weight: 600; }

/* The arrow sits in a chip so the row reads as something you press,
   not as a line of text that happens to end in an arrow. */
.col-stream-go {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbfcfc;
  border: 1px solid rgba(13, 68, 56, 0.14);
  font-size: 0.95rem;
  line-height: 1;
  color: #7d908b;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.28s var(--stu-ease);
}

.col-stream:hover .col-stream-go,
.col-stream:focus-visible .col-stream-go {
  background: var(--a-tint);
  border-color: var(--a-line);
  color: var(--a);
  transform: translateX(3px);
}

.col-hint {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-small);
  font-size: 0.85rem;
  color: #94a39e;
}

/* --------------------------------------------------------------------------
   Step two — the chosen stream and its five courses.
   -------------------------------------------------------------------------- */

.col-panel { animation: col-in 0.45s var(--stu-ease) both; }

@keyframes col-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.col-panel-back {
  color: var(--a);
  margin-bottom: 22px;
}

.col-panel-back:hover { color: #0a3e34; }

.col-panel-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 0.62fr);
  align-items: start;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--a-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, var(--a-tint), rgba(255, 255, 255, 0)) ,
    #fff;
  overflow: hidden;
}

.col-panel-head::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--a);
  opacity: 0.85;
}

.col-panel-icon {
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--a-line);
  color: var(--a);
}

.col-panel-icon svg { width: 27px; height: 27px; }

.col-panel-tagline {
  font-family: var(--font-mono-mod);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a);
}

.col-panel-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #0a3e34;
}

.col-panel-body {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 0.93rem;
  line-height: 1.68;
  color: #5b6d68;
}

.col-panel-meta {
  display: grid;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--a-line);
}

.col-panel-meta dt {
  font-family: var(--font-mono-mod);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a39e;
  margin-bottom: 9px;
}

.col-panel-meta dd { display: flex; flex-wrap: wrap; gap: 6px; }

.col-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(13, 68, 56, 0.14);
  font-family: var(--font-small);
  font-size: 0.74rem;
  font-weight: 500;
  color: #1a2b27;
}

.col-chip--role {
  background: var(--a-tint);
  border-color: var(--a-line);
  color: var(--a);
}

.col-courses-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 18px;
  font-family: var(--font-mono-mod);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5b6d68;
  white-space: nowrap;
}

.col-courses-rule {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--a);
}

.col-course-grid { grid-template-columns: repeat(5, 1fr); }

.col-panel-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(13, 68, 56, 0.1);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .col-course-grid { grid-template-columns: repeat(3, 1fr); }

  .col-panel-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .col-panel-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid var(--a-line);
  }
}

@media (max-width: 980px) {
  .col-grid { grid-template-columns: 1fr; }
  .col-course-grid { grid-template-columns: repeat(2, 1fr); }
  .col-head-deco { display: none; }
  .col-promises { flex-direction: column; gap: 14px; }
}

@media (max-width: 720px) {
  .col-head { padding-top: clamp(84px, 12vh, 108px) !important; }
  .col-stream { padding: 15px 16px 15px 19px; gap: 13px; }
  .col-stream-icon { width: 42px; height: 42px; border-radius: 12px; }
  .col-stream-name { font-size: 0.96rem; }
  .col-panel-head { padding: 22px 20px; gap: 18px; }
  .col-panel-meta { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .col-course-grid { grid-template-columns: 1fr; }

  .col-panel-head { grid-template-columns: 1fr; }
  .col-panel-icon { width: 50px; height: 50px; }

  .col-promises li { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .col-panel { animation: none; }
  .col-stream,
  .col-stream-icon,
  .col-stream-go,
  .col-back-arrow { transition: none; }
}

/* --------------------------------------------------------------------------
   Elevation — one ladder for the page, tinted with the brand ink so a shadow
   on the off-white ground still reads as NOVARA rather than as grey.
   -------------------------------------------------------------------------- */

.col-page {
  --col-hair:   rgba(13, 68, 56, 0.24);
  --col-lift-1: 0 6px 12px rgba(13, 68, 56, 0.14), 0 22px 44px rgba(13, 68, 56, 0.20);
  --col-lift-2: 0 8px 18px rgba(13, 68, 56, 0.18), 0 32px 66px rgba(13, 68, 56, 0.26);
}

/* The stream header was a flat outline. It now sits on the page. */
.col-panel-head { box-shadow: var(--col-lift-1); }

/* The five course cards: a border that is actually visible, and a shadow in
   the brand ink instead of the shared sheet's neutral black. */
.col-page .stu-course {
  border: 1px solid var(--col-hair);
  box-shadow: var(--col-lift-1);
}

.col-page .stu-course:hover {
  transform: translateY(-4px);
  border-color: #1f8772;
  box-shadow: var(--col-lift-2);
}

/* --------------------------------------------------------------------------
   The header mortarboard. Pivots are given in view-box units, because these
   run on this drawing's own coordinates — the shared .stu-deco-* animations
   pivot around the students page's geometry and swing off-centre here.
   -------------------------------------------------------------------------- */

.col-deco-cap,
.col-deco-tassel,
.col-deco-spin { transform-box: view-box; }

/* The whole cap breathes. */
.col-deco-cap {
  transform-origin: 262px 170px;
  animation: col-cap-float 8s ease-in-out infinite;
}
@keyframes col-cap-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* The tassel hangs from the board's right corner, so it swings from there. */
.col-deco-tassel {
  transform-origin: 404px 150px;
  animation: col-tassel-swing 4.2s ease-in-out infinite;
}
@keyframes col-tassel-swing {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}

.col-deco-spin {
  transform-origin: 96px 74px;
  animation: col-deco-spin 26s linear infinite;
}
@keyframes col-deco-spin { to { transform: rotate(360deg); } }

/* Board, then cap, then the rising line — drawn in that order on load. */
.col-deco-board {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: col-deco-draw 2.1s var(--stu-ease) 0.2s forwards;
}
.col-deco-body {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: col-deco-draw 1.5s var(--stu-ease) 0.9s forwards;
}
.col-deco-line {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: col-deco-draw 2.3s var(--stu-ease) 0.6s forwards;
}
@keyframes col-deco-draw { to { stroke-dashoffset: 0; } }

.col-deco-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    col-deco-dot-in 0.5s var(--stu-ease) 2.5s forwards,
    col-deco-dot-pulse 3.2s ease-in-out 3s infinite;
}
@keyframes col-deco-dot-in { to { opacity: 1; } }
@keyframes col-deco-dot-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.24); }
}

@media (prefers-reduced-motion: reduce) {
  .col-deco-cap,
  .col-deco-tassel,
  .col-deco-spin,
  .col-deco-board,
  .col-deco-body,
  .col-deco-line,
  .col-deco-dot { animation: none; }

  .col-deco-board,
  .col-deco-body,
  .col-deco-line { stroke-dashoffset: 0; }

  .col-deco-dot { opacity: 1; }
}

/* ==========================================================================
   Study-level switcher and clickable course titles.
   The catalogue is rendered per country and per level, so the page needs a
   way to move between levels.
   ========================================================================== */






.stu-course-link { color: inherit; text-decoration: none; }

.stu-course-link:hover {
  color: var(--stu-accent, #0f766e);
  text-decoration: underline;
}





.col-lvlbox {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.col-lvlbox label {
  font-size: 14px;
  font-weight: 600;
  color: var(--stu-ink-soft, #4c5a56);
}

.col-lvlselect {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1.5px solid rgba(18, 52, 46, 0.16);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  max-width: 100%;
  min-width: 240px;
}

.col-lvlselect:hover { border-color: var(--stu-accent, #0f766e); }
