/* ===================== General Reset & Typography ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px; /* space above footer */
}

/* ===================== Compact Modern Header ===================== */
.site-header {
  background: linear-gradient(135deg, #9b1b30 0%, #7a0f25 100%);
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-center {
  text-align: center;
  flex: 1;
}

.header-logo {
  height: 70px;
  width: auto;
}

.site-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #faebd7;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.site-header nav a {
  color: #faebd7;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.site-header nav a:hover {
  background-color: #faebd7;
  color: #9b1b30;
  transform: scale(1.05);
}

.site-header nav a.active {
  border-bottom: 2px solid #faebd7;
  padding-bottom: 3px;
}

/* Responsive header */
@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    gap: 8px;
  }
  .header-logo {
    margin: 5px 0;
    height: 55px;
  }
}

/* ===================== Dementia Counter Bubble ===================== */
.dementia-counter {
  background: linear-gradient(90deg, #fff5eb 0%, #ffe9e9 100%);
  padding: 10px 0 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.dementia-counter-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px dashed rgba(155, 27, 48, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: counterGlow 3s ease-in-out infinite;
}

.dementia-counter-text {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #7a0f25;
}

.dementia-counter-text .counter-number {
  font-weight: 700;
  font-size: 1.1rem;
}

.dementia-counter-note {
  font-size: 0.8rem;
  color: #555;
  text-align: center;
}

@keyframes counterGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 27, 48, 0.22);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(155, 27, 48, 0.02);
  }
}

/* ===================== Section Titles ===================== */
h2 {
  margin: 40px 0 20px;
  color: #9b1b30;
  text-align: center;
}

/* Intro / About text */
.intro p {
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: justify;
}

/* Research areas list */
.research-areas ul {
  list-style: disc;
  max-width: 600px;
  margin: 0 auto 40px;
  padding-left: 1.5rem;
}

/* ===================== People / Cards Grid ===================== */
.people-section {
  margin-top: 20px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.person-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  border: 2px solid transparent;
}

.person-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.14);
}

/* Base image styling */
.person-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Category-specific hover colours */
.faculty-card {
  border-color: rgba(155, 27, 48, 0.5);
}
.faculty-card:hover {
  background: #fff5f7;
}

.grad-card {
  border-color: rgba(0, 123, 167, 0.5);
}
.grad-card:hover {
  background: #f1f7ff;
}

.undergrad-card {
  border-color: rgba(0, 141, 73, 0.5);
}
.undergrad-card:hover {
  background: #f0fff6;
}

.collaborator-card {
  border-color: rgba(212, 175, 55, 0.6);
}
.collaborator-card:hover {
  background: #fff9e6;
}

/* Existing lab pet look, just slightly tuned */
.lab-pet-card {
  border: 3px dashed #d4af37;
  background-color: #fff8e1;
  transform: rotate(-1deg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lab-pet-card:hover {
  transform: rotate(1deg) translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.lab-pet-card img {
  border: 3px dashed #9b1b30;
}

.person-card h3 {
  margin-bottom: 5px;
  color: #9b1b30;
}

.person-card .role,
.person-card .degree,
.person-card .bio,
.person-card .contact {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Recruitment placeholders */
.placeholder-card {
  border-style: dashed;
  border-width: 2px;
  background-color: #fffdf5;
}
.placeholder-card h3 {
  color: #9b1b30;
}

/* ===================== Publications Cards ===================== */
.publications-section {
  margin-top: 20px;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.pub-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #9b1b30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #333;
}

.pub-meta {
  font-size: 0.85rem;
  color: #555;
}

.pub-link a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9b1b30;
  text-decoration: underline;
}

/* Placeholder area for future lay summaries */
.pub-summary {
  font-size: 0.85rem;
  color: #444;
  margin-top: 6px;
}

/* Placeholder for cover image (for later use) */
.pub-cover {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* ===================== Home Page Video Grid ===================== */
.video-section {
  margin-bottom: 60px;
}

.video-section p.lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.video-card {
  position: relative;
  padding: 18px 14px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #fff5eb 0, #ffffff 45%, #fce6ee 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.video-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7a0f25;
}

.video-meta {
  font-size: 0.8rem;
  color: #555;
}

/* ===================== Contact Card ===================== */
.contact-card {
  max-width: 600px;
  margin: 0 auto 60px;
  background-color: #fff;
  border-radius: 8px;
  padding: 25px 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-left: 5px solid #9b1b30;
}

.contact-card h3 {
  color: #9b1b30;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.contact-card .email a {
  font-size: 1.3rem;
  font-weight: bold;
  color: #9b1b30;
}

.contact-card .email a:hover {
  text-decoration: underline;
  color: #7a0f25;
}

.contact-card .note {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Social card variant */
.social-card {
  border-left: none;
  border: 2px dashed #d4af37;
  background-color: #fffdf6;
}

.social-card h3 {
  color: #7a0f25;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.social-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: bold;
  color: #faebd7;
  background-color: #9b1b30;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.social-btn:hover {
  background-color: #7a0f25;
  transform: translateY(-3px);
}

.social-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .social-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===================== News Timeline ===================== */
.news-section {
  margin-top: 30px;
}

.news-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}

.timeline-wrapper {
  overflow-x: auto;
  padding-bottom: 10px;
}

.timeline {
  display: flex;
  gap: 24px;
  padding: 10px 4px 20px;
  align-items: stretch;
  min-height: 150px;
}

.timeline::before {
  content: "";
  position: absolute;
}

.timeline-event {
  min-width: 240px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #9b1b30;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.timeline-event-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.timeline-event-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a0f25;
  margin-bottom: 4px;
}

.timeline-event-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-event-desc {
  font-size: 0.85rem;
  color: #555;
}

/* Reveal animation class */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Floating Brain ===================== */
#floating-brain {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 2000;
  transform: translate(-100px, -100px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

/* ===================== Links ===================== */
a {
  color: #9b1b30;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===================== Footer ===================== */
.site-footer {
  background-color: #9b1b30;
  color: #faebd7;
  text-align: center;
  padding: 15px 0;
}

.site-footer .land-ack {
  font-size: 0.8rem;
  margin-top: 5px;
}
