html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 90px; /* Equal or more than header height */
  overflow-x: hidden; /* Prevent horizontal overflow */
}
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* increase slightly for stacked layout */
  }
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* Restored to original */
  align-items: center;
  padding: 15px 40px; /* Increased right padding */
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 0; /* Reset margin */
}
.logo img {
  height: 50px;
  max-width: 100%; /* Prevent image overflow */
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* Navigation - Updated to match image */
nav {
  transform: translateX(-150px);
  flex-grow: 0;
}

nav ul {
  display: flex;
  gap: 30px; /* Slightly larger gap */
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: 10px; /* Added right margin */
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  font-size: 1.1rem;
  letter-spacing: 1px; /* Slightly more spacing */
  padding: 5px 0;
  text-transform: uppercase; /* Kept uppercase */
}

nav ul li a:hover::after,
nav ul li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: #daeefb;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-image: url("/static/images/church-group.jpeg");
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.5;
  font-weight: 700;
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
  nav ul {
    gap: 20px; /* Reduced gap on medium screens */
  }

  nav ul li a {
    font-size: 1.1rem; /* Slightly smaller font */
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 15px;
  }

  .logo-text {
    font-size: 16px;
    line-height: 1.2;
  }

  nav {
    margin-right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
    margin-right: 0; /* Reset margin on mobile */
  }

  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  /* Mobile menu styles */
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Rest of your existing CSS remains exactly the same */
.cta-button {
  display: inline-block;
  background-color: #daeefb;
  color: #000;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 20px;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background-color: #daeefb;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.cta-group {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.gatherings {
  background-color: #fff;
  padding: 60px 20px;
  text-align: left;
}

.gatherings .container {
  max-width: 800px;
  margin-left: 0;
}

.gatherings h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.gatherings h3 {
  font-size: 1.5rem;
  color: #111;
  margin-top: 20px;
}

.gatherings ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
  line-height: 1.8;
  color: #333;
  font-size: 1rem;
  margin: 20px 0;
  max-width: 600px;
}

.site-footer {
  background-color: #37333f;
  color: #daeefb;
  padding: 40px 20px;
  text-align: center;
}

.footer-icons {
  margin-bottom: 20px;
}

.footer-icons a {
  display: inline-block;
  margin: 0 10px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border: 2px solid #daeefb;
  border-radius: 50%;
  color: #daeefb;
  font-size: 20px;
  transition: background 0.3s, color 0.3s;
}

.footer-icons a:hover {
  background-color: #daeefb;
  color: #37333f;
}

.footer-text {
  margin-top: 10px;
  font-size: 14px;
}

.about-section {
  padding: 120px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  position: relative;
  z-index: 2;
  background: white;
}

.about-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/static/images/church-group.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.about-section h1 {
  font-size: 2.5rem;
  color: #daeefb;
  margin-bottom: 30px;
  text-align: left;
}

.about-section h1 i,
.about-point h2 i {
  margin-right: 15px;
  color: #daeefb;
}

.about-section p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-point {
  margin: 30px 0;
  padding: 20px;
  border-left: 4px solid #daeefb;
  background: rgba(218, 238, 251, 0.1);
}

.about-point h2 {
  font-size: 1.5rem;
  color: #daeefb;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-section h1 {
    font-size: 2rem;
  }

  .about-point h2 {
    font-size: 1.3rem;
  }
  nav {
    transform: none; /* Reset for mobile */
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  nav.active {
    display: block;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 35px;
    z-index: 2000;
  }
}

.logo img {
  height: 50px;
  max-width: 100%;
  padding: 4px; /* Optional: adds space inside the image box */
  margin-right: 10px; /* Preferred: separates image from text */
  border-radius: 20%; /* Optional: softens sharp corners if needed */
}
.logo-text {
  font-family: "Cinzel", serif; /* or your chosen font */
  font-size: 20px;
  color: #333;
  line-height: 1.2;
}

.logo-text .bold-part {
  font-weight: 700; /* Bold */
}

.logo-text .normal-part {
  font-weight: normal !important;
  opacity: 0.5; /* 50% transparency */
}
