/* FILE: css/components/campaign-banner.css
   Top campaign banner (The Ripple Effect). Injected by js/pages/eoyc-campaign.js.
   Fixed above the header; the header is shifted down by the banner height.
   Colors and type use tokens from css/base/variables.css. */

:root {
  --campaign-banner-h: 5rem;
}

.campaign-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--campaign-banner-h);
  z-index: 16;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.5rem;
  background-color: var(--Navy-Blue-100);
  background-image: url("/assets/images/global/banner/banner__eoyc__2026-320.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 576px) {
  .campaign-banner { background-image: url("/assets/images/global/banner/banner__eoyc__2026-576.webp"); 
  padding: 0 2.5rem;}
}
@media (min-width: 768px) {
  :root { --campaign-banner-h: 4.5rem; }
  .campaign-banner { gap: 2rem; background-image: url("/assets/images/global/banner/banner__eoyc__2026-768.webp"); }
}
@media (min-width: 992px) {
  .campaign-banner { background-image: url("/assets/images/global/banner/banner__eoyc__2026-992.webp"); }
}
@media (min-width: 1200px) {
  .campaign-banner { background-image: url("/assets/images/global/banner/banner__eoyc__2026-1200.webp"); }
}
@media (min-width: 1400px) {
  .campaign-banner { background-image: url("/assets/images/global/banner/banner__eoyc__2026-1400.webp"); }
}
@media (min-width: 1920px) {
  .campaign-banner { background-image: url("/assets/images/global/banner/banner__eoyc__2026-1920.webp"); }
}

.campaign-banner__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--fs-h5);
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  color: var(--Primary-Navy-Blue);
}

.campaign-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 6.86px;
  background-color: var(--Primary-Navy-Blue);
  color: var(--Neutral-Gray-100);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 500;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.campaign-banner__button:hover {
  background-color: var(--Navy-Blue-900);
}

.campaign-banner__button:focus-visible {
  outline: 3px solid var(--Primary-Neutral-Indigo);
  outline-offset: 2px;
}

/* Push the page and the fixed header below the fixed banner, so the hero keeps its original spacing */
body.has-campaign-banner {
  padding-top: var(--campaign-banner-h);
}

body.has-campaign-banner #main-header {
  top: var(--campaign-banner-h);
}
