/* =========================================================
   GITAM  Website Theme
   Design system: Navy #070942 / Gold #f5b301, serif display
   headings, 8px spacing scale, restrained institutional look
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #070942;
  --navy-2: #131a6e;
  --navy-deep: #04061f;
  --gold: #f5b301;
  --gold-2: #ffd166;
  --paper: #ffffff;
  --wash: #f6f7fb;
  --wash-2: #eef0f8;
  --ink: #14172e;
  --muted: #5a617a;
  --line: #e4e7f0;
  --line-2: #d4d9e8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(7,9,66,.05), 0 8px 24px rgba(7,9,66,.07);
  --shadow-lg: 0 12px 40px rgba(7,9,66,.14);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
  --serif: 'Merriweather', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
p a:hover { text-decoration: underline; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.ic, .ic-xs { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.ic-xs { width: .95em; height: .95em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: var(--radius-sm); font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: .2px; border: 1.5px solid transparent; cursor: pointer; transition: all .18s; text-decoration: none !important; }
.btn-gold { background: var(--gold); color: var(--navy-deep) !important; }
.btn-gold:hover { background: #ffc633; box-shadow: 0 6px 18px rgba(245,179,1,.35); }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 8px 22px rgba(7,9,66,.28); }
.btn-ghost { background: transparent; color: var(--navy) !important; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); background: var(--wash); }
.btn-outline-dark { background: transparent; color: var(--navy-deep) !important; border-color: rgba(7,9,66,.55); }
.btn-outline-dark:hover { background: rgba(7,9,66,.06); }
.btn.full, .full { width: 100%; }

/* ---------- Header (exact original website structure) ---------- */
.site-header { background-color: #070942; color: #fff; position: relative; z-index: 40; }
.header-topline { text-align: right; }
.header-topline p { margin: 0; padding: 4px 0; color: #fff; font-size: 13px; font-weight: 600; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; position: relative; z-index: 2; }
.brand img.logo { width: 104px; height: auto; max-height: 132px; object-fit: contain; flex-shrink: 0; }
.brand-col { position: absolute; left: clamp(150px, 14vw, 200px); right: clamp(170px, 16vw, 240px); top: 50%; transform: translateY(-50%); pointer-events: none; }
.brand-link { display: block; text-decoration: none; pointer-events: auto; }
.brand-text { line-height: 1.5; text-align: center; }
.brand-text h3 { margin: 0 0 3px; color: #fff; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: .2px; font-family: var(--serif); line-height: 1.25; }
.brand-text p { margin: 0; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.45; }
.header-marquee { background: #070942; padding: 0 0 10px; overflow: hidden; max-width: 100%; }
.header-marquee .marquee-wrap { overflow: hidden; max-width: 100%; }
.header-marquee .marquee { display: inline-flex; gap: 48px; white-space: nowrap; animation: marq 32s linear infinite; font-size: 17px; font-weight: 600; }
.header-marquee:hover .marquee { animation-play-state: paused; }
.header-marquee .marquee a { color: #fff; }
.header-marquee .marquee a:hover { color: var(--gold-2); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; margin-left: auto; position: relative; z-index: 2; }
.social-links { display: flex; gap: 7px; }
.social-links a img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.social-links a:hover { transform: translateY(-2px); }
.apply-online-btn { display: inline-block; }
.apply-online-btn img { height: 44px; display: block; }
.apply-online-btn:hover { opacity: .92; }
.live-edit-link { margin-left: auto; color: #cd0a04; font-size: 12.5px; font-weight: 700; padding: 10px 12px; white-space: nowrap; }
.live-edit-link:hover { color: var(--navy); }
/* ---------- Main nav (original color coding) ---------- */
.main-nav { background: #fff4d6; border-bottom: 1px solid #ead9b0; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(7,9,66,.08); }
.main-nav-inner { display: flex; align-items: center; }
.main-menu { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-menu > li { position: relative; }
.main-menu > li > a { color: #cd0a04; display: block; padding: 15px 11px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; transition: all .18s; font-family: var(--font); white-space: nowrap; }
.main-menu > li > a:hover, .main-menu > li.active > a { background: var(--navy); color: #fff; }
.main-menu li ul.sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 6px 0; margin: 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s; z-index: 60; }
.main-menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-menu li ul.sub-menu li a { display: block; padding: 9px 18px; color: #000; font-size: 14px; font-weight: 500; border-left: 3px solid transparent; text-transform: none; letter-spacing: 0; }
.main-menu li ul.sub-menu li a:hover { background: #fff4d6; border-left-color: var(--navy); color: #cd0a04; }
.main-menu li ul.sub-menu ul { display: none; opacity: 0; visibility: hidden; position: absolute; left: 100%; top: -6px; min-width: 240px; background: #fff; border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg); list-style: none; padding: 6px 0; border-radius: 0 var(--radius) var(--radius) var(--radius); }
.main-menu li ul.sub-menu li:hover > ul { display: block; opacity: 1; visibility: visible; }
.main-menu li li { position: relative; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; padding: 8px 14px; cursor: pointer; }
.mobile-drawer-heading, .nav-close, .nav-backdrop { display: none; }
.live-edit-link { margin-left: auto; color: #cd0a04; font-size: 12.5px; font-weight: 700; padding: 10px 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.live-edit-link:hover { color: #fff; }

/* ---------- Hero slider (original banners, clickable, no overlay) ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero-slider .slide { display: none; }
.hero-slider .slide.active { display: block; animation: fadeIn .5s ease; }
.hero-slider .slide-img { width: 100%; height: auto; aspect-ratio: 4/1; object-fit: cover; display: block; }
.hero-slider .slide-link { display: block; line-height: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 5; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.2); cursor: pointer; padding: 0; transition: all .2s; }
.hero-dots button.active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }
.hero-arrows button { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(4,6,31,.5); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 6; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); transition: all .18s; font-family: var(--font); }
.hero-arrows button:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.hero-arrows .prev { left: 14px; }
.hero-arrows .next { right: 14px; }

/* ---------- Four-column section (Highlights / Virtual Tour / Announcements / Why Join) ---------- */
.home-four-col { display: grid; grid-template-columns: 250px 1.5fr 1.15fr 1.15fr; gap: 14px; margin: 18px auto 0; align-items: stretch; }
.hfc-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.hfc-title { background: #070942; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .3px; padding: 9px 12px; margin: 0; font-family: var(--serif); }
.hfc-highlights { border: 0; background: none; }
.hfc-highlights .hfc-title { border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 6px; }
.hfc-slider { position: relative; height: 300px; overflow: hidden; border-radius: 0; background: transparent; }
.hfc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hfc-slide.on { opacity: 1; }
.hfc-slide img { width: 100%; height: 100%; object-fit: fill; }
.hfc-video { position: relative; padding-top: 56.25%; flex: 1; }
.hfc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hfc-ann-scroll { height: 300px; overflow: hidden; position: relative; }
.hfc-ann-scroll ul { list-style: none; margin: 0; padding: 10px 6px; }
.hfc-ann-scroll li { padding: 7px 6px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.hfc-ann-scroll li a { color: #cd0a04; text-decoration: none; line-height: 1.4; display: block; }
.hfc-ann-scroll li a:hover { text-decoration: underline; color: var(--navy); }
.hfc-ann-badge { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; vertical-align: 1px; }
.hfc-why-list { list-style: none; margin: 0; padding: 10px 6px; flex: 1; }
.hfc-why-list li { padding: 7px 6px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.hfc-why-list li a { color: #cd0a04; text-decoration: none; line-height: 1.4; display: block; }
.hfc-why-list li a:hover { text-decoration: underline; color: var(--navy); }

/* ---------- Campus images carousel (tiny-carousel strip) ---------- */
.home-carousel { margin: 16px 0 22px; overflow: hidden; }
.carousel-viewport { width: 100%; overflow: hidden; }
.carousel-track { display: flex; gap: 40px; width: max-content; padding: 4px 0; transition: transform .6s ease; }
.carousel-cell { flex: 0 0 100px; width: 100px; height: 53px; }
.carousel-cell img { display: block; width: 100%; height: 100%; object-fit: fill; border: 0; border-radius: 0; background: transparent; }

/* ---------- Quick strip under slider ---------- */
.quick-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px auto 6px; }
.qs-item { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: all .18s; box-shadow: var(--shadow); }
.qs-item:hover { border-color: var(--navy); transform: translateY(-2px); }
.qs-item .ic { width: 26px; height: 26px; color: var(--navy); flex-shrink: 0; }
.qs-item span { line-height: 1.25; }
.qs-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.qs-item em { font-style: normal; font-size: 12px; color: var(--muted); }
.qs-gold { background: linear-gradient(120deg, #fff8e6, #fff); border-color: #eadfb8; }
.qs-gold .ic { color: #a07c00; }

/* ---------- Two-column main layout ---------- */
.two-col-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding: 26px 0 8px; align-items: start; }

/* Notices / News board */
.board { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.board-head { display: flex; align-items: stretch; justify-content: space-between; border-bottom: 1px solid var(--line); }
.board-tabs { display: flex; }
.board-tab { padding: 13px 22px; border: 0; background: transparent; font-family: var(--font); font-size: 13.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all .15s; }
.board-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.board-tab:hover { color: var(--navy); }
.board-more { align-self: center; margin-right: 14px; font-size: 12.5px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; }
.board-more:hover { color: var(--gold); text-decoration: none; }
.board-body { max-height: 380px; overflow-y: auto; padding: 4px 18px; }
.board-row { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--wash-2); }
.board-row:last-child { border-bottom: 0; }
.board-date { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 74px; }
.board-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.board-title:hover { color: var(--navy); text-decoration: underline; }
.board-title .dl { color: var(--navy); }
.board-empty { padding: 22px 4px; color: var(--muted); font-size: 13.5px; }

/* Home about */
.home-about { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 38px 0; align-items: center; border-bottom: 1px solid var(--line); }
.about-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.about-text .kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #a07c00; margin-bottom: 8px; }
.about-text h2 { font-family: var(--serif); font-size: 27px; line-height: 1.25; margin: 0 0 14px; color: var(--navy); }
.about-text p { color: #333a52; margin: 0 0 16px; }
.fact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.fact-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.5; }
.ic-check { width: 16px; height: 16px; color: #a07c00; flex-shrink: 0; margin-top: 4px; }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Section heads */
.sec-head { margin: 6px 0 22px; }
.sec-head .kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #a07c00; margin-bottom: 6px; }
.sec-head h2 { font-family: var(--serif); font-size: 25px; color: var(--navy); margin: 0 0 8px; line-height: 1.25; }
.sec-head p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* Programmes table */
.programs-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.programs-table td strong { color: var(--navy); font-weight: 700; }
.row-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--navy); white-space: nowrap; }
.row-link:hover { color: #a07c00; }

/* Why block */
.why-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-item { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background .15s; }
.why-item:hover { background: var(--wash); }
.why-num { font-family: var(--serif); font-size: 13px; font-weight: 900; color: #a07c00; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.why-item h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--navy); font-weight: 800; }
.why-item p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.55; }

/* Home gallery */
.home-gallery { padding: 34px 0 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-more { text-align: center; margin-top: 18px; }

/* ---------- Sidebar ---------- */
.col-side { display: grid; gap: 20px; position: sticky; top: 76px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.side-card h3 { margin: 0; padding: 13px 18px; font-size: 13.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--navy); }
.enquiry-card { border-top: 3px solid var(--gold); }
.side-sub { margin: 0; padding: 12px 18px 0; font-size: 12.8px; color: var(--muted); }
.side-form { padding: 14px 18px 16px; display: grid; gap: 10px; }
.side-form input, .side-form select, .mini-enquiry input, .mini-enquiry select, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-family: var(--font); font-size: 13.5px; background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.side-form input:focus, .side-form select:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(7,9,66,.08); }
.side-phone { margin: 0; padding: 0 18px 16px; font-size: 12.5px; color: var(--muted); }
.side-phone strong { color: var(--navy); }
.dl-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.dl-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 13.5px; transition: background .15s; }
.dl-list a:hover { background: var(--wash); color: var(--navy); }
.dl-list .ic { width: 15px; height: 15px; color: #a07c00; flex-shrink: 0; }
.side-placements { border-top: 3px solid var(--navy); }
.side-placements h3 { background: var(--navy-deep); }
.mini-stat { display: flex; align-items: baseline; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--wash-2); }
.mini-stat:last-of-type { border-bottom: 0; }
.mini-stat b { font-family: var(--serif); font-size: 20px; color: var(--navy); min-width: 64px; }
.mini-stat span { font-size: 12.8px; color: var(--muted); }
.side-placements .btn { margin: 12px 16px 16px; width: calc(100% - 32px); }

/* ---------- Department pages ---------- */
.department-page-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 32px; align-items: start; }
.department-page-content { min-width: 0; }
.department-sidebar { position: sticky; top: 76px; }
.department-sidebar .side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.department-sidebar__header { position: relative; padding: 20px 20px 18px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border-bottom: 3px solid var(--gold); color: #fff; }
.department-sidebar__header p { color: rgba(255,255,255,.82); }
.department-sidebar__eyebrow { display: block; margin-bottom: 7px; font-family: var(--font); font-size: 10.5px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; color: var(--gold-2); }
.department-sidebar .side-card h3 { margin: 0; padding: 0; background: transparent; color: #fff !important; font-family: var(--serif); font-size: 16px; font-weight: 900; line-height: 1.35; letter-spacing: .1px; text-transform: none; }
.department-sidebar__description { margin: 10px 0 0; padding: 0; color: rgba(255,255,255,.82) !important; font-size: 12.6px; line-height: 1.55; }
.department-sidebar .dl-list { margin: 0; padding: 10px; list-style: none; display: grid; gap: 3px; }
.department-sidebar .dl-list li { margin: 0; }
.department-sidebar .dl-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-left: 3px solid transparent; border-radius: 8px; color: var(--ink); font-family: var(--font); font-size: 13.3px; font-weight: 600; line-height: 1.45; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.department-sidebar .dl-list a:hover { background: var(--wash); color: var(--navy); transform: translateX(2px); }
.department-sidebar .dl-list a.active { background: var(--wash); color: var(--navy); border-left-color: var(--gold); font-weight: 700; }
.department-sidebar .dl-list a i { margin-left: auto; color: var(--gold); font-size: 15px; opacity: 0; transition: opacity .15s; }
.department-sidebar .dl-list a:hover i, .department-sidebar .dl-list a.active i { opacity: 1; }
.department-sidebar__empty { padding: 12px 12px; color: var(--muted); font-size: 12.8px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 46px 0; margin-top: 34px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { font-family: var(--serif); font-size: 44px; font-weight: 900; color: var(--gold-2); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: #aeb5e0; letter-spacing: .4px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--gold); padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; color: var(--navy-deep); font-family: var(--serif); font-size: 27px; line-height: 1.25; }
.cta-inner p { margin: 6px 0 0; color: #4a3b00; font-size: 14.5px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Inner page hero: simple light strip ---------- */
.page-hero { background: var(--wash); border-bottom: 1px solid var(--line); padding: 24px 0; }
.page-hero h1 { font-family: var(--serif); font-size: 25px; margin: 0 0 5px; color: var(--navy); line-height: 1.3; }
.page-hero .breadcrumbs { color: var(--muted); font-size: 12.8px; }
.page-hero .breadcrumbs a { color: var(--navy); font-weight: 600; }
.page-hero .breadcrumbs a:hover { color: #a07c00; }

/* ---------- Page content + tables + downloads ---------- */
.page-content { padding: 36px 0 56px; }
.page-content h1, .page-content h2, .page-content h3, .page-content h4 { color: var(--navy); font-family: var(--serif); line-height: 1.3; margin: 1.5em 0 .6em; }
.page-content h1 { font-size: 26px; } .page-content h2 { font-size: 22px; border-left: 4px solid var(--gold); padding-left: 12px; }
.page-content h3 { font-size: 18px; } .page-content h4 { font-size: 16px; }
.page-content > *:first-child { margin-top: 0; }
.page-content p { color: #2c3149; }
.page-content img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.page-content ul, .page-content ol { padding-left: 24px; color: #2c3149; }
.page-content li { margin: 4px 0; }
.page-content blockquote { background: var(--wash); border-left: 4px solid var(--gold); margin: 18px 0; padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.page-content blockquote p { margin: 0; }
.page-content iframe { max-width: 100%; border-radius: var(--radius-sm); }

/* ---------- WordPress table-builder buttons (e.g. ELIGIBILITY on programmes page): plain links ---------- */
.page-content .wptb-button-container { display: block; text-align: center; }
.page-content .wptb-button-wrapper { display: block !important; text-align: center; height: auto !important; }
.page-content .wptb-button-wrapper a { text-decoration: none !important; display: inline !important; width: auto !important; height: auto !important; }
.page-content .wptb-button {
  display: inline !important;
  background: none !important;
  background-color: transparent !important;
  color: #cd0a04 !important;
  padding: 0 !important;
  margin: 0;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: .3px;
  text-transform: uppercase;
  line-height: 1.6 !important;
  cursor: pointer;
  transition: color .15s;
}
.page-content .wptb-button:hover { color: #070942 !important; text-decoration: underline !important; transform: none !important; box-shadow: none !important; }
.page-content .wptb-button:active { transform: none !important; }
.page-content td.wptb-cell:has(.wptb-button) { border-color: #dfe3ee !important; background: #fff; vertical-align: middle; text-align: center; }
.page-content td.wptb-cell .wptb-button-container { padding: 0; }

/* Professional tables with horizontal scroll on small screens */
.table-responsive-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.table-responsive-wrap table { width: 100%; border-collapse: collapse; margin: 0 !important; min-width: 560px; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: #fff; font-size: 13.8px; }
.table-responsive-wrap th { background: var(--navy) !important; color: #fff !important; padding: 12px 14px; text-align: left; font-family: var(--font); font-size: 11.8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; border-bottom: 2px solid var(--gold) !important; white-space: nowrap; }
.table-responsive-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--wash-2) !important; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; color: #2c3149; vertical-align: top; }
.table-responsive-wrap tbody tr:nth-child(even) { background: var(--wash); }
.table-responsive-wrap tbody tr:hover { background: #fdf6e3; }
/* Legacy unwrapped tables in imported content */
.page-content .nolwrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-content table { width: 100% !important; max-width: 100%; border-collapse: collapse; margin: 22px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-responsive-wrap table { max-width: none; }
.page-content th { background: var(--navy); color: #fff; padding: 12px 14px; text-align: left; font-size: 11.8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; border: 0; }
.page-content td { padding: 11px 14px; border-bottom: 1px solid var(--wash-2); border-left: 0; border-right: 0; border-top: 0; font-size: 13.8px; vertical-align: top; overflow-wrap: anywhere; }
.page-content tr:nth-child(even) td { background: var(--wash); }
.page-content tr:hover td { background: #fdf6e3 !important; }
.page-content .table-scroll-controls { display: none; }

/* ---------- Mobile tables: keep them readable, scroll inside the table ----------
   Imported content uses several different table wrappers. On phones the
   table stays inside the content column, keeps its natural column widths,
   and scrolls horizontally by itself instead of squeezing columns into
   unreadable slivers. The page itself never scrolls sideways.
   Desktop is untouched. */
@media (max-width: 768px) {
  .page-content table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior-x: contain;
    cursor: grab;
    border-radius: var(--radius);
  }

  .page-content table.is-table-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
  }

  .page-content table > thead,
  .page-content table > tbody,
  .page-content table > tfoot {
    display: table !important;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  .page-content table th,
  .page-content table td {
    min-width: 100px;
  }

  .page-content table th {
    white-space: nowrap;
  }

  /* Keep the wrapper constrained; the table owns the horizontal scroll. */
  .page-content .nolwrap,
  .page-content .wptb-container-legacy,
  .page-content .wptb-container,
  .page-content .table-responsive-wrap,
  .page-content > div:has(> table),
  .page-content > p:has(> table),
  .page-content > section:has(> table) {
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  /* Make the horizontal scroll obvious and usable with touch. */
  .page-content table {
    scrollbar-width: thin;
    scrollbar-color: var(--navy) var(--wash-2);
  }

  .page-content .table-scroll-controls {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: -12px 0 22px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--wash);
    color: var(--muted);
    font-size: 12px;
  }

  .page-content .table-scroll-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(7, 9, 66, .10);
  }

  .page-content .table-scroll-button:active { background: var(--navy); color: #fff; }
  .page-content .table-scroll-button:disabled { opacity: .35; cursor: default; box-shadow: none; }
  .page-content .table-scroll-controls__label { text-align: center; line-height: 1.35; }
  .page-content .table-scroll-progress {
    position: relative;
    grid-column: 1 / -1;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--line-2);
  }

  .page-content .table-scroll-progress__thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 2px;
    background: var(--navy);
    transition: left .12s linear, width .12s linear;
  }

  /* Keep a visible hint that the table can be scrolled sideways. */
  .page-content table::-webkit-scrollbar { height: 6px; }
  .page-content table::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }
  .page-content table::-webkit-scrollbar-track { background: var(--wash-2); }
}
.cms-gallery-category-grid, .cms-gallery-album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cms-gallery-category { display: flex; min-height: 180px; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.cms-gallery-category:hover { color: #fff; background: var(--navy-2); }
.cms-gallery-category__eyebrow { color: var(--gold-2); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.cms-gallery-category h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: 22px; }
.cms-gallery-category__count { color: #d7d9e8; font-size: 13px; }
.cms-gallery-album { display: block; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.cms-gallery-album__cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.cms-gallery-album__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-gallery-album__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.cms-gallery-album__body strong { color: var(--navy); font-size: 15px; }
.cms-gallery-album__body > span { color: var(--muted); font-size: 12px; }

/* Download links: real direct files */
.btn-download, .download-btn {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line-2); color: var(--navy) !important;
  padding: 8px 15px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; margin: 3px 6px 3px 0;
  transition: all .15s; box-shadow: 0 1px 2px rgba(7,9,66,.05); text-decoration: none !important;
}
.btn-download:hover, .download-btn:hover { border-color: var(--gold); background: #fffdf4; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(245,179,1,.22); }
.btn-download::before, .download-btn::before { content: none; }

/* ---------- Contact page ---------- */
.contact-kicker {
  display: block; font-family: var(--font); font-size: 11px; font-weight: 800;
  letter-spacing: 1.9px; text-transform: uppercase; color: #a07c00; margin-bottom: 9px;
}
.contact-title {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2;
  color: var(--navy); margin: 0 0 12px; font-weight: 900;
}
.contact-lead { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 28px; max-width: 46ch; }

/* Hero */
.contact-hero {
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(245,179,1,.16) 0%, rgba(245,179,1,0) 62%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 58%, #101a72 100%);
  color: #fff; position: relative; overflow: hidden;
}
.contact-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 72%);
}
.contact-hero__inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px; align-items: center; padding: 62px 0 66px;
}
.contact-crumbs { font-size: 12.5px; color: rgba(255,255,255,.62); margin-bottom: 26px; }
.contact-crumbs a { color: rgba(255,255,255,.86); font-weight: 600; }
.contact-crumbs a:hover { color: var(--gold-2); }
.contact-crumbs span[aria-hidden] { margin: 0 8px; opacity: .45; }
.contact-hero__kicker {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--gold-2);
}
.contact-hero__title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1; letter-spacing: -.4px; margin: 0 0 18px; color: #fff;
}
.contact-hero__title em {
  font-style: italic; color: var(--gold-2); position: relative; white-space: nowrap;
}
.contact-hero__title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: 2px;
  background: rgba(245,179,1,.4);
}
.contact-hero__lead {
  margin: 0 0 30px; max-width: 54ch; font-size: 15.5px; line-height: 1.75;
  color: rgba(255,255,255,.78);
}
.contact-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-hero__actions .btn { padding: 13px 24px; font-size: 14px; }
.contact-hero__actions .ic { width: 16px; height: 16px; }

.btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.contact-hero__panel {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.16);
  border-top: 3px solid var(--gold); border-radius: 4px; padding: 6px 26px;
  backdrop-filter: blur(4px);
}
.chp-row { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.chp-row:last-child { border-bottom: 0; }
.chp-label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.7px;
  text-transform: uppercase; color: var(--gold-2); margin-bottom: 5px;
}
.chp-value { display: block; font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.5; }
.chp-value a { color: #fff; }
.chp-value a:hover { color: var(--gold-2); }

/* Details + form */
.contact-main { background: var(--paper); padding: 66px 0 72px; }
.contact-main__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }

.contact-cards { list-style: none; margin: 0; padding: 0; }
.contact-card {
  display: flex; gap: 20px; padding: 22px 0;
  border-top: 1px solid var(--line);
}
.contact-cards li:last-child { border-bottom: 1px solid var(--line); }
.contact-card__icon {
  width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; background: var(--navy); color: var(--gold-2); border-radius: 3px;
}
.contact-card__icon .ic { width: 19px; height: 19px; }
.contact-card__body h3 {
  margin: 2px 0 6px; font-family: var(--font); font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy);
}
.contact-card__body p { margin: 0; font-size: 14.3px; line-height: 1.65; color: #333a52; }
.contact-card__body p a { color: var(--navy); font-weight: 600; }
.contact-card__body p a:hover { color: #a07c00; }
.contact-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px;
  font-weight: 700; color: #a07c00;
}
.contact-card__link:hover { color: var(--navy); }
.contact-card__link .ic { width: 14px; height: 14px; transition: transform .16s; }
.contact-card__link:hover .ic { transform: translateX(3px); }

/* Form card */
.contact-form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 18px 46px rgba(7,9,66,.1); overflow: hidden; position: sticky; top: 84px;
}
.contact-form-card__head { padding: 30px 32px 22px; border-bottom: 1px solid var(--line); background: var(--wash); }
.contact-form-card__head .contact-title { margin-bottom: 8px; }
.contact-form-card__head p { margin: 0; font-size: 13.8px; line-height: 1.6; color: var(--muted); }
.contact-form { padding: 26px 32px 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-weight: 700; font-size: 11.5px; margin-bottom: 6px;
  color: var(--ink); letter-spacing: .7px; text-transform: uppercase;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 3px;
  font-family: var(--font); font-size: 14px; background: #fdfdff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa0b6; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(7,9,66,.08);
}
.contact-form textarea { min-height: 118px; resize: vertical; }
.contact-form__submit { width: 100%; margin-top: 22px; padding: 14px 26px; font-size: 14.5px; }
.form-msg { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.form-msg.ok { background: #e8f7ec; color: #146c3a; border: 1px solid #bfe6cc; }
.form-msg.err { background: #fdeeee; color: #a32626; border: 1px solid #f2c9c9; }

/* Full-bleed map */
.contact-map-section { position: relative; background: var(--wash); }
.contact-map-section__frame { width: 100%; height: 460px; background: var(--wash-2); }
.contact-map-section__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(1.04); }
.contact-map-card {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 3px; box-shadow: 0 18px 46px rgba(7,9,66,.11); padding: 30px 34px;
  margin-top: -52px; margin-bottom: 62px; position: relative; z-index: 2; max-width: 640px;
}
.contact-map-card .contact-title { margin-bottom: 8px; }
.contact-map-card p { margin: 0 0 18px; font-size: 14.3px; line-height: 1.65; color: #333a52; }
.contact-map-card .btn .ic { width: 15px; height: 15px; }

@media (max-width: 1000px) {
  .contact-hero__inner { grid-template-columns: 1fr; gap: 38px; padding: 48px 0 52px; }
  .contact-hero__panel { padding: 4px 22px; }
  .contact-main__grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form-card { position: static; }
}
@media (max-width: 620px) {
  .contact-main { padding: 44px 0 50px; }
  .contact-hero__inner { padding: 36px 0 40px; }
  .contact-map-section__frame { height: 320px; }
  .contact-map-card { margin-top: -34px; margin-bottom: 44px; padding: 24px 22px; }
  .contact-form-card__head, .contact-form { padding-left: 22px; padding-right: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-card { gap: 14px; }
}

/* ---------- Footer (original colors #070942) ---------- */
.site-footer { background: #070942; color: #b6bde3; }
.footer-logo { width: 92px; height: auto; margin-bottom: 14px; display: block; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr auto; gap: 34px; padding: 50px 0 34px; }
.footer-top h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; font-weight: 800; }
.footer-top p { font-size: 13.5px; line-height: 1.75; color: #b6bde3; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #b6bde3; font-size: 13.5px; transition: color .15s, padding .15s; }
.footer-links a:hover { color: var(--gold-2); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 11px; font-size: 13.5px; align-items: flex-start; }
.footer-contact .ic { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 15px 0; font-size: 12.8px; color: #8d96c9; }
.footer-bottom a { color: var(--gold-2); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Popup ---------- */
.site-popup-overlay { position: fixed; inset: 0; background: rgba(4,6,31,.72); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.site-popup-overlay.open { display: flex; animation: fadeIn .25s; }
/* The popup never grows past the viewport: the body scrolls instead, so a
   long popup — a form, for instance — stays fully reachable. */
.site-popup { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; animation: popIn .35s cubic-bezier(.2,1.3,.4,1); border-top: 4px solid var(--gold); display: flex; flex-direction: column; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
.site-popup .popup-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(7,9,66,.65); color: #fff; border: 0; font-size: 16px; cursor: pointer; z-index: 2; font-family: var(--font); }
.site-popup .popup-close:hover { background: #a32626; }
.site-popup img.popup-image { width: 100%; max-height: 320px; object-fit: contain; background: #fff; display: block; flex: 0 0 auto; }
.site-popup > img { flex: 0 0 auto; max-height: 70vh; object-fit: contain; }
/* `min-height: 0` lets the body shrink inside the flex column, which is
   what makes the scrollbar appear when the content is too tall. */
.site-popup .popup-body { padding: 20px 24px 24px; text-align: center; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) var(--wash); }
.site-popup .popup-body h3 { margin: 0 0 8px; color: var(--navy); font-family: var(--serif); font-size: 20px; }
.site-popup .popup-body .popup-text { color: var(--muted); font-size: 13.8px; margin: 0 0 16px; overflow-wrap: break-word; }
/* A slim scrollbar that matches the theme. */
.site-popup .popup-body::-webkit-scrollbar { width: 9px; }
.site-popup .popup-body::-webkit-scrollbar-track { background: var(--wash); border-radius: 9px; }
.site-popup .popup-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; border: 2px solid var(--wash); }
.site-popup .popup-body::-webkit-scrollbar-thumb:hover { background: var(--navy); }
/* A form inside a popup is left aligned and drops its outer margin. */
.site-popup .cms-form { margin: 0 0 16px; text-align: left; }
.site-popup .cms-form .cms-form__submit { width: 100%; }
/* The button of the popup sits outside the scrolling body, so it stays
   visible however long the content is. */
.site-popup .popup-actions { flex: 0 0 auto; padding: 0 24px 24px; text-align: center; }
.site-popup .popup-actions .btn { width: 100%; }
/* The image lightbox shows the photo without any padding. */
.site-popup--lightbox .popup-body--flush { padding: 0; }
.site-popup--lightbox .popup-body--flush img { max-height: none; }
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Floating ---------- */
.float-enquiry { position: fixed; right: 0; top: 42%; z-index: 90; writing-mode: vertical-rl; text-orientation: mixed; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 12.5px; letter-spacing: 1.6px; padding: 16px 9px; border-radius: 8px 0 0 8px; box-shadow: -4px 4px 16px rgba(0,0,0,.25); text-decoration: none !important; max-width: 44px; overflow: hidden; }
.float-enquiry:hover { background: #ffc633; }
.float-wa { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37,211,102,.45); }
.float-wa svg { width: 26px; }
.float-wa:hover { transform: scale(1.07); }

/* ---------- Live edit toolbar ---------- */
.live-edit-toolbar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--navy-deep); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 8px 22px; gap: 14px; font-size: 13px; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.live-edit-toolbar .lt-actions { display: flex; gap: 10px; align-items: center; }
.live-edit-toolbar button { border: 0; border-radius: 6px; padding: 8px 18px; font-weight: 700; cursor: pointer; font-size: 13px; font-family: var(--font); }
.live-edit-toolbar .save-btn { background: var(--gold); color: var(--navy-deep); }
.live-edit-toolbar .exit-btn { background: rgba(255,255,255,.14); color: #fff; padding: 8px 16px; }
body.live-editing { margin-top: 42px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-menu > li > a { padding: 12px 9px; font-size: 11.6px; }
  .quick-strip { grid-template-columns: repeat(2, 1fr); }
  .two-col-main { grid-template-columns: 1fr; }
  .department-page-layout { grid-template-columns: 1fr; }
  .department-sidebar { position: static; }
  .col-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .brand img.logo { width: 72px; height: 72px; }
  .brand-col { position: static; transform: none; pointer-events: auto; flex: 1; min-width: 0; }
  .brand-col .brand-text { text-align: left; }
  .brand-col .brand-text h3 { font-size: 19px; white-space: normal; }
  .brand-col .brand-text p { display: none; }
  .home-four-col { grid-template-columns: 1fr; }
  .hfc-col { min-height: 346px; }
  .hfc-slider, .hfc-ann-scroll { height: 300px; }
  .hfc-video { height: 300px; min-height: 300px; padding-top: 0; flex: 1 1 300px; }
  .header-inner { gap: 14px; }
  .header-right { flex-direction: column; align-items: flex-end; width: auto; justify-content: center; gap: 8px; }
  .social-links a img { width: 22px; height: 22px; }
  .apply-online-btn img { height: 34px; }
  .header-contact p { font-size: 11.5px; }
  .main-nav { min-height: 54px; }
  .main-nav-inner { width: 100%; min-height: 54px; justify-content: flex-end; padding: 0 4%; }
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin: 4px 0; padding: 0; border-radius: 6px; color: var(--navy); background: transparent; }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(7,9,66,.08); }
  .main-menu { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(390px, 88vw); max-width: 100%; margin: 0; padding: 0 0 28px; background: #080b3d; box-shadow: -16px 0 48px rgba(4,6,31,.32); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; z-index: 102; transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
  .main-menu.open { transform: translateX(0); visibility: visible; }
  .mobile-drawer-heading { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 20px 20px 16px; color: #fff; background: #080b3d; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--serif); font-size: 18px; font-weight: 700; }
  .nav-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: #fff; background: rgba(255,255,255,.08); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 101; border: 0; background: rgba(4,6,31,.58); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .main-menu > li:not(.mobile-drawer-heading) > a { display: block; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 16px; font-weight: 600; white-space: normal; }
  .main-menu > li.active > a, .main-menu > li > a:hover { color: var(--gold-2); background: rgba(255,255,255,.06); }
  .main-menu li ul.sub-menu,
  .main-menu li ul.sub-menu ul { display: block; position: static; min-width: 0; padding: 0 0 5px 14px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .main-menu li ul.sub-menu li a { padding: 11px 20px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #d7d9e8; font-size: 15px; font-weight: 500; white-space: normal; }
  .main-menu li ul.sub-menu li a:hover { color: #fff; background: rgba(255,255,255,.06); }
  .main-menu > li > a span { display: none; }
  .main-menu li::marker { content: ''; }
  .home-about { grid-template-columns: 1fr; }
  .live-edit-link { display: none; }
}
@media (max-width: 620px) {
  .header-topline { display: none; }
  .header-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 12px; }
  .brand { justify-content: center; width: 100%; }
  .brand img.logo { width: 104px; height: 104px; }
  .brand-col { width: 100%; flex: none; }
  .brand-col .brand-text { text-align: center; }
  .brand-col .brand-text h3 { font-size: 24px; line-height: 1.2; }
  .header-right { align-items: center; width: 100%; min-width: 0; margin: 0; gap: 0; }
  .social-links { display: none; }
  .apply-online-btn img { height: 30px; }
  .header-marquee { padding-bottom: 7px; }
  .header-marquee .marquee { gap: 28px; font-size: 13px; }
  .main-menu { width: min(360px, 92vw); }
  .main-menu > li:not(.mobile-drawer-heading) > a { padding: 13px 17px; }
  .main-menu li ul.sub-menu,
  .main-menu li ul.sub-menu ul { padding-left: 10px; }
  .main-menu li ul.sub-menu li a { padding: 10px 16px; }
  .quick-strip { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-slider .slide-img { aspect-ratio: 2.2/1; }
  .float-enquiry { display: none; }
}

/* print */
@media print { .site-header, .main-nav, .site-footer, .float-enquiry, .float-wa, .hero-arrows, .hero-dots { display: none !important; } }

/* ---------- Admin quick bar (logged-in admins only) ---------- */
.admin-quickbar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: #0a0f4c; display: flex; align-items: center; gap: 4px; padding: 5px 14px; font-size: 12px; box-shadow: 0 2px 12px rgba(4,6,31,.4); }
.admin-quickbar .aqb-label { color: #ffd166; font-weight: 800; margin-right: 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 10.5px; }
.admin-quickbar a { color: #dfe4ff; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 5px; }
.admin-quickbar a:hover { background: rgba(245,179,1,.2); color: #fff; }
.admin-quickbar a:last-child { margin-left: auto; color: #ff9d9d; }
/* ---------- Footer partner images (original website style) ---------- */
.footer-partners { display: grid; grid-template-columns: repeat(2, 96px); gap: 10px; align-content: start; }
.footer-partners a { display: block; background: #fff; border-radius: 8px; padding: 7px; text-align: center; }
.footer-partners img { width: 100%; height: auto; display: block; margin: 0 auto; }
/* The women helpline banner is the wide last image and spans the full grid. */
.footer-partners .footer-partner-wide { grid-column: 1 / -1; padding: 8px 10px; }
.footer-partners .footer-partner-wide img { width: 100%; max-width: 210px; }
.footer-subhead { margin-top: 18px; }
