/* ==========================================================================
   First Nations University of Canada Theme — 严格对齐 fnuniv.ca 真实设计
   2026-10-12

   真实设计系统 (从 fnuniv.ca 提取):
   - 主色: orange  #E87722 (APPLY/DONATE CTA + accent)
   - 强调: terracotta  #A8501E
   - 中性: navy  #1B3A5C 文字
   - 浅背景: light grey  #f5f5f5
   - 蓝色 section bg:  #1B7BAE  (FNUniv is Social)
   - 4 张彩色卡片: teal / 绿 / terracotta / 金黄
   - 字体: 系统 sans (Source Sans Pro 风格)
   - 风格: 干净, 大留白, 圆角小, 圆角卡片, "→" CTA
   ========================================================================== */

:root {
  /* Brand */
  --fn-orange:        #E87722;
  --fn-orange-dark:   #c45f15;
  --fn-terracotta:    #A8501E;
  --fn-navy:          #1B3A5C;
  --fn-navy-light:    #2a557a;
  --fn-blue:          #1B7BAE;
  --fn-teal:          #1B8AA0;
  --fn-green:         #4A6E3A;
  --fn-yellow:        #E8B22A;
  --fn-ink:           #2d2d2d;
  --fn-grey-50:       #f5f5f5;
  --fn-grey-100:      #ebebeb;
  --fn-grey-200:      #d6d6d6;
  --fn-grey-700:      #6c757d;
  --fn-white:         #ffffff;

  /* Type */
  --fn-font-body:     "Source Sans Pro", "Helvetica Neue", -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --fn-font-heading:  "Source Sans Pro", var(--fn-font-body);

  --fn-s-xxs: .25rem; --fn-s-xs: .5rem;  --fn-s-s:  1rem;
  --fn-s-m:  1.5rem; --fn-s-l:  2rem;   --fn-s-xl: 2.5rem;
  --fn-s-xxl: 3rem;  --fn-s-xxxl: 4rem;  --fn-s-xxxxl: 5rem;

  --fn-radius:        4px;
  --fn-radius-lg:     8px;
  --fn-radius-pill:   999px;
  --fn-t:             200ms ease;
  --fn-container:     1280px;
}

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

body {
  margin: 0;
  font-family: var(--fn-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fn-ink);
  background: var(--fn-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--fn-orange); text-decoration: none; transition: color var(--fn-t); }
a:hover { color: var(--fn-orange-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--fn-s-s);
  font-family: var(--fn-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fn-navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--fn-s-s); }
ul, ol { margin: 0 0 var(--fn-s-s); padding-left: 1.5rem; }


/* ===== Top utility bar (white) ===== */
.utility-bar {
  background: var(--fn-white);
  border-bottom: 1px solid var(--fn-grey-100);
  font-size: 0.8125rem;
}
.utility-bar__inner {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 0.4rem var(--fn-s-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fn-s-s);
  flex-wrap: wrap;
}
.utility-bar__left a {
  color: var(--fn-navy);
  text-decoration: none;
  font-weight: 600;
}
.utility-bar__left a:hover { color: var(--fn-orange); text-decoration: underline; }
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.utility-bar__right a {
  color: var(--fn-navy);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  font-weight: 500;
}
.utility-bar__right a:hover { color: var(--fn-orange); text-decoration: underline; }
.utility-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--fn-orange);
  color: var(--fn-white) !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--fn-radius);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.utility-bar__cta:hover { background: var(--fn-orange-dark); color: var(--fn-white) !important; text-decoration: none; }
.utility-bar__cta--secondary { background: var(--fn-navy); }
.utility-bar__cta--secondary:hover { background: var(--fn-navy-light); }


/* ===== Site Header (white with logo + main nav) ===== */
.site-header {
  background: var(--fn-white);
  border-bottom: 1px solid var(--fn-grey-100);
  position: relative;
}
.site-header__main {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 1rem var(--fn-s-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fn-s-l);
}
.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-brand__img { height: 60px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-header__nav-item {
  padding: 0.75rem 1rem;
  color: var(--fn-navy) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--fn-radius);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.site-header__nav-item:hover { color: var(--fn-orange) !important; background: var(--fn-grey-50); text-decoration: none; }
.site-header__nav-item::after { content: "▾"; font-size: 0.7em; opacity: 0.6; }
.site-header__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--fn-navy);
  border-radius: 50%;
  text-decoration: none;
  background: var(--fn-grey-50);
  font-size: 1rem;
}
.site-header__search:hover { background: var(--fn-orange); color: var(--fn-white); text-decoration: none; }


/* ===== Hero (FNUniv: 全屏实景照 + 暗色蒙版 + 左中文字) ===== */
.home-hero {
  position: relative;
  min-height: 560px;
  background: var(--fn-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-hero__overlay {
  position: relative;
  z-index: 2;
  background: rgba(27, 58, 92, 0.45);
  color: var(--fn-white);
  padding: var(--fn-s-xxxxl) var(--fn-s-s);
  text-align: center;
  width: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.home-hero__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fn-orange);
  margin: 0 0 var(--fn-s-s);
  padding: 0.4rem 0.9rem;
  background: rgba(0,0,0,0.3);
  border-radius: var(--fn-radius);
}
.home-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fn-white);
  margin: 0 0 var(--fn-s-s);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 32rem;
}
.home-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 var(--fn-s-l);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  max-width: 32rem;
}
.home-hero__actions { display: flex; gap: var(--fn-s-s); flex-wrap: wrap; justify-content: center; }


/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--fn-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--fn-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--fn-t);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--fn-orange);
  color: var(--fn-white);
  border-color: var(--fn-orange);
}
.btn--primary:hover { background: var(--fn-orange-dark); border-color: var(--fn-orange-dark); color: var(--fn-white); text-decoration: none; }
.btn--secondary {
  background: var(--fn-navy);
  color: var(--fn-white);
  border-color: var(--fn-navy);
}
.btn--secondary:hover { background: var(--fn-navy-light); border-color: var(--fn-navy-light); color: var(--fn-white); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--fn-white);
  border-color: var(--fn-white);
}
.btn--outline:hover { background: var(--fn-white); color: var(--fn-navy); text-decoration: none; }


/* ===== Sections ===== */
.section {
  width: 100%;
  padding: var(--fn-s-xxxxl) var(--fn-s-s);
}
.section--white { background: var(--fn-white); }
.section--grey { background: var(--fn-grey-50); }
.section--blue { background: var(--fn-blue); color: var(--fn-white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--fn-white); }
.section__container { max-width: var(--fn-container); margin: 0 auto; }
.section__head { margin-bottom: var(--fn-s-xl); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--fn-s-m); flex-wrap: wrap; }
.section__head--center { display: block; text-align: center; }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--fn-navy);
  margin: 0;
  position: relative;
  padding-bottom: var(--fn-s-xs);
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--fn-orange);
}
.section--blue .section__title { color: var(--fn-white); }
.section--blue .section__title::after { background: var(--fn-white); }
.section__sub {
  font-size: 1.0625rem;
  color: var(--fn-grey-700);
  max-width: 48rem;
  margin: var(--fn-s-s) 0 0;
}
.section--blue .section__sub { color: rgba(255,255,255,0.9); }
.section__viewall {
  color: var(--fn-orange);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9375rem;
}
.section__viewall:hover { color: var(--fn-orange-dark); text-decoration: underline; }


/* ===== Announcement Cards (4 张彩色方块) ===== */
.announce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -120px;
  position: relative;
  z-index: 5;
  max-width: var(--fn-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--fn-s-s);
}
.announce-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: var(--fn-s-l);
  color: var(--fn-white);
  text-decoration: none;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.announce-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}
.announce-card:hover::before { background: rgba(0,0,0,0.4); }
.announce-card:hover { color: var(--fn-white); text-decoration: none; }
.announce-card__title {
  font-family: var(--fn-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fn-white);
  margin: 0 0 var(--fn-s-xs);
  position: relative;
  z-index: 1;
}
.announce-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fn-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  z-index: 1;
}


/* ===== Featured Alumni ===== */
.alumni-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--fn-s-l);
  align-items: center;
}
.alumni-feature__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 6px solid var(--fn-grey-50);
}
.alumni-feature__name {
  font-family: var(--fn-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fn-navy);
  margin: 0 0 var(--fn-s-xs);
}
.alumni-feature__program {
  font-size: 0.9375rem;
  color: var(--fn-orange);
  font-weight: 600;
  margin: 0 0 var(--fn-s-s);
}
.alumni-feature__quote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--fn-ink);
  line-height: 1.6;
  margin: 0 0 var(--fn-s-s);
}
.alumni-feature__attribution {
  font-size: 0.875rem;
  color: var(--fn-grey-700);
  margin: 0;
}


/* ===== Card Grid (News 3-col) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fn-s-l);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--fn-white);
  border: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--fn-t);
}
.card:hover { opacity: 0.85; color: inherit; text-decoration: none; }
.card__media {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: var(--fn-s-s);
}
.card__meta {
  font-size: 0.8125rem;
  color: var(--fn-grey-700);
  margin: 0 0 var(--fn-s-xs);
}
.card__title {
  font-family: var(--fn-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fn-navy);
  line-height: 1.3;
  margin: 0 0 var(--fn-s-s);
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fn-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}
.card__cta:hover { color: var(--fn-orange-dark); }


/* ===== Events Strip (light grey bg + date boxes) ===== */
.event-row {
  display: flex;
  align-items: flex-start;
  gap: var(--fn-s-s);
  padding: var(--fn-s-m) 0;
  border-top: 1px solid var(--fn-grey-100);
}
.event-row:first-of-type { border-top: 0; }
.event-row__date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--fn-navy);
  color: var(--fn-white);
  padding: 0.5rem 0.5rem 0.75rem;
  border-radius: var(--fn-radius);
  font-weight: 700;
  line-height: 1.1;
}
.event-row__date-day { font-size: 1.5rem; display: block; }
.event-row__date-mon { font-size: 0.75rem; text-transform: uppercase; opacity: 0.85; }
.event-row__body { flex: 1; }
.event-row__when {
  font-size: 0.8125rem;
  color: var(--fn-grey-700);
  margin: 0 0 0.25rem;
}
.event-row__title {
  font-family: var(--fn-font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fn-navy);
  margin: 0 0 0.4rem;
  text-decoration: none;
}
.event-row__title:hover { color: var(--fn-orange); text-decoration: underline; }
.event-row__desc {
  font-size: 0.875rem;
  color: var(--fn-ink);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.event-row__cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fn-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===== Social block (blue section) ===== */
.social-block { color: var(--fn-white); }
.social-block__title { color: var(--fn-white); }
.social-block__item {
  display: block;
  margin-bottom: var(--fn-s-m);
  border-radius: var(--fn-radius);
  overflow: hidden;
  background: var(--fn-white);
  color: var(--fn-navy);
  text-decoration: none;
}
.social-block__item:hover { color: var(--fn-navy); text-decoration: none; opacity: 0.9; }
.social-block__item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}


/* ===== Page Hero (内页) ===== */
.page-hero {
  background: var(--fn-grey-50);
  padding: var(--fn-s-xl) var(--fn-s-s);
  border-bottom: 1px solid var(--fn-grey-100);
}
.page-hero__container { max-width: var(--fn-container); margin: 0 auto; }
.page-hero__breadcrumb {
  font-size: 0.875rem;
  color: var(--fn-grey-700);
  margin: 0 0 var(--fn-s-xs);
}
.page-hero__breadcrumb a { color: var(--fn-orange); text-decoration: none; }
.page-hero__breadcrumb a:hover { text-decoration: underline; }
.page-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--fn-navy);
  margin: 0 0 var(--fn-s-s);
}
.page-hero__sub {
  font-size: 1.0625rem;
  color: var(--fn-grey-700);
  max-width: 48rem;
  margin: 0;
}


/* ===== Content (prose) ===== */
.page-content {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: var(--fn-s-xxxxl) var(--fn-s-s);
}
.prose {
  max-width: 56rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fn-ink);
}
.prose h2 {
  font-size: 1.625rem;
  color: var(--fn-navy);
  margin: var(--fn-s-xl) 0 var(--fn-s-s);
  font-family: var(--fn-font-heading);
}
.prose h3 {
  font-size: 1.25rem;
  color: var(--fn-navy);
  margin: var(--fn-s-l) 0 var(--fn-s-xs);
  font-family: var(--fn-font-heading);
}
.prose a { color: var(--fn-orange); text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 var(--fn-s-s); padding-left: 1.5rem; }
.prose blockquote {
  border-left: 4px solid var(--fn-orange);
  padding: 0.5rem var(--fn-s-m);
  margin: var(--fn-s-m) 0;
  background: var(--fn-grey-50);
  font-style: italic;
}


/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fn-s-l);
  text-align: center;
}
.stat__num {
  font-family: var(--fn-font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--fn-orange);
  line-height: 1;
  margin: 0 0 var(--fn-s-xs);
}
.stat__label {
  font-size: 0.9375rem;
  color: var(--fn-grey-700);
  margin: 0;
}


/* ===== Footer (FNUniv: navy + 4 列) ===== */
.site-footer {
  background: var(--fn-navy);
  color: var(--fn-white);
  padding: var(--fn-s-xxxxl) var(--fn-s-s) var(--fn-s-l);
}
.site-footer__grid {
  max-width: var(--fn-container);
  margin: 0 auto var(--fn-s-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--fn-s-l);
}
.site-footer__col h4 {
  font-family: var(--fn-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fn-orange);
  margin: 0 0 var(--fn-s-s);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer__col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--fn-s-xs);
  line-height: 1.5;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin: 0 0 var(--fn-s-xs); }
.site-footer__col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
}
.site-footer__col a:hover { color: var(--fn-orange); text-decoration: underline; }
.site-footer__network {
  max-width: var(--fn-container);
  margin: 0 auto var(--fn-s-l);
  padding: var(--fn-s-m) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-footer__network-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin: 0 0 var(--fn-s-xs);
}
.site-footer__network ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--fn-s-xs) var(--fn-s-m);
}
.site-footer__network a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.8125rem;
}
.site-footer__network a:hover { color: var(--fn-orange); text-decoration: underline; }
.site-footer__bottom {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding-top: var(--fn-s-l);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--fn-s-s);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}
.site-footer__bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; }


/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .site-header__nav { display: none; }
  .announce-grid { grid-template-columns: repeat(2, 1fr); margin-top: -60px; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .alumni-feature { grid-template-columns: 1fr; text-align: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .utility-bar__inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .site-header__main { flex-direction: column; padding: 0.75rem var(--fn-s-s); gap: var(--fn-s-s); }
  .site-brand__img { height: 48px; }
  .announce-grid, .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .announce-grid { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .section { padding: var(--fn-s-xl) var(--fn-s-s); }
  .home-hero__title { font-size: 2rem; }
}
