/* Founding Fuel slideshow overrides for Tailwind-first layout */
.ff-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ff-carousel .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ff-carousel .carousel-item {
  position: relative;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.ff-carousel .carousel-item.is-active {
  display: block;
  opacity: 1;
}

.ff-carousel .slide {
  width: 100%;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.ff-carousel .slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.ff-carousel .slide .caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ff-carousel__controls {
  pointer-events: none;
}

.ff-carousel__controls,
.ff-carousel__controls::before,
.ff-carousel__controls::after {
  position: absolute;
  inset: 0;
}

.ff-carousel__controls::before,
.ff-carousel__controls::after {
  content: "";
}

.ff-carousel__control {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(17, 24, 39, 0.55);
  color: #ffffff;
  border: none;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.ff-carousel__control:hover,
.ff-carousel__control:focus {
  background-color: rgba(17, 24, 39, 0.85);
  transform: translateY(-1px);
}

.ff-carousel__control:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ff-carousel__control .bi {
  font-size: 1.125rem;
}

.ff-carousel__indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ff-carousel__indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(148, 163, 184, 0.6);
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ff-carousel__indicator:hover,
.ff-carousel__indicator:focus {
  transform: scale(1.1);
  background-color: rgba(71, 85, 105, 0.85);
}

.ff-carousel__indicator:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ff-carousel__indicator.is-active {
  background-color: #1f2937;
}

.ff-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ff-carousel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: #ffffff;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ff-carousel__toggle:hover,
.ff-carousel__toggle:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.ff-carousel__toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ff-carousel__toggle .bi {
  font-size: 1rem;
}

.ff-carousel[data-slides="1"] .ff-carousel__controls,
.ff-carousel[data-slides="1"] .ff-carousel__footer {
  display: none;
}

@media (min-width: 1024px) {
  .ff-carousel .slide img {
    border-radius: 1rem;
  }

  .ff-carousel__control {
    width: 3.5rem;
    height: 3.5rem;
  }
}
