.homepage-banners-wrap--splide {
  position: relative;
  width: 100%;
}

.homepage-banners-wrap--dashboard {
  margin-top: 10px;
}

.homepage-banners-wrap--landing {
  margin-bottom: 0.5rem;
}

.homepage-banners-backdrop {
  display: none;
}

/* Mobile: full width slider only. Desktop: full-width banner bg + centered smaller carousel. */
@media (min-width: 768px) {
  .homepage-banners-wrap--splide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 10rem;
  }

  .homepage-banners-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .homepage-banners-backdrop > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .homepage-banners-backdrop .dashboard-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .homepage-banners-wrap--splide .homepage-banners-splide {
    position: relative;
    z-index: 2;
    width: 33.333%;
    max-width: 33.333%;
    flex: 0 0 33.333%;
  }

  .homepage-banners-wrap--dashboard .homepage-banner-slide {
    border-radius: 0.375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

.homepage-banner-slide {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #061e24;
}

.homepage-banners-wrap--dashboard .homepage-banner-slide {
  border-radius: 0;
}

.homepage-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.homepage-banners-splide .splide__pagination {
  bottom: 0.65rem;
  z-index: 3;
}

.homepage-banners-splide .splide__pagination__page {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.homepage-banners-splide .splide__pagination__page.is-active {
  background: #91dc2c;
  transform: scale(1.15);
}

.homepage-banners-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.homepage-banners-admin-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.homepage-banners-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-banners-admin-item button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
}

.homepage-banners-admin-badge {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(145, 220, 44, 0.9);
  color: #03131c;
}
