/* ===========================
   News Rail (Auto Rotating)
   =========================== */

/* Main container */
.news-rail {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto;
  max-width: 900px;
  padding: 0 10px;
}

/* Track that holds all slides */
.news-track {
  position: relative;
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* ensures arrows can layer above */
}

/* Each slide */
.news-slide {
  display: none;
  padding: 14px 56px; /* space for nav arrows */
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.news-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

/* Links inside slides */
.news-slide a {
  color: #0a6abf;
  font-weight: 700;
  text-decoration: none;
}

.news-slide a:hover {
  text-decoration: underline;
}

/* Badge styling */
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  color: #111;
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ===========================
   Navigation Arrows
   =========================== */
.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold) !important; /* enforce gold */
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5; /* on top of everything */
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  pointer-events: auto;
  opacity: 0.8; /* slightly transparent by default */
}

.news-nav:hover {
  transform: translateY(-50%) scale(1.15);
  color: var(--cyan) !important; /* hover accent */
  opacity: 1;
}

.news-nav.prev {
  left: 2px;
}

.news-nav.next {
  right: 2px;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
  .news-slide {
    padding: 12px 40px;
    font-size: 14px;
  }

  .news-nav {
    font-size: 22px;
  }
}
