/* ===== TOP BAR ===== */
.top-bar {
  background-color: #1e3a8a; /* blue-900 */
  color: white;
  font-size: 12px;
}

/* ===== HEADER ===== */
.main-header {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ===== NAVBAR ===== */
.main-nav {
  background-color: #1e40af;
}

.main-nav a:hover {
  color: #bfdbfe;
}

/* ===== TICKER ===== */
.ticker-wrapper {
  overflow: hidden;
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker linear infinite;
  animation-duration: 40s; /* base speed */
}

/* Responsive speed control */
@media (max-width: 768px) {
  .ticker-text {
    animation-duration: 25s;
  }
}

@media (min-width: 1200px) {
  .ticker-text {
    animation-duration: 50s;
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


