/* =========================================================
   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-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); }

/* ---------- 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; }

/* 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-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-heading { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 0 0 8px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.contact-sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #2c3149; line-height: 1.55; }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row strong { color: var(--navy); display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; }
.c-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--wash); display: flex; align-items: center; justify-content: center; font-style: normal; }
.contact-map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 5px; color: var(--ink); }
.contact-form textarea { min-height: 100px; resize: vertical; }
.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; }

/* ---------- 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; }
.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); }
.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; }
.site-popup .popup-body { padding: 20px 24px 24px; text-align: center; }
.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; }
@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; }
  .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; }
  .contact-grid { 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; }
