/* The pages of the school levels (Kindergarten to Senior Secondary). The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with pg- so no other page is touched. */

/* 1. Introduction: the picture with a very large outlined number, the heading, the facts as tiles, the admission button */
.pg-intro { padding-block: var(--section); background: radial-gradient(50% 60% at 100% 0%, rgba(254, 182, 40, 0.22), transparent 70%), linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.pg-intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.pg-intro__photo { position: relative; margin: 0; }
.pg-intro__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px calc(var(--r-lg) * 1.25) calc(var(--r-lg) * 1.25); box-shadow: 0 2rem 4rem -2.5rem rgba(12, 74, 143, 0.6); }
.pg-intro__photo::before { content: ""; position: absolute; inset: -0.9rem; border: 1px solid rgba(168, 98, 0, 0.5); border-radius: 999px 999px calc(var(--r-lg) * 1.5) calc(var(--r-lg) * 1.5); pointer-events: none; }
.pg-intro__code { position: absolute; right: -0.35em; bottom: -0.3em; font-family: var(--display); font-size: clamp(5rem, 3rem + 9vw, 11rem); font-weight: 200; line-height: 0.85; letter-spacing: -0.06em; color: var(--flame-tint); -webkit-text-stroke: 1.5px var(--red); pointer-events: none; }
.pg-intro__step { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--maroon); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--flame); }
.pg-intro__heading { margin: 0 0 clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem); font-family: var(--display); font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); font-weight: 290; line-height: 1.05; letter-spacing: -0.03em; color: var(--maroon); }
.pg-label { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.pg-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin: 0 0 clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem); }
.pg-facts div { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-top: 4px solid var(--flame); border-radius: var(--r-lg); background: #fff; box-shadow: 0 1rem 2rem -1.75rem rgba(12, 74, 143, 0.5); }
.pg-facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.pg-facts dd { margin: 0.4rem 0 0; font-family: var(--display); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); font-weight: 330; line-height: 1.25; color: var(--ink); }
.pg-facts dd a { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 3px; }

/* 2. Good to know: a dark band, each point in a card with its number in outline */
.pg-points { padding-block: clamp(3rem, 2rem + 4vw, 6rem); background: radial-gradient(60% 80% at 0% 0%, rgba(254, 182, 40, 0.2), transparent 70%), linear-gradient(140deg, var(--band) 0%, var(--footer) 100%); color: var(--on-dark); }
.pg-points__title { margin: 0 0 clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--base); }
.pg-points__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(0.85rem, 0.6rem + 1vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.pg-points__list li { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); }
.pg-points__n { display: block; margin-bottom: 0.9rem; font-family: var(--display); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 200; line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.3px var(--flame); }
.pg-points__list p { margin: 0; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.65; color: var(--base); }

/* 3. Streams */
.pg-streams { padding-block: clamp(3rem, 2rem + 4vw, 6rem); background: var(--base); }
.pg-streams__title { margin: 0 0 clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }
.pg-streams__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(0.85rem, 0.6rem + 1vw, 1.5rem); }
.pg-stream { position: relative; padding: 1.5rem 1.5rem 1.6rem; border: 1px solid var(--line); border-bottom: 4px solid var(--flame); border-radius: var(--r-lg); background: #fff; }
.pg-stream:nth-child(2n) { border-bottom-color: var(--red); }
.pg-stream__n { display: block; margin-bottom: 0.6rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--amber); }
.pg-stream h3 { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); font-weight: 340; line-height: 1.2; color: var(--maroon); }
.pg-stream p { margin: 0.6rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text); }

/* 4. The journey: all five levels on one line, the one you are on is filled, the ones before it are gold */
.pg-path { padding-block: clamp(3rem, 2rem + 4vw, 6rem); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.pg-path__title { margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }
.pg-path__list { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pg-path__list::before { content: ""; position: absolute; left: 6%; right: 6%; top: 1.5rem; height: 3px; background: linear-gradient(90deg, var(--flame), var(--red)); opacity: 0.45; }
.pg-path__list a { position: relative; display: grid; justify-items: center; gap: 0.25rem; padding: 0 0.25rem; text-align: center; color: var(--ink); text-decoration: none; }
.pg-path__node { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.6rem; border: 3px solid var(--flame); border-radius: 50%; background: #fff; font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--maroon); box-shadow: 0 0 0 6px var(--flame-tint); transition: transform 0.3s, background-color 0.3s, color 0.3s; }
.pg-path__list a:hover .pg-path__node, .pg-path__list a:focus-visible .pg-path__node { transform: scale(1.12); }
.pg-path__list a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 0.5rem; }
.pg-path__list .is-done .pg-path__node { background: var(--flame); }
.pg-path__list .is-current .pg-path__node { border-color: var(--maroon); background: var(--maroon); color: var(--flame); transform: scale(1.18); }
.pg-path__name { font-family: var(--display); font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.3rem); font-weight: 340; line-height: 1.15; color: var(--maroon); }
.pg-path__list .is-current .pg-path__name { font-style: italic; }
.pg-path__meta { font-size: 0.75rem; line-height: 1.35; color: var(--text); }

@media (max-width: 900px) {
  .pg-intro__grid { grid-template-columns: minmax(0, 1fr); }
  .pg-intro__photo { max-width: 22rem; margin: 0 auto 1rem; }
  .pg-intro__code { right: 0; }
}
@media (max-width: 700px) {
  .pg-facts { grid-template-columns: minmax(0, 1fr); }
  .pg-path__list { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-left: 1.5rem; }
  .pg-path__list::before { left: calc(1.5rem + 1.5rem - 1.5px); right: auto; top: 1.5rem; bottom: 1.5rem; width: 3px; height: auto; background: linear-gradient(180deg, var(--flame), var(--red)); }
  .pg-path__list a { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; column-gap: 1rem; }
  .pg-path__node { grid-row: span 2; margin-bottom: 0; }
}
/* Other programmes, redesigned: a row of cards instead of a timeline. Each card has its number, name and detail with a small arrow; the page you are on is a filled maroon card with a gold number. */
.pg-path__list { gap: clamp(0.6rem, 0.3rem + 1vw, 1rem); padding-left: 0; }
.pg-path__list::before { content: none; }
.pg-path__list li { display: flex; }
.pg-path__list a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-items: normal; gap: 0.3rem; padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); border: 1px solid var(--line); border-top: 4px solid var(--flame); border-radius: 1rem; background: #fff; text-align: left; box-shadow: 0 1.25rem 2.5rem -2rem rgba(12, 74, 143, 0.4); transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.3s; }
.pg-path__list a::after { content: "\2192"; margin-top: auto; padding-top: 0.6rem; font-size: 1.1rem; line-height: 1; color: var(--amber); transition: transform 0.3s var(--ease); }
.pg-path__list a:hover, .pg-path__list a:focus-visible { transform: translateY(-0.25rem); box-shadow: 0 1.75rem 3rem -2rem rgba(12, 74, 143, 0.55); }
.pg-path__list a:hover::after, .pg-path__list a:focus-visible::after { transform: translateX(0.3rem); }
.pg-path__node { width: auto; height: auto; margin: 0 0 0.6rem; padding: 0.2rem 0.65rem; border: 0; border-radius: 999px; background: var(--flame-tint); box-shadow: none; font-size: 0.75rem; color: var(--maroon); }
.pg-path__list a:hover .pg-path__node, .pg-path__list a:focus-visible .pg-path__node { transform: none; }
.pg-path__list .is-done .pg-path__node { background: var(--flame-tint); }
.pg-path__list .is-current a { border-color: transparent; border-top-color: var(--flame); background: linear-gradient(160deg, var(--band) 0%, var(--footer) 100%); }
.pg-path__list .is-current .pg-path__node { background: var(--flame); color: var(--maroon); transform: none; }
.pg-path__list .is-current .pg-path__name { font-style: normal; color: var(--base); }
.pg-path__list .is-current .pg-path__meta { color: rgba(247, 244, 239, 0.75); }
.pg-path__list .is-current a::after { color: var(--flame); }
@media (max-width: 1100px) { .pg-path__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .pg-path__list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
  .pg-path__list a { display: flex; column-gap: 0; }
  .pg-path__node { grid-row: auto; margin-bottom: 0.6rem; }
}
@media (max-width: 420px) { .pg-path__list { grid-template-columns: minmax(0, 1fr); } }

/* The big number shows at once with the picture (no reveal clip on the picture, which also cut off the part of the number outside it); only the picture fades in quickly */
.pg-intro__photo img { animation: pg-photo 0.6s var(--ease) both; }
@keyframes pg-photo { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pg-intro__photo img { animation: none; } }

/* Streams, redesigned so it no longer looks like the cards of Other programmes: a dark maroon band, two wide panels each with a large outlined number at the left, the stream name, and its subjects as small gold chips */
.pg-streams { background: radial-gradient(55% 70% at 100% 0%, rgba(254, 182, 40, 0.18), transparent 70%), linear-gradient(160deg, var(--band) 0%, var(--footer) 100%); }
.pg-streams__title { color: var(--flame); }
.pg-streams__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-stream { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1rem, 0.5rem + 2vw, 2rem); align-items: start; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border: 1px solid rgba(254, 182, 40, 0.28); border-bottom-width: 1px; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.05); transition: background-color 0.3s, transform 0.4s var(--ease); }
.pg-stream:nth-child(2n) { border-bottom-color: rgba(254, 182, 40, 0.28); }
.pg-stream:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-0.2rem); }
.pg-stream__n { grid-row: span 2; margin: 0; font-family: var(--display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 300; line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--flame); }
.pg-stream h3 { align-self: end; color: var(--base); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); }
.pg-stream__subjects { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.pg-stream__subjects li { padding: 0.3rem 0.8rem; border: 1px solid rgba(254, 182, 40, 0.5); border-radius: 999px; font-size: 0.8125rem; line-height: 1.3; color: var(--flame); }
@media (max-width: 800px) { .pg-streams__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .pg-stream { grid-template-columns: minmax(0, 1fr); } .pg-stream__n { grid-row: auto; margin-bottom: 0.5rem; } }

/* Subject chips, new design: plain cream text with a small gold dot, no outline, no background and no hover effect */
.pg-stream__subjects { gap: 0.5rem; }
.pg-stream__subjects li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.5rem 0.2rem 0; border: 0; border-radius: 0.55rem; background: none; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; color: var(--base); }
.pg-stream__subjects li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--flame); }

/* Streams: four columns in one row; in each card the number is on top, then the name, then the subjects one under the other */
.pg-streams__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-stream { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.pg-stream__n { margin-bottom: 1rem; font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.75rem); }
.pg-stream h3 { align-self: auto; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); }
.pg-stream__subjects { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0.15rem; margin-top: 1rem; }
@media (max-width: 1100px) { .pg-streams__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pg-streams__grid { grid-template-columns: minmax(0, 1fr); } }
