:root{
  --navy:#22334c;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#f4f7fb;
  --border:rgba(15,23,42,.12);
  --teal:#3f8a8a;
  --teal-700:#2f6f6f;
  --brand-teal:#55A9A6;
  --max:1200px;
}

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

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:var(--bg);
  color:var(--ink);
}

img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

/* =========================
   HEADER
   ========================= */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
}

.header-inner{
  height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{display:flex;align-items:center}
.logo{height:40px;width:auto}

.nav{
  display:flex;
  gap:22px;
  align-items:center;
  font-weight:650;
}

.nav a{
  padding:8px 12px;
  border-radius:12px;
  color:rgba(15,23,42,.72);
}

.nav a.active,
.nav a[aria-current="page"]{
  color:rgba(15,23,42,.95);
  background:rgba(15,23,42,.06);
  font-weight:750;
}

/* Buttons */
.btn{
  height:42px;
  padding:0 16px;
  border-radius:12px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  white-space:nowrap;
  gap:8px;
}

.btn-primary{background:var(--teal);color:#fff}
.btn-secondary{background:#fff;border:1px solid rgba(15,23,42,.20);color:#0b1e3a}
.btn-sm{height:38px;padding:0 14px;border-radius:12px;font-weight:800}

/* =========================
   HERO (FULL-BLEED BACKGROUND)
   Uses: assets/hero-globe.png
   ========================= */
.hero-band{
  position:relative;

  /* full-bleed across viewport, while content stays in .container */
  width:100vw;
  left:50%;
  margin-left:-50vw;

  border-bottom:1px solid var(--border);
  background:#fff;

  background-image:url("../assets/hero-globe.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:86% 50%;
}

.hero{
  padding:58px 0 22px;
  min-height:520px;
}

.hero-copy{
  max-width:640px;
}

.h1{
  font-size:54px;
  line-height:1.05;
  margin:0 0 12px;
  color:#0b1e3a;
}

.h2{
  font-size:30px;
  margin:0 0 16px;
  color:var(--teal-700);
}

.hero-text{
  max-width:60ch;
  margin:0 0 20px;
  color:rgba(15,23,42,.75);
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* PROOF STRIP */
.proof-strip{
  margin-top:18px;
  padding:14px 18px;
  border-radius:18px;
  background:linear-gradient(180deg,#2a3e58,#1c2c44);
  box-shadow:0 14px 22px rgba(2,6,23,.14);
  color:#fff;
}

.proof-inner{
  display:grid;
  grid-template-columns:auto 1px minmax(170px,1fr) 1px minmax(190px,1fr) 1px minmax(260px,1.25fr);
  column-gap:18px;
  align-items:center;
}

.proof-divider{width:1px;background:rgba(255,255,255,.16);align-self:stretch}

.proof-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:max-content;
}

.proof-mark img{height:58px;width:auto;max-width:none}

.proof-wordmark{display:flex;flex-direction:column;line-height:1.05}

.proof-name{
  font-size:34px;
  font-weight:900;
  letter-spacing:2px;
  color:#fff;
  white-space:nowrap;
}

.proof-subname{
  margin-top:6px;
  font-size:14px;
  font-weight:800;
  letter-spacing:6px;
  color:var(--brand-teal);
  white-space:nowrap;
}

.proof-stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:4px;
  min-width:0;
}

.stat-top{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  line-height:1;
}

.stat-num{font-size:38px;font-weight:900;line-height:1}
.stat-label{font-size:18px;font-weight:850;line-height:1;margin-top:2px}
.stat-sub{font-size:13px;font-weight:700;opacity:.85}

.proof-last{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  min-width:0;
}

.last-top{display:flex;align-items:center;justify-content:center;gap:10px}
.last-title{font-size:18px;font-weight:850;line-height:1;white-space:nowrap}
.last-sub{font-size:13px;opacity:.85}
.last-dash{width:28px;height:2px;background:rgba(255,255,255,.65);border-radius:2px;margin-top:6px}

/* Platform row (even optical distribution) */
.platform-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0; /* spacing comes from equal-width columns */
  padding:14px 0 18px;
  flex-wrap:wrap;
}

.platform-item{
  width:clamp(128px, 14vw, 176px);
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.platform-logo img{
  height:26px;
  width:auto;
  opacity:.80;
}

.platform-text{
  font-weight:650;
  font-size:14px;
  color:rgba(15,23,42,.62);
  white-space:nowrap;
}

/* =========================
   COURSES SECTION (YOUR TILE AREA)
   ========================= */
.courses-section{
  padding:56px 0 80px;
}

.section-title{
  text-align:center;
  font-size:28px;
  margin:0 0 20px;
  color:#0b1e3a;
}

.tabs{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:0 0 32px;
  flex-wrap:wrap;
}

.tab{
  padding:8px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  font-size:13px;
  color:rgba(15,23,42,.72);
  font-weight:700;
}

.tab.active{
  background:rgba(63,138,138,.15);
  border-color:rgba(63,138,138,.4);
  color:#0b1e3a;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

/* Cards */
.course-card{
  position:relative;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  padding:20px;
  min-height:240px;
  box-shadow:0 10px 20px rgba(2,6,23,.08);
  overflow:hidden;
}

.course-card > *{position:relative;z-index:1}

.pill-required{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(63,138,138,.18);
  border:1px solid rgba(63,138,138,.35);
  margin-bottom:10px;
  color:#0b1e3a;
}

.course-card h3{
  margin:6px 0 4px;
  font-size:18px;
  color:#0b1e3a;
}

.subtitle{
  color:var(--teal);
  font-size:14px;
  font-weight:700;
  margin:0 0 8px;
}

.meta{
  font-size:13px;
  color:rgba(15,23,42,.65);
  margin:0 0 10px;
  font-weight:650;
}

.body{
  font-size:14px;
  color:rgba(15,23,42,.68);
  line-height:1.45;
  margin:0 0 14px;
}

/* Teal outlined CTAs for secondary */
.course-card .btn-secondary{
  background:#fff;
  border:1px solid rgba(63,138,138,.45);
  color:#0b1e3a;
}

/* Tile overlay art */
.card-art{
  position:absolute;
  top:-60px;
  right:-80px;
  width:360px;
  height:280px;
  background:url("../assets/tile-network_v2.png") no-repeat;
  background-size:cover;
  background-position:top right;
  opacity:.34;
  pointer-events:none;
  z-index:0;
}

/* Kill any legacy pseudo overlays */
.course-card::before,
.course-card::after{
  content:none !important;
  display:none !important;
  background:none !important;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:980px){
  .header-inner{
    height:auto;
    padding:14px 0;
    flex-wrap:wrap;
    justify-content:center;
  }
  .nav{flex-wrap:wrap;justify-content:center}
  .hero{min-height:auto;padding:42px 0 18px}
  .hero-band{background-position:78% 18%}
  .card-grid{grid-template-columns:1fr}
  .card-art{top:-92px;right:-110px;width:420px;height:320px;opacity:.32}
}

@media (max-width:520px){
  .container{width:calc(100% - 28px)}
  .h1{font-size:40px}
  .h2{font-size:22px}
}

/* Matches header rhythm via .container wrapper in HTML */

/* =========================
   FOOTER — Yale alignment (FINAL)
   Uses container rhythm only. No centering logic.
   Requires markup: <div class="container site-footer__inner"> ... </div>
   ========================= */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  padding: 24px 0;
  text-align: left;
}

/* Container already defines width + gutters */
.site-footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

/* Left block: flush-left with body text */
.site-footer__left{
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  margin-right: auto;
}

/* Right block: flush-right with header CTAs */
.site-footer__right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;

  margin-left: auto;
}

/* Links */
.site-footer a{
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .sep{
  margin: 0 6px;
  opacity: 0.6;
}

/* Mobile: stack, maintain left rhythm */
@media (max-width: 680px){
  .site-footer__inner{
    flex-wrap: wrap;
  }

  .site-footer__right{
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .site-footer__left,
  .site-footer__right{
    white-space: normal;
  }
}
