/*
Theme Name: Your Church – Complete Church WordPress Theme
Theme URI: https://demos.mychurchdesigns.co.uk/
Author: Mawunyo Doe Worgbah
Author URI: https://www.mychurchdesigns.co.uk
Description: Your Church is a premium WordPress theme designed specifically for churches, ministries, and faith-based organizations. No plugins required — everything is built-in, from livestream and podcast pages to prayer requests, donations, events, testimonials, and a fully functional sermon platform. Your Church is fast, SEO-friendly, mobile responsive, and deeply customizable using the native WordPress Customizer. Developed with real churches in mind to deliver real results.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-church
Tags: church, podcast, livestream, prayer, donation, ministry, religion, customizer, responsive, clean, elegant, wordpress, faith
*/

/* === Cross-Browser Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* === Ensure Consistent Layout === */
html, body {
    width: 100%;
    height: auto !important;
     overflow-y: auto !important;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Fix for Safari */
}
html, body {
  margin: 0;
  padding: 0;
}

/* === Main Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* === Images Responsive Fix === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Input & Textarea Fields === */
input, textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    outline: none;
}

/* === Wrapper & Full-Width Content === */
.wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* General Header Styling */
#site-header {
    position: relative; /* Avoid absolute/fixed unless needed */
    width: 100%;
    background-color: #000 !important; /* black */
    margin-top: 0; /* Ensure no accidental overlap */
    z-index: 90;
    transition: all 0.3s ease;
}

#sticky-header-wrapper.sticky-scroll-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
  will-change: transform;
}

/* Hidden when scrolling down */
#sticky-header-wrapper.hide-on-scroll {
  transform: translateY(-100%);
  opacity: 0;
}

/* Visible when scrolling up */
#sticky-header-wrapper.show-on-scroll {
  transform: translateY(0);
  opacity: 1;
}
body.sticky-header-active .site-content {
    margin-top: 110px;
}

.site-content {
  margin-top: 100px;
}
.page-banner {
    margin-top: 80px; /* Instead of padding-top */
}
.header-spacer {
  height: 50px; /* Match your header's height */
  width: 100%;
}

.header-container {
    display: flex;
    background-color: #000 !important; /* black */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
/* Flex layout for logo and nav */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo styling */
.site-logo img {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
/* Add padding on mobile to prevent logo from touching edges */
@media (max-width: 768px) {
  .site-logo {
    padding-left: 15px;
    padding-right: 15px;
  }
}
#top-header {
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 20px;
    position: relative;
    z-index: 99;
    width: 100%;
}

.top-header-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.top-header-left,
.top-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-header-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-socials a {
    color: #fff;
    margin-left: 10px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.top-socials a:hover {
    color: #000000;
}


.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: #000000;
}

@media screen and (max-width: 768px) {
    .top-header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-header-left, .top-header-right {
        justify-content: center;
    }
}
/* --- Desktop Navigation --- */

.main-nav {
    width: 100%;
    background-color: #000 !important;
    display: flex;
    justify-content: flex-end;
    position: relative;
    flex-grow: 1;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
    margin: 0;
    padding: 0;
}

.main-nav .nav-menu li {
    position: relative;
}

.main-nav .nav-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.main-nav .nav-menu li a:hover {
    color: #ff9800;
}

/* Dropdown arrow */
.main-nav .dropdown-toggle {
    font-size: 0.6em;
    margin-left: 4px;
    line-height: 1;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* Rotate arrow on hover */
.main-nav .nav-menu li.menu-item-has-children:hover > a .dropdown-toggle {
    transform: rotate(180deg);
}

/* Submenu */
.main-nav .nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    list-style: none;
    padding: 10px 0;
    width: 200px;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.main-nav .nav-menu li:hover > .sub-menu {
    display: block;
}

.main-nav .nav-menu .sub-menu li {
    padding: 0;
}

.main-nav .nav-menu .sub-menu a {
    display: block;
    color: white;
    padding: 10px 20px;
    width: 100%;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}
/* Submenu items hover: background color and white text */
.main-nav .nav-menu .sub-menu a:hover {
    background-color: #ff9800; /* your hover background */
    color: white !important;   /* make text white on hover */
}

/* Active menu item */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
    color: #ff6600;
    font-weight: bold;
    border-bottom: 2px solid #ff6600;
}

/* --- Mobile Navigation --- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 20px;
    z-index: 1100;
}

/* Fullscreen Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    color: white;
    z-index: 1200;
    overflow-y: auto;
    padding-top: 60px;
    flex-direction: column;
}

/* Show overlay when active */
.mobile-menu-overlay.active {
    display: flex;
}

/* Close button */
.close-mobile-menu {
    position: fixed;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 1300;
}

/* Mobile menu list */
.overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.overlay-menu li {
    border-bottom: 1px solid #222;
    position: relative;
}

.overlay-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    width: 100%;
}

/* Submenu toggle button + / - */
.submenu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    margin-left: 10px;
}
/* Highlight active menu item link in mobile overlay */
.overlay-menu .current-menu-item > a,
.overlay-menu .current_page_item > a,
.overlay-menu .current-menu-ancestor > a {
    color: #ff6600;
    font-weight: bold;
    background-color: rgba(255, 150, 0, 0.1); /* subtle highlight background */
    border-left: 4px solid #ff6600; /* visual indicator */
}

/* Optional: Also highlight submenu active links */
.overlay-menu .sub-menu .current-menu-item > a,
.overlay-menu .sub-menu .current_page_item > a,
.overlay-menu .sub-menu .current-menu-ancestor > a {
    color: #ff6600;
    font-weight: bold;
    background-color: rgba(255, 150, 0, 0.1);
    border-left: 4px solid #ff6600;
}

/* Submenu inside mobile overlay */
.overlay-menu .sub-menu {
    display: none;
    flex-direction: column;
    background-color: #111;
}

.overlay-menu li.show-submenu > .sub-menu {
    display: flex;
}

/* Submenu links */
.overlay-menu .sub-menu li a {
    padding-left: 40px;
    font-size: 16px;
}

/* Scrollbar styling for overlay */
.mobile-menu-overlay::-webkit-scrollbar {
    width: 8px;
}

.mobile-menu-overlay::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

/* Responsive Trigger */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Hide desktop nav on mobile */
    .main-nav {
        display: none !important;
    }
}
/* ============================= */
/* THIRD-LEVEL (SUB-SUB MENU) */
/* ============================= */

/* Ensure submenu parents are positioned */
.main-nav .nav-menu .sub-menu li {
    position: relative;
}

/* Hide deeper submenus by default */
.main-nav .nav-menu .sub-menu .sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #222;
    width: 200px;
    padding: 10px 0;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Show third-level submenu on hover */
.main-nav .nav-menu .sub-menu li:hover > .sub-menu {
    display: block;
}

/* Optional arrow indicator for deeper levels */
.main-nav .nav-menu .sub-menu li.menu-item-has-children > a::after {
    content: "▶";
    float: right;
    font-size: 0.7em;
    margin-left: 10px;
}
/* SECOND LEVEL */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
}

/* THIRD LEVEL (flyout right) */
.main-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Ensure hover chain works */
.main-nav li:hover > .sub-menu {
    display: block;
}

/* Keep nested menus hidden until hovered */
.main-nav .sub-menu .sub-menu {
    display: none;
}

.main-nav .sub-menu li:hover > .sub-menu {
    display: block;
}

/* === Sidebar === */
.sidebar {
    width: 30%;
    background: #f9f9f9;
    padding: 20px;
}

/* === Page Content === */
.page-content {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}
/* Base Banner Styling */
.page-banner {
    position: relative;
    width: 100%;
    height: 400px; /* Increase height for full display */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Overlay to improve text visibility */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5); /* Adds transparency effect */
}

/* Page Title in Banner */
.page-banner h1 {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase; /* Capitalizes the page title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    color: white;
}

/* Classic Style with Wave */
.page-banner.style1 .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Full Overlay Text */
.page-banner.style2 {
    background: rgba(0, 0, 0, 0.6);
}

.page-banner.style2 .banner-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Boxed Title Centered */
.page-banner.style3 .banner-overlay {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Minimal Transparent */
.page-banner.style4 .banner-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-banner {
        height: 300px; /* Reduce height for mobile */
    }
    .page-banner h1 {
        font-size: 32px;
    }
}

/* === Newsletter Box === */
.newsletter-box {
    background: #0073aa;
    color: white;
    padding: 20px;
    text-align: center;
    margin: 40px auto;
    width: 60%;
    border-radius: 8px;
}

.newsletter-box input[type="email"] {
    padding: 10px;
    width: 80%;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
}

.newsletter-box button {
    padding: 10px 20px;
    background: white;
    color: #0073aa;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.newsletter-box button:hover {
    background: #005f87;
}
    .newsletter-box {
        width: 90%;
    }


    .newsletter-box input[type="email"] {
        width: 100%;
    }
}

/* === Grid Layout === */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

/* === Section Styling === */
.section {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* === Overlay Effect === */
.section .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}
/* === Buttons === */
button, .cta-button, .custom-button {
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.cta-button, .custom-button {
    background: #0073aa;
    color: white;
    text-transform: uppercase;
}

.cta-button:hover, .custom-button:hover {
    background: #005f87;
}

/* === Buttons Variants === */
.custom-button.secondary {
    background: #f04e30;
}

.custom-button.secondary:hover {
    background: #c43c25;
}

.custom-button.outline {
    background: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.custom-button.outline:hover {
    background: #0073aa;
    color: white;
}

.custom-button.large {
    padding: 16px 32px;
    font-size: 18px;
}

.custom-button.small {
    padding: 8px 16px;
    font-size: 14px;
}

.custom-button.rounded {
    border-radius: 50px;
}

.custom-button.full-width {
    display: block;
    width: 100%;
}

/* === Gradient Button === */
.custom-button.gradient {
    background: linear-gradient(45deg, #0073aa, #005f87);
}

.custom-button.gradient:hover {
    background: linear-gradient(45deg, #005f87, #0073aa);
}

/* === Button Animation === */
@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(0, 115, 170, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 115, 170, 0.5); }
    100% { box-shadow: 0 0 0 rgba(0, 115, 170, 0.5); }
}

.custom-button.pulse {
    animation: pulse 1.5s infinite;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .section {
        padding: 40px 10px;
    }

    .custom-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Layout: Image & Content in a Row */
.invitation-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    gap: 40px;
}

/* Image Container */
.invitation-image {
    flex: 1;
    max-width: 50%;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Image Styling */
.invitation-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.invitation-image:hover img {
    transform: scale(1.05);
}

.invitation-image:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Content Box Styling */
.invitation-content {
    flex: 1;
    max-width: 50%; /* Ensures content takes 50% of the row */
    text-align: left;
    padding: 20px;
}

/* Heading Styling */
.styled-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    position: relative;
}

/* Optional Cross or Effects Behind Heading */
.invitation-content.cross-effect h1::before {
    content: "+";
    position: absolute;
    left: -30px;
    top: -10px;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .invitation-section {
        flex-direction: column;
        text-align: center;
    }

    .invitation-image, .invitation-content {
        max-width: 100%;
    }
}

/* === News Section === */
.news-section {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.news-slider {
    display: flex;
    overflow-x: auto;
    position: relative;
    gap: 20px;
    justify-content: center;
    align-items: center;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.news-item {
    flex: 1;
    max-width: 300px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-content {
    padding: 10px;
}

.news-read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.news-read-more:hover {
    background: #005f87;
}

/* === Map Section === */
.map-container {
    width: 100%;
    position: relative;
}

#churchLocationsMap {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}


/* === Leadership Section === */
#leadership {
    padding: 60px 20px;
    text-align: center;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* === Staff Card === */
.staff-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    padding: 20px;
}

.staff-card:hover {
    transform: translateY(-5px);
}

/* === Staff Photo === */
.staff-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* === Staff Info === */
.staff-info h3 {
    font-size: 20px;
    color: #333;
    margin: 5px 0;
}

.staff-role {
    font-size: 16px;
    color: #777;
    font-weight: bold;
    margin-bottom: 10px;
}
.staff-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.staff-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.staff-box h3 {
    font-size: 20px;
    margin: 10px 0 5px;
}

.staff-box p {
    font-size: 14px;
    color: #555;
}

.contact-info p {
    font-size: 13px;
    margin: 5px 0;
}

.contact-info a {
    color: #0073aa;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #0073aa;
}

/* === Frontpage Leadership Section === */
.frontpage-leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.leadership-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #333;
}

/* === Staff Card (Unified Style) === */
.staff-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.staff-card:hover {
    transform: translateY(-5px);
}

/* === Staff Image === */
.staff-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* === Staff Info === */
.staff-info {
    padding: 0;
}

.staff-info h3 {
    font-size: 20px;
    color: #333;
    margin: 10px 0 5px;
}

.staff-info p {
    font-size: 14px;
    color: #555;
}

/* === Social Media Icons === */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #0073aa;
}

/* === Responsive Grid === */
@media (max-width: 768px) {
    .frontpage-leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* EVENTS PAGE STYLES */
#events-page {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

/* EVENTS GRID: 3 columns on desktop, 2 on tablet, 1 on mobile */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Card Styling */
.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-thumbnail img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.3s ease;
}

.event-thumbnail img:hover {
    transform: scale(1.03);
}
/* Compact Event Info Section */
.event-meta-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
    color: #555;
    margin: 0.5rem 0;
    line-height: 1.3;
}

/* Add icons (optional) */
.event-meta-group span::before {
    margin-right: 6px;
    color: #0073e6;
    font-weight: bold;
}

/* Glow Effect for Featured Events */
.featured-event {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    border: 2px solid #ffd700;
    z-index: 1;
    position: relative;
}

.featured-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

/* Event Content */
.event-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.event-meta {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.3rem;
}

.rsvp-button {
    background: #0073e6;
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    margin-top: auto;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rsvp-button:hover {
    background: #005bb5;
}

.rsvp-count {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Pagination */
.event-pagination {
    text-align: center;
    margin-top: 2rem;
}

.event-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f1f1f1;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.event-pagination .page-numbers:hover {
    background: #0073e6;
    color: #fff;
}

.event-pagination .current {
    background: #0073e6;
    color: #fff;
    font-weight: bold;
}
.events-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #222;
}

/* General Styles */
#single-event {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

/* Event Banner Image */
.event-banner img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    margin-bottom: 20px;
}

/* Event Title, Date & Time */
.event-header {
    margin: 20px 0;
}
.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000; /* Ensure title is black */
    margin-bottom: 10px;
    line-height: 1.3;
}
.event-meta {
    font-size: 18px;
    color: #555;
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
/* Updated Event Meta Style for Single Event */
/* Full-width single-row Date & Time styling */
.event-meta-inline {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: #f8f8f8;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    color: #222;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.event-meta {
    width: 100%;
    margin: 20px 0;
    padding: 12px 18px;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.event-title {
    color: #000;
}

.event-meta p {
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

.event-meta .event-date,
.event-meta .event-time {
    background: #f4f4f4;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Event Content (Proper Justification) */
.event-details {
    text-align: justify;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Event Info (Venue, Price, Category, Tags) */
.event-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    font-size: 16px;
    border-top: 2px solid #ddd;
    padding-top: 20px;
    text-align: left;
}
.event-info p {
    flex: 1;
}

/* Social Sharing */
.event-share {
    margin-top: 30px;
}
.event-share a {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    color: white;
    background: #0073aa;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.event-share a:hover {
    background: #005f87;
}

/* Google Map */
.event-map {
    margin-top: 30px;
}

/* Previous & Next Event Navigation */
.event-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 18px;
}
.event-navigation a {
    text-decoration: none;
    font-weight: bold;
    color: #0073aa;
}
.event-navigation a:hover {
    color: #005f87;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .prayer-donate-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}
/* Modal Overlay */
#rsvp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show overlay */
#rsvp-modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* Modal Container */
#rsvp-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 90vw;
  max-height: 85vh;
  padding: 2rem 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  overflow-y: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  z-index: 10000;
  pointer-events: none; /* Prevent interactions when hidden */
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

/* Show modal */
#rsvp-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto; /* Allow interactions when visible */
}

/* Close Button */
#rsvp-modal .close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
}

#rsvp-modal .close-modal:hover {
  color: #e74c3c;
}

/* Form Styles */
#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

#rsvp-form label {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

#rsvp-form input,
#rsvp-form select {
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline-offset: 2px;
  width: 100%;
  box-sizing: border-box;
}

#rsvp-form input:focus,
#rsvp-form select:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
  outline: none;
}

/* Submit Button */
#rsvp-form button {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #0073aa, #005f87);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 115, 170, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#rsvp-form button:hover,
#rsvp-form button:focus {
  background: linear-gradient(135deg, #005f87, #003f5c);
  box-shadow: 0 7px 20px rgba(0, 95, 135, 0.6);
  outline: none;
}

/* Success and Error Messages */
#rsvp-message {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 22px;
  user-select: none;
}

#rsvp-message.success {
  color: #28a745;
}

#rsvp-message.error {
  color: #d32f2f;
}

/* Responsive */
@media (max-width: 480px) {
  #rsvp-modal {
    width: 95vw;
    padding: 1.5rem 1.75rem;
    max-height: 90vh;
  }

  #rsvp-modal .close-modal {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
  }

  #rsvp-form button {
    font-size: 1rem;
    padding: 10px 0;
  }
}

/* RSVP Counter Display */
.rsvp-counter {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    font-style: italic;
}
/* RSVP Section */
.event-rsvp {
    margin: 40px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.event-rsvp h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.rsvp-counter {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.rsvp-button {
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rsvp-button:hover {
    background-color: #005d8f;
}


#sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 50px;
}
#sidebar h3 {
    text-align: center;
}
#sidebar ul {
    list-style: none;
    padding: 0;
}
#sidebar ul li {
    margin-bottom: 15px;
}
#sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}
#sidebar ul li a:hover {
    color: #0073aa;
}

/* === Homepage Columns === */
#homepage-columns {
    width: 100%;
    padding: 50px 0;
    background-color: #f5f5f5;
}
/* General Box Styling */
.column-box {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease-in-out;
}
.column-box:hover {
    transform: scale(1.05);
}

/* Image Styling */
.column-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}
.column-box img:hover {
    opacity: 0.8;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}
.btn:hover {
    background: #005f87;
}

/* Date Styling */
.sermon-date, .event-date, .blog-date {
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin-top: 10px;
}

/* Three-Column Grid Layout */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .three-column-grid {
        grid-template-columns: 1fr;
    }
}

/* === Countdown Timer Section === */
.countdown-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #0073aa, #005f87);
    color: white;
    border-radius: 10px;
    margin: 40px 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

/* === Floating Sticky Notice === */
#floating-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 300px;
    padding: 12px 15px;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    z-index: 10001; /* Updated to be higher than sticky bar */
    background: linear-gradient(135deg, #0073aa, #005f87);
    color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    transform: translateX(150%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
#floating-notice.shifted-up {
    bottom: 90px; /* Adjust this to match or exceed sticky bar height */
}
#floating-notice.visible {
    transform: translateX(0);
    opacity: 1;
}
.floating-notice-button {
    background: white;
    color: black;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.3s ease-in-out;
    margin-top: 5px;
}

.floating-notice-button:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* === Close Button Position === */
#close-floating-notice {
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 8px;
    font-weight: bold;
}

/* === Mobile Responsive Fix === */
@media (max-width: 600px) {
    #floating-notice {
        right: 10px;
        bottom: 10px;
        max-width: 250px;
        padding: 10px;
    }
}

/* === Locations Page === */
#church-locations {
    padding: 50px 0;
    text-align: center;
    background: #f7f7f7;
}

.location-box {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left;
}

.location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.location-left {
    width: 50%;
}

.location-right {
    width: 45%;
}
/* === Social Media Icons for Locations === */
.location .social-icons {
    margin-top: 10px;
    text-align: center;
}

.location .social-icons a {
    display: inline-block;
    margin: 0 8px;
    font-size: 1.2rem;
    color: #000;
    transition: color 0.3s ease, transform 0.3s ease;
}

.location .social-icons a:hover {
    color: #0073aa;
    transform: scale(1.2);
}

/* Locations Page Grid */
.locations-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 30px;
    text-align: center;
    justify-content: center;
}

/* Location Box */
.location-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

/* Hover Effect - Slow Zoom */
.location-box:hover {
    transform: scale(1.05);
}

/* Image Resizing */
.location-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

/* Image Hover Effect */
.location-box:hover .location-image img {
    transform: scale(1.1);
}
#map {
    width: 100%;
    height: 400px;
    margin-top: 40px;
}
/* 📌 Responsive: Mobile View */
@media (max-width: 768px) {
    .locations-wrapper {
        display: flex;
        flex-direction: column; /* Stacks the locations vertically */
        align-items: center;
        gap: 20px;
    }

    .location-box {
        width: 90%; /* Adjust width to fit mobile screens */
        max-width: 400px;
    }

    .location-image {
        height: 200px; /* Reduce image size for mobile */
    }

    .location-box h3 {
        font-size: 20px;
    }

    .location-box p {
        font-size: 16px;
    }
    
    .location .social-icons a {
        font-size: 1.4rem;
    }
}
/* === Gallery Section === */
#photo-gallery {
    padding: 80px 20px;
    background: #f5f5f5;
    text-align: center;
}

/* Gallery Title */
.gallery-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}
/* Gallery Wrapper */
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Gallery Image Box */
.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

/* Hover Effects */
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* Full Screen Mode */
.fullscreen-mode .gallery-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-mode .gallery-item img {
    width: auto;
    height: 80vh;
    border-radius: 10px;
}

/* Pagination */
.gallery-pagination {
    margin-top: 20px;
}

.gallery-pagination button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease;
}

.gallery-pagination button:hover {
    background: #005f87;
}

/* 📌 Responsive: Mobile Layout */
@media (max-width: 768px) {
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }
}
/* General Gallery Styling */
.gallery-view {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item a:hover img {
    transform: scale(1.05);
}

/* Grid View */
.gallery-view.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Masonry View */
.gallery-view.masonry {
    column-count: 3;
    column-gap: 15px;
}

.gallery-view.masonry .gallery-item {
    display: inline-block;
    width: 100%;
}

/* Carousel View */
.gallery-view.carousel {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
}

.gallery-view.carousel .gallery-item {
    flex: 0 0 33%;
    transition: transform 0.5s;
}

.carousel .gallery-item img {
    width: 100%;
}

/* Fullscreen Lightbox */
.gallery-view.fullscreen .gallery-item a {
    display: block;
    width: 100%;
    text-align: center;
}

.gallery-view.fullscreen .gallery-item img {
    max-width: 100%;
    cursor: pointer;
}

/* === Responsive Fix === */
@media (max-width: 768px) {
    .location-info {
        flex-direction: column;
    }
    .location-left, .location-right {
        width: 100%;
    }
}

/* === Livestream Page === */
#livestream-page {
    padding: 0;
    margin: 0;
    background: #000;
    color: white;
}


/* === Livestream Section === */
#livestream {
  padding: 60px 20px;
  background-color: transparent; /* Removed white background */
  text-align: center;
}

/* === Header Section === */
.livestream-header {
  margin-bottom: 40px;
  background: none; /* Ensure no background color */
  box-shadow: none; /* Remove any shadow if present */
}
.livestream-header h1 {
  font-size: 3rem;
  color: var(--primary);
  margin: 0;
}
.livestream-header p {
  font-size: 1.2rem;
  color: #666;
  margin-top: 10px;
}

/* === Video Embed === */
.livestream-video iframe,
.offline-video iframe {
  width: 100%;
  max-width: 900px;
  height: 500px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}
.livestream-video iframe:hover,
.offline-video iframe:hover {
  transform: scale(1.01);
}

/* === Offline Message === */
.livestream-message {
  color: #999;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* === Countdown Box - Updated === */
.livestream-countdown {
    background-color: var(--accent, #0073aa);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    max-width: 90%;
    width: 600px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.livestream-countdown h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.livestream-countdown p {
    font-size: 1.25rem;
    margin: 0;
}

.livestream-countdown:hover {
  background-color: #005f8a;
}

/* === Responsive Layout === */
@media (max-width: 1024px) {
  .livestream-video iframe,
  .offline-video iframe {
    height: 360px;
  }
}

/* === Giving Page Styling === */
.giving-container {
    padding: 50px 20px;
    text-align: center;
    background: #f7f7f7;
}

.giving-container h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.giving-container p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* === Giving Methods Section === */
.giving-flexbox {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.giving-method {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: all 0.3s ease-in-out;
}

.giving-method i {
    font-size: 40px;
    color: #0073aa;
    margin-bottom: 10px;
}

.giving-method h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.giving-method p {
    font-size: 16px;
    color: #666;
}

/* === Hover Effects === */
.giving-method:hover {
    transform: translateY(-5px);
    background: #0073aa;
    color: white;
}

.giving-method:hover i, 
.giving-method:hover p {
    color: white;
}

/* === Responsive Fix === */
@media (max-width: 768px) {
    .giving-flexbox {
        flex-direction: column;
        align-items: center;
    }
    .giving-method {
        width: 100%;
        max-width: 350px;
    }
}

/* === Widget Styling === */
.widget {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0073aa;
    font-weight: bold;
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    margin-bottom: 10px;
}

.widget-list a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.widget-list a:hover {
    color: #0073aa;
}

/* === Donation Button === */
.btn-donate {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.btn-donate:hover {
    background: #e68900;
}

/* === Radio Station Page === */
#radio-station {
    padding: 50px 20px;
    text-align: center;
    background: #f5f5f5;
}
.now-playing {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

.radio-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.radio-cover img {
    width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.radio-player button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

#play-button {
    background: #28a745;
    color: white;
}

#pause-button {
    background: #dc3545;
    color: white;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .radio-content {
        flex-direction: column;
        align-items: center;
    }
}
/* === Radio Player Button Hover Effect === */
.radio-player button:hover { 
    opacity: 0.8;
}

/* === Radio Schedule & Social Media === */
.radio-schedule h3, .radio-social h3 {
    font-size: 24px;
    margin-top: 20px;
}

.radio-social a {
    font-size: 24px;
    margin: 10px;
    color: #0073aa;
    transition: 0.3s;
}

.radio-social a:hover {
    color: #005f87;
}
#radio-playlist-container {
    background: #f9f9f9;
    padding: 2em;
    border-radius: 12px;
    margin-top: 2em;
}
.player-ui {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
    flex-wrap: wrap; /* allow wrapping on smaller screens */
}

.player-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.player-meta {
    flex: 1 1 auto;
    min-width: 150px;
}

.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.player-controls button {
    font-size: 1.2em;
    padding: 0.5em 1em;
    border: none;
    background: #333;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    flex: 1 1 auto;
}

.player-controls button:hover {
    background: #555;
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
    .player-ui {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .player-thumb img {
        margin: 0 auto;
    }

    .player-controls {
        justify-content: center;
    }

    .player-controls button {
        width: 100%;
        max-width: 200px;
        font-size: 1em;
    }
}

/* === Giving Section === */
#giving-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 60px 20px;
}

/* Overlay Effect */
#giving-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Giving Content */
.giving-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Scripture Styling */
.giving-content .scripture {
    font-size: 1.8rem;
    font-weight: bold;
    max-width: 600px;
    margin-bottom: 30px;
}

/* Button Styling */
.giving-btn .btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    padding: 15px 30px;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
}

/* Hover Effects */
.giving-btn .btn:hover {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    transform: scale(1.05);
}

/* === Mobile Responsive Adjustments === */
@media (max-width: 768px) {
    #giving-section {
        height: 80vh;
        padding: 40px 20px;
    }
    .giving-content .scripture {
        font-size: 1.5rem;
    }
    .giving-btn .btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}
/* ================================
   FLOATING GIVING BUTTON
================================ */

#floating-giving {
    position: fixed;
    z-index: 9999;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* Side */
#floating-giving.giving-left { left: 20px; }
#floating-giving.giving-right { right: 20px; }

/* Vertical positions */
#floating-giving.giving-top { top: 120px; transform: none; }
#floating-giving.giving-middle { top: 50%; transform: translateY(-50%); }
#floating-giving.giving-bottom { bottom: 120px; transform: none; }

/* Button sizes */
#giving-toggle.giving-size-small { padding: 10px 14px; font-size: 13px; }
#giving-toggle.giving-size-medium { padding: 14px 18px; font-size: 15px; }
#giving-toggle.giving-size-large { padding: 18px 24px; font-size: 18px; }

/* Button shapes */
#giving-toggle.giving-shape-pill { border-radius: 50px; }
#giving-toggle.giving-shape-rounded { border-radius: 12px; }
#giving-toggle.giving-shape-square { border-radius: 0; }
#giving-toggle.giving-shape-circle { border-radius: 50%; padding: 16px; }

/* Button base */
#giving-toggle {
    background: var(--giving-color, #ff6600);
    color: var(--giving-text-color, #fff);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

#giving-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

#giving-toggle small {
    font-size: 11px;
    opacity: 0.9;
}

/* Pulse animation */
#giving-toggle .pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pulse 2s infinite;
    background: rgba(255,255,255,0.2);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Slide-out panel */
#giving-panel {
    position: fixed;
    right: -360px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: #111;
    color: #fff;
    padding: 25px;
    z-index: 9998;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
}
#giving-panel.active { right: 0; }
#close-giving {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}
.giving-main-btn {
    display: block;
    background: var(--giving-color, #ff6600);
    color: var(--giving-text-color, #fff);
    padding: 14px;
    text-align: center;
    margin-top: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
/* ================================
   PULSING GLOW EFFECT
================================ */

#floating-giving #giving-toggle {
    position: relative;
    box-shadow:
        0 0 0 rgba(0, 0, 0, 0),
        0 0 25px color-mix(in srgb, var(--giving-color) 40%, transparent);
    animation: givingGlow 2.8s infinite ease-in-out;
}

/* Glow animation */
@keyframes givingGlow {
    0% {
        box-shadow:
            0 0 0 rgba(0,0,0,0),
            0 0 20px color-mix(in srgb, var(--giving-color) 35%, transparent);
    }
    50% {
        box-shadow:
            0 0 8px rgba(0,0,0,0.15),
            0 0 35px color-mix(in srgb, var(--giving-color) 55%, transparent);
    }
    100% {
        box-shadow:
            0 0 0 rgba(0,0,0,0),
            0 0 20px color-mix(in srgb, var(--giving-color) 35%, transparent);
    }
}
/* Hover enhancement */
#floating-giving #giving-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.35),
        0 0 45px color-mix(in srgb, var(--giving-color) 70%, transparent);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #floating-giving { transform: none !important; bottom: 20px; left: 50%; right: auto; }
    #giving-toggle { font-size: 14px; padding: 12px 16px; }
    #giving-panel { width: 90%; right: -100%; }
}
/* ================================
   FRONTPAGE GIVING SECTION
================================ */

.frontpage-giving {
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.frontpage-giving::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    );
}

.frontpage-giving-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.frontpage-giving h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.frontpage-giving p {
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* CTA Button */
.frontpage-giving-btn {
    display: inline-block;
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--giving-color, #ff6600);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 25px var(--giving-color);
    animation: frontpagePulse 2.8s infinite;
    transition: transform 0.3s ease;
}

.frontpage-giving-btn:hover {
    transform: scale(1.08);
}

@keyframes frontpagePulse {
    0% {
        box-shadow: 0 0 20px var(--giving-color);
    }
    50% {
        box-shadow: 0 0 45px var(--giving-color);
    }
    100% {
        box-shadow: 0 0 20px var(--giving-color);
    }
}


/* Video Overlay Section */
.video-section {
    position: relative;
    background: url('<?php echo get_template_directory_uri(); ?>/images/video-background.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.video-overlay-container {
    position: relative;
    z-index: 1;
}

.video-content {
    max-width: 600px;
    margin: 0 auto;
}

.video-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.video-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.video-content .button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.video-content .button:hover {
    background: #005f87;
}

.video-play-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal .modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
}

.video-modal .modal-content video {
    width: 100%;
    border-radius: 10px;
}

.video-modal .close-video {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}
/* Video Banner */
.video-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}
/* About Us Section */
.about-us {
    padding: 60px 20px;
    background: #f9f9f9;
}

.about-us-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.about-us-column {
    flex: 1;
    min-width: 300px;
}

.about-us-column h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.about-us-column p {
    font-size: 16px;
    margin-bottom: 15px;
}

.about-us-column .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.about-us-column .btn:hover {
    background: #005f87;
}

/* About Us Boxes */
.about-us-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-us-box {
    position: relative;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
}

.about-us-box .box-link {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.about-us-box .box-link:hover {
    background: rgba(0, 0, 0, 0.8);
}


.page-content, .post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.post-meta, .post-tags {
    font-size: 14px;
    color: #666;
}

.post-tags a {
    color: #0073aa;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.post-navigation a {
    color: #0073aa;
    text-decoration: none;
}

.post-navigation a:hover {
    text-decoration: underline;
}

/* Library Page */
.library-banner {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.library-container {
    padding: 40px 20px;
}

.library-search {
    margin-bottom: 20px;
    text-align: center;
}

.library-search form {
    display: inline-flex;
    gap: 10px;
}

.library-search input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.library-search button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.library-search button:hover {
    background: #005f87;
}

.library-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.library-item {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.library-item img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 15px;
}

.library-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.library-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.library-actions .button {
    background: #0073aa;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 4px;
}

.library-actions .button:hover {
    background: #005f87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container, .post-container {
        flex-direction: column;
    }

    .footer-columns, .library-items {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-columns, .library-items {
        grid-template-columns: 1fr;
    }
}

/* Fade-In Effect */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.video-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.video-overlay-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* Pastor Photo */
.pastor-photo img {
    width: 120px; /* Set specific width */
    height: 120px; /* Set specific height */
    border-radius: 50%; /* Make it round */
    object-fit: cover; /* Ensure it fits well */
    margin-bottom: 10px;
    display: block;
}

.pastor-column {
    max-width: 500px;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .video-overlay-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
/* === DEFAULT BLUE & WHITE === */
:root {
    --primary-color: #0044cc;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --button-bg: #0044cc;
    --button-text: #ffffff;
}

/* === EARTHY WARM (BROWN & GOLD) === */
.color-scheme-earthy {
    --primary-color: #8B5E3C;
    --secondary-color: #E1C699;
    --text-color: #5C4033;
    --button-bg: #8B5E3C;
    --button-text: #ffffff;
}

/* === MODERN MINIMAL (BLACK & WHITE) === */
.color-scheme-modern {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #222222;
    --button-bg: #000000;
    --button-text: #ffffff;
}

/* === ROYAL PURPLE (PURPLE & SILVER) === */
.color-scheme-royal {
    --primary-color: #5A2A82;
    --secondary-color: #D8C9E1;
    --text-color: #3D1C56;
    --button-bg: #5A2A82;
    --button-text: #ffffff;
}

/* === VIBRANT ENERGY (RED & ORANGE) === */
.color-scheme-vibrant {
    --primary-color: #D72638;
    --secondary-color: #F46036;
    --text-color: #731C22;
    --button-bg: #D72638;
    --button-text: #ffffff;
}

/* === APPLY COLORS SITE-WIDE === */
body {
    background: var(--secondary-color);
    color: var(--text-color);
}
header, footer {
    background: var(--primary-color);
    color: var(--button-text);
}
.button, .btn {
    background: var(--button-bg);
    color: var(--button-text);
}
.button:hover, .btn:hover {
    opacity: 0.8;
}
/* === Invitation Section Styling === */
.invitation-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* Image Styling */
.invitation-image img {
    width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Content Box */
.invitation-content {
    max-width: 600px;
    text-align: left;
}

/* Stylish Header */
.invitation-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
}

/* Cross Effect */
.cross h1::before {
    content: "+";
    position: absolute;
    left: -30px;
    top: -10px;
    font-size: 3rem;
    color: #ff9800;
}

/* Gradient Effect */
.gradient {
    background: linear-gradient(135deg, #0073aa, #005f87);
    padding: 40px;
    border-radius: 10px;
}

/* Call-to-Action Buttons */
.button-group {
    margin-top: 20px;
}

.button-group a {
    display: inline-block;
    margin: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .invitation-section {
        flex-direction: column;
        text-align: center;
    }

    .invitation-image img {
        width: 100%;
        max-width: 400px;
    }

    .invitation-content {
        max-width: 100%;
    }
}
/* === Front page Shop Section === */
#shop-collections {
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

/* Layout Styles */
.shop-grid,
.shop-list,
.shop-carousel,
.shop-masonry {
    display: grid;
    gap: 20px;
}

/* Grid View */
.shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* List View */
.shop-list {
    grid-template-columns: 1fr;
}

/* Masonry View (requires masonry JS for full effect) */
.shop-masonry {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Carousel (used by Swiper or Slick) */
.shop-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
}
.shop-carousel .shop-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    min-width: 250px;
    margin-right: 20px;
}

/* === Shared Item Styles === */
.shop-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.shop-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.shop-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.shop-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.shop-item:hover .shop-image-wrapper img {
    transform: scale(1.05);
}

.shop-item h3 {
    font-size: 18px;
    margin: 10px 0 6px;
    font-weight: 600;
    color: #222;
}

.shop-price {
    font-size: 16px;
    color: #0073aa;
    font-weight: bold;
    margin-bottom: 12px;
}

/* === Buy Button === */
.button.buy-now {
    display: inline-block;
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover colors will be overridden by Customizer inline styles */
.button.buy-now:hover {
    background: #005f87;
    transform: scale(1.05);
}

/* === Responsive === */
@media (max-width: 768px) {
    .shop-grid,
    .shop-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-carousel .shop-item {
        min-width: 80%;
    }
}

@media (max-width: 480px) {
    .shop-grid,
    .shop-masonry {
        grid-template-columns: 1fr;
    }
    .shop-carousel .shop-item {
        min-width: 90%;
    }
}

/* === Mission Statement Section === */
#mission-statement {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay Effect */
#mission-statement .overlay {
 position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Increased opacity for a darker effect */
}

/* Container for Mission Content */
#mission-statement .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

/* Stylish Heading */
.mission-title {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: white;
}

/* Mission Statement Text */
.mission-text p {
    font-size: 2.4rem;
    font-style: italic;
    line-height: 1.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mission-title {
        font-size: 2.5rem;
    }

    .mission-text p {
        font-size: 1.2rem;
    }
}
/* === General Utilities === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* === Contact Section === */
.section-contact {
  background: #f9f9f9;
  padding: 4rem 0;
}
.contact-banner img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}
.contact-details p {
  font-size: 1.1rem;
  color: #444;
  margin: 10px 0;
}
.contact-details i {
  color: #0073aa;
  margin-right: 8px;
}

/* === Contact Form === */
.contact-form-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.contact-form button {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.contact-form button:hover {
  background: #005f87;
  transform: translateY(-2px);
}
.form-success {
  display: none;
  background-color: #e6f4ea;
  color: #2f6627;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 0.95rem;
}

/* === Get Involved Section === */
.get-involved-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 600px;
}
.get-involved-container {
  position: relative;
  height: 100%;
}
.get-involved-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6);
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.get-involved-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  color: #fff;
}
.get-involved-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.get-involved-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.get-involved-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 0 10px rgba(13,110,253,0.4);
}
.btn-primary:hover {
  background: #0b5ed7;
  box-shadow: 0 0 20px rgba(13,110,253,0.6);
}
.btn-secondary {
  background: #198754;
  color: #fff;
  box-shadow: 0 0 10px rgba(25,135,84,0.4);
}
.btn-secondary:hover {
  background: #157347;
  box-shadow: 0 0 20px rgba(25,135,84,0.6);
}

/* === Animation === */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .get-involved-content h2 {
    font-size: 2rem;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* Hero Section - Ensures text is centered on video/banner */
#hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
   
}
.hero-video,
.hero-iframe,
.static-banner,
.swiper,
.swiper-slide {
    width: 100%;
    height: 100vh;
    display: block;
}

.hero-iframe {
    width: 100%;
    height: 100vh;
    border: 0;
}
/* Hero Content - Ensure text appears in the center */
.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for better visibility */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
}

/* Hero Heading */
.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white !important; /* Force white color */
}

/* Hero Subtext */
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white !important; /* Ensures subtext is also white */
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

/* CTA Button Hover */
.cta-button:hover {
    background: #ff7300;
    transform: scale(1.05);
}

/* Video & Image Background */
#hero-section video,
#hero-section iframe,
#hero-section .slider,
#hero-section .static-banner {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}
.slider {
    position: relative;
    overflow: hidden;
}
.slide {
    background-size: cover;
    background-position: center;
    height: 100vh;
}

/* Ensure Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Latest Message Section */
.latest-message-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    color: white;
    text-align: left;
    overflow: hidden;
}

/* Background Video */
.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Background Image */
.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Overlay */
.message-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Thicker overlay for readability */
    z-index: 0;
}

/* Content Box */
.message-content {
    position: relative;
    z-index: 1;
    max-width: 500px; /* Limit width */
    padding: 20px;
}

/* Underlined Heading */
.underline-heading {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white !important; /* Forces white color */
    text-transform: uppercase;
    text-decoration: underline; /* Underline Effect */
}

/* Main Text */
.message-content p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 20px;
}

/* Date */
.message-date {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Buttons */
.message-buttons {
    display: flex;
    justify-content: flex-start; /* Align buttons to the left */
    gap: 20px;
}

.watch-button,
.all-messages-button {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.watch-button {
    background: #ff9800;
    color: white;
}

.watch-button:hover {
    background: #e68a00;
}

.all-messages-button {
    background: #0073aa;
    color: white;
}

.all-messages-button:hover {
    background: #005f87;
}

#whats-happening {
  background: #f4f4f4;
  padding: 60px 20px;
}

#whats-happening h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
}
/* Swiper container adjustments */
.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}
.event-slider {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.event-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.event-box {
  min-width: 300px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.event-box img {
  width: 100%;
      height: 250px; /* Increase height to maintain uniform size */
    object-fit: cover; /* Ensures images fill the space without stretching */
    display: block; /* Prevents inline spacing issues */
  border-radius: 8px;
  margin-bottom: 15px;
}

.event-box h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.event-box p {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.event-button {
  display: inline-block;
  background: #ff9800;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.event-button:hover {
  background: #e67e00;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }
/* Swiper nav buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    display: block; /* Force show */
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

/* Ensure nav buttons appear on small screens */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        top: 40%;
        width: 30px;
        height: 30px;
    }

    .swiper-button-prev {
        left: 5px;
    }

    .swiper-button-next {
        right: 5px;
    }

    .event-box {
        width: 95%;
    }
}

/* Swiper pagination */
.swiper-pagination-bullet {
    background: #aaa;
}

.swiper-pagination-bullet-active {
    background: #ff9800;
}
@media (max-width: 768px) {
  .event-slider {
    padding: 0 10px;
  }

  .slider-btn {
    display: none;
  }

  .event-box {
    min-width: 80%;
  }
}
@media (max-width: 768px) {
    .event-box img {
        height: 200px; /* Smaller height for mobile screens */
    }
}
@media (max-width: 768px) {
    .event-box {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* 🎚️ Sermon Page Styling */
#sermons-page {
    padding: 60px 20px;
    background: #f9f9f9;
}

.sermon-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 🔎 Search Bar */
.sermon-search-form {
    text-align: center;
    margin-bottom: 20px;
}

.sermon-search-form input {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.sermon-search-form button {
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 5px;
}

.sermon-search-form button:hover {
    background: #005f87;
}

/* 🎚️ Filters */
.sermon-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sermon-filters select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
}

/* 📜 Sermon List */
.sermon-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sermon-item {
    width: 30%;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}

.sermon-item:hover {
    transform: scale(1.05);
}

.sermon-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.sermon-content h3 {
    font-size: 20px;
    margin-top: 10px;
}

.sermon-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.sermon-button {
    display: inline-block;
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.sermon-button:hover {
    background: #005f87;
}

/* 📌 Pagination */
.sermon-pagination {
    text-align: center;
    margin-top: 20px;
}

.sermon-pagination a {
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
}

.sermon-pagination a:hover {
    background: #005f87;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .sermon-filters {
        flex-direction: column;
        align-items: center;
    }

    .sermon-search-form input {
        width: 90%;
    }

    .sermon-item {
        width: 90%;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: red;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.testimonial-box {
    flex: 1 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
}

.testimonial-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.testimonial-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.testimonial-image-link:hover .testimonial-photo {
    transform: scale(1.05);
}

.testimonial-info {
    padding: 20px;
    text-align: center;
}

.testimonial-text {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
}

.testimonial-date {
    font-size: 12px;
    color: #888;
}

.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #005f8d;
}

.testimonial-pagination {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 1024px) {
    .testimonial-box {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .testimonial-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Lightbox */
.gallery-lightbox a {
    display: inline-block;
    margin: 10px;
}
.gallery-lightbox img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

/* Grid View */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Carousel View */
.gallery-carousel img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}
.faq-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.faq-header p {
    font-size: 1.2rem;
    color: #666;
}
.faq-contact-btn {
    display: inline-block;
    margin-top: 20px;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.faq-contact-btn:hover {
    background-color: #005f8a;
}

.faq-list {
    border-top: 1px solid #ddd;
}

.faq-item {
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}
.faq-item:hover {
    background: #fafafa;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
}
.faq-toggle-icon {
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: #0073aa;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
    background: #fff;
    color: #444;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 20px;
}
.faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Scrolling Images Section */
#scrolling-images-section {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    white-space: nowrap; /* Keep images in a single row */
    display: flex;
    align-items: center;
}

/* Scrolling Images Container */
.scrolling-images {
    display: flex;
    gap: 20px;
    width: 200%;
    white-space: nowrap; /* Keep images in a single row */
    animation: scrollingImages 25s linear infinite;
}

/* Image Box Styles */
.scrolling-image {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.4s ease-in-out;
}

/* Horizontal & Vertical Shapes */
.scrolling-image.horizontal img {
    width: 250px;
    height: 150px;
    object-fit: cover;
}

.scrolling-image.vertical img {
    width: 150px;
    height: 250px;
    object-fit: cover;
}

/* Image Hover Effects */
.scrolling-image.zoom-in img:hover {
    transform: scale(1.1);
}

.scrolling-image.grayscale img:hover {
    filter: grayscale(100%);
}

.scrolling-image.blur img:hover {
    filter: blur(5px);
}

.scrolling-image.rotate img:hover {
    transform: rotate(10deg);
}

/* Scrolling Animation */
@keyframes scrollingImages {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .scrolling-images {
        animation-duration: 25s;
    }

    .scrolling-image.horizontal img {
        width: 180px;
        height: 100px;
    }

    .scrolling-image.vertical img {
        width: 100px;
        height: 180px;
    }
}
/* Share Your Story Section */
#share-story {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Make section full width */
.full-width-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Flex the container */
.story-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Image half */
.story-image {
    flex: 1 1 50%;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text half */
.story-content {
    flex: 1 1 50%;
    padding: 4rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Button styles */
.story-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: #fff;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.story-button:hover {
    background: #005b8f;
    color: #fff;
}
 .story-form-modal {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        .story-form-content {
            background: #fff;
            padding: 30px;
            border-radius: 8px;
            max-width: 500px;
            width: 90%;
            position: relative;
            box-shadow: 0 0 20px rgba(0,0,0,0.3);
        }
        #close-story-form {
            position: absolute;
            top: 10px; right: 15px;
            font-size: 22px;
            cursor: pointer;
        }
        #share-story-form input, #share-story-form textarea {
            width: 100%;
            margin-bottom: 15px;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        #share-story-form button {
            background: #0073aa;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
        }
        #share-story-form button:hover {
            background: #005f8d;
        }
/* Mobile Responsive */
@media (max-width: 768px) {
    .story-container {
        flex-direction: column;
    }
    .story-image, .story-content {
        flex: 1 1 100%;
    }
    .story-content {
        padding: 2rem;
    }
}

#event-countdown {
    width: 100%;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    color: white;
}

.event-countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Row 1: Event Image */
.event-left {
    flex: 1;
    text-align: center;
}

.event-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    transition: transform 0.3s;
}
.event-image:hover {
    transform: scale(1.05);
}

/* Event Buttons */
.event-buttons {
    margin-top: 15px;
}
.event-buttons .button {
    margin: 5px;
}

/* Row 2: Event Title, Date, Location, Countdown */
.event-right {
    flex: 1;
    text-align: center;
}

.event-title {
    font-size: 32px;
    font-weight: bold;
    color: white !important; /* Forces white color */
    text-align: center;
}
.event-title-underline {
    width: 100px;
    border: 2px solid #ff9800;
    margin: 10px auto;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Countdown Timer */
#countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.countdown-box {
    padding: 10px;
    border-radius: 5px;
    background: #0073aa;
    text-align: center;
}
.countdown-box span {
    display: block;
    font-size: 24px;
}
.countdown-box small {
    display: block;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-countdown-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .event-left, .event-right {
        width: 100%;
    }

    .event-image {
        max-width: 100%;
    }

    .event-details {
        flex-direction: column;
        gap: 10px;
    }

    #countdown {
        flex-wrap: wrap;
    }

    .countdown-box {
        flex: 1 1 45%;
    }
}
/* Search Results Page */
.search-results-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    background: #f8f9fa;
}

.search-result-item:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

/* Search Result Labels */
.result-label {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 5px;
}

.sermon-label {
    background: #0073aa;
}
.event-label {
    background: #28a745;
}
.blog-label {
    background: #dc3545;
}
.other-label {
    background: #6c757d;
}

/* Featured Image */
.search-result-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.search-result-item img:hover {
    opacity: 0.8;
}

/* Title & Excerpt */
.search-result-item h2 {
    font-size: 20px;
    margin: 0;
}

.search-result-item p {
    font-size: 14px;
    color: #555;
}

/* "View More" Button */
.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    font-size: 14px;
}

.btn:hover {
    background: #005f87;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    padding: 8px 12px;
    margin: 2px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background: #005f87;
}

/* No Results Message */
.no-results {
    text-align: center;
    font-size: 18px;
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        text-align: center;
    }
    .search-result-item img {
        width: 100%;
        height: auto;
    }
}
/* Slide-in Search */
.slide-search {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    background: white;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}
.slide-search.open {
    display: block;
}
.slide-search input {
    padding: 8px;
    border: 1px solid #ccc;
    width: 200px;
}
.slide-search button {
    padding: 8px 10px;
    background: #333;
    color: #fff;
    border: none;
}

/* Fullscreen Modal Search */
.search-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}
.search-modal.active {
    display: flex;
}
.modal-form {
    text-align: center;
}
.modal-input {
    width: 80%;
    max-width: 600px;
    padding: 15px;
    font-size: 18px;
    border: none;
    margin-bottom: 20px;
}
.modal-form button {
    background: #f1c40f;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

/* Full-Width Search Bar */
.library-search {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Filters Section */
.library-filters {
    display: flex;
    flex-direction: column; /* Stack filters on top of each other */
    padding: 15px;
    background: #f8f8f8;
    margin-bottom: 20px;
    border-radius: 8px;
    gap: 10px;
}

/* Filter Dropdowns */
.filter-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Library Grid Layout */
.library-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Library Item Box */
.library-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.library-item:hover {
    transform: translateY(-5px);
}

/* Featured Image Box */
.library-featured-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
}

/* Ensure Featured Image Covers Entire Box */
.library-featured {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    border-radius: 8px;
}

/* Availability Badge (Inside Featured Image) */
.availability-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: green;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

/* Price Tag (Inside Featured Image) */
.library-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

/* View Button */
.view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: blue;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.view-btn:hover {
    background: darkblue;
}

/* Mobile-Friendly Adjustments */
@media screen and (max-width: 768px) {
    .library-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 15px;
    }

    .library-featured {
        height: 200px; /* Reduce image height */
    }

    .library-filters {
        flex-direction: column;
    }

    .view-btn {
        width: 100%;
        text-align: center;
    }
}
/* Leadership Page Container */
#leadership {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

#leadership h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #222;
}

/* Leadership Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Leader Card */
.leader {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.leader:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Leader Image */
.leader img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-bottom: 5px solid #007bff;
}

/* Leader Info */
.leader h3 {
    font-size: 1.25rem;
    margin: 15px 0 5px;
    color: #333;
}

.leader p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.leader .contact-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.leader .contact-info a {
    color: #007bff;
    text-decoration: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}
.staff-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.staff-box:hover {
    transform: scale(1.03);
}

.staff-box:hover .overlay {
    opacity: 1;
}
/* Social Icons */
.leader .social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.leader .social-icons a {
    font-size: 20px;
    color: #555;
    transition: color 0.3s;
    text-decoration: none;
}

.leader .social-icons a:hover {
    color: #007bff;
}

/* Pagination */
.navigation.pagination {
    text-align: center;
    margin-top: 40px;
}

.navigation.pagination a,
.navigation.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    background-color: #eee;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.navigation.pagination a:hover {
    background-color: #007bff;
    color: #fff;
}
.social-icons a {
    margin: 0 8px;
    font-size: 1.4em;
    color: white;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #ffd700;
}
/* Responsive Fix */
@media screen and (max-width: 768px) {
    .leader img {
        height: 250px;
    }

    .leader h3 {
        font-size: 1.1rem;
    }

    .leader p {
        font-size: 0.9rem;
    }
}
#locations .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.location {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
}

.location-info {
    padding: 15px;
    background-color: #f9f9f9;
}

.location-info h3 {
    margin: 0 0 10px;
}

.location-info p {
    margin: 5px 0;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.social-icons a {
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #0073e6;
}

.view-more {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-more:hover {
    background-color: #005bb5;
}

.location-details {
    display: none;
    padding: 15px;
    background-color: #eef;
}

.location-details.show {
    display: block;
}

.google-maps iframe {
    width: 100%;
    height: 200px;
    border: none;
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}
/* File: css/calvary-video-gallery.css */

.calvary-video-gallery {
    padding: 50px 0;
    background-color: #f9f9f9;
}
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.view-mode-buttons {
    text-align: center;
    margin-bottom: 20px;
}
.view-mode-buttons button {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: 0.3s;
}
.view-mode-buttons button.active {
    background: #333;
    color: #fff;
}

.video-main-player {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 20px;
    position: relative;
}
.video-main-player iframe,
.video-main-player video {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}
.video-info-area {
    background: #fff;
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
}
.meta-row {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.video-carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}
.video-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-behavior: smooth;
    padding: 15px;
}
.video-thumb-item {
    min-width: 300px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.video-thumb-item:hover {
    transform: scale(1.05);
}
.thumb-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.more-info-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.carousel-nav.left {
    left: 0;
}
.carousel-nav.right {
    right: 0;
}

.video-grid-view,
.video-list-view {
    display: none;
}
.view-mode.active {
    display: block;
}

.video-grid-view .video-thumb-item,
.video-list-view .video-thumb-item {
    min-width: 100%;
    margin-bottom: 20px;
}

.video-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-list-view .video-thumb-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    align-items: center;
}
.video-list-view .thumb-img {
    width: 180px;
    height: 100px;
    flex-shrink: 0;
}
.video-list-view .more-info-btn {
    position: relative;
    left: auto;
    bottom: auto;
}
.beliefs-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.beliefs-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.belief {
  background-color: var(--belief-bg);
  border-radius: 12px;
  padding: 20px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.belief:hover {
  background-color: var(--belief-hover);
}

.belief-title {
  font-weight: 600;
  font-size: 1.2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.belief-content {
  display: none;
  margin-top: 15px;
  font-size: 0.95em;
  text-align: left;
}

.plus-icon {
  font-size: 1.2em;
  margin-left: 10px;
}

.belief-title.active .plus-icon {
  transform: rotate(45deg);
}

.get-involved-section {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 50px 30px;
  margin: 40px auto;
  color: white;
  width: 80%;
}

.get-involved-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.get-involved-section p {
  font-size: 1rem;
  margin-bottom: 30px;
}

.get-involved-section .btn {
  padding: 12px 24px;
  text-decoration: none;
  background-color: #ffffff22;
  border: 2px solid white;
  color: white;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.get-involved-section .btn:hover {
  background-color: white;
  color: #000;
}
.our-values {
  padding: 60px 20px;
  text-align: center;
}

.our-values .center {
  max-width: 700px;
  margin: 0 auto 20px;
}

.values-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.value-tab {
  background-color: #eee;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.value-tab:hover {
  background-color: #ccc;
}

.value-details-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.value-left, .value-right {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: left;
}

.value-left h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.value-right img {
  max-width: 100%;
  border-radius: 12px;
}

/* Programs and Events Grid Layout */
.programs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.program-box {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: white;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.program-box .overlay {
    background: rgba(0, 0, 0, 0.5); /* Darken for contrast */
    padding: 20px;
    width: 100%;
}

.program-box h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.program-box p {
    font-size: 0.95em;
    margin-bottom: 15px;
}

.program-box .read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff9800;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.program-box .read-more:hover {
    background-color: #e07e00;
}

/* Responsive */
@media (max-width: 768px) {
    .program-box {
        height: auto;
        min-height: 250px;
    }
}
#frontpage-locations {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.campus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.campus-item:hover {
    transform: scale(1.05);
}

.circle-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 5px transparent;
    transition: box-shadow 0.3s;
}

.campus-item:hover .circle-photo {
    box-shadow: 0 0 0 5px var(--hover-color);
}

.campus-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.campus-item:hover .campus-button {
    background-color: var(--hover-color);
    color: #fff;
}

.view-all-wrapper {
    margin-top: 40px;
}

.view-all-btn {
    padding: 12px 30px;
    background-color: #555;
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background-color: #000;
}
#pastor-greeting {
    padding: 80px 20px;
    background-color: #f7f9fb;
}

.pastor-flexbox {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.pastor-image {
    flex: 1 1 45%;
    max-width: 500px;
    text-align: center;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
}

.pastor-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.pastor-image:hover img {
    transform: scale(1.08);
}
.pastor-message {
    flex: 1 1 45%;
    max-width: 600px;
    text-align: left;
}

.section-subtitle {
    font-size: 14px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pastor-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.pastor-greeting p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 768px) {
    .pastor-flexbox {
        flex-direction: column;
    }

    .pastor-message {
        text-align: center;
    }

    .pastor-name {
        font-size: 28px;
    }
}
.our-story-timeline {
    padding: 50px 20px;
    background: #f8f8f8;
    position: relative;
}

.story-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.timeline-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #ccc,
        #ccc 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-points {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.timeline-point {
    background: transparent;
    border: none;
    position: relative;
    text-align: center;
    cursor: pointer;
    padding: 10px;
}

.timeline-point .dot {
    width: 18px;
    height: 18px;
    background: #0073aa;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.timeline-point .date-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}

.timeline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.timeline-modal.show {
    display: flex; /* Flex centers it horizontally and vertically */
}

.timeline-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.modal-navigation button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-navigation button:hover {
    background-color: #005077;
}

/* --- Responsive for Mobile --- */
@media (max-width: 768px) {
    .timeline-line {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        background: repeating-linear-gradient(
            to bottom,
            #ccc,
            #ccc 10px,
            transparent 10px,
            transparent 20px
        );
        transform: translateX(-50%);
    }

    .timeline-points {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 20px;
    }

    .timeline-point {
        padding: 20px 0;
    }

    .timeline-point .dot {
        width: 16px;
        height: 16px;
    }

    .timeline-point .date-label {
        margin-top: 8px;
        font-size: 1rem;
    }
}
/* ===============================
   FLEX CARD SECTION
================================ */

.flex-card-section {
  width: 100%;
  padding: 4rem 1rem;
  background: #f9f9f9;
  overflow: hidden;
}

.flex-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

/* Card */
.flex-card {
  position: relative;
  flex: 1 1 calc(25% - 2rem);
  max-width: 300px;
  min-width: 220px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
  text-decoration: none;
}

.flex-card:hover {
  transform: translateY(-10px);
}

/* Overlay */
.flex-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.5s ease;
}

.flex-card:hover .overlay {
  opacity: 1;
  transform: translateX(0);
}

.overlay-content {
  text-align: center;
  color: #fff;
}

.overlay-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.overlay-content p {
  font-size: 1rem;
  margin: 0;
}

.arrow-button {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.arrow-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ================================
   FLEX CARDS – MOBILE FIX
================================ */
@media (max-width: 768px) {

  .flex-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .flex-card {
    flex: 0 0 85%;
    max-width: 85%;
    min-width: 85%;
    height: 350px;
    scroll-snap-align: center;
    position: relative;
  }

  /* SHOW OVERLAY BY DEFAULT ON MOBILE */
  .flex-card .overlay {
    opacity: 1;
    transform: translateX(0);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* Disable hover-only transitions */
  .flex-card:hover .overlay {
    opacity: 1;
    transform: translateX(0);
  }

  .overlay-content {
    padding: 1rem;
  }

  .overlay-content h3 {
    font-size: 1.4rem;
  }

  .overlay-content p {
    font-size: 1rem;
  }

  .arrow-button {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
  }
}

.flex-card-section::after {
  content: "← Swipe →";
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

@media (min-width: 769px) {
  .flex-card-section::after {
    display: none;
  }
}

/* FOOTER MAIN STRUCTURE */

#site-footer {
    padding: 60px 20px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Poppins', sans-serif;
    clear: both;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
/* Shared Footer Base Styles */
.footer-content {
    padding: 40px 20px;
    color: #fff;
}

.footer-logo img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.footer-social a {
    color: #fff;
    margin: 0 8px;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: #f1c40f;
    transform: scale(1.2);
}

.footer-church-info h2,
.footer-church-info p {
    margin: 5px 0;
}

.footer-menus {
    display: flex;
    gap: 40px;
}
.footer-church-info a {
    color: #fff;
    text-decoration: none;
}

.footer-church-info a:hover {
    text-decoration: underline;
    color: #f1c40f;
}


.footer-menu h3 {
    margin-bottom: 10px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu ul li {
    margin-bottom: 5px;
}

.footer-menu ul li a {
    color: #ddd;
    text-decoration: none;
}

/* Modern Centered Style */
/* Core centered layout */
.centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Center logo + social wrapper */
.centered-layout .footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* Ensure the image inside logo is centered */
.centered-layout .footer-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Center social icons */
.centered-layout .footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Center church info */
.centered-layout .footer-church-info {
    margin-bottom: 30px;
}

/* Center all menus */
.centered-layout .footer-menus {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    text-align: center;
}

.centered-layout .footer-menu,
.style3 .footer-menu {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 300px;
}
@media (max-width: 1024px) {
    .style3 .footer-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .style3 .footer-menus {
        flex-direction: column;
        align-items: center;
    }
}

/* Blog posts in center */
.centered-layout .footer-blog-posts ul {
    padding: 0;
    margin: 0 auto;
    list-style: none;
    text-align: left; /* can be center if needed */
}

.centered-layout .footer-main-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* Common horizontal layout for style2 and style3 */
.horizontal-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

/* Logo block */
.horizontal-layout .footer-logo {
    flex: 0 0 auto;
}

/* Footer details container */
.horizontal-layout .footer-details {
    display: flex;
    flex: 1 1 0%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* ----- Style 3 Specific: Minimal two columns ----- */
.style3.horizontal-layout {
    /* Make footer-content flex container with two columns */
    justify-content: flex-start; /* adjust as needed */
}

/* Hide blog posts only in style2 */
.style3 .footer-blog-posts {
    display: none !important;
}

/* Adjust footer-details in style2 for two columns only (menus) */
.style3 .footer-details {
    flex-wrap: nowrap; /* Keep menus in one row */
    gap: 20px; /* smaller gap */
    justify-content: space-between;
}

/* Optional: constrain menus width so they line nicely */
.style3 .footer-menus {
       flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

/* Keep logo and social stacked vertically */
.style3 .footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* or center if you want */
    gap: 20px;
    flex: 0 0 30%; /* roughly 30% width */
}

/* Footer Credit */
.footer-credit {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}
/* Make only the developer link white */
.footer-credit a {
    color: #ffffff !important;
}
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-church-info h2,
.footer-menu h3 {
    color: #fff;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .centered-layout .footer-main-row,
    .horizontal-layout .footer-details {
        flex-direction: column;
        align-items: center;
    }

    .footer-menus {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu {
        text-align: center;
    }

    .footer-social a {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
  /* Make horizontal styles behave like centered layout */
  .horizontal-layout,
  .style2.horizontal-layout,
  .style3.horizontal-layout {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .style2 .footer-details,
  .style3 .footer-details {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .style2 .footer-logo-wrapper,
  .style3 .footer-logo-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto 30px auto !important;
  }

  .style2 .footer-logo,
  .style3 .footer-logo {
    text-align: center;
  }

  .style2 .footer-logo img,
  .style3 .footer-logo img {
    display: block;
    margin: 0 auto;
  }

  .style2 .footer-social,
  .style3 .footer-social {
    justify-content: center !important;
    text-align: center !important;
    margin-top: 10px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .style2 .footer-menus,
  .style3 .footer-menus {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px;
    margin-top: 20px;
  }

  .style2 .footer-menu,
  .style3 .footer-menu {
    text-align: center;
    min-width: auto !important;
  }

  .style2 .footer-blog-posts,
  .style3 .footer-blog-posts {
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
  }
}

.footer-menu ul li a {
    position: relative;
    display: inline-block;
    color: #ffffff; /* Adjust as needed */
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.footer-menu ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: #ffffff; /* underline color */
    transition: width 0.3s ease;
}

.footer-menu ul li a:hover {
    color: #ffcc00; /* Highlight color on hover */
}

.footer-menu ul li a:hover::after {
    width: 100%;
}

/* Simple Fade-In Animation */
#site-footer {
    animation: fadeInFooter 1.2s ease-in;
}

@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.footer-articles {
  margin-top: 40px;
}

.footer-articles h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-post-item .post-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-post-item .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: block;
}

.footer-post-item .post-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-post-item .post-thumb:hover img {
  transform: scale(1.08);
}

.footer-post-item .post-thumb:hover::before {
  opacity: 1;
}

.footer-post-item .post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-post-item .post-title {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.footer-post-item .post-title:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.footer-post-item .post-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7); /* Made more visible than #ccc */
}
.footer-articles h3,
.footer-blog-posts h3 {
  color: #fff;
}
@media (max-width: 768px) {
  .footer-articles,
  .footer-blog-posts {
    margin-top: 30px;
  }

  .footer-post-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-post-item .post-thumb {
    width: 60px;
    height: 60px;
  }

  .footer-post-item .post-title {
    font-size: 13px;
  }

  .footer-post-item .post-date {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-post-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-post-item .post-thumb {
    width: 100%;
    height: auto;
  }

  .footer-post-item .post-thumb img {
    width: 100%;
    height: auto;
  }

  .footer-post-item .post-info {
    margin-top: 8px;
  }

  .footer-post-item .post-title {
    font-size: 14px;
  }

  .footer-post-item .post-date {
    font-size: 12px;
  }
}
/* =====================================================
   FOOTER MAP – MOBILE FIX
===================================================== */
#church-map,
.map-container,
#churchLocationsMap {
    width: 100%;
    min-height: 320px;
}

@media (max-width: 768px) {
    #churchLocationsMap {
        height: 100% !important;
    }
}
/* =====================================================
   FOOTER MAP – CUSTOMIZER & MOBILE FIX
===================================================== */
#church-map,
#churchLocationsMap {
    width: 100%;
    min-height: 300px;
}

#churchLocationsMap {
    height: 100%;
}

.map-container {
    position: relative;
    min-height: 300px;
}
.church-label {
    background: rgba(15, 15, 15, 0.9);
    color: #c9a24d;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(201,162,77,0.45);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

/* =====================================================
   LEAFLET – PREMIUM PIN LABELS
===================================================== */
.leaflet-tooltip.church-label {
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    white-space: nowrap;
    transform: translateY(-6px);
    opacity: 0;
    transition: all 0.25s ease;
}

.leaflet-tooltip.church-label.leaflet-tooltip-top:before {
    border-top-color: rgba(20, 20, 20, 0.9);
}

/* Show label on hover */
.leaflet-marker-icon:hover + .leaflet-tooltip,
.leaflet-tooltip:hover {
    opacity: 1;
    transform: translateY(-12px);
}

.auth-buttons a {
  display: inline-block;
  padding: 6px 12px;
  margin-left: 5px;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.auth-buttons a:hover {
  background-color: #555;
}

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-modal {
  background: white;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  width: 90%;
  max-width: 400px;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form input {
  margin-bottom: 10px;
  padding: 10px;
}

.auth-form button {
  padding: 10px;
  background-color: #0073aa;
  color: white;
  border: none;
  cursor: pointer;
}

.auth-form button:hover {
  background-color: #005e8a;
}

.close-auth-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.hidden {
  display: none;
}
.social-login {
  text-align: center;
  margin-top: 20px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.google-btn {
  background-color: #db4437;
}

.facebook-btn {
  background-color: #3b5998;
}

.social-btn i {
  margin-right: 8px;
}
/* === HOMEPAGE COUNTERS SECTION === */

.homepage-counters {
    width: 100%;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .homepage-counters {
        background-attachment: fixed; /* Keep it only for desktop */
    }
}

.homepage-counters .overlay {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s ease;
    background: rgba(0, 0, 0, 0.3); /* Fallback background */
}

.counter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 3;
    position: relative;
}

.counter-box {
    text-align: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #fff;
}

.counter-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.counter-number {
    font-size: 4rem;
    font-weight: bold;
    transition: color 0.3s ease;
    line-height: 1;
}

.counter-heading {
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
    .counter-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .counter-row {
        grid-template-columns: 1fr;
    }

    .counter-box {
        padding: 25px 15px;
    }

    .counter-number {
        font-size: 3rem;
    }
}

/* === VISUAL EFFECTS === */

.effect-1 .overlay {
    background: rgba(0, 0, 0, 0.3);
}

.effect-1 .counter-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.effect-2 .overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.effect-2 .counter-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.effect-3 .overlay {
    background: rgba(0, 0, 0, 0.25);
}

.effect-3 .counter-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
}

.parallax-effect {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.parallax-visible.fade-in {
    opacity: 1;
    transform: none;
}

.parallax-visible.slide-up {
    opacity: 1;
    transform: translateY(0);
}

.parallax-visible.zoom-in {
    opacity: 1;
    transform: scale(1);
}

.fade-in { transform: none; }
.slide-up { transform: translateY(20px); }
.zoom-in { transform: scale(0.8); }
.parallax-fade {
    animation: fadeIn 1s ease-in-out both;
}
.parallax-zoom {
    animation: zoomIn 1s ease-in-out both;
}
.parallax-slide {
    animation: slideUp 1s ease-in-out both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(1.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Common starting state for animations */
.parallax-fade,
.parallax-zoom,
.parallax-slide {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

/* Animation triggered when in view */
.parallax-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

.parallax-zoom.in-view {
    opacity: 1;
    transform: scale(1);
}

.parallax-zoom {
    transform: scale(0.95);
}

.parallax-slide.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Base Parallax Section Styles */
.section.parallax-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.section.parallax-slide {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.section.parallax-zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease-out;
}

.section.parallax-none {
    opacity: 1;
    transform: none;
}

/* When section becomes visible */
.section.visible {
    opacity: 1;
    transform: none;
}

/* Base button style for menu items */
.btn-menu {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffcc00;
  color: #000;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-menu:hover {
  background-color: #ffaa00;
  color: #fff;
}
.btn-outline {
  display: inline-block;
  padding: 2px 4px;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: #ffcc00;
  color: #000;
}
.btn-gradient {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(45deg, #ff8a00, #e52e71);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.btn-gradient:hover {
  transform: scale(1.05);
}
.btn-dark {
  display: inline-block;
  padding: 8px 16px;
  background-color: #222;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-dark:hover {
  background-color: #000;
  color: #ffcc00;
}


/* Hover effect */
.btn-menu:hover {
  background-color: #ffaa00;
  color: #fff;
}
#bible-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.bible-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    top: 0;
    left: 0;
    z-index: 1;
}

.bible-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    z-index: 2;
    position: relative;
    gap: 50px;
}

.bible-text {
    flex: 1;
    padding: 20px;
    color: white;
}

.bible-verse {
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 20px;
}

.bible-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bible-btn {
    padding: 12px 24px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}

.bible-btn:hover {
    background: #005f87;
    transform: translateY(-3px);
}

.bible-image {
    flex: 1;
    text-align: center;
}

.bible-image img {
    max-width: 350px;
    width: 100%;
    border-radius: 10px;
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .bible-container {
        flex-direction: column;
        text-align: center;
    }

    .bible-image img {
        max-width: 300px;
    }
}

.page-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.page-banner .banner-bg,
.page-banner .banner-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
}

.page-banner .banner-overlay.full-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.page-banner .banner-content {
    max-width: 800px;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.banner-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

.banner-subtext a {
    color: #fff;
    margin: 0 5px;
    text-decoration: underline;
    font-size: 0.85rem;
}

.banner-subtext a:hover {
    text-decoration: none;
}
#your-scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    color: #fff;
    background-color: var(--scroll-button-color, #0073aa);
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

.scroll-effect-1 { animation: fade 1s infinite alternate; }
.scroll-effect-2 { animation: slide 1s infinite alternate; }
.scroll-effect-3 { animation: zoom 1s infinite alternate; }

@keyframes fade {
    from { opacity: 0.6; } to { opacity: 1; }
}
@keyframes slide {
    from { transform: translateY(0); } to { transform: translateY(-5px); }
}
@keyframes zoom {
    from { transform: scale(1); } to { transform: scale(1.1); }
}
#your_sticky_event_bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    display: flex; /* Never none! */
    opacity: 0; /* Hidden until JS adds .visible */
    transform: translateY(100%);
    transition: 0.5s ease-in-out;

    padding: 0 30px;
    align-items: center;
    justify-content: center;

    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

#your_sticky_event_bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.your_event_bar_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.your_event_bar_text_group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.your_event_bar_title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

#your_event_bar_countdown {
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #your_sticky_event_bar {
        padding: 0 15px;
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .your_event_bar_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .your_event_bar_text_group {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .your_event_bar_title {
        font-size: 1.1rem;
        text-align: left;
    }

    #your_event_bar_countdown {
        font-size: 1rem;
        padding: 4px 8px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    #your_sticky_event_bar {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .your_event_bar_title {
        font-size: 1rem;
    }

    #your_event_bar_countdown {
        font-size: 0.95rem;
    }
}

/* Default desktop view */
.news-slider {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.news-item {
  flex: 0 0 33.333%; /* 3 items per row */
  box-sizing: border-box;
}

/* Controls */
.news-controls {
  text-align: center;
  margin-top: 20px;
}

.news-controls button {
  padding: 8px 16px;
  margin: 0 10px;
  font-size: 16px;
  cursor: pointer;
}

/* Mobile - show one news item at a time */
@media (max-width: 768px) {
  .news-slider {
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
  }

  .news-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .news-slider-wrapper {
    overflow: hidden;
    position: relative;
  }

  .news-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
}

/* Pastor Section Base Styles */
.pastor-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

/* Overlay Thumbnail */
.video-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play Button */
.play-button-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #ff0000;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseRing 2s infinite;
    cursor: pointer;
    z-index: 3;
}

.play-button {
    font-size: 32px;
    color: white;
}

/* Pause Button */
#pauseButton {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    z-index: 3;
}

/* Keyframe Animation */
@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Responsive Flex Layout */
.pastor-flexbox {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.pastor-photo-wrapper {
    flex: 0 0 220px;
}

.pastor-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
}

.pastor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-text {
    flex: 1 1 400px;
    max-width: 600px;
}

.pastor-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pastor-text p {
    font-size: 16px;
    line-height: 1.5;
}

.pastor-text strong {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Social Icons */
.pastor-socials a {
    margin-right: 10px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

/* Buttons */
.pastor-buttons {
    margin-top: 20px;
}

.pastor-buttons .button {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .video-wrapper {
        padding: 0;
        margin: 0;
    }

    .video-container {
        width: 100vw;
        margin: 0;
        border-radius: 0;
        aspect-ratio: 4 / 3;
    }

    .play-button-ring {
        width: 80px;
        height: 80px;
    }

    .play-button {
        font-size: 26px;
    }

    #pauseButton {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 16px;
    }

    .pastor-flexbox {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .pastor-photo-wrapper,
    .pastor-text {
        width: 100%;
        text-align: center;
    }

    .pastor-buttons .button {
        width: 90%;
        margin: 10px auto;
    }
}

@media screen and (max-width: 480px) {
    .video-container {
        aspect-ratio: 3 / 4;
    }

    .play-button-ring {
        width: 70px;
        height: 70px;
    }

    .play-button {
        font-size: 22px;
    }

    .pastor-text h2 {
        font-size: 20px;
    }

    .pastor-text p,
    .pastor-text strong {
        font-size: 14px;
    }

    .pastor-socials a {
        font-size: 16px;
    }
}
/* === Ministries Section === */
#ministries {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: inherit;
}

.ministries-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--ministries-title-color, #ffffff);
}

.ministries-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: inherit;
}

/* Grid Layout */
.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

/* Each Ministry */
.ministry-item {
    text-align: center;
}

.ministry-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid white;
    background-size: cover;
    background-position: center;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* Ministry Name */
.ministry-label {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--ministries-label-color, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
}


.ministry-label:hover {
    color: #ddd;
    text-decoration: underline;
}

/* Hover Animations */
.hover-bounce .ministry-circle:hover {
    animation: bounce 0.6s;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hover-grow .ministry-circle:hover {
    transform: scale(1.1);
}

.hover-pulse .ministry-circle:hover {
    animation: pulse 0.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .ministry-circle {
        width: 140px;
        height: 140px;
    }
    .ministry-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ministries-title {
        font-size: 1.8rem;
    }
    .ministries-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .ministry-circle {
        width: 120px;
        height: 120px;
    }
    .ministry-label {
        font-size: 13px;
    }
}
/* === Prayer Request Section === */
#prayer-request {
    position: relative;
    background-image: var(--prayer-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 120px 20px;
    text-align: center;
    color: white;
}

/* Overlay */
.prayer-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 60px 20px;
}

/* Text */
.prayer-title {
    font-size: 2.8rem;
    color: var(--prayer-title-color, #ffffff);
    margin-bottom: 30px;
}

.prayer-subtitle {
    color: var(--prayer-subtitle-color, #ffffff);
    font-size: 1.2rem;
    margin: 0 auto 20px;
    max-width: 600px;
}

.prayer-description {
    color: var(--prayer-description-color, #ffffff);
    max-width: 650px;
    margin: 0 auto 30px;
}

/* Button */
.prayer-button {
    display: inline-block;
    background-color: #ffffff;
    color: #333;
    padding: 14px 30px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.prayer-button:hover {
    background-color: #333;
    color: #fff;
}

/* Tablet */
@media (max-width: 768px) {
    .prayer-title {
        font-size: 2rem;
    }
}

/* ✅ MOBILE FIX */
@media (max-width: 600px) {
    #prayer-request {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .prayer-overlay {
        padding: 40px 15px;
    }

    .prayer-title {
        font-size: 1.6rem;
    }
}

/* === Prayer Request Page === */
#prayer-request-page {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.prayer-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 60px 20px;
}

.prayer-scripture h2 {
    font-size: 2.5rem;
    color: var(--prayer-page-heading-color, #ffffff);
    margin-bottom: 20px;
}

.prayer-scripture p {
    font-size: 1.2rem;
    color: var(--prayer-page-text-color, #ffffff);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.prayer-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.prayer-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

#prayer-form input,
#prayer-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

#prayer-form textarea {
    min-height: 150px;
}

.prayer-submit-btn {
    background-color: #ffffff;
    color: #333333;
    padding: 12px 24px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prayer-submit-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .prayer-scripture h2 {
        font-size: 2rem;
    }
    .prayer-scripture p {
        font-size: 1rem;
    }
}
/* Donation Section */
#donation-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: #ffffff;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

/* Overlay */
#donation-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: -1;
    animation: overlay-gradient-shift 8s ease-in-out infinite alternate;
}

@keyframes overlay-gradient-shift {
    0% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    }
    100% {
        background: linear-gradient(225deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    }
}

#donation-section h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

#donation-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

#donation-section .button {
    font-size: 1.2rem;
    padding: 14px 32px;
    background-color: #ffbb33;
    color: #000;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

#donation-section .button:hover {
    background-color: #ffa726;
    transform: scale(1.05);
}

/* Progress */
.donation-progress {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.donation-progress p {
    font-size: 1.4rem;
    font-weight: bold;
}

.donation-progress #donation-total,
.donation-progress #donation-goal {
    font-size: 2rem;
}

/* Bar */
.progress-bar {
    background-color: rgba(255, 255, 255, 0.2);
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--progress-color, #00c851);
    border-radius: 14px;
    transition: width 2.5s ease-in-out;
}

[data-style="glow"] .progress-fill {
    animation: glow-pulse 2s infinite alternate ease-in-out;
    box-shadow: 0 0 10px var(--progress-color, #00c851), 0 0 20px var(--progress-color, #00c851);
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 0 10px var(--progress-color, #00c851), 0 0 20px var(--progress-color, #00c851);
    }
    to {
        box-shadow: 0 0 20px var(--progress-color, #00ff6e), 0 0 40px var(--progress-color, #00ff6e);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #donation-section h2 {
        font-size: 2rem;
    }
    #donation-section p {
        font-size: 1rem;
    }
    .progress-bar {
        height: 16px;
    }
}


#volunteer-signup-section {
  position: relative;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

#volunteer-signup-section .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  z-index: 1;
}

#volunteer-signup-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

#volunteer-signup-section .container {
  position: relative;
  z-index: 3;
  max-width: 700px;
  margin: 0 auto;
}

#volunteer-signup-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#volunteer-signup-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ddd;
}

#volunteer-signup-section form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#volunteer-signup-section .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#volunteer-signup-section input,
#volunteer-signup-section select,
#volunteer-signup-section textarea {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

#volunteer-signup-section select,
#volunteer-signup-section textarea {
  min-width: 100%;
}

#volunteer-signup-section textarea {
  resize: vertical;
}

#volunteer-signup-section .submit-button {
  background-color: #0073aa;
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
/* Scroll animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Field error styling */
.field-error {
    border: 2px solid red;
}

#volunteer-signup-section .submit-button:hover {
  background-color: #005d8f;
}

#volunteer-signup-section .thank-you-message {
  background: rgba(0, 128, 0, 0.8);
  padding: 30px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  #volunteer-signup-section .form-row {
    flex-direction: column;
  }
}
/* Connect Hub Styles */
#connect-hub-section {
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
}

.connect-hub-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hub-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.hub-subtext {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

.hub-form input, .hub-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.hub-form label {
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.submit-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #005a87;
}

.hub-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

.member-type-select select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Wrapper Container */
.highlight-generator-wrapper {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

form input[type="file"],
form input[type="number"],
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
}

/* Button Styling */
form button {
  background: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

form button:hover {
  background: #0056b3;
}

/* Progress Bar */
progress {
  width: 100%;
  height: 14px;
  border-radius: 6px;
  margin-top: 20px;
  margin-bottom: 10px;
  background-color: #eee;
}

progress::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 6px;
}

progress::-webkit-progress-value {
  background-color: #28a745;
  border-radius: 6px;
}

/* Result Area */
#result {
  margin-top: 20px;
  text-align: center;
}

#result p {
  margin-bottom: 10px;
  font-weight: 500;
}

video {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #28a745;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background-color: #218838;
}

/* Custom Size Inputs */
#custom-size-inputs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .highlight-generator-wrapper {
    padding: 20px 15px;
  }

  #custom-size-inputs {
    flex-direction: column;
  }

  form button {
    font-size: 15px;
  }
}
/* Highlight Generator Styles */
.highlight-generator-wrapper {
  max-width: 600px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.highlight-generator-wrapper label {
  display: block;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #333;
}

.highlight-generator-wrapper input,
.highlight-generator-wrapper select,
.highlight-generator-wrapper textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

.highlight-generator-wrapper input[type="file"] {
  padding: 4px;
}

.highlight-generator-wrapper button {
  margin-top: 25px;
  padding: 12px 20px;
  background-color: #1976d2;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.highlight-generator-wrapper button:hover {
  background-color: #145ca3;
}

#upload-progress {
  height: 18px;
  margin-top: 10px;
  appearance: none;
  width: 100%;
}

#upload-progress::-webkit-progress-bar {
  background-color: #f3f3f3;
  border-radius: 9px;
}

#upload-progress::-webkit-progress-value {
  background-color: #4caf50;
  border-radius: 9px;
}

#result video {
  margin-top: 20px;
  max-width: 100%;
  border-radius: 8px;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #28a745;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.download-btn:hover {
  background-color: #218838;
}

#upload-status {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}
#upload-progress.processing {
  background: linear-gradient(to right, #ccc 25%, #666 50%, #ccc 75%);
  background-size: 200% 100%;
  animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Map container */
#missionary-map {
  height: 600px;
  width: 100%;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 0;
}

/* Filter section */
#missionary-filters {
  text-align: center;
  margin-bottom: 2rem;
}

#missionary-filters select {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin: 0 0.5rem;
}

#missionary-filters label {
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Popup content */
.leaflet-popup-content {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.leaflet-popup-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #0073aa;
}

.leaflet-popup-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.leaflet-popup-content a {
  color: #0073aa;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  #missionary-filters select {
    display: block;
    margin: 0.5rem auto;
  }
}
.bible-devotional-container {
  background: #f8f9fa;
  padding: 3rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
}

.bible-devotional-container .container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.bible-devotional-container h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.form-label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.2rem;
  margin-right: 0.5rem;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.form-button:hover {
  background: #357ab7;
}

.bible-output {
  margin-top: 2rem;
  background: #f1f1f1;
  padding: 1.5rem;
  border-radius: 10px;
  white-space: pre-line;
  font-size: 1rem;
  color: #222;
}
.crisis-support-container {
  padding: 2rem;
  max-width: 960px;
  margin: auto;
  font-family: sans-serif;
}

.featured-hotlines {
  background: #fef3c7;
  border-left: 6px solid #f59e0b;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.featured-hotlines div {
  margin-bottom: 0.5rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  transition: border 0.3s;
}

.resource-card:hover {
  border-color: #0073aa;
}

/* Intro Section */
.baptism-intro {
  text-align: center;
  background: #f2f9ff;
  padding: 3rem 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.baptism-intro h1 {
  font-size: 2.5rem;
  color: #005bbb;
  margin-bottom: 0.5rem;
}

.baptism-intro h2 {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 1rem;
}

.baptism-intro p {
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

/* Centered Button Wrapper */
.baptism-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  height: 60vh;
  margin: 2rem 0;
}

/* Glow Buttons (Shared) */
.baptism-btn {
  background: #0073e6;
  color: white;
  padding: 1rem 2rem;
  border: none;
  font-size: 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 15px #0073e6;
  transition: all 0.3s ease;
  min-width: 250px;
  text-align: center;
  user-select: none;
}

.baptism-btn:hover,
.baptism-btn:focus {
  background: #005bbb;
  box-shadow: 0 0 30px #00c6ff;
  outline: none;
}

/* Resources Section */
.baptism-resources {
  background: #fffdf8;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.baptism-resources h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #222;
}

.resource-links a {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #0073e6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.resource-links a:hover,
.resource-links a:focus {
  color: #005bbb;
  outline: none;
}

/* Video Embed */
.baptism-video {
  margin-top: 1rem;
}

.baptism-video iframe,
.baptism-video video {
  width: 100%;
  height: 400px;
  max-width: 100%;
  border-radius: 8px;
}

/* Modal Overlay */
#baptism-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

/* Modal Window (Matching HTML IDs) */
#baptism-request-modal,
#baptism-experience-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 600px;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

/* Modal Close Button */
.baptism-modal-close,
.experience-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

/* Form Inputs (Shared) */
#baptism-form input,
#baptism-form textarea,
#experience-form input,
#experience-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
}

#baptism-form input:focus,
#baptism-form textarea:focus,
#experience-form input:focus,
#experience-form textarea:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 8px #0073e6;
}

/* Submit Buttons (Shared) */
#baptism-form button[type="submit"],
#experience-form button[type="submit"] {
  background: #28a745;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  user-select: none;
  transition: background-color 0.3s ease;
}

#baptism-form button[type="submit"]:hover,
#experience-form button[type="submit"]:hover,
#baptism-form button[type="submit"]:focus,
#experience-form button[type="submit"]:focus {
  background: #218838;
  outline: none;
}
.baptism-hero {
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.baptism-hero::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.5); /* Overlay effect */
  position: absolute;
  inset: 0;
  z-index: 0;
}

.baptism-btn-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.baptism-instruction-text {
  font-size: 1.25rem;
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 800px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Success Messages (Shared) */
.baptism-success-message,
.experience-success-message {
  margin-top: 1rem;
  font-weight: bold;
  color: #28a745;
  font-size: 1.1rem;
}

/* Baptism Wall Grid */
.baptism-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.baptism-entry {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baptism-entry:hover,
.baptism-entry:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.baptism-entry img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.baptism-entry h4 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #005bbb;
}

.baptism-entry p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.baptism-entry small {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-top: 0.5rem;
}

/* Map */
#baptism-map {
  border: 2px solid #ddd;
  border-radius: 8px;
  width: 100%;
  height: 400px;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .baptism-btn-wrapper {
    height: auto;
    flex-direction: column;
    gap: 1rem;
  }

  .baptism-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-width: unset;
  }
.baptism-btn {
  box-shadow: 0 0 15px #0073e6;
}

.baptism-btn:hover,
.baptism-btn:focus {
  box-shadow: 0 0 30px #00c6ff;
}

  #baptism-modal,
  #experience-modal {
    width: 95%;
    padding: 1rem;
  }

  .baptism-video iframe,
  .baptism-video video {
    height: 250px;
  }
}
.layout-left-sidebar,
.layout-right-sidebar,
.layout-both-sidebars,
.layout-fullwidth {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.left-sidebar,
.right-sidebar {
  width: 25%;
}

.page-content {
  width: 75%;
}

.layout-both-sidebars .left-sidebar,
.layout-both-sidebars .right-sidebar {
  width: 20%;
}
.layout-both-sidebars .page-content {
  width: 60%;
}

.layout-fullwidth .page-content {
  width: 100%;
}
/* Style 1: Rounded Blue (default) */
.btn-style-1 {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.btn-style-1:hover {
    background-color: #005177;
}

/* Style 2: Flat Red */
.btn-style-2 {
    background-color: #e53935;
    color: #fff;
    padding: 10px 22px;
    border: none;
    font-weight: bold;
}
.btn-style-2:hover {
    background-color: #b71c1c;
}

/* Style 3: Outlined Black */
.btn-style-3 {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 8px 20px;
    font-style: italic;
}
.btn-style-3:hover {
    background-color: #000;
    color: #fff;
}

/* Style 4: Gradient Green */
.btn-style-4 {
    background: linear-gradient(45deg, #43cea2, #185a9d);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
}
.btn-style-4:hover {
    opacity: 0.9;
}

/* Style 5: Pill Yellow Shadow */
.btn-style-5 {
    background-color: #fdd835;
    color: #000;
    padding: 10px 26px;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-style-5:hover {
    background-color: #fbc02d;
}