/* ═══════════════════════════════════════════════════════════════════════════
   PICT MODEL SCHOOL — SITE THEME
   Font: "madefor-display-bold" (Wix Madefor Display, OFL, self-hosted)
   Colours: light blue #DCE8FF · dark blue #334E89 · accent red #EA3333
   Loaded after the existing stylesheets by includes/header_test_1.php and
   includes/header.php, so it applies to every page. Presentation only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. FONT — one family name, real weights (400 body copy · 500 medium · 700 bold UI) ── */
@font-face {
    font-family: 'madefor-display-bold';
    font-style: normal;
    font-weight: 100 400;
    font-display: swap;
    src: url('../fonts/madefor-display-latin-400.woff2') format('woff2');
}
@font-face {
    font-family: 'madefor-display-bold';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/madefor-display-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'madefor-display-bold';
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
    src: url('../fonts/madefor-display-latin-700.woff2') format('woff2');
}

/* ── 2. THEME TOKENS (re-map the site's existing variables) ── */
:root {
    --theme-light: #DCE8FF;
    --theme-light-2: #EEF3FF;
    --theme-light-3: #F5F8FF;
    --theme-line: #D3DFF5;
    --theme-blue: #334E89;
    --theme-blue-mid: #4A66A3;
    --theme-blue-deep: #22375F;
    --theme-red: #EA3333;
    --theme-red-deep: #C92424;
    --theme-text: #000000;                       /* supporting / information text; headings stay --theme-blue */
    --theme-muted: #5D6B88;
    --theme-radius-shape: 14px 4px 14px 4px;
    --theme-font: "madefor-display-bold", "Helvetica Neue", Arial, Helvetica, sans-serif;
    --theme-fs-ui: 19.22px;                      /* reference UI size (card titles, sub-headings) */

    /* site-wide variables from css/style.css */
    --global-color: #334E89;
    --global-border: #EA3333;
    --global-bg-color1: #EEF3FF;
    --global-bg-color2: #DCE8FF;
    --global-bg-color3: #EA3333;
    --font-family: "madefor-display-bold", "Helvetica Neue", Arial, Helvetica, sans-serif;

    /* header / navigation variables from includes/header_test_1.php */
    --pms-primary: #334E89;
    --pms-primary-deep: #22375F;
    --pms-primary-light: #4A66A3;
    --pms-accent: #EA3333;
    --pms-accent-light: #F26464;
    --pms-text: #334E89;
    --pms-text-mid: #334E89;
    --pms-text-light: #6E7C99;
    --pms-surface-hover: #EEF3FF;
    --pms-border-light: #DFE7F6;
    --pms-shadow-xl: 0 22px 60px rgba(34,55,95,0.16), 0 6px 18px rgba(34,55,95,0.08);
}

/* ── 3. TYPOGRAPHY — the same family on every page (icon fonts excluded) ── */
/* (one compound selector — no line breaks inside it, or the breaks would act as descendant combinators) */
body,
body *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.fas):not(.far):not(.fab):not(.fal):not(.glyphicon):not([class^="glyphicon-"]):not([class*=" glyphicon-"]):not([class^="flaticon-"]):not([class*=" flaticon-"]):not(.material-icons) {
    font-family: var(--theme-font) !important;
}
body {
    font-weight: 500;
    color: var(--theme-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
input, select, textarea, button { font-family: inherit; }
body h1, body h2, body h3, body h4, body h5, body h6 { font-weight: 700; color: var(--theme-blue); letter-spacing: -0.01em; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
strong, b, label, th { font-weight: 700; }
th strong, th b { color: inherit; }          /* bold text in table headers follows the header's own colour */
a { color: var(--theme-blue); }
a:hover { color: var(--theme-red); }
.btn, button, [type="submit"], [type="button"] { font-weight: 700; }
::selection { background: var(--theme-light); color: var(--theme-blue-deep); }
*::-webkit-scrollbar-thumb { background-color: #B9CBEE; }
#filterable-item-filter-1 a, .apply, .btn-style, .get-admition, .kf_topbar_wrap { background-color: var(--theme-blue) !important; }
/* shared section headings (kf_edu2_heading*) */
/* ── TYPOGRAPHY SYSTEM — the single source for headings and paragraphs on every page ──
   Reference: index page "Our Achievements" heading and index paragraph text.
   Small card titles / sub-headings (h3–h6 inside components) keep their own sizes — they are different UI elements. */
:root { --pms-h-size: 44px; --pms-h-weight: 600; --pms-h-line: 1.2; --pms-h-track: -0.3px; --pms-p-size: 16px; --pms-p-weight: 500; --pms-p-line: 1.875; }
@media (max-width: 992px) { :root { --pms-h-size: 36px; } }
@media (max-width: 768px) { :root { --pms-h-size: 30px; } }
@media (max-width: 767px) { :root { --pms-p-line: 1.5; } }
/* section & page headings */
.kf_edu2_heading1 h1, .kf_edu2_heading1 h2, .kf_edu2_heading1 h3,
.kf_edu2_heading2 h1, .kf_edu2_heading2 h2, .kf_edu2_heading2 h3,
.section-header .section-title, .alumni-grid-title, .b2-hero-content h1, .pms-section-heading,
.achievements-title, .alumni-title,
.inr_banner_heading h1, .inr_banner_heading h2, .inr_banner_heading h3, .ns-banner-heading h1 {
    font-family: var(--theme-font) !important;
    font-size: var(--pms-h-size) !important;
    font-weight: var(--pms-h-weight) !important;
    line-height: var(--pms-h-line) !important;
    letter-spacing: var(--pms-h-track) !important;
    text-transform: none !important;
}
.kf_edu2_heading1 h1, .kf_edu2_heading1 h2, .kf_edu2_heading1 h3,
.kf_edu2_heading2 h1, .kf_edu2_heading2 h2, .kf_edu2_heading2 h3,
.section-header .section-title, .alumni-grid-title, .b2-hero-content h1, .pms-section-heading,
.achievements-title, .alumni-title { color: var(--theme-blue) !important; }
/* page-banner titles sit on photographs: same typography, they stay white for legibility */
/* paragraphs & supporting text */
body p:not(header p, .pms-header p, .pms-news p, footer p, .pms-footer p, .edu2_copyright_wrap p, nav p, .nav p, .pagination p, .breadcrumb p, .dropdown-menu p, .splide p, .owl-carousel p, .modal p, table p, form p, button p, label p, .pms-notice-section p, .alumni-section p, .achievements-section p, .feeds p, .ach-lightbox p, .inr_banner p, .ns-banner p, .ns-partner-card p, .text-white p, a p),
body li:not(header li, .pms-header li, .pms-news li, footer li, .pms-footer li, .edu2_copyright_wrap li, nav li, .nav li, .pagination li, .breadcrumb li, .dropdown-menu li, .splide li, .owl-carousel li, .modal li, table li, form li, button li, label li, .pms-notice-section li, .alumni-section li, .achievements-section li, .feeds li, .ach-lightbox li, .inr_banner li, .ns-banner li, .ns-partner-card li, .text-white li, a li) {
    font-family: var(--theme-font) !important;
    font-size: var(--pms-p-size) !important;
    font-weight: var(--pms-p-weight) !important;
    line-height: var(--pms-p-line) !important;
}
body p:not(header p, .pms-header p, .pms-news p, footer p, .pms-footer p, .edu2_copyright_wrap p, nav p, .nav p, .pagination p, .breadcrumb p, .dropdown-menu p, .splide p, .owl-carousel p, .modal p, table p, form p, button p, label p, .pms-notice-section p, .alumni-section p, .achievements-section p, .feeds p, .ach-lightbox p, .inr_banner p, .ns-banner p, .ns-partner-card p, .text-white p, a p):not([style*="color"]):not(.text-white),
body li:not(header li, .pms-header li, .pms-news li, footer li, .pms-footer li, .edu2_copyright_wrap li, nav li, .nav li, .pagination li, .breadcrumb li, .dropdown-menu li, .splide li, .owl-carousel li, .modal li, table li, form li, button li, label li, .pms-notice-section li, .alumni-section li, .achievements-section li, .feeds li, .ach-lightbox li, .inr_banner li, .ns-banner li, .ns-partner-card li, .text-white li, a li):not([style*="color"]):not(.text-white) { color: #000 !important; }
/* table headings: the Latest Announcement red */
table thead.thead-dark th { background-color: #5B78B5 !important; color: #fff !important; border-color: #5B78B5 !important; }
/* section heading accent: a fine light-blue rule with a short blue bar and a small red tip at its centre */
.kf_edu2_heading1 h1::after, .kf_edu2_heading2 h1::after, .alumni-title::after, .achievements-title::after {
    content: '' !important; display: block !important; position: static !important;
    width: 112px !important; height: 4px !important; margin: 14px auto 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
    background:
        linear-gradient(var(--theme-red), var(--theme-red)) calc(50% + 21px) 50% / 6px 4px no-repeat,
        linear-gradient(var(--theme-blue), var(--theme-blue)) 50% 50% / 34px 4px no-repeat,
        linear-gradient(#C6D6F3, #C6D6F3) 50% 50% / 100% 1px no-repeat !important;
}

/* ── 4. LATEST ANNOUNCEMENT — LED-style ticker ── */
.pms-news {
    position: relative; z-index: 101;
    height: 38px;
    background-color: #14223F;
    background-image: radial-gradient(rgba(220,232,255,0.07) 1px, transparent 1.2px);   /* subtle LED dot-matrix */
    background-size: 4px 4px;
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid #0C1730;
}
.pms-news-inner { display: flex; align-items: center; height: 100%; }
.pms-news-label {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 9px;
    height: 100%;
    padding: 0 24px 0 16px;
    background: var(--theme-red);
    color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1;
    text-transform: none; white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
}
.pms-news-dot {                                    /* blinking live indicator */
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.95);
    animation: pmsLiveBlink 1.1s steps(1, end) infinite;
}
@keyframes pmsLiveBlink { 0% { opacity: 1; } 50% { opacity: 0.15; } }
.pms-news-viewport { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; }
.pms-news-list { list-style: none; margin: 0; padding: 0; height: 100%; }
.pms-news-list li {
    display: none; align-items: center;
    height: 100%; padding-left: 16px;
    font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.pms-news-list li:first-child { display: flex; }              /* without JavaScript: first announcement, static */
.pms-news.is-js .pms-news-list { display: none; }
/* the moving tape (right → left): every announcement occupies one full-width "slot", so only one sentence
   is shown at a time and the next one follows straight after it — no jump, no empty strip */
.pms-news-tape {
    position: absolute; top: 0; left: 0;
    height: 100%;
    display: flex; align-items: center;
    width: max-content;
    will-change: transform;
    animation: pmsTape var(--pms-tape-duration, 60s) linear infinite;
}
.pms-news-slot {
    flex: 0 0 auto;
    display: flex; align-items: center;
    min-width: var(--pms-slot-width, 100%);
    height: 100%;
    padding-right: 48px;
    font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap;
}
.pms-news-slot::before {                              /* LED bullet before each announcement */
    content: ''; flex-shrink: 0;
    width: 6px; height: 6px; margin: 0 14px 0 16px;
    border-radius: 50%;
    background: var(--theme-red);
    box-shadow: 0 0 6px rgba(234,51,51,0.9);
}
@keyframes pmsTape { from { transform: translateX(0); } to { transform: translateX(-50%); } }   /* right → left */
.pms-news-viewport:focus-within .pms-news-tape,                     /* keyboard focus on an announcement (accessibility) */
.pms-news.is-paused .pms-news-tape { animation-play-state: paused; }
.pms-news-list a,
.pms-news-tape a {
    color: #EAF1FF; text-decoration: none;
    text-shadow: none;
}
.pms-news-tape a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pms-news-tape a:focus-visible,
.pms-news-list a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.pms-news-pause {
    flex: 0 0 auto;
    width: 26px; height: 26px; margin: 0 10px 0 8px; padding: 0;
    display: none; align-items: center; justify-content: center;
    border-radius: 8px 3px 8px 3px;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent; color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.pms-news.is-js .pms-news-pause { display: inline-flex; }
.pms-news-pause:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.pms-news-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pms-news-pause svg { width: 10px; height: 10px; display: block; }
.pms-news-pause .i-play,
.pms-news.is-paused .pms-news-pause .i-pause { display: none; }
.pms-news.is-paused .pms-news-pause .i-play { display: block; }
@media (prefers-reduced-motion: reduce) {
    /* reduced motion: the ticker keeps moving, but slower (set in js/pms-theme.js); the live dot pulses gently */
    .pms-news-dot { animation: pmsLiveSoft 2.4s ease-in-out infinite; }
}
@keyframes pmsLiveSoft { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── 5. MAIN HEADER — two-sided layout on white ── */
.pms-topbar {
    background: #fff;
    padding: 12px 24px;
    min-height: 0;
    border-bottom: 1px solid var(--theme-line);
}
.pms-topbar::after { display: none; }
.pms-topbar-inner { min-height: 0; gap: 0; }
.pms-logo-left,
.pms-logo-right {
    width: 88px; min-width: 88px; height: 66px;
    padding: 6px 9px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--theme-line);
    box-shadow: 0 3px 10px rgba(34,55,95,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pms-logo-left:hover,
.pms-logo-right:hover { transform: translateY(-1px); border-color: #B9CBEE; box-shadow: 0 8px 18px rgba(34,55,95,0.12); }
.pms-logo-left img,
.pms-logo-right img { width: auto; height: auto; max-width: 100%; max-height: 54px; }
.pms-logo-right { margin: 0 18px 0 0; }   /* PICT Model School — left end  */
.pms-logo-left  { margin: 0 0 0 16px; }   /* PICT's Nestling   — right end */
.pms-codes { flex-direction: row; align-items: center; gap: 0; padding: 0; color: var(--theme-blue); }
.pms-code-row {
    flex-direction: column; align-items: flex-start; gap: 5px;
    padding: 0 16px;
    font-size: 18px; font-weight: 700; letter-spacing: 0.3px; line-height: 1;
    color: var(--theme-blue);
}
.pms-code-row:first-child { padding-left: 0; }
.pms-code-row + .pms-code-row { border-left: 1px solid var(--theme-line); }
.pms-code-label { color: var(--theme-red); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; line-height: 1; }
.pms-topbar-spacer { flex: 1 1 auto; min-width: 16px; }
.pms-topbar-actions { gap: 10px; padding-right: 0; justify-content: flex-end; }
.pms-actions { gap: 8px; }

/* header pills: same shape; hover = smooth background/border colour change with a very light lift (label no longer swaps) */
.pms-btn {
    height: 42px;
    border-radius: var(--theme-radius-shape);
    font-size: 13.5px; font-weight: 700; letter-spacing: 0.2px;
    text-transform: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pms-btn-sizer { padding: 0 18px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.2px; text-transform: none; }
.pms-btn-face {
    padding: 0 18px;
    border-radius: var(--theme-radius-shape);
    font-weight: 700;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.pms-btn-face.front,
.pms-btn:hover .pms-btn-face.front,
.pms-btn:focus-visible .pms-btn-face.front { transform: none !important; opacity: 1; }
.pms-btn-face.back { display: none !important; }
/* nothing inside the pill moves any more, so nothing needs clipping: without overflow:hidden and the extra
   compositing layer the full border (and the Admissions running border) renders at every zoom level */
.pms-btn { overflow: visible; }
.pms-btn-face { will-change: auto; }
/* no underline or bottom line in any state */
.pms-btn, .pms-btn:hover, .pms-btn:focus, .pms-btn:focus-visible, .pms-btn:active, .pms-btn:visited,
.pms-btn .pms-btn-face, .pms-btn:hover .pms-btn-face, .pms-btn:focus .pms-btn-face { text-decoration: none !important; }
.pms-btn::after, .pms-btn::before { content: none !important; }
.pms-btn:hover,
.pms-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(51,78,137,0.14); }
.pms-btn:active { transform: none; box-shadow: none; transition-duration: 0.1s; }
/* Parent Portal */
.pms-btn-outline .pms-btn-face.front {
    background: #fff;
    border: 1.5px solid #C6D6F3;
    color: var(--theme-blue);
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pms-btn-outline:hover .pms-btn-face.front,
.pms-btn-outline:focus-visible .pms-btn-face.front { background: var(--theme-light-2); border-color: var(--theme-blue); }
/* Senior Secondary */
.pms-btn-white .pms-btn-face.front {
    background: var(--theme-light-2);
    border: 1.5px solid #C6D6F3;
    color: var(--theme-blue);
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pms-btn-white:hover .pms-btn-face.front,
.pms-btn-white:focus-visible .pms-btn-face.front { background: var(--theme-light); border-color: var(--theme-blue); }
/* Admissions 2026-27: the current action — solid theme red, flat and crisp (no gradient, glow or animation) */
.pms-btn-gold .pms-btn-face.front {
    background: var(--theme-red);
    border: 1.5px solid var(--theme-red-deep);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
}
.pms-btn-gold:hover .pms-btn-face.front,
.pms-btn-gold:focus-visible .pms-btn-face.front { background: var(--theme-red-deep); border-color: #B51F1F; }
/* running border: a thin theme-blue line travels continuously around the red pill's border (button itself does not move) */
@property --pms-run-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes pmsBorderRun { to { --pms-run-angle: 360deg; } }
.pms-btn.pms-btn-gold::before {
    content: '' !important;
    position: absolute; inset: 0; z-index: 3;
    padding: 3px;                                     /* clearly visible line on the pill's border */
    border-radius: inherit;
    background: conic-gradient(from var(--pms-run-angle),
        rgba(51,78,137,0) 0deg, rgba(51,78,137,0) 200deg,
        rgba(51,78,137,0.55) 240deg, #334E89 275deg, #334E89 340deg,
        #ffffff 352deg, #ffffff 357deg, rgba(51,78,137,0) 360deg);   /* solid blue body, short white head */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
    animation: pmsBorderRun 3.6s linear infinite;
}
.pms-btn-gold:hover,
.pms-btn-gold:focus-visible { box-shadow: 0 6px 14px rgba(201,36,36,0.20); }
@media (prefers-reduced-motion: reduce) {
    .pms-btn.pms-btn-gold::before { animation-duration: 4.5s; }   /* a little calmer, still clearly moving */
}
.pms-btn:focus-visible { outline: 2px solid var(--theme-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .pms-btn, .pms-btn-face { transition-duration: 0.01s; }
    .pms-btn:hover, .pms-btn:focus-visible { transform: none; }
}

/* language selector, same shape */
.pms-translate { min-height: 42px; min-width: 176px; }
.pms-translate::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334E89' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='2' y1='12' x2='22' y2='12'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>");
}
.pms-translate::after { border-right-color: var(--theme-blue); border-bottom-color: var(--theme-blue); }
.pms-translate .goog-te-gadget .goog-te-combo {
    background: #fff !important;
    border: 1.5px solid #C6D6F3 !important;
    border-radius: 14px 4px 14px 4px !important;
    color: var(--theme-blue) !important;
    font-size: 13.5px !important; font-weight: 700 !important; letter-spacing: 0.2px !important;
    text-transform: none;
    height: 42px;
    min-width: 176px; max-width: 200px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pms-translate .goog-te-gadget .goog-te-combo:hover,
.pms-translate .goog-te-gadget .goog-te-combo:focus-visible { border-color: var(--theme-blue) !important; background: var(--theme-light-2) !important; box-shadow: 0 8px 18px rgba(51,78,137,0.16); transform: translateY(-2px); }
.pms-translate, .pms-translate *, .pms-translate a:hover { text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) { .pms-translate .goog-te-gadget .goog-te-combo:hover { transform: none; } }

/* ── 6. NAVIGATION ── */
.pms-nav {
    background: var(--theme-light);
    border-bottom: 1px solid #C9D8F4;
    box-shadow: 0 4px 14px rgba(34,55,95,0.06);
    padding: 0 12px;
}
.pms-nav-items { gap: 0; }
.pms-nav-link {
    color: var(--theme-blue);
    font-size: 15px; font-weight: 700; letter-spacing: 0;
    text-transform: none;
    padding: 17px 12px;
}
.pms-nav-link:hover { color: var(--theme-blue-deep); }
.pms-nav-link::after { left: 12px; right: 12px; height: 3px; background: var(--theme-red); border-radius: 3px 3px 0 0; }
.pms-nav-item:hover > .pms-nav-link::after,
.pms-nav-item.is-active > .pms-nav-link::after { transform: scaleX(1); }
.pms-nav-item.is-active > .pms-nav-link { color: var(--theme-blue-deep); }
.pms-nav-link:focus-visible { outline: 2px solid var(--theme-red); outline-offset: -4px; border-radius: 6px; }
.pms-nav-arrow svg { width: 9px; height: 9px; }
.pms-nav-items > li:first-child > .pms-nav-link { padding-left: 12px; }
.pms-dropdown-inner,
.pms-sub-inner { border-radius: 12px; border-color: var(--theme-line); }
.pms-simple-link,
.pms-sub-link,
.pms-mega-link { color: var(--theme-blue); font-weight: 500; font-size: 15px; }
.pms-simple-link:hover,
.pms-sub-link:hover,
.pms-mega-link:hover { background: var(--theme-light-2); color: var(--theme-blue-deep); box-shadow: inset 3px 0 0 var(--theme-red); }
.pms-simple-link.is-current,
.pms-sub-link.is-current { color: var(--theme-blue-deep); font-weight: 700; box-shadow: inset 3px 0 0 var(--theme-red); }
@media (min-width: 992px) {
    .pms-nav-items > .pms-nav-item:nth-child(n+7) .pms-sub { left: auto; right: 100%; margin-left: 0; margin-right: 2px; transform: translateX(-6px); }
    .pms-nav-items > .pms-nav-item:nth-child(n+7) .pms-has-sub:hover > .pms-sub { transform: translateX(0); }
    /* Information → Security opens to the RIGHT (width is capped to the space left — see js/pms-theme.js) */
    .pms-nav-items > .pms-nav-item .pms-has-sub.pms-sub-right > .pms-sub { left: 100%; right: auto; margin-left: 2px; margin-right: 0; transform: translateX(6px); }
    .pms-nav-items > .pms-nav-item .pms-has-sub.pms-sub-right:hover > .pms-sub,
    .pms-nav-items > .pms-nav-item .pms-has-sub.pms-sub-right:focus-within > .pms-sub { transform: translateX(0); }
    .pms-has-sub.pms-sub-right > .pms-sub .pms-sub-link { white-space: normal; }
}

/* ── 7. STICKY ALUMNI CONNECT (all pages) ── */
.pms-alumni-sticky {
    position: fixed; right: 0; top: max(50%, 340px); z-index: 998;      /* centre stays below the header on short screens */
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 14px 10px 16px;
    background: var(--theme-blue);
    color: #fff;
    border-radius: 14px 0 0 14px;
    box-shadow: -4px 8px 22px rgba(34,55,95,0.28);
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px; line-height: 1;
    text-decoration: none;
    transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.pms-alumni-sticky::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--theme-red);
}
.pms-alumni-sticky svg { width: 20px; height: 20px; flex-shrink: 0; }
.pms-alumni-sticky span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.pms-alumni-sticky:hover,
.pms-alumni-sticky:focus-visible {
    background: var(--theme-red); color: #fff; text-decoration: none;
    padding-right: 13px;
    box-shadow: -6px 10px 26px rgba(201,36,36,0.32);
}
.pms-alumni-sticky:hover::before,
.pms-alumni-sticky:focus-visible::before { background: #fff; }
.pms-alumni-sticky:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
body:has(#pmsNavItems.open) .pms-alumni-sticky { opacity: 0; visibility: hidden; pointer-events: none; }
@media print { .pms-alumni-sticky { display: none; } }

/* legacy header (includes/header.php, 5 pages): hard-coded purple mobile menu bar follows the theme */
.kode_navigation #mobile-header { background: var(--theme-blue) !important; }

/* ── 8. MOVING CARD ROWS — every card moves on its own (no row-wide block) ──
   Without JavaScript or with "reduce motion" the row is a still, swipe-able strip. */
.pms-flow {
    position: relative;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none;
    padding: 12px 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%);
}
.pms-flow::-webkit-scrollbar { display: none; }
.pms-flow + .pms-flow { margin-top: 4px; }
.pms-flow-track { display: flex; width: max-content; padding: 0 4%; }
.pms-flow-track > * { flex: 0 0 auto; margin-right: 22px; }
.pms-flow.is-flowing { overflow: hidden; }
.pms-flow.is-flowing .pms-flow-track { position: relative; display: block; width: 100%; padding: 0; height: var(--pms-flow-h, 330px); }
.pms-flow.is-flowing .pms-flow-track > * {
    position: absolute; top: 0; left: 0; margin: 0;
    will-change: transform;
    animation: pmsFlowRTL var(--pms-flow-duration, 30s) linear infinite;
}
.pms-flow.is-flowing[data-direction="ltr"] .pms-flow-track > * { animation-name: pmsFlowLTR; }
@keyframes pmsFlowRTL { from { transform: translateX(var(--pms-flow-end)); }   to { transform: translateX(var(--pms-flow-start)); } }
@keyframes pmsFlowLTR { from { transform: translateX(var(--pms-flow-start)); } to { transform: translateX(var(--pms-flow-end)); } }
/* rows never stop on hover, focus or click — only rows that are off-screen pause (saves CPU) */
.pms-flow.is-flowing.is-offscreen .pms-flow-track > * { animation-play-state: paused; }

/* ── 9. RESPONSIVE ── */
@media (max-width: 1499px) {
    .pms-nav-link { font-size: 14.5px; padding: 16px 9px; }
    .pms-nav-link::after { left: 9px; right: 9px; }
    .pms-nav-items > li:first-child > .pms-nav-link { padding-left: 9px; }
}
@media (max-width: 1399px) {
    .pms-topbar { padding: 11px 18px; }
    .pms-code-row { font-size: 16.5px; padding: 0 13px; }
    .pms-btn, .pms-btn-sizer { font-size: 13px; }
    .pms-btn { height: 40px; }
    .pms-btn-face, .pms-btn-sizer { padding: 0 15px; }
    .pms-translate { min-height: 40px; min-width: 166px; }
    .pms-translate .goog-te-gadget .goog-te-combo { height: 40px; min-width: 166px; max-width: 180px; font-size: 13px !important; }
    .pms-nav-link { font-size: 14px; padding: 15px 7px; }
    .pms-nav-link::after { left: 7px; right: 7px; }
    .pms-nav-items > li:first-child > .pms-nav-link { padding-left: 7px; }
}
@media (max-width: 1280px) {
    .pms-topbar { padding: 10px 14px; }
    .pms-logo-right { margin-right: 12px; }
    .pms-logo-left  { margin-left: 12px; }
    .pms-code-row { font-size: 15.5px; padding: 0 11px; }
    .pms-code-label { font-size: 9.5px; letter-spacing: 1px; }
    .pms-btn, .pms-btn-sizer { font-size: 12.5px; }
    .pms-btn { height: 38px; }
    .pms-btn-face, .pms-btn-sizer { padding: 0 12px; }
    .pms-actions { gap: 6px; }
    .pms-topbar-actions { gap: 8px; }
    .pms-translate { min-height: 38px; min-width: 156px; }
    .pms-translate .goog-te-gadget .goog-te-combo { height: 38px; min-width: 156px; max-width: 170px; font-size: 12.5px !important; }
    .pms-nav-items { flex-wrap: wrap; }
    .pms-nav-link { font-size: 13.5px; padding: 14px 6px; }
    .pms-nav-link::after { left: 6px; right: 6px; }
    .pms-nav-items > li:first-child > .pms-nav-link { padding-left: 6px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .pms-topbar-inner {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        grid-template-areas: "lgL codes tr lgR" "lgL act act lgR";
        align-items: center; row-gap: 8px;
    }
    .pms-topbar-actions { display: contents; }
    .pms-logo-right { grid-area: lgL; }
    .pms-logo-left  { grid-area: lgR; }
    .pms-codes { grid-area: codes; }
    .pms-topbar-spacer { display: none; }
    .pms-translate { grid-area: tr; justify-self: end; }
    .pms-actions { grid-area: act; justify-self: end; }
    .pms-nav { padding: 0 6px; }
    .pms-nav-link { font-size: 12.5px; padding: 12px 4px; gap: 3px; }
    .pms-nav-link::after { left: 4px; right: 4px; }
    .pms-nav-items > li:first-child > .pms-nav-link { padding-left: 4px; }
    .pms-nav-cambridge { height: 40px; }
    .pms-nav-cambridge img { height: 28px; max-height: 30px; }
}
@media (max-width: 991px) {
    .pms-news { height: 36px; }
    .pms-news-label { padding: 0 20px 0 12px; font-size: 14px; gap: 8px; }
    .pms-news-list li, .pms-news-slot { font-size: 14px; }
    .pms-news-pause { margin: 0 8px 0 6px; }
    .pms-alumni-sticky { top: max(50%, 390px); }

    .pms-topbar { padding: 10px 12px 12px; }
    .pms-topbar-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "lgL codes lgR" "tr tr tr" "act act act";
        align-items: center; column-gap: 12px; row-gap: 10px;
        padding-bottom: 0;
    }
    .pms-topbar-actions { display: contents; }
    .pms-logo-right { grid-area: lgL; margin: 0; }
    .pms-logo-left  { grid-area: lgR; margin: 0; }
    .pms-logo-left,
    .pms-logo-right { width: 78px; min-width: 78px; height: 58px; padding: 5px 7px; }
    .pms-logo-left img,
    .pms-logo-right img { width: auto; height: auto; max-width: 100%; max-height: 47px; }
    .pms-codes { grid-area: codes; justify-self: start; margin: 0; padding: 0; flex: none; min-width: 0; flex-direction: row; align-self: center; }
    .pms-code-row { font-size: 15.5px; padding: 0 12px; }
    .pms-code-row:first-child { padding-left: 0; }
    .pms-code-label { font-size: 9.5px; letter-spacing: 1px; }
    .pms-topbar-spacer { display: none; }
    .pms-translate { grid-area: tr; width: 100%; min-width: 0; min-height: 40px; }
    .pms-translate #google_translate_element,
    .pms-translate .goog-te-gadget,
    .pms-translate .goog-te-gadget > div { display: block; width: 100%; }
    .pms-translate .goog-te-gadget .goog-te-combo { height: 40px !important; width: 100% !important; min-width: 0 !important; max-width: none !important; }
    .pms-actions { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: none; }
    .pms-actions > .pms-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }      /* 3 buttons: the last one takes the full row */
    .pms-btn { width: 100%; height: 40px; font-size: 13px; }

    .pms-nav { padding: 0; box-shadow: none; }
    .pms-nav-items { background: #fff; flex-wrap: nowrap; }
    .pms-nav-link { font-size: 15px; padding: 14px 20px; }
    .pms-nav-items > li:first-child > .pms-nav-link { padding-left: 20px; }
    .pms-nav-item.is-active > .pms-nav-link { box-shadow: inset 4px 0 0 var(--theme-red); }
    .pms-dropdown-inner { background: var(--theme-light-3); }
    .pms-sub-inner { background: var(--theme-light-2); }
    .pms-mobile-toggle {
        display: inline-flex; align-items: center; gap: 9px;
        margin: 8px 12px; padding: 9px 15px;
        border-radius: 12px 4px 12px 4px;
        background: var(--theme-blue);
        font-size: 16px; line-height: 1;
        box-shadow: 0 4px 12px rgba(51,78,137,0.25);
    }
    .pms-mobile-toggle::after { content: 'Menu'; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
    .pms-mobile-toggle:focus-visible { outline: 2px solid var(--theme-red); outline-offset: 2px; }
}
@media (min-width: 700px) and (max-width: 991px) {
    .pms-topbar-inner { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "lgL codes tr lgR" "act act act act"; }
    .pms-translate { width: 220px; justify-self: end; }
    .pms-actions { grid-template-columns: repeat(3, auto); justify-content: end; justify-self: end; width: auto; }
    .pms-actions > .pms-btn:last-child { grid-column: auto; }
    .pms-btn { width: auto; }
}
@media (max-width: 767px) {
    .pms-alumni-sticky { padding: 10px 7px 12px; gap: 7px; font-size: 11px; letter-spacing: 0.4px; border-radius: 11px 0 0 11px; }
    .pms-alumni-sticky svg { width: 16px; height: 16px; }
    .pms-alumni-sticky:hover, .pms-alumni-sticky:focus-visible { padding-right: 9px; }
    .pms-flow-track > * { margin-right: 14px; }
}
@media (max-width: 480px) {
    .pms-news-label { padding: 0 16px 0 10px; font-size: 12.5px; gap: 6px; }
    .pms-news-list li, .pms-news-slot { font-size: 13.5px; }
    .pms-news-slot { padding-right: 32px; }
    .pms-news-slot::before { margin: 0 10px 0 12px; }
    .pms-news-pause { width: 24px; height: 24px; margin: 0 6px 0 4px; }

    .pms-topbar { padding: 9px 10px 11px; }
    .pms-topbar-inner { column-gap: 8px; row-gap: 9px; }
    .pms-logo-left,
    .pms-logo-right { width: 66px; min-width: 66px; height: 52px; padding: 5px 6px; }
    .pms-logo-left img,
    .pms-logo-right img { max-height: 41px; }
    .pms-codes { flex-direction: column; align-items: flex-start; gap: 6px; }
    .pms-code-row,
    .pms-code-row:first-child { flex-direction: row; align-items: baseline; gap: 6px; padding: 0; font-size: 14px; letter-spacing: 0.1px; }
    .pms-code-row + .pms-code-row { border-left: none; }
    .pms-code-label { font-size: 9px; letter-spacing: 0.5px; }
    .pms-actions { gap: 7px; }
    .pms-btn { height: 38px; font-size: 12.5px; }
    .pms-btn-face, .pms-btn-sizer { padding: 0 8px; }
    .pms-translate { min-height: 38px; }
    .pms-translate .goog-te-gadget .goog-te-combo { height: 38px !important; }
}
@media (max-width: 359px) {
    .pms-btn { font-size: 11.5px; }
    .pms-code-row, .pms-code-row:first-child { font-size: 13px; }
}

/* ── 9. JUSTIFIED BODY TEXT ──
   Paragraphs and list items in page content are justified. Zero specificity (:where), so every existing page or component rule
   that sets its own alignment (centred intros, cards, quotes, banners, tables, forms, header, navigation, footer) still wins.
   The exclusions below are the centred/right-aligned blocks found by checking every live page at desktop and phone widths. */
:where(p, li):where(:not(header *, .pms-header *, .pms-news *, footer *, .pms-footer *, .edu2_copyright_wrap *, nav *, .nav *, .pagination *, .breadcrumb *, .dropdown-menu *, table *, form *, button *, label *, .modal *, .ns-banner *, .kf_inr_banner *, .owl-carousel *, .splide *, .pms-alumni-sticky *, .error_des *, .section-header *, .alumni-card *, .coming-soon-placeholder *, .acd-wrap > p, .acd-lead *, .ncp-intro *, .ncp-step *, .nsp-wrap > p, .pa-open *, .pa-space *, .pa-close *, .va-quote *, .va-welcome *)) { text-align: justify; }
/* on phones, let long words break at line ends so justified lines do not open wide gaps (needs <html lang="en">, which the header sets) */
@media (max-width: 600px) {
    :where(p, li):where(:not(header *, .pms-header *, .pms-news *, footer *, .pms-footer *, .edu2_copyright_wrap *, nav *, .nav *, .pagination *, .breadcrumb *, .dropdown-menu *, table *, form *, button *, label *, .modal *, .ns-banner *, .kf_inr_banner *, .owl-carousel *, .splide *, .pms-alumni-sticky *, .error_des *, .section-header *, .alumni-card *, .coming-soon-placeholder *, .acd-wrap > p, .acd-lead *, .ncp-intro *, .ncp-step *, .nsp-wrap > p, .pa-open *, .pa-space *, .pa-close *, .va-quote *, .va-welcome *)) { -webkit-hyphens: auto; hyphens: auto; }
}
