/* ================================================================
   ZIA Design System — Inspired by AIA, RIBA, Australian IA
   ================================================================ */

/* Global focus-visible for keyboard accessibility */
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; border-radius: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
/* Remove outline for mouse clicks only */
:focus:not(:focus-visible) { outline: none; }

/* 1. Variables */
:root {
  --navy:    #1E3A8A;
  --navy-2:  #2563EB;
  --navy-dk: #172554;
  --gold:    #3B82F6;
  --gold-dk: #1D4ED8;
  --white:   #FFFFFF;
  --off-white: #F0F4FF;
  --muted:   #64748B;
  --text:    #0F172A;
  --border:  #DBE4FF;
  --shadow:  0 2px 24px rgba(30,58,138,.12);
  --radius:  4px;
  --ff-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --transition: .25s ease;

  /* Legacy variable aliases — many page-specific stylesheets (news.css, jobs.css,
     events.css, members.css, dashboard.css, etc.) reference these older variable
     names expecting styles.css to be loaded. Since most inner pages now load only
     zia-design.css, these aliases keep buttons/backgrounds/borders from silently
     rendering unstyled. */
  --primary-color: var(--navy);
  --primary-light: var(--navy-2);
  --primary-dark:  var(--navy-dk);
  --secondary-color: var(--muted);
  --accent-color:  var(--gold);
  --dark-color:    var(--text);
  --text-color:    var(--text);
  --text-light:    var(--muted);
  --text-lighter:  #94A3B8;
  --light-color:   var(--off-white);
  --bg-light:      var(--off-white);
  --bg-grey:       var(--off-white);
  --border-color:  var(--border);
  --shadow-md: 0 4px 12px rgba(15,23,42,.1);
  --shadow-lg: 0 10px 24px rgba(15,23,42,.15);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 50px;
}

/* NOTE: Automatic/manual dark mode (remapping --navy/--gold/--white) was
   removed — those variables are used as fixed BRAND colours throughout the
   site (hero, nav, buttons, logos), not generic light/dark surface tokens.
   Remapping them made hero/nav/cards render as an unreadable dark-blue wash
   on devices with system dark mode enabled. The site is light-themed only. */

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton-line, .skeleton-avatar {
    animation: none !important;
    background: #eef0f3;
  }
  .page-transition-veil { display: none !important; }
}

/* Legacy button classes (single-dash naming used across many inner pages) */
.btn-primary, a.btn-primary, button.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2rem; font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  border-radius: var(--radius); background: var(--gold); color: var(--white) !important;
  border: none; cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover {
  background: var(--gold-dk); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(59,130,246,.35);
}
.btn-secondary, a.btn-secondary, button.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2rem; font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  border-radius: var(--radius); background: transparent; color: var(--navy) !important;
  border: 1.5px solid var(--navy); cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-secondary:hover, a.btn-secondary:hover, button.btn-secondary:hover {
  background: var(--navy); color: var(--white) !important; transform: translateY(-2px);
}
/* On dark/navy backgrounds, outline/secondary buttons need light borders/text for visibility */
.section--dark .btn-secondary, .section--dark .btn--outline, .section--dark .btn--outline-dark,
.journey .btn-secondary, .journey .btn--outline, .journey .btn--outline-dark,
.newsletter-cta .btn-secondary, .newsletter-cta .btn--outline, .newsletter-cta .btn--outline-dark,
.newsletter .btn-secondary, .newsletter .btn--outline, .newsletter .btn--outline-dark {
  color: var(--white) !important;
  border-color: rgba(255,255,255,.75) !important;
}
.section--dark .btn-secondary:hover, .section--dark .btn--outline:hover, .section--dark .btn--outline-dark:hover,
.journey .btn-secondary:hover, .journey .btn--outline:hover, .journey .btn--outline-dark:hover,
.newsletter-cta .btn-secondary:hover, .newsletter-cta .btn--outline:hover, .newsletter-cta .btn--outline-dark:hover,
.newsletter .btn-secondary:hover, .newsletter .btn--outline:hover, .newsletter .btn--outline-dark:hover {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--white) !important;
}

/* Legacy newsletter subscribe form (single-dash naming) */
.newsletter-form { display: flex; gap: .75rem; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: .85rem 1.25rem; border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius); font-size: .95rem; outline: none; font-family: var(--ff-body);
  background: rgba(255,255,255,.1); color: inherit; transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form input:focus { border-color: var(--gold); background: rgba(255,255,255,.16); }
.newsletter-cta .btn-primary, .newsletter-form button { flex-shrink: 0; }
@media (max-width: 640px) { .newsletter-form { flex-direction: column; } .newsletter-form input { width: 100%; } }

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-body); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 3. Utilities */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.section { padding: 6rem 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--cream { background: var(--off-white); }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.section--dark .section-label, .journey .section-label, .newsletter .section-label { color: #93C5FD; }
.section-title { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.section-title--light { color: var(--white); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: .75rem; max-width: 560px; }

/* 4. Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; font-size: .9rem; font-weight: 600; letter-spacing: .04em; border-radius: var(--radius); transition: var(--transition); }
.btn[disabled], .btn:disabled, button[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--gold-dk); }
.btn--outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-dark { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }
.btn--ghost { color: var(--gold); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.btn--ghost:hover { color: var(--gold-dk); }
.btn--ghost .arrow { transition: transform var(--transition); }
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* 3b. Skeleton Loaders */
@keyframes skeleton-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef0f3 25%, #f8f9fb 37%, #eef0f3 63%); background-size: 200% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
.skeleton-line--title { height: 20px; width: 60%; }
.skeleton-line--sm { width: 40%; }
.skeleton-line--full { width: 100%; }
.skeleton-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(90deg, #eef0f3 25%, #f8f9fb 37%, #eef0f3 63%); background-size: 200% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; flex-shrink: 0; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* 3c. Empty States */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
.empty-state i { font-size: 2.75rem; color: var(--border); margin-bottom: 1rem; display: block; }
.empty-state h4 { color: var(--navy); font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: .4rem; }
.empty-state p { max-width: 420px; margin: 0 auto 1.25rem; line-height: 1.6; }

/* 4a. Scroll-Reveal (data-aos) */
[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
[data-aos="fade-in"] { transform: none; }
[data-aos="fade-left"] { transform: translateX(-32px); }
[data-aos="fade-right"] { transform: translateX(32px); }
[data-aos].aos-in { opacity: 1; transform: none; }

/* 4b. Page Transition Veil — masks old/new page overlap on navigation */
.page-transition-veil {
  position: fixed; inset: 0; z-index: 999999;
  background: var(--navy);
  opacity: 1; pointer-events: none;
  transition: opacity .28s ease;
}
.page-transition-veil--hidden { opacity: 0; }

/* 5. Navigation */
/* Top identity bar */
.nav__topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; background: var(--navy); border-bottom: 1px solid rgba(200,169,110,.25); height: 122px; display: flex; align-items: center; text-align: center; transition: transform .3s ease; }
.nav__topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 0 1rem; width: 100%; }
.nav__topbar-logo { height: 92px; width: 92px; object-fit: contain; border-radius: 8px; flex-shrink: 0; display: block; }
/* <picture> is an inline flex item and shrinks under the long brand name —
   combined with the global img{max-width:100%} it crushed the logo to ~14px.
   Lock the picture so it keeps the logo's natural size. */
.nav__topbar-brand picture, .nav__logo picture { flex-shrink: 0; }
.nav__topbar-brand { display: flex; align-items: center; gap: 1.4rem; text-decoration: none; cursor: pointer; transition: opacity .2s; flex-shrink: 0; }
.nav__topbar-brand:hover { opacity: .85; }
.nav__topbar-name { font-family: var(--ff-display); font-size: clamp(1.55rem, 2.4vw, 2.3rem); font-weight: 800; color: #fff !important; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1.1; }
.nav__topbar-divider { width: 1px; height: 38px; background: rgba(200,169,110,.35); flex-shrink: 0; }
.nav__topbar-tagline { font-size: .95rem; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.nav__topbar-contact { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ff-body); font-size: 1.2rem; font-weight: 700; color: var(--gold); text-decoration: none; background: rgba(255,255,255,.08); padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid rgba(200,169,110,.35); transition: background .2s, border-color .2s, transform .2s; }
.nav__topbar-contact i { font-size: .95rem; }
.nav__topbar-contact:hover { background: rgba(200,169,110,.15); border-color: var(--gold); transform: translateY(-1px); color: var(--gold); }
.nav__topbar-left { display: flex; align-items: center; gap: 1.4rem; }
@media (max-width: 900px) { .nav__topbar { display: none !important; } .nav, .nav__topbar ~ .nav { top: 0 !important; } }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background var(--transition), box-shadow var(--transition), transform .3s ease; }
.nav__topbar ~ .nav { top: 122px; }
.nav--solid { background: var(--navy); box-shadow: 0 2px 16px rgba(0,0,0,.18); }

/* Auto-hide header on scroll down; reveal on scroll up (see nav-inject.js) */
@media (min-width: 901px) {
  body.nav--hidden .nav__topbar { transform: translateY(-100%); }
  body.nav--hidden .nav__topbar ~ .nav { transform: translateY(calc(-100% - 122px)); }
}
@media (max-width: 900px) {
  body.nav--hidden .nav { transform: translateY(-100%); }
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { display: none !important; }
.nav__links { flex: 1; justify-content: center; }
.nav__logo-img-sm { height: 40px; width: 40px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.nav__logo-label { font-family: var(--ff-display); font-size: .85rem; font-weight: 600; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; max-width: 130px; }
.nav__links { display: flex; align-items: center; gap: .25rem; justify-content: center; }
.nav__right { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.nav-logo-img { height: 52px !important; width: 52px !important; max-height: 52px !important; max-width: 52px !important; object-fit: contain !important; border-radius: 6px; flex-shrink: 0; display: block; }
.nav-logo-img--footer { height: 68px !important; width: 68px !important; max-height: 68px !important; max-width: 68px !important; border-radius: 6px !important; }
.nav__logo-mark { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--white); letter-spacing: .02em; line-height: 1; }
.nav__logo-text { font-size: .7rem; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; max-width: 120px; }
.nav__item { position: relative; }
.nav__link { padding: .5rem .85rem; color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 500; letter-spacing: .02em; transition: color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease; display: flex; align-items: center; gap: .3rem; white-space: nowrap; border-radius: 6px; }
.nav__link:hover { color: var(--white); transform: translateY(-3px) scale(1.04); background: rgba(200,169,110,.12); box-shadow: 0 4px 16px rgba(200,169,110,.18); }
.nav__link.active { color: var(--white); background: rgba(200,169,110,.12); box-shadow: 0 4px 16px rgba(200,169,110,.18); }
.nav__link .chev { font-size: .6rem; transition: transform .2s ease; }
.nav__item.open .chev { transform: rotate(180deg); }
/* Dropdown — click-triggered, 3D drop-in */
.nav__dropdown { position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 220px; background: transparent; opacity: 0; pointer-events: none; transform: translateY(-10px) perspective(600px) rotateX(-10deg); transform-origin: top center; transition: opacity .22s ease, transform .22s ease; z-index: 100; }
.nav__dropdown::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; bottom: 0; background: var(--white); border-radius: 10px; box-shadow: 0 20px 60px rgba(10,22,40,.25), 0 4px 12px rgba(10,22,40,.1); z-index: 0; }
.nav__item.open .nav__dropdown { opacity: 1; pointer-events: auto; transform: translateY(0) perspective(600px) rotateX(0deg); }
.nav__dropdown a { display: block; padding: .75rem 1.25rem; font-size: .85rem; color: var(--text); transition: background .15s ease, color .15s ease, transform .15s ease; position: relative; z-index: 1; }
.nav__dropdown a:hover { background: var(--off-white); color: var(--navy); transform: translateX(5px); }
.nav__dropdown a:first-child { border-radius: 10px 10px 0 0; }
.nav__dropdown a:last-child { border-radius: 0 0 10px 10px; }
/* Nav CTA */
.nav__cta { margin-left: 0; background: var(--gold); color: var(--navy); padding: .55rem 1.25rem; border-radius: var(--radius); font-size: .85rem; font-weight: 700; transition: var(--transition); white-space: nowrap; }
.nav__cta:hover { background: var(--gold-dk); transform: translateY(-2px); }
/* Search button */
.nav__search-btn { margin-left: .5rem; background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-size: .9rem; }
.nav__search-btn:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.6); }
/* Search overlay */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(10,22,40,.97); z-index: 10000; align-items: flex-start; justify-content: center; padding-top: 8rem; }
.search-overlay.open { display: flex; }
.search-overlay__inner { width: 100%; max-width: 700px; padding: 0 1.5rem; }
.search-overlay__label { color: rgba(255,255,255,.5); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; display: block; }
.search-overlay__row { display: flex; gap: .75rem; }
.search-overlay__input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; padding: 1rem 1.25rem; border-radius: 8px; outline: none; transition: border-color .2s; }
.search-overlay__input::placeholder { color: rgba(255,255,255,.35); }
.search-overlay__input:focus { border-color: var(--gold); }
.search-overlay__submit { background: var(--gold); color: var(--navy); border: none; padding: 1rem 1.5rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; transition: var(--transition); }
.search-overlay__submit:hover { background: var(--gold-dk); }
.search-overlay__close { position: absolute; top: 2rem; right: 2rem; background: transparent; border: none; color: rgba(255,255,255,.5); font-size: 1.5rem; cursor: pointer; transition: color .2s; }
.search-overlay__close:hover { color: #fff; }
.search-overlay__results { margin-top: 2rem; max-height: 50vh; overflow-y: auto; }
.search-overlay__group { margin-bottom: 1.25rem; }
.search-overlay__group-label { display:block; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--gold); margin-bottom:.5rem; }
.search-result-item { background: rgba(255,255,255,.06); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: .75rem; display: block; color: rgba(255,255,255,.85); transition: background .2s; }
.search-result-item:hover { background: rgba(255,255,255,.12); }
.search-result-item__title { font-weight: 600; font-size: 1rem; color: var(--gold); margin-bottom: .25rem; }
.search-result-item__desc { font-size: .85rem; color: rgba(255,255,255,.6); }
/* Mobile drawer — hidden on desktop; shown only on mobile via media query below */
.nav__mobile { 
  display: none; 
  position: fixed;
  top: 154px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  overflow-y: auto;
  z-index: 9998;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 1rem 0;
}
.nav__mobile.open {
  transform: translateX(0);
}
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9997;
}
.nav__overlay.open {
  display: block;
}
/* Hamburger */
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: .4rem; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 6. Hero */
.hero { position: relative; min-height: clamp(560px, 75vh, 700px); display: flex; align-items: center; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--border); padding-top: 186px; }
.hero__bg { display: none; }
.hero__overlay { display: none; }
.hero__content { position: relative; z-index: 1; max-width: 520px; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(200,169,110,.12); border: 1px solid rgba(200,169,110,.5); color: var(--gold-dk); padding: .4rem 1rem; border-radius: 100px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero__title { font-family: var(--ff-display); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1; margin-bottom: 1.25rem; }
.hero__title em { color: var(--gold-dk); font-style: normal; }
.hero__sub { color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 520px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__deco { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; background: var(--navy); z-index: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.hero__deco-panel { position: relative; flex: 1; overflow: hidden; background: var(--navy); }
.hero__deco-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,.05) 0%, rgba(10,22,40,.05) 55%, rgba(10,22,40,.65) 100%); z-index: 2; pointer-events: none; }

/* Slides fade + slide horizontally in opposite directions between the top and
   bottom panel: top enters from the right and exits to the left; bottom
   enters from the left and exits to the right. */
.hero__deco-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0; z-index: 0; transition: opacity 1.1s ease, transform 1.1s ease; image-rendering: -webkit-optimize-contrast; }
.hero__deco-panel--top .hero__deco-slide { transform: translateX(6%); }
.hero__deco-panel--top .hero__deco-slide--active { transform: translateX(0); }
.hero__deco-panel--top .hero__deco-slide--exit { transform: translateX(-6%); }
.hero__deco-panel--bottom .hero__deco-slide { transform: translateX(-6%); }
.hero__deco-panel--bottom .hero__deco-slide--active { transform: translateX(0); }
.hero__deco-panel--bottom .hero__deco-slide--exit { transform: translateX(6%); }
.hero__deco-slide--active { opacity: 1; z-index: 1; }

/* Caption overlay on each photo panel */
.hero__deco-caption { position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 3; color: #fff; font-family: var(--ff-body); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.hero__deco-caption--active { opacity: 1; transform: translateY(0); }
@media (max-width: 480px) { .hero__deco-caption { display: none; } }

/* Upcoming event card, overlapping the bottom of the hero photo (RIBA-style) */
.hero__event-card { position: absolute; right: 3%; bottom: 2.5rem; width: 38%; max-width: 420px; min-width: 280px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(10,22,40,.25); display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; z-index: 3; }
.hero__event-date { flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.hero__event-date span:first-child { font-size: 1.35rem; font-weight: 700; font-family: var(--ff-display); }
.hero__event-date span:last-child { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero__event-info { min-width: 0; }
.hero__event-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: .2rem; }
.hero__event-info h3 { font-size: .95rem; font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0 0 .4rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.hero__event-link { font-size: .8rem; font-weight: 600; color: var(--gold-dk); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.hero__event-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .hero__event-card { display: none !important; }
}
.hero__scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; animation: bob 2s ease-in-out infinite; cursor: pointer; }
.hero__scroll i { font-size: 1rem; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* 7. Stats Strip */
.stats-strip { background: var(--navy); padding: 2.5rem 0; }
.stats-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stats-strip__item { text-align: center; padding: 1rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); transition: background var(--transition), box-shadow var(--transition); cursor: default; }
.stats-strip__item:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 -3px 0 var(--gold); }
.stats-strip__item:last-child { border-right: none; }
.stats-strip__num { font-family: var(--ff-display); font-size: 2.75rem; font-weight: 600; color: var(--gold); line-height: 1; }
.stats-strip__label { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; margin-top: .4rem; }

/* 8. Mission Strip */
.mission { padding: 5rem 0; background: var(--white); }
.mission__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.mission__item { border-top: 2px solid var(--gold); padding-top: 1.5rem; padding-left: .75rem; border-left: 3px solid transparent; transition: border-color var(--transition), background var(--transition), padding var(--transition); border-radius: 0 var(--radius) var(--radius) 0; }
.mission__item:hover { border-left-color: var(--navy); background: var(--off-white); padding-left: 1.25rem; }
.mission__item h3 { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy); margin-bottom: .75rem; }
.mission__item p { color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* 8a. Information Cards (statutory functions, pathways, resources) */
.info-section { padding: 5rem 0; background: var(--off-white); }
.info-section__header { max-width: 680px; margin-bottom: 2.5rem; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(59,130,246,.25); z-index: 3; }
.info-card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--off-white); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1.25rem; }
.info-card h3 { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy); margin-bottom: .5rem; }
.info-card p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 1.25rem; flex-grow: 1; }
.info-card__link { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--gold); display: inline-flex; align-items: center; gap: .35rem; }
.info-card__link:hover { color: var(--gold-dk); }
.info-card__link i { font-size: .8rem; transition: transform var(--transition); }
.info-card:hover .info-card__link i { transform: translateX(3px); }
@media (max-width: 991px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; gap: .75rem; } }

/* 9. News Section — RIBA CPD Highlights style */
.news-section { padding: 6rem 0; background: var(--white); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 3px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: 0; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(30,58,138,.18); border-color: var(--navy); z-index: 3; }
/* First card spans 2 rows — featured */
.news-card:first-child { grid-row: span 2; }
.news-card:first-child .news-card__graphic { aspect-ratio: 16 / 10; }
.news-card:first-child .news-card__img { aspect-ratio: 16 / 10; }
.news-card:first-child .news-card__title { font-size: 1.65rem; }
/* Graphic header zone */
.news-card__graphic { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-card__graphic::before { content: ''; position: absolute; inset: 0; background: inherit; opacity: 1; }
.news-card__graphic::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.10); }
.news-card__graphic-icon { position: relative; z-index: 1; font-size: 2.2rem; color: rgba(255,255,255,.55); }
/* Accent colours — cycled via inline style on .news-card__graphic */
.news-card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card__img-placeholder { display: none; }
.news-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.news-card__cat { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--navy); display: inline-flex; padding: .25rem .6rem; border-radius: 100px; width: fit-content; margin-bottom: .25rem; }
.news-card__title { font-family: var(--ff-display); font-size: 1.2rem; color: var(--navy); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.news-card__date { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.news-card__date::before { content: ''; display: inline-block; width: 16px; height: 2px; background: var(--gold); border-radius: 2px; }
.news-card__excerpt { font-size: .875rem; color: var(--muted); line-height: 1.65; flex: 1; }
.news-card__link { font-size: .82rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; transition: color var(--transition), gap var(--transition); border-top: 1px solid var(--border); padding-top: .75rem; }
.news-card__link:hover { color: var(--gold); gap: .6rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-card:first-child { grid-row: span 1; } }
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } .news-card:first-child .news-card__title { font-size: 1.3rem; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; gap: .75rem; } }

/* 10. Events Section */
.events-section { padding: 6rem 0; background: var(--white); }
.events-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.event-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 2rem; padding: 1.5rem 2rem; background: var(--white); transition: background var(--transition), box-shadow var(--transition); box-shadow: inset 4px 0 0 transparent; }
.event-row:hover { background: var(--off-white); box-shadow: inset 4px 0 0 var(--navy); }
.event-row__date { text-align: center; }
.event-row__day { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 600; color: var(--navy); line-height: 1; }
.event-row__month { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.event-row__info h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.event-row__meta { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.event-row__meta span { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.event-row__meta i { color: var(--gold); }
.event-row__action .btn { padding: .6rem 1.25rem; font-size: .82rem; }

/* 11. Countdown Banner */
.countdown-banner { background: var(--navy-2); color: var(--white); padding: 1.5rem 0; text-align: center; border-top: 2px solid var(--gold); }
.countdown-banner__label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: .25rem; }
.countdown-banner__title { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; }
.countdown-banner__timer { display: inline-flex; gap: 1.5rem; align-items: center; margin-bottom: 1rem; }
.cd-unit { text-align: center; }
.cd-unit__num { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 600; color: var(--gold); line-height: 1; display: block; }
.cd-unit__label { font-size: .65rem; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.cd-sep { font-size: 1.5rem; opacity: .4; margin-bottom: 1rem; }

/* 12. Career Journey */
.journey { padding: 6rem 0; background: var(--navy); }
.journey__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.journey__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .journey__cards { grid-template-columns: 1fr; } }
.journey__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-left: 4px solid transparent; border-radius: 6px; padding: 1.5rem; transition: var(--transition); cursor: pointer; }
.journey__card:hover { background: rgba(255,255,255,.12); border-left-color: var(--gold); transform: translateY(-2px); }
.journey__card h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.journey__card p { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.5; }

/* 13. About */
.about { padding: 6rem 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.about__img-wrap { position: relative; }
.about__img-accent { position: absolute; bottom: -1.5rem; left: -1.5rem; width: 120px; height: 120px; background: var(--gold); border-radius: 6px; z-index: -1; }
.about__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* 14. Poll */
.poll-section { padding: 4rem 0; background: var(--off-white); }
.poll-card { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: 6px; padding: 2.5rem; box-shadow: var(--shadow); }
.poll-card h3 { font-family: var(--ff-display); font-size: 1.6rem; color: var(--navy); margin-bottom: .5rem; }
.poll-card__question { font-size: 1.05rem; color: var(--text); font-weight: 500; margin-bottom: 1.5rem; }
.poll-option-btn { width: 100%; text-align: left; padding: .85rem 1.25rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .95rem; font-weight: 500; color: var(--text); margin-bottom: .65rem; background: var(--off-white); transition: var(--transition); }
.poll-option-btn:hover { border-color: var(--navy); background: var(--white); color: var(--navy); }
.poll-result { margin-bottom: .65rem; padding: .85rem 1.25rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--off-white); }
.poll-result__top { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; }
.poll-result__bar-bg { background: var(--border); border-radius: 99px; height: 6px; overflow: hidden; }
.poll-result__bar { height: 100%; background: var(--navy); border-radius: 99px; transition: width .6s ease; }
.poll-result__total { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

/* 15. Newsletter */
.newsletter { padding: 5rem 0; background: var(--navy); }
.newsletter__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.newsletter__title { font-family: var(--ff-display); font-size: 2.25rem; color: var(--white); margin-bottom: .75rem; }
.newsletter__sub { color: rgba(255,255,255,.65); margin-bottom: 2rem; }
.newsletter__form { display: flex; gap: .75rem; }
.newsletter__input { flex: 1; padding: .85rem 1.25rem; border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.07); color: var(--white); font-size: .95rem; outline: none; transition: border-color var(--transition); font-family: var(--ff-body); }
.newsletter__input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__input:focus { border-color: var(--gold); }
.newsletter__msg { font-size: .85rem; margin-top: .75rem; }
.newsletter__msg.ok { color: #4ade80; }
.newsletter__msg.err { color: #f87171; }

/* 16. Footer */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); padding: 4rem 0 2rem; color: rgba(255,255,255,.7); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand .nav__logo-mark { font-size: 2.25rem; margin-bottom: .5rem; }
.footer__brand > a { display: inline-block; line-height: 0; margin-bottom: .75rem; cursor: pointer; transition: opacity .2s; }
.footer__brand > a:hover { opacity: .8; }
.footer__brand p { font-size: .875rem; line-height: 1.7; margin: 0 0 1.25rem; color: rgba(255,255,255,.55); }
.footer__social { display: flex; gap: .75rem; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); transition: background .2s, border-color .2s, transform .2s, color .2s; }
.footer__social a svg { display: block; flex-shrink: 0; }
.footer__social a:hover { transform: translateY(-3px); }
.footer__social-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.footer__social-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.footer__social-x:hover { background: #000; border-color: #000; color: #fff; }
.footer__social-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; color: #fff; }
.footer__col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer__col ul li { margin-bottom: .6rem; }
.footer__col ul li a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: rgba(255,255,255,.55); margin-bottom: .7rem; }
.footer__contact i { color: var(--gold); margin-top: .25rem; font-size: .8rem; flex-shrink: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: .5rem; }

/* 16b. Old footer structure compatibility aliases */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem; margin-bottom: 2rem; }
.footer-col { color: rgba(255,255,255,.7); }
.footer-col h3 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a, .footer-col a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col ul li a:hover, .footer-col a:hover { color: var(--gold); }
.footer-col .contact-info li { display: flex; align-items: flex-start; gap: .5rem; color: rgba(255,255,255,.55); font-size: .875rem; margin-bottom: .5rem; }
.footer-col .contact-info i { color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.35); }
/* Social icons — works for both .footer__social and .social-links */
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.social-links a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 1rem; transition: background .2s, border-color .2s, transform .2s, color .2s; text-decoration: none; }
.social-links a:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* 17. FAB */
.fab { position: fixed; bottom: 2rem; right: 2rem; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: var(--transition); opacity: 0; pointer-events: none; }
.fab.visible { opacity: 1; pointer-events: auto; }
.fab:hover { background: var(--gold-dk); transform: translateY(-2px); }

/* 18. Event Highlights Section */
.event-highlights { padding: 6rem 0; background: var(--off-white); }
.event-highlights__header { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; }
.event-highlights__header .section-title em { color: var(--gold); font-style: normal; }
.event-highlights__mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: .75rem; }
.event-highlights__main { grid-column: 1 / -1; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; min-height: 200px; }
.event-highlights__main img.hl-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, transform 6s ease; transform: scale(1); z-index: 0; }
.event-highlights__main img.hl-slide--active { opacity: 1; transform: scale(1.06); z-index: 1; }
.event-highlights__dots { position: absolute; bottom: .9rem; left: 0; right: 0; display: flex; justify-content: center; gap: .45rem; z-index: 2; }
.event-highlights__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.event-highlights__dot:hover { background: rgba(255,255,255,.8); }
.event-highlights__dot--active { background: var(--gold); transform: scale(1.25); }
.event-highlights__thumbs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.event-highlights__thumbs img { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; transition: transform .4s ease, opacity .4s ease, box-shadow .3s ease; cursor: pointer; opacity: .75; }
.event-highlights__thumbs img:hover { transform: scale(1.04); opacity: 1; }
.event-highlights__thumbs img.hl-thumb--active { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }
@media (max-width: 1024px) {
  .event-highlights__header { grid-template-columns: 1fr; gap: 3rem; }
  .event-highlights__thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .event-highlights__main { aspect-ratio: 4 / 3; }
  .event-highlights__thumbs img { height: 100px; }
}

/* 18a. Instagram Feed Section */
.insta-section { padding: 5rem 0; background: var(--white); border-top: 1px solid var(--border); }
.insta-section__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1.25rem; }
.insta-section__header .section-label i { margin-right: .35rem; background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.insta-section__follow { white-space: nowrap; }
.insta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.insta-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; display: block; background: var(--off-white); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta-tile__overlay { position: absolute; inset: 0; background: rgba(10,22,40,.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.insta-tile__overlay i { font-size: 1.75rem; color: var(--white); }
.insta-tile:hover img { transform: scale(1.06); }
.insta-tile:hover .insta-tile__overlay { opacity: 1; }
@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } .insta-section__header { flex-direction: column; align-items: flex-start; } }

/* 18b. Gallery Event Header + Wide Item */
.gallery-event-header { padding: 3rem 0 1.5rem; }
.gallery-event-title { font-family: var(--ff-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--navy); margin: .5rem 0 .75rem; }
.gallery-event-title span { color: var(--gold); }
.gallery-event-header p { color: var(--muted); font-size: 1rem; }
.gallery-item--wide { grid-column: span 2; }
@media (max-width: 640px) { .gallery-item--wide { grid-column: span 1; } }
.gallery-divider { grid-column: 1 / -1; padding: 2.5rem 0 1rem; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.gallery-divider h3 { font-family: var(--ff-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: var(--navy); margin: .4rem 0 .5rem; }
.gallery-divider h3 span { color: var(--gold); }
.gallery-divider p { color: var(--muted); font-size: .95rem; }

/* 18b. Inner-page body offset */
body.page-inner { padding-top: 64px; }
body.page-inner:has(.nav__topbar) { padding-top: 186px; }
@media (max-width: 900px) { body.page-inner { padding-top: 64px; } }

/* 19. Page Header Banner (inner pages) */
.page-header { background: var(--navy); padding: 4rem 0 3rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,22,40,.97) 40%, rgba(10,22,40,.75) 100%); }
/* Optional photographic page header — set background-image inline, this class adds cover sizing + darker legible overlay */
.page-header--photo { background-size: cover; background-position: center; padding: 6rem 0 4rem; min-height: 320px; aspect-ratio: 16 / 5; display: flex; align-items: center; }
.page-header--photo::before { background: linear-gradient(105deg, rgba(10,22,40,.92) 25%, rgba(10,22,40,.55) 100%); }
@media (max-width: 768px) {
  .page-header--photo { aspect-ratio: 3 / 2; min-height: 240px; padding: 4rem 0 2.5rem; }
}
/* Fallback architectural hero for pages that don't define their own image */
.page-header .container { position: relative; z-index: 1; }
.page-title { font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; color: var(--white); margin-bottom: .5rem; line-height: 1.1; }
.page-subtitle { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-top: .5rem; }
.breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 1.25rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.25); }

/* 19b. Reusable visual content blocks (RIBA-like structured pages) */
.content-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.content-card--cream { background: var(--off-white); border-color: transparent; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 2rem; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: .75rem; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); z-index: 3; }
.feature-card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--off-white); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: .25rem; }
.feature-card__title { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.feature-card__text { color: var(--muted); font-size: .95rem; line-height: 1.7; }
@media (max-width: 640px) { .feature-grid { gap: .75rem; } }
.placeholder-image { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-md); background: var(--off-white); display: block; }
/* Branded placeholder for missing images — ZIA blue gradient with watermark */
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #003d82 0%, #0052a3 100%); border-radius: inherit; }
.img-placeholder span { color: rgba(255,255,255,0.25); font-size: 2rem; font-weight: 800; letter-spacing: 0.15em; font-family: var(--ff-display); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split-section { grid-template-columns: 1fr; } }

/* 20. Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label, label.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea,
input.form-control,
select.form-control,
textarea.form-control {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: .95rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition); outline: none; line-height: 1.5;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input.form-control:focus, select.form-control:focus, textarea.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,22,40,.06); }
.form-group textarea, textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.form-error { font-size: .8rem; color: #dc2626; margin-top: .35rem; }

/* 21. Tables */
.table-wrap { overflow-x: auto; border-radius: 6px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table thead th { background: var(--navy); color: var(--white); padding: .85rem 1rem; text-align: left; font-weight: 600; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
table tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover td { background: var(--off-white); }

/* 22. Content Prose */
.content-wrap { max-width: 800px; padding: 4rem 0; }
.content-wrap h2, .prose h2 { font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin: 2.5rem 0 1rem; font-weight: 600; line-height: 1.2; }
.content-wrap h3, .prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 2rem 0 .75rem; }
.content-wrap p, .prose p { color: var(--text); line-height: 1.85; margin-bottom: 1.1rem; }
.content-wrap ul, .content-wrap ol, .prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.content-wrap li, .prose li { color: var(--text); line-height: 1.8; margin-bottom: .4rem; }
.content-wrap strong, .prose strong { color: var(--navy); }

/* 23. Generic grid/card utilities for inner pages */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3px; }
.card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid transparent; border-radius: 0; overflow: hidden; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition), background var(--transition); }
.card:hover { box-shadow: 0 8px 32px rgba(104,120,196,.15); transform: translateY(-3px); border-left-color: var(--navy); background: var(--off-white); z-index: 3; }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 1.5rem; }
.card__tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; display: block; }
.card__title { font-family: var(--ff-display); font-size: 1.2rem; color: var(--navy); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin-bottom: .5rem; }
.card__meta { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.card__text { font-size: .875rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) { .card-grid { gap: .75rem; } }

/* 24. Alert/Notice */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1.5rem; border-left: 3px solid; }
.alert--info { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.alert--success { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.alert--warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert--error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

/* ── Mobile Bottom Navigation Bar ── */
.mob-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9996;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
  height: 60px; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.mob-bottom-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: rgba(255,255,255,.5); font-size: .6rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: none; border: none; cursor: pointer; padding: .4rem 0;
  transition: color .2s; min-height: 44px;
}
.mob-bottom-nav__item i { font-size: 1.15rem; }
.mob-bottom-nav__item--active, .mob-bottom-nav__item:hover { color: var(--gold); }

/* ── Mobile Drawer (redesign) ── */
.mob-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); flex-shrink: 0;
}
.mob-drawer__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.mob-drawer__brand img { border-radius: 6px; }
.mob-drawer__brand span { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.mob-drawer__close { background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.7); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: background .2s, color .2s; }
.mob-drawer__close:hover { background: rgba(255,255,255,.18); color: #fff; }
.mob-drawer__body { flex: 1; overflow-y: auto; padding: .5rem 0 1rem; }
.mob-drawer__group { border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: .25rem; margin-bottom: .25rem; }
.mob-group-label { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.mob-drawer__link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; color: rgba(255,255,255,.75); font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; border-left: 2px solid transparent; }
.mob-drawer__link i { width: 18px; color: rgba(255,255,255,.4); font-size: .95rem; flex-shrink: 0; }
.mob-drawer__link:hover { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--gold); }
.mob-drawer__link--active { color: var(--gold) !important; background: rgba(200,169,110,.08) !important; border-left-color: var(--gold) !important; font-weight: 600; }
.mob-drawer__foot { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.mob-drawer__signin { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s, color .2s; }
.mob-drawer__signin:hover { border-color: var(--gold); color: var(--gold); }
.mob-drawer__join { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; border-radius: var(--radius); background: var(--gold); color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s; }
.mob-drawer__join:hover { background: var(--gold-dk); }

/* 25. Mobile */
@media (max-width: 900px) {
  /* Hide topbar — too large for mobile */
  .nav__topbar { display: none !important; }
  .nav, .nav__topbar ~ .nav { top: 0 !important; }
  .nav--solid { background: var(--navy) !important; box-shadow: 0 2px 12px rgba(0,0,0,.3) !important; }
  .nav__inner { height: 60px !important; }
  .nav__logo { display: flex !important; align-items: center; gap: .5rem; }
  .nav-logo-img { height: 36px !important; width: 36px !important; max-height: 36px !important; max-width: 36px !important; }
  .nav__logo-label { display: block !important; font-size: .72rem !important; }
  .nav__links { display: none !important; }
  /* Keep .nav__right visible — it contains the burger. Hide only search/CTA. */
  .nav__right { display: flex !important; }
  .nav__right .nav__search-btn, .nav__right .nav__cta { display: none !important; }
  .nav__burger { display: flex !important; }

  /* Drawer — full-height slide-in */
  .nav__mobile {
    display: flex !important; flex-direction: column;
    top: 60px !important; transform: translateX(-100%);
    background: #0c1c38 !important;
    padding: 0 !important;
  }
  .nav__mobile.open { transform: translateX(0) !important; }
  .nav__overlay.open { display: block !important; }

  /* Bottom nav */
  .mob-bottom-nav { display: flex; }

  /* Body padding — bottom nav + nav bar */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.page-inner { padding-top: 60px !important; }

  /* Hero */
  .hero { padding-top: 60px !important; min-height: calc(100svh - 120px); align-items: flex-start; padding-bottom: 3rem; }
  .hero__content { padding: 2rem 0 0; max-width: 100%; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.1; }
  .hero__sub { font-size: .95rem; margin-bottom: 1.75rem; max-width: 100%; }
  .hero__actions { flex-direction: column; gap: .75rem; }
  .hero__actions .btn { width: 100%; justify-content: center; padding: .9rem 1.25rem; font-size: 1rem; min-height: 52px; }
  .hero__deco, .hero__event-card { display: none; }

  /* Sections */
  .section { padding: 3rem 0; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .container { padding: 0 1.1rem; }

  /* Stats */
  .stats-strip { padding: 2rem 0; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stats-strip__item { padding: 1.25rem .75rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stats-strip__item:nth-child(2n) { border-right: none; }
  .stats-strip__item:nth-last-child(-n+2) { border-bottom: none; }
  .stats-strip__num { font-size: 2rem; }

  /* Mission */
  .mission__grid { grid-template-columns: 1fr; gap: 0; }
  .mission__item { padding: 1.5rem 1.1rem; border-bottom: 1px solid var(--border); }
  .mission__item:last-child { border-bottom: none; }

  /* News */
  .news-grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-card { border-radius: 10px; }

  /* Events */
  .events-section .section-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .event-row { grid-template-columns: 60px 1fr; gap: .75rem; padding: .9rem 0; }
  .event-row__action { display: none; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__img { aspect-ratio: 16 / 10; border-radius: 10px; }
  .about__actions { flex-direction: column; }
  .about__actions .btn { width: 100%; justify-content: center; min-height: 48px; }

  /* Journey */
  .journey__grid { grid-template-columns: 1fr; gap: 2rem; }
  .journey__cards { grid-template-columns: 1fr; }

  /* Countdown */
  .countdown-banner__timer { gap: .75rem; }
  .cd-unit__num { font-size: 1.8rem; }

  /* Footer */
  .footer { padding-bottom: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { text-align: center; }
  .footer__brand > a { margin: 0 auto .75rem; }
  .footer__social { justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .footer__contact li { justify-content: center; }

  /* Page headers */
  .page-header { padding: 2.5rem 0 2rem; }
  .page-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  /* Forms */
  .newsletter__form { flex-direction: column; }
  .newsletter__input { width: 100%; }
}

/* 19. Responsive */
@media (max-width: 1024px) {
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip__item:nth-child(2) { border-right: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .journey__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__img { aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .mission__grid { grid-template-columns: 1fr; gap: 2rem; }
  .journey__cards { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 70px 1fr; gap: 1rem; }
  .event-row__action { display: none; }
  .newsletter__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 1.5rem; padding-top: 2rem; }
  .footer__social { justify-content: center; }
  .footer__brand { text-align: center; }
  .footer__contact { text-align: center; }
  .footer__contact li { justify-content: center; }
  .hero__actions { flex-direction: column; }
  
  /* Chatbot mobile fixes */
  #ziaChatRoot { 
    right: 1rem; 
    bottom: 4.5rem; 
    z-index: 10001;
  }
  #ziaChatToggle {
    padding: .75rem 1rem;
    font-size: .85rem;
    border-radius: 50px;
    min-width: 48px;
    min-height: 48px;
  }
  .zia-chat-label { display: none; }
  #ziaChatWindow { 
    width: calc(100vw - 2rem); 
    right: 0; 
    bottom: calc(100% + .75rem);
    max-height: 65vh;
    border-radius: 16px;
  }
}

/* ── Gemini AI Chat Widget ──────────────────────────────────────────── */
#ziaChatRoot {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: var(--ff-body);
}

/* Toggle button */
#ziaChatToggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  padding: .7rem 1.2rem .7rem 1rem;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  transition: background .2s, transform .2s, box-shadow .2s;
}
#ziaChatToggle:hover { background: #c9a227; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.28); }
#ziaChatToggle .zia-chat-icon-close { display: none; }
#ziaChatToggle.active .zia-chat-icon-open  { display: none; }
#ziaChatToggle.active .zia-chat-icon-close { display: flex; align-items: center; }
.zia-chat-label { margin-left: .25rem; }

/* Chat window */
#ziaChatWindow {
  position: absolute;
  bottom: calc(100% + .75rem);
  right: 0;
  width: 360px;
  max-height: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#ziaChatWindow.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.zia-chat-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.zia-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.zia-chat-title { flex: 1; line-height: 1.3; }
.zia-chat-title strong { font-size: .9rem; display: block; }
.zia-chat-title span { font-size: .72rem; opacity: .75; }
.zia-header-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: .35rem;
  border-radius: 6px;
  font-size: .9rem;
  line-height: 1;
  transition: background .15s, color .15s;
}
.zia-header-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.zia-close-btn:hover  { background: rgba(220,38,38,.5);  color: #fff; }

/* Messages area */
.zia-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  scroll-behavior: smooth;
}
.zia-chat-messages::-webkit-scrollbar { width: 4px; }
.zia-chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.zia-msg { display: flex; }
.zia-msg--user { justify-content: flex-end; }
.zia-msg--model { justify-content: flex-start; }

.zia-bubble {
  max-width: 82%;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .855rem;
  line-height: 1.55;
  word-break: break-word;
}
.zia-msg--user  .zia-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.zia-msg--model .zia-bubble { background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 4px; }
.zia-bubble code { background: rgba(0,0,0,.08); padding: .1em .35em; border-radius: 4px; font-size: .82em; }

/* Typing indicator */
.zia-typing { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 .4rem; }
.zia-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #94a3b8; display: block;
  animation: ziaBounce 1.2s infinite ease-in-out;
}
.zia-typing span:nth-child(2) { animation-delay: .2s; }
.zia-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ziaBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}

/* Suggestion chips */
.zia-chat-suggestions {
  padding: .5rem 1rem .25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  flex-shrink: 0;
}
.zia-sug {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .75rem;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: var(--ff-body);
}
.zia-sug:hover { background: #dbeafe; border-color: var(--navy); }

/* Input row */
.zia-chat-input-row {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}
#ziaChatInput {
  flex: 1;
  padding: .55rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .875rem;
  font-family: var(--ff-body);
  outline: none;
  color: var(--text);
  transition: border-color .15s;
}
#ziaChatInput:focus { border-color: var(--navy); }
#ziaChatSend {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s;
  flex-shrink: 0;
}
#ziaChatSend:hover { background: #1a5299; }

/* Footer disclaimer */
.zia-chat-footer {
  font-size: .68rem;
  color: #94a3b8;
  text-align: center;
  padding: 0 .75rem .5rem;
  margin: 0;
  flex-shrink: 0;
}
.zia-chat-footer a { color: var(--navy); }

/* ================================================================
   Global UI animations & interactivity
   ================================================================ */
.floating-call { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 9990; display: none; align-items: center; gap: .5rem; background: var(--gold); color: #1c1c1c; font-weight: 700; padding: .85rem 1.25rem; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 20px rgba(200,169,110,.35); transition: transform .2s, box-shadow .2s; }
.floating-call:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 28px rgba(200,169,110,.45); }
.floating-call i { font-size: 1rem; }
@media (max-width: 900px) { .floating-call { display: inline-flex; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.card-lift { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(15,23,42,.12); }

.btn, .btn-primary, .btn-secondary { transition: transform .15s ease, box-shadow .15s ease, background .2s, border-color .2s; }
.btn:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

@keyframes pulse-soft { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.pulse-soft { animation: pulse-soft 2.2s ease-in-out infinite; }

.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 9980; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; cursor: pointer; border: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ================================================================
   Download buttons — prominent and consistent across the site
   ================================================================ */
body .download-btn,
body a[download],
body .doc-download,
body .btn-download,
body .doc-card a.doc-download,
body .doc-card a.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem 1.1rem;
    font-family: var(--ff-body);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: 0 4px 12px rgba(104,120,196,.35);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    width: auto;
    line-height: 1.2;
    text-align: center;
}
body .download-btn:hover,
body a[download]:hover,
body .doc-download:hover,
body .btn-download:hover,
body .doc-card a.doc-download:hover,
body .doc-card a.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(104,120,196,.45);
    color: #fff;
    text-decoration: none;
}
body .download-btn i,
body .doc-download i,
body .btn-download i,
body a[download] i { font-size: .9em; }

/* Full-width download buttons in cards */
body .resource-card .btn-download,
body .tool-card .btn-download,
body .download-btn--full { width: 100%; }

/* Type variants */
body .download-btn--pdf { background: linear-gradient(135deg, #dc2626, #991b1b); }
body .download-btn--docx,
body .download-btn--word { background: linear-gradient(135deg, #2563eb, #1e40af); }
body .download-btn--primary { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
body .download-btn--sm { padding: .55rem .9rem; font-size: .85rem; }

/* Bootstrap-style buttons that are downloads */
body .btn.download-btn,
body .btn-primary.download-btn,
body .btn-secondary.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .7rem 1.1rem;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(104,120,196,.35);
}
body .btn.download-btn:hover,
body .btn-primary.download-btn:hover,
body .btn-secondary.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(104,120,196,.45);
    color: #fff;
    background: linear-gradient(135deg, var(--navy-2), var(--navy-dk));
    border-color: transparent;
}

/* ================================================================
   RIBA-style Border-Draw Hover — site-wide card corner trace
   A blue border traces in from two opposite corners on hover
   (top edge draws left>right + left edge draws top>bottom from
   one corner; right edge draws bottom>top + bottom edge sweeps
   right>left from the other), meeting in the middle. No layout
   shift — implemented with absolutely-positioned pseudo-elements.
   Inspired by RIBA's hover treatment, adapted to ZIA blue.
   ================================================================ */

/* --- Global link hover: blue color shift --- */
a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn--primary):not(.btn--outline):not(.btn--ghost):not(.nav__link):not(.footer-col a):not(.social-links a):not(.breadcrumb a):not(.mob-nav-item):not(.mob-bottom-nav__item):not(.footer__social a):hover {
  color: var(--navy-2);
}

/* --- Card classes: shared trace anchor + elevation shadow on hover --- */
.card, .info-card, .news-card, .category-card, .resource-card, .job-card,
.mentor-card, .school-card, .feature-card, .gallery-item, .award-card,
.sponsor-card, .event-card, .contact-card, .doc-card, .stat-card {
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { border-left-color: var(--navy-2); box-shadow: 0 8px 32px rgba(37,99,235,.15); }
.info-card:hover { box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.news-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,.15); }
.category-card:hover { box-shadow: 0 12px 36px rgba(37,99,235,.15); }
.resource-card:hover { box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.job-card:hover { box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.mentor-card:hover { box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.school-card:hover { box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.feature-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); }
.gallery-item:hover { box-shadow: 0 10px 30px rgba(37,99,235,.15); }
.award-card:hover, .sponsor-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); }
.event-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); }
.contact-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); }
.doc-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); }
.stat-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); }

/* --- Border-draw pseudo-elements: anchored top-left (::before) and
   bottom-right (::after), growing from 0 to full size on hover --- */
.card::before, .card::after,
.info-card::before, .info-card::after,
.news-card::before, .news-card::after,
.category-card::before, .category-card::after,
.resource-card::before, .resource-card::after,
.job-card::before, .job-card::after,
.mentor-card::before, .mentor-card::after,
.school-card::before, .school-card::after,
.feature-card::before, .feature-card::after,
.gallery-item::before, .gallery-item::after,
.award-card::before, .award-card::after,
.sponsor-card::before, .sponsor-card::after,
.event-card::before, .event-card::after,
.contact-card::before, .contact-card::after,
.doc-card::before, .doc-card::after,
.stat-card::before, .stat-card::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 0 solid var(--navy-2);
  pointer-events: none;
  z-index: 4;
}

.card::before, .info-card::before, .news-card::before, .category-card::before,
.resource-card::before, .job-card::before, .mentor-card::before, .school-card::before,
.feature-card::before, .gallery-item::before, .award-card::before, .sponsor-card::before,
.event-card::before, .contact-card::before, .doc-card::before, .stat-card::before {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  transition: width .3s ease, height .3s ease .3s;
}

.card::after, .info-card::after, .news-card::after, .category-card::after,
.resource-card::after, .job-card::after, .mentor-card::after, .school-card::after,
.feature-card::after, .gallery-item::after, .award-card::after, .sponsor-card::after,
.event-card::after, .contact-card::after, .doc-card::after, .stat-card::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
  transition: height .3s ease, width .3s ease .3s;
}

.card:hover::before, .info-card:hover::before, .news-card:hover::before, .category-card:hover::before,
.resource-card:hover::before, .job-card:hover::before, .mentor-card:hover::before, .school-card:hover::before,
.feature-card:hover::before, .gallery-item:hover::before, .award-card:hover::before, .sponsor-card:hover::before,
.event-card:hover::before, .contact-card:hover::before, .doc-card:hover::before, .stat-card:hover::before,
.card:hover::after, .info-card:hover::after, .news-card:hover::after, .category-card:hover::after,
.resource-card:hover::after, .job-card:hover::after, .mentor-card:hover::after, .school-card:hover::after,
.feature-card:hover::after, .gallery-item:hover::after, .award-card:hover::after, .sponsor-card:hover::after,
.event-card:hover::after, .contact-card:hover::after, .doc-card:hover::after, .stat-card:hover::after {
  width: 100%;
  height: 100%;
}

/* --- Pathway steps: blue left border accent --- */
.pathway-step:hover { border-left-color: var(--navy-2); box-shadow: 0 8px 24px rgba(37,99,235,.1); }

/* --- Tool cards: blue left border accent --- */
.tool-card:hover { border-left-color: var(--navy-2); box-shadow: 0 6px 20px rgba(37,99,235,.08); }

/* --- Value/mission items: blue accent --- */
.mission__item:hover { border-top-color: var(--navy-2); border-left-color: var(--navy-2); }

/* --- Stats strip items: blue bottom bar --- */
.stats-strip__item:hover { box-shadow: inset 0 -3px 0 var(--navy-2); background: rgba(37,99,235,.06); }

/* =========================================================================
   Homepage Enhancements — Video Testimonials, Stats, Facts, Timeline
   ========================================================================= */

/* ── Video Testimonials ─────────────────────────────────────────────────── */
.zia-testimonials { padding: 4.5rem 0; background: var(--white); }
.zia-testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--border-radius-lg);
  overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
  outline: none;
}
.testimonial-card:hover, .testimonial-card:focus-visible {
  transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,58,138,.16);
}
.testimonial-card__thumb {
  position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
}
.testimonial-card__thumb--1 { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.testimonial-card__thumb--2 { background: linear-gradient(135deg, var(--navy-2) 0%, var(--gold) 100%); }
.testimonial-card__thumb--3 { background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy-2) 100%); }
.testimonial-card__play {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; transition: transform var(--transition), background var(--transition);
  backdrop-filter: blur(2px);
}
.testimonial-card:hover .testimonial-card__play,
.testimonial-card:focus-visible .testimonial-card__play {
  transform: scale(1.12); background: var(--gold); border-color: var(--gold);
}
.testimonial-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.testimonial-card__body h3 { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.testimonial-card__body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ── Video Testimonial Modal ────────────────────────────────────────────── */
.testimonial-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.testimonial-modal.is-open { display: flex; }
.testimonial-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.72); backdrop-filter: blur(3px); }
.testimonial-modal__dialog {
  position: relative; background: var(--white); border-radius: var(--border-radius-lg);
  max-width: 720px; width: 100%; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.testimonial-modal__close {
  position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer; color: var(--navy); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.testimonial-modal__close:hover { background: var(--white); transform: rotate(90deg); }
.testimonial-modal__video {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dk) 100%);
  display: flex; align-items: center; justify-content: center;
}
.testimonial-modal__play { color: rgba(255,255,255,.5); font-size: 4rem; }
.testimonial-modal__body { padding: 1.75rem 2rem 2.25rem; }
.testimonial-modal__badge {
  display: inline-block; background: var(--gold); color: var(--white); padding: .25rem .8rem;
  border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem;
}
.testimonial-modal__body h3 { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.testimonial-modal__body p { color: var(--text); line-height: 1.7; margin: 0; }

/* ── Animated Stats Counter ─────────────────────────────────────────────── */
.zia-stats { padding: 4.5rem 0; background: var(--navy); color: var(--white); }
.zia-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.zia-stats__item { text-align: center; padding: 1.25rem .5rem; }
.zia-stats__num {
  font-family: var(--ff-display); font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; color: var(--gold);
  line-height: 1; margin-bottom: .5rem; letter-spacing: -.02em;
}
.zia-stats__label { font-size: .95rem; color: rgba(255,255,255,.82); font-weight: 500; }

/* ── Did You Know? Rotating Facts ───────────────────────────────────────── */
.zia-facts { padding: 4.5rem 0; background: var(--off-white); }
.zia-facts__card {
  max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--border-radius-lg); padding: 2.25rem 2.5rem; box-shadow: 0 8px 30px rgba(30,58,138,.08);
  border-left: 5px solid var(--gold);
}
.zia-facts__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.zia-facts__icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: rgba(59,130,246,.12);
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.4rem;
}
.zia-facts__title { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 0; }
.zia-facts__rotator { position: relative; min-height: 84px; }
.zia-facts__fact {
  font-size: 1.15rem; line-height: 1.7; color: var(--text); margin: 0;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease;
  position: absolute; inset: 0;
}
.zia-facts__fact.is-active { opacity: 1; transform: none; position: relative; }
.zia-facts__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.zia-facts__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border); cursor: pointer;
  transition: background var(--transition), transform var(--transition); border: none; padding: 0;
}
.zia-facts__dot.is-active { background: var(--gold); transform: scale(1.25); }

/* ── Timeline Strip ─────────────────────────────────────────────────────── */
.zia-timeline { padding: 4.5rem 0; background: var(--white); }
.zia-timeline__track {
  position: relative; display: flex; justify-content: space-between; gap: .5rem;
  padding: 2.5rem 1rem 0; overflow-x: auto;
}
.zia-timeline__line {
  position: absolute; top: 2.5rem; left: 1rem; right: 1rem; height: 3px; background: var(--border);
  border-radius: 2px;
}
.zia-timeline__line::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 2px;
  transition: width 1.6s ease;
}
.zia-timeline__track.is-active .zia-timeline__line::after { width: 100%; }
.zia-timeline__item {
  position: relative; flex: 1; min-width: 110px; text-align: center; padding-top: 2.5rem;
}
.zia-timeline__dot {
  position: absolute; top: calc(2.5rem - 7px); left: 50%; transform: translateX(-50%);
  width: 17px; height: 17px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--border); transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.zia-timeline__item.is-lit .zia-timeline__dot {
  border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(59,130,246,.18);
}
.zia-timeline__year { display: block; font-family: var(--ff-display); font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-top: .65rem; }
.zia-timeline__label { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .zia-testimonials__grid { grid-template-columns: 1fr; }
  .zia-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
@media (max-width: 560px) {
  .zia-stats__grid { grid-template-columns: 1fr; }
  .zia-facts__card { padding: 1.75rem 1.5rem; }
  .zia-facts__fact { font-size: 1.02rem; }
  .zia-timeline__track { padding: 2.5rem .25rem 0; }
  .zia-timeline__item { min-width: 92px; }
  .zia-timeline__label { font-size: .75rem; }
}

/* --- Table rows: blue tint --- */
table tbody tr:hover td { background: rgba(37,99,235,.04); }

/* --- Filter buttons: blue active/hover --- */
.filter-btn:hover, .filter-btn.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* --- Tab buttons: blue active underline --- */
.tab.active { border-bottom-color: var(--navy-2); color: var(--navy-2); }
.tab:hover { background: rgba(37,99,235,.06); }

/* --- Footer links: blue hover --- */
.footer-col a:hover { color: var(--navy-2); }

/* --- Social links: blue hover --- */
.social-links a:hover { color: var(--navy-2); border-color: var(--navy-2); }

/* --- Back to top: blue hover --- */
.back-to-top:hover { background: var(--navy-2); }

/* --- Form inputs: blue focus ring (no !important to avoid conflicts) --- */
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(37,99,235,.12); outline: none; }

/* --- RIBA-style image zoom on hover for cards with images --- */
.card__img, .resource-card__img, .category-card__img, .news-card__graphic {
  transition: transform .4s ease;
}
.card:hover .card__img,
.resource-card:hover .resource-card__img,
.category-card:hover .category-card__img,
.news-card:hover .news-card__graphic {
  transform: scale(1.05);
}

/* --- RIBA-style link arrow animation --- */
.info-card__link, .card__link, .btn--ghost {
  transition: color .2s, gap .2s;
}
.info-card:hover .info-card__link,
.card:hover .card__link {
  color: var(--navy-2);
  gap: .6rem;
}

/* --- RIBA-style section title hover (subtle blue) --- */
.section-title { transition: color .3s; }
.section-title:hover { color: var(--navy-2); }

/* ================================================================
   Mobile Bottom Nav (from mobile-app.js) — hidden on desktop,
   styled on mobile. Prevents plain-text links showing above footer.
   ================================================================ */
#mobileBottomNav { display: none; }
@media (max-width: 768px) {
  #mobileBottomNav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--navy-dk);
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 980;
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,.5);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .15s;
    padding: 0 4px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .mob-nav-item i { font-size: 1.25rem; display: block; transition: transform .18s; }
  .mob-nav-item:active i { transform: scale(.88); }
  .mob-nav-item:hover { color: var(--gold); }
  .mob-nav-item.active { color: var(--gold); }
  .mob-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
  }
}

/* ================================================================
   Image Loading States (lazy-load.js)
   Fade-in animation when images finish loading.
   ================================================================ */
img { transition: opacity .3s ease; }
img:not(.img-loaded):not([complete]) { opacity: 0; }
img.img-loaded { opacity: 1; }
.img-placeholder { background: #f1f5f9; }

/* ================================================================
   Enhanced Hero — animated gradient overlay, geometric pattern,
   scroll indicator, and improved text hierarchy
   ================================================================ */

/* Enhanced Hero */
.hero--enhanced { position: relative; overflow: hidden; }

/* Animated gradient overlay — slow shift between navy shades.
   Confined to the left text panel only (right photo panel — .hero__deco —
   must stay clear, uncovered). */
.hero--enhanced::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; right: 44%;
  background: linear-gradient(135deg, rgba(30,58,138,0.96), rgba(23,37,84,0.98));
  background-size: 200% 200%;
  animation: heroGradient 8s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
@keyframes heroGradient {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Decorative geometric pattern overlay (inline SVG, low opacity) —
   confined to the left text panel only, matching the gradient above. */
.hero--enhanced::after {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; right: 44%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Crect x='10' y='10' width='20' height='20'/%3E%3Crect x='50' y='50' width='20' height='20'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.06;
  z-index: 2;
  pointer-events: none;
}

/* On mobile the photo panel (.hero__deco) is hidden, so let the overlays
   span the full width there. */
@media (max-width: 900px) {
  .hero--enhanced::before,
  .hero--enhanced::after {
    right: 0;
  }
}

/* Ensure hero content sits above the overlays */
.hero--enhanced .hero__content,
.hero--enhanced .hero__event-card,
.hero--enhanced .hero__scroll,
.hero--enhanced .hero__deco { z-index: 3; }
.hero--enhanced .hero__deco { z-index: 0; }

/* Better text hierarchy with subtle text-shadow for readability */
.hero--enhanced .hero__title {
  text-shadow: 0 2px 12px rgba(15,23,42,.18);
}
.hero--enhanced .hero__sub {
  text-shadow: 0 1px 6px rgba(15,23,42,.12);
}

/* Scroll-down indicator (animated chevron) — enhances the existing
   .hero__scroll with a bouncing chevron. The .scroll-indicator is a
   standalone element that can be added independently. */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.scroll-indicator i { font-size: 1.1rem; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ================================================================
   Section Dividers — decorative wave and geometric line dividers
   ================================================================ */

.section-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  /* No default background — inherits from surrounding sections */
}

/* Wave divider — subtle SVG curve */
.section-divider--wave {
  height: 60px;
  overflow: hidden;
}
.section-divider--wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.section-divider--wave .wave-fill { fill: var(--off-white); }
.section-divider--wave--dark .wave-fill { fill: var(--navy-dk); }

/* Geometric line divider with a diamond/dot in the center */
.section-divider--line {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 2rem;
}
.section-divider--line::before,
.section-divider--line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.section-divider--line .section-divider__diamond {
  width: 8px; height: 8px;
  margin: 0 1rem;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
/* Larger dot variant */
.section-divider--line .section-divider__dot {
  width: 6px; height: 6px;
  margin: 0 1rem;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

/* ================================================================
   Card Hover Enhancements — lift, shadow, gradient border glow,
   smooth transitions, and .card--feature variant
   ================================================================ */

/* Smooth transform transitions for all card types */
.card, .stat-card, .cpd-card,
.info-card, .news-card, .category-card, .resource-card, .job-card {
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              box-shadow .3s cubic-bezier(.4,0,.2,1),
              border-color .3s ease,
              background .3s ease;
}

/* Subtle lift + shadow on hover for all cards */
.card:hover, .stat-card:hover, .cpd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(30,58,138,.18);
}

/* Gradient border glow on hover — uses a pseudo-element border */
.card, .stat-card, .cpd-card {
  position: relative;
}
.card::after, .stat-card::after, .cpd-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--navy-2), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 4;
}
.card:hover::after, .stat-card:hover::after, .cpd-card:hover::after {
  opacity: 1;
}

/* .card--feature variant with a top accent bar */
.card--feature {
  position: relative;
  border-top: 4px solid var(--gold);
  padding-top: 1.5rem;
}
.card--feature::before {
  content: '';
  position: absolute;
  top: -4px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy-2));
  border-radius: 4px 4px 0 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.card--feature:hover::before {
  opacity: 1;
}

/* ================================================================
   Animated Section Headers — gradient underline animates on scroll
   Triggered by IntersectionObserver adding .is-visible
   ================================================================ */

.section-header--animated h2,
.info-section__header h2,
.about h2.section-title {
  position: relative;
  display: inline-block;
}
.section-header--animated h2::after,
.info-section__header h2::after,
.about h2.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -0.5rem;
  width: 0; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.section-header--animated.is-visible h2::after,
.info-section__header.is-visible h2::after,
.about.is-visible h2.section-title::after {
  width: 100%;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero--enhanced::before { animation: none; }
  .scroll-indicator { animation: none; }
  .section-header--animated h2::after,
  .info-section__header h2::after,
  .about h2.section-title::after { transition: none; width: 100%; }
  .card:hover, .stat-card:hover, .cpd-card:hover { transform: none; }
}

/* ================================================================
   Image Placeholder (image-placeholder.js)
   Styled gradient placeholder for broken/empty images
   ================================================================ */
.zia-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--navy-dk), var(--navy));
  color: rgba(255,255,255,.7);
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.zia-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.8' opacity='.5'%3E%3Crect x='5' y='5' width='20' height='20'/%3E%3Crect x='35' y='35' width='20' height='20'/%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .08;
}
.zia-img-placeholder__icon {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}
.zia-img-placeholder__text {
  font-size: .85rem;
  position: relative;
  z-index: 1;
}

/* ================================================================
   Consolidated Mobile & Responsive Enhancements
   (Merged from homepage-mobile-fix.css and responsive-enhancements.css)
   ================================================================ */

/* Touch targets — minimum 44x44px for accessibility */
@media (max-width: 768px) {
  .btn, button, a.btn, input[type="submit"], input[type="button"] {
    min-height: 44px; min-width: 44px;
  }
  .icon-btn, .modal-close, .back-to-top, .fab {
    min-width: 48px; min-height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  /* Prevent iOS zoom on focus */
  input, select, textarea {
    min-height: 48px; font-size: 16px;
  }
}

/* Card layouts stack on mobile */
@media (max-width: 768px) {
  .news-grid, .events-grid, .projects-grid, .members-grid, .resources-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .card, .event-card, .project-card, .member-card, .news-card, .resource-card {
    width: 100%; margin: 0;
  }
}

/* Responsive typography */
@media (max-width: 1023px) and (min-width: 769px) { html { font-size: 15px; } }
@media (max-width: 768px) {
  html { font-size: 14px; }
  body { line-height: 1.7; }
  section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .page-header { padding: 4rem 0 3rem; }
  .page-title { font-size: 2rem; margin-bottom: .75rem; }
  .page-subtitle { font-size: 1rem; }
}

/* Forms stack on mobile */
@media (max-width: 768px) {
  .form-row, .form-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .btn-group, .form-actions, .modal-actions { flex-direction: column; gap: .75rem; }
  .btn-group .btn, .form-actions .btn { width: 100%; }
}

/* Responsive tables */
@media (max-width: 768px) {
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; font-size: .9rem; }
  .table-card { display: block; }
  .table-card thead { display: none; }
  .table-card tbody, .table-card tr, .table-card td { display: block; width: 100%; }
  .table-card tr { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
  .table-card td { text-align: right; padding: .5rem 0; border: none; }
  .table-card td::before { content: attr(data-label); float: left; font-weight: 600; color: var(--text); }
}

/* Modals on mobile */
@media (max-width: 768px) {
  .modal-content { width: 95%; max-width: 95%; margin: 1rem auto; max-height: 90vh; overflow-y: auto; }
  .modal-large, .modal-xl { width: 95%; max-width: 95%; }
  .modal-header, .modal-body, .modal-footer { padding: 1.25rem; }
  .modal-footer { flex-direction: column; gap: .75rem; }
  .modal-footer .btn { width: 100%; }
}

/* Extra small devices */
@media (max-width: 375px) {
  .hero__title { font-size: 1.5rem !important; }
  .hero__sub { font-size: .85rem !important; }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { padding: 2rem 0; }
}
