/* ACI News Carousel */

.aci-news-section {
  margin: 0 0 32px;
}

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

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

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

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

.aci-news-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: aciNewsSpin 0.8s linear infinite;
}

.aci-news-section.aci-carousel-ready .aci-news-carousel {
  animation: aciNewsFadeIn 0.25s ease both;
}

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

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

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

.aci-news-section .aci-carousel-prev,
.aci-news-section .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-news-section .aci-carousel-prev:hover,
.aci-news-section .aci-carousel-next:hover {
  background: #f7ce26;
  color: #003a8c;
}

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

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

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

.aci-news-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-news-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

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

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

.aci-news-image {
  flex: 0 0 46%;
  width: 46%;
  position: relative;
  overflow: hidden;
  background: #f3f5f8;
  min-height: 190px;
}

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

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

.aci-news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.aci-news-card-content h4 {
  margin: 0 0 14px;
  color: #003a8c !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.aci-news-date {
  color: #ed7d22;
  font-size: 14px;
  font-weight: 600;
}

.aci-news-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-news-card .aci-btn-primary {
  background: #5e9acc;
  color: #fff;
}

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

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

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

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

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

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

  .aci-news-card .aci-card-link {
    flex-direction: column;
  }

  .aci-news-image {
    flex-basis: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}
