/*--------------------------------------------------------------
# Announcements Slideshow
# Same-height cards, natural (aspect-ratio-driven) widths.
# Remove any previous .ann-* rules from main.css and paste
# this block in their place.
--------------------------------------------------------------*/

.announcements-section {
  padding: 0 12px 20px;
  margin: 0 0 20px;
}

.announcements-title {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8B0000 0%, #5F0000 100%);
  padding: 10px 18px;
  border-radius: 12px 12px 0 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
}

.announcements-title i {
  font-size: 1.1rem;
}

/* Shell: positions the arrows and clips the viewport */
.ann-slider-shell {
  position: relative;
  background: linear-gradient(160deg, #e8dcc8 0%, #d9c9a8 100%);
  border-radius: 0 0 12px 12px;
  padding: 16px 0 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.18);
  border-top: none;
}

/* Viewport: the visible window over the track */
.ann-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 44px;           /* side padding so arrows sit outside track */
  box-sizing: border-box;
}

/* Track: flex row — cards sit side-by-side at natural widths */
.ann-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  will-change: transform;
  /* transition injected by JS */
}

/* Card: fixed height, width = auto (driven by image aspect ratio) */
.ann-card {
  flex: 0 0 auto;
  height: 340px;             /* ← uniform height; tweak to taste */
  width: auto !important;    /* override any JS-set width */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #111;
}

.ann-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

/* Image fills the card height; width auto-follows aspect ratio */
.ann-card-img-wrap {
  width: auto;
  height: 100%;
  display: block;
}

.ann-card-img-wrap img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;       /* show full poster without cropping */
  background: #111;
}

/* Arrows */
.ann-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 0, 0, 0.85);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.ann-arrow:hover {
  background: #8B0000;
}

.ann-arrow-prev { left: 6px; }
.ann-arrow-next { right: 6px; }

/* Mobile */
@media (max-width: 768px) {
  .ann-card {
    height: 240px;
  }

  .ann-viewport {
    padding: 0 38px;
  }

  .ann-arrow {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}