html, body { height: 100%; min-height: 100vh; }
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: floralwhite;
  color: black;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Section Divider ===== */
.section-divider {
  display: block;
  flex: 0 0 6px;
  height: 6px;
  width: min(1000px, 92vw); 
  margin: 2rem auto;
  background: linear-gradient(to right, navy, goldenrod, navy);
  border-radius: 3px;
}


/* HERO */
.hero {
  position: relative;
  min-height: 500px;
  width: 100%;
  background: url('../Images/church1.avif') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-overlay {
  background: rgba(0, 0, 128, 0.68);
  padding: 2.4rem 1.8rem;
  border-radius: 16px;
  text-align: center;
  max-width: 94vw;
}
.hero-overlay h1 {
  color: goldenrod;
  font-size: 2.6rem;
  margin-bottom: .8rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 11px rgba(0,0,64,.35);
}
.hero-overlay p {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-overlay strong { color: goldenrod; }

/* Social Buttons */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.8rem;
}
.facebook-btn,
.youtube-btn {
  display: inline-block;
  background: goldenrod;
  color: navy;
  font-weight: 800;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, outline 0.18s, box-shadow 0.18s;
}
.facebook-btn:hover,
.youtube-btn:hover {
  background: navy;
  color: white;
  outline: 2px solid goldenrod;
  box-shadow: 0 6px 16px goldenrod;
}

/* MAIN CONTENT */
.main-content {
  max-width: 1000px;
  margin: 2.2rem auto;
  padding: 0 1rem;
  flex: 1;
}
.mission h2, .vision h2, .values h3, .contact-title {
  color: navy;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .6px;
  margin: 0 0 .6rem 0;
  padding-bottom: .35rem;
  border-bottom: 2px solid goldenrod;
}
.mission-vision-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.mission, .vision { flex: 1 1 320px; }
.values ul { padding-left: 1.15rem; }

/* CONTACT */
.contact-wrap {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  background: white;
  border: 1.5px solid goldenrod;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-lead {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-field label {
  display: block;
  font-weight: 800;
  color: navy;
  margin-bottom: 0.5rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1.5px solid goldenrod;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: white;
  font-size: 1rem;
  outline: none;
  margin-bottom: 1rem;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: goldenrod;
  box-shadow: 0 0 0 3px rgba(218,165,32,0.15);
}

.contact-submit {
  background: goldenrod;
  color: navy;
  border: none;
  border-radius: 10px;
  padding: 1rem 2.5rem; /* wider padding for length */
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.25s ease;
  align-self: center; /* centers button */
  min-width: 250px; /* ensures longer button */
}

.contact-submit:hover {
  background: navy;
  color: white;
  box-shadow: 0 6px 16px goldenrod;
  transform: translateY(-2px);
}

.contact-status {
  min-height: 1.4rem;
  text-align: center;
  font-weight: 700;
  margin-top: 0.75rem;
}



/* ================= Announcements ================= */

/* MAIN WRAPPER (full announcements page + embedded section) */
.ann--container,
.ann-container {
  max-width: 1000px; 
  margin: 2.2rem auto 3rem; 
  padding: 0 1rem;
}

/* When it's used as the main page body (announcement.html) */
main.ann--container {
  flex: 1; 
}

.ann-info {
  width: 1000px;
  min-width: 0;
}

/* Title */
.ann-title {
  color: navy;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: .6px;
  margin: 0 0 1rem 0;
  padding-bottom: .35rem;
  border-bottom: 2px solid goldenrod;
  text-align: center; 
  word-break: break-word; 
}

/* Wrap around slideshow + button */
.ann-slideshow-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Main slideshow frame */
.slide-shell {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid goldenrod;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 9;
}

.slide-shell figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: none;
}

.slide-shell figure.active {
  display: block;
}

.slide-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Dots */
.slide-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid goldenrod;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slide-dot:hover {
  transform: scale(1.2);
}

.slide-dot.active {
  background: goldenrod;
}

/* Announcement PDF button */
.ann-btn {
  display: inline-block;
  background: goldenrod;
  color: navy;
  font-weight: 800;
  padding: 1rem 2.3rem;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.25s ease;
  font-size: 1.05rem;
  text-align: center;
}

.ann-btn:hover {
  background: navy;
  color: white;
  box-shadow: 0 8px 18px goldenrod;
  transform: translateY(-2px);
}

/* "Coming soon" message if no slides yet */
.ann-empty {
  padding: 2rem 1.5rem;
  color: #444;
  text-align: center;
  font-style: italic;
  background: #fff;
}

/* Responsive tweaks */
@media (max-width: 1100px) {

  .ann--container,
  .ann-container {
    max-width: 100%;
    margin: 2rem auto 2.5rem;
    padding: 0 1rem;
  }

  .ann-info {
    width: 100%;
  }

  .slide-shell {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .ann-title {
    font-size: 1.8rem;
  }

  .ann--container,
  .ann-container {
    margin-top: 2rem;
  }

  .ann-info {
    width: 100%;
  }

  .ann-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ann-title {
    font-size: 1.6rem;
  }

  .ann--container,
  .ann-container {
    margin: 1.8rem auto 2.2rem;
    padding: 0 0.8rem;
  }
  .ann-info {
    width: 100%;
  }

  .slide-shell {
    max-width: 100%;
    border-width: 2px;
  }

  .slide-controls {
    gap: 0.4rem;
  }

  .slide-dot {
    width: 10px;
    height: 10px;
  }

  .ann-btn {
    width: 100%;
    padding: 0.9rem 1.6rem;
  }
}



/* ===== Back to Top Button ===== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  background-color: goldenrod;
  color: navy;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  display: none; /* hidden by default */
}

#backToTop:hover {
  border: solid white;
  background-color: navy;
  color: white;
  transform: translateY(-2px);
}