/* Reset and base */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

h1 {
  color: #ffcc00;
}

h2,
h3 {
  color: #2c3e50;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1000;
  background: #1a237e;
  /* your header bg */
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #bbdefb;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover,
nav ul li a:focus {
  text-decoration: underline;
  color: #e3f2fd;
}

/* Main content */
main {
  max-width: 960px;
  margin: 1rem auto;
  padding: 0 1rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding-top: 200px;
  /* or the exact height of your header */
}

.content-section {
  position: relative;
  z-index: 1;
}

/* .content-section::before { */
/* content: ""; */
/* display: block; */
/* height: 120px; /* same height as your header */
*/
/* margin-top: -120px; */
/* visibility: hidden; */
/* pointer-events: none; */
/* } */

.content-section h2 {
  border-bottom: 2px solid #1a237e;
  padding-bottom: 0.25rem;
}

/* Videos */
.video-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.video-container iframe {
  flex: 1 1 300px;
  height: 180px;
  border: none;
  border-radius: 5px;
}

/* Photo gallery */
.photo-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.photo-gallery img {
  max-width: 30%;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Newsletter */
.newsletter-archive {
  background: #f7f9fc;
  border: 1px solid #dce3f1;
  border-radius: 5px;
  padding: 1rem;
}

.newsletter-archive ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter-archive a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid #1a237e;
  border-radius: 999px;
  color: #1a237e;
  text-decoration: none;
  font-weight: bold;
}

.newsletter-archive a:hover,
.newsletter-archive a:focus {
  background: #1a237e;
  color: #fff;
}

.newsletter-meta {
  font-weight: bold;
  color: #455a64;
  margin-top: -0.25rem;
}

.newsletter-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0 1.5rem;
}

.newsletter-share-label {
  font-weight: bold;
  color: #455a64;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #1a237e;
  border-radius: 999px;
  background: #fff;
  color: #1a237e;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.share-button:hover,
.share-button:focus {
  background: #1a237e;
  color: #fff;
}

.share-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.newsletter-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-photos img {
  width: 100%;
  max-width: 420px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Blog */
.blog-post {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.show-comments-btn {
  background: #1a237e;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 0.5rem;
}

.show-comments-btn:hover {
  background: #283593;
}

.comments {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid #1a237e;
}

.hidden {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #1a237e;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover,
.btn:focus {
  background: #283593;
  text-decoration: none;
}

/* Tract viewer */
.tract-viewer {
  width: 100%;
  height: 400px;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #1a237e;
  color: #eee;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  /* smaller font size */
}

footer a {
  color: #ffcc00;
  /* yellow links */
  text-decoration: underline;
  /* optional for better visibility */
}

footer a:hover,
footer a:focus {
  color: #ffd633;
  /* lighter yellow on hover */
  text-decoration: none;
}

/* Responsive */
/* Hamburger button */
#menu-toggle {
  display: none;
  /* hidden on desktop */
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}

/* Show hamburger button on mobile */
@media (max-width: 600px) {
  #menu-toggle {
    display: block;
  }
  main {
    padding-top: 220px; /* or more, if needed */
  }
  /* Give extra right‐hand padding so the centered title
     can’t run into the hamburger icon */
  header {
    padding-right: 4rem;
  }
  /* Hide nav menu by default on mobile */
  nav {
    display: none;
    background: #1a237e;
    position: fixed;
    top: 120px;
    /* header height */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1099;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }

  nav ul li {
    display: block;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }

  .video-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    flex: 1 1 300px;
    max-width: 600px;
    /* optional max width */
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
  }
}

.image-stack img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin-bottom: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  /* remove gaps between images */
  margin: 0;
  /* remove outer margins if any */
  padding: 0;
}

.photo-gallery a {
  margin: 5px;
}

.photo-gallery img {
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  width: 290px;
  /* make sure images fill their container */
  height: auto;
  max-width: none;
  /* override any max-width */
}

/* Stack the two images and center them */
#thankyou .image-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* horizontal centering */
  gap: 1rem;
  /* space between images */
  margin-top: 1rem;
  /* optional spacing above */
}

/* Make sure each image scales nicely */
#thankyou .image-stack img {
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
}

/* hide the break on desktop/large screens */
.mobile-break {
  display: none;
}

/* on small screens, show the break so “Evangelism” moves to line 2 */
/* on desktop, spans stay inline so it’s one line */
header h1 .title-line1,
header h1 .title-line2 {
  display: inline;
}

/* on mobile, force each span onto its own line */
@media (max-width: 600px) {
  header h1 .title-line1,
  header h1 .title-line2 {
    display: block;
  }

  /* optional: tighten up spacing under the break */
  header h1 {
    line-height: 1.2;
  }
}
.mobile-break { display: none; }

@media (max-width: 600px) {
  .mobile-break { display: inline; }
}

@media (max-width: 600px) {
  header h1 {
    line-height: 1.1; /* tighter spacing between title lines */
    max-width: calc(100% - 4rem);
    margin: 0 auto;
  }
  /* … */
}
