/* BPT Eventos - Carousel */
.bpt-eventos {
  margin: 0;
  padding: 0;
}

.bpt-eventos .splide {
  position: relative;
  overflow: visible; /* allow arrows outside */
}

.bpt-eventos .splide__track {
  overflow: hidden;
}

.bpt-eventos .splide__list {
  display: flex;
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Card */
.bpt-event-card {
  padding: 0;
}

.bpt-event-card__link {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  text-decoration: none !important;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.bpt-event-card__link:hover {
  box-shadow: none;
  transform: none;
}

.bpt-event-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
  position: relative;
}

.bpt-event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
  will-change: transform;
}

/* Mini calendar badge */
.bpt-event-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 64px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  background: #ffffff;
  color: #1a1a1a;
  z-index: 3;
  text-align: center;
}

.bpt-event-card__badge-month {
  background: var(--ast-global-color-0);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
}

.bpt-event-card__badge-day {
  background: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 0 8px;
}

@media (max-width: 640px) {
  .bpt-event-card__badge { width: 56px; top: 10px; left: 10px; }
  .bpt-event-card__badge-day { font-size: 1.1rem; padding: 6px 0; }
  .bpt-event-card__badge-month { font-size: 0.65rem; padding: 3px 0; }
}

/* Hover effect: only zoom the image */
.bpt-event-card__link:hover .bpt-event-card__thumb img {
  transform: scale(1.06);
}

.bpt-event-card__content {
  display: flex;
  flex-direction: column;
  padding: 24px 40px;
  background: #f7f7f7;
  border-radius: 24px;
  margin-top: -30% !important;
  z-index: 2;
}

.bpt-event-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0
}

.bpt-event-card__date {
  margin: 0;
  font-size: .95rem;
  color: rgba(0,0,0,.75);
}

.bpt-event-card__place {
  margin: 0;
  font-size: .95rem;
  color: rgba(0,0,0,.7);
}

/* Empty state */
.bpt-event-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #667085;
  background: #f8f9fa;
  border: 1px dashed #e0e0e0;
  border-radius: 12px;
}

/* Arrows */
.bpt-eventos .splide__arrow {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 5;
}

.bpt-eventos .splide__arrow svg {
  fill: #333;
}

/* Position arrows outside on larger screens */
.bpt-eventos .splide__arrow--prev { left: -28px; }
.bpt-eventos .splide__arrow--next { right: -28px; }

/* Responsive */
@media (max-width: 1024px) {
  .bpt-event-card__content { padding: 14px 16px; }
  /* bring arrows inside on smaller screens */
  .bpt-eventos .splide__arrow--prev { left: 8px; }
  .bpt-eventos .splide__arrow--next { right: 8px; }
}

@media (max-width: 640px) {
  .bpt-event-card__title { font-size: 1rem; }
  .bpt-event-card__date, .bpt-event-card__place { font-size: .9rem; }
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
