/* News Box Header Style */
.news-header {
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;}

.news-event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 28px;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
  text-decoration:underline;
}
.news-event-title a {
  color: inherit;
  text-decoration: inherit;
  transition: color 0.2s ease;
}
.news-event-title a:visited {
  color: inherit; /* keep visited links white */
}
.news-event-title a:hover,
.news-event-title a:focus-visible {
  color: #00e1ff; /* blue on rollover */
}
.news-event-date{
  font-size: 1.3rem;
  font-weight: 200;
  color: #6ac5f6;
  margin-bottom: 3px;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
  /* font-family: 'Lucida Console', Monaco, monospace; */
  scroll-margin-top: 100px; /* ensure title/date not hidden under fixed navbar when anchored */
}
.news-event-content {
  font-size: 1rem;
  font-weight: 100;
  color: #ccc;
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}

.intro-box {
  border: 1.5px solid #fff;
  background: transparent;
  border-radius: 12px;
  margin: 28px auto;
  padding: 24px 18px;
  max-width: 1200px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align:left;
}
ul.homelist{
  font-size: 1.3rem;
  color: #ccc;
}

/* Publication Box Styles */
.publication-box {
  border: 1.5px solid #fff;
  background: transparent;
  border-radius: 12px;
  margin: 28px auto;
  padding: 24px 18px;
  max-width: 1000px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align:left;
}

.publication-box a{
  color: #007d96;
}
.publication-box a:hover{
  color: #00e1ff;
  text-decoration: underline;
}
.publication-box b{
  /* color: #ff00e6e3; */
  color: #6ac5f6;
}
/* Google Maps Embed Styling */
.maps-embed {
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  margin-top: 12px;
  margin-bottom: 12px;
  width: 100%;
  height: 600px;
  display: block;
  /* filter: grayscale(100%) contrast(1.1); */
}
/* Consistent Team Image Styling */
.team-img {
  display: block;
  margin: 24px auto;
  max-width: 4000px;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.project-box-title{
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
  text-align: center;
}
/* Project Row for Side-by-Side Boxes */
.project-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Project Box Styles for Research Page */
.project-box {
  border: 1.5px solid #fff;
  background: transparent;
  border-radius: 12px;
  margin: 32px auto;
  padding: 32px 24px;
  max-width: 700px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align:justify;
}

/* Floating Title Box on Banner */
.banner-title {
  position: absolute;
  top: 30vh;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 4rem;
  font-weight: 200;
  padding: 32px 64px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  text-align: center;
  z-index: 30;
  letter-spacing: 2px;
}
/* Navigation Bar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 24px 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
}
/* .navbar button {
} */
/* Nav links container */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0; /* spacing handled by link margins */
}

/* Wrapper for hamburger + dropdown */
.nav-group {
  display: flex;
  align-items: center;
}

.navbar a {
  background: transparent;
  color: #fff;
  text-decoration: none;
  margin: 0 18px;
  padding: 14px 28px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 200;
  letter-spacing: 1px;
}
/* .navbar button:hover {
} */
.navbar a:hover {
  background: #222;
  color: #ffd700;
}

/* Hamburger toggle (hidden on wide screens) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 12px;
  transition: transform 0.2s ease;
  position: relative;
  /* Define a predictable drawing box for the icon */
  width: 32px;
  height: 24px;
  padding: 0; /* override padding to keep box tight */
  line-height: 0;
  overflow: visible;
}
.nav-toggle:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}
.nav-toggle .bar {
  display: block;
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #fff;
  margin: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
  top: 50%;
  border-radius: 1px;
  transform: translateY(-50%);
}

/* Closed positions for 3 bars (top/middle/bottom) */
.nav-toggle .bar:nth-child(1) {
  transform: translateY(calc(-50% - 7px));
}
.nav-toggle .bar:nth-child(2) {
  transform: translateY(-50%);
}
.nav-toggle .bar:nth-child(3) {
  transform: translateY(calc(-50% + 7px));
}

/* Mobile / narrow screens */
@media (max-width: 1050px) {
  .navbar {
    justify-content: space-between;
    padding: 6px 8px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 0; /* align to navbar padding */
  }

  .nav-group { position: relative; }

  .nav-links {
    position: absolute;
    top: calc(100% + 6px); /* sit just below the hamburger outline */
    left: -8px; /* flush with viewport left (offset navbar's 8px left padding) */
    right: auto;
    width: 50vw; /* about half the page width */
    min-width: 240px;
    max-width: 520px;
    background: rgba(0,0,0,0.8); /* semi-transparent */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
    border-bottom: 1px solid #222;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    /* Animation baseline */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.3s;
    z-index: 101; /* ensure above page content */
  }

  /* When navbar is open, show the menu */
  .navbar.open .nav-links {
    max-height: 70vh; /* enough space for links */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  /* Make links full-width touch targets */
  .navbar .nav-links a {
    margin: 4px 0;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: left;
  }

  /* Reduce banner title size slightly on small screens for better fit */
  .banner-title {
    font-size: 2.2rem;
    padding: 16px 24px;
  }
}

/* Hamburger icon transforms into an X when menu is open */
.navbar.open .nav-toggle .bar:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}
.navbar.open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
}
.navbar.open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}

/* Slightly shrink the icon when open so the X stays within the same visual box */
.navbar.open .nav-toggle {
  transform: scale(0.92);
}
/* .banner {
} */

.banner-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 60vh;
  min-height: 400px;
  max-height: 1200px;
  background: #000;
  overflow: hidden;
  margin: 0;
  z-index: 1;
  object-fit: cover;
}

.banner-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%) rotate(90deg);
  display: block;
}

/* Remove the img styling since we will use background-image */
.content {
  padding: 10px 20px;
  text-align: center;
  position: relative;
  z-index: 20;
  background: rgba(0,0,0,1);
  margin-top: 60vh;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-weight:100;
}
h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #ccc;
  margin-top: 24px;
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
  text-align: center;
}
h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #ccc;
  margin-top: 20px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
  text-align: center;
}
p {
  font-size: 1.3rem;
  color: #ccc;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* Optional: smooth scroll between anchors */
html {
  scroll-behavior: smooth;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #555;
  background: #000;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
  animation: fade 0.5s;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-prev, .carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  border: none;
}

.carousel-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-prev:hover, .carousel-next:hover {
  background-color: rgba(0,0,0,0.8);
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}
