/* 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: 1366px;
  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;
}

/* MONTHLY THEME HERO SECTION */
.monthly-theme-hero {
  background: #fff5f5;
  padding: 6rem 1rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1366px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: #c0392b;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-text h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin: 1rem 0;
}

.theme-scripture {
  font-style: italic;
  color: #555;
  margin-top: 1rem;
}

.hero-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

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

/* Fade-in animation (you already use IntersectionObserver) */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

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

/* Bouncing icon animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.bounce-icon {
  animation: bounce 1.5s infinite;
  color: #e74c3c;
  font-size: 1.5rem;
}

.bounce-icon.delay {
  animation-delay: 0.3s;
}

/* Hover effect using ::before */
.hero-image.hover-effect {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.hero-image.hover-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 2;
}

.hero-image.hover-effect:hover::before {
  left: 120%;
}

.hero-image img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

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

/* Section styling */
.monthly-theme-overview {
  background: #f3f6fa;
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
}

.section-header .section-intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* Overview Grid */
.overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.overview-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.overview-box h3 {
  color: #2c3e50;
  margin: 15px 0 10px;
}

.overview-box p {
  color: #555;
  font-size: 1rem;
}

.overview-box .icon {
  font-size: 2rem;
  color: #e74c3c;
}

/* Hover effect */
.overview-box.hover-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
  z-index: 1;
}

.overview-box.hover-effect:hover::before {
  left: 120%;
}

.overview-box:hover {
  transform: scale(1.03);
  z-index: 2;
}

/* monthly theme gallery section  */
.monthly-theme-gallery {
  background: #fff;
  padding: 80px 20px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item .overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2rem;
  color: #fff;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Hover effect with ::before glow */
.gallery-item.hover-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: left 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  left: 120%;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .overlay-icon {
  opacity: 1;
}

/* monthly theme confession section */
.theme-confession-section {
  background: linear-gradient(to right, #fff 0%, #f9f9f9 100%);
  padding: 80px 20px;
}

.confession-box,
.prayer-focus {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  position: relative;
}

.confession-box:hover,
.prayer-focus:hover {
  transform: scale(1.02);
}

.confession-title,
.prayer-focus h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: navy;
}

.confession-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.prayer-focus ul {
  list-style: none;
  padding-left: 0;
}

.prayer-focus ul li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.prayer-focus ul li::before {
  content: "\f111";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: navy;
  position: absolute;
  left: 0;
  top: 6px;
}

/* monthly event section */
/* =========================================
   CHURCH SERVICE SCHEDULE
========================================= */

.monthly-events-section {
  background: #f3f6fa;
  padding: 80px 20px;
}

/* =========================
   SECTION HEADER
========================= */

.monthly-events-section .section-header {
  margin-bottom: 4rem;
}

/* =========================
   SCHEDULE HEADINGS
========================= */

.schedule-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 2rem;
}

.schedule-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0a0a33;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(10, 10, 51, 0.2);
}

.schedule-section-heading h3 {
  margin: 0 0 5px;
  color: #0a0a33;
  font-size: 1.7rem;
}

.schedule-section-heading p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* =========================
   SUNDAY SPECIAL SERVICES
========================= */

.sunday-services-section {
  position: relative;
  padding: 35px;
  margin-bottom: 4rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0a0a33 0%, #17175a 50%, #242477 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(10, 10, 51, 0.2);
}

.sunday-services-section::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -150px;
  right: -80px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
}

.sunday-services-section::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -150px;
  left: -80px;
  border-radius: 50%;
  border: 35px solid rgba(255, 255, 255, 0.05);
}

.sunday-services-section .schedule-section-heading {
  position: relative;
  z-index: 1;
}

.sunday-services-section .schedule-section-heading h3 {
  color: #fff;
}

.sunday-services-section .schedule-section-heading p {
  color: rgba(255, 255, 255, 0.75);
}

.sunday-services-section .schedule-icon {
  background: #d32f2f;
}

/* =========================
   SUNDAY SERVICE GRID
========================= */

.sunday-services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.sunday-service-card {
  position: relative;
  min-height: 230px;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.sunday-service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.18);
}

.sunday-number {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

.sunday-service-card > i {
  margin-bottom: 18px;
  color: #ffb347;
  font-size: 2.3rem;
}

.sunday-service-card h4 {
  min-height: 48px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.service-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffcf75;
  font-size: 0.85rem;
  font-weight: 600;
}

/* =========================
   GENERAL SCHEDULE CATEGORY
========================= */

.schedule-category {
  margin-bottom: 4rem;
}

/* =========================
   WEEKLY SERVICES
========================= */

.weekly-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.weekly-service-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.weekly-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.weekly-service-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #d32f2f;
  font-size: 1.5rem;
}

.service-frequency {
  display: block;
  margin-bottom: 6px;
  color: #d32f2f;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.weekly-service-content h4 {
  margin: 0 0 10px;
  color: #0a0a33;
  font-size: 1.15rem;
}

.weekly-service-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.weekly-service-content p i {
  margin-right: 5px;
  color: #d32f2f;
}

/* =========================
   MONTHLY SPECIAL SERVICES
========================= */

.monthly-special-category {
  margin-bottom: 0;
}

.monthly-special-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.monthly-special-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 24px 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.monthly-special-card:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.special-service-day {
  padding-right: 25px;
  border-right: 2px solid #eee;
  text-align: center;
}

.special-service-day span {
  display: block;
  color: #d32f2f;
  font-size: 1.3rem;
  font-weight: bold;
}

.special-service-day small {
  color: #777;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.special-service-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.special-service-info > i {
  color: #d32f2f;
  font-size: 1.8rem;
}

.special-service-info h4 {
  margin: 0 0 5px;
  color: #0a0a33;
  font-size: 1.1rem;
}

.special-service-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.special-service-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0a0a33;
  font-weight: bold;
  white-space: nowrap;
}

.special-service-time i {
  color: #d32f2f;
}

/* previous theme section */
#previous-themes {
  background: #fafafa;
  padding: 60px 20px;
}

#previous-themes h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.past-theme-card {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.past-theme-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.past-theme-card h4 {
  margin: 0;
  color: navy;
}

.past-theme-card p {
  color: #444;
  margin-top: 10px;
  font-style: italic;
}

/* TESTIMONY CALL AND MONTHLY CALL SECTION */
/* Section Base */
.monthly-testimony-call,
.monthly-share {
  padding: 80px 0;
  text-align: center;
}

.monthly-testimony-call.alt-bg,
.monthly-share {
  background: #f9f9f9;
}

/* Bouncing Icon */
.bounce-icon {
  display: inline-block;
  animation: bounce 2s infinite;
  margin-right: 10px;
  color: #d32f2f;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Button */
.btn-share {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: navy;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-share:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-btn {
  font-size: 20px;
  color: white;
  background: #333;
  padding: 12px 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn.facebook {
  background: #3b5998;
}
.social-btn.twitter {
  background: #1da1f2;
}
.social-btn.whatsapp {
  background: #25d366;
}
.social-btn.telegram {
  background: #0088c;
}

.social-btn:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* -------------- */
/* ------------- */
/* ----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;
}

/* ========== 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.3s 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 */
  }
}

/* ===================== */
/* RESPONSIVENESS STYLES */
/* ===================== */

/* Tablets */
@media (max-width: 1024px) {
  .theme-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .theme-hero-content .hero-text {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .theme-hero-content .hero-image img {
    max-width: 80%;
    height: auto;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .event-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .theme-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .theme-hero-content .hero-text h1 {
    font-size: 1.6rem;
  }

  .theme-hero-content .hero-text h2 {
    font-size: 1.3rem;
  }

  .theme-hero-content .hero-image img {
    width: 100%;
    max-width: 350px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .confession-box,
  .prayer-focus {
    padding: 15px;
    margin-bottom: 20px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .social-icons {
    flex-direction: column;
    gap: 10px;
  }

  .social-btn {
    width: 100%;
    text-align: center;
  }
}

/* Tablet and Mobile Responsiveness */
@media (max-width: 992px) {
  .event-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .event-date {
    flex: unset;
    width: 100%;
    margin-bottom: 10px;
  }

  .event-details {
    text-align: center;
  }

  .event-details h4 {
    font-size: 1.1rem;
  }

  .event-details p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .event-card {
    padding: 15px;
  }

  .event-date {
    font-size: 0.9rem;
  }

  .event-details h4 {
    font-size: 1rem;
  }

  .event-details p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Fix social icons layout */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* space between icons */
  flex-wrap: wrap; /* allow wrapping on very small screens */
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

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 */
}

/* =========================
   SCHEDULE RESPONSIVENESS
========================= */

@media (max-width: 1100px) {
  .sunday-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sunday-service-card:last-child {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .monthly-events-section {
    padding: 60px 15px;
  }

  .sunday-services-section {
    padding: 25px 18px;
  }

  .schedule-section-heading h3 {
    font-size: 1.4rem;
  }

  .sunday-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sunday-service-card:last-child {
    grid-column: auto;
  }

  .weekly-services-grid {
    grid-template-columns: 1fr;
  }

  .monthly-special-card {
    grid-template-columns: 85px 1fr;
    gap: 15px;
    padding: 20px;
  }

  .special-service-time {
    grid-column: 2;
  }
}

@media (max-width: 500px) {
  .schedule-section-heading {
    align-items: flex-start;
  }

  .schedule-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .schedule-section-heading h3 {
    font-size: 1.2rem;
  }

  .schedule-section-heading p {
    font-size: 0.85rem;
  }

  .sunday-services-grid {
    grid-template-columns: 1fr;
  }

  .sunday-service-card {
    min-height: 190px;
  }

  .weekly-service-card {
    padding: 20px;
  }

  .weekly-service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .monthly-special-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .special-service-day {
    padding: 0 0 12px;
    border-right: none;
    border-bottom: 2px solid #eee;
  }

  .special-service-info {
    justify-content: center;
    text-align: left;
  }

  .special-service-time {
    grid-column: auto;
    justify-content: center;
  }
}
