/* ============================================================
   Upcoming Events Carousel — Light / Clean (matches design)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --uec-bg:           #f0f0f0;
  --uec-card-bg:      #d4d4d4;
  --uec-white:        #ffffff;
  --uec-text-title:   #ffffff;
  --uec-text-desc:    rgba(255,255,255,0.88);
  --uec-nav-prev-bg:  #2d3f6b;
  --uec-nav-next-bg:  #f26522;
  --uec-dot-inactive: rgba(255,255,255,0.55);
  --uec-dot-active:   #f26522;
  --uec-radius:       14px;
  --uec-font:         'Inter', sans-serif;

  --uec-card-width:   760px;
  --uec-card-height:  400px;
  --uec-gap:          0px;
  --uec-transition:   550ms cubic-bezier(0.42, 0, 0.18, 1);
}

/* ── Section ─────────────────────────────────────────────── */
.uec-section {
  background: transparent;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* ── Header — hidden ─────────────────────────────────────── */
.uec-header {
  display: none;
}

/* ── Carousel Wrapper ────────────────────────────────────── */
.uec-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Track Container ─────────────────────────────────────── */
.uec-track-container {
  width: 100%;
  overflow: hidden;
  padding: 12px 0 16px;
}

/* ── Track ───────────────────────────────────────────────── */
.uec-track {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--uec-gap);
  transition: transform var(--uec-transition);
  will-change: transform;
}

/* ── Card (default = side card) ──────────────────────────── */
.uec-card {
  flex: 0 0 var(--uec-card-width);
  height: var(--uec-card-height);
  position: relative;
  border-radius: var(--uec-radius);
  transition:
    transform  var(--uec-transition),
    filter     var(--uec-transition),
    box-shadow var(--uec-transition);
  transform: scale(0.94);
  filter: brightness(0.88);
  cursor: pointer;
  overflow: hidden;
}

.uec-card.is-active {
  transform: scale(1);
  filter: brightness(1);
  box-shadow: 0 10px 48px rgba(0,0,0,0.2);
  cursor: default;
  z-index: 2;
}

/* ── Card Inner ──────────────────────────────────────────── */
.uec-card-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--uec-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--uec-card-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Gradient Overlay ────────────────────────────────────── */
.uec-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--uec-radius);
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0)    35%,
    rgba(0,0,0,0.5)  68%,
    rgba(0,0,0,0.78) 100%
  );
  pointer-events: none;
}

/* No overlay on plain side cards */
.uec-card:not(.is-active) .uec-overlay {
  opacity: 0;
}

/* ── Dots inside card — top center ───────────────────────── */
.uec-card-dots {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.uec-card.is-active .uec-card-dots {
  opacity: 1;
  pointer-events: auto;
}

.uec-card-dot-item {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
}

.uec-card-dot-item.active {
  background: var(--uec-dot-active);
  transform: scale(1.18);
}

.uec-card-dot-item:hover:not(.active) {
  background: rgba(255,255,255,0.75);
}

/* ── Card Content ────────────────────────────────────────── */
.uec-card-content {
  position: relative;
  z-index: 4;
  padding: 18px 28px 26px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity   380ms ease 80ms,
    transform var(--uec-transition);
}

.uec-card.is-active .uec-card-content {
  opacity: 1;
  transform: translateY(0);
}

.uec-card-title {
  font-family: var(--uec-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--uec-text-title);
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.uec-card-desc {
  font-family: var(--uec-font);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--uec-text-desc);
  margin: 0 0 0;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CTA Button ──────────────────────────────────────────── */
.uec-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--uec-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  background: var(--uec-nav-next-bg);
  padding: 8px 18px;
  border-radius: 20px;
  margin-top: 14px;
  display: none; /* hidden per design — add back if needed */
}

/* ── Navigation Arrows ───────────────────────────────────── */
.uec-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.uec-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.uec-prev {
  background: var(--uec-nav-prev-bg);
  color: #fff;
  left: 28px;
}

.uec-next {
  background: var(--uec-nav-next-bg);
  color: #fff;
  right: 28px;
}

.uec-nav:hover {
  transform: translateY(-50%) scale(1.09);
  box-shadow: 0 6px 26px rgba(0,0,0,0.28);
}

.uec-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.uec-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Bottom dots — hidden (using in-card dots instead) ───── */
.uec-dots {
  display: none;
}

/* ── No Events ───────────────────────────────────────────── */
.uec-no-events {
  font-family: var(--uec-font);
  text-align: center;
  color: #777;
  padding: 40px;
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .uec-track,
  .uec-card,
  .uec-card-content,
  .uec-nav { transition: none !important; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --uec-card-width: 620px; --uec-card-height: 360px; }
}
@media (max-width: 960px) {
  :root { --uec-card-width: 500px; --uec-card-height: 310px; }
}
@media (max-width: 768px) {
  :root { --uec-card-width: 80vw; --uec-card-height: 52vw; }
  .uec-prev { left: 10px; }
  .uec-next { right: 10px; }
}
@media (max-width: 480px) {
  :root { --uec-card-width: 86vw; --uec-card-height: 62vw; --uec-gap: 14px; }
  .uec-nav { width: 38px; height: 38px; }
  .uec-nav svg { width: 16px; height: 16px; }
  .uec-prev { left: 6px; }
  .uec-next { right: 6px; }
}

/* ============================================================
   Past Events Grid  [past_events]
   ============================================================ */

.uec-pe-wrap {
  display: grid;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 2-column layout */
.uec-pe-cols-2 {
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

/* 1-column layout */
.uec-pe-cols-1 {
  grid-template-columns: 1fr;
}

/* ── Each item row ─────────────────────────────────────────── */
.uec-pe-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid #e2e2e2;
  position: relative;
}

/* Remove bottom border on last item in each column */
/* For 2-col: last two items, for 1-col: just the last */
.uec-pe-cols-2 .uec-pe-item:nth-last-child(-n+2) {
  border-bottom: none;
}
.uec-pe-cols-1 .uec-pe-item:last-child {
  border-bottom: none;
}

/* Vertical divider between 2 columns */
.uec-pe-cols-2 {
  position: relative;
}
.uec-pe-cols-2::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: #e2e2e2;
  pointer-events: none;
	display:none;
}

/* ── Thumbnail ─────────────────────────────────────────────── */
.uec-pe-thumb {
  flex: 0 0 170px;
  width: 170px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: #e8e8e8;
}

.uec-pe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}

.uec-pe-item:hover .uec-pe-thumb img {
  transform: scale(1.04);
}

.uec-pe-thumb--placeholder {
  background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
}

/* ── Body ──────────────────────────────────────────────────── */
.uec-pe-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}

/* ── Title ─────────────────────────────────────────────────── */
.uec-pe-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a6e;
  margin: 0 0 10px;
  line-height: 1.35;
  text-decoration: none;
}

/* ── Description ───────────────────────────────────────────── */
.uec-pe-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Learn More Button ─────────────────────────────────────── */
.uec-pe-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #222;
  text-decoration: none;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  padding: 8px 22px;
  align-self: flex-start;
  transition:
    border-color 200ms ease,
    color        200ms ease,
    background   200ms ease;
}

.uec-pe-btn:hover {
  border-color: #1e3a6e;
  color: #ffffff;
  background: #1e3a6e;
}

/* ── Empty state ───────────────────────────────────────────── */
.uec-pe-empty {
  font-family: 'Inter', sans-serif;
  color: #888;
  text-align: center;
  padding: 32px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .uec-pe-cols-2 {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .uec-pe-cols-2::after { display: none; }
  .uec-pe-cols-2 .uec-pe-item:nth-last-child(-n+2) {
    border-bottom: 1px solid #e2e2e2;
  }
  .uec-pe-cols-2 .uec-pe-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 540px) {
  .uec-pe-item {
    flex-direction: column;
    gap: 14px;
  }
  .uec-pe-thumb {
    flex: none;
    width: 100%;
    height: 200px;
  }
}

/* Active card — show pointer to hint it's clickable */
.uec-card.is-active {
  cursor: pointer;
}
/* Subtle "click me" ring on hover of active card */
.uec-card.is-active:hover .uec-card-inner {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
