/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  color: #4a4a4a;
}

/* Bulma replacement: Container */
.container {
  width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
}

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

/* Bulma replacement: Columns */
.columns {
  display: flex;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-top: -0.75rem;
}

.columns.is-centered {
  justify-content: center;
}

.column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0.75rem;
}

.column.is-four-fifths {
  flex: none;
  width: 80%;
}

.column.is-8 {
  flex: none;
  width: 66.6666%;
}

/* Bulma replacement: Hero */
.hero {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-body {
  flex-grow: 1;
  flex-shrink: 0;
  padding: 3rem 1.5rem;
}

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

/* Bulma replacement: Titles */
.title {
  color: #363636;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.125;
  margin-bottom: 1.5rem;
}

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

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

.title.is-4 {
  font-size: 1.5rem;
}

.subtitle {
  color: #4a4a4a;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.subtitle.is-6 {
  font-size: 1rem;
}

/* Bulma replacement: Sizes */
.is-size-5 {
  font-size: 1.25rem;
}

/* Bulma replacement: Text alignment */
.has-text-centered {
  text-align: center;
}

.has-text-justified {
  text-align: justify;
}

/* Bulma replacement: Content */
.content {
  color: #4a4a4a;
}

.content p:not(:last-child) {
  margin-bottom: 1em;
}

/* Bulma replacement: Button */
.button {
  background-color: white;
  border-color: #dbdbdb;
  border-width: 1px;
  color: #363636;
  cursor: pointer;
  justify-content: center;
  padding: calc(0.5em - 1px) 1em;
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.5;
  border-style: solid;
}

.button.is-normal {
  font-size: 1rem;
}

.button.is-rounded {
  border-radius: 290486px;
  padding-left: 1.25em;
  padding-right: 1.25em;
}

.button.is-dark {
  background-color: #363636;
  border-color: transparent;
  color: #fff;
}

.button .icon {
  margin-right: 0.5em;
}

.button .icon:first-child:not(:last-child) {
  margin-left: calc(-0.5em - 1px);
  margin-right: 0.25em;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  width: 1.5rem;
}

/* Bulma replacement: Link block */
.link-block {
  display: inline-block;
}


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

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


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

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

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

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

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

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

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

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

/* Completely hide any Bulma carousel remnants */
.carousel.results-carousel,
.slider,
.slider-container {
  display: none !important;
}

/* Custom Audio Carousel Styles */
.audio-carousel {
  position: relative;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.03);
  padding: 1rem;
}

.audio-carousel-container {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.audio-carousel-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  padding: 10px 20px;
  box-sizing: border-box;
}

.audio-carousel-item > div {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
}

.audio-carousel-item audio {
  width: 80% !important;
  max-width: 600px;
  min-width: 300px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Navigation buttons with gradient */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.6);
}

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

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

/* Pagination dots with improved styling */
.carousel-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 32px;
  border-radius: 6px;
}

/* Remove old Bulma carousel styles */
.results-carousel {
  display: none;
}

.results-carousel .item {
  margin: 5px;
  overflow: visible;
  padding: 20px;
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.results-carousel .item > div {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  min-width: 100%;
}

.results-carousel .item audio {
  width: 80% !important;
  min-width: 300px !important;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}

/* Audio carousel specific styles */
.audio-card {
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.audio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Additional styling improvements */
.section.hero.is-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: 4rem 1.5rem;
}

.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #363636;
}

.content.has-text-justified p {
  margin-bottom: 1rem;
  text-align: justify;
}

.hero.is-small {
  padding: 0;
  background-color: #fafbfc;
}

.hero.is-small .hero-body {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.hero.is-small .title.is-3 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.hero.is-small .subtitle.is-6 {
  color: #7f8c8d;
  font-size: 1rem;
  margin-top: 0;
}

.title.is-4 {
  color: #34495e;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.title.is-4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

audio {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

audio:hover {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.audio-carousel-item .subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  max-width: 600px;
  margin: 0 auto 0.5rem;
  padding: 0 1rem;
}

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

.hero:first-of-type {
  background-color: #ffffff;
  border-bottom: 1px solid #e8ecf1;
}

.hero:first-of-type .hero-body {
  padding-bottom: 1.5rem;
}

.button.is-normal.is-rounded.is-dark {
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button.is-normal.is-rounded.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #2c3e50 !important;
}

.button.is-normal.is-rounded[style*="background-color: white"] {
  transition: all 0.3s ease;
}

.button.is-normal.is-rounded[style*="background-color: white"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 1.5rem 3rem;
}

.footer .content p {
  color: #bdc3c7;
  line-height: 1.8;
}

.footer a {
  color: #3498db;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #5dade2;
  text-decoration: underline;
}

.hero.is-small > .hero-body {
  border-bottom: 1px solid #ecf0f1;
}

.hero.is-small .container > div[style*="margin-bottom"] {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.hero.is-small .container > div[style*="margin-bottom"]:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #667eea;
  transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .columns {
    flex-direction: column;
  }
  
  .column.is-four-fifths,
  .column.is-8 {
    width: 100%;
  }
  
  .title.is-1 {
    font-size: 2rem;
  }
  
  .title.is-3 {
    font-size: 1.5rem;
  }
  
  .hero-body {
    padding: 1.5rem 1rem;
  }
  
  .section {
    padding: 1.5rem 1rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .title.is-4::after {
    width: 60px;
  }
  
  .hero.is-small .container > div[style*="margin-bottom"] {
    padding: 1.5rem 1rem;
  }
  
  .audio-carousel-item .subtitle {
    font-size: 0.85rem;
  }
  
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .button {
    font-size: 0.875rem;
    padding: calc(0.4em - 1px) 0.75em;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
