* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #1c1c1c;
  color: #f4f4f4;
}

/* ======================== */
/* ANNOUNCEMENT BAR */
/* ======================== */
.announcement-bar {
  background-color: #2d2d2d;
  color: #ffae42;
  padding: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-size: 0.95rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

.carousel-text span {
  display: inline-block;
  padding: 0 2rem;
  animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ======================== */
/* HEADER + NAV */
/* ======================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #111;
  color: #fff;
  margin-top: 2.5rem; /* offset for announcement bar */
  border-bottom: 2px solid #444;
}

header img {
  height: 60px;
  border-radius: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  margin: 0 0.5rem;
  color: #f4f4f4;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #ffae42;
}
/* ======================== */
/* HERO SECTION */
/* ======================== */

.hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), #111),
              url('images/BAND11.JPG') top center/cover no-repeat;
  min-height: 80vh; /* or set a fixed height like height: 400px; */
  padding: 6rem 1rem 4rem;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #ddd;
}

.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta button {
  background-color: #D4AF37;
  color: #111;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease;
  font-size: 0.9rem;
}

.cta button:hover {
  background-color: #e6c04e;
}

/* ======================== */
/* YEAR THEME */
/* ======================== */

#yeartheme {
  background: #1E1E1E;
  text-align: center;
  padding: 4rem 1rem;
}

#yeartheme h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #D4AF37;
}

#yeartheme p {
  font-style: italic;
  font-size: 1.1rem;
  color: #ccc;
}

/* ======================== */
/* IMAGE CAROUSEL */
/* ======================== */

.carousel-section {
  padding: 3rem 1rem;
  background: #161616;
  text-align: center;
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 400px;
}

/* ======================== */
/* ABOUT US & SECTIONS */
/* ======================== */

#about-us, #pastor-section, #weekly-program, #memoriam {
  background: #181818;
  padding: 3rem 1.5rem;
}

#about-us h3, #about-us h4, #pastor-section h3, #weekly-program h3, #memoriam h3 {
  color: #D4AF37;
  margin-bottom: 1rem;
  text-align: center;
}

#about-us p, #pastor-section p, #weekly-program p, #memoriam p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pastor-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pastor-image img {
  width: 150px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #D4AF37;
}
.pastor-info {
  margin-top: 1rem;
}
.pastor-info h3 {
  color: #D4AF37;
  margin-bottom: 0.5rem;
}
.pastor-info p {
  color: #ccc;
  max-width: 600px;
}

#memoriam {
  text-align: center;
}
.pst-serge img {
  width: 200px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  margin-bottom: 1rem;
}

/* ===========weekly prgram and upcoming events============= */
.events-weekly-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex-wrap: wrap;
}

#events, #weekly-program {
  background-color: #181818;
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  min-width: 280px;
}

#events ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#events li {
  padding: 0.6rem;
  background: #222;
  border-left: 4px solid #D4AF37;
  margin-bottom: 0.6rem;
  border-radius: 5px;
}

.weekly .program-item {
  background: #222;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  border-radius: 5px;
  color: #f5f5f5;
  font-weight: 500;
}
/* ==============================
   image slider/carousel
   ============================== */

.image-carousel {
  background-color: #0f0f0f;
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}

.image-carousel .carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.image-carousel .carousel-track {
  display: flex;
  gap: 20px;
  animation: slide-left 35s linear infinite;
  will-change: transform;
  align-items: center;
}

.image-carousel .carousel-track img {
  flex-shrink: 0;
  height: auto;
  border-radius: 8px;
  transform: translateX(100%);
  opacity: 0;
  animation: fade-slide-in 1s ease forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  transition: transform 0.6s ease, filter 0.6s ease;
  width: 200px;
}

.image-carousel .carousel-track img:nth-child(1) { animation-delay: 0.3s; }
.image-carousel .carousel-track img:nth-child(2) { animation-delay: 0.6s; }
.image-carousel .carousel-track img:nth-child(3) { animation-delay: 0.9s; }
.image-carousel .carousel-track img:nth-child(4) { animation-delay: 1.2s; }
.image-carousel .carousel-track img:nth-child(5) { animation-delay: 1.5s; }
.image-carousel .carousel-track img:nth-child(6) { animation-delay: 1.8s; }
.image-carousel .carousel-track img:nth-child(7) { animation-delay: 2.1s; }
.image-carousel .carousel-track img:nth-child(8) { animation-delay: 2.4s; }
.image-carousel .carousel-track img:nth-child(9) { animation-delay: 2.7s; }
.image-carousel .carousel-track img:nth-child(10) { animation-delay: 3s; }
.image-carousel .carousel-track img:nth-child(11) { animation-delay: 3.3s; }
.image-carousel .carousel-track img:nth-child(12) { animation-delay: 3.6s; }
.image-carousel .carousel-track img:nth-child(13) { animation-delay: 3.9s; }

.image-carousel img.main-img {
  width: 400px;
}

.image-carousel img.side-img {
  width: 160px;
  filter: grayscale(100%);
  transition: transform 0.3s ease;
}

/* Slide loop */
/* (Removed duplicate @keyframes slide-left and fade-slide-in to avoid conflicts) */

/* Pause animation on hover */
.image-carousel .carousel-track:hover {
  animation-play-state: paused;
}

.image-carousel .carousel-track img:hover {
  animation-play-state: paused;
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Events Page Styles */

/* Page Header */
.page-header {
  background-color: #1a1a1a;
  color: #f4f4f4;
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: 'Arial Black', sans-serif;
    color: #D4AF37;
}

.page-header p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

/* Event Highlights */
.event-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background-color: #111;
  color: #eee;
}

.event-highlights .event {
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-highlights .event:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.event-highlights .event h3 {
  color: #D4AF37;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-highlights .event p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* Image Carousel */
.event-gallery {
  background-color: #1c1c1c;
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  overflow: hidden;
  position: relative;
}

.carousel-strip {
  display: flex;
  gap: 24px;
  animation: slide-left 35s linear infinite;
  will-change: transform;
}

.carousel-strip img {
  flex-shrink: 0;
  height: auto;
  border-radius: 8px;
  transform: translateX(100%);
  opacity: 0;
  animation: fade-slide-in 1s ease forwards;
  width: 290px;
}

.carousel-strip img:nth-child(1) { animation-delay: 0.3s; }
.carousel-strip img:nth-child(2) { animation-delay: 0.6s; }
.carousel-strip img:nth-child(3) { animation-delay: 0.9s; }
.carousel-strip img:nth-child(4) { animation-delay: 1.2s; }
.carousel-strip img:nth-child(5) { animation-delay: 1.5s; }
.carousel-strip img:nth-child(6) { animation-delay: 1.8s; }
.carousel-strip img:nth-child(7) { animation-delay: 2.1s; }
.carousel-strip img:nth-child(8) { animation-delay: 2.4s; }
.carousel-strip img:nth-child(9) { animation-delay: 2.7s; }

.main-img {
  width: 320px;
}

.side-img {
  width: 140px;
  filter: grayscale(100%);
  transition: transform 0.3s ease;
}

/* Removed duplicate @keyframes slide-left to avoid conflicts */

@keyframes fade-slide-in {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.carousel-track:hover .carousel-strip {
  animation-play-state: paused;
}

.carousel-strip img:hover {
  animation-play-state: paused;
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Event CTA */
.event-cta {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 2px solid #222;
}

.event-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.event-cta p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  padding: 12px 24px;
  background-color: #D4AF37;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: #b8932f;
  color: #fff;
}

.sermons-intro {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #1e1e1e;
}

.sermons-intro h1 {
  font-size: 2.5rem;
  color: #ffae42;
  margin-bottom: 1rem;
}

.sermons-intro p {
  font-size: 1.1rem;
  color: #ccc;
}

.sermon-gallery {
  padding: 2rem;
  background-color: #1c1c1c;
}

.sermon-gallery h2 {
  text-align: center;
  font-size: 2rem;
  color: #f4f4f4;
  margin-bottom: 1rem;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  justify-items: center;
  padding: 1rem 0;
}

.video-container iframe {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === Giving Page Styles === */
.giving-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 3rem 2rem;
  background-color: #252525;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.giving-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border-left: 4px solid #f39c12;
}

.giving-card:hover {
  transform: translateY(-5px);
}

.giving-card h3 {
  color: #f39c12;
  margin-bottom: 1rem;
}

.giving-intro h1 {
  text-align: center;
  padding: 2rem 1rem;
  color: #f39c12;
}
.giving-intro p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
}

.giving-options h2 {
  text-align: center;
  color: #f39c12;
  margin-bottom: 1rem;
}
.giving-card p {
  line-height: 1.6;
  color: #e0e0e0;
}

.giving-reminder {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #333;
  color: #f4f1ed;
}
.weekly-program h2 {
  color: #f39c12;
  margin-bottom: 0.5rem;
  text-align: center;
}
.weekly-program p {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.weekly-program ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  text-align: center;
}

.call-to-give {
  background: linear-gradient(to right, #2d2d2d, #1e1e1e);
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid #333;
}

.call-to-give h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f4f1ed;
}

.call-to-give p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-btn {
  background-color: #f39c12;
  color: #111;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #e67e22;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f39c12;
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  text-align: center;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

.scroll-to-top.show {
  display: block;
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }
  nav a {
    display: inline-block;
    width: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1.1rem;
    border-radius: 6px;
    background: #181818;
    color: #f4f4f4;
    text-align: center;
    transition: background 0.2s;
  }
}

/* === Youth Page Styles === */

.youth-gallery {
  padding: 3rem 2rem;
  background-color: #222;
  text-align: center;
}

.youth-gallery h2,
.youth-videos h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #f39c12;
}

.carousel-strip {
  display: flex;
  gap: 16px;
  overflow: hidden;
  animation: slide-left 30s linear infinite;
  padding: 1rem 0;
}

.carousel-strip img {
  border-radius: 10px;
  max-height: 160px;
  object-fit: cover;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.youth-videos {
  background-color: #1e1e1e;
  padding: 2rem;
  text-align: center;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1rem;
}

.video-grid video {
  width: 220px;
  height: 130px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-grid video:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.youth-videos h2 {
  margin-bottom: 0.5rem;
}

.video-grid {
  padding: 1.5rem 0 3rem;
}

.youth-section h2 {
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 1rem;
  text-align: center;

}

.youth-section p {
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.youth-section ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  text-align: center;
}

/* ======================== */
/* FOOTER */
/* ======================== */

footer {
  background: #111;
  color: #ccc;
  padding: 3rem 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links h3 {
  color: #D4AF37;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
  display: block;
}

.footer-links a:hover {
  color: #fff;
}

footer p {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2rem;
}

/* ======================== */
/* MEDIA QUERIES */
/* ======================== */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a {
    flex: 1 0 45%;
    text-align: center;
    margin: 0.5rem 0;
  }
}

/* ======================== */
/* CAROUSEL FIXES FOR MOBILE */
/* ======================== */
.image-carousel .carousel-track,
.carousel-strip {
  display: flex;
  gap: 20px;
  animation: slide-left 35s linear infinite;
  will-change: transform;
  align-items: center;
}

.image-carousel .carousel-track img,
.carousel-strip img {
  scroll-snap-align: start;
  flex-shrink: 0;
  border-radius: 8px;
  width: 240px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-track img,
  .carousel-strip img {
    width: 100%;
    max-width: 95vw;
    height: auto;
    margin-right: 16px;
    object-fit: contain;
    border-radius: 8px;
  }
  .nav a {
    flex: 1 0 100%;
    text-align: center;
    margin: 0.5rem 0;
  }
  .hero {
    padding: 4rem 1rem;
    min-height: 60vh;
  }
  .nav link {
    font-size: 0.9rem;
  }

}
/* ======================== */
/* YOUTH PAGE CAROUSEL FIX */
/* ======================== */
.youth-gallery .carousel-strip {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 1rem;
}

.youth-gallery .carousel-strip img {
  scroll-snap-align: start;
  max-height: 160px;
  width: 240px;
}

@media (max-width: 768px) {
  .youth-gallery .carousel-strip img {
    width: 85vw;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1rem;
  }

  header img {
    margin-bottom: 1rem;
    height: 50px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  nav a {
    flex: 1 0 auto;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    border-radius: 6px;
    text-align: center;
  }
}
/* --- END: HEADER MOBILE FIX --- */


/* --- START: IMAGE CAROUSEL MOBILE FIX --- */
@media (max-width: 768px) {
  .carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
  }

  .carousel-track,
  .carousel-images,
  .carousel-strip {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
    width: max-content;
  }

  .carousel-container::-webkit-scrollbar,
  .carousel-track::-webkit-scrollbar,
  .carousel-strip::-webkit-scrollbar {
    display: none;
  }

  .carousel-track img,
  .carousel-images img,
  .carousel-strip img {
    width: 80vw;
    max-width: 85vw;
    height: auto;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 8px;
    object-fit: cover;
  }
}
/* --- END: IMAGE CAROUSEL MOBILE FIX --- */