:root {
  --ink: #17242b;
  --muted: #5b6b73;
  --blue: #156780;
  --blue-dark: #0b4f66;
  --blue-soft: #e8f2f5;
  --orange: #d96b2b;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --line: #dce5e8;
  --shadow: 0 16px 45px rgba(12, 57, 71, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  color: white;
  background: var(--blue-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 10%, rgba(21, 103, 128, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff 48%, #edf5f7);
}

.header-main {
  min-height: 390px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  padding-block: 54px;
}

.brand-logo {
  width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(11, 79, 102, 0.12));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  color: var(--blue-dark);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  letter-spacing: -0.055em;
}

h1 span { color: var(--orange); }
h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; }
h3 { margin-bottom: 8px; font-size: 1.08rem; }

.header-intro { max-width: 690px; margin-bottom: 0; color: var(--muted); font-size: 1.18rem; }

.institutional-band { padding-block: 20px; background: rgba(255, 255, 255, 0.86); border-top: 1px solid var(--line); }
.institutional-band img { width: min(760px, 100%); margin-inline: auto; }

.access-strip { padding-block: 38px; color: white; background: var(--blue-dark); }
.access-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.access-strip .eyebrow { color: #a9dbe8; }
.access-strip h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 8px; }
.access-strip p { margin-bottom: 0; }
.access-actions { min-width: 280px; text-align: right; }
.identity { margin-bottom: 12px !important; color: #d8e9ee; font-size: 0.92rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, .close-button:focus-visible { outline: 3px solid #f3b48e; outline-offset: 3px; }
.button-primary { color: var(--blue-dark); background: #ffffff; }
.register-dialog .button-primary { color: #ffffff; background: var(--blue-dark); }
.button-secondary { color: var(--ink); background: var(--soft); border-color: var(--line); }
.button-text { color: #d8e9ee; background: transparent; }

.content-section { padding-block: 86px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 500px); gap: 46px; align-items: end; margin-bottom: 42px; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }

.level-block + .level-block { margin-top: 48px; }
.level-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.level-number { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--blue); border-radius: 50%; font-weight: 800; }
.level-heading h3 { margin: 0; font-size: 1.28rem; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(12, 57, 71, 0.05);
}
.resource-card:hover { border-color: #a8cbd5; box-shadow: var(--shadow); }
.resource-type { margin-bottom: 18px; color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.resource-card p { margin-bottom: 20px; color: var(--muted); font-size: 0.94rem; }
.resource-link { align-self: flex-start; margin-top: auto; padding: 0; color: var(--blue-dark); background: none; border: 0; font-weight: 850; }
.resource-link::after { content: "  →"; }

.videos-section { background: var(--soft); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.video-cover { min-height: 145px; display: grid; place-items: center; position: relative; background: linear-gradient(145deg, var(--blue-dark), var(--blue)); }
.video-cover::before, .video-cover::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.video-cover::before { width: 180px; height: 180px; right: -50px; top: -95px; }
.video-cover::after { width: 120px; height: 120px; left: -36px; bottom: -70px; }
.play-mark { z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; color: var(--blue-dark); background: white; border-radius: 50%; font-size: 1.3rem; }
.video-body { min-height: 170px; display: flex; flex-direction: column; padding: 22px; }
.video-body .resource-link { margin-top: auto; }
.video-card.pending { opacity: 0.76; }
.video-card.pending .video-cover { background: linear-gradient(145deg, #63757d, #92a1a7); }
.pending-label { margin-top: auto; color: var(--muted); font-weight: 750; }

.site-footer { padding-block: 30px; color: #d8e9ee; background: #0a3544; }
.footer-layout { display: flex; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; font-size: 0.9rem; }
.site-footer a { color: #ffffff; font-weight: 750; }

.register-dialog { width: min(680px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25); }
.register-dialog::backdrop { background: rgba(5, 31, 39, 0.74); backdrop-filter: blur(4px); }
.register-dialog form { padding: 30px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin-bottom: 0; font-size: 2rem; }
.close-button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--muted); background: var(--soft); font-size: 1.7rem; line-height: 1; }
.dialog-intro { margin-block: 14px 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-size: 0.9rem; font-weight: 750; }
label span { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"] { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid #bbc9ce; border-radius: 10px; }
.consent-row { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; margin-top: 22px; font-weight: 500; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.consent-row a { color: var(--blue-dark); font-weight: 750; }
.honeypot { position: absolute !important; left: -9999px !important; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.form-message { min-height: 24px; margin: 16px 0 0; color: #a33b18; font-size: 0.9rem; font-weight: 700; }

.privacy-page { background: var(--soft); }
.privacy-header { padding-block: 32px; background: white; border-bottom: 1px solid var(--line); }
.privacy-brand { display: flex; align-items: center; gap: 24px; }
.privacy-brand img { width: 92px; height: 92px; object-fit: contain; }
.privacy-brand h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); }
.privacy-main { max-width: 820px; padding-block: 58px 76px; }
.privacy-main h2 { margin: 38px 0 10px; font-size: 1.55rem; letter-spacing: -0.02em; }
.privacy-main a { color: var(--blue-dark); font-weight: 750; }
.back-link { display: inline-block; margin-bottom: 34px; text-decoration: none; }
.privacy-note { margin-top: 42px; padding: 22px; background: var(--blue-soft); border-radius: 14px; }

@media (max-width: 860px) {
  .header-main { grid-template-columns: 150px 1fr; min-height: 330px; gap: 34px; }
  .brand-logo { width: 150px; }
  .access-layout, .section-heading { grid-template-columns: 1fr; }
  .access-actions { text-align: left; }
  .resource-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1140px); }
  .header-main { grid-template-columns: 1fr; min-height: auto; padding-block: 34px; text-align: center; }
  .brand-logo { width: 118px; margin-inline: auto; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .header-intro { font-size: 1rem; }
  .institutional-band { padding-block: 14px; }
  .content-section { padding-block: 60px; }
  .resource-grid, .video-grid, .form-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; margin-bottom: 30px; }
  .footer-layout { flex-direction: column; }
  .register-dialog form { padding: 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .privacy-brand { align-items: flex-start; }
  .privacy-brand img { width: 70px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
