body {
  margin:0;
  padding:0;
  font-family: Arial, sans-serif; /* ensure consistent font */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 1rem;
  height:auto;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 100%\\;
  height: 150px;
  max-width: 200px;  /* Responsive fix */
  margin-bottom: 15px; /* Responsive fix */
}

.material-symbols-outlined {
font-size: 32px;
color: #1e3a8a; /* navy tone */
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
background-color: #1e3a8a;
flex-wrap: wrap; /* Responsive fix */
}

@media (max-width: 768px) {
  nav {
    justify-content: center;
    padding: 15px 20px;
  }
}

.nav-links {
display: flex;
list-style: none;
gap: 30px;
flex-wrap: wrap; /* Responsive fix */
justify-content: center; /* Responsive fix */
}

.nav-links a {
text-decoration: none;
color: white;
font-weight: 500;
}

.social-links {
display: flex;
gap: 15px;
font-size: 24px;
justify-content: center; /* Responsive fix */
margin-top: 10px;        /* Responsive fix */
}

.social-links a {
color: white;
}

.slideshow-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
}

/* Better mobile viewport handling */
@supports (height: 100dvh) {
  .slideshow-container {
    min-height: 100dvh;
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark overlay */
.slideshow-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .slideshow-container {
    min-height: 70vh;
  }

  .slide img {
    object-position: center center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .slideshow-container {
    min-height: 60vh;
  }
}

.slide,
.caption {
  z-index: 2;
}

/* Active slide */
.active {
  opacity: 1;
}

/* Overlay text (optional) */
.caption {
  position: absolute;
  height: 40%;
  bottom: 0;
  left: 10px;
  color: white;
  font-size: 24px;
  background: rgba(0,0,0,0.4);
  padding: 10px 15px;
  border-radius: 10px;
}

/* Navigation buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  background: rgba(0,0,0,0.3);
  border: none;
  transform: translateY(-50%);
  visibility:hidden;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
  visibility:hidden;
}

/* Dots */
.dots {
  position: absolute;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active-dot {
  background: white;
}

.upcoming-events {
  padding: 60px 40px;
  background-color: #f8f8f8;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.upcoming-events h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #1e3a8a;
}

/* Carousel wrapper hides overflow */
.carousel {
  overflow: hidden;
}

/* Events container with smooth infinite rolling */
.events-container {
  display: flex;
  gap: 30px;
  width: auto; /*1680px*/; /* (250 + 30) * 6 cards */
  animation: scroll-left 30s linear infinite;
  flex-wrap: nowrap;
}

.events-container::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

/* Individual event card */
.event-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
  flex: 0 0 auto;
}

.event-card h3 {
  margin-top: 0;
  color: #1e3a8a;
}

.event-date {
  font-weight: bold;
  color: #555;
  margin-bottom: 10px;
}

.event-desc {
  color: #333;
  font-size: 0.95rem;
}

/* Keyframes for smooth scroll left */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-840px); /* width of 3 cards + gaps */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-card {
    width: 80vw;
  }
  .events-container {
    width: calc((80vw + 30px) * 6);
  }
}

.give-life-to-christ {
padding: 60px 40px;
display: flex;
justify-content: center;
background-color: #1e3a8a;
}

.give-container {
display: flex;
align-items: center;
background-color: white;
padding: 30px 40px;
border-radius: 15px;
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
max-width: 800px;
gap: 20px;
}

.pray-icon {
font-size: 60px;
color: #1e3a8a;
}

.give-text h2 {
margin: 0 0 10px 0;
color: #1e3a8a;
font-size: 2rem;
}

.give-text p {
margin: 0;
color: #555;
font-size: 1rem;
}

/* Responsive giving section fixes */
.giving-section {
max-width: 65%;
margin: 60px auto;
padding: 30px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
font-family: inherit;
font-size: 1.5rem;
line-height: 1.7;
}

.giving-section h2,
.giving-section h4 {
text-align: center;
color: #1e3a8a;
margin-bottom: 15px;
}

.giving-section h4 {
margin-top: 20px;
}

.giving-section p {
line-height: 1.6;
}

.giving-note {
margin-top: 20px;
padding: 15px;
border-left: 4px solid #dc3545;
background: #fff5f5;
}

@media (max-width: 768px) {
.giving-section {
  max-width: 90%;
  font-size: 1.2rem;
  padding: 20px;
}
}

.btn {
padding: 12px 25px;
background-color: #1e3a8a;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: background-color 0.3s;
}

.btn:hover {
background-color: #15407b;
}

.btn-secondary {
background-color: #f5a623;
color: white;
}

.btn-secondary:hover {
background-color: #e08e1f;
}

.background-pic {
  background-image: url('../../images/pastorsaddress.jpeg');
  background-repeat: no-repeat;
  background-attachment:fixed;
  background-size: 100%;
  background-position: center top;
  opacity:0.9;
}

.pastors-image-container {
  display:flex;
  justify-content:center;
}

.pastors-image {
  width:70%;
  border-radius: 50px;
  border: 50px, yellow;

}

.contact-link{
text-decoration:none;
}

.requests {
padding: 60px 40px;
background-color: #f8f8f8;
text-align: center;
}

.requests h2 {
font-size: 2.5rem;
color: #1e3a8a;
margin-bottom: 40px;
}

.requests-container {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}

.request-card {
background: white;
padding: 25px 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
max-width: 250px;
text-align: center;
}

.request-icon {
font-size: 50px;
color: #1e3a8a;
margin-bottom: 15px;
}

.request-card h3 {
margin: 10px 0;
color: #1e3a8a;
}

.request-card p {
font-size: 0.95rem;
color: #555;
}

.core-ministries {
padding: 60px 40px;
background-color: #ffffff;
text-align: center;
}

.core-ministries h2 {
font-size: 2.5rem;
color: #1e3a8a;
margin-bottom: 40px;
}

.ministries-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 30px;
}

.ministry-card {
background: #f8f8f8;
padding: 25px 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
text-align: center;
}

.ministry-icon {
font-size: 50px;
color: #1e3a8a;
margin-bottom: 15px;
}

.ministry-card h3 {
margin: 10px 0;
color: #1e3a8a;
}

.ministry-card p {
font-size: 0.95rem;
color: #555;
}

.all-ministries-btn {
margin-top: 60px;
text-align: center;
}

.all-ministries-btn .btn {
padding: 12px 25px;
background-color: #1e3a8a;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: background-color 0.3s;
}

.all-ministries-btn .btn:hover {
background-color: #15407b;
}

.site-footer {
background-color: #1e3a8a;
color: white;
padding: 40px 20px 20px;
}

/* centralized footer*/
.footer-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 30px;
max-width: 1200px;
margin: 0 auto;
text-align:center;
}

.footer-section {
flex: 1;
min-width: 200px;
}

.footer-section h3 {
margin-bottom: 15px;
}

.footer-section ul {
list-style: none;
padding: 0;
}

.footer-section ul li {
margin-bottom: 10px;
}

.footer-section ul li a {
color: white;
text-decoration: none;
}

.footer-section ul li a:hover {
text-decoration: underline;
}

.social-links {
display: flex;
gap: 15px;
font-size: 24px;
}

.social-links a {
color: white;
}

.footer-bottom {
margin-top: 30px;
text-align: center;
font-size: 0.9rem;
border-top: 1px solid rgba(255,255,255,0.3);
}

/* About Page */
.about-page {
padding: 60px 40px;
max-width: 1200px;
margin: 0 auto;
}

.about-page h2,
.about-page p {
  text-align: center;
}

.about-section {
  margin: 100px;
  font-size: xx-large;
}

.about-section h2 {
color: #1e3a8a;
font-size: 2.5rem;
margin-bottom: 40px;
text-decoration: underline;
}

.about-section p {
font-size: 1.05rem;
line-height: 1.8;
color: #333;
margin-bottom: 15px;
}

.values-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-top: 30px;
}

.value-card {
background-color: #f8f8f8;
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
text-align: center;
}

.value-card h3 {
color: #1e3a8a;
margin-bottom: 10px;
}

.value-card p {
font-size: 0.95rem;
color: #555;
}

@media (max-width: 768px) {
  .about-section {
    margin: 20px;
  }

  .value-card {
    padding: 15px;
  }
}

/* Live Page */
.live-page {
padding: 60px 40px;
text-align: center;
}

.live-page h2 {
color: #1e3a8a;
font-size: 2.5rem;
margin-bottom: 15px;
border-bottom: 3px solid #1e3a8a;
display: inline-block;
padding-bottom: 5px;
}

.live-page p {
margin-bottom: 30px;
font-size: 1.1rem;
color: #555;
}

.video-container {
position: relative;
width: 100%;
max-width: 900px;
margin: 0 auto 40px auto;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 10px;
}

/* Countdown */
.next-service {
margin-bottom: 30px;
}

.next-service h3 {
font-size: 1.5rem;
color: #1e3a8a;
margin-bottom: 10px;
}

#countdown {
font-size: 1.3rem;
color: #333;
font-weight: bold;
}

/* Welcome text */
.live-welcome {
margin-bottom: 30px;
font-size: 1.1rem;
color: #555;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}

/* CTA button */
.live-cta .btn {
padding: 12px 25px;
background-color: #1e3a8a;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: background-color 0.3s;
}

.live-cta .btn:hover {
background-color: #15407b;
}

/* Grow Page */
.grow-page {
padding: 60px 40px;
text-align: center;
}

.grow-page h2 {
color: #1e3a8a;
font-size: 2.5rem;
margin-bottom: 15px;
border-bottom: 3px solid #1e3a8a;
display: inline-block;
padding-bottom: 5px;
}

.grow-page p {
margin-bottom: 40px;
font-size: 1.1rem;
color: #555;
}

.grow-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 25px;
}

.grow-card {
background-color: #f8f8f8;
padding: 25px 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
text-align: center;
}

.grow-icon {
font-size: 50px;
color: #1e3a8a;
margin-bottom: 15px;
}

.grow-card h3 {
margin-bottom: 10px;
color: #1e3a8a;
}

.grow-card p {
font-size: 0.95rem;
color: #555;
}

/* Newcomers Page */
.newcomers-page {
padding: 80px 40px;
max-width: 1000px;
margin: 0 auto;
text-align: center;
}

.newcomers-page h2 {
color: #1e3a8a;
font-size: 2.5rem;
margin-bottom: 30px;
border-bottom: 3px solid #1e3a8a;
display: inline-block;
padding-bottom: 5px;
}

.newcomers-page p {
font-size: 1.15rem;
color: #555;
margin-bottom: 40px;
}

.handbook,
.expectations,
.newcomers-cta {
margin-bottom: 60px;
padding: 20px 10px;
background-color: #f9f9f9;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.handbook h3,
.expectations h3 {
color: #1e3a8a;
margin-bottom: 15px;
font-size: 1.6rem;
}

.expectations ul {
list-style: disc inside;
color: #555;
font-size: 1.05rem;
line-height: 1.7;
text-align: left;
max-width: 700px;
margin: 0 auto;
}

.location-section {
max-width: 900px;
margin: 60px auto;
padding: 30px;
text-align: center;
}

.location-section h2 {
color: #1e3a8a;
font-size: 2rem;
margin-bottom: 20px;
}

.location-section p {
font-size: 1.1rem;
margin-bottom: 15px;
}

.map-container {
width: 100%;
height: 400px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
.map-container {
    height: 250px;
}
}

.newcomers-cta .btn,
.handbook .btn {
padding: 12px 30px;
background-color: #1e3a8a;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: background-color 0.3s;
display: inline-block;
margin-top: 15px;
}

.newcomers-cta .btn:hover,
.handbook .btn:hover {
background-color: #15407b;
}

.form-wrapper {
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

@media (max-width: 768px) {
.form-wrapper {
  height: auto;
  padding: 20px 10px;
  align-items: flex-start;
}
}

.contact-form {
width: 100%;
height: 600px;
margin: 80px;
max-width: 600px;
padding: 30px;
border-radius: 10px;
background: #fff;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
gap: 16px;
box-sizing: border-box;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
width: 100%;
padding: 12px;
font-size: 16px;
box-sizing: border-box;
}

.contact-form button {
background-color: #dc3545;
color: white;
padding: 10px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
}

.contact-form button:hover {
background-color: #bb2d3b;
}

.contact-form label {
font-weight: 600;
margin-bottom: 4px;
}

@media (max-width: 700px) {
.contact-form {
  padding: 20px 15px;
}
.contact-form button {
  font-size: 1.1rem;
  padding: 12px;
}
}

@media (max-width: 768px) {
.upcoming-events