/* ============================================================
   CCES Website — Stylesheet
   Extracted from the original inline styles for maintainability.
   ============================================================ */

/* --- Reset & Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Libre Franklin', 'Noto Sans TC', sans-serif; color: #16233a; background: #fff; }
a { color: inherit; text-decoration: none; }
::selection { background: #c79a3e; color: #fff; }

/* --- Google Translate overrides --- */
.goog-te-banner-frame, .goog-te-gadget-icon, #goog-gt-tt,
.goog-te-balloon-frame, .goog-tooltip { display: none !important; }
.goog-te-gadget { height: 0; overflow: hidden; font-size: 0 !important; color: transparent !important; }
body { top: 0 !important; position: static !important; }
font { background: transparent !important; box-shadow: none !important; vertical-align: baseline !important; }

/* --- Layout containers --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrower {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-text {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Sticky header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

/* --- Main bar --- */
.main-bar {
  background: #1a5aa6;
}
.main-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* --- Language switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 7px;
  font-family: 'Libre Franklin', 'Noto Sans TC', sans-serif;
}
.lang-btn.active { color: #fff; }
.logo-link {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  padding: 12px 0;
}
.logo-placeholder {
  height: 46px;
  border: 1px dashed rgba(255, 255, 255, .5);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 500 10px/1.3 'Libre Franklin', monospace;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .04em;
}
.logo-placeholder--hkbu { width: 128px; }
.logo-placeholder--centre { width: 116px; }
.logo-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .28);
}

/* --- Navigation --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.nav-link {
  display: inline-block;
  padding: 20px 1px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-family: 'Libre Franklin', 'Noto Sans TC', sans-serif;
}
.nav-link.active {
  color: #fff;
  border-bottom-color: #c79a3e;
}

/* --- Translation notice --- */
.translate-notice {
  background: #fbf4e2;
  border-bottom: 1px solid #ecdcae;
}
.translate-notice__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.translate-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c79a3e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.translate-notice__text {
  font-size: 13px;
  color: #7a652e;
  line-height: 1.5;
  font-family: 'Noto Sans TC', sans-serif;
}

/* --- Eyebrow (section label) --- */
.eyebrow {
  font: 600 12px/1.4 'Libre Franklin', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c79a3e;
}
.eyebrow--light { color: #e0b75a; }

/* --- Section headings --- */
.section-title {
  font: 600 32px/1.2 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
  letter-spacing: -.01em;
  margin: 10px 0 0;
}
.section-title--white { color: #fff; }

/* --- Hero section --- */
.hero {
  background: linear-gradient(135deg, #1a5aa6 0%, #123f7a 100%);
  color: #fff;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  min-height: 440px;
}
.hero__text { padding: 64px 0; }
.hero__title {
  font: 600 46px/1.12 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  letter-spacing: -.015em;
  margin: 16px 0 0;
  color: #fff;
  text-wrap: balance;
}
.hero__lead {
  font: 400 18px/1.65 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .82);
  margin: 22px 0 0;
  max-width: 34em;
  text-wrap: pretty;
}
.hero__buttons {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  border: none;
  font: 600 15px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  padding: 13px 26px;
  border-radius: 3px;
  cursor: pointer;
}
.btn--primary {
  background: #c79a3e;
  color: #1c1606;
}
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  padding: 12px 24px;
}
.btn--outline-dark {
  background: transparent;
  border: 1.5px solid #c2cede;
  color: #0b3a78;
  font: 600 14px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
}
.btn--primary-sm {
  background: #c79a3e;
  color: #1c1606;
  border: none;
  font: 600 15px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

/* --- Image placeholders --- */
.img-placeholder {
  align-self: stretch;
  min-height: 300px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #0f4488, #0f4488 11px, #0d3c79 11px, #0d3c79 22px);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.img-placeholder--light {
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 11px, #e6ecf5 11px, #e6ecf5 22px);
  border-color: transparent;
}
.img-placeholder__label {
  font: 500 12px 'Libre Franklin', monospace;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .65);
  background: rgba(8, 38, 84, .65);
  padding: 6px 12px;
  border-radius: 3px;
}
.img-placeholder__label--dark {
  color: #9aa7bb;
  background: #fff;
  border: 1px solid #e4eaf3;
}

/* --- Card grid (objectives, themes, committee, etc.) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #dde4ef;
  border-radius: 4px;
  padding: 30px;
}
.card--compact { padding: 24px 18px; text-align: center; }
.card--inline {
  padding: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.card__tag {
  font: 700 14px 'Source Serif 4', Georgia, serif;
  color: #c79a3e;
  letter-spacing: .04em;
}
.card__number {
  font: 700 15px 'Source Serif 4', Georgia, serif;
  color: #c79a3e;
}
.card__title {
  font: 600 21px/1.3 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
  margin: 12px 0 0;
}
.card__body {
  font: 400 16px/1.65 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #54627a;
  margin: 12px 0 0;
  text-wrap: pretty;
}

/* --- Dark section (navy background) --- */
.section-dark {
  background: #1a5aa6;
  color: #fff;
}
.section-darker {
  background: #082654;
  color: #fff;
}

/* --- Light section (grey background) --- */
.section-light {
  background: #f4f7fb;
  padding: 70px 0;
  border-top: 1px solid #e4eaf3;
  border-bottom: 1px solid #e4eaf3;
}

/* --- Director welcome block --- */
.welcome__text {
  font: 500 24px/1.5 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #fff;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.welcome__director {
  margin-top: 26px;
  font: 600 15px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #e0b75a;
}

/* --- News cards --- */
.news-card {
  border: 1px solid #dde4ef;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card__image {
  height: 130px;
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 11px, #e6ecf5 11px, #e6ecf5 22px);
}
.news-card__body { padding: 24px; flex: 1; }
.news-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 600 12px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #c79a3e;
  letter-spacing: .04em;
}
.news-card__date { color: #9aa7bb; }
.news-card__title {
  font: 600 18px/1.35 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
  margin: 10px 0 0;
  text-wrap: pretty;
}
.news-card__body-text {
  font: 400 15px/1.6 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #54627a;
  margin: 10px 0 0;
}

/* --- News list page --- */
.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  border: 1px solid #dde4ef;
  border-radius: 4px;
  overflow: hidden;
}
.news-item__image {
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 11px, #e6ecf5 11px, #e6ecf5 22px);
  min-height: 140px;
}
.news-item__body { padding: 26px 26px 26px 0; }
.news-item__tag {
  background: #fbf4e2;
  color: #a07f2c;
  padding: 3px 10px;
  border-radius: 3px;
  font: 600 12px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  letter-spacing: .04em;
}
.news-item__date {
  color: #9aa7bb;
  font: 600 12px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  letter-spacing: .04em;
}
.news-item__title {
  font: 600 21px/1.3 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
  margin: 12px 0 0;
  text-wrap: pretty;
}
.news-item__text {
  font: 400 16px/1.65 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #54627a;
  margin: 10px 0 0;
}

/* --- SDG badges --- */
.sdg-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dde4ef;
  border-radius: 4px;
  padding: 14px 18px;
}
.sdg-badge__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 3px;
  background: #0b3a78;
  color: #fff;
  font: 700 18px 'Source Serif 4', Georgia, serif;
  flex: 0 0 auto;
}
.sdg-badge__label {
  font: 500 12px 'Libre Franklin', sans-serif;
  color: #9aa7bb;
  letter-spacing: .04em;
}
.sdg-badge__name {
  font: 600 17px 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
}

/* --- Dark info box (students, advisory) --- */
.info-box-dark {
  background: #0b3a78;
  border-radius: 4px;
  padding: 38px;
  color: #fff;
}
.info-box-dark p {
  font: 400 17px/1.7 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .84);
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* --- Publications list --- */
.pub-group { margin-bottom: 40px; }
.pub-group__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 2px solid #0b3a78;
  padding-bottom: 10px;
}
.pub-group__year {
  font: 700 24px 'Source Serif 4', Georgia, serif;
  color: #0b3a78;
  margin: 0;
}
.pub-group__count {
  font: 500 13px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #9aa7bb;
}
.pub-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e4eaf3;
  align-items: start;
}
.pub-item__num {
  font: 700 15px 'Source Serif 4', Georgia, serif;
  color: #c79a3e;
  padding-top: 3px;
}
.pub-item__authors {
  font: 400 14px/1.5 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #8a97ad;
}
.pub-item__title {
  font: 600 18px/1.4 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
  margin: 4px 0 0;
  text-wrap: pretty;
}
.pub-item__venue {
  font: 400 15px/1.55 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #54627a;
  margin: 5px 0 0;
  font-style: italic;
}
.pub-item__link {
  display: inline-block;
  margin-top: 8px;
  font: 600 13px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #1657c4;
  text-decoration: none;
}

/* --- People: Director profile --- */
.director-photo {
  aspect-ratio: 1/1;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 11px, #e6ecf5 11px, #e6ecf5 22px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.director-photo__initials {
  font: 700 44px 'Source Serif 4', Georgia, serif;
  color: #b9c4d6;
}
.director-info__affil {
  font: 500 14px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #8a97ad;
  margin-top: 6px;
  letter-spacing: .03em;
}
.director-info__bio {
  font: 400 17px/1.7 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #54627a;
  margin: 18px 0 0;
  max-width: 48em;
  text-wrap: pretty;
}

/* --- Committee member card --- */
.committee-avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: #0b3a78;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 20px 'Source Serif 4', Georgia, serif;
}
.committee-name {
  font: 600 16px/1.3 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #16233a;
  margin-top: 14px;
}
.committee-affil {
  font: 500 12px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #8a97ad;
  margin-top: 6px;
  letter-spacing: .02em;
}

/* --- Team stat block --- */
.team-stat {
  border: 1px solid #dde4ef;
  border-radius: 4px;
  padding: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.team-stat__number {
  font: 700 30px 'Source Serif 4', Georgia, serif;
  color: #0b3a78;
}
.team-stat__role {
  font: 500 15px/1.4 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #3c4a61;
}

/* --- CTA band --- */
.cta-band {
  background: #082654;
  color: #fff;
}
.cta-band__inner {
  padding: 54px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band__title {
  font: 600 28px/1.25 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #fff;
  margin: 0;
}
.cta-band__body {
  font: 400 16px/1.6 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .78);
  margin: 10px 0 0;
}

/* --- Contact page --- */
.contact-item__label {
  font: 600 12px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9aa7bb;
}
.contact-item__value {
  font: 600 19px 'Source Serif 4', Georgia, serif;
  color: #0b3a78;
}
.contact-item__value--text {
  font: 400 17px/1.6 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #3c4a61;
}
.contact-item__note {
  font: 400 14px/1.6 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: #8a97ad;
  margin-top: 8px;
}

/* --- Footer --- */
.site-footer {
  background: #123f7a;
  color: rgba(255, 255, 255, .78);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 44px;
  padding: 56px 32px 0;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px;
}
.footer__brand-name {
  color: #fff;
  font: 600 15px 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  line-height: 1.3;
}
.footer__blurb {
  font: 400 14px/1.65 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .6);
  margin: 18px 0 0;
  max-width: 30em;
}
.footer__heading {
  font: 600 12px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e0b75a;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 16px;
}
.footer__link {
  font: 400 14px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  cursor: pointer;
}
.footer__contact-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
  font: 400 14px/1.55 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .7);
}
.footer__bottom {
  margin-top: 44px;
  padding: 18px 32px 30px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font: 400 13px 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .5);
}

/* --- Page hero banner (inner pages) --- */
.page-hero {
  background: #1a5aa6;
  color: #fff;
  padding: 54px 32px;
}
.page-hero__title {
  font: 600 40px/1.15 'Source Serif 4', 'Noto Serif TC', Georgia, serif;
  color: #fff;
  margin: 12px 0 0;
  letter-spacing: -.01em;
}
.page-hero__lead {
  font: 400 18px/1.65 'Libre Franklin', 'Noto Sans TC', sans-serif;
  color: rgba(255, 255, 255, .82);
  margin: 16px 0 0;
  max-width: 50em;
  text-wrap: pretty;
}

/* --- Section padding utilities --- */
.section-padded { padding: 78px 0; }
.section-padded--sm { padding: 70px 0; }
.section-padded--md { padding: 64px 0; }
.section-padded--top { padding: 64px 0 56px; }

/* --- Map placeholder --- */
.map-placeholder {
  background: #f4f7fb;
  border: 1px solid #e4eaf3;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 300px;
  padding: 16px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .container, .container-narrow, .container-narrower, .container-text {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero__inner,
  .grid-3,
  .dir-grid,
  .contact-grid,
  .footer__top {
    grid-template-columns: 1fr !important;
  }
  .grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
  .hero__title, .page-hero__title { font-size: 33px !important; line-height: 1.16 !important; }
  .img-placeholder { min-height: 170px !important; margin-top: 0 !important; margin-bottom: 22px !important; }
  .site-nav { gap: 14px !important; }
  .nav-link { font-size: 14px !important; padding-top: 12px !important; padding-bottom: 12px !important; border-bottom-width: 2px !important; }
  .news-item { grid-template-columns: 1fr !important; }
  .footer__top { gap: 30px !important; }
  .research-theme-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .grid-5 { grid-template-columns: 1fr !important; }
  .hero__title, .page-hero__title { font-size: 27px !important; }
  .container, .container-narrow, .container-narrower, .container-text {
    padding-left: 18px;
    padding-right: 18px;
  }
}
