/* Custom styles for PID-LVLM project page */

/* Publication links spacing */
.publication-links {
  margin-top: 1rem;
}
.publication-links .link-block {
  margin: 0.3rem;
}

/* Section title underline bar — width set dynamically by JS */
.section-title-bar {
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}
.section-title-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--bar-width, 80px);
  height: 3px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 2px;
}
/* Wrapper to keep centering when title is inline-block */
.section-title-wrap {
  text-align: center;
}

/* Finding boxes - primary (blue, for Finding 1 & 3) */
.finding-box {
  border-left: 4px solid #667eea;
}

/* Finding boxes - alt (orange, for Finding 2 & 4 tables) */
.finding-box-alt {
  border-left: 4px solid #e8945a;
}

/* Finding boxes - fusion section (teal, for Finding 5 & 6) */
.finding-box-fusion {
  border-left: 4px solid #20c997;
}

/* Caption styling */
.caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

/* BibTeX container */
.bibtex-container {
  position: relative;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
}
.bibtex-container pre {
  background: transparent;
  padding: 0;
  margin: 0;
}
.copy-bibtex {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
}

/* Notification boxes in findings */
.finding-box .notification,
.finding-box-alt .notification,
.finding-box-fusion .notification {
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.5rem;
}
.finding-box .notification p,
.finding-box-alt .notification p,
.finding-box-fusion .notification p {
  margin: 0;
}

/* Section spacing */
.section {
  padding: 3rem 1.5rem;
}

/* Image figure styling */
figure.image img {
  border-radius: 4px;
}

/* Better box styling in case studies */
.hero.is-light .box {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
  }
  .section {
    padding: 2rem 1rem;
  }
}

/* Carousel for findings */
.carousel-wrapper {
  position: relative;
}
.carousel-slide {
  display: none;
  animation: carouselFadeIn 0.35s ease;
}
.carousel-slide.active {
  display: block;
}
@keyframes carouselFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.carousel-btn {
  background: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
}
.carousel-btn:hover {
  border-color: #667eea;
  color: #667eea;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}
.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dots .dot.active {
  background: #667eea;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
}
.footer p {
  font-size: 0.85rem;
  color: #888;
}
