/* Upcoming Events — image slider (no dots / progress bar) */
.upcoming-events {
  width: 100%;
  max-width: 100%;
  padding: 0 0 50px;
  margin-top: 0;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.upcoming-events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0c2c5c, #f5c518, #e87722, #0c2c5c);
  background-size: 200% 100%;
  animation: ue-gradient-flow 5s ease infinite;
  z-index: 2;
}

@keyframes ue-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.upcoming-events .events-header {
  margin: 0;
  padding: 0;
}

.upcoming-events .events-topbar{
  width: 100%;
  background: #0b2a5a;
  color: #fff;
  text-align: center;
  padding: 22px 16px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
  margin: 0 0 26px;
}

.upcoming-events .sec-hdr h2,
.upcoming-events .sec-hdr .sub {
  color: var(--brand, #273272) !important;
}

.upcoming-events .sec-hdr .sub {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.75;
}

.upcoming-events .events-slider-wrapper {
  position: relative;
  width: 100%;
}

.upcoming-events .events-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f0f2f6;
}

.upcoming-events .events-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.upcoming-events .event-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.upcoming-events .event-card {
  display: block;
  width: 100%;
  height: clamp(280px, 38vw, 520px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: #e8ecf2;
}

.upcoming-events .event-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  filter: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .upcoming-events .event-card {
    height: clamp(200px, 52vw, 380px);
  }
}
