/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: #f8f5f2;
  color: #1a1a1a;
  padding-top: 60px; /* Space for fixed nav */
}

html {
}
@media (prefers-reduced-motion: no-preference) {
  html {
  }
}

/* Page Transition Animation */
body {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
body.fade-out {
  opacity: 0;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #7a0019;
  border-bottom: 1px solid #630013;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav .nav-content {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.top-nav .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.top-nav .nav-links {
  display: flex;
  gap: 20px;
}

.top-nav .nav-links a {
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.top-nav .nav-links a:hover {
  color: #c9a227;
  opacity: 0.8;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background-color: #7a0019;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.header h1 {
  margin: 0 0 10px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.intro {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.9;
}

.header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #c9a227;
  margin: 20px auto 0;
}

/* FUNDING */
.funding {
  margin-top: 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HERO IMAGE
   ============================================================ */
.hero-image {
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.credit {
  font-size: 0.75rem;
  color: #999;
  margin: 6px 0 0;
  font-style: italic;
  padding-bottom: 6px;
}

/* ============================================================
   TABS / NAVIGATION BUTTONS
   ============================================================ */
.tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  margin: 30px auto;
  flex-wrap: wrap;
  padding: 0 20px;
}

.tabs button {
  width: 260px;
  min-height: 130px;
  padding: 30px 20px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  font-family: inherit;
}

.tabs button span {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #7a0019;
  margin-bottom: 8px;
}

.tabs button small {
  display: block;
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.tabs button:hover,
.tabs button.active {
  border-color: #c9a227;
  transform: translateY(-5px);
  background: #fffbf2;
  box-shadow: 0 6px 20px rgba(201,162,39,0.15);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.content-box {
  background: white;
  padding: 50px 60px;
  border: 1.5px solid #c9a227;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(201,162,39,0.12);
}

.content-box h2 {
  font-family: 'DM Serif Display', serif;
  color: #7a0019;
  margin: 0 0 15px;
  text-align: center;
  font-size: 2rem;
}

.content-box h2 + p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px;
  color: #444;
}

.content-box h4 {
  font-family: 'DM Serif Display', serif;
  color: #7a0019;
  margin-top: 30px;
}

.content-box p {
  line-height: 1.7;
  color: #333;
}

/* Hidden class — toggled by main.js */
.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .content-box {
    padding: 30px 24px;
  }

  .tabs button {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================================
   FOOTER & LOGOS
   ============================================================ */
.site-footer {
  background: #7a0019 !important;
  border-top: none;
  padding: 60px 20px 40px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-contact {
  margin-top: 30px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-contact-item {
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-item a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact-item a:hover {
  opacity: 0.7;
}

.logo-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0.8;
}

.institutional-logo {
  font-family: 'DM Serif Display', serif;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .logo-banner {
    gap: 20px;
  }
  .institutional-logo {
    font-size: 0.9rem;
  }
}

/* ============================================================
   PRESENTER SERIES
   ============================================================ */
.presenter-series-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.presenter-item {
  background: #fff;
  border-left: 4px solid #7a0019;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.presenter-item:hover {
  transform: translateX(5px);
  background: #fdfaf7;
}

.presenter-info {
  flex: 1;
  padding-right: 20px;
}

.presenter-author {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #7a0019;
  display: block;
  margin-bottom: 4px;
}

.presenter-title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.doc-link {
  font-size: 0.85rem;
  color: #7a0019;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #7a0019;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.doc-link:hover {
  background: #7a0019;
  color: white;
}

@media (max-width: 640px) {
  .presenter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* ============================================================
   CONTRIBUTORS RIBBON
   ============================================================ */
.contributors-ribbon {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: left;
}

.contributors-ribbon h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.ribbon-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ribbon-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0ebe4;
  color: #7a0019;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 1px solid #ddd;
  cursor: help;
  transition: all 0.2s ease;
}

.ribbon-item:hover {
  transform: translateY(-3px);
  border-color: #c9a227;
  background: #fff;
}

.ribbon-item.in-memoriam {
  border-style: dotted;
  background: #f8f8f8;
  color: #666;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

#custom-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(192, 0, 31, 0.35);
  box-shadow: 0 0 6px 3px rgba(192,0,31,0.18), 0 0 12px 5px rgba(192,0,31,0.08);
  pointer-events: none;
  transform: translate(-2px, -2px);
  z-index: 99999;
  transition: transform 0.08s ease;
  opacity: 1;
}

/* ============================================================
   CARD FOOTER — SECTION CONTRIBUTORS
   ============================================================ */
.card-footer-contributors {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contributors-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #aaa;
  font-weight: 500;
}

.contributors-value {
  font-size: 0.8rem;
  color: #bbb;
  font-style: italic;
}

/* Section-level footer (Past section) */
section .card-footer-contributors {
  margin-top: 40px;
}
