/* Home page — portfolio preview carousel */

.portfolio-card .card-body-link {
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}

.portfolio-card .card-body-link:hover .cta {
  background: var(--td-navy);
  color: var(--td-white);
  box-shadow: 2px 2px 0 var(--td-navy);
}

.portfolio-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.portfolio-carousel-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--td-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(15, 29, 71, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-carousel-btn:hover {
  background: var(--td-white);
  transform: translateY(-50%) scale(1.05);
}

.portfolio-carousel-btn:focus-visible {
  outline: 2px solid var(--td-blue);
  outline-offset: 2px;
}

.portfolio-carousel-btn--prev {
  left: 0.65rem;
}

.portfolio-carousel-btn--next {
  right: 0.65rem;
}

.portfolio-carousel-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.portfolio-carousel-dots {
  pointer-events: auto;
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 29, 71, 0.55);
}

.portfolio-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.portfolio-carousel-dot.is-active {
  background: var(--td-blue);
  transform: scale(1.15);
}

.portfolio-carousel-dot:focus-visible {
  outline: 2px solid var(--td-light-blue);
  outline-offset: 2px;
}

.portfolio-carousel.is-transitioning .preview-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.portfolio-list-error {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 15px;
  color: var(--td-gray);
  background: var(--td-white);
  border-radius: 12px;
  border: 1px solid rgba(15, 29, 71, 0.08);
}
