/* Reset & base */
  html {
    scroll-behavior: smooth;
  }


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #a3a2a2;

  }

  section {
    scroll-margin-top: 110px;
  }
  #home {
   padding-top: -25px;
  }
  
  .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  /* Header */
  
  header {
    color: white;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #003366;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffcc00; /* yellow accent */
    text-decoration: none;
    margin-right: auto;
  }
  
  .logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-left: -82px;
    margin-bottom: -10px;
    object-fit: cover;
  }
  .logo-text {
    color: orange;
    font-size: 1.5rem;
    font-weight: bold;
  }
  nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    transition: transform 0.3s ease;
  }
  /* dropdown container */
.dropdown {
  position: relative;
}

/* dropdown list (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 999;
}

/* dropdown links */
.dropdown-content li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-content li a:hover {
  background-color: #eee;
}

/* show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #ffcc00;
  }
  
  
  /* Hero section */
  
  .hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  min-height: 100vh; 
  overflow: hidden;

  /* background image */
  background: url('images/vision.jpg') no-repeat center center/cover;

}

/* blur layer */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  filter: blur(2px);   
  transform: scale(1.1);
  z-index: 0;
}

/* ensures content is above the blur */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: black; 
  font-weight: 700;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}
  
.left-info, .right-info {
  flex: 1;
  min-width: 200px;  
}
  
  .left-info p {
    margin: 8px 0;
    text-align: center;
    color: black;
    font-size:x-large;
  }
  .left-info h3 {
    color: #e75b09;
    font-size: 25px;
  }
  .left-info h2 {
    color: #e75b09;
    font-size: 35px;
  }
  .right-info p {
    color: black;
    font-size: 30px;
  }
  
  .preacher-image {
    padding: 30px 0;
  }
  
  .preacher-image img {
    width: 400px;
    border-radius: 50%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }
  

  .image-block {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 380px;
  margin: 30px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.5s ease; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.image-block:hover {
  transform: translateY(-8px);
}

.image-block .overlay {
  background: rgba(0, 0, 0, 0.55); /* Dark overlay for readability */
  color: #fff;
  padding: 30px;
  text-align: center;
  max-width: 700px;
  border-radius: 8px;
}

.image-block h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.image-block p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.learn-more {
  display: inline-block;
  padding: 10px 20px;
  background: #ffcc00;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.learn-more:hover {
  background: #004999;
}
  
/* Sermons styles */
  
.sermons-hero {
  background: url("images/values.jpg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

.sermons-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.sermons-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sermons-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-btn {
  background: #e2b007; /* warm golden color */
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.hero-btn:hover {
  background: blueviolet;
}
.sermons-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #f9f9f9;
}

.sermons-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.sermon-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

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

.sermon-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.sermon-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.sermon-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.sermon-btn {
  display: inline-block;
  background: #e2b007;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.sermon-btn:hover {
  background: blueviolet;
  color: white;
}

/* Ministries sections */
.ministry-hero {
  background: url("images/ministry.jpg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}
.ministry-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.ministry-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ministry-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.ministry-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.ministry-section:nth-child(even) {
  background-color: hsl(0, 0%, 100%); /* alternate bg color */
}

.ministry-content {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ministry-content.reverse {
  flex-direction: row-reverse;
}

.ministry-content img {
  flex: 1;
  max-width: 450px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ministry-text {
  flex: 1;
}

.ministry-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #003366;
}
.ministry-text h3 {
  color: black;
}

.ministry-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333;
}

.ministry-text .btn-primary {
  background-color:  #003366;
  color:  #ffcc00;
  padding: 12px 25px;
  margin-top: 40px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.ministry-highlights li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #333;
}

.ministry-text .btn-primary:hover {
  background-color: #002244;
}
  
  /* --- About Us Page Styles --- */
.about-hero {
  background: url("images/about.jpg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.about-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Flex container for text + image */
.about-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.about-content .text {
  flex: 1;
  min-width: 280px;
}

.about-content .text h2 {
  font-size: 2rem;
  color: #0066cc;
  margin-bottom: 20px;
  position: relative;
}

.about-content .text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0066cc;
  margin-top: 10px;
}

.about-content .text p,
.about-content .text ul {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.about-content .text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-content .text ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.about-content .text ul li::before {
  content: "✔";
  color: #0066cc;
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* Image side */
.about-image {
  flex: 1;
  min-width: 280px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}
  /* =======================
   Church Gallery Section
======================= */
.gallery-hero {
  background: url("images/backgroundgall.jpg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}
.gallery-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gallery-hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.church-gallery {
  padding: 50px 20px;
  text-align: center;
  background-color: peachpuff;
}

.church-gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #003366;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Thumbnail Images */
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

/* =======================
   Lightbox Overlay
======================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

.nav-btn {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10000;
}

.nav-btn.prev {
  left: 0;
}

.nav-btn.next {
  right: 0;
}

/* ================================
  Lightbox Responsive Adjustments
================================= */
@media (max-width: 768px) {
  .lightbox img {
    max-width: 90%;
  }

  .close-btn {
    font-size: 1.8rem;
    top: 15px;
    right: 20px;
  }

  .nav-btn {
    font-size: 2.5rem;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .lightbox img {
    max-width: 95%;
  }

  .close-btn {
    font-size: 1.5rem;
    top: 10px;
    right: 15px;
  }

  .nav-btn {
    font-size: 2rem;
    padding: 0 10px;
  }
}
/* Contact Section */

.contact-hero {
  background: url("images/contact-us.jpg") center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.contact-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}

.contact-hero p {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
}

.hero-btn {
  background: #e2b007; /* warm golden color */
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.hero-btn:hover {
  background: #0c0fe2;
}

.contact-section {
  padding: 30px 20px;
  background-color: white;
  text-align: center;
  min-height: 100vh;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: black;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 40px auto;
  text-align: left;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h3, .contact-form h3 {
  color: black;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-info p {
  margin: 5px 0;
  color: black;
}

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

.contact-form input, .contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #fc0627;
  border-radius: 5px;
}

.contact-form button {
  background-color: orangered;
  color: black;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0055aa;
}


/* Responsive for tablets and phones */
@media (max-width: 768px) {
  .ministry-content {
    flex-direction: column !important; /* stack image + text */
    text-align: center;
  }

  .ministry-content img {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .ministry-text h2 {
    font-size: 1.6rem;
  }

  .ministry-text p {
    font-size: 1rem;
  }

  .ministry-text .btn-primary {
    display: inline-block;
    margin-top: 10px;
  }
}

  /* Footer */
  
  footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
  }
  
  /* Responsive nav toggle button (hidden by default) */
  
  .nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
  
  /* Responsive: on smaller screens */
  
  @media (max-width: 768px) {
    nav ul {
      display: none;
      flex-direction: column;
      background-color: #003366;
      position: absolute;
      top: 65px;
      right: 10px;
      padding: 20px;
      border-radius: 6px;
      width: 180px;
    }
  
    nav ul.show {
      display: flex;
    }
  
    .nav-toggle {
      display: block;
      margin-left: auto;
    }
  }
  /* ================================
  RESPONSIVE STYLES: Below 992px
=================================*/
@media (max-width: 992px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo-img {
    width: 70px;
    height: 70px;
    margin-left: -20px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .preacher-image img {
    width: 300px;
    height: 300px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .sermon-list {
    gap: 40px;
  }

  .sermon {
    width: 90%;
  }

  .sermon-thumbnail {
    max-height: 140px;
  }

  .ministry-card {
    width: 90%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ================================
  RESPONSIVE STYLES: Below 768px
=================================*/
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
  }

  nav ul {
    right: 0;
    top: 70px;
    width: 160px;
  }

  .image-row {
    flex-direction: column;
    gap: 20px;
  }

  .left-info h2 {
    font-size: 28px;
  }

  .left-info h3 {
    font-size: 20px;
  }

  .left-info p, .right-info p {
    font-size: 18px;
  }
  .right-info p {
    color: white;
  }

  .preacher-image img {
    width: 250px;
    height: 250px;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
  }

  .contact-info, .contact-form {
    min-width: 90%;
  }

  .btn-primary {
    padding: 10px 20px;
  }

  .sermon-list {
    gap: 20px;
  }

  .sermon-thumbnail {
    height: 120px;
  }

  .ministry-card {
    width: 95%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}

/* ================================
  RESPONSIVE STYLES: Below 480px
=================================*/
@media (max-width: 480px) {
  .logo-img {
    width: 50px;
    height: 50px;
    margin-left: 0;
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .preacher-image img {
    width: 200px;
    height: 200px;
  }

  .sermon {
    width: 95%;
  }

  .sermon-thumbnail {
    height: 100px;
  }

  .btn-primary, .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .ministry-card {
    width: 95%;
  }

  .contact-section {
    height: auto;
    padding: 40px 20px;
  }
}
.hidden {
  display: none;
}

.view-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #ffcc00;
  color: #003366;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-more-btn:hover {
  background-color: #e6b800;
}

/*Media Queries for responsiveness*/
/* image blocks in index.html */
@media (max-width: 768px) {
  .image-block {
    height: 250px;
  }
  .image-block h2 {
    font-size: 1.5rem;
  }
  .image-block p {
    font-size: 1rem;
  }
}

/*  Sermon section Responsiveness */
@media (max-width: 768px) {
  .sermons-hero h1 {
    font-size: 2rem;
  }
  .sermons-hero p {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .sermons-hero {
    height: 60vh;
  }
  .sermons-hero h1 {
    font-size: 1.6rem;
  }
  .sermons-hero p {
    font-size: 0.9rem;
  }
}

/* About us Responsiveness */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 480px) {
  .page-hero.about-hero h1 {
    font-size: 2rem;
  }

  .page-hero.about-hero p {
    font-size: 1.2rem;
  }
}
