:root {
    --primary-color: #0078D7;
    --secondary-color: #FA7B08;
    --accent-color: #7BE52B;
    --dark-color: #222222;
    --light-color: #F5F9FF;
    --text-color: #333;
    --text-light: #777;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --footer-blue: #005BB5;
    --blue: #0078D7;
    --orange: #FA7B08;
    --green: #7BE52B;
    --gold: #FFD700;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
section {
    padding: 80px 0;
    background-color: var(--light-color);
}
  /* Updated Preloader */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-preloader-spin {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 8px solid rgba(0, 120, 215, 0.2);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-logo {
    width: 50px;
    height: 50px;
    position: relative;
    animation: bounce 1s infinite alternate;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}
 /* Testimonies Grid */
 .testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimony-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 120, 215, 0.1);
    position: relative;
}

.testimony-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.testimony-content {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimony-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(0, 120, 215, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimony-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimony-author {
    font-weight: 700;
    color: var(--primary-color);
}

.testimony-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Response Messages */
.response-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.response-message.success {
    background: #d4edda;
    color: #155724;
    display: flex;
}

.response-message.error {
    background: #f8d7da;
    color: #721c24;
    display: flex;
}

.response-message i {
    font-size: 1.5rem;
}

/* Loading State */
.loading-testimonies {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-testimonies i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Testimonies State */
.no-testimonies {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--text-light);
}

/* Load More Button */
.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--white);
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--box-shadow);
    padding: 20px 0;
    transition: var(--transition);
}
header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 60px;
    margin-right: 15px;
    transition: var(--transition);
}
header.scrolled .logo img {
    height: 50px;
}
.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}
.logo-text span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
}
.desktop-nav li {
    margin-left: 25px;
    position: relative;
}
.desktop-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.desktop-nav a:hover,
.desktop-nav .current-menu-item a {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown a i {
    margin-left: 5px;
    font-size: 0.8rem;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%;
    left: 0;
    border: 1px solid #e0e0e0;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
}
.hamburger i {
    position: absolute;
    font-size: 1.8rem;
    color: var(--dark-color);
    transition: var(--transition);
    z-index: 1003;
}
.hamburger .menu-icon {
    opacity: 1;
}
.hamburger .close-icon {
    opacity: 0;
    color: var(--white);
}
.hamburger.active .menu-icon {
    opacity: 0;
}
.hamburger.active .close-icon {
    opacity: 1;
}

/* Mobile Navigation */
.mobile-nav-table {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--primary-color);
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}
.mobile-nav-table.active {
    right: 0;
}
.mobile-nav-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 80px;
}
.mobile-nav-table td {
    padding: 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav-table a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 15px;
    transition: all 0.3s;
}
.mobile-nav-table a:hover {
    background: #005BB5;
    color: var(--white);
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}
.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav-link {
    flex-grow: 1;
    padding: 15px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}
.mobile-dropdown-toggle {
    cursor: pointer;
    color: var(--white);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s;
}
.mobile-dropdown-toggle:hover {
    background: var(--white);
    color: var(--primary-color);
}
.mobile-dropdown-toggle.active {
    transform: rotate(45deg);
}
.mobile-dropdown-content {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}
.mobile-dropdown-content.active {
    display: block;
}
.mobile-dropdown-content a {
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons - Grouped Together */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    min-width: 200px;
}
.btn:hover {
    background: var(--secondary-color); /* Orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}
.btn-outline {
    background: var(--primary-color); /* Now same as regular button */
    border: 2px solid var(--primary-color); /* Matching border */
    color: var(--white); /* White text */
}

.btn-outline:hover {
    background: var(--secondary-color); /* Orange on hover */
    border-color: var(--secondary-color); /* Matching border on hover */
    color: var(--white); /* Maintain white text on hover */
}

/* Center buttons on all screens - Updated */
.btn-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Prayer Countdown */
.prayer-countdown {
    background: var(--white);
    color: var(--dark-color);
    padding: 40px;
    border-radius: 10px;
    margin: 60px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}
.prayer-countdown h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.prayer-countdown p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}
.countdown-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    min-width: 100px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.countdown-box:hover {
    transform: translateY(-5px);
    background: #005BB5;
}
.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Fasting & Prayer Section */
.fasting-prayer {
    background: var(--light-color);
    padding: 60px 0;
    text-align: center;
}
.fasting-prayer img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    white-space: nowrap;
}
.download-btn i {
    margin-right: 8px;
}
.download-btn:hover {
    background: #005BB5;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Service Times */
.service-times {
    background: var(--white);
    color: var(--dark-color);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 60px auto;
    max-width: 800px;
    border: 2px solid var(--primary-color);
}
.service-times h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
}
.service-schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.service-day {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--light-color);
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.service-day:hover {
    background: #E6F0FF;
}
.service-day.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    transform: scale(1.03);
}
.service-day.in-progress {
    background: var(--accent-color);
    color: var(--dark-color);
    font-weight: 700;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.service-day-name {
    font-weight: 600;
}
.service-day-time {
    font-weight: 500;
}
.service-countdown {
    text-align: center;
    margin-top: 40px;
}
.service-countdown h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
#nextServiceCountdown {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}
#nextServiceName {
    font-size: 1.2rem;
    color: var(--dark-color);
}

/*Online giving*/
.online-giving {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.giving-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}
.giving-container p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--white);
}
.giving-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.giving-option {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}
.giving-option a {
    text-decoration: none !important;
    display: block;
    color: inherit;
}
.giving-option h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}
.giving-option p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}
.giving-option i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    display: block;
    text-align: center;
}
.giving-option:hover {
    background: var(--secondary-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.giving-option:hover h4,
.giving-option:hover p {
    color: var(--white);
}
.giving-option:hover i {
    transform: rotate(360deg);
}
.btn-custom-give {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), #4DA8FF);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn-custom-give::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}
.btn-custom-give:hover::before {
    left: 100%;
}
.btn-custom-give:hover {
    background: linear-gradient(45deg, #005BB5, #4DA8FF);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.btn-custom-give:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* YouTube Videos Section */
.youtube-videos {
    background: var(--light-color);
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Section */
.gallery {
    background: var(--light-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.gallery-h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}
.gallery-container {
    position: relative;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.gallery-container img {
    position: absolute;
    width: 33vw;
    transform: translateY(100vh);
    animation: float-up linear infinite;
    box-shadow: 1px 3px 15px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 8px;
}

/* Remove the rotation animation and adjust the floating animation */
@keyframes float-up {
    from { transform: translateY(100vh); }
    to { transform: translateY(-100vh); }
}

/* Individual image animations with different durations */
.gallery-container img:nth-child(1) {
    animation-duration: 20s;
    animation-delay: 0s;
    left: 0vw;
    z-index: 1;
}
.gallery-container img:nth-child(2) {
    animation-duration: 30s;
    animation-delay: -3s;
    left: 10vw;
    z-index: 1;
}
.gallery-container img:nth-child(3) {
    animation-duration: 25s;
    animation-delay: -6s;
    left: 90vw;
    z-index: 1;
}
.gallery-container img:nth-child(4) {
    animation-duration: 22s;
    animation-delay: -9s;
    left: 36vw;
    z-index: 1;
}
.gallery-container img:nth-child(5) {
    animation-duration: 28s;
    animation-delay: -12s;
    left: 62vw;
    z-index: 1;
}
.gallery-container img:nth-child(6) {
    animation-duration: 24s;
    animation-delay: -15s;
    left: 15vw;
    z-index: 1;
}
.gallery-container img:nth-child(7) {
    animation-duration: 26s;
    animation-delay: -18s;
    left: 55vw;
    z-index: 1;
}
.gallery-container img:nth-child(8) {
    animation-duration: 32s;
    animation-delay: -21s;
    left: -20vw;
    z-index: 1;
}
.gallery-container img:nth-child(9) {
    animation-duration: 23s;
    animation-delay: -24s;
    left: 68vw;
    z-index: 1;
}
.gallery-container img:nth-child(10) {
    animation-duration: 27s;
    animation-delay: -27s;
    left: 0vw;
    z-index: 1;
}

/* Events Section */
.events {
    background: var(--light-color);
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}
.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    border: 1px solid var(--primary-color);
}
.event-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.event-content {
    padding: 25px;
}
.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.event-content p {
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Audio Sermons Section */
.sermons {
    background: var(--light-color);
}
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.sermon-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
}
.sermon-card:hover {
    transform: translateY(-10px);
}
.sermon-info {
    padding: 25px;
}
.sermon-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.sermon-info p {
    color: var(--dark-color);
}
.sermon-audio {
    margin: 30px 0;
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.sermon-audio:hover {
    background: #E6F0FF;
    transform: translateY(-3px);
}
audio {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: var(--light-color);
    outline: none;
}
audio::-webkit-media-controls-panel {
    background: var(--light-color);
    border-radius: 25px;
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    background-color: var(--primary-color);
    border-radius: 50%;
}
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--dark-color);
}
audio::-webkit-media-controls-timeline {
    background-color: #ccc;
    border-radius: 5px;
}
audio::-webkit-media-controls-volume-slider {
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Testimonies Section */
.testimonies {
    background: var(--light-color);
}
.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.testimony-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
}
.testimony-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.testimony-content {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--dark-color);
    position: relative;
}
.testimony-content:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: var(--primary-color);
    font-family: Georgia, serif;
}
.testimony-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Official Link Section */
.official-link {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.official-link h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}
.official-link p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--white);
}

/* Map Section */
.map-section {
    background: var(--light-color);
    padding: 60px 0;
}
.map-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: var(--white);
    padding: 20px;
}
#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    z-index: 1;
}
.get-directions {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.get-directions:hover {
    background: #005BB5;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--footer-blue);
    color: var(--white);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--white);
}
.footer-col p {
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.7;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}
.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}
.footer-col ul li i {
    margin-right: 10px;
    color: var(--white);
    width: 20px;
    text-align: center;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.social-links a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
}
.social-links a:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.9rem;
}

.hero-section {
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Month of Help from Above Section */
.month-help {
    background: var(--light-color); /* Default background for desktop */
    padding: 60px 0;
    text-align: center;
}

.month-help h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.month-help h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}

.month-help p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 20px; /* Reduced bottom margin */
    color: var(--dark-color);
}

.month-help img {
    max-width: 650px; /* Increased width for desktop */
    width: 100%; /* Responsive to container */
    height: 400px; /* Increased height for desktop */
    margin: 30px auto 20px; /* Reduced top margin */
    border-radius: 10px; /* Border radius */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    object-fit: fill; /* Stretch to fill container */
    display: block; /* Ensure proper centering */
}

.month-help img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.month-help .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    min-width: 200px;
}

.month-help .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Responsive Design for Month of Help from Above Image */
@media (max-width: 768px) {
    .month-help {
        padding: 40px 0;
        background: transparent; /* Remove background for mobile */
    }

    .month-help h2 {
        font-size: 2rem;
    }

    .month-help p {
        font-size: 1rem;
        margin-bottom: 15px; /* Reduced margin */
    }

    .month-help img {
        max-width: 450px; /* Increased width for mobile */
        width: 100%; /* Responsive to container */
        height: 320px; /* Increased height for mobile */
        margin: 20px auto 15px; /* Reduced top margin */
        border-radius: 10px; /* Consistent border radius */
        object-fit: fill; /* Stretch to fill container */
    }

    .month-help .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .month-help {
        padding: 30px 0;
        background: transparent; /* Ensure no background */
    }

    .month-help h2 {
        font-size: 1.8rem;
    }

    .month-help p {
        font-size: 0.9rem;
        margin-bottom: 10px; /* Reduced margin */
    }

    .month-help img {
        max-width: 450px; /* Consistent width */
        width: 100%; /* Responsive to container */
        height: 320px; /* Consistent height */
        margin: 20px auto 10px; /* Reduced top margin */
        border-radius: 10px; /* Consistent border radius */
        object-fit: fill; /* Stretch to fill container */
    }

    .month-help .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        min-width: 160px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .month-help {
        padding: 40px 0;
    }

    .month-help h2 {
        font-size: 2rem;
    }

    .month-help p {
        font-size: 1rem;
    }

    .month-help img {
        margin-bottom: 20px;
    }

    .month-help .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .month-help h2 {
        font-size: 1.8rem;
    }

    .month-help p {
        font-size: 0.9rem;
    }

    .month-help .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        min-width: 160px;
    }
}
/* Existing hero slideshow styles (unchanged) */
.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: 100% 100%; /* Force full width and height for desktop */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

/* Updated mobile styles for hero slideshow */
@media (max-width: 768px) {
    .slide {
        background-size: 100% 100%; /* Stretch to fill, equivalent to object-fit: fill */
        background-color: #000;
    }
}
    
    /* Optional: Add letterboxing effect for different aspect ratios */
    .hero-slideshow {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slide {
        width: 100%;
        height: auto;
        min-height: 100%;
        min-width: 100%;
    }


.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for better contrast */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.btn-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: var(--primary-color); /* Blue background for all buttons */
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    margin: 0; /* Remove default margins */
    text-align: center;
    white-space: nowrap;
    min-width: 200px;
}

/* Improved color alternatives for the heading (choose one) */
/* Option 1: Soft white with stronger shadow */
.hero-content h1.soft-white {
    color: #f8f8f8;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

/* Option 2: Light blue accent */
.hero-content h1.light-accent {
    color: #e6f2ff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Option 3: Soft yellow (warmer than gold) */
.hero-content h1.soft-yellow {
    color: #fff9c4;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .btn-center {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .mobile-nav-table {
        display: block;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .countdown-container {
        flex-wrap: wrap;
    }
    .countdown-box {
        min-width: 80px;
        padding: 15px;
    }
    .service-schedule {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 993px) {
    .hamburger {
        display: none;
    }
    .mobile-nav-table {
        display: none;
    }
}
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    .logo-text span {
        font-size: 0.8rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-section {
        min-height: 500px;
    }
    section {
        padding: 60px 0;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .giving-options {
        grid-template-columns: 1fr 1fr;
    }
    .sermon-audio {
        padding: 15px;
    }
    #map {
        height: 300px;
    }
}
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    .giving-options {
        grid-template-columns: 1fr;
    }
    .countdown-box {
        min-width: 70px;
        padding: 10px;
    }
    .countdown-value {
        font-size: 2rem;
    }
    .btn-custom-give {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
/* Testimony Modal Styles */
/* Testimony Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.success-message {
    display: none;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    align-items: center;
    gap: 10px;
}
/* Testimonies Display Section */
.testimonies-display {
    background: var(--light-color);
    padding: 80px 0;
}

.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimony-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 120, 215, 0.2);
}

.testimony-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimony-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

.testimony-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 3rem;
    color: rgba(0, 120, 215, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimony-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.testimony-name {
    font-weight: 600;
    color: var(--primary-color);
}

.testimony-date {
    color: var(--text-light);
}

.loading-testimonies {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-testimonies i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.success-message {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.success-message i {
    font-size: 1.5rem;
}
.success-message i {
    font-size: 1.5rem;
}
@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.testimony-section {
    background: var(--white);
    padding: 80px 0;
}

.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.testimony-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimony-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.testimony-content {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.testimony-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.response-message.submission-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.response-message.submission-success i {
    font-size: 1.5rem;
}