/* google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400..700;1,400..700&family=Manufacturing+Consent&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Reset + General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9f9;
}

ul {
  list-style: none;
}

.new-section {
  min-height: 100vh;
  width: 100%;
}

/* GLOBAL STYLES */
.light-theme {
  background-color: #f8f9fa;
  color: #222;
}

.dark-theme {
  background-color: #121212;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 0;
}

.section-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.section-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.section-flex.reverse {
  flex-direction: row-reverse;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Main navbar wrapper */
.navbar-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 1); /* faded white */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Container with max width */
.navbar-container {
  max-width: 1550px;
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Logo */
.logo img {
  display: block;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

.social-links a {
  color: navy;
  font-size: 1.1rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: orange;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  flex: 1;
  justify-content: center;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: red;
  left: 0;
  bottom: -4px;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-menu li {
  padding: 10px 20px;
}

.dropdown-menu li a {
  color: #333;
  display: block;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Use ::before for pointer/triangle */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 25px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

/* Search Box */
.searchBox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.searchBox input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 0.9rem;
}

.searchBox button {
  padding: 6px 10px;
  background: navy;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.searchBox button:hover {
  background: orange;
}

.dropdown-toggle .fa-sort-down {
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  /* padding-bottom: 12px; */
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  /* background-color: gray; */
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("/images/People9.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}
/* Overlay to darken the background slightly */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* Content Styling */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Headings */
.hero-welcome,
.hero-title,
.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.hero-welcome {
  font-family: "Lora", serif;
  font-size: 2.3rem;
  animation-delay: 0.3s;
}

.hero-title {
  font-family: "Lora", serif;
  font-size: 7.5rem;
  margin-top: 1rem;
  animation-delay: 0.8s;
}

.hero-subtitle {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  margin: 1.5rem 0;
  animation-delay: 1.3s;
}

/* Glowing Gradient Text */
.gradient-text.highlight {
  background: linear-gradient(90deg, red, navy, orange, white);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowingText 5s ease-in-out infinite;
}

/* Button */
.btn-primary {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 28px;
  background: rgb(0, 0, 51);
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease;
  animation: fadeInUp 1s forwards;
  animation-delay: 1.8s;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.4);
}

/* Create a new stacking context for the background effects */
.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgb(70, 1, 1);
  z-index: -1; /* ⬅️ Make sure this is BELOW the text layer */
  transition: left 0.3s ease;
}

.btn-primary::after {
  background: rgba(255, 255, 255, 0.1);
  left: 100%;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover::after {
  left: 0;
}

.btn-primary:hover {
  color: white;
}

/* ======= ANIMATIONS ======= */

/* Fade in upward */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glowing text loop */
@keyframes glowingText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ABOUT SECTION */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 20px;
  background: #f7f7f7;
}

.section-wrapper {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
}

/* Row Layout */
.about-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: nowrap; /* IMPORTANT: don't wrap so that reverse works */
}

.about-row.reverse {
  flex-direction: row-reverse;
}

/* Image and Text Columns */
.about-image,
.about-text {
  flex: 1 1 45%;
  opacity: 0;
  transform: translateY(50px);
}

/* Text content */
.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text hr {
  width: 80px;
  height: 3px;
  background: #e63946;
  border: none;
  margin: 10px 0 20px 0;
}

/* Image */
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ====== SCROLL ANIMATION CLASSES ====== */
.fade-in {
  animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.3s;
}

.fade-in.delay-2 {
  animation-delay: 0.6s;
}

/* FadeIn Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pastors-section {
  background-color: #1a1a1a;
  color: #fff;
  padding: 60px 20px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: #f8f8f8;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
}

.pastors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.pastor-card {
  position: relative;
  background-color: #222;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.pastor-image {
  overflow: hidden;
  border-radius: 10px;
}

.pastor-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.pastor-name {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Hover Zoom + Glow */
.pastor-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.pastor-card:hover .pastor-image img {
  transform: scale(1.05);
}

/* Hover Glow Effect */
.pastor-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, red, navy, orange, white);
  border-radius: 15px;
  filter: blur(15px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.pastor-card:hover::before {
  opacity: 0.6;
}

/* Animation Fade-in */
.fade-in {
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WELCOME SECTION */
.welcome-message-section {
  background-color: #fff5f5;
  padding: 80px 20px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.welcome-message-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.welcome-message-container {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #b30000; /* Deep red */
}

.welcome-text {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.7;
}

.btn-visit {
  position: relative;
  display: inline-block;
  background: navy;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.5rem;
  box-shadow: 0 3px 5px black;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.btn-visit::before,
.btn-visit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: orange;
  transition: all 0.4s ease-in-out;
  z-index: -1;
  border-radius: 30px;
}

.btn-visit::after {
  left: 100%;
  background: red;
}

.btn-visit:hover::before {
  left: 0;
}

.btn-visit:hover::after {
  left: 0;
}

.btn-visit:hover {
  color: white;
}

/* MAP SECTION */
.map-section {
  background-color: #f9f9f9; /* Soft white background */
  padding: 60px 20px;
  min-height: 40vh;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.map-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.map-section .section-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: 700;
}

.map-address {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.map-embed iframe {
  width: 100%;
  min-height: 300px;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAMILY LIFE SECTION */
.ministry-section {
  background-color: #121212;
  color: #fff;
  padding: 80px 20px;
}

.section-title-light {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.ministry-container {
  max-width: 1200px;
  margin: auto;
}

.ministry-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.ministry-card {
  flex: 1 1 30%;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.ministry-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.ministry-card h3 {
  margin-bottom: 10px;
  color: #f0f0f0;
  font-size: 1.4rem;
}

.ministry-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-learn {
  display: inline-block;
  background: #fff;
  color: #121212;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn-learn:hover {
  background: orange;
  color: white;
}

.ministry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(255, 165, 0, 0.2);
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.next-steps-section {
  background-color: #fdf9f6;
  padding: 80px 20px;
}

.section-title-dark {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
}

.step-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #333;
}

.step-card p {
  font-size: 0.96rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Button */
.btn-dark {
  display: inline-block;
  background: #0a0a33;
  color: white;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: orange;
  color: #fff;
}

/* Scroll Animation Fade */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.latest-sermon-section.dark {
  background: #151515;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.section-title-light {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.sermon-intro-light {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.sermon-video iframe {
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  height: 315px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.sermon-video iframe:hover {
  transform: scale(1.02);
}

.sermon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0;
  transform: translateY(40px);
}

.sermon-preview.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.sermon-video-link {
  position: relative;
  display: inline-block;
}

.sermon-video-link img {
  width: 360px;
  max-width: 100%;
  border-radius: 8px;
  filter: brightness(0.9);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.sermon-video-link .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sermon-video-link:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.sermon-video-link:hover .play-icon {
  opacity: 1;
}

.sermon-info {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.sermon-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #fff;
}

.sermon-date {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 20px;
}

.btn-light {
  display: inline-block;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, red, navy, orange, white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-light:hover::before {
  transform: scaleX(1);
}

.btn-light:hover {
  color: #151515;
}

@media (max-width: 768px) {
  .sermon-preview {
    flex-direction: column;
  }

  .sermon-info {
    text-align: center;
  }
}

/* ---------------------- */
/* ---------------------- */
/* VISIT PLANNER SECTION--------- */
/* -------------------------- */
/* ------------------------ */

/* FORM SECTION */
.form-section {
  background: #f9f9f9;
  padding: 60px 20px;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  max-width: 700px;
  width: 100%;
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.form-description {
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: center;
  color: #555;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

input,
select,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: navy;
}

.btn-submit {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: navy;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: orange;
}

/* Responsive */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .media-hero {
    min-height: 70vh;
    background-image: url("/images/People19.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* -------------- */
/* ------------- */
/* ----FOOTER---- */
/* ---------------- */
/* ------------------ */
.site-footer {
  background: #0a0a33;
  color: #f0f0f0;
  padding: 60px 20px 30px;
  font-family: "Lora", serif;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: orange;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: orange;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 20px;
}

.footer-logo p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials {
  margin-top: 15px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: orange;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ------------------ */
/* ------------------ */
/* -----WHO WE ARE------- */
/* ------------------ */
/* ------------------ */
/* ========== Mobile Navbar ========== */
@media (max-width: 1200px) {
  /* Make social icons smaller */
  .social-links a {
    font-size: 0.9rem;
  }

  /* Hide search box on mobile */
  .searchBox {
    display: none;
  }

  /* Hide nav links by default */
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.7s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hamburger Button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
  }

  /* Animate hamburger to "X" when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Dropdown menus should stack full width */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu li {
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }

  /* Show when active */
  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 500px; /* large enough to fit content */
  }
}

/* MOBILE  */
/* ========== Mobile Responsive Styles ========== */
@media (max-width: 1200px) {
  /* General adjustments */
  body {
    font-size: 16px;
  }

  section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Navbar */
  nav ul {
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
  }

  nav ul li {
    margin: 5px 0;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 3.5rem;
  }

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

  .hero-content a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Services */
  .services .service-box {
    max-width: 100%;
    margin: 15px auto;
  }

  /* Contact */
  .contact form {
    width: 100%;
    padding: 0 10px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* about section mobile */
@media (max-width: 1200px) {
  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-row.reverse {
    flex-direction: column; /* override reverse so image always stays on top */
  }

  .about-image,
  .about-text {
    flex: none;
    width: 100%;
  }

  .about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .about-text {
    margin-top: 20px;
    padding: 0 15px;
  }
}

/* family life mobile */
@media (max-width: 1200px) {
  .ministry-cards {
    flex-direction: column;
    align-items: center;
  }

  .ministry-card {
    width: 100%;
    max-width: 90%; /* keep a little margin on sides */
    margin-bottom: 20px;
  }
}

mark.search-highlight {
  background: rgba(255, 243, 128, 0.95); /* soft yellow */
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
  transition: background 1s ease;
}

/* wrapper used to replace original text nodes */
.search-wrapper {
  /* no extra styles needed, but kept for clarity */
}

/* =========================
   MINISTRY MODAL
========================= */

.ministry-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* When modal is open */
.ministry-modal.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   MODAL BOX
========================= */

.ministry-modal-content {
  position: relative;

  width: 100%;
  max-width: 850px;
  max-height: 90vh;

  overflow-y: auto;

  background: linear-gradient(145deg, #ffffff, #f8f9ff);

  border-radius: 24px;

  padding: 25px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2);

  transform: translateY(40px) scale(0.95);
  opacity: 0;

  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

/* Animate modal in */
.ministry-modal.active .ministry-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* =========================
   MODAL IMAGE
========================= */

#modalImage {
  width: 100%;
  height: 350px;

  object-fit: cover;

  border-radius: 18px;

  display: block;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);

  margin-bottom: 25px;
}

/* =========================
   CLOSE BUTTON
========================= */

#modalClose {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: #000033;
  color: white;

  font-size: 1.5rem;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 5;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

#modalClose:hover {
  background: #e63946;
  transform: rotate(90deg) scale(1.1);
}

/* =========================
   TITLE
========================= */

#modalTitle {
  font-family: "Lora", serif;

  font-size: 2.5rem;

  color: #000033;

  margin-bottom: 18px;

  position: relative;
}

/* Small decorative line */
#modalTitle::after {
  content: "";

  display: block;

  width: 70px;
  height: 4px;

  margin-top: 10px;

  background: linear-gradient(to right, #e63946, orange, #000033);

  border-radius: 10px;
}

/* =========================
   DESCRIPTION
========================= */

#modalDescription {
  color: #444;

  font-size: 1.05rem;

  line-height: 1.8;
}

/* Paragraphs */
#modalDescription p {
  margin-bottom: 18px;
}

/* Lists */
#modalDescription ul {
  margin: 15px 0 20px 25px;

  padding-left: 20px;

  list-style: none;
}

/* List items */
#modalDescription li {
  position: relative;

  margin-bottom: 12px;

  padding-left: 25px;
}

/* Custom bullet */
#modalDescription li::before {
  content: "✦";

  position: absolute;

  left: 0;

  color: #e63946;

  font-size: 1.1rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .ministry-modal {
    padding: 15px;
  }

  .ministry-modal-content {
    padding: 18px;

    border-radius: 18px;

    max-height: 92vh;
  }

  #modalImage {
    height: 220px;

    border-radius: 14px;
  }

  #modalTitle {
    font-size: 2rem;
  }

  #modalDescription {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  #modalClose {
    width: 40px;
    height: 40px;

    font-size: 1.2rem;
  }
}

/* =========================================
   RESPONSIVE NAVBAR FIX
========================================= */

@media (max-width: 1200px) {
  .navbar-container {
    min-height: 75px;
    padding: 10px 18px;
    gap: 0;
    flex-wrap: nowrap;
  }

  .logo {
    flex: 1;
  }

  .logo img {
    width: 110px;
    height: auto;
  }

  .social-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .searchBox {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}
