/* --- AEPC Events Carousel (drop-in) --- */
.aepc-carousel,
.aepc-carousel * {
  box-sizing: border-box;
}

.aepc-carousel {
  width: 100%;
  max-width: 100%;
}

/* Reserve space for arrows so they don't overlap cards */
.aepc-carousel-inner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 90px;
}

/* Hide overflow like a real carousel */
.aepc-viewport {
  overflow: hidden;
}

/* Sliding track */
.aepc-track {
  display: flex;
  gap: 28px;
  will-change: transform;
  transition: transform 180ms ease; /* faster slide */
}

/* Cards: 3 / 2 / 1 responsive */
.aepc-card {
  flex: 0 0 calc((100% - 56px) / 3);
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  background: #fff;
  padding: 22px;
  min-height: 190px;

  display: flex;
  flex-direction: column;
}

@media (max-width: 980px) {
  .aepc-card { flex-basis: calc((100% - 28px) / 2); }
}

@media (max-width: 640px) {
  .aepc-carousel-inner { padding: 0 56px; }
  .aepc-card { flex-basis: 100%; }
}

/* Date (make it more prominent) */
.aepc-date {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: 1;
  margin-bottom: 6px;
}

/* Title */
.aepc-title {
  margin: 0 0 16px 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.aepc-title a {
  text-decoration: none;
}

.aepc-title a:hover {
  text-decoration: underline;
}

/* Button block (inherits theme styles) */
.wp-block-button.aepc-btn {
  margin-top: auto; /* keep CTA at bottom */
}

/* Ensure button is pill-like even if theme is inconsistent */
.wp-block-button.aepc-btn .wp-block-button__link {
  border-radius: 999px;
  padding: 12px 22px;
}

/* Arrows (SVG) - cohesive + no overlap */
.aepc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #111; /* affects SVG via currentColor */
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  padding: 0;
}

.aepc-prev { left: 16px; }
.aepc-next { right: 16px; }

.aepc-nav:hover {
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.14);
}

.aepc-nav svg {
  display: block;
}

/* Dots */
.aepc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.aepc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  opacity: .7;
}

.aepc-dot.is-active {
  opacity: 1;
  background: #111;
  border-color: #111;
}

.aepc-event-date{
  padding:10px 12px;
  border:1px solid #e5e5e5;
  border-radius:12px;
}

/* status pill */
.aepc-event-status{
  font-size:12px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  display:inline-block;
  width:fit-content;
  line-height:1;
}

.aepc-event-status.is-past{
  background:#f1f1f1;
  color:#666;
}

.aepc-event-status.is-upcoming{
  background:#e6f4ea;
  color:#1e7e34;
}

/* wrapper */
.aepc-event-meta{
  margin:0 0 16px 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}