:root {
  --blue: #123c66;
  --orange: #ef7d1a;
  --ink: #0c1016;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --white: #fff;
  --header-h: 72px;
}

@media (max-width:640px){ :root { --header-h: 64px; } }

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

body{
  font-family:system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  padding-top:var(--header-h);
  line-height:1.6;
}

/* Scope page section styling to MAIN so the footer never inherits it */
main > section{
  padding:72px 20px;
  text-align:center;
}
main > section:nth-of-type(even){ background-color:var(--bg-alt); }
main > section.hero{ padding:0; }

h2{
  font-size:clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom:18px;
  color:var(--ink);
  font-weight:800;
  letter-spacing:.01em;
}
main > section:not(.hero) p{
  max-width:70ch;
  margin:0 auto;
  color:#334155;
}
main > section:not(.hero) h2::after{
  content:"";
  display:block;
  width:64px;
  height:4px;
  margin:12px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg, var(--blue), var(--orange));
}

/* ===== HERO (match other pages, keep background image) ===== */
.hero{
  position:relative;
  min-height:calc(60vh - 0px);
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(1200px 600px at -10% 10%, rgba(239,125,26,.12), transparent 60%),
    radial-gradient(1000px 520px at 110% -10%, rgba(18,60,102,.12), transparent 55%),
    #fff;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:75% center;
  z-index:0;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.82) 58%,
    rgba(255,255,255,0.6) 100%
  );
  backdrop-filter:blur(4px);
  z-index:1;
}
.hero-wrap{
  position:relative;
  width:min(1200px, 92vw);
  padding:46px 16px;
  text-align:center;
  z-index:2;
}
.eyebrow{
  color:var(--orange);
  font-weight:700;
  text-transform:uppercase;
  font-size:0.9rem;
  margin-bottom:12px;
}
.title{
  font-size:clamp(2rem, 4vw, 3rem);
  font-weight:800;
  color:var(--ink);
  margin-bottom:16px;
}
.title span{ color:var(--blue); }
.subhead{
  color:#475569;
  font-size:1.1rem;
  max-width:65ch;
  margin:0 auto;
}

/* ===== BOARD SECTION GRID ===== */
.board-slider{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  max-width:1100px;
  margin:26px auto 0;
}
.board-card{
  background:var(--white);
  border-radius:16px;
  border:1px solid rgba(12,16,22,.08);
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
  padding:18px 16px;
  text-align:center;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position:relative;
  overflow:hidden;
}
.board-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg, var(--blue), var(--orange));
}
.board-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(0,0,0,0.12);
  border-color:rgba(18,60,102,.18);
}
.board-card img{ width:100%; height:200px; object-fit:cover; border-radius:8px; }
.board-card h3{ margin:8px 0 6px; color:var(--blue); font-size:1.05rem; font-weight:800; }
.board-card p{
  font-size:.85rem;
  color:#5b6676;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* ===== CONTACT SECTION ===== */
.contact-links{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:18px;
}
.contact-links a{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; font-weight:700;
  background:linear-gradient(90deg, var(--blue), var(--orange));
  color:#fff; padding:12px 18px; border-radius:16px;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow:0 8px 18px rgba(18,60,102,.22);
  border:2px solid rgba(255,255,255,.75);
}
.contact-links a:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(18,60,102,.3); filter:saturate(1.05); }
.contact-links i{ font-size:1.2rem; }

/* ===== MOBILE ===== */
@media (max-width:900px){
  .hero{ min-height:calc(56vh - 0px); }
  .hero::before{ background-position:center center; }
  h2{ font-size:clamp(1.5rem, 4vw, 1.8rem); }
  .subhead{ font-size:1rem; }
  .board-slider{ grid-template-columns:repeat(2, 1fr); }
  .board-card img{ height:150px; }
  .contact-links a{ padding:10px 14px; font-size:.9rem; }
  .contact-links i{ font-size:1rem; }
}
@media (max-width:600px){
  .board-slider{ grid-template-columns:1fr; }
  .hero{ min-height:calc(50vh - 0px); }
  h2{ font-size:1.5rem; }
  .subhead{ font-size:.95rem; }
}

/* Optional: keep white ring around gradient buttons (matches navbar) */
.btn-primary{
  border-color:#fff; border-width:3px;
  background-clip:padding-box; -webkit-background-clip:padding-box;
}
.btn-primary:hover{ border-color:#fff; }

html{ scroll-behavior:smooth; }
