body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.navbar-brand span {
  letter-spacing: 0.03em;
}

#hero .carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.news-ticker {
  white-space: nowrap;
}

.news-track {
  animation: newsScroll 30s linear infinite;
}

@keyframes newsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-item img {
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.25);
}

footer a {
  color: #f8f9fa;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Alex News Ticker ===== */
.alex-news-ticker {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
}

.alex-news-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: alexNewsScroll 40s linear infinite;
}

/* PAUSE ON HOVER */
.alex-news-ticker:hover .alex-news-track {
  animation-play-state: paused;
}

/* Each news item */
.alex-news-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 2rem;
  text-decoration: none;
  color: #212529;
  white-space: nowrap;
  border-right: 1px solid #e5e5e5;
  transition: background 0.2s;
  flex-shrink: 0;
}

.alex-news-item:hover {
  background: #f0fdf4;
  color: #198754;
}

/* Thumbnail */
.alex-news-thumb {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* Label badge */
.alex-news-label {
  background: #198754;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Title */
.alex-news-title {
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Separator */
.alex-news-sep {
  color: #ced4da;
  font-size: 1rem;
}

/* Meta */
.alex-news-meta {
  font-size: 0.8rem;
  color: #198754;
  white-space: nowrap;
}

/* Keyframe — scrolls entire track (50% = one full original set) */
@keyframes alexNewsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .alex-news-item {
    padding: 0.5rem 1rem;
    gap: 0.4rem;
  }
  .alex-news-thumb {
    width: 36px;
    height: 36px;
  }
  .alex-news-title {
    font-size: 0.8rem;
    max-width: 200px;
  }
  .alex-news-sep,
  .alex-news-meta {
    display: none;
  }
}
