/* Base Styles */
body, p, h1, h2, h3, h4, h5, h6, .title, .subtitle, .content, .button {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.6;
}

/* Container Widths */
.content-container, .publication-title, .publication-authors, .hero .container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.abstract-container {
  width: 70%;
  max-width: 800px;
  margin: 0 auto;
}

/* Text Styling */
.hero.teaser .hero-body p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.content p, .hero-body p, .section p, .abstract-container p, .results-description {
  font-size: 1rem;
  line-height: 1.6;
}

.title {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.1rem;
}

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

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

/* Images and Media */
.content-image {
  width: 100%;
  max-width: 750px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.framework-image {
  max-height: 400px;
  width: auto;
  object-fit: contain;
}

.publication-video {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px ;
}

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

.pdf-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

/* Contribution Cards */
.contribution-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  background-color: #f5f5f5;
}

.contribution-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.contribution-card .icon-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contribution-card .icon-text .icon {
  margin-bottom: 0.5rem;
}

.contribution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contribution-card .icon {
  transition: all 0.3s ease;
}

.contribution-card:hover .icon {
  transform: scale(1.2);
}

.contribution-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: all 0.7s ease;
}

.contribution-card:hover::after {
  left: 120%;
}

.contribution-card .card-summary {
  font-size: 1rem ;
}

.contribution-card .card-detail {
  font-size: 0.9rem ;
  opacity: 0;
  max-height: 0;
  transition: all 0.5s ease;
  overflow: hidden;
}

.contribution-card:hover .card-detail {
  opacity: 1;
  max-height: 100px;
  margin-top: 10px;
}

.contribution-card:hover .card-summary {
  font-weight: bold;
}

/* Card Colors */
.card-rocket:hover { border-color: #3298dc; }
.card-leaf:hover { border-color: #48c774; }
.card-performance:hover { border-color: #f14668; }
.card-cube:hover { border-color: #ffdd57; }

/* Fix pagination dots and title overlap */
.carousel-pagination {
  margin-bottom: 1.5rem !important; /* Push pagination dots up */
}

/* Add proper spacing between carousel images and subtitles */
.carousel .item .subtitle {
  margin-top: 2rem; /* Create space for pagination dots */
  margin-bottom: 1rem;
}

/* Make carousel match content-container width */
.results-carousel, .carousel {
  width: 80%;
  max-width: 1000px; /* Match content-container max-width */
  margin: 0 auto;
}

/* For consistent display of images in the carousel */
.carousel .item > div {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel .item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Code Blocks */

pre code {
  display: block;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0.75rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.code-box-smaller {
  padding: 0.75rem;
}

/* Footer */
.footer .content p {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

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

/* Results description */
.results-description {
  width: 80%;
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

/* Publication Authors */
.publication-authors {
  /* Consolidated styles */
}

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

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

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

/* Helper Classes */
.section-white {
  background-color: white;
}

.hero-white {
  background-color: white;
}

/* Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .content-container, .abstract-container, .hero .container {
    width: 90%;
  }
  
  .content-image, .carousel .item img, .publication-video, .pdf-container {
    max-width: 100%;
  }
  
  .columns {
    display: block;
  }
  
  .column {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  body {
    font-size: 15px;
  }
  
  .content p, .hero-body p, .section p {
    font-size: 0.95rem;
  }
  
  .abstract-container p {
    font-size: 0.9rem;
  }
  
  .hero.teaser .hero-body p {
    font-size: 1.1rem;
  }
}