/* =========================================================
   LINDA MWANANCHI — BRAND OVERRIDES
   Blue-and-white movement palette: primary blue #0044C9,
   white, and dark navy ink #111827. Logo and movement
   imagery are from the official website.
   Loaded after responsive.css on every page, so the values
   here win. Change the colors below to re-skin the whole
   site from this single file.
   ========================================================= */
:root {
  /* template-wide base colors */
  --base-bg: #0044C9;
  --base-color: #ffffff;
  /* main brand color: buttons, links, accents, icons */
  --primary-color: #0044C9;
  /* dark surfaces: top bar, footer, secondary sections */
  --secondary-color: #111827;
  --tertiary-color: #0044C9;
  --quaternary-color: #0044C9;
  /* link and icon hover-state accent */
  --hover-color: #0044C9;
}

/* Replace the template's hard-coded sky-blue page surfaces */
*::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}
body {
  background-color: #ffffff;
}
.topbar__secondary {
  background-color: var(--secondary-color);
}
.topbar__secondary .topbar__list a,
.topbar__secondary .topbar__list a i,
.topbar__secondary .topbar__list a:hover {
  color: #ffffff;
}
.footer {
  background-color: var(--secondary-color);
}
.footer .footer__widget span {
  background-color: var(--primary-color);
}
.footer .footer__widget li a:hover {
  color: #ffffff;
}
.footer-two .footer__bottom-inner,
.footer-two .footer__bottom-inner::after {
  background-color: var(--primary-color);
}
.footer-two .social a {
  background-color: #ffffff;
  color: var(--primary-color);
}
.footer-two .social a:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Button states: blue at rest, white on hover, always readable.
   (The template hard-codes a sky-blue hover panel; these
   overrides replace it.) */
.btn--primary {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #ffffff;
}
.btn--primary::after {
  background-color: #ffffff;
}
.btn--primary:hover,
.btn--primary:hover i,
.btn--primary:hover > span {
  color: var(--primary-color);
}
.btn--secondary {
  background-color: #ffffff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.btn--secondary::before,
.btn--secondary::after {
  background: var(--primary-color);
  color: #ffffff;
}
.btn--secondary > span {
  color: var(--primary-color);
}
.btn--secondary:hover > span {
  color: var(--primary-color);
}

/* Banner text stays above the imagery and remains readable */
.common-banner .common-banner__content {
  position: relative;
  z-index: 2;
}
.common-banner .common-banner__content p {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

/* Homepage hero: the Donate button is the main event */
.donate-hero h2 { font-size: 64px; }
.donate-hero p { font-size: 20px; }
.donate-hero .btn--primary {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  padding: 24px 64px;
}
.donate-hero .banner-bg img {
  object-fit: cover;
  object-position: center 45%;
}

/* Official US Diaspora Tour artwork and Allentown event appeal */
.event-highlight {
  background-color: #ffffff;
  color: var(--secondary-color);
}
.event-highlight h2,
.event-highlight h3 {
  color: var(--secondary-color);
}
.event-highlight .event-date {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
}
.event-highlight .event-copy {
  color: #334155;
  font-size: 18px;
}
.event-highlight .event-poster {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border: 1px solid rgba(17, 24, 39, 0.15);
}

/* Homepage news and diaspora updates */
.news-section {
  background-color: #f8fafc;
  color: var(--secondary-color);
}
.news-section__header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.news-kicker {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-section__header h2 {
  color: var(--secondary-color);
  margin-top: 10px;
}
.news-section__header > p:last-child {
  color: #475569;
  font-size: 18px;
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.news-card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}
.news-card__image--poster {
  object-position: center 22%;
}
.news-card__image--logo {
  object-fit: contain;
  padding: 32px;
  background: #ffffff;
}
.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}
.news-card__meta {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-card h3 {
  color: var(--secondary-color);
  font-size: 25px;
  margin-top: 8px;
}
.news-card__body > p:not(.news-card__meta) {
  color: #475569;
}
.news-card__link {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
}
.news-card__link:hover {
  color: var(--secondary-color);
}
.news-story-callout {
  margin-top: 56px;
  padding: 34px;
  background: var(--secondary-color);
  border-left: 6px solid var(--primary-color);
  color: #ffffff;
}
.news-story-callout h3 {
  color: #ffffff;
}
.news-story-callout p {
  color: #dbe4f0;
}
@media (max-width: 768px) {
  .donate-hero h2 { font-size: 40px; }
  .donate-hero .btn--primary { font-size: 20px; padding: 18px 36px; }
  .event-highlight .event-date { font-size: 20px; }
  .news-card__image { height: 220px; }
}

/* Compact sliding welcome strip in the top bar.
   The ticker spans the FULL width of the bar (text starts at the very
   left edge); the controls float on top at the right with a navy scrim
   so the sliding text never collides with them. */
.topbar__secondary {
  position: relative;
  /* above the header (z-index: 9) so the language dropdown opens over it */
  z-index: 10;
}
/* the header no longer tucks 30px under the strip: that overlap put the
   header in a higher paint layer, which hid the open language dropdown
   behind the Donate button */
.header-secondary .main-header__menu-box {
  top: 0;
  margin-bottom: 0;
}
.topbar__secondary .topbar__inner {
  padding-top: 2px;
  padding-bottom: 3px;
}
/* Slim strip controls */
.topbar__secondary .nice-select {
  height: 24px;
  line-height: 24px;
  padding: 0 24px 0 8px;
  font-size: 12px;
}
.topbar__secondary .nice-select .current {
  display: block;
  line-height: 24px;
}
.topbar__secondary .topbar__items-menu__icon i {
  font-size: 15px;
}
.topbar__secondary .topbar__social-menu {
  height: 24px;
  align-items: center;
}
.topbar__secondary .topbar__social-menu a {
  font-size: 13px;
  line-height: 1;
}
.topbar-flex {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  /* break out of the centered container so the strip is edge-to-edge */
  margin-inline: calc(50% - 50vw);
  padding-inline: 20px;
}
.topbar-marquee {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  top: 2px;
  height: 24px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  /* fade the sliding text well before it reaches the controls */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 340px), transparent calc(100% - 140px));
  mask-image: linear-gradient(to right, #000 calc(100% - 340px), transparent calc(100% - 140px));
}
.topbar__items {
  /* stack above the ticker and give it a solid navy scrim on its left side */
  position: relative;
  z-index: 2;
  background: linear-gradient(to left, var(--secondary-color) 45%, transparent);
  padding-inline-start: 64px;
  margin-inline-end: -20px;
  padding-inline-end: 20px;
  width: auto; /* main.css sets width:100%, which would eat the whole strip */
  gap: 20px;
  row-gap: 8px;
}
.topbar-marquee__item {
  line-height: 1.35;
}
.topbar-marquee__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: topbar-slide 26s linear infinite;
}
.topbar-marquee:hover .topbar-marquee__track {
  animation-play-state: paused;
}
.topbar-marquee__item {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline-end: 72px;
  color: #ffffff;
  font-weight: 600;
}
.topbar-marquee__item a {
  color: #ffffff;
}
.topbar-marquee__item a i {
  color: #ffffff;
  margin-inline-end: 6px;
}
.topbar-marquee__item a:hover {
  text-decoration: underline;
}
@keyframes topbar-slide {
  from { transform: translateX(var(--ticker-shift, -50%)); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-marquee__track { animation: none; }
}

/* Donate page sidebar: new LMM logo over the rally photo */
.cm-sidebar-overview .cm-logo img {
  width: 170px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Google Translate: never show its banner or balloon frames */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
#goog-gt-tt {
  display: none !important;
}
body {
  top: 0 !important;
  position: static !important;
}

/* Topbar right-side controls stay white and readable on the navy strip
   (the template hard-codes them black) */
.topbar__secondary .social a,
.topbar__secondary .select .current,
.topbar__secondary .topbar__items-menu__icon,
.topbar__secondary .topbar__items-menu__icon i {
  color: #ffffff;
}
.topbar__secondary .select::after {
  border-color: #ffffff;
}

/* Footer content must never depend on scroll-triggered animation:
   if AOS has not fired yet (fast scroll, screenshot, JS hiccup), the
   widgets would stay invisible. Render them always. */
.footer [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Sisi Ni Nani declaration — compact homepage strip */
.sisi-strip {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 48px 0;
}
.sisi-strip__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.sisi-strip h2 {
  color: #ffffff;
  font-size: 34px;
  margin-bottom: 6px;
}
.sisi-strip__lead {
  color: #9db8ff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.sisi-strip__text {
  color: #dbe4f0;
  margin-bottom: 14px;
}
.sisi-strip__link {
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
}
.sisi-strip__link:hover {
  color: #9db8ff;
}

/* Sisi Ni Nani declaration — full version on Our Story
   (mirrors the lindamwananchi.com preamble layout) */
.sisi-declaration {
  background-color: #ffffff;
  color: #111111;
}
.sisi-declaration__card {
  text-align: center;
  padding: 0 24px;
}
.sisi-declaration__brand {
  font-family: "Bebas Neue", "Nunito", sans-serif;
  font-size: 76px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 30px;
}
.sisi-declaration__sub {
  font-size: 20px;
  color: #111111;
  margin-bottom: 34px;
}
.sisi-declaration__lead {
  font-size: 22px;
  color: #111111;
  margin-bottom: 40px;
}
.sisi-declaration__line {
  font-size: 19px;
  line-height: 2;
  color: #111111;
  max-width: 920px;
  margin: 0 auto 36px;
}
.sisi-declaration__line em {
  font-family: "Permanent Marker", "Edu AU VIC WA NT Pre", cursive;
  font-style: normal;
  font-weight: 400;
}

/* Preloader: movement logo and name */
.preloader {
  background-color: #ffffff;
  gap: 18px;
}
.preloader__logo {
  width: 140px;
  animation: preloader-pulse 2s ease-in-out infinite;
}
.preloader p.preloader__title {
  font-family: "Bebas Neue", "Nunito", sans-serif;
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #111827 !important;
  animation: none;
}
.preloader__bar {
  display: block;
  width: 180px;
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary-color);
  animation: preloader-bar 1.2s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes preloader-bar {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}
@media (max-width: 768px) {
  .sisi-strip { padding: 36px 0; }
  .sisi-strip h2 { font-size: 26px; }
  .sisi-declaration__brand { font-size: 44px; }
  .sisi-declaration__line { font-size: 17px; }
  .preloader p.preloader__title { font-size: 32px; }
}
