/* ============================================================
   H.M. Chan & Co. — Header / shared base
   Brand: #141b4d (navy), #C0001A (red accent)
   Fonts: Lora (headings), Lato (body), Gilroy (display)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary:    #001E55;
  --accent:     #AA0F1E;
  --white:      #ffffff;
  --off-white:  #f5f5f3;
  --light-grey: #e8e8e8;
  --mid-grey:   #999999;
  --text:       #2c2c2c;
  --nav-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img { height: 37px; width: auto; margin: 0 1rem 0 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-contact-btn {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 6px !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  text-align: center;
  transition: background 0.3s ease !important;
}
.nav-contact-btn:hover { background: #9a0015 !important; }
.nav-contact-btn::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
  flex-shrink: 0;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(20,27,77,0.3);
  color: var(--primary);
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-current:hover { border-color: var(--primary); }

.lang-chevron { transition: transform 0.2s; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 2000;
  overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-dropdown li {
  padding: 10px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-dropdown li a {
  display: block;
  color: inherit;
}

.lang-dropdown li:hover {
  background: var(--off-white);
  color: var(--primary);
}

.lang-dropdown li.is-current,
.lang-dropdown li[data-current="1"] {
  border-bottom: 1px solid var(--light-grey);
  font-weight: 700;
  color: var(--primary);
}

/* Push page content below the fixed navbar */
body { padding-top: var(--nav-height); }

/* Offset in-page anchor jumps so targets clear the fixed navbar */
html { scroll-padding-top: var(--nav-height); }
:target { scroll-margin-top: var(--nav-height); }

/* ============================================================
   TABLET NAV — keep the horizontal menu on one line so the
   gaps between items stay uniform (no wrapping) until it
   collapses to the hamburger at 900px.
   ============================================================ */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-logo img { height: 32px; margin: 0 0.75rem 0 0; }
  /* Let the menu grow into the spare width and spread items evenly */
  .nav-links { flex: 1; justify-content: space-evenly; gap: 0.8rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.06em; }
  .nav-contact-btn { padding: 8px 6px !important; font-size: 0.66rem !important; }
  .lang-switcher { margin-left: 0.75rem; }
  .lang-current { padding: 5px 8px; font-size: 0.66rem; }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Group the language selector beside the hamburger on the right */
  .lang-switcher { margin-left: auto; margin-right: 1rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--primary);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 999;
  }

  .nav-links.open a {
    color: var(--white);
    font-size: 0.9rem;
  }

  .nav-links.open a::after { background: var(--white); }

  .nav-links.open .nav-contact-btn {
    background: var(--accent);
    color: var(--white) !important;
    align-self: flex-start;
  }
}

/* Shrink the logo on narrow screens so it doesn't crowd the language selector */
@media (max-width: 600px) {
  .nav-inner { padding: 0 1rem; }
  .nav-logo img { height: 32px; margin: 0 0.5rem; }
  .lang-switcher { margin-right: 0.75rem; }
}

/* ============================================================
   SHARED CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-navy:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  background:
    radial-gradient(85% 95% at 50% 38%, rgba(48,66,140,0.62), transparent 72%),
    linear-gradient(180deg, #0a1030 0%, #0c1238 60%);
  padding: 110px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 6px solid var(--accent);
}

/* Minimal & typographic: no background pattern — a brand-red top border marks
   the seam with the section above, and a soft brand-accent glow adds depth,
   letting the serif heading carry the section. */
#cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 0%, rgba(170,15,30,0.16), transparent 70%);
  pointer-events: none;
}

#cta-banner h2 { color: var(--white); margin-bottom: 1.25rem; }

/* Thin accent rule under the heading. */
#cta-banner h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 1.25rem auto 0;
  background: var(--accent);
}
#cta-banner p  {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  position: relative;
  z-index: 1;
  gap: 3rem;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 48px; margin-bottom: 1.5rem; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.footer-contact a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-contact a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.3s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   Subtle HK skyline watermark on every page
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--body-skyline-bg, none);
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ============================================================
   GLOBAL TYPOGRAPHY (extra)
   ============================================================ */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--primary);
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-bg, none);
  background-size: cover;
  background-position: center center;
  opacity: 0.15;
  z-index: -1;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .section-label { color: rgba(255,255,255,0.75) !important; }
.page-hero h1 { color: var(--white); margin-top: 0; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  /* margin-bottom: 25px; */
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.page-hero-practices::after {
  background-image: var(--page-hero-practices-bg, none);
  background-position: center center;
  opacity: 0.25;
}

/* ============================================================
   EXPERTISE PAGE — Practices grid + Sectors grid
   ============================================================ */
.expertise-section { padding: 80px 0; }
.expertise-section:nth-child(even) { background: var(--off-white); }

.expertise-section-header { margin-bottom: 50px; }
.expertise-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.expertise-section-header h2::before {
  content: '—';
  color: var(--accent);
  font-weight: 400;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--light-grey);
}

.expertise-card {
  padding: 36px 32px;
  border-right: 1px solid var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
  background: var(--white);
  position: relative;
  transition: background 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.expertise-card:hover {
  background: #fafbff;
  box-shadow: inset 0 0 0 2px var(--primary);
  z-index: 1;
}
.expertise-card:nth-child(3n) { border-right: none; }

.expertise-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  flex: 1;
  padding-right: 1rem;
}
.expertise-card-arrow {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}
.expertise-card:hover .expertise-card-arrow { background: var(--accent); }
.expertise-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.expertise-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.75;
  margin-bottom: 0;
  flex: 1;
}
.expertise-card a { text-decoration: none; color: inherit; }

/* Sectors — TITUS-style icon cards */
.sectors-section { padding: 80px 0; background: var(--white); }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.sector-card {
  border: 1.5px solid var(--light-grey);
  padding: 44px 32px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  background: var(--white);
}
.sector-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(20,27,77,0.1);
  transform: translateY(-4px);
}
.sector-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
}
.sector-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sector-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sector-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
}
.sector-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.75;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-card:nth-child(3n) { border-right: 1px solid var(--light-grey); }
  .expertise-card:nth-child(2n) { border-right: none; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { border-right: none !important; }
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.section-pad    { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

.page-hero-about::after {
  background-image: var(--page-hero-about-bg, none);
  background-position: center 40%;
  opacity: 0.30;
}
.page-hero-people::after {
  background-image: var(--page-hero-people-bg, none);
  background-position: center 30%;
  opacity: 0.25;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-intro-text p { color: #555; font-size: 1.05rem; line-height: 1.9; }
.about-intro-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 60px;
}
.value-item {
  padding: 40px 30px;
  background: var(--white);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 30px rgba(20,27,77,0.06);
}
.value-item h4 { color: var(--primary); margin-bottom: 0.75rem; }
.value-item p  { font-size: 0.92rem; color: #666; margin-bottom: 0; }

/* Stats strip */
.about-stats-strip { background: var(--accent); padding: 50px 0; }
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.about-stat-item {
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.about-stat-item:last-child { border-right: none; }
.about-stat-item .num {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}
.about-stat-item .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-top: 0.5rem;
}

/* Founder quote */
.founder-quote {
  background: var(--primary);
  padding: 60px;
  margin-top: 3rem;
  position: relative;
}
.founder-quote::before {
  content: '\201C';
  font-family: 'Lora', serif;
  font-size: 8rem;
  color: rgba(255,255,255,0.08);
  position: absolute;
  top: -10px;
  left: 30px;
  line-height: 1;
}
.founder-quote p {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.founder-quote cite {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* Awards section */
.awards-section {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.awards-section .container { position: relative; z-index: 1; }
.awards-section-header { text-align: center; margin-bottom: 70px; }
.awards-section-header h2 { color: var(--primary); }
.awards-section-header p  {
  color: #666;
  max-width: 620px;
  margin: 1rem auto 0;
  font-size: 1rem;
}

.award-pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--light-grey);
  margin-bottom: 3rem;
}
.award-pub-item {
  padding: 40px 30px;
  border-right: 1px solid var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
  text-align: center;
  transition: background 0.3s;
  background: var(--off-white);
}
.award-pub-item:hover { background: var(--white); }
.award-pub-item:nth-child(4n) { border-right: none; }
.award-pub-item img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0 auto 1rem;
}
.award-pub-item .pub-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
.award-pub-item .award-list {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
}
.award-pub-item .award-list li {
  padding: 0.2rem 0;
  border-top: 1px solid var(--light-grey);
  margin-top: 0.3rem;
}
.award-pub-item .award-list li:first-child { border-top: none; margin-top: 0; }

/* Featured award highlight */
.award-highlight {
  background: var(--primary);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.9);
}
.award-highlight-badge {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-highlight-badge img { width: 100%; height: 100%; object-fit: contain; }
.award-highlight-text .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 0.5rem;
}
.award-highlight-text p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.award-highlight-text strong { color: var(--white); }
.award-note {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 900px) {
  .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .about-stat-item  { border-right: none; }
  .award-pub-grid   { grid-template-columns: repeat(2, 1fr); }
  .award-pub-item:nth-child(4n) { border-right: 1px solid var(--light-grey); }
  .award-pub-item:nth-child(2n) { border-right: none; }
  .award-highlight  { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .section-pad   { padding: 70px 0; }
  .values-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .award-pub-grid { grid-template-columns: 1fr; }
  .award-pub-item { border-right: none !important; }
  .founder-quote  { padding: 40px 30px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-hero-contact::after {
  background-image: var(--page-hero-contact-bg, none);
  background-position: center center;
  opacity: 0.25;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info p { color: #555; font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.5rem; }
.contact-info a { color: var(--primary); transition: color 0.3s; }
.contact-info a:hover { color: var(--accent); }

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-item div { font-size: 0.92rem; color: #555; line-height: 1.7; }
.contact-detail-item div strong { color: var(--primary); display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }

.contact-map {
  margin-top: 2rem;
  height: 240px;
  background: var(--light-grey);
  overflow: hidden;
}

.contact-map iframe { width: 100%; height: 100%; border: none; }

.contact-form-wrap { background: var(--off-white); padding: 50px; }

.contact-form-wrap h3 { margin-bottom: 2rem; }

.contact-form-note {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--light-grey);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }

.form-group textarea { height: 140px; resize: vertical; }

.form-group .disclaimer {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-top: 0.5rem;
}

.form-group .disclaimer a { color: var(--primary); }

.form-error {
  color: var(--accent);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.form-flash-success {
  background: #e8f4ec;
  border-left: 3px solid #2f8a4a;
  color: #1f5a30;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.form-flash-error {
  background: #fbe8ea;
  border-left: 3px solid var(--accent);
  color: #7a0411;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px; }
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.page-hero-careers::after {
  background-image: var(--page-hero-careers-bg, none);
  background-position: center center;
  opacity: 0.25;
}

.careers-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.careers-intro-text p { color: #555; font-size: 1.05rem; line-height: 1.9; }
.careers-intro-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
}

.careers-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.careers-gallery-grid > div { overflow: hidden; border-radius: 4px; }
.careers-gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.careers-programs { background: var(--off-white); }
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.program-card {
  background: var(--white);
  padding: 45px 40px;
  border-top: 4px solid var(--primary);
  transition: border-color 0.3s;
}
.program-card:hover { border-color: var(--accent); }
.program-card h3 { color: var(--primary); margin-bottom: 1rem; }
.program-card p  { color: #555; font-size: 0.95rem; line-height: 1.8; }
.program-dates {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-grey);
}
.program-dates h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.75rem;
}
.program-dates p { font-size: 0.88rem; color: #555; margin-bottom: 0.3rem; }

.careers-next-step {
  text-align: center;
  margin-top: 3rem;
  padding: 40px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(20,27,77,0.06);
}
.careers-next-step h3 { margin-bottom: 0.75rem; }
.careers-next-step p  { color: #555; max-width: 500px; margin: 0 auto 1.5rem; }
.careers-next-step .data-note {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-top: 1rem;
}

/* When there are no programmes, drop the redundant top padding so the
   next-step box doesn't leave a big gap below the openings section. */
.careers-programs--no-top { padding-top: 0; }
.careers-programs--no-top .careers-next-step { margin-top: 0; }

/* ============================================================
   JOB CARD (Careers Page)
   ============================================================ */
.job-card {
  background: var(--white);
  box-shadow: 0 4px 30px rgba(20,27,77,0.08);
  border-top: 4px solid var(--accent);
  overflow: hidden;
}
.job-card + .job-card { margin-top: 2rem; }
.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 36px 44px;
  background: var(--primary);
  flex-wrap: wrap;
}
.job-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 0.75rem;
}
.job-card-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.job-location {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin: 0;
}
.job-card-body { padding: 40px 44px; }
.job-card-body p {
  color: #555;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.job-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--off-white);
  border-left: 4px solid var(--primary);
}
.job-detail-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.job-detail-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.job-detail-col ul li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.job-detail-col ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.job-apply-box {
  background: var(--primary);
  padding: 20px 28px;
  margin-top: 1.5rem;
}
.job-apply-box p {
  color: rgba(255,255,255,0.8) !important;
  margin: 0 !important;
  font-size: 0.92rem;
}
.job-apply-box a {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  transition: color 0.3s;
  text-decoration: underline;
}
.job-apply-box a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .careers-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .programs-grid       { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .job-details-grid { grid-template-columns: 1fr; }
  .job-card-header  { padding: 28px 28px; }
  .job-card-body    { padding: 28px 28px; }
}
@media (max-width: 768px) {
  .careers-gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal]:nth-child(2) { transition-delay: 0.03s; }
[data-reveal]:nth-child(3) { transition-delay: 0.06s; }
[data-reveal]:nth-child(4) { transition-delay: 0.09s; }
[data-reveal]:nth-child(5) { transition-delay: 0.12s; }
[data-reveal]:nth-child(6) { transition-delay: 0.15s; }
[data-reveal]:nth-child(7) { transition-delay: 0.18s; }

/* ============================================================
   NEWS PAGE — hero, award-article, news cards, detail
   ============================================================ */
.page-hero {
  padding: 25px 0 25px;
}
.page-hero-news::after {
  background-image: var(--page-hero-news-bg, none);
  background-position: center 40%;
  opacity: 0.30;
}

.award-article {
  background: rgba(0, 30, 85, 0.8);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.award-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--award-article-bg, none);
  background-size: cover;
  background-position: center 60%;
  opacity: 0.10;
}
.award-article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,27,77,0.5) 0%, rgba(20,27,77,0.3) 50%, rgba(20,27,77,0.5) 100%);
  pointer-events: none;
}
.award-article-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.award-article-img { position: relative; }
.award-article-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 3px solid rgba(192,0,26,0.5);
}
.award-ribbon {
  position: absolute;
  top: 20px;
  left: -8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px 8px 16px;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
.award-article-text .section-label { color: rgba(255,255,255,0.75) !important; }
.award-article-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.award-article-text .date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}
.award-article-text p { color: rgba(255,255,255,0.8); line-height: 1.85; margin-bottom: 1rem; }
.award-article-text p strong { color: var(--white); }
.award-article-text blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255,255,255,0.05);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.8;
}
.award-article-text .source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  transition: color 0.3s;
}
.award-article-text .source-link:hover { color: var(--white); }

@media (max-width: 900px) {
  .award-article-grid { grid-template-columns: 1fr; gap: 2rem; }
  .award-article-img img { height: 260px; }
  .award-article-text h2 { font-size: 1.5rem; }
}

/* News listing grid + cards */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}
.news-page-card {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(20,27,77,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.news-page-card:hover {
  box-shadow: 0 16px 50px rgba(20,27,77,0.14);
  transform: translateY(-6px);
}
.news-page-card .news-body { padding: 28px 30px; }
.news-page-card .news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.news-page-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.news-page-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}
.news-page-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: color 0.3s, gap 0.3s;
}
.news-page-card:hover .read-more { color: var(--accent); gap: 10px; }

/* ============================================================
   NEWS DETAIL PAGE
   ============================================================ */
.news-detail-section { padding: 80px 0 100px; background: var(--white); }
.news-detail-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.news-detail-meta .news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-detail-meta .news-date {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-grey);
}
.news-detail-meta .news-date::before {
  content: '·';
  margin-right: 14px;
  color: var(--light-grey);
}
.news-detail-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.news-detail-lede {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-grey);
}
.news-detail-body {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.95;
}
.news-detail-body > * + * { margin-top: 1.2rem; }
.news-detail-body p { font-size: 1rem; color: #3a3a3a; line-height: 1.95; }
.news-detail-body h2 {
  font-family: 'Lora', serif;
  font-size: 1.55rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.news-detail-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}
.news-detail-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--off-white);
  font-family: 'Lora', serif;
  font-style: italic;
  color: #4a4a4a;
  font-size: 1.05rem;
  line-height: 1.85;
}
.news-detail-body ul, .news-detail-body ol { padding-left: 1.4rem; }
.news-detail-body li + li { margin-top: 0.4rem; }
.news-detail-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(192,0,26,0.4);
  transition: color 0.3s, border-color 0.3s;
}
.news-detail-body a:hover { color: var(--primary); border-color: var(--primary); }

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  transition: gap 0.3s, color 0.3s;
}
.news-detail-back:hover { color: var(--accent); gap: 12px; }

.news-detail-related {
  background: var(--off-white);
  padding: 70px 0 90px;
}
.news-detail-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.news-detail-related-head h2 { font-size: 1.6rem; color: var(--primary); }
.news-detail-related-head .more-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: color 0.3s;
}
.news-detail-related-head .more-link:hover { color: var(--accent); }

@media (max-width: 768px) {
  .news-detail-section { padding: 56px 0 70px; }
  .news-detail-related { padding: 50px 0 70px; }
}

/* ============================== PEOPLE LISTING ============================== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.person-card {
  background: var(--white);
  box-shadow: 0 4px 30px rgba(20,27,77,0.07);
  overflow: hidden;
  border-top: 3px solid var(--primary);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
}
.person-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(20,27,77,0.13);
  transform: translateY(-4px);
}
.person-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.person-card .person-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(160deg, #1a2260 0%, #0d1238 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.person-card .person-info {
  padding: 22px 26px;
  background: var(--primary);
}
.person-card .person-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.person-card .person-info .person-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0b8cc;
  display: block;
}
@media (max-width: 600px) {
  .people-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 400px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* ============================== PERSON BIO ============================== */
.bio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}
.bio-photo-col { position: sticky; top: 120px; }
.bio-photo-wrap {
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20,27,77,0.15);
}
.bio-photo-wrap img { width: 100%; display: block; }
.bio-name-plate { background: var(--primary); padding: 22px 28px; }
.bio-name-plate h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.bio-name-plate .bio-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.bio-contact-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bio-contact-links a {
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bio-contact-links a:hover { color: var(--accent); }
.bio-expertise {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.bio-expertise .bio-expertise-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.6rem;
}
.bio-expertise ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bio-expertise li {
  font-size: 0.85rem;
  color: #444;
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}
.bio-expertise li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.65rem;
}
.bio-content p {
  color: #444;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}
.bio-content > .bio-section + .bio-section { margin-top: 1rem; }
.bio-content ul:not(.bio-bullets) {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bio-content ul:not(.bio-bullets) > li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
  position: relative;
  padding-left: 1.2rem;
}
.bio-content ul:not(.bio-bullets) > li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 1.15rem;
}
.bio-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.6rem;
  margin: 2.5rem 0 1.2rem;
  display: block;
}
.bio-section:first-child .bio-section-title { margin-top: 0; }
.bio-content ul.bio-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bio-content ul.bio-bullets > li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.bio-content ul.bio-bullets > li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}
.bio-content ul.bio-bullets > li > * { margin: 0; }
.bio-qual-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.bio-qual-table tr { border-bottom: 1px solid #eee; }
.bio-qual-table td {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: #444;
  vertical-align: top;
}
.bio-qual-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  width: 90px;
  padding-right: 1.5rem;
  white-space: nowrap;
}
.bio-lang { font-size: 0.9rem; color: #444; line-height: 1.9; margin: 0; }
.back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.back-link:hover { color: var(--white); }
@media (max-width: 900px) {
  .bio-layout { grid-template-columns: 1fr; gap: 2rem; }
  .bio-photo-col { position: static; }
}

/* TinyMCE content iframe — strip frontend layout chrome that leaks in via content_css */
body.mce-content-body { padding-top: 0; }
body.mce-content-body::before { content: none; }

/* ============================================================
   HOME PAGE — Hero
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 27, 77, 0.82) 0%,
    rgba(20, 27, 77, 0.55) 60%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 80px;
}

.hero-content .section-label { color: rgba(255,255,255,0.7); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-family: 'Gilroy', 'Lora', serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================================
   HOME PAGE — Why Choose Us strip
   ============================================================ */
#why-us {
  background: var(--primary);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
#why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--why-us-bg, none);
  background-size: cover;
  background-position: center 40%;
  opacity: 0.10;
  pointer-events: none;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}

.why-us-divider {
  background: rgba(255,255,255,0.12);
  height: 80px;
  align-self: center;
}

.why-us-item {
  text-align: center;
  padding: 0 2rem;
}

.why-us-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.why-us-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
}

.why-us-item h4 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.why-us-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 0;
}

#why-us .section-label,
#why-us .why-us-icon svg { color: rgba(255,255,255,0.85); }
#why-us .why-us-icon { color: rgba(255,255,255,0.85); }
#why-us .why-us-icon svg { stroke: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .why-us-divider { display: none; }
}

@media (max-width: 560px) {
  .why-us-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME PAGE — About section
   ============================================================ */
#about-home {
  background: var(--white);
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-home-image {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.about-home-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-home-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  z-index: -1;
}

.about-home-text .section-label { margin-bottom: 0.5rem; }
.about-home-text h2 { margin-bottom: 1.5rem; }
.about-home-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.85;
}
.about-home-text .btn { margin-top: 1.5rem; }

@media (max-width: 1024px) {
  .about-home-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-home-image::before { display: none; }
}

/* ============================================================
   HOME PAGE — Practice Areas
   ============================================================ */
#practices {
  background: var(--off-white);
}

.practices-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.practices-header p { color: #666; font-size: 1.05rem; }

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.practice-card {
  background: var(--white);
  padding: 40px 35px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.practice-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.practice-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(20,27,77,0.12); }
.practice-card:hover::before { transform: scaleX(1); }

.practice-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-icon svg { width: 36px; height: 36px; stroke: var(--primary); }

.practice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.practice-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.practice-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.practice-card:hover .card-arrow { opacity: 1; color: var(--primary); gap: 10px; }

/* ============================================================
   HOME PAGE — Our People
   ============================================================ */
#people-home {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

#people-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.people-home-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.people-home-header .section-label { color: var(--accent); }
.people-home-header h2 { color: var(--primary); }
.people-home-header p { color: var(--text); max-width: 600px; margin: 1rem auto 0; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.person-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.person-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192,0,26,0.5);
}

.person-photo-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.person-photo-wrap img,
.person-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.person-card:hover .person-photo,
.person-card:hover .person-photo-wrap img { filter: grayscale(0%); }

.person-info {
  padding: 28px 30px;
  background-color: #fff !important;
}

.person-info h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 0.3rem; }

.person-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888888;
  display: block;
  margin-bottom: 1rem;
}

/* On homepage light background, use red accent for person title */
#people-home .person-title { color: var(--accent); }

.person-info p { color: #555; font-size: 0.9rem; line-height: 1.7; }
.person-info .btn { margin-top: 1.25rem; border-color: rgba(20,27,77,0.3); color: var(--primary); font-size: 0.75rem; padding: 10px 24px; }
.person-info .btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ============================================================
   PEOPLE CAROUSEL — Our People page + Home "Meet Our Leadership"
   3-up horizontal scroller with prev/next arrows.
   `.people-carousel .people-grid` re-purposes the existing grid
   into a flex scroll-track (higher specificity overrides both
   .people-grid definitions above).
   ============================================================ */
.people-carousel {
  --cards: 3;          /* cards visible per view */
  --gap: 2rem;
  position: relative;
}

.people-carousel .people-grid {
  display: flex;
  grid-template-columns: none;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge/IE */
  margin-bottom: 0;
  /* vertical room so the cards' hover-lift + shadow aren't clipped
     by the scroll container (overflow-y becomes auto when x scrolls) */
  padding: 12px 0 18px;
}
.people-carousel .people-grid::-webkit-scrollbar { display: none; }

.people-carousel .person-card {
  flex: 0 0 calc((100% - (var(--cards) - 1) * var(--gap)) / var(--cards));
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-arrow {
  position: absolute;
  top: 165px;                      /* ~vertical centre of the card photo */
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(20,27,77,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, opacity 0.25s, box-shadow 0.25s;
}
.carousel-arrow:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(20,27,77,0.30);
}
.carousel-arrow svg { width: 18px; height: 18px; display: block; }
.carousel-arrow-prev { left: 10px; }
.carousel-arrow-next { right: 10px; }

/* JS-toggled states */
.carousel-arrow.is-disabled { opacity: 0; pointer-events: none; }
.people-carousel.is-static .carousel-arrow { display: none; }
/* When there's nothing to scroll (fewer cards than fit), don't leave a
   lopsided gap on the right — centre the cards and let them widen a bit. */
.people-carousel.is-static .people-grid { justify-content: center; }
.people-carousel.is-static .person-card { flex-grow: 1; max-width: 480px; }

@media (max-width: 900px) {
  .people-carousel { --cards: 2; }
}
@media (max-width: 600px) {
  .people-carousel { --cards: 1.15; --gap: 1rem; }
  /* touch devices: swipe instead of arrows */
  .carousel-arrow { display: none; }
}

/* ============================================================
   HOME PAGE — Quote strip
   ============================================================ */
#quote-strip {
  background: var(--primary);
  padding: 70px 0;
  text-align: center;
}

#quote-strip blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Lora', serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
}

#quote-strip cite {
  display: block;
  margin-top: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   HOME PAGE — Awards strip (logos-only)
   ============================================================ */
.awards-underline {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
}

.awards-logos-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 48px;
  padding: 20px 0 10px;
}

.award-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-logo-item img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
}

/* Per-logo width caps to equalise visual size */
.award-logo-item:nth-child(1) img { max-width: 165px; } /* ALB — wide ratio */
.award-logo-item:nth-child(2) img { max-width: 165px; } /* IFLR1000 — wide ratio */
.award-logo-item:nth-child(3) img { max-width: 180px; } /* asialaw — widest ratio */
.award-logo-item:nth-child(4) img { max-width: 195px; } /* CBLJ — squarer */
.award-logo-item:nth-child(5) img { max-width: 195px; } /* Thomson Reuters — squarer */
.award-logo-item img:hover { opacity: 1; }
