/* ACI Events Carousel */

.aci-events-section {
  margin: 0 0 12px;
}

.aci-events-carousel {
  position: relative;
  overflow: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.aci-events-section.aci-carousel-loading {
  position: relative;
  min-height: 420px;
}

.aci-events-section.aci-carousel-loading .aci-events-carousel {
  opacity: 0;
}

.aci-events-section.aci-carousel-loading .aci-events-carousel > .aci-event-card {
  display: none !important;
}

.aci-events-section.aci-carousel-loading::after {
  content: "";
  position: absolute;
  top: 180px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid rgba(0, 58, 140, 0.18);
  border-top-color: #003a8c;
  border-radius: 50%;
  animation: aciEventsSpin 0.8s linear infinite;
}

.aci-events-section.aci-carousel-ready .aci-events-carousel {
  animation: aciEventsFadeIn 0.25s ease both;
}

.aci-events-section .aci-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.aci-events-section .aci-carousel-title,
.aci-events-nav .aci-carousel-title {
  margin: 0;
  color: #003a8c;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.aci-events-section .aci-carousel-nav,
.aci-events-nav .aci-carousel-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.aci-events-section .aci-carousel-prev,
.aci-events-section .aci-carousel-next,
.aci-events-nav .aci-carousel-prev,
.aci-events-nav .aci-carousel-next {
  background: #5e9acc;
  border-radius: 50px;
  width: 45px;
  height: 45px;
  color: #fff;
  font-size: 20px;
  border: 0;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.aci-events-section .aci-carousel-prev:hover,
.aci-events-section .aci-carousel-next:hover,
.aci-events-nav .aci-carousel-prev:hover,
.aci-events-nav .aci-carousel-next:hover {
  background: #f7ce26;
  color: #003a8c;
}

.aci-events-carousel .slick-track {
  display: flex !important;
}

.aci-events-carousel .slick-slide {
  height: auto;
  display: flex !important;
  align-items: stretch;
}

.aci-events-carousel .aci-event-card {
  height: auto;
  min-width: 0;
}

.aci-event-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex !important;
  flex-direction: column;
}

.aci-event-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.aci-event-card .aci-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: #fff;
}

.aci-event-card .aci-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.aci-event-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f3f5f8;
  aspect-ratio: 16 / 9;
}

.aci-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.aci-event-card:hover .aci-event-image img {
  transform: scale(1.04);
}

/* Date-free cards use the webinar-style, full-image treatment. */
.aci-event-card--without-date {
  background: #003a8c;
}

.aci-event-card--without-date .aci-card-link {
  background: #003a8c;
  color: #fff;
  min-height: 520px;
  position: relative;
  aspect-ratio: 1 / 2;
  justify-content: flex-end;
}

.aci-event-card--without-date .aci-event-image {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  background: #003a8c;
}

.aci-event-card--without-date .aci-event-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 58, 140, 0.12) 0%, rgba(0, 58, 140, 0.66) 55%, rgba(0, 38, 92, 0.88) 100%);
  pointer-events: none;
}

.aci-event-card--without-date .aci-event-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.aci-event-card--without-date .aci-event-title {
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin: 0 0 16px;
  padding: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.aci-event-card--without-date .aci-event-card-meta {
  margin-bottom: 22px;
}

.aci-event-card--without-date .aci-event-location,
.aci-event-card--without-date .aci-event-description {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.aci-event-card--without-date .aci-event-description {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.aci-event-card--without-date .aci-category-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.aci-event-card--without-date .aci-event-actions {
  margin-top: 0;
  padding: 0;
  text-align: left;
}

.aci-event-card--with-date .aci-event-content {
  padding: 34px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.aci-event-card-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
}

.aci-event-meta-item {
  padding: 4px 0;
}

.aci-event-dates {
  color: #ed7d22;
  font-size: 16px;
  padding: 8px 0;
}

.aci-event-date-label {
  color: #003a8c;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 0 0;
  text-transform: uppercase;
}

.aci-event-location {
  color: #ed7d22;
  font-size: 14px;
  font-weight: 300;
}

.aci-event-description {
  color: #3f4b5b;
  font-size: 18px;
  font-weight: 700;
}

.aci-event-categories {
  margin: 0 0 12px;
}

.aci-event-categories .aci-category-tag {
  display: inline-block;
  background: #5e9acc;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin: 0 6px 6px 0;
  padding: 3px 7px;
}

.aci-event-card--with-date .aci-event-title {
  margin: 0 0 18px;
  padding: 0;
  color: #003a8c !important;
  font-size: 28px !important;
  line-height: 1.16 !important;
  text-transform: uppercase !important;
}

.aci-event-actions {
  text-align: left;
  padding: 0;
}

.aci-event-card .aci-btn {
  display: inline-block;
  padding: 11px 18px;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-align: center;
}

.aci-event-card .aci-btn-primary {
  background: #5e9acc;
  color: #fff;
}

.aci-event-card .aci-btn-primary:hover,
.aci-event-card .aci-card-link:hover .aci-btn-primary {
  background: #f7ce26;
  color: #003a8c;
}

.aci-event-card .aci-card-link .aci-btn {
  pointer-events: none;
}

.aci-empty {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
}

@keyframes aciEventsSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aciEventsFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .aci-events-section .aci-carousel-header,
  .aci-events-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}


