/* ═══════════════════════════════════════════════════════
   programmes.css — Masters Programmes Hub Page
   Path: css/programmes.css
   Used by: squelettes/page-programmes.html
═══════════════════════════════════════════════════════ */

/* ── PAGE HERO ───────────────────────────────────────── */
.progs-hero {
    background: linear-gradient(135deg, #020D1F 0%, #051D3A 40%, #0A3060 100%);
    padding: 100px 0 55px; position: relative; overflow: hidden;
}
.progs-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 8% 50%, rgba(0,168,150,.14) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 92% 40%, rgba(255,107,53,.08) 0%, transparent 65%);
    pointer-events: none;
}
.progs-hero .container { position: relative; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(0,168,150,.18); border: 1px solid rgba(0,168,150,.35);
    color: var(--accent-teal); font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.progs-hero h1 { font-size: clamp(1.9rem,3vw,2.8rem); color: #fff !important; margin-bottom: .8rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.progs-hero h1 span { color: var(--accent-teal); }
.hero-sub { color: rgba(255,255,255,.88) !important; font-size: .97rem; max-width: 100%; margin-bottom: 1.6rem; text-shadow: 0 1px 4px rgba(0,0,0,.3); line-height: 1.7; }
.hero-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; min-width: 300px; }
.hero-kpi { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-md); padding: .9rem 1.1rem; backdrop-filter: blur(8px); text-align: center; }
.hero-kpi .kn { font-family: 'Poppins',sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--accent-teal); display: block; line-height: 1; }
.hero-kpi .kl { font-size: .63rem; color: rgba(255,255,255,.7) !important; font-weight: 500; letter-spacing: .05em; margin-top: .2rem; }

/* breadcrumb */
.bc-bar { background: var(--gray-light); border-bottom: 1px solid var(--border-color); padding: .55rem 0; }
.bc-bar ol { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-light); list-style: none; }
.bc-bar ol a { color: var(--primary-blue); text-decoration: none; }
.bc-bar ol a:hover { text-decoration: underline; }

/* ── PROGRAMME TABS ──────────────────────────────────── */
.prog-tabs-bar { background: #fff; border-bottom: 2px solid var(--border-color); position: sticky; top: 66px; z-index: 90; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prog-tabs-inner { display: flex; padding: 0 24px; max-width: 1280px; margin: 0 auto; }
.ptab { display: flex; flex-direction: column; align-items: flex-start; padding: .85rem 1.25rem; border: none; background: none; cursor: pointer; border-bottom: 3px solid transparent; position: relative; top: 2px; transition: var(--transition); white-space: nowrap; font-family: 'Poppins', sans-serif; flex-shrink: 0; max-width: 280px; }
.ptab .pt-code { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }
.ptab .pt-name { font-size: .82rem; font-weight: 500; color: var(--text-light); transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; display: block; }
.ptab .pt-badge { font-size: .68rem; font-weight: 600; background: var(--gray-light); border: 1px solid var(--border-color); padding: .12rem .5rem; border-radius: 100px; color: var(--text-light); margin-top: .3rem; transition: all .2s; }
.ptab:hover .pt-name { color: var(--text-dark); }
.ptab.active { border-bottom-color: var(--accent-teal); }
.ptab.active .pt-name { color: var(--text-dark); font-weight: 600; }
.ptab.active .pt-badge { background: var(--accent-teal); color: #fff; border-color: var(--accent-teal); }
.ptab-mhscm .pt-code { color: var(--primary-blue); }
.ptab-mpaqa .pt-code { color: #1A5C2E; }
.ptab-mvax  .pt-code { color: #6B2D8C; }
.ptab-mra   .pt-code { color: #8B3A00; }

/* ── PROGRAMME SECTION ───────────────────────────────── */
.prog-sec { display: none; animation: pFade .35s ease both; }
.prog-sec.active { display: block; }
@keyframes pFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* programme band — dark headers for all */
.prog-band { padding: 3rem 0 2.5rem; position: relative; overflow: hidden; }
.band-mhscm { background: linear-gradient(135deg, #020D1F 0%, #051D3A 40%, #0A3060 100%); }
.band-mpaqa { background: linear-gradient(135deg, #061A0D 0%, #0D3A1E 45%, #1A5C2E 100%); }
.band-mvax  { background: linear-gradient(135deg, #0D0518 0%, #2D0F4E 45%, #5A2578 100%); }
.band-mra   { background: linear-gradient(135deg, #1A0A00 0%, #3D1800 45%, #7A3000 100%); }

.prog-band-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.prog-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .28rem .75rem; border-radius: 100px; margin-bottom: .75rem; }
.pill-mhscm { background: rgba(0,174,239,.18); color: #00AEEF; }
.pill-mpaqa { background: rgba(52,168,90,.18);  color: #5FD480; }
.pill-mvax  { background: rgba(168,85,212,.18); color: #D08AF5; }
.pill-mra   { background: rgba(224,123,48,.18); color: #F5A261; }

.prog-band h2     { font-size: clamp(1.35rem,2.2vw,1.95rem); color: #fff !important; line-height: 1.2; margin-bottom: .7rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.prog-band .prog-lead { color: rgba(255,255,255,.92) !important; font-size: .9rem; line-height: 1.75; max-width: 540px; margin-bottom: 1.4rem; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.prog-band-btns { display: flex; gap: .55rem; flex-wrap: wrap; }
.btn-band { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .82rem; padding: .62rem 1.3rem; border-radius: var(--radius-md); border: none; transition: var(--transition); cursor: pointer; font-family: 'Poppins', sans-serif; text-decoration: none; }
.btn-band:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-band-ghost { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .82rem; padding: .6rem 1.15rem; border-radius: var(--radius-md); border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); background: none; transition: var(--transition); font-family: 'Poppins', sans-serif; cursor: pointer; text-decoration: none; }
.btn-band-ghost:hover { background: rgba(255,255,255,.09); }

/* quick-facts sidebar card */
.qcard { background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); border-radius: var(--radius-lg); padding: 1.25rem; }
.qcard h4 { font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .8rem; }
.qrow { display: flex; align-items: flex-start; gap: .55rem; padding: .42rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.qrow:last-child { border-bottom: none; padding-bottom: 0; }
.qico { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.qrow strong { display: block; font-size: .78rem; font-weight: 600; color: #fff !important; }
.qrow span   { font-size: .72rem; color: rgba(255,255,255,.7) !important; }

/* ── SECTION DIVIDER ─────────────────────────────────── */
.sdiv { display: flex; align-items: center; gap: .7rem; padding: 1.5rem 0 .2rem; }
.sdiv span { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; }
.sdiv::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* ── CONTENT GRID ────────────────────────────────────── */
.czone { padding: .5rem 0 4rem; }
.czone .row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.czone .col-6  { flex: 1 1 calc(50% - .65rem); min-width: 280px; }
.czone .col-4  { flex: 1 1 calc(33.33% - .85rem); min-width: 240px; }
.czone .col-8  { flex: 1 1 calc(66.66% - .65rem); min-width: 300px; }
.czone .col-12 { flex: 1 1 100%; }

/* card */
.pcard { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); overflow: hidden; height: 100%; }
.pcard-head { padding: .85rem 1.2rem .7rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: .55rem; background: var(--gray-light); }
.pcard-ico { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--light-blue); flex-shrink: 0; }
.pcard-head h3 { font-size: .88rem; font-weight: 700; color: var(--dark-blue); }
.pcard-body { padding: 1.1rem 1.2rem; }

/* objectives */
.obj-ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.obj-ul li { display: flex; align-items: flex-start; gap: .55rem; font-size: .83rem; line-height: 1.55; color: var(--text-dark); }
.obj-ul li::before { content: '✓'; width: 17px; height: 17px; border-radius: 50%; background: var(--light-blue); color: var(--primary-blue); display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 900; flex-shrink: 0; margin-top: 2px; }

/* stat tiles */
.stat-row { display: flex; gap: .75rem; margin-bottom: .75rem; }
.stat-tile { flex: 1; background: var(--gray-light); border-radius: var(--radius-md); padding: .8rem .95rem; border: 1px solid var(--border-color); }
.stat-tile .sn { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; display: block; line-height: 1; margin-bottom: .12rem; color: var(--dark-blue); }
.stat-tile .sl { font-size: .68rem; color: var(--text-light); font-weight: 500; }

/* gender bar */
.gbar-card { background: var(--gray-light); border-radius: var(--radius-md); padding: .8rem .95rem; border: 1px solid var(--border-color); }
.gbar-top { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 600; color: var(--text-light); margin-bottom: .42rem; }
.gbar-track { height: 8px; border-radius: 100px; background: var(--border-color); display: flex; overflow: hidden; }
.gbar-m { background: var(--primary-blue); height: 100%; border-radius: 100px 0 0 100px; transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.gbar-f { background: #E05C8A; height: 100%; border-radius: 0 100px 100px 0; transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.gbar-leg { display: flex; gap: .8rem; margin-top: .38rem; }
.gbar-leg span { font-size: .68rem; color: var(--text-light); display: flex; align-items: center; gap: .28rem; }
.gbar-leg span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.gbar-leg .lm::before { background: var(--primary-blue); }
.gbar-leg .lf::before { background: #E05C8A; }

/* country bars */
.ctabs { display: flex; gap: .28rem; margin-bottom: .85rem; }
.ctab-btn { font-size: .73rem; font-weight: 600; padding: .3rem .75rem; border-radius: 7px; border: 1.5px solid var(--border-color); background: none; color: var(--text-light); cursor: pointer; transition: var(--transition); font-family: 'Poppins', sans-serif; }
.ctab-btn.active { border-color: var(--accent-teal); color: var(--accent-teal); background: rgba(0,168,150,.07); }
.clist { display: flex; flex-direction: column; gap: .38rem; }
.crow { display: flex; align-items: center; gap: .55rem; }
.crow-flag { font-size: .88rem; width: 20px; text-align: center; flex-shrink: 0; }
.crow-name { font-size: .72rem; font-weight: 500; width: 64px; flex-shrink: 0; color: var(--text-dark); }
.crow-bwrap { flex: 1; height: 6px; background: var(--border-color); border-radius: 100px; overflow: hidden; }
.crow-bar { height: 100%; border-radius: 100px; transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.bar-mhscm { background: var(--primary-blue); }
.bar-mpaqa { background: #1A5C2E; }
.bar-mvax  { background: #6B2D8C; }
.bar-mra   { background: #8B3A00; }
.crow-num { font-size: .7rem; font-weight: 700; width: 20px; text-align: right; flex-shrink: 0; }
.crow-cat { font-size: .6rem; color: var(--text-light); width: 32px; text-align: right; flex-shrink: 0; }

/* funding donut */
.fund-wrap { display: flex; align-items: center; gap: 1rem; }
.fund-rows { flex: 1; }
.fund-row { display: flex; align-items: center; gap: .48rem; padding: .42rem 0; border-bottom: 1px solid var(--border-color); }
.fund-row:last-child { border-bottom: none; padding-bottom: 0; }
.fund-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.fund-lbl { font-size: .77rem; font-weight: 500; flex: 1; }
.fund-val { font-size: .8rem; font-weight: 700; }
.fund-pct { font-size: .67rem; color: var(--text-light); margin-left: .2rem; }

/* career chips */
.career-chip { background: var(--gray-light); border-radius: var(--radius-md); padding: .72rem .88rem; border: 1px solid var(--border-color); display: inline-block; width: calc(50% - .5rem); margin-bottom: .65rem; vertical-align: top; }
.career-chip .csect { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-teal); margin-bottom: .28rem; }
.career-chip p { font-size: .76rem; color: var(--text-light); line-height: 1.45; margin: 0; }

/* leader card */
.leader-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); overflow: hidden; }
.leader-top { padding: 1.25rem 1.2rem .9rem; display: flex; align-items: flex-start; gap: .95rem; }
.leader-ava { width: 66px; height: 66px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 1.35rem; font-weight: 700; color: #fff; border: 3px solid var(--border-color); overflow: hidden; }
.leader-ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-mhscm { background: linear-gradient(135deg, #020D1F, #0A3060); }
.ava-mpaqa { background: linear-gradient(135deg, #061A0D, #1A5C2E); }
.ava-mvax  { background: linear-gradient(135deg, #0D0518, #5A2578); }
.ava-mra   { background: linear-gradient(135deg, #1A0A00, #7A3000); }
.leader-name { font-family: 'Poppins', sans-serif; font-size: .98rem; font-weight: 700; margin-bottom: .12rem; color: var(--dark-blue); }
.leader-role { font-size: .72rem; color: var(--accent-teal); font-weight: 600; margin-bottom: .28rem; }
.leader-dept { display: inline-block; font-size: .66rem; color: var(--text-light); background: var(--gray-light); border: 1px solid var(--border-color); padding: .12rem .48rem; border-radius: 5px; }
.leader-bio { font-size: .79rem; color: var(--text-dark); line-height: 1.6; padding: 0 1.2rem .85rem; }
.leader-contacts { border-top: 1px solid var(--border-color); padding: .8rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.clink { display: flex; align-items: center; gap: .48rem; font-size: .77rem; color: var(--text-dark); transition: color .2s; text-decoration: none; }
.clink:hover { color: var(--primary-blue); }
.clink-ico { width: 22px; height: 22px; border-radius: 5px; background: var(--light-blue); display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }

/* apply banner */
.apply-banner { border-radius: var(--radius-lg); padding: 1.85rem; background: linear-gradient(135deg, #020D1F 0%, #051D3A 50%, #0A3060 100%); position: relative; overflow: hidden; }
.apply-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 75% at 12% 50%, rgba(0,168,150,.14) 0%, transparent 60%); pointer-events: none; }
.apply-banner h3 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.apply-banner p  { color: rgba(255,255,255,.75); font-size: .84rem; margin-bottom: 1.25rem; }
.asteps-row { display: flex; align-items: center; flex-wrap: wrap; gap: .28rem; margin-bottom: 1.25rem; }
.ap-step { display: flex; align-items: center; gap: .28rem; }
.ap-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.ap-step span { font-size: .73rem; color: rgba(255,255,255,.85); }
.aarr { color: rgba(255,255,255,.35); font-size: .75rem; margin: 0 .12rem; }
.apply-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-ap { display: inline-flex; align-items: center; gap: .38rem; font-weight: 700; font-size: .8rem; padding: .58rem 1.2rem; border-radius: var(--radius-md); border: none; cursor: pointer; transition: var(--transition); font-family: 'Poppins', sans-serif; text-decoration: none; }
.btn-ap:hover { transform: translateY(-1px); }
.btn-ap-ghost { display: inline-flex; align-items: center; gap: .38rem; font-weight: 500; font-size: .8rem; padding: .56rem 1.05rem; border-radius: var(--radius-md); border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); background: none; cursor: pointer; transition: var(--transition); font-family: 'Poppins', sans-serif; text-decoration: none; }
.btn-ap-ghost:hover { background: rgba(255,255,255,.09); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media(max-width:960px){
    .prog-band-grid { grid-template-columns: 1fr; }
    .qcard { display: none; }
    .czone .col-6,.czone .col-4,.czone .col-8 { flex: 1 1 100%; }
    .career-chip { width: 100%; }
    .hero-kpis { display: none; }
}
@media(max-width:600px){
    .progs-hero { padding: 80px 0 40px; }
    .ptab .pt-name { display: none; }
    .ptab { padding: .72rem .8rem; }
}
