@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/NunitoSans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-yellow: #f2c94f;
  --color-dark-bg: #2c2c2c;
  --color-text: #111;
}

/* Global Styles */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
}

/* Prevent horizontal scrolling caused by full-bleed sections on some mobile browsers */
html, body { overflow-x: hidden; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  background: white;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

/* Top bar variant for index page: logo left, buttons right */
.top-bar-with-buttons .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
}
.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.header-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  font-weight: 700;
}

/* Improve touch targets on small screens */
@media (max-width: 480px) {
  .header-btn { padding: 0.75rem 1rem; }
}

/* Header responsive: stack buttons under logo on narrow screens */
@media (max-width: 768px) {
  .top-bar-with-buttons .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .header-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }
  .header-btn {
    white-space: nowrap;
  }
}

.logo {
  max-height: 90px;
  width: auto;
}

/* Main navigation bar */
.main-nav {
  background: #1a1a1a;
  border-bottom: 2px solid #c8a84b;
}
.main-nav-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1100px;
  display: flex;
  gap: 0;
}
.main-nav-list li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}
.main-nav-list li a:hover {
  background: #c8a84b;
  color: #1a1a1a;
}

.nav-donate {
  margin-left: auto;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  /* Show hamburger, hide the list by default */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    margin: 0.35rem 1rem;
    box-sizing: content-box;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.15s;
  }
  .nav-toggle:hover span {
    background: #c8a84b;
  }

  .main-nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #333;
  }
  .main-nav-list--open {
    display: flex;
  }
  .main-nav-list li a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #2e2e2e;
  }
  .nav-donate {
    margin-left: 0;
  }
  .nav-donate a {
    text-align: center;
  }
}

.top-social-media {
  background-color: #2c2c2c;
  color: #fff;
  padding: 0.5rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
/* Sticky CTA bar: remains at top while header/logo scroll away */
.sticky-cta {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.sticky-cta .sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.sticky-cta .donate-button.card {
  margin: 0;
}

.yellow-underline {
  width: 80px;
  height: 5px;
  background: #f2c94f;
  margin: 0 auto 1rem auto;
}

/* Keyboard focus visible for accessibility */
.news-box:focus-visible,
.freedom-box:focus-visible {
  outline: 3px solid #f2c94f;
  outline-offset: 3px;
}

/* Screen-reader only: visually hidden but accessible to assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Privacy policy page */
.privacy-policy-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.privacy-policy-container h1,
.privacy-policy-container h2,
.privacy-policy-container h3 {
  margin-top: 2rem;
}

.privacy-policy-container p,
.privacy-policy-container li {
  font-size: 1.5rem;
  line-height: 1.6;
}

.privacy-policy-container ul {
  margin-left: 20px;
}

@media (max-width: 1024px) {
  .privacy-policy-container p,
  .privacy-policy-container li {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .privacy-policy-container {
    padding: 1rem;
  }

  .privacy-policy-container p,
  .privacy-policy-container li {
    font-size: 1rem;
  }

  .privacy-policy-container ul {
    margin-left: 15px;
  }

  .privacy-policy-container h1 {
    font-size: 1.75rem;
  }

  .privacy-policy-container h2 {
    font-size: 1.5rem;
  }

  .privacy-policy-container h3 {
    font-size: 1.25rem;
  }
}

