/* CSS for visible navigation arrows */
.slider-navigation-previous,
.slider-navigation-next {
  background-color: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  z-index: 100 !important;
  top: 50% !important;
  transform: translateY(-50%);
}

.slider-navigation-previous:hover,
.slider-navigation-next:hover {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.slider-navigation-previous {
  left: 10px !important;
}

.slider-navigation-next {
  right: 10px !important;
}

/* Adjust carousel cell for 3 items */
/* Pagination Dots Styling */
.slider-pagination {
  position: absolute;
  bottom: 5px; /* Positioned within the 50px padding of .carousel */
  width: 100%;
  left: 0;
  text-align: center;
  z-index: 100;
}

.slider-pagination .slider-page {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-pagination .slider-page.is-active {
  background-color: #3273dc;
  /* Active color */
  transform: scale(1.2);
}

.carousel-cell {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #4a4a4a;
}

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

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.link-block a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dnerf {
  font-family: 'Castoro', serif;
  font-variant: small-caps;
}


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

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

/* Typography Enhancements */
.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem !important;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  color: #34495e;
  margin-bottom: 0.5rem;
}

.publication-venue {
  color: #7f8c8d;
  width: 100%;
  font-weight: bold;
}

/* Video Styling */
.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  overflow: hidden;
  border-radius: 12px !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.bibtex-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}


/* Methodology Icons and Boxes */
.box {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  transition: transform 0.3s ease;
  height: 100%;
  border-top: 4px solid transparent;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #3273dc;
  /* Primary brand color on hover */
}

.icon.is-large.has-text-primary {
  color: #00d1b2 !important;
}

.icon.is-large.has-text-info {
  color: #3298dc !important;
}

.icon.is-large.has-text-warning {
  color: #ffdd57 !important;
}

.icon.is-large.has-text-danger {
  color: #f14668 !important;
}


/* Comparison Table Styling */
.table.is-hoverable tbody tr:hover {
  background-color: #f5f7fa;
}

.table th {
  background-color: #eef2f7;
  color: #2c3e50;
  font-weight: 700;
  vertical-align: middle;
}

.table td {
  vertical-align: middle;
}

/* Carousel Tweaks - Now with native horizontal scrollbar support */
.carousel {
  display: flex;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 25px; /* Space for the scrollbar */
  gap: 10px;
}

/* Custom Premium Scrollbar Styling */
.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #3273dc;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.carousel::-webkit-scrollbar-thumb:hover {
  background: #2366d1;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  text-align: center;
}

/* Adjust carousel items */
.carousel-item {
  width: 100%;
  padding: 0;
}

.carousel-item video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: block;
}

.item-video1,
.item-video2,
.item-video3 {
  padding: 0;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.title.is-3 {
  margin-bottom: 2rem;
  color: #2c3e50;
  position: relative;
  display: inline-block;
}

/* Subtle underline for titles */
.title.is-3::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #3273dc;
  margin: 10px auto 0;
  border-radius: 2px;
}

pre {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid #e1e1e1;
}

/* Responsive Fixes */
/* Responsive Fixes */
html,
body,
.hero,
.section,
.footer {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

/* Ensure no element exceeds viewport width */
* {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Ensure containers don't overflow */
.container {
  width: 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  overflow-x: hidden;
}

.container.is-max-desktop {
  max-width: 960px;
}

/* Fix for Hero section padding on mobile */
.section {
  padding: 1.5rem 1rem;
}

@media screen and (min-width: 769px) {
  .section {
    padding: 3rem 1.5rem;
  }
}

/* Table Scrolling */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: block;
  margin-bottom: 1.5rem;
}

/* Carousel responsiveness - ensured no conflicts */

/* Video Demo Sizing */
.publication-video {
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
}

/* Fix Navigation Brand on Mobile */
.navbar-brand {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Mobile Specific Adjustments */
@media screen and (max-width: 768px) {

  /* Ensure items scale correctly on mobile */
  .carousel-item {
    padding: 10px;
  }

  .title.is-1 {
    font-size: 1.75rem;
  }

  .title.is-3 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .publication-authors {
    font-size: 0.9rem;
  }
}