/* ARK College of Pharmacy — one header on every page (same as the home page):
body.theme-campus { --kg-red: #c50227; --kg-navy: #1c1b3b; --kg-char: #181818; }
   no top bar, navy bar, Poppins college name, the crest at one size, same menu and Apply button. */
body[class] .strip { display: none; }
body[class] .site-head { background: var(--kg-navy, var(--leaf)); border-bottom: 0; }
body[class] .site-head .wrap { min-height: 74px; gap: 12px; }
body[class] .brand { color: #fff; }
body[class] .brand img { width: 62px; height: 62px; }
body[class] .brand b { font: 700 21px/1.2 'Poppins', 'Segoe UI', Arial, sans-serif; font-stretch: 100%; letter-spacing: 0; color: #fff; }
body[class] .brand small { font: 400 13.5px/1.4 'Poppins', 'Segoe UI', Arial, sans-serif; color: rgba(255, 255, 255, .78); margin-top: 2px; }
body[class] .nav > ul { gap: 0; }
body[class] .nav > ul > li > a, body[class] .nav > ul > li > button { font: 600 15.5px 'Poppins', 'Segoe UI', Arial, sans-serif; color: #fff; padding: 8px 9px; gap: 2px; background: transparent; border-radius: 0; }
body[class] .nav > ul > li > a:hover, body[class] .nav > ul > li > button:hover { color: #fff; background: transparent; box-shadow: inset 0 -3px 0 var(--kg-red, var(--gold-2)); }
body[class] .nav > ul > li.on > a, body[class] .nav > ul > li.on > button { color: #fff; box-shadow: inset 0 -3px 0 var(--kg-red, var(--gold-2)); }
body[class] .nav li ul { background: #eee; border: 0; border-radius: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); padding: 0; }
body[class] .nav li ul a { color: #585858; border-radius: 0; font: 500 15px 'Poppins', 'Segoe UI', Arial, sans-serif; padding: 11px 18px; }
body[class] .nav li ul a:hover { background: #eee; color: var(--kg-red, var(--gold-2)); }
body[class] .nav li ul a .i { color: var(--kg-red, var(--gold-2)); }
body[class] .nav li.m-hot a { background: #fff; color: var(--kg-red, var(--gold-2)); }
body[class] .nav-apply { font: 700 11px/1 'Poppins', 'Segoe UI', Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; padding: 10px 14px; border-radius: 3px; margin-left: 8px; background: var(--kg-red, var(--gold-2)); border-color: var(--kg-red, var(--gold-2)); color: #fff; }
body[class] .nav-apply:hover { background: #fff; border-color: #fff; color: var(--kg-navy, var(--leaf)); }
body[class] .menu-btn { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 0; flex: none; }
@media (max-width: 1080px) {
  body[class] .nav { background: var(--kg-char, #181818); border-bottom: 0; }
  body[class] .nav > ul > li > a, body[class] .nav > ul > li > button { border-bottom: 1px solid #424242; padding: 14px 4px; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; font-weight: 700; box-shadow: none !important; }
  body[class] .nav li ul { background: transparent; box-shadow: none; }
  body[class] .nav li ul a { color: #a8a8a8; }
  body[class] .nav li ul a:hover { background: transparent; }
}
@media (max-width: 600px) {
  body[class] .site-head .wrap { gap: 10px; padding-left: 10px; padding-right: 12px; }
  body[class] .brand { min-width: 0; flex: 1 1 auto; gap: 9px; }
  body[class] .brand span { min-width: 0; }
  body[class] .brand b { white-space: normal; font-size: clamp(14.5px, 4.3vw, 17px); line-height: 1.15; }
  body[class] .brand small { font-size: 12.5px; }
  body[class] .brand img { width: 46px; height: 46px; flex: none; }
}
/* computer screens: college logo and name a little further to the left (only where there is room) */
@media (min-width: 1081px) {
  body[class] .site-head .brand { margin-left: calc(-1 * clamp(0px, (100vw - 1240px) / 2, 44px)); }
}
/* narrow computer screens (1081-1180px): menu items a little closer so the bar never runs past the screen edge */
@media (min-width: 1081px) and (max-width: 1180px) {
  body[class] .nav > ul > li > a, body[class] .nav > ul > li > button { padding-left: 6px; padding-right: 6px; }
  body[class] .nav-apply { margin-left: 4px; }
}
/* college name and place in pure white, crisp; logo drawn sharp at every size */
body[class] .site-head .brand b, body[class] .site-head .brand small { color: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body[class] .site-head .brand img { image-rendering: -webkit-optimize-contrast; }
/* bigger, sharper college logo so its lettering can be read */
body[class] .site-head .wrap { min-height: 92px; }
body[class] .brand img, body[class] .site-head .brand img { width: 80px; height: 80px; }
body[class] .site-head .brand { gap: 14px; }
@media (max-width: 600px) {
  body[class] .site-head .wrap { min-height: 76px; }
  body[class] .brand img, body[class] .site-head .brand img { width: 58px; height: 58px; }
}
@media (min-width: 1081px) and (max-width: 1180px) {
  body[class] .brand img, body[class] .site-head .brand img { width: 68px; height: 68px; }
  body[class] .site-head .brand b { font-size: 19px; }
  body[class] .site-head .nav { margin-left: 16px; }
}
/* navy and crimson theme: any text sitting on a red box is white (never black/dark) */
body.theme-campus .skip, body.theme-campus .skip:focus,
body.theme-campus .btn.gold, body.theme-campus .btn.gold:hover,
body.theme-campus .carton.alt .carton-side,
body.theme-campus .steps2 li:nth-child(even) .st-no,
body.theme-campus .cs-level, body.theme-campus .cs-vs-lbl, body.theme-campus .cd-node,
body.theme-campus .ap-seal, body.theme-campus .ap-seal b, body.theme-campus .ap-seal small, body.theme-campus .ap-seal span,
body.theme-campus .gl-n, body.theme-campus .ev-flag, body.theme-campus .ct-ways .i,
body.theme-campus .dl-folder h2 small, body.theme-campus .hm-course-img span, body.theme-campus .hm-date,
body.theme-campus .hm-date *, body.theme-campus .ev-flag * { color: #fff; }

/* ---------------------------------------------------------------- notice board: on every page, above the header; it stays on top with the header */
body[class] .nb { position: sticky; top: 0; z-index: 41; display: flex; align-items: stretch; background: #fff; color: #1b1b2b; border-bottom: 1px solid rgba(0,0,0,.1); font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; }
body[class] .nb-label { flex: none; position: relative; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 14px; background: var(--kg-red, var(--gold-2)); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; }
body[class] .nb-label:hover { color: #fff; }
body[class] .nb-label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[class] .nb-view { flex: 1; min-width: 0; overflow: hidden; padding-left: 22px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%); }
body[class] .nb-track { display: flex; width: max-content; animation: nb-roll var(--nb-time, 40s) linear infinite; }
@media (hover: hover) and (pointer: fine) { body[class] .nb:hover .nb-track { animation-play-state: paused; } }
body[class] .nb:has(:focus-visible) .nb-track { animation-play-state: paused; }
body[class] .nb-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
body[class] .nb-list li { display: flex; align-items: center; white-space: nowrap; margin: 0; }
body[class] .nb-list li::after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 22px; background: var(--kg-red, var(--gold-2)); transform: rotate(45deg); }
body[class] .nb-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: #1b1b2b; text-decoration: none; font-size: 14.5px; font-weight: 500; }
body[class] .nb-list a:hover { color: var(--kg-red, var(--gold-2)); text-decoration: underline; }
body[class] .nb-date { font-size: 12px; font-weight: 600; color: var(--kg-navy, var(--leaf)); background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.1); padding: 2px 8px; }
body[class] .nb-new { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; color: #fff; background: var(--kg-red, var(--gold-2)); padding: 2px 6px; text-transform: uppercase; }
body[class] .nb-all { flex: none; display: flex; align-items: center; padding: 0 max(20px, calc((100vw - 1240px) / 2 + 20px)) 0 16px; border-left: 1px solid rgba(0,0,0,.1); font-size: 13px; font-weight: 600; color: var(--kg-navy, var(--leaf)); text-decoration: none; white-space: nowrap; }
body[class] .nb-all:hover { color: var(--kg-red, var(--gold-2)); }
@keyframes nb-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { body[class] .nb-track { animation: none; } body[class] .nb-view { overflow-x: auto; } body[class] .nb-list[aria-hidden] { display: none; } }
@media (max-width: 700px) {
  body[class] .nb-label { padding: 0 10px 0 12px; margin-left: 0; } body[class] .nb-label span { display: none; }
  body[class] .nb-label svg { width: 22px; height: 22px; }
  body[class] .nb-view { padding-left: 16px; }
  body[class] .nb-list a { font-size: 13.5px; }
  body[class] .nb-all { display: none; }
}
body[class] .nb ~ .site-head { top: var(--nb-h, 46px); }
/* parts of some pages that stay on screen (page index, course tabs, side panels) sit below the notice board too */
body[class] .ab-index { top: calc(96px + var(--nb-h, 0px)); }
body[class] .cd-nav { top: calc(var(--hd-h, 62px) + var(--nb-h, 0px)); }
body[class] .ad-path-head { top: calc(110px + var(--nb-h, 0px)); }
body[class] .ev-side, body[class] .side { top: calc(100px + var(--nb-h, 0px)); }
body[class] .ab-ch { scroll-margin-top: calc(100px + var(--nb-h, 0px)); }
body[class] .cd-sec { scroll-margin-top: calc(110px + var(--nb-h, 0px)); }
body[class] .ad-check-sec { scroll-margin-top: calc(90px + var(--nb-h, 0px)); }
@media (max-width: 900px) {
  body[class] .ab-index { top: calc(var(--hd-h, 66px) + var(--nb-h, 0px)); }
  body[class] .ab-ch { scroll-margin-top: calc(130px + var(--nb-h, 0px)); }
}

/* ---------------------------------------------------------------- WhatsApp chat button (every page, bottom right) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 14px; border-radius: 28px; background: #25d366; color: #fff; text-decoration: none; font: 600 15px/1 'Poppins', 'Segoe UI', Arial, sans-serif; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(0,0,0,.5); }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #128c7e; }
@media (max-width: 700px) {
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
}
@media print { .wa-float, .nb { display: none !important; } }

/* Website admin → Look and layout → Header: "White" — white bar, navy text (all screen sizes) */
body.header-light[class] .site-head { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
body.header-light[class] .brand, body.header-light[class] .site-head .brand b { color: var(--kg-navy, var(--leaf)); }
body.header-light[class] .site-head .brand small { color: #5b5b6b; }
body.header-light[class] .nav > ul > li > a, body.header-light[class] .nav > ul > li > button { color: var(--kg-navy, var(--leaf)); }
body.header-light[class] .nav > ul > li > a:hover, body.header-light[class] .nav > ul > li > button:hover,
body.header-light[class] .nav > ul > li.on > a, body.header-light[class] .nav > ul > li.on > button { color: var(--kg-red, var(--gold-2)); }
body.header-light[class] .nav-apply:hover { background: var(--kg-navy, var(--leaf)); border-color: var(--kg-navy, var(--leaf)); color: #fff; }
body.header-light[class] .menu-btn { color: var(--kg-navy, var(--leaf)); border-color: rgba(0, 0, 0, .2); }
@media (max-width: 1080px) {
  body.header-light[class] .nav { background: #fff; border-top: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
  body.header-light[class] .nav > ul > li > a, body.header-light[class] .nav > ul > li > button { color: var(--kg-navy, var(--leaf)); border-bottom-color: #e5e7eb; }
  body.header-light[class] .nav li ul a { color: #555; }
  body.header-light[class] .nav li ul a:hover { color: var(--kg-red, var(--gold-2)); }
  body.header-light[class] .nav li.m-office { border-top-color: #e5e7eb; }
  body.header-light[class] .nav li.m-office a { color: var(--kg-navy, var(--leaf)); }
}
