:root {
  --navy: #173653;
  --navy-deep: #10283f;
  --blue-soft: #e8f0fa;
  --blue-mid: #c8d9ee;
  --ink: #1d2b39;
  --muted: #5b6c7e;
  --red: #c72732;
  --paper: #f7f9fc;
  --line: #dbe4ee;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: #1d5c97; }
a:hover { color: var(--red); }
.skip-link { position: absolute; z-index: 2000; top: -100px; left: 1rem; padding: .65rem 1rem; color: white; background: var(--navy-deep); border-radius: .35rem; }
.skip-link:focus { top: 1rem; }
.brand-band { background: linear-gradient(120deg, #b5cdfb 0%, #dbe8fb 58%, #c2d5f1 100%); border-top: 5px solid var(--navy-deep); }
.brand-link { display: inline-block; max-width: 100%; }
.brand-wordmark { display: block; width: min(820px, 87vw); height: auto; margin: 0 auto; }
.brand-caption { margin-top: .25rem; color: #304761; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { z-index: 1020; background: var(--navy); box-shadow: 0 5px 18px rgba(13, 35, 57, .16); }
.site-nav .navbar-nav { gap: .15rem; }
.site-nav .nav-link { padding: .82rem .85rem; color: rgba(255,255,255,.87); font-size: .94rem; font-weight: 600; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active { box-shadow: inset 0 -3px var(--red); }
.programme-link { margin: .35rem .35rem .35rem .7rem; padding: .55rem .85rem !important; color: white !important; background: var(--red); border-radius: 999px; }
.programme-link:hover { background: #a91f29; }
.hero-banner { position: relative; display: flex; align-items: center; min-height: 520px; overflow: hidden; color: white; background: var(--navy) url('../images/marbella-aortic-hero.webp') center 52% / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,34,55,.78), rgba(20,52,80,.53) 53%, rgba(18,48,73,.08)); }
.hero-content { padding-top: 5rem; padding-bottom: 5rem; }
.hero-content h1 { max-width: 820px; margin: 0 0 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5vw, 4.65rem); font-weight: 700; line-height: 1.07; letter-spacing: -.025em; text-wrap: balance; }
.eyebrow { margin-bottom: .75rem; color: #dfeaf7; font-size: .77rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.text-red { color: var(--red); }
.hero-subtitle { margin-bottom: .75rem; color: #ffe7e8; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; }
.hero-note { max-width: 620px; color: rgba(255,255,255,.92); font-size: 1.08rem; }
.hero-button { margin-top: .8rem; padding: .75rem 1.25rem; color: var(--navy); font-weight: 700; border: 0; border-radius: 999px; }
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.section-pad-sm { padding-top: 2.1rem; padding-bottom: 2.1rem; }
.intro-section { background: var(--paper); }
h2, h3 { color: var(--navy-deep); font-family: Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1.2; }
h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
.lead-copy { margin-top: 1.5rem; color: var(--navy); font-weight: 700; }
.archive-card, .content-card, .download-card, .legal-card, .faculty-card { padding: clamp(1.35rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 12px 32px rgba(21, 53, 83, .07); }
.archive-card { border-top: 4px solid var(--red); }
.archive-card h3 { margin-bottom: 1.5rem; }
.detail-list { display: grid; gap: 1rem; }
.detail-list div { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detail-list dd { margin: .2rem 0 0; font-weight: 600; }
.closing-band { color: white; background: var(--navy); }
.closing-band .eyebrow { color: #f1a9ad; }
.text-link-light { color: white; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link-light:hover { color: #ffdadd; }
.page-heading { padding: 4.2rem 0 2.8rem; background: linear-gradient(110deg, var(--blue-soft), #f7f9fc 75%); }
.page-heading h1 { margin-bottom: .75rem; color: var(--navy-deep); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.25rem, 4vw, 3.65rem); font-weight: 700; line-height: 1.1; }
.page-heading .lead { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; }
.section-kicker, .download-type { display: block; margin-bottom: .5rem; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.content-card h2 { margin-bottom: 1rem; }
.venue-panel { padding: clamp(1.7rem, 3vw, 2.4rem); color: white; background: linear-gradient(145deg, #244b70, var(--navy-deep)); border-radius: 1rem; }
.venue-panel h3 { color: white; font-size: 1.65rem; }
.venue-panel .eyebrow { color: #f1a9ad; }
.venue-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: 1.2rem; place-items: center; color: var(--navy); background: #d8e6f7; border-radius: 50%; font-size: 1.75rem; }
.venue-rule { height: 1px; margin: 1.5rem 0; background: rgba(255,255,255,.25); }
.plain-list { padding-left: 1.15rem; }
.plain-list li + li { margin-top: .5rem; }
.faculty-card { height: 100%; padding: 0; overflow: hidden; }
.faculty-heading { padding: 1.5rem 1.8rem 1.1rem; background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.faculty-heading h2 { margin-bottom: 0; font-size: 1.8rem; }
.faculty-list { display: grid; grid-template-columns: 1fr; gap: .05rem; margin: 0; padding: 1.2rem 1.8rem 1.8rem; list-style: none; }
.faculty-list li { padding: .38rem 0; border-bottom: 1px solid #edf1f6; font-size: .96rem; line-height: 1.45; }
.faculty-list li:last-child { border-bottom: 0; }
.deadline-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; padding: 1rem 1.3rem; color: var(--navy); background: #fff2f2; border: 1px solid #f4c8cb; border-left: 5px solid var(--red); border-radius: .7rem; }
.deadline-label { color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.deadline-banner strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.download-card h2 { margin-bottom: 0; font-size: 1.65rem; }
.download-card p { flex: 1; margin-bottom: .5rem; color: var(--muted); }
.download-card .btn { border-radius: 999px; font-weight: 700; }
.publication-note { padding: 1.4rem 1.6rem; background: #fff; border-left: 4px solid var(--blue-mid); border-radius: .5rem; }
.publication-note .eyebrow { margin-bottom: .4rem; }
.cme-panel { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 12px 32px rgba(21, 53, 83, .07); }
.cme-panel h2 { margin-bottom: .65rem; }
.cme-panel p { max-width: 850px; }
.cme-seal { display: grid; width: 4.5rem; height: 4.5rem; place-items: center; color: white; background: var(--navy); border: 5px solid #dae7f5; border-radius: 50%; font-size: .82rem; font-weight: 800; }
.credit-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.credit-row div { display: flex; min-width: 140px; flex-direction: column; padding: .8rem 1rem; background: var(--blue-soft); border-radius: .65rem; }
.credit-row strong { color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; line-height: 1.1; }
.credit-row span { color: var(--muted); font-size: .85rem; }
.section-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.section-title-row h2 { margin-bottom: 0; }
.section-intro { max-width: 490px; margin-bottom: .15rem; color: var(--muted); }
.society-card { display: flex; min-height: 110px; align-items: center; gap: .9rem; height: 100%; padding: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: .75rem; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.society-card:hover { color: var(--ink); border-color: #a8c1db; box-shadow: 0 8px 22px rgba(21,53,83,.1); transform: translateY(-2px); }
.society-mark { display: grid; width: 3.25rem; height: 3.25rem; flex: 0 0 3.25rem; place-items: center; color: var(--navy); background: var(--blue-soft); border-radius: .7rem; font-size: .68rem; font-weight: 800; text-align: center; }
.society-card strong, .society-card small { display: block; }
.society-card strong { color: var(--navy-deep); }
.society-card small { margin-top: .2rem; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.external-arrow { margin-left: auto; color: var(--red); font-weight: 700; }
.legal-card { max-width: 900px; margin: 0 auto; }
.legal-card h2 { margin-top: 2rem; font-size: 1.45rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-details { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: .65rem 1.25rem; margin: 1.25rem 0 2rem; }
.legal-details div { display: contents; }
.legal-details dt { color: var(--muted); font-weight: 700; }
.legal-details dd { margin: 0; }
.legal-updated { margin-top: 2rem; color: var(--muted); font-size: .86rem; }
.site-footer { color: rgba(255,255,255,.86); background: var(--navy-deep); font-size: .91rem; }
.site-footer a { color: white; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer a:hover { color: #ffdadd; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }

@media (max-width: 991.98px) {
  .site-nav .navbar-nav { align-items: stretch !important; padding: .45rem 0 .8rem; }
  .site-nav .nav-link { padding: .65rem .25rem; }
  .site-nav .nav-link.active { box-shadow: none; color: #ffdadd; }
  .programme-link { display: inline-block; width: fit-content; margin: .45rem 0 .2rem; padding: .55rem .9rem !important; }
}
@media (max-width: 575.98px) {
  .hero-banner { min-height: 500px; background-position: 40% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(13,34,55,.83), rgba(20,52,80,.58)); }
  .hero-content { padding-top: 3.4rem; padding-bottom: 3.4rem; }
  .section-pad { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .page-heading { padding-top: 3rem; padding-bottom: 2rem; }
  .cme-panel { grid-template-columns: 1fr; }
  .legal-details { grid-template-columns: 1fr; gap: .15rem; }
  .legal-details dd { margin-bottom: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
