/*
 * Custom styles for the academic project template
 *
 * This stylesheet extends the Bulma framework with a few
 * site‑specific tweaks. Feel free to customize the colours,
 * typography and spacing to match your project’s branding. To
 * maintain a clean, uncluttered layout, leverage white space and
 * ensure that content is grouped logically【939596286586476†L105-L115】.
 */

/* Gradient background for the hero section */
.has-background-primary-gradient {
  background-image: linear-gradient(135deg, #4f44c5 0%, #00c9ff 100%);
  color: #ffffff;
}

/* Ensure the navbar text and burger icon are visible over the hero */
.navbar.is-white .navbar-item {
  color: #363636;
}

/* Custom video container with 16:9 aspect ratio */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: #000; /* fallback for audio‑only videos */
}

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

/* Tweak preformatted citation box */
pre.box {
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 1rem;
  white-space: pre-wrap;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
}

/* Footer styling */
.footer {
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

/* Smooth scroll behaviour for anchor links */
html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
 * Custom carousel styling
 *
 * The original template relied on the Bulma Carousel extension loaded from a
 * remote CDN. Unfortunately that dependency wasn’t loading properly in the
 * provided environment, which meant the “Results” image slider never
 * appeared. To ensure the carousel always works, a very simple slider is
 * implemented in `js/script.js`. The styles below provide a minimal layout
 * so that exactly one slide is visible at a time and the navigation arrows
 * overlay the images. Feel free to customise the colours or spacing as
 * desired.
 *
 * Each `.carousel` container is positioned relatively. Its child
 * `.carousel-item` elements are hidden by default; the currently visible
 * slide is given the `.is-active` modifier and displayed as a block. Images
 * inside the carousel automatically scale to the width of their container
 * while preserving aspect ratio.
 */

.carousel {
  position: relative;
  overflow: hidden;
}

/* Hide all slides by default */
.carousel-item {
  display: none;
}

/* Show only the active slide */
.carousel-item.is-active {
  display: block;
}

/* Ensure carousel images fill their parent horizontally */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Position carousel navigation arrows centrally over the slider */
.carousel-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

/* Style for individual navigation buttons */
.carousel-nav-left,
.carousel-nav-right {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  color: #363636;
  font-size: 1rem;
}

/* Increase icon size inside navigation arrows */
.carousel-nav-left i,
.carousel-nav-right i {
  pointer-events: none;
}

/* Responsive typography for the hero section. On narrow screens reduce
   the font sizes to prevent overflow and ensure readability. */
@media (max-width: 768px) {
  #overview .title {
    font-size: 2rem;
  }
  #overview .subtitle {
    font-size: 1.25rem;
  }
  #overview .project-authors,
  #overview .project-affiliation {
    font-size: 0.9rem;
  }
}

/* Adjust hero padding based on screen size. Provide more breathing
   room on larger devices and tighter spacing on small screens. */
#overview .hero-body {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 769px) {
  #overview .hero-body {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Make carousel images smaller and responsive */
.carousel-img {
  max-width: 70%;
  /* max-height: 400px; */
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* Position carousel arrows in the middle of the image */
.carousel-navigation {
  top: 50%;
  transform: translateY(-50%);
  height: 0;
  z-index: 10;
  position: absolute;
  width: 100%;
}

.carousel-nav-left,
.carousel-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-nav-left {
  left: 10px;
}

.carousel-nav-right {
  right: 10px;
}

.pdf-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.pdf-frame {
  width: 100%;
  height: 1000px;
  border: none;
}

/* Optional: Limit width on large screens only */
@media screen and (min-width: 1024px) {
  .pdf-wrapper {
    max-width: 70%;
  }
}

.gradient-text {
  background: linear-gradient(90deg, #5b3be4, #0ea5e9); /* match hero gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
  line-height: 1.1;
}