/* =========================================================
   RECENT UPDATES - HORIZONTAL SCROLL STRIP
   ========================================================= */

.updates-scroll-section {
  width: 100%;
  background-color: #fdf6d9;      /* light yellow strip */
  border-top: 1px solid #f0e6b0;
  border-bottom: 1px solid #f0e6b0;
  overflow: hidden;
  position: relative;
}

.updates-scroll-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Fixed left label like "Recent Updates" */
.updates-scroll-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #9179aa;      /* matches your edu-card purple */
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.08);
}

.updates-scroll-label i {
  font-size: 16px;
}

/* Scrolling viewport */
.updates-scroll-track-outer {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

/* The moving track - scrolls items across once, then resets */
.updates-scroll-track {
  display: inline-flex;
  align-items: center;
  animation: updatesScrollMove 18s linear infinite;
  will-change: transform;
  padding-left: 100%;
}

/* Pause on hover so users can read/click */
.updates-scroll-track-outer:hover .updates-scroll-track {
  animation-play-state: paused;
}

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

/* Individual update item */
.updates-scroll-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  color: #4a3b28;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #e9dc9a;
  transition: color 0.2s ease;
}

.updates-scroll-item:hover {
  color: #6a4fa3;
  text-decoration: underline;
}

/* Flashing "New" badge */
.updates-badge-new {
  display: inline-block;
  background-color: #e63946;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: updatesBadgeFlash 1.2s ease-in-out infinite;
}

@keyframes updatesBadgeFlash {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
  .updates-scroll-label {
    padding: 10px 12px;
    font-size: 13px;
  }
  .updates-scroll-label span {
    display: none;              /* icon only on small screens */
  }
  .updates-scroll-item {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .updates-scroll-track {
    animation: none;
  }
  .updates-badge-new {
    animation: none;
  }
}
