:root {
  --uhn-blue: #192958;
  --cobalt: #255CAA;
  --uhn-red: #C0233C;
  --chartreuse: #75AF55;
  --neutral: #E4E4E4;
  --font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  margin: 0;
  color: var(--uhn-blue);
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Logo spans full width */
.lab-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Header wrapper */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Fullscreen video */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lab-logo {
  height: 64px;
  margin-bottom: 0.5rem;
}

/* Navigation Styles */
.site-navigation {
  position: relative;
  width: 100%;
}

.site-navigation.scrolled {
  background: var(--uhn-blue);
}

.site-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0.75rem 0;
}

.site-navigation a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.site-navigation a:hover {
  text-decoration: underline;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .site-navigation ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--uhn-blue);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .site-navigation ul.active {
    max-height: 500px;
  }

  .site-navigation li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-navigation a {
    display: block;
    padding: 1rem;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Content Sections */
.content section {
  margin: 2rem 0;
  padding: 0.5rem 0;
}

.team-photo {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 1rem auto;
  border: 6px solid var(--neutral);
  border-radius: 8px;
}

.team-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.team-card {
  width: 350px;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #eee;
  border-radius: 10px;
  align-items: center;
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f3f3;
}

.team-card .meta {
  font-size: 0.92rem;
  color: #333;
}

.team-card .meta .name {
  font-weight: 700;
  color: var(--uhn-blue);
}

.pub-year {
  border-top: 3px solid var(--uhn-blue);
  padding-top: 0.5rem;
  margin-top: 1rem;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pub-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pub-title {
  font-weight: 700;
  color: var(--uhn-blue);
  margin-bottom: 0.5rem;
}

.pub-meta {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.pub-links a {
  color: var(--uhn-red);
  text-decoration: none;
  margin-right: 0.75rem;
}

.pub-links a:hover {
  text-decoration: underline;
}

.altmetric-embed {
  display: inline-block;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.col-md-6 {
  flex: 1;
  min-width: 200px;
}

.left-div {
  padding: 0.25rem;
}

.site-footer {
  background: var(--uhn-blue);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

.btn {
  background: var(--cobalt);
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

input,
select {
  padding: 0.45rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.admin-container h2 {
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  background: var(--neutral);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #333;
}

.h1, .h2, .h3, .h4, .h5 {
  font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #000;
}

.site-section {
  padding: 2.5em 0;
}

@media (min-width: 768px) {
  .site-section {
    padding: 5em 0;
  }
}

.section-heading .heading {
  color: #192958;
  font-size: 2.5rem;
  font-weight: 900;
}

/* Carousel Card Styles */
.carousel-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease;
  height: auto;
}

.carousel-card:hover {
  transform: translateY(-5px);
}

.carousel-icon {
  font-size: 42px;
  margin-bottom: 1rem;
  color: var(--uhn-blue, #192958);
}

.carousel-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--uhn-blue, #192958);
}

.carousel-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-top: auto;
}

/* Owl Carousel Dots */
.owl-dots {
  text-align: center;
  margin-top: 1rem;
}

.owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px 4px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
}

.owl-dot.active span {
  background: var(--uhn-blue, #192958);
}

/* Publication Tabs */
.pub-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pub-tab {
  background: #eee;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  color: var(--uhn-blue);
  font-weight: 600;
  transition: all 0.3s;
}

.pub-tab.active {
  background: var(--uhn-blue);
  color: #fff;
}

.pub-journal-logo {
  width: 90px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}

.metrics-row {
  margin-top: 0.5rem;
}

/* Team Sections */
.team-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.team-section h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.team-section .badge {
  background: #007bff;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

#current-team,
#alumni,
#intern {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.team-member {
  flex: 1 1 220px;
  max-width: 250px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Outreach Section */
#outreach {
  padding: 60px 0;
}

#outreach h3.heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.outreach-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.outreach-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.outreach-card img,
.outreach-card iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

.section-divider {
  width: 60%;
  margin: 30px auto;
  border: 0;
  height: 1px;
  background-color: #ccc;
}

.bottom-logo {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.bottom-logo.small {
  width: 100px;
}

.bottom-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  #outreach h3.heading {
    font-size: 1.5rem;
  }

  .outreach-card iframe {
    height: 180px;
  }

  .bottom-logo {
    width: 160px;
  }
}

/* Software Section */
.software-section {
  padding: 70px 0;
  text-align: center;
}

.software-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}

.software-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 50px;
}

.software-column {
  flex: 1;
  max-width: 530px;
}

.software-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 18px 20px;
  margin-bottom: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.software-icon {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  margin-right: 18px;
}

.software-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
}

.software-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.software-text a {
  text-decoration: none !important;
  color: inherit;
}

.software-github {
  margin-top: 40px;
}

.software-github h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.github-logo {
  width: 220px;
}

.icon {
  font-size: 70px;
  color: #e82350;
}