body {
  font-family: 'Noto Sans', sans-serif;
}

.column {
  max-width: 70%;
  margin: 0 auto;
}

.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    font-family: 'Google Sans', sans-serif;
    color: #555;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.results-carousel {
  overflow: hidden;
  margin-bottom: 30px;
}

.results-carousel .item {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
  margin: 5px;
  overflow: hidden;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  height: 300px; /* Fixed height */
  width: auto; /* Adjust width based on aspect ratio */
  object-fit: contain;
}

.results-carousel .item .caption {
  z-index: 100; /* Adjust as necessary */
  text-align: center;
  font-size: 14px; /* Adjust the font size as needed */
  margin-top: 5px; /* Space between video and caption */
  margin-bottom: 10px; /* Space between video and caption */
  color: #555; /* Caption text color */
  font-size: large;
}

.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* Data collection and comparison video styling */
.section .item video {
  max-width: 95%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Reduce vertical spacing between sections */
.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Expandable abstract styling */
.abstract-container {
  position: relative;
}

.abstract-tldr {
  margin-bottom: 15px;
  text-align: left;
  text-justify: none;
}

.abstract-toggle {
  margin: 0 auto 15px auto;
  display: block;
  transition: all 0.3s ease;
}

.abstract-toggle:hover {
  transform: translateY(-1px);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.abstract-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.abstract-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 10px;
}

.abstract-full.expanded {
  max-height: none;
  transition: max-height 0.4s ease-in;
}

.abstract-content {
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: 0.1s;
  text-align: left;
  text-justify: none;
}

.abstract-full.expanded .abstract-content {
  opacity: 1;
}

.abstract-plots {
  text-align: center;
  margin: 0; /* No left/right margins */
  padding: 0 10px; /* Additional padding for very small screens */
}

.abstract-plots img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 10px 0; /* Only vertical margin, horizontal alignment handled by container */
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments for very small screens */
@media (max-width: 768px) {
  .abstract-plots {
    margin: 0; /* No margins on small screens */
    padding: 0 5px;
  }
  
  .abstract-plots img {
    max-width: 100%;
    width: 100%;
  }
}

.abstract-close-container {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.abstract-close {
  transition: all 0.3s ease;
}

.abstract-close:hover {
  transform: translateY(-1px);
}

/* =================================
   NAVIGATION SYSTEM STYLES
   ================================= */

/* Desktop Sidebar Navigation */
.navbar-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
}

.navbar-sidebar-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.navbar-sidebar-brand {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-logo {
  width: 56px;
  height: 56px;
  margin-right: 12px;
}

.nav-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  font-family: 'Google Sans', sans-serif;
}

.navbar-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.navbar-sidebar-menu li {
  margin-bottom: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: #333;
  background: rgba(0, 123, 255, 0.05);
  transform: translateX(4px);
}

.nav-link.active {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  font-weight: 600;
}

.nav-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.nav-link.active .nav-indicator {
  background: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

/* Main Content Adjustment for Desktop */
.main-content {
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}

/* Mobile Navigation */
.navbar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-mobile-brand {
  display: flex;
  align-items: center;
}

.nav-logo-mobile {
  width: 42px;
  height: 42px;
  margin-right: 10px;
}

.nav-title-mobile {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  font-family: 'Google Sans', sans-serif;
}

.navbar-mobile-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.navbar-mobile-burger span {
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar-mobile-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-mobile-burger.active span:nth-child(2) {
  opacity: 0;
}

.navbar-mobile-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.navbar-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.navbar-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.navbar-mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: white;
  padding: 60px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.navbar-mobile-overlay.active .navbar-mobile-menu {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.navbar-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-mobile-menu li {
  margin-bottom: 8px;
}

.nav-link-mobile {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.nav-link-mobile:hover, .nav-link-mobile.active {
  background: rgba(0, 123, 255, 0.1);
  border-left-color: #007bff;
  color: #007bff;
}

/* Responsive Behavior */
@media (max-width: 1024px) {
  .navbar-sidebar {
    transform: translateX(-100%);
  }
  
  .main-content {
    margin-left: 0;
    padding-top: 60px;
  }
  
  .navbar-mobile {
    display: flex;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Padding Adjustments for Navigation */
section[id] {
  scroll-margin-top: 20px;
}

@media (max-width: 1024px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

/* Additional Polish & Accessibility */
.nav-link:focus, .nav-link-mobile:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Hover effects for mobile menu */
.navbar-mobile-burger:hover span {
  background: #007bff;
}

.mobile-menu-close:hover {
  color: #007bff;
  transform: scale(1.1);
}

/* Loading state for nav links */
.nav-link, .nav-link-mobile {
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: #007bff;
  transition: height 0.3s ease;
}

.nav-link.active::before {
  height: 20px;
}

/* Improve readability on smaller screens */
@media (max-width: 480px) {
  .navbar-mobile-menu {
    width: 100%;
    padding: 80px 15px 20px;
  }
  
  .nav-link-mobile {
    font-size: 18px;
    padding: 18px 20px;
  }
  
  .navbar-mobile-brand .nav-title-mobile {
    font-size: 18px;
  }
}

/* Ensure content is properly spaced on very large screens */
@media (min-width: 1400px) {
  .navbar-sidebar {
    width: 280px;
  }
  
  .main-content {
    margin-left: 280px;
  }
  
  .nav-title {
    font-size: 26px;
  }
  
  .nav-logo {
    width: 64px;
    height: 64px;
    margin-right: 16px;
  }
  
  .nav-link {
    font-size: 15px;
    padding: 14px 18px;
  }
}

/* Print styles - hide navigation */
@media print {
  .navbar-sidebar, .navbar-mobile, .navbar-mobile-overlay {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar-sidebar, .navbar-mobile {
    background: white;
    border-color: black;
  }
  
  .nav-link.active {
    background: black;
    color: white;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nav-link, .nav-indicator, .navbar-mobile-burger span,
  .navbar-mobile-overlay, .navbar-mobile-menu, .abstract-toggle {
    transition: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

