/* Reset box-sizing and prevent horizontal scroll */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 100vh;
  font-family: Georgia, serif;
  font-size: 24px;
  margin: 0;
  padding: 0;
  background: #f4d7a9;
  color: #333;
  text-align: center;
}

/* Make media elements responsive and avoid overflow */
img, iframe, embed, video { max-width: 100%; height: auto; display: block; }
iframe { aspect-ratio: 16/9; }

/* Main content wrapper that centers inner content while allowing full-width header/footer/hero */
.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

nav {
  background-color: #3e7456;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.5em 1em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  z-index: 5;
}


.menu-toggle {
  background: none;
  border: none;
  font-size: 2em;
  color: white;
  cursor: pointer;
  display: none;
  margin: 0.5em;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li {
  margin: 0.5em;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: #9ccaf2;
  padding: 2em;
  text-align: center;
}

.content-block {
  padding: 2em;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
} 

.banner {
  width: 100%;
  height: auto;
  display: block;
}

.challenge-title {
  color: #b8860b; /* dark gold */
  font-size: 4rem;
  font-weight: 700;
  margin: 0 0 0.5em 0;
  letter-spacing: 0.03em;
  font-family: cursive;
}

.dare-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0.75em 0;
  padding: 0.6em 1.2em;
  letter-spacing: 0.04em;
  /* Fixed red gradient (lighter → darker left-to-right) */
  background: linear-gradient(90deg, #ffc1c1, #e53935, #7b0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  border: 3px solid #000;
  border-radius: 4px;
  transition: background 400ms ease, opacity 300ms ease;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

/* Make header/hero/footer span full viewport width */
.hero, .content-block, .worship, nav, footer {
  width: 100%;
}

/* Allow the hero and nav inner container to span the full width while constraining other content */
.hero {
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero > * {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

:root {
  --nav-height: 56px;
  --announcement-height: 4rem; /* increased for larger banner */
}

/* Reserve space for the fixed nav by default */
body { padding-top: var(--nav-height); }

.fixed-announcement {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #fff3c4, #ffefc1); /* light gold gradient */
  color: #111;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem); /* responsive, larger */
  font-weight: 700;
  line-height: 1.15;
  min-height: var(--announcement-height);
  z-index: 4; /* stay under nav (nav z-index: 5) */
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  letter-spacing: 0.01em;
}

body.has-announcement {
  padding-top: calc(var(--nav-height) + var(--announcement-height));
}

@media (max-width: 600px) {
  :root { --announcement-height: 5.5rem; }
  .fixed-announcement { font-size: 1.15rem; padding: 1rem 0.9rem; }
} 

.nav-inner {
  max-width: none;
  width: 100%;
  padding: 0 1rem;
}

.content-block > *, .worship > *, footer > * {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

footer {
  background: #9ccaf2;
  padding: 1em;
  text-align: center;
  font-style: italic;
  margin-top: auto;
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.05);
}

/* Tight header spacing on specific pages (forced) */
.no-gap-header nav { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.no-gap-header .nav-inner { padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* Ensure main content starts below the fixed header */
.no-gap-header .site-main { justify-content: flex-start !important; padding-top: var(--nav-height) !important; margin-top: 0 !important; }


@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 1em;
  }

  header, footer {
    text-align: center;
  }
}

