:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5f6773;
  --border: #e3e0d8;
  --accent: #1d4f91;
  --accent-dark: #163d71;
  --shadow: 0 10px 30px rgba(20, 25, 40, 0.08);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

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

/* Top navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(248, 247, 244, 0.92);
  border-bottom: 1px solid rgba(227, 224, 216, 0.9);
}

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

.site-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.site-brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.main-content {
  padding: 42px 0 72px 0;
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 42px;
  margin-bottom: 36px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.3rem);
  line-height: 1.05;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.affiliation {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.03rem;
}

.hero p {
  font-size: 1.08rem;
  margin: 0 0 18px 0;
}

/* Link buttons under intro text */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fbfbfa;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1;
}

.links a:hover {
  text-decoration: none;
  border-color: #c9d6e9;
  background: #f3f7fc;
  color: var(--accent-dark);
}

.photo-box {
  display: flex;
  justify-content: center;
}

.photo-box img {
  width: min(100%, 310px);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

/* General cards */
.section-card,
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

section {
  margin-bottom: 30px;
}

section > h2,
.feature h2 {
  margin-top: 0;
}

.section-card {
  padding: 28px 30px;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 14px 0;
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

p {
  margin: 0 0 16px 0;
}

hr {
  display: none;
}

.news-list,
ul {
  padding-left: 20px;
  margin: 0;
}

li {
  margin-bottom: 10px;
}

.small-note {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Feature section with image on right */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
}

.feature img {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Standard video block: text + one video */
.video-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  margin-bottom: 22px;
  background: #eef3fb;
  border: 1px solid #d7dfef;
  border-radius: 16px;
}

.video-box {
  padding: 0;
  border-radius: 16px;
  background: transparent;
}

.video-box video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d7dfef;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 25, 40, 0.06);
}

/* Make all captions centered */
.video-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* 2x2 gallery for related videos */
.video-gallery-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.video-gallery-item {
  background: #f7f9fd;
  border: 1px solid #d7dfef;
  border-radius: 14px;
  padding: 10px;
}

.video-gallery-item video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d7dfef;
  background: #fff;
  box-shadow: 0 6px 14px rgba(20, 25, 40, 0.05);
}

.video-gallery-item .video-caption {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* Old right-side stacked video layout */
.video-block-double {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: start;
}

.video-stack {
  display: grid;
  gap: 18px;
}

.video-stack .video-box {
  padding: 0;
  border-radius: 16px;
  background: transparent;
}

/* New layout: full-width text, videos below */
.video-block-stacked {
  display: block;
}

.video-text-full {
  margin-bottom: 18px;
}

.video-pair-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-pair-row .video-box {
  padding: 0;
  border-radius: 16px;
  background: transparent;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #f3f1ec;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 40px 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.page-heading {
  font-size: 2.5rem;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.content-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.video-rotator {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-rotator video {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Tablet / medium screens */
@media (max-width: 920px) {
  .header-inner,
  .footer-inner,
  .hero,
  .feature,
  .video-block {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 30px 24px;
  }

  .feature,
  .video-block,
  .section-card,
  .content-page {
    padding: 24px;
  }

  .photo-box {
    justify-content: flex-start;
  }
}

/* Small screens */
@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .main-content {
    padding-top: 26px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.93rem;
  }

  .video-gallery-row,
  .video-pair-row {
    grid-template-columns: 1fr;
  }
}
