/* Home section: Mini Slide (Carousel) */

.vetpro-home-mini-slide {
  width: 100%;
}

.mini-slide-wrapper {
  position: relative;
}

.mini-slide-container {
  position: relative;
  overflow: hidden;
  background: var(--vp-paper);
  border: 1px solid var(--vp-border);
  box-shadow: var(--vp-shadow);
}

.mini-slide-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.mini-slide-item {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 0; /* Removed top and bottom padding */
  background: var(--vp-paper);
}

.mini-slide-image {
  width: 100%;
  max-width: none;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.mini-slide-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.mini-slide-title {
  color: var(--vp-text);
  font-family: var(--vp-font-heading);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  padding: 0 16px;
  margin-top: 16px;
}

/* Carousel Controls */
.mini-slide-control {
  display: none; /* Hide arrows on mobile */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: #f4f4f4;
  border: 2px solid var(--vp-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

/* No hover effect as requested ("sono no l'hover") */

.mini-slide-control--prev {
  left: 0; /* Align to the edge of the image */
}

.mini-slide-control--next {
  right: 0; /* Align to the edge of the image */
}

.control-arrow {
  width: 12px;
  height: 12px;
  display: block;
  background-color: var(--vp-text);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  display: block;
  transition: background-color 0.3s ease;
}

.mini-slide-control--prev .control-arrow {
  transform: rotate(180deg);
}

.mini-slide-control--next .control-arrow {
  transform: none;
}

/* Indicators / Dots */
.mini-slide-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 11;
}

.mini-slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--vp-text);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.mini-slide-indicator.is-active {
  background: var(--vp-text);
}

/* Responsive */
@media (min-width: 768px) {
  .mini-slide-container:hover .mini-slide-control,
  .mini-slide-container:focus-within .mini-slide-control {
    display: flex;
  }
}

@media (max-width: 768px) {
  .mini-slide-item {
    min-height: 200px;
    padding: 0;
  }

  .mini-slide-image img {
    height: 200px;
  }

  .mini-slide-indicators {
    bottom: 16px;
    gap: 6px;
  }

  .mini-slide-indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .mini-slide-item {
    min-height: 170px;
    padding: 0;
  }

  .mini-slide-image img {
    height: 150px;
  }

  .mini-slide-title {
    font-size: 14px;
  }
}
