.bclean-provider-projects-carousel {
  --bppc-gap: 18px;
  --bppc-visible-desktop: 3;
  --bppc-visible-tablet: 2;
  --bppc-visible-mobile: 1;
  --bppc-visible: var(--bppc-visible-desktop);
  position: relative;
}

.bppc-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.bppc-viewport {
  overflow: hidden;
  border-radius: 18px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.bppc-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.bppc-slide {
  flex: 0 0 calc(100% / var(--bppc-visible));
  width: calc(100% / var(--bppc-visible));
  padding: 0 calc(var(--bppc-gap) / 2);
  box-sizing: border-box;
}

.bppc-card {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 22px;
  background: #e2e8f0;
}

.bppc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bppc-overlay-end, rgba(0,0,0,.75)) 0%,
    rgba(0,0,0,.35) 32%,
    var(--bppc-overlay-start, rgba(0,0,0,.06)) 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.bppc-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
  -webkit-user-drag: none;
  user-drag: none;
}

.bppc-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.bppc-name {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.bppc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  background: #0299AA;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}

.bppc-card:hover::after,
.bppc-card:focus-within::after {
  opacity: 1;
}

.bppc-card:hover .bppc-overlay,
.bppc-card:focus-within .bppc-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bppc-btn:hover,
.bppc-btn:focus,
.bppc-btn:focus-visible {
  background: #027A88;
  color: #fff;
  box-shadow: 0 8px 18px rgba(2, 122, 136, .35);
  outline: none;
}

.bppc-btn:active {
  transform: translateY(1px);
}

.bppc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.bppc-nav:hover,
.bppc-nav:focus,
.bppc-nav:focus-visible {
  background: #0299AA;
  color: #fff;
  outline: none;
}

.bppc-nav-prev {
  left: 10px;
}

.bppc-nav-next {
  right: 10px;
}

.bppc-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bppc-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer;
}

.bppc-dot.is-active {
  background: #0299AA;
  transform: scale(1.2);
}

.bclean-provider-projects-carousel.is-dragging .bppc-btn {
  pointer-events: none;
}

@media (max-width: 1024px) {
  .bclean-provider-projects-carousel {
    --bppc-visible: var(--bppc-visible-tablet);
  }

  .bppc-card {
    height: 380px;
  }
}

@media (max-width: 767px) {
  .bclean-provider-projects-carousel {
    --bppc-visible: var(--bppc-visible-mobile);
  }

  .bppc-card {
    height: 320px;
    border-radius: 18px;
  }

  .bppc-overlay {
    padding: 14px;
  }

  .bppc-name {
    font-size: 1.05rem;
  }

  .bppc-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (hover: none) {
  .bppc-card::after {
    opacity: 1;
  }

  .bppc-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
