/* ============= Homepage Important Notice Bar (homepage only) ============= */
.home-notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  background: #10233f;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 24px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.home-notice-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}

.home-notice-content strong {
  font-weight: 600;
  color: #DC965A;
}

.home-notice-dup {
  display: none;
}

/* Homepage only: reserve space for the notice bar and shift the fixed navbar down */
body.home-page {
  padding-top: var(--notice-h, 0px);
}

body.home-page .navbar.fixed-top {
  top: var(--notice-h, 0px);
}

/* Mobile: single-line slow marquee so the text does not stack into many lines */
@media (max-width: 767.98px) {
  .home-notice-bar {
    overflow: hidden;
    padding: 9px 0;
    font-size: 12px;
  }

  .home-notice-content {
    max-width: none;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    animation: notice-marquee 55s linear infinite;
  }

  .home-notice-dup {
    display: inline;
  }

  .home-notice-text {
    padding-right: 4rem;
  }

  .home-notice-bar:hover .home-notice-content,
  .home-notice-bar:active .home-notice-content {
    animation-play-state: paused;
  }
}

@keyframes notice-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-notice-content {
    animation: none;
  }
}
