/* PCET – main.css: COMMON for every page (load after bootstrap.min.css) · fonts, colours, header, footer, social drawer */


/* ---------- 0. FONTS – files in /fonts (no Google link); use the font variables below, never the font names ---------- */
/* Montserrat = body text on every page */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Nunito = headings */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Inter = home page: flyer text, buttons, labels, tags */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Anybody = home page: flyer headline, highlight numbers (one variable file = every weight) */
@font-face { font-family: 'Anybody'; font-style: normal; font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; src: url('../fonts/anybody-latin-standard-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Anybody'; font-style: normal; font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; src: url('../fonts/anybody-latin-ext-standard-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


/* ---------- 1. BRAND COLOURS + FONT VARIABLES ---------- */
:root {
  --pcet-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;   /* body text – every page */
  --pcet-heading-font: "Nunito", sans-serif;                                            /* headings */
  --pcet-ui-font: "Inter", sans-serif;                                                  /* home: flyer, buttons, labels */
  --pcet-display-font: "Anybody", sans-serif;                                           /* home: flyer headline, big numbers */

  --pcet-blue: #136ad5;
  --pcet-navy: #223a58;
  --pcet-navy-deep: #0b2f5e;
  --pcet-amber: #f7a400;
  --pcet-text: #394450;
  --pcet-muted: #6b7785;

  /* Bootstrap defaults → PCET (body font, text, headings, links) */
  --bs-body-font-family: var(--pcet-font);
  --bs-body-color: var(--pcet-text);
  --bs-body-color-rgb: 57, 68, 80;
  --bs-heading-color: var(--pcet-navy);
  --bs-link-color: #136ad5;
  --bs-link-color-rgb: 19, 106, 213;
  --bs-link-hover-color: #0f58b3;
  --bs-link-hover-color-rgb: 15, 88, 179;
}


/* ---------- BODY – every page (font, size, line height, text colour, background) ---------- */
body {
	font-family: var(--pcet-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--pcet-text);
	background-color: #fff;
}


/* ---------- 2. HEADER (#header – header.php) – desktop: menu | crest | menu · phones: crest + ☰ ---------- */
#header { position: relative; z-index: 1020; line-height: 1.5; }
#menubar { background: var(--pcet-navy-deep); border-bottom: 3px solid var(--pcet-amber); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }

/* Info line: phone | email (left) · Media (right) */
#infoLeft { font-size: 13.5px; color: rgba(255, 255, 255, .85); }
#infoRight a:not(.btn) { font-size: 13.5px; }
#infoLeft a, #infoRight a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; white-space: nowrap; transition: color .25s; }
#infoLeft a:hover, #infoRight a:not(.btn):hover { color: var(--pcet-amber); }
#infoLeft i, #infoRight a:not(.btn) i { color: var(--pcet-amber); }
#infoLeft i, #infoRight i { margin-right: 4px; }
#infoLeft span { color: rgba(255, 255, 255, .3); margin: 0 10px; }

/* Admission Enquiry button (saffron) */
#infoRight .btn { --bs-btn-color: #0b2f5e; --bs-btn-bg: #f4c430; --bs-btn-border-color: #f4c430; --bs-btn-hover-color: #0b2f5e; --bs-btn-hover-bg: #f4c430; --bs-btn-hover-border-color: #f4c430; --bs-btn-active-color: #0b2f5e; --bs-btn-active-bg: #f4c430; --bs-btn-active-border-color: #f4c430; font-size: 13.5px; font-weight: 700; border-radius: 50rem; padding: 5px 16px; box-shadow: 0 4px 14px rgba(247, 164, 0, .35); transition: transform .2s, box-shadow .2s; }
#infoRight .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #f4c430; }
#infoRight .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Menu – font size = --bs-nav-link-font-size (main-1.js shrinks both halves if a menu gets too long) */
#header .navbar { --bs-nav-link-font-size: 15px; --bs-navbar-color: #fff; --bs-navbar-hover-color: var(--pcet-amber); --bs-navbar-active-color: var(--pcet-amber); padding: 0; }
#header .nav-link { position: relative; font-size: var(--bs-nav-link-font-size); font-weight: 500; white-space: nowrap; }
#header .nav-link:focus, #header .nav-link:focus-visible { box-shadow: none; outline: none; }
#header .nav-link:focus-visible { color: var(--pcet-amber); }

/* Crest logo */
#crest a { color: #fff; }
#header img { object-fit: contain; background: #fff; border: 2px solid #fff; border-radius: 20%; padding: 2px; }
#crest strong { font-size: 26px; font-weight: 800; line-height: 1.05; color: #fff; }
#crest small { font-size: 12px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; color: var(--pcet-amber); }

/* ☰ button (phones/tablets) */
#menubar [data-bs-toggle="collapse"] { color: #fff; font-size: 30px; line-height: 1; padding: 4px 8px; border: 0; }
#menubar [data-bs-toggle="collapse"]:hover, #menubar [data-bs-toggle="collapse"]:focus-visible { color: #fff; background: rgba(255, 255, 255, .12); }

/* Dropdown cards */
#header .dropdown-menu { --bs-dropdown-link-color: var(--pcet-navy); --bs-dropdown-link-hover-color: var(--pcet-blue); --bs-dropdown-link-hover-bg: #e7f0fc; --bs-dropdown-link-active-color: var(--pcet-blue); --bs-dropdown-link-active-bg: #e7f0fc; border: 0; border-top: 3px solid var(--pcet-amber); border-radius: 12px; padding: 8px; min-width: 220px; box-shadow: 0 18px 45px rgba(15, 40, 80, .2); }
#header .dropdown-item { font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: 8px; }


/* ---------- 3. FOOTER (#footer – footer.php) – navy + amber ribbon ---------- */
#footer { position: relative; margin-top: 40px; line-height: 1.5; overflow-x: clip; font-size: 15px; background: var(--pcet-navy-deep); border-top: 4px solid var(--pcet-amber); }
#footer h3, #footer .h4 { font-family: inherit; color: #fff; margin-top: 0; }
#footer h3::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--pcet-amber); }
#footer p { color: rgba(255, 255, 255, .82); }
#footer a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
#footer a:hover, #footer a:focus-visible { color: var(--pcet-amber); }
#footer i { color: var(--pcet-amber); }
#footer address { color: rgba(255, 255, 255, .82); line-height: 1.7; }
#footer iframe { border: 0; }
#footer > div:last-child { background: #071f40; color: rgba(255, 255, 255, .6); }

/* Ribbon on the amber top line: band (div) in front, 2 tails (span) behind, 2 dark folds (div > span) */
#footerRibbon { position: absolute; left: 50%; top: -9px; z-index: 3; transform: translate(-50%, -50%); width: max-content; white-space: nowrap; -webkit-text-size-adjust: none; text-size-adjust: none; }
#footerRibbon > div { position: relative; z-index: 2; padding: 10px 34px 10px 12px; background: linear-gradient(#ffc847, var(--pcet-amber) 60%, #ec9a00); box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
#footerRibbon > div::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(11, 47, 94, .45); pointer-events: none; }   /* stitched edge */
#footerRibbon img { flex-shrink: 0; object-fit: contain; background: #fff; border-radius: 20%; padding: 2px; }
#footerRibbon strong { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pcet-navy-deep); }
#footerRibbon > span { position: absolute; top: 14px; width: 64px; height: 100%; background: linear-gradient(#e39a00, #c98500); }
#footerRibbon > span:first-child { left: -48px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 24% 50%); }
#footerRibbon > span:nth-child(2) { right: -48px; clip-path: polygon(0 0, 100% 0, 76% 50%, 100% 100%, 0 100%); }
#footerRibbon > div > span { position: absolute; top: 100%; width: 16px; height: 14px; background: #8a5800; }
#footerRibbon > div > span:nth-of-type(1) { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
#footerRibbon > div > span:nth-of-type(2) { right: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Faint outlined "EXCELLENCE" behind the name */
#footerMark { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); font-size: 170px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(247, 164, 0, .16); white-space: nowrap; pointer-events: none; }

/* Social icons: round outline, amber on hover */
#footerSocial a { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); }
#footerSocial a:hover, #footerSocial a:focus-visible { background: var(--pcet-amber); border-color: var(--pcet-amber); }
#footerSocial a:hover i, #footerSocial a:focus-visible i { color: var(--pcet-navy-deep); }


/* ---------- 4. SOCIAL DRAWER (#socialDrawer – footer.php) – amber tab fixed on the right, panel slides out ---------- */
#socialDrawer { --drawer-hide: calc(100% - 34px); position: fixed; top: 50%; right: 0; z-index: 1030; display: flex; align-items: stretch; transform: translate(var(--drawer-hide), -50%); transition: transform .4s ease; filter: drop-shadow(-4px 6px 14px rgba(11, 47, 94, .3)); }   /* closed: only the 34px tab shows */
#socialDrawer[data-open], #socialDrawer:focus-within { --drawer-hide: 0px; }   /* open: tap or keyboard */
@media (hover: hover) { #socialDrawer:hover { --drawer-hide: 0px; } }        /* open: mouse hover */
#socialDrawer > button { width: 34px; padding: 14px 0; border: 0; border-radius: 0 10px 10px 0; background: var(--pcet-amber); color: var(--pcet-navy-deep); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); cursor: pointer; }
#socialDrawer > button:focus-visible { outline: 2px solid var(--pcet-navy-deep); outline-offset: -4px; }
#socialDrawer nav { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--pcet-navy-deep); }
#socialDrawer nav a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; color: #fff; font-size: 19px; text-decoration: none; transition: background .2s, color .2s; }
#socialDrawer nav a:hover, #socialDrawer nav a:focus-visible { background: var(--pcet-amber); color: var(--pcet-navy-deep); outline: none; }


/* ---------- TICKER (#ticker – any page) – CSS marquee: enters right, leaves left, pauses on hover ---------- */
#ticker { background: var(--pcet-navy-deep); border-bottom: 3px solid var(--pcet-amber); }
#ticker > div:first-child { background: var(--pcet-amber); color: var(--pcet-navy-deep); font-size: 13px; letter-spacing: .12em; padding-right: 34px !important; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }   /* slanted HIGHLIGHTS tag */
#ticker > div:last-child { -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
#ticker > div:last-child > div { padding-left: 100%; animation: tickerRun var(--ticker-time, 30s) linear infinite; }   /* starts just off the right edge */
#ticker > div:last-child:hover > div, #ticker > div:last-child:focus-within > div { animation-play-state: paused; }
#ticker li { font-size: 15px; font-weight: 500; color: #fff; }
#ticker li i { color: var(--pcet-amber); }
#ticker a { color: #fff; text-decoration: none; transition: color .2s; }
#ticker a:hover, #ticker a:focus-visible { color: var(--pcet-amber); }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 991.98px) { #ticker > div:last-child > div { animation-duration: calc(var(--ticker-time, 30s) * .65); } }   /* narrower bar = less time */
@media (max-width: 575.98px) { #ticker > div:last-child > div { animation-duration: calc(var(--ticker-time, 30s) * .45); } }
@media (max-width: 575.98px) {
  #ticker > div:first-child { font-size: 11px; letter-spacing: .08em; padding-right: 26px !important; }
  #ticker li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #ticker > div:last-child { overflow-x: auto !important; }   /* headlines scroll by hand */
  #ticker > div:last-child > div { animation: none; padding-left: 0; }
}


/* ---------- 5. MEDIA QUERIES ---------- */

/* Desktop (≥1200px) */
@media (min-width: 1200px) {
  #header { position: sticky; top: 0; }
  #menubar .row > .col-xl { min-width: 0; }                     /* equal halves → crest always centred */
  #header .navbar { --bs-navbar-nav-link-padding-x: 8px; }

  /* Info lines above each menu half */
  #infoLeft, #infoRight { display: flex; align-items: center; height: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  #infoRight { justify-content: space-between; }
  #infoRight a:not(.btn) { padding-left: 8px; }

  /* Crest badge hangs below the bar */
  #crest { position: relative; width: 170px; flex-shrink: 0; }
  #crest a { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; background: var(--pcet-navy-deep); border: 3px solid var(--pcet-amber); border-top: 0; border-radius: 0 0 90px 90px; padding: 14px 26px 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); transition: transform .3s; }
  #crest a:hover { transform: translateX(-50%) translateY(3px); }
  #crest img { width: 80px; height: 80px; }
  #crest strong { display: block; margin-top: 6px; font-size: 22px; }

  /* Amber dot under the menu item */
  #header .nav-link { padding-top: 15px; padding-bottom: 15px; }
  #header .nav-link::before { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--pcet-amber); transform: translateX(-50%) scale(0); transition: transform .25s; }
  #header .nav-link:hover::before, #header .nav-link:focus-visible::before, #header .nav-link.active::before, #header .nav-link.show::before { transform: translateX(-50%) scale(1); }
  #header .dropdown-menu { margin-top: 0; }
}

/* Desktop + mouse: dropdowns open on hover (CSS only); a click on the title does nothing; keyboard still works */
@media (min-width: 1200px) and (hover: hover) {
  #header .dropdown { cursor: pointer; }
  #header .dropdown > .nav-link { pointer-events: none; }
  #header .dropdown:hover > .dropdown-menu { display: block; top: 100%; left: 0; }
  #header .dropdown:hover > .nav-link { color: var(--bs-navbar-hover-color); }
  #header .dropdown:hover > .nav-link::before { transform: translateX(-50%) scale(1); }
}

/* Laptops (1200–1399px): tighter menu */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #header .navbar { --bs-navbar-nav-link-padding-x: 5px; --bs-nav-link-font-size: 13px; }
  #infoLeft, #infoRight a:not(.btn) { font-size: 13px; }
  #infoRight a:not(.btn) { padding-left: 5px; }
  #infoLeft span { margin: 0 7px; }
}

/* Phones & tablets (<1200px) */
@media (max-width: 1199.98px) {
  #crest a { padding: 8px 0; }
  #crest img { width: 52px; height: 52px; }
  #infoLeft { text-align: center; padding: 8px 0 4px; border-top: 1px solid rgba(255, 255, 255, .12); }
  #infoRight { padding: 4px 0 12px; }
  #infoRight a:not(.btn) { margin-right: 16px; }

  /* Menu opens as a white list; dropdowns open in place */
  #menuLeft, #menuRight { background: #fff; margin: 0 calc(var(--bs-gutter-x) * -.5); padding: 0 12px; }
  #menuRight { padding-bottom: 10px; }
  #header .navbar { --bs-navbar-color: #000; --bs-navbar-hover-color: var(--pcet-blue); --bs-navbar-active-color: var(--pcet-blue); }
  #header .navbar-nav { width: 100%; }
  #header .nav-link { padding: 11px 8px; border-bottom: 1px solid #eee; }
  #header .nav-link:focus-visible { color: var(--pcet-blue); }
  #header .dropdown-menu { box-shadow: none; background: #f5faff; margin: 4px 0 8px; min-width: 0; max-width: 100%; }
  #header .dropdown-item { white-space: normal; padding: 10px 12px; line-height: 1.4; }
  #header .dropdown-menu li + li .dropdown-item { border-top: 1px solid rgba(0, 0, 0, .08); border-radius: 0; }
}

/* Tablets & phones (<992px) */
@media (max-width: 991.98px) {
  #footerMark { display: none; }
}

/* Phones (<576px) */
@media (max-width: 575.98px) {
  #infoLeft { font-size: 12.5px; }
  #infoLeft i { display: none; }
  #infoLeft span { margin: 0 6px; }

  /* Smaller footer ribbon */
  #footerRibbon { top: -7px; }
  #footerRibbon > div { padding: 8px 20px 8px 8px; gap: 10px !important; }
  #footerRibbon img { width: 32px; height: 32px; }
  #footerRibbon strong { font-size: 10.5px; letter-spacing: .03em; }
  #footerRibbon > span { width: 40px; top: 10px; }
  #footerRibbon > span:first-child { left: -28px; }
  #footerRibbon > span:nth-child(2) { right: -28px; }
  #footerRibbon > div > span { width: 12px; height: 10px; }
}

/* Less motion */
@media (prefers-reduced-motion: reduce) {
  #header .nav-link::before, #infoRight .btn, #crest a, #socialDrawer, #socialDrawer nav a { transition: none; }
}


/* ---------- SCROLL TO TOP (#toTop – footer.php) – navy circle, amber ring fills as you scroll, CSS only ---------- */
html { scroll-behavior: smooth; }   /* smooth jump to top (and to #links) */
@property --top-fill { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
#toTop { position: fixed; right: 20px; bottom: 20px; z-index: 1030; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(var(--pcet-navy-deep) 60%, transparent 61%), conic-gradient(var(--pcet-amber) var(--top-fill), rgba(11, 47, 94, .25) 0); color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(11, 47, 94, .3); transition: color .2s, transform .2s; }
#toTop:hover, #toTop:focus-visible { color: var(--pcet-amber); transform: translateY(-3px); outline: none; }
@keyframes toTopShow { 0%, 4% { opacity: 0; visibility: hidden; --top-fill: 0%; } 6% { opacity: 1; visibility: visible; } 100% { opacity: 1; visibility: visible; --top-fill: 100%; } }
@supports (animation-timeline: scroll()) { #toTop { animation: toTopShow linear both; animation-timeline: scroll(root); } }   /* hidden at the top, shows after a little scrolling */
@media (max-width: 575.98px) { #toTop { right: 14px; bottom: 14px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #toTop { transition: none; } }