/* Rev. 93 — public pages (home, track pages, MakerLab classes, EOI and
   payment forms): hero banner, picture cards, readable type and spacing.
   Builds on brand.css (colours and fonts). */
body.public { line-height: 1.65; background: #f4f6fb; }
body.public main.page { max-width: 1060px; }
body.public main.narrow { max-width: 820px; }

.hero { background: linear-gradient(135deg, var(--brand-navy) 0%, #13297a 60%, #1f3a9e 100%); color: #fff; padding: 2.6rem 1rem 2.4rem; }
.hero .inner { max-width: 1060px; margin: 0 auto; }
.hero .kicker { color: #ffb08a; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .4rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: 0 0 .6rem; font-weight: 800; color: #fff; }
.hero p.lead { font-size: 1.15rem; max-width: 46rem; margin: 0 0 1rem; color: #e3e8f7; }
.pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700; margin: 0 .4rem .4rem 0; }
.hero .pill { background: rgba(255,255,255,.14); color: #fff; }
.pill.orange { background: #fff1e9; color: #c4470f; }
.pill.navy { background: #e8ecf8; color: var(--brand-navy); }

.section-title { font-size: 1.45rem; color: var(--brand-navy); margin: 2.2rem 0 1rem; font-weight: 800; }
.section-title::after { content: ""; display: block; width: 3rem; height: 4px; background: var(--brand-orange); border-radius: 2px; margin-top: .45rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
          box-shadow: 0 2px 10px rgba(10,28,88,.06); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.p-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(10,28,88,.12); }
.p-card .thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; display: block; background: #e8ecf8; }
.p-card .thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 4rem;
                             background: linear-gradient(135deg, #13297a, #f36523); color: #fff; }
.p-card .body { padding: 1.15rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.p-card h3 { margin: 0; font-size: 1.28rem; color: var(--brand-navy); font-weight: 800; line-height: 1.25; }
.p-card .desc { margin: 0; color: #3b4654; font-size: 1rem; }
.p-card .more { margin-top: auto; padding-top: .4rem; color: var(--brand-orange); font-weight: 700; }

ul.ticks { list-style: none; padding: 0; margin: .3rem 0 0; }
ul.ticks li { position: relative; padding-left: 1.6rem; margin: 0 0 .45rem; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-orange); font-weight: 800; }

.class-card { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--brand-orange); border-radius: 14px; padding: 1.3rem 1.4rem;
              margin: 0 0 1.2rem; box-shadow: 0 2px 10px rgba(10,28,88,.05); }
.class-card h3 { margin: 0 0 .2rem; color: var(--brand-navy); font-size: 1.25rem; font-weight: 800; }
.class-card .code { font-family: var(--font-mono); color: var(--muted); font-size: .85rem; }
/* Rev. 105 — partner program banner under the class code (4:1 picture, full card width) */
.class-banner { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: contain; border-radius: 10px; margin: .8rem 0 .2rem;
  border: 1px solid var(--border); background: #fff; }
/* Rev. 168 — the banner keeps its 4:1 shape on phones too (3:1 cut its sides off) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem 1.4rem; margin: .9rem 0; }
.facts div { font-size: .98rem; } .facts strong { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.price-tag { font-size: 1.05rem; } .price-tag b { color: var(--brand-navy); font-size: 1.2rem; }
.small-note { color: var(--muted); font-size: .9rem; }
.button-link.big { padding: .75rem 1.4rem; font-size: 1.02rem; border-radius: 10px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem; margin: 0 0 1.2rem; }
.form-card h2 { margin: 0 0 1rem; font-size: 1.2rem; color: var(--brand-navy); }
.step-num { display: inline-flex; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand-orange); color: #fff; font-size: .95rem;
            align-items: center; justify-content: center; margin-right: .5rem; font-weight: 800; vertical-align: 1px; }
.eoi-notice { border-left: 5px solid var(--brand-orange); background: #fff6ef; padding: 1rem 1.2rem; border-radius: 10px; margin: 0 0 1.2rem; }
.choice-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.choice-row label { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 10px; padding: .6rem 1rem; font-weight: 600; cursor: pointer; margin: 0; }
.choice-row input { width: auto; margin: 0; }
.price-line { display: flex; justify-content: space-between; padding: .25rem 0; } .price-line.total { border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .5rem; font-weight: 800; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .hero { padding: 1.8rem 1rem; } }
/* Rev. 93b — banner key points; PyCoding start choices */
.hero ul.hero-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: .3rem 1.6rem; margin: 1.1rem 0 0; max-width: 60rem; }
.hero ul.hero-points li { color: #f1f4fc; margin: 0; font-size: 1.02rem; }
.hero ul.hero-points li::before { color: #ffb08a; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.start-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--brand-orange);
              border-radius: 16px; padding: 1.4rem 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(10,28,88,.06); transition: transform .15s, box-shadow .15s; }
.start-card.navy { border-top-color: var(--brand-navy); }
.start-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(10,28,88,.12); }
.start-card .icon { font-size: 2.2rem; line-height: 1; }
.start-card h3 { margin: 0 0 .35rem; color: var(--brand-navy); font-size: 1.22rem; font-weight: 800; }
.start-card p { margin: 0 0 .6rem; color: #3b4654; }
.start-card .go { color: var(--brand-orange); font-weight: 700; }
.info-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: 1rem 1.3rem; border-radius: 12px;
             background: #eef2f9; color: var(--brand-navy); font-weight: 700; text-decoration: none; }
.info-link:hover { background: #e3e9f6; }
.p-card .code-pill { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.p-card .compact-head { height: 10px; background: linear-gradient(90deg, var(--brand-navy), var(--brand-orange)); position: relative; }
.p-card .compact-head span { position: absolute; right: 1rem; top: .9rem; width: 2rem; height: 2rem; border-radius: 50%; background: #fff1e9; color: #c4470f;
                             display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
/* Rev. 93c — pathway infographic */
.glance { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .4rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin: 0 0 1.6rem; }
.glance-step { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--brand-navy); font-size: .95rem; background: #f4f6fb; border-radius: 999px; padding: .3rem .8rem .3rem .3rem; }
.glance-step b { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c); color: #fff; align-items: center; justify-content: center; font-size: .85rem; }
.glance-arrow { color: var(--brand-orange); font-weight: 800; font-size: 1.2rem; }
ol.flow { list-style: none; margin: 0; padding: 0; position: relative; }
ol.flow::before { content: ""; position: absolute; left: 1.45rem; top: 1.4rem; bottom: 1.4rem; width: 4px; border-radius: 2px;
                  background: linear-gradient(180deg, #0a1c58, #f36523); }
.flow-stage { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; padding: 0 0 1.4rem; }
.flow-stage:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; bottom: .25rem; border: .45rem solid transparent; border-top: .6rem solid var(--c); }
.flow-node { flex: 0 0 auto; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 1.15rem;
             display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #f4f6fb, 0 4px 10px rgba(10,28,88,.2); position: relative; z-index: 1; }
.flow-card { flex: 1; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: 0 2px 10px rgba(10,28,88,.05); }
.flow-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.flow-card h3 { margin: 0; color: var(--brand-navy); font-size: 1.18rem; font-weight: 800; }
.flow-card .desc { margin: .4rem 0 0; color: #3b4654; }
/* Rev. 108 — the level's card picture (Admin > Programs > Thumbnail, 800 x 600) on its pathway card */
.flow-card.has-thumb { display: flex; gap: 1rem; align-items: flex-start; }
.flow-thumb { flex: 0 0 auto; width: 128px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.flow-body { flex: 1; min-width: 0; }
.levels { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .7rem; }
.level { padding: .25rem .7rem; border-radius: 8px; background: var(--c); color: #fff; font-weight: 700; font-size: .85rem; }
.level.optional { background: #fff; color: var(--c); border: 2px dashed var(--c); }
.level-arrow { color: var(--muted); font-weight: 800; }
/* Rev. 93d — one line per level in a pathway stage */
ul.level-rows { list-style: none; margin: .7rem 0 0; padding: 0; }
ul.level-rows li { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; align-items: baseline; padding: .4rem 0; border-top: 1px dashed var(--border); color: #3b4654; }
ul.level-rows li:first-child { border-top: none; }
ul.level-rows .level { text-align: center; }
/* Rev. 93e — phones: the timeline alone (the at-a-glance strip wraps poorly), tighter spacing */
@media (max-width: 700px) {
  .glance { display: none; }
  ol.flow::before { left: 1.05rem; }
  .flow-stage { gap: .7rem; }
  .flow-stage:not(:last-child)::after { left: .65rem; }
  .flow-node { width: 2.1rem; height: 2.1rem; font-size: .95rem; box-shadow: 0 0 0 4px #f4f6fb, 0 3px 8px rgba(10,28,88,.2); }
  .flow-card { padding: .85rem .95rem; }
  .flow-thumb { width: 84px; }
  .flow-head { flex-direction: column; gap: .15rem; }
  .flow-card h3 { font-size: 1.05rem; }
  ul.level-rows li { grid-template-columns: 1fr; gap: .25rem; }
  ul.level-rows .level { justify-self: start; }
}

/* Rev. 139 — home page: the enquiry link at the bottom of each program card */
.p-card-wrap { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(10,28,88,.06); transition: transform .15s ease, box-shadow .15s ease; }
.p-card-wrap:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(10,28,88,.12); }
.p-card-wrap a.p-card { border: 0; border-radius: 0; flex: 1; box-shadow: none; }
.p-card-wrap a.p-card:hover { transform: none; box-shadow: none; }
.p-card-wrap .enq-link { display: block; padding: .8rem 1.3rem; border-top: 1px solid var(--border); background: #f6f8fd;
  color: var(--brand-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.p-card-wrap .enq-link:hover { background: #eef2fb; text-decoration: underline; }
