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

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

/* HERO SECTION */
.worship-hero-section {
  min-height: 80vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(10, 10, 10, 0.8)),
    url("/images/background-image4.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
  position: relative;
  animation: fadeInUp 1s ease forwards;
}

.worship-hero-heading {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.worship-hero-subtext {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

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

/* EXPLORE ALL SECTION */
.worship-explore-section {
  padding: 5rem 1rem;
  background: #f9f9f9;
  text-align: center;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #2c2c2c;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #555;
}

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

.explore-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #333;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.explore-card .icon {
  font-size: 2.5rem;
  color: #b21f1f;
  margin-bottom: 1rem;
  animation: bounceIcon 2s infinite;
}

.explore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.explore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(178, 31, 31, 0.05),
    rgba(178, 31, 31, 0.1)
  );
  transition: left 0.3s ease;
}

.explore-card:hover::before {
  left: 0;
}

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

/* Dropdown Section */
.worship-dropdown-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
  transition: background 0.3s ease-in-out;
}

.worship-dropdown-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1.5rem;
  background: #0e1a2b;
  color: #fff;
  transition: background 0.3s;
}

.dropdown-header:hover {
  background: #1a2c48;
}

.bounce-icon {
  font-size: 2.5rem;
  animation: bounce 2s infinite;
}

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

.dropdown-panel {
  display: none;
  padding: 1.5rem;
  background: #fff;
  animation: fadeIn 0.5s ease forwards;
}

.dropdown-panel iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

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

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

/* PDF Download Buttons */
.pdf-button-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pdf-btn {
  background: #0e1a2b;
  color: #fff;
  padding: 0.8rem 1.2rem;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pdf-btn::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: #2e4773;
  transition: left 0.3s ease;
  z-index: 0;
}

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

.pdf-btn:hover {
  color: #fff;
}

.pdf-btn span {
  position: relative;
  z-index: 1;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination-controls button {
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  background: #1b2c44;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pagination-controls button:hover {
  background: #324d70;
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* LIVESTREAM SECTION */
.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  margin-top: 1rem;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.watch-on-youtube {
  margin-top: 1rem;
  text-align: center;
}

.watch-on-youtube a {
  background-color: red;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.watch-on-youtube a:hover {
  background-color: darkred;
}

.pdf-btn span {
  position: relative;
  z-index: 1;
}

/* UPCOMING EVENTS SECTION */
.events-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}

.event-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background: #fefefe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: navy;
  margin-bottom: 0.5rem;
}

.event-date {
  font-style: italic;
  color: #555;
  margin-bottom: 0.3rem;
}

.event-desc {
  margin-bottom: 0.5rem;
  color: #444;
}

.event-btn {
  display: inline-block;
  padding: 8px 16px;
  background: navy;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.event-btn:hover {
  background: #ff6600;
}

/* TESTIMONIAL SECTION */
.testimonials-section {
  background: #fefefe;
  padding: 6rem 1.5rem;
  min-height: 70vh;
  position: relative;
}

.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

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

.section-header i.bounce-icon {
  font-size: 2.5rem;
  color: #c0392b;
  animation: bounce 2s infinite;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  min-width: 300px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.testimonial-card::before,
.testimonial-card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: #c0392b;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover::before,
.testimonial-card:hover::after {
  transform: scaleX(1);
}

.testimonial-card p {
  font-style: italic;
  color: #333;
}

.testimonial-card h4 {
  margin-top: 1rem;
  font-weight: bold;
  color: #555;
}

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

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

/* ===================== */
/* RESPONSIVE STYLES     */
/* ===================== */

/* Tablets */
@media (max-width: 1024px) {
  .explore-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .video-grid iframe {
    height: 280px;
  }

  .testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }
  .testimonial-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .worship-hero-heading {
    font-size: 2rem;
    text-align: center;
  }

  .worship-hero-subtext {
    font-size: 1rem;
    padding: 0 1rem;
    text-align: center;
  }

  .explore-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .video-grid iframe {
    width: 100%;
    height: 220px;
  }

  .pdf-button-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .testimonials-container {
    padding: 1rem;
  }

  .testimonial-card {
    font-size: 0.95rem;
    padding: 1rem;
  }

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

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

/* DIGGING DEEP SERIES STYLES */
.series-buttons {
  margin-bottom: 1rem;
  text-align: center;
}
.series-btn {
  background: #0e1a2b;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 25px;
  margin: 0.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.series-btn:hover {
  background: #2e4773;
}

.pagination-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

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

.livestream-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.live-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.live-option:hover {
  transform: translateY(-6px);
}

.live-option > i:first-child {
  font-size: 2.2rem;
}

.live-option > i:last-child {
  margin-left: auto;
}

.live-option h3 {
  margin-bottom: 0.4rem;
}

.live-option p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.youtube-option {
  background: linear-gradient(135deg, #b00000, #ff0000);
}

.zoom-option {
  background: linear-gradient(135deg, #1468d4, #2d8cff);
}

@media (max-width: 768px) {
  .livestream-options {
    grid-template-columns: 1fr;
  }
}

/* ================================
   LIVE STREAM MODAL
================================ */

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

  display: none;

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

  padding: 20px;

  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
}

/* Show modal when active */
.live-modal.active {
  display: flex;
}

/* Modal box */
.live-modal-content {
  position: relative;

  width: 100%;
  max-width: 620px;

  padding: 42px;

  background: #ffffff;
  border-radius: 24px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);

  animation: liveModalIn 0.35s ease forwards;
}

/* Close button */
.live-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #0b145c;
  color: white;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition: 0.3s ease;
}

.live-modal-close:hover {
  transform: rotate(90deg);
  background: #c0392b;
}

/* Header */
.live-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.live-modal-header > i {
  font-size: 42px;
  color: #c0392b;
  margin-bottom: 12px;
}

.live-modal-header h2 {
  margin: 0 0 10px;

  color: #0b145c;
  font-size: 30px;
}

.live-modal-header p {
  margin: 0;

  color: #666;
  font-size: 16px;
}

/* Options */
.livestream-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual option */
.live-option {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 20px;

  text-decoration: none;

  border-radius: 16px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.live-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.live-option > i:first-child {
  min-width: 45px;

  font-size: 34px;
  text-align: center;
}

.live-option div {
  flex: 1;
}

.live-option h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.live-option p {
  margin: 0;
  font-size: 14px;
}

/* YouTube */
.youtube-option {
  background: #fff1f1;
  color: #111;
}

.youtube-option > i:first-child {
  color: #ff0000;
}

/* Zoom */
.zoom-option {
  background: #eef5ff;
  color: #111;
}

.zoom-option > i:first-child {
  color: #2d8cff;
}

/* Arrow */
.live-option > i:last-child {
  font-size: 18px;
  color: #777;
}

/* Animation */
@keyframes liveModalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .live-modal-content {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .live-modal-header h2 {
    font-size: 24px;
  }

  .live-option {
    padding: 16px;
  }

  .live-option > i:first-child {
    font-size: 26px;
    min-width: 35px;
  }
}

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

  .logo {
    flex: 1;
  }

  .logo img {
    width: 110px;
  }

  .social-links,
  .searchBox {
    display: none;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
  }

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