/* Nerfies-style CSS for CABS project page */

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

.hero .hero-body {
  padding-bottom: 2rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 2.4rem !important;
  line-height: 1.2;
}

.publication-authors {
  margin-top: 0.75rem;
}

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

.publication-authors a {
  color: #3273dc;
  text-decoration: none;
}

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

.publication-links {
  margin-top: 1.25rem;
}

.link-block {
  display: inline-block;
  margin: 0.25rem 0.15rem;
}

.link-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.teaser-image {
  width: 100%;
  border-radius: 8px;
}

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

.hero.teaser .subtitle {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: #4a4a4a;
}

.section {
  padding: 3rem 1.5rem;
}

h2.title.is-3 {
  font-family: 'Google Sans', sans-serif;
}

h3.title.is-4 {
  font-family: 'Google Sans', sans-serif;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.content ol li,
.content ul li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.table-container {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.table {
  font-size: 0.95rem;
}

.table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

#BibTeX pre {
  background-color: #f5f5f5;
  padding: 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  overflow-x: auto;
}

#BibTeX code {
  background: none;
  color: #333;
  padding: 0;
}

footer.footer {
  padding: 2rem 1.5rem;
  background-color: #fafafa;
}

footer .icon-link {
  font-size: 1.5rem;
  color: #363636;
  margin: 0 0.5rem;
}

footer .icon-link:hover {
  color: #3273dc;
}

footer p {
  font-size: 0.9rem;
  color: #7a7a7a;
}

/* Carousel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 1.5rem auto;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
}

.carousel-slide {
  display: none;
  text-align: center;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  max-width: 100%;
  border-radius: 6px;
}

.carousel-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 1.5rem);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn-left {
  left: 0.5rem;
}

.carousel-btn-right {
  right: 0.5rem;
}

.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #363636;
}

.carousel-dot:hover {
  background: #777;
}

/* CABS intro: text + algorithm side by side, vertically centered */
.cabs-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cabs-intro-text {
  flex: 1;
}

.cabs-intro-img {
  flex: 0 0 35%;
  max-width: 35%;
}

.cabs-intro-img img {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Wrapfig-style floated image (kept for other uses) */
.wrapfig-right {
  float: right;
  max-width: 35%;
  margin: 0 0 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .cabs-intro {
    flex-direction: column;
  }

  .cabs-intro-img {
    flex: none;
    max-width: 100%;
  }

  .wrapfig-right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1rem auto;
  }

  .publication-title {
    font-size: 1.8rem !important;
  }

  .hero .hero-body {
    padding: 1.5rem 1rem;
  }

  .columns .column.is-half img {
    margin-bottom: 1rem;
  }
}
