/* =============================================================
   Results Page — Meta-Analysis Academy
   Page-specific overrides. Global marquee/logos classes come
   from ../css/style.css so behavior matches the rest of the site.
   ============================================================= */

html { scroll-behavior: smooth; font-size: 16px; }

body { background: #ffffff; overflow-x: hidden; }

/* Fluid root scaling — all rem values shrink proportionally on smaller laptops.
   16px at ≥1920, ~14.5px at 1440, ~13px at 1280, ~12px at 1024 */
@media (min-width: 1024px) and (max-width: 1919px) {
  html { font-size: calc(0.5vw + 6.4px); }
}
@media (max-width: 1023px) and (min-width: 641px) {
  html { font-size: 13px; }
}

/* ---------- Shared section container (proportional side margins) ---------- */
.results-section-container {
  max-width: min(80rem, 62vw);
}
@media (max-width: 1023px) {
  .results-section-container,
  .results-stats__container,
  .countries-container,
  .stories-container { max-width: 100%; }
}

/* ---------- Shared section title (clamp-scaled) ---------- */
.results-section-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}
.results-section-title--dark { color: #111827; }
.results-hero-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.8125rem);
  font-weight: 300;
}

/* ---------- Hero ---------- */
.results-hero {
  min-height: 100vh;
  padding-top: 12rem;
  padding-bottom: 6rem;
}
.results-hero-content {
  padding-left: 6rem;
  padding-right: 1.5rem;
}
@media (max-width: 1023px) {
  .results-hero { min-height: 60vh; padding-top: 8rem; padding-bottom: 3rem; }
}
@media (max-width: 640px) {
  .results-hero { min-height: 52vh; padding-top: 6rem; padding-bottom: 2.5rem; }
  .results-hero-content br { display: none; }
}

.results-hero-title {
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
}

@media (min-width: 1920px) {
  .results-hero-content { padding-left: 8rem; }
  .results-hero-title { font-size: 4.5rem; }
}

@media (max-width: 640px) {
  .results-hero-content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .results-hero-sub { font-size: 1rem; margin-top: 1rem !important; }
}

/* ---------- Stats section (100+ countries reached) ---------- */
.results-stats {
  background:
    linear-gradient(to bottom, rgba(10,22,40,0) 55%, rgba(10,22,40,.75) 85%, #0a1628 100%),
    url('img/bg_countries.png') center/cover no-repeat,
    #0a1628;
  color: #fff;
  padding: 6rem 0;
  position: relative;
}
.results-stats__container {
  max-width: min(1400px, 78vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.results-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: center;
}
.results-stats__number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.results-stats__description {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 500px;
}
.results-stats__items {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}
.results-stats__item { display: flex; flex-direction: column; }
.results-stats__value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: .25rem;
}
.results-stats__label {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
}
.results-stats__image {
  aspect-ratio: 5 / 3;
  width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(.96);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
  background: transparent;
}
.results-stats__image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.results-stats__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  image-orientation: from-image;
}
@media (max-width: 768px) {
  .results-stats { padding: 4rem 0; }
  .results-stats__container { padding: 0 .875rem; max-width: 100%; }
  .results-stats__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .results-stats__content { width: 100%; }
  .results-stats__number { font-size: clamp(3rem, 13vw, 4.75rem); line-height: 1.05; }
  .results-stats__description { font-size: 1.35rem; line-height: 1.55; max-width: 100%; }
  .results-stats__items { gap: 2.5rem; }
  .results-stats__value { font-size: clamp(2.75rem, 12vw, 4rem); }
  .results-stats__label { font-size: 1.15rem; line-height: 1.45; }
}
@media (max-width: 480px) {
  .results-stats__container { padding: 0 .75rem; }
  .results-stats__number { font-size: clamp(2.75rem, 14vw, 4rem); }
  .results-stats__description { font-size: 1.25rem; }
  .results-stats__value { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .results-stats__label { font-size: 1.1rem; }
  .results-stats__items { gap: 1.75rem; }
}

/* ---------- Impact Across All Medical Specialties ---------- */
.impact-section {
  background: #ffffff;
  padding: 4rem 0 3rem;
}
.impact-container {
  max-width: min(72rem, 78vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.impact-header { text-align: center; margin-bottom: 2.5rem; }
.impact-title {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0a1e3f;
  margin: 0 0 0.75rem;
}
.impact-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.375rem);
  color: #9ca3af;
  margin: 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
  position: relative;
}
.impact-card {
  background: linear-gradient(135deg, #0a1e3f 0%, #1e3a73 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 12px 40px rgba(10, 30, 63, 0.18);
  display: flex;
  align-items: center;
}
.impact-card p {
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.impact-text {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}
.impact-text p {
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 1023px) {
  .impact-container { max-width: 100%; }
}
@media (max-width: 768px) {
  .impact-section { padding: 3rem 0 2rem; }
  .impact-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .impact-card { padding: 1.5rem 1.5rem; }
  .impact-title br { display: none; }
}

/* ---------- Final CTA (waitlist) ---------- */
.results-final-cta {
  background: #0d1628;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.results-final-cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.results-final-cta p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.results-final-cta .cta-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Specialist Network (specialty slider) ---------- */
.specialties-section {
  background: #ffffff;
  padding: 6rem 0;
}
.specialties-container {
  max-width: min(1600px, 92vw);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.specialties-logo {
  display: block;
  margin: 0 auto 3rem;
  max-width: 420px;
  width: 100%;
  height: auto;
}
.specialties-slider {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}
.specialties-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.specialties-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  display: block;
  aspect-ratio: 600 / 420;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  transition: transform .3s ease;
}
.specialties-slide:hover { transform: translateY(-4px); }
.specialties-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
}
@media (max-width: 900px) {
  .specialties-slide { flex-basis: calc((100% - 1rem) / 2); }
}
@media (max-width: 560px) {
  .specialties-track { gap: .75rem; }
  .specialties-slide { flex-basis: 100%; }
}
.specialties-arrow {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0a1e3f;
  border: 1px solid #0a1e3f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.specialties-arrow:hover {
  background: #1e3a73;
  transform: scale(1.05);
}
.specialties-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1000px;
  margin: 1.75rem auto 0;
  width: 100%;
}
.specialties-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  flex: 1;
}
.specialties-arrows {
  display: flex;
  gap: .75rem;
  flex: 0 0 auto;
}
.specialties-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 30, 63, .25);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.specialties-dots button.is-active {
  background: #0a1e3f;
  transform: scale(1.25);
}
@media (max-width: 1023px) {
  .specialties-container { max-width: 100%; }
  .specialties-logo { max-width: 320px; }
  .specialties-arrow { width: 48px; height: 48px; }
}
@media (max-width: 768px) {
  .specialties-section { padding: 4rem 0; }
  .specialties-logo { max-width: 260px; margin-bottom: 2rem; }
  .specialties-arrow { width: 40px; height: 40px; }
  .specialties-arrow svg { width: 18px; height: 18px; }
  .specialties-track { border-radius: .75rem; }
  .specialties-controls { margin-top: 1.25rem; gap: .75rem; }
  .specialties-dots { gap: .4rem; }
  .specialties-dots button { width: 7px; height: 7px; }
}
@media (max-width: 480px) {
  .specialties-arrow { width: 36px; height: 36px; }
  .specialties-arrow svg { width: 16px; height: 16px; }
  .specialties-arrows { gap: .5rem; }
}

/* ---------- Video Testimonials (Framer-style) ---------- */
.videos-section {
  background: #0a1628;
  padding: 6rem 0;
}
.videos-container {
  max-width: min(1300px, 68vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.videos-title {
  color: #fff;
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 3rem 0;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.video-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.video-caption {
  text-align: center;
  margin-top: .85rem;
  padding: 0 .5rem;
}
.video-caption__name {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.video-caption__role {
  display: block;
  color: #9fb3cf;
  font-weight: 400;
  font-size: .85rem;
  line-height: 1.35;
  margin-top: .15rem;
}
.video-card__thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .4s ease;
}
.video-card:hover .video-card__thumb { transform: scale(1.04); }
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 30, 63, .78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  padding-left: 4px;
}
.video-card:hover .video-card__play {
  background: #0a1e3f;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.video-card.is-playing .video-card__thumb,
.video-card.is-playing .video-card__play { display: none; }
@media (max-width: 1023px) {
  .videos-container { max-width: 100%; }
}
@media (max-width: 768px) {
  .videos-section { padding: 4rem 0; }
  .videos-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 420px; margin: 0 auto; }
  .videos-title { font-size: 1.75rem; margin-bottom: 2rem; }
  .video-card { aspect-ratio: 16 / 9; }
  .video-card__play { width: 60px; height: 60px; }
}

/* ---------- Impact at Every Stage of The Medical Journey ---------- */
.journey-section {
  background: #ffffff;
  padding: 6rem 0;
}
.journey-container {
  max-width: min(1300px, 68vw);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.journey-header { margin-bottom: 3rem; }
.journey-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0a1e3f;
  margin: 0 0 1rem;
}
.journey-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: #9ca3af;
  margin: 0 0 1.5rem;
}
.journey-divider {
  width: 120px;
  height: 1px;
  background: #d1d5db;
  margin: 0 auto 2rem;
}
.journey-text {
  color: #4b5563;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto .75rem;
}
.journey-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-track {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-areas: "slide";
  background: transparent;
  margin: 0 auto;
}
.journey-slide {
  grid-area: slide;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.journey-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.journey-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.journey-arrow {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0a1e3f;
  border: 1px solid #0a1e3f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.journey-arrow:hover {
  background: #1e3a73;
  transform: scale(1.05);
}
.journey-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1000px;
  margin: 1.75rem auto 0;
  width: 100%;
}
.journey-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  flex: 1;
}
.journey-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 30, 63, .25);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.journey-dots button.is-active {
  background: #0a1e3f;
  transform: scale(1.25);
}
.journey-arrows {
  display: flex;
  gap: .75rem;
  flex: 0 0 auto;
}
@media (max-width: 1023px) {
  .journey-container { max-width: 100%; }
  .journey-arrow { width: 48px; height: 48px; }
}
@media (max-width: 768px) {
  .journey-section { padding: 4rem 0; }
  .journey-header { margin-bottom: 2rem; }
  .journey-title br { display: none; }
  .journey-arrow { width: 40px; height: 40px; }
  .journey-arrow svg { width: 18px; height: 18px; }
  .journey-track { border-radius: .75rem; }
  .journey-controls { margin-top: 1.25rem; gap: .75rem; }
  .journey-dots { gap: .4rem; }
  .journey-dots button { width: 7px; height: 7px; }
}
@media (max-width: 480px) {
  .journey-arrow { width: 36px; height: 36px; }
  .journey-arrow svg { width: 16px; height: 16px; }
  .journey-arrows { gap: .5rem; }
}

/* ---------- U.S. Residency Matches (alumni marquee, white bg) ---------- */
.residency-section {
  background: #ffffff;
  padding: 6rem 0 5rem;
}
.residency-container {
  max-width: min(80rem, 62vw);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.residency-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: #111827;
  margin: 0 0 3rem;
}
.residency-marquee {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  overflow: hidden;
}
.residency-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 1rem 0;
  will-change: transform;
}
.residency-track--left { animation: marquee-left 60s linear infinite; }
.residency-card {
  flex: 0 0 320px;
  overflow: hidden;
  transition: transform .3s ease;
}
.residency-card:hover { transform: translateY(-5px); }
.residency-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}
@media (max-width: 1023px) {
  .residency-container { max-width: 100%; }
}
@media (max-width: 768px) {
  .residency-section { padding: 4rem 0 3rem; }
  .residency-card { flex: 0 0 240px; }
  .residency-track--left { animation-duration: 40s; }
}
@media (max-width: 480px) {
  .residency-card { flex: 0 0 200px; }
}

/* ---------- Inspiring Stories (single-card carousel) ---------- */
.stories-section {
  background: #0a1628;
  color: #fff;
  padding: 6rem 0;
}
.stories-container {
  max-width: min(1200px, 62vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.stories-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  margin: 0 0 3rem;
  color: #fff;
}
.stories-slider {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}
.stories-track {
  position: relative;
  width: 100%;
  max-width: min(900px, 68vw);
  min-height: clamp(520px, 45vw, 640px);
}
.stories-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.stories-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.stories-hero {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  background: rgba(255,255,255,.05);
}
.stories-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: #fff;
}
.stories-text p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 .9rem;
}
.stories-text em { color: rgba(255,255,255,.9); }
.stories-text strong { color: #fff; }
.stories-arrow {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  align-self: center;
}
.stories-arrow:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.05);
}
.stories-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 2rem;
}
.stories-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.stories-dots button.is-active {
  background: #fff;
  transform: scale(1.25);
}
@media (max-width: 1024px) {
  .stories-title { font-size: 56px; }
  .stories-arrow { width: 48px; height: 48px; }
}
@media (max-width: 768px) {
  .stories-section { padding: 4rem 0; }
  .stories-container { padding: 0 1rem; max-width: 100%; }
  .stories-title { font-size: 40px; margin-bottom: 2.5rem; }
  .stories-slider {
    gap: 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "track  track  track"
      ".      prev   next";
    row-gap: 1rem;
    align-items: start;
    justify-content: stretch;
  }
  .stories-track { grid-area: track; max-width: 100%; width: 100%; min-height: 0; }
  .stories-hero { max-height: none; width: 100%; height: auto; border-radius: 1rem; }
  .stories-name { font-size: 1.85rem; margin: 1.5rem 0 1rem; }
  .stories-text p { font-size: 1.125rem; line-height: 1.7; }
  .stories-arrow { width: 46px; height: 46px; position: static; align-self: center; }
  .stories-arrow--prev { grid-area: prev; margin-right: .5rem; }
  .stories-arrow--next { grid-area: next; }
  .stories-arrow svg { width: 20px; height: 20px; }
  .stories-dots { margin-top: 1.75rem; }
}
@media (max-width: 480px) {
  .stories-container { padding: 0 .875rem; }
  .stories-title { font-size: 32px; margin-bottom: 2rem; }
  .stories-name { font-size: 1.625rem; }
  .stories-text p { font-size: 1.05rem; line-height: 1.65; }
  .stories-arrow { width: 42px; height: 42px; }
  .stories-arrow svg { width: 18px; height: 18px; }
}

/* ---------- Publications From All Over The World (static slider) ---------- */
.countries-section {
  background: #0a1628;
  color: #fff;
  padding: 6rem 0;
}
.countries-container {
  max-width: min(1300px, 68vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.countries-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  margin: 0 0 3rem;
  color: #fff;
}
.countries-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.countries-track {
  position: relative;
  width: 100%;
  max-width: min(1000px, 70vw);
  aspect-ratio: 600 / 300;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.countries-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  display: block;
  pointer-events: none;
}
.countries-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.countries-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.countries-arrow {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.countries-arrow:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.05);
}
.countries-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.countries-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.countries-dots button.is-active {
  background: #fff;
  transform: scale(1.25);
}
@media (max-width: 1024px) {
  .countries-title { font-size: 56px; }
  .countries-track { max-width: 760px; border-radius: 1rem; }
  .countries-arrow { width: 48px; height: 48px; }
  .countries-slider { gap: 1rem; }
}
@media (max-width: 768px) {
  .countries-section { padding: 4rem 0; }
  .countries-container { padding: 0 1rem; max-width: 100%; }
  .countries-title { font-size: 40px; margin-bottom: 2.5rem; }
  .countries-slider {
    gap: 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "track  track  track"
      ".      prev   next";
    row-gap: 1rem;
    align-items: start;
    justify-content: stretch;
  }
  .countries-track { grid-area: track; max-width: 100%; width: 100%; aspect-ratio: 4 / 3; border-radius: 1rem; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
  .countries-slide img { object-fit: contain; background: #0a1628; }
  .countries-arrow { width: 46px; height: 46px; position: static; align-self: center; }
  .countries-arrow--prev { grid-area: prev; margin-right: .5rem; }
  .countries-arrow--next { grid-area: next; }
  .countries-arrow svg { width: 20px; height: 20px; }
  .countries-dots { margin-top: 1.75rem; gap: .5rem; }
  .countries-dots button { width: 9px; height: 9px; }
}
@media (max-width: 480px) {
  .countries-container { padding: 0 .875rem; }
  .countries-title { font-size: 32px; margin-bottom: 2rem; }
  .countries-track { aspect-ratio: 1 / 1; }
  .countries-arrow { width: 42px; height: 42px; }
  .countries-arrow svg { width: 18px; height: 18px; }
}

/* ---------- Influential publications marquee (rectangular horizontal) ---------- */
.influential-marquee { margin-top: 1rem; }
.influential-marquee .marquee-track { align-items: center; }
.influential-card {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  display: block;
  background: transparent;
  transition: transform .3s ease;
  cursor: pointer;
}
.influential-card img {
  display: block;
  height: clamp(200px, 18vw, 260px);
  width: auto;
  max-width: none;
  min-width: 0;
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(10, 30, 63, 0.08);
  transition: filter .35s ease, transform .35s ease;
}
.influential-card .influential-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-align: center;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.influential-card:hover {
  transform: translateY(-4px);
}
.influential-card:hover img {
  filter: blur(6px) brightness(.85);
  transform: scale(1.03);
}
.influential-card:hover .influential-overlay { opacity: 1; }

@media (max-width: 1024px) {
  .influential-card img { height: 200px; }
}
@media (max-width: 640px) {
  .influential-card img { height: 170px; }
  .influential-card .influential-overlay { font-size: .95rem; }
}

/* ---------- Publication previews (full paper screenshots) ---------- */
.publication-preview {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: #ffffff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.publication-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.publication-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Story cards (inspiring stories) ---------- */
.story-card {
  transition: transform .3s ease, border-color .3s ease;
}
.story-card:hover {
  border-color: rgba(45, 79, 161, 0.4);
  transform: translateY(-3px);
}

/* ---------- Residency cards ---------- */
.residency-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.residency-card:hover {
  transform: translateY(-4px);
}

/* ---------- Specialty tags ---------- */
.specialty-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: rgba(45, 79, 161, 0.15);
  border: 1px solid rgba(45, 79, 161, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color .2s ease, border-color .2s ease;
}
.specialty-tag:hover {
  background: rgba(45, 79, 161, 0.28);
  border-color: rgba(45, 79, 161, 0.55);
}

/* ---------- Marquee (results carousel) sizing on this page ---------- */
.section-marquee .result-card {
  flex: 0 0 320px;
  border-radius: 1rem;
  overflow: hidden;
}
.section-marquee .result-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 640px) {
  .section-marquee .result-card { flex: 0 0 240px; }
}

/* ---------- Section transitions ---------- */
section { position: relative; }
