/* ACI Events Carousel - Self-contained styles
 * Layout matches Training Dates three-zone card pattern
 */

/* Carousel Layout */
.aci-events-carousel {
  position: relative;
  overflow: hidden;
}

.aci-events-section .aci-carousel-header {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 1.5rem;
}

.aci-events-section .aci-carousel-title {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  display: none;
}

.aci-events-section .aci-carousel-nav {
  display: flex;
  gap: 0.5rem;
}

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

.aci-events-section .aci-carousel-prev:hover,
.aci-events-section .aci-carousel-next:hover {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

/* Slick equal-height overrides */
.aci-events-carousel .slick-track {
  display: flex !important;
}

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

/* Card */
.aci-event-card {
  min-width: 300px;
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex !important;
  flex-direction: column;
}

.aci-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Clickable card link */
.aci-event-card .aci-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

/* Image - 16:9 */
.aci-event-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  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.05);
}

/* Zone 1: Content (date meta + categories, above title) */
.aci-event-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.aci-event-date-meta {
  margin-bottom: 0;
}

.aci-event-date-meta .aci-meta-date {
  margin-top: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  color: #ed7d22;
}

.aci-event-date-meta .aci-meta-items {
  padding: 6px 0;
}

.aci-event-date-meta .aci-category-tag {
  display: inline-block;
  background: transparent;
  border: none;
  color: #ed7d22;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

/* Zone 2: Title (between the two meta zones) */
.aci-event-card .aci-event-title {
  margin: 0 0 10px 0;
  margin-bottom: auto;
  padding: 0 15px;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

/* Zone 3: Details meta (location + theme, below title) */
.aci-event-details-meta {
  padding: 0 15px;
}

.aci-event-details-meta .aci-meta-items {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  gap: 0;
  padding: 6px 0;
}

.aci-event-details-meta .aci-location-tag {
  display: inline-block;
  background: transparent;
  border: none;
  color: #ed7d22;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

.aci-event-details-meta .aci-theme-tag {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

/* Separator between location and theme when both present */
.aci-event-details-meta .aci-location-tag + .aci-theme-tag::before {
  content: "|";
  margin: 0 10px;
  color: rgba(255,255,255,0.3);
  font-style: normal;
}

/* Action button */
.aci-event-actions {
  text-align: center;
  padding: 0 15px 15px;
}

.aci-event-card .aci-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.aci-event-card .aci-btn-primary {
  background: #0073aa;
  color: white;
}

.aci-event-card .aci-btn-primary:hover {
  background: #005a87;
  color: white;
}

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

.aci-event-card .aci-card-link:hover .aci-btn-primary {
  background: #005a87;
}

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

/* Responsive */
@media (max-width: 768px) {
  .aci-event-card {
    min-width: 280px;
  }

  .aci-events-section .aci-carousel-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
