/* Video Grid Styling */
.video-grids {
  margin-top: 2.5rem;
}

.video-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.video-grid.is-active {
  display: grid;
}

.video-item {
  background: var(--background-primary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #e5e7eb;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.video-item video {
  width: 100%;
  display: block;
  border-bottom: 1px solid #e5e7eb;
}

.video-item .caption {
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  color: #4a5568;
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive adjustments for grid */
.model-toggle {
  display: inline-flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  background: #e5e7eb;
  padding: 0.35rem;
  border-radius: 999px;
}

.model-toggle__btn {
  border: none;
  background: transparent;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-toggle__btn.is-active {
  background: #fff;
  box-shadow: 0 10px 15px rgba(15, 23, 42, 0.12);
  color: #6d28d9;
}

.model-toggle__btn:focus {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

@media screen and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .model-toggle {
    flex-direction: column;
    padding: 0.5rem;
  }

  .model-toggle__btn {
    width: 100%;
    text-align: center;
  }
}

/* Refinement Styling */
body {
  background-color: #f8fafc;
}

.pipeline-image {
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  max-width: 100%;
  height: auto;
}

.framework-description {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: #4a4a4a;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.section {
  padding: 4rem 1.5rem;
}

.title.is-1 {
  margin-bottom: 1.5rem !important;
}

/* Benchmark Carousel Styling - Clean Version */
.benchmark-carousel-container {
  position: relative;
  max-width: 950px;
  margin: 2.5rem auto;
  padding: 3rem 3.5rem 3.25rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.benchmark-slider {
  position: relative;
  min-height: 320px;
}

.benchmark-item {
  display: none;
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.benchmark-item.is-active {
  display: block;
}

.benchmark-slider img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.benchmark-caption {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.benchmark-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  height: 3.25rem;
  width: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(130deg, #6d28d9, #8b5cf6);
  color: #fff;
  box-shadow: 0 20px 30px rgba(109, 40, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.benchmark-nav .icon {
  color: inherit;
}

.benchmark-prev {
  left: 1.25rem;
}

.benchmark-next {
  right: 1.25rem;
}

.benchmark-nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 24px 36px rgba(109, 40, 217, 0.35);
}

.benchmark-nav:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow: 0 15px 24px rgba(109, 40, 217, 0.3);
}

.benchmark-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.benchmark-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.benchmark-dot.is-active {
  background: #7c3aed;
  width: 30px;
}

@media (max-width: 768px) {
  .benchmark-carousel-container {
    padding: 2rem 1.5rem 2.5rem;
  }

  .benchmark-slider {
    min-height: 0;
  }

  .benchmark-nav {
    height: 2.5rem;
    width: 2.5rem;
    top: auto;
    bottom: 4.5rem;
    transform: translateY(0);
  }

  .benchmark-prev {
    left: 1rem;
  }

  .benchmark-next {
    right: 1rem;
  }

  .benchmark-nav:hover,
  .benchmark-nav:active {
    transform: scale(1);
  }

  .benchmark-dots {
    margin-top: 1.25rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
