/* FOIHK demo site — design mirrors the source site (foihk.org):
   navy #142952 / gold #ECAE13, Noto Sans, 8px radius, shadow-elegant/shadow-glow.
   Static HTML + this one stylesheet; site works fully without JS. */
:root {
  --primary: #142952;          /* hsl(220 60% 20%) */
  --primary-glow: #1f3d7a;     /* hsl(220 60% 35%) */
  --accent: #ecae13;           /* hsl(43 85% 50%) */
  --accent-hover: #d99e10;     /* hsl(43 85% 45%) */
  --secondary: #f1f5f9;        /* hsl(210 40% 96%) */
  --foreground: #16233a;       /* hsl(220 40% 15%) */
  --muted: #64748b;            /* hsl(220 15% 50%) */
  --border: #e2e8f0;           /* hsl(220 13% 91%) */
  --radius: 8px;
  --shadow-elegant: 0 10px 30px -10px #14295233;
  --shadow-glow: 0 0 40px #ecae134d;
  --max: 1280px;
  --font: "Noto Sans", "PingFang TC", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--foreground);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ── Header (sticky navy, h-24) ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary);
  border-bottom: 1px solid #14295233;
  box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; }
.brand img { height: 64px; width: 160px; object-fit: contain; display: block; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav > a {
  color: #fff; font-size: 14px; font-weight: 500; padding: 8px 4px;
  transition: color .2s;
}
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--accent); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--secondary); color: var(--primary);
  font-size: 14px; font-weight: 500;
  height: 36px; padding: 0 12px; border-radius: 6px;
}
.lang-switch:hover { background: #e2e8f0; color: var(--primary); }
.lang-switch svg { width: 16px; height: 16px; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 96px; left: 0; right: 0;
    background: var(--primary); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 16px; border-top: 1px solid #ffffff22;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 4px; border-bottom: 1px solid #ffffff14; }
  .lang-switch { margin: 12px 0 0; justify-content: center; }
}

/* ── Hero (home, 600px with skyline + navy overlay) ─────────────────────── */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  background: url("hero-hong-kong-BLGICFY-.jpg") center / cover no-repeat;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, #142952e6, #142952b3);
}
.hero .wrap { position: relative; z-index: 1; padding-left: 48px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 {
  font-family: "Noto Serif", "Songti TC", "PMingLiU", serif;
  font-size: clamp(32px, 5vw, 60px); font-weight: 700; line-height: 1.15;
  margin: 0 0 24px;
}
.hero .lede { font-size: clamp(18px, 2vw, 24px); margin: 0 0 32px; max-width: 42rem; color: #e8edf5; }
.hero .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
@media (max-width: 720px) { .hero .wrap { padding-left: 16px; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--primary);
  font-size: 14px; font-weight: 600;
  height: 44px; padding: 0 32px; border-radius: 6px;
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  transition: background .2s, box-shadow .3s;
}
.btn:hover { background: var(--accent-hover); color: var(--primary); box-shadow: var(--shadow-glow); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #ffffff55; box-shadow: none; margin-left: 12px; }
.btn.ghost:hover { background: #ffffff1a; color: #fff; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-light { background: #f1f5f94d; }            /* bg-secondary/30 over white */
.section-navy { background: var(--primary); color: #fff; }
.section-white { background: #fff; }
.section-cta {
  background: linear-gradient(to bottom right, #1429520d, #ecae130d, #1429521a);
  text-align: center; position: relative; overflow: hidden;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; margin: 0 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); max-width: 42rem; margin: 0 auto; }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: #ffffffcc; }
.section-cta h2 { font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; margin: 0 0 16px; }
.section-cta p { font-size: 18px; color: var(--muted); max-width: 42rem; margin: 0 auto 32px; }

/* ── Offer cards (background image + white overlay, gold icon) ──────────── */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.offer-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f080; border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
  transition: transform .5s, box-shadow .5s;
}
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.offer-card .bg {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  transition: transform .7s;
}
.offer-card:hover .bg { transform: scale(1.1); }
.offer-card .bg::after { content: ""; position: absolute; inset: 0; background: #ffffffd9; }
.offer-card .inner { position: relative; z-index: 1; padding: 24px; }
.offer-card .icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 16px; }
.offer-card h3 { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.offer-card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--primary); }
.more-link:hover { text-decoration: underline; color: var(--primary); }
.more-link svg { width: 16px; height: 16px; transition: transform .3s; }
.more-link:hover svg { transform: translateX(4px); }

/* ── Navy article cards (Education & Research) ──────────────────────────── */
.navy-cards { max-width: 64rem; margin: 0 auto; display: grid; gap: 16px; }
.navy-card {
  display: block; background: #ffffff1a; border: 1px solid #ffffff33;
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 32px; backdrop-filter: blur(4px);
  transition: background .3s, transform .3s;
}
.navy-card:hover { background: #ffffff33; transform: translateY(-4px); }
.chip {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent); background: #ecae131a;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.navy-card h3 { font-size: 24px; font-weight: 700; color: #fff; line-height: 1.3; margin: 0 0 16px; }
.navy-card p { color: #ffffffbf; margin: 0 0 24px; line-height: 1.7; }
.card-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #ffffff80; }
.card-date svg { width: 16px; height: 16px; }

/* ── News cards (white) ─────────────────────────────────────────────────── */
.news-cards { max-width: 56rem; margin: 0 auto; display: grid; gap: 16px; }
.news-card {
  display: block; background: #fff; border: 1px solid #e2e8f080; border-radius: var(--radius);
  box-shadow: 0 1px 2px #0000000d; padding: 24px;
  transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.news-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--foreground); }
.news-card p { color: var(--muted); margin: 0 0 12px; }
.news-card .date { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Leadership team ────────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; max-width: 48rem; margin: 0 auto; }
.team figure {
  margin: 0; background: #fff; border: 1px solid #e2e8f080; border-radius: var(--radius);
  box-shadow: var(--shadow-elegant); padding: 24px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.team figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.team .photo { width: 256px; height: 320px; margin: 0 auto 16px; border-radius: var(--radius); overflow: hidden; }
.team .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.team figcaption strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team figcaption span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .team .photo { width: 100%; height: auto; aspect-ratio: 4/5; } }

/* ── Page head (inner pages, navy band) ─────────────────────────────────── */
.page-head { background: var(--primary); color: #fff; padding: 56px 0 48px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.page-head p { color: #cdd9e6; margin: 0; max-width: 70ch; font-size: 18px; }
main .wrap { padding-top: 48px; padding-bottom: 64px; }

/* ── Prose / body content ───────────────────────────────────────────────── */
.prose { max-width: 76ch; }
.prose h2 { color: var(--primary); font-size: 28px; font-weight: 700; margin: 48px 0 12px; }
.prose h3 { color: var(--primary-glow); font-size: 20px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.updated { color: var(--muted); font-size: 14px; }

/* ── Fact box (GEO quotable block, gold-tinted) ─────────────────────────── */
.fact-box {
  background: #ecae1314; border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin: 32px 0;
}
.fact-box h2, .fact-box h3 { margin-top: 0; color: var(--primary); }
.fact-box dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 16px; margin: 0; }
.fact-box dt { font-weight: 700; color: var(--primary); }
.fact-box dd { margin: 0; }
@media (max-width: 720px) { .fact-box dl { grid-template-columns: 1fr; } }

/* ── Generic cards grid (contact etc.) ──────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 24px 0; }
.card {
  background: #fff; border: 1px solid #e2e8f080; border-radius: var(--radius);
  box-shadow: var(--shadow-elegant); padding: 24px;
}
.card h3 { margin: 0 0 8px; color: var(--primary); font-size: 20px; font-weight: 600; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card a.more { font-weight: 600; font-size: 15px; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; margin: 24px 0; background: #fff; font-size: 15px; }
caption { text-align: left; font-weight: 700; color: var(--primary); padding-bottom: 8px; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--primary); color: #fff; }
tbody tr:nth-child(even) { background: var(--secondary); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h2, .faq-item h3 { margin: 0 0 8px; font-size: 19px; color: var(--primary); }
.faq-item p { margin: 0; }

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-hover); }

/* ── Article list (insights hub) ────────────────────────────────────────── */
.article-list { list-style: none; padding: 0; margin: 24px 0; }
.article-list li {
  border: 1px solid #e2e8f080; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-elegant); padding: 24px; margin-bottom: 16px;
}
.article-list h2, .article-list h3 { margin: 0 0 6px; font-size: 21px; }
.article-list p { margin: 0 0 8px; color: var(--muted); }

/* ── News list items (news page) ────────────────────────────────────────── */
.news-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.news-item h2, .news-item h3 { margin: 0 0 6px; font-size: 20px; color: var(--primary); }
.news-item time { color: var(--accent-hover); font-weight: 600; font-size: 14px; }
.news-item p { margin: 6px 0 0; }

/* ── Footer (light, mirrors source) ─────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: #f1f5f933; padding: 32px 0; margin-top: 48px; }
.site-footer .foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer .foot-brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer .foot-brand img { height: 64px; width: 160px; object-fit: contain; }
.site-footer .foot-brand p { font-size: 14px; color: var(--muted); margin: 0; }
.site-footer .foot-nav { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.site-footer .foot-nav a { font-size: 14px; font-weight: 500; color: var(--foreground); }
.site-footer .foot-nav a:hover { color: var(--primary); }
.site-footer .legal { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
address { font-style: normal; }
@media (max-width: 640px) {
  .site-footer .foot { flex-direction: column; }
  .site-footer .foot-nav { text-align: left; }
}
