/* --- Watch More Button Styles for Media Grid --- */
.watch-more-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1.5px dashed #3b82f6;
    border-radius: 0.5rem;
    min-height: 180px;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.04);
}

.watch-more-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.10);
}

.watch-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.75em 2em;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.10);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    outline: none;
}

.watch-more-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.16);
    transform: translateY(-2px) scale(1.04);
}

.watch-more-btn i {
    font-size: 1.3em;
    margin-right: 0.3em;
}

/* --- Custom Sermons Grid (YouTube style, light) --- */
.media-grid#sermons-grid {
    background: none;
    border-radius: 18px;
    padding: 2rem 1rem;
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.yt-video {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #222;
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 340px;
}

.yt-video:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.yt-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    background: #222;
    display: block;
}

.yt-video h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 1rem 0.5rem 1rem;
    color: #222;
    line-height: 1.3;
    min-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.yt-video .yt-meta {
    margin: 0 1rem 1rem 1rem;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.yt-video .yt-meta span {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.yt-video .yt-meta .dot {
    width: 4px;
    height: 4px;
    background: #aaa;
    border-radius: 50%;
    display: inline-block;
    margin: 0 0.5em;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1f2937;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 40;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:hover {
    color: #3b82f6;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-outline {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-disabled {
    background-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* =============================================
   HERO SECTION — fully responsive, no fixed heights
   ============================================= */
.hero {
    position: relative;
    /* Let height be driven entirely by content (the video) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    overflow: hidden;
}

/* Background image fills the section */
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Dark overlay — pointer-events:none lets clicks reach the iframe */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 1;
    pointer-events: none;
}

/* Centered content wrapper sits above both image & overlay */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =============================================
   LIVESTREAM / YouTube embed — always 16:9
   ============================================= */
.livestream-placeholder {
    width: 100%;
    /* aspect-ratio keeps height = width × 9/16 on resize */
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    background: #000;
    /* Needed so iframe is interactive above the overlay */
    position: relative;
    z-index: 3;
}

.livestream-placeholder iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Legacy browser fallback (no aspect-ratio support) ---------- */
@supports not (aspect-ratio: 1) {
    .livestream-placeholder {
        padding-bottom: 56.25%;
        height: 0;
    }

    .livestream-placeholder iframe {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* -------------------------------------------------------------- */

/* Facebook Post Embed Section */
.fb-post-section {
    padding: 2rem 1rem;
    background: var(--background, #f9f9f9);
}

.fb-post-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.fb-post-grid iframe {
    width: 100%;
    min-height: 609px;
    border: none;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

/* -------------------------------------------------------------- */

/* Tablet  ≤ 1024px */
@media (max-width: 1024px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero-content {
        max-width: 700px;
    }
}

/* Large phones / landscape  ≤ 768px */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0.75rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .livestream-placeholder {
        border-radius: 8px;
    }
}

/* Small phones  ≤ 480px */
@media (max-width: 480px) {
    .hero {
        padding: 1.25rem 0.5rem;
    }

    .livestream-placeholder {
        border-radius: 6px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    }
}

/* Extra-small  ≤ 360px */
@media (max-width: 360px) {
    .hero {
        padding: 1rem 0.25rem;
    }
}

/* ============================================================= */

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Worship Times Section */
.worship-times {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.worship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.worship-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.worship-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.worship-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.worship-card-text {
    color: #6b7280;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.worship-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    margin-top: auto;
}

/* ===== EVENT CARDS =====
   Shared by the Home page ("Upcoming Events" - cards built by loadEvents()
   in script.js) and the Events page (events.html - static markup). Both
   use the same <div class="event-card"><div class="event-image"><img>...
   shape, so a single set of rules covers card sizing for both. */
.events {
    padding: 4rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Fixed-height image container so every card's photo area is identical
   regardless of the card's width or the source image's own dimensions.
   Both the Home page and Events page build the same markup shape:
   <div class="event-image"><img></div> */
.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.event-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.event-date,
.event-time,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-details {
    margin-bottom: 1rem;
}

/* Keep the Register / Volunteer Now / View Details button pinned to the
   bottom of the card no matter how much text precedes it. */
.event-content .btn {
    margin-top: auto;
}

@media (max-width: 639px) {
    .event-image {
        height: 180px;
    }
}

/* Resources Section */
.resources {
    padding: 4rem 0;
}

.devotional-section,
.prayer-request-section {
    margin-bottom: 3rem;
}

.devotional-section h3,
.prayer-request-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.devotional-card,
.prayer-request-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.prayer-request-card p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

/* View Full Playlist Card Styles */
.view-playlist-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.view-playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.playlist-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.youtube-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
}

.view-playlist-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #FF0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-playlist-button:hover {
    background: #cc0000;
}

.yt-icon {
    width: 24px;
    height: 24px;
}

/* Media Library Section */
.media-library-section {
    margin-top: 3rem;
}

.media-library-section .subsection-title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
}

.media-subsection {
    margin-bottom: 3rem;
}

.media-subsection h4.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.media-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.media-card:hover {
    transform: translateY(-2px);
}

.media-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    font-size: 3rem;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

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

.media-content {
    padding: 1.25rem;
}

.media-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.media-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.watch-more {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.watch-more:hover {
    background-color: #3b82f6;
    color: white;
}

/* Donation Section */
.donation {
    padding: 4rem 0;
    background: rgba(59, 130, 246, 0.05);
}

.donation-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.donation-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-items {
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: #3b82f6;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6b7280;
}

.contact-cta {
    margin-top: 2rem;
}

.contact-map {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 300px;
}

/* Footer */
.footer {
    background-color: #f9fafb;
    padding: 3rem 0;
    border-top: 1px solid #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1f2937;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #6b7280;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: #3b82f6;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

/* Messenger Integration Styles */
.chat-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.messenger-connect-btn {
    background: #0084ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.messenger-connect-btn:hover {
    background: #0066cc;
}

.chat-options-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.chat-option-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.chat-option-btn:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.chat-option-btn i {
    font-size: 1rem;
    color: #6b7280;
}

.chat-option-btn:hover i {
    color: #3b82f6;
}

/* Messenger Modal */
.messenger-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.messenger-modal .modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 80%;
    overflow: hidden;
}

.messenger-modal .modal-header {
    background: #0084ff;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messenger-modal .modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.messenger-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.messenger-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.messenger-modal .modal-body {
    padding: 1.5rem;
    text-align: center;
}

.church-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.church-branding img {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.church-branding h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.messenger-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.messenger-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.messenger-logo img {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0084ff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.messenger-btn:hover {
    background: #0066cc;
    color: white;
}

.messenger-qr {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.messenger-qr p {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

#messengerQR {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

#messengerQR img {
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

/* Messenger Mode Styles */
.chat-window.messenger-mode {
    width: 400px;
}

.messenger-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.messenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.messenger-header h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.messenger-header button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.messenger-chats {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.messenger-chat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.messenger-chat:hover {
    background: #f9fafb;
}

.chat-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.last-message {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-chat .message-time {
    font-size: 0.625rem;
    color: #9ca3af;
}

.messenger-chat button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.no-chats {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    padding: 2rem;
}

/* Conversation View */
.messenger-conversation {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.conversation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.conversation-header button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info span {
    font-weight: 500;
    font-size: 0.875rem;
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

/* Responsive Design */
@media (max-width: 375px) {
    .chat-window {
        position: fixed !important;
        bottom: 5.5rem !important;
        right: 1rem !important;
        left: 1rem !important;
        width: auto !important;
        max-height: calc(100vh - 7.5rem) !important;
        flex-direction: column !important;
    }

    .chat-window.active {
        display: flex !important;
    }

    .chat-window.messenger-mode {
        width: auto !important;
    }

    .chat-messages {
        height: auto !important;
        flex: 1 1 auto !important;
    }

    .chat-options-bar {
        flex-direction: column;
    }

    .chat-option-btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .messenger-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

.chat-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.5rem;
    transition: background-color 0.2s;
}

.chat-toggle:hover {
    background-color: #2563eb;
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 4rem;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.chat-window.active {
    display: block;
}

.chat-header {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 0.75rem;
}

.message {
    margin-bottom: 0.75rem;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.church-message .message-content {
    background-color: #f3f4f6;
    margin-right: auto;
}

.user-message .message-content {
    background-color: rgba(59, 130, 246, 0.1);
    margin-left: auto;
}

.message-content p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    text-align: right;
}

/* Typing indicator */
.typing-indicator .message-content p {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
}

.typing-indicator .message-content p i {
    font-size: 0.5rem;
    color: #6b7280;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator .message-content p i:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .message-content p i:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .message-content p i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-form {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.chat-form textarea {
    flex: 1;
    min-height: 40px;
    resize: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
}

.chat-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.chat-send {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send:hover {
    background-color: #2563eb;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .worship-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .donation-buttons {
        flex-direction: row;
        justify-content: center;
    }

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

    .contact-map {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sermons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== DONATION PAGE STYLES ===== */
.donation-options {
    padding: 4rem 0;
}

.donation-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

/* additional new pages */

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.donation-form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-input {
    position: relative;
}

.amount-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.amount-input input {
    padding-left: 2.5rem;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recurring-options {
    margin-top: 1rem;
}

/* QR Code Donation */
.qr-donation {
    text-align: center;
}

.qr-donation h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.qr-donation>p {
    margin-bottom: 2rem;
    color: #6b7280;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.qr-code {
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    background: white;
    display: inline-block;
}

.qr-instructions {
    max-width: 400px;
    text-align: left;
}

.qr-instructions h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.qr-instructions ol {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.qr-instructions li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-number {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.qr-note {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Other Methods */
.other-methods h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.method-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.method-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.method-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.method-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.method-note {
    font-size: 0.875rem;
}

.address-box,
.bank-details {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

/* Why Give Section */
.why-give {
    padding: 4rem 0;
    background: #f9fafb;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.impact-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.impact-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.impact-card p {
    color: #6b7280;
}

/* ===== STEWARDSHIP STORIES (TESTIMONIALS) ===== */
.testimonials {
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: #6b7280;
}

.testimonial-text {
    color: #374151;
}

.testimonials-empty {
    text-align: center;
    color: #6b7280;
    grid-column: 1 / -1;
}

.story-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 0.5rem;
}

.story-form-container h3 {
    margin-bottom: 0.5rem;
}

.story-form-container > p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.story-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.story-alert-success {
    background: #dcfce7;
    color: #166534;
}

.story-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-info {
    padding: 4rem 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.map-section {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.map-container {
    height: 400px;
}

.prayer-request-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.prayer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.prayer-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.prayer-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prayer-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.newsletter-section {
    padding: 4rem 0;
    background: #eff6ff;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
}

.newsletter-note {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===== EVENTS PAGE STYLES ===== */
.calendar-nav {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #f9fafb;
    color: #3b82f6;
}

.current-month {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.calendar-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    padding-left: 2.5rem;
    width: 200px;
}

.filter-select {
    min-width: 150px;
}

/* Calendar */
.calendar-section {
    padding: 2rem 0;
}

.calendar-container {
    overflow-x: auto;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
}

.calendar th {
    background: #f9fafb;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.calendar-day {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    height: 120px;
    vertical-align: top;
    position: relative;
}

.calendar-day.inactive {
    background: #f9fafb;
    color: #9ca3af;
}

.calendar-day.has-event {
    background: #fef3c7;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-item {
    margin-bottom: 0.25rem;
}

.event-link {
    display: block;
    padding: 0.125rem 0.25rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    line-height: 1.2;
}

.event-link:hover {
    background: #2563eb;
}

/* Upcoming Events */
.upcoming-events {
    padding: 4rem 0;
    background: #f9fafb;
}

/* .events-grid / .event-card / .event-image / .event-content and friends
   are defined once, above, in the "EVENT CARDS" block near .events - both
   this section and the Home page share those rules. */

/* Featured Event */
.featured-event {
    padding: 4rem 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-image {
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-badge {
    display: inline-block;
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.featured-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-info {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item i {
    color: #3b82f6;
    margin-top: 0.125rem;
}

.info-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #6b7280;
}

.featured-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Event Categories */
.event-categories {
    padding: 4rem 0;
    background: #f9fafb;
}

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

.category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #3b82f6;
    color: white;
}

.category-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Add to Calendar */
.add-calendar {
    padding: 4rem 0;
}

.calendar-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.calendar-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.calendar-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.calendar-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Additional CSS for new pages */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .qr-container {
        flex-direction: column;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-filters {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .featured-content {
        grid-template-columns: 1fr;
    }

    .featured-buttons {
        justify-content: center;
    }

    .calendar-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* worship css*/

/* Worship Schedule Styles */
.worship-schedule {
    padding: 4rem 0;
}

.schedule-container {
    max-width: 64rem;
    margin: 0 auto;
}

.schedule-header {
    background-color: #3b82f6;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.schedule-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.schedule-items {
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.schedule-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.schedule-content p {
    color: #6b7280;
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.join-us-section {
    text-align: center;
    margin-top: 3rem;
}

.join-us-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.join-us-section p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.join-us-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* What to Expect Styles */
.what-to-expect {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.expect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.expect-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.expect-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.expect-list {
    list-style: none;
    padding: 0;
}

.expect-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.expect-list i {
    color: #3b82f6;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.expect-note {
    text-align: center;
    margin-top: 3rem;
}

.expect-note p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Livestream Section Styles */
.livestream-section {
    padding: 4rem 0;
}

.livestream-container {
    max-width: 64rem;
    margin: 0 auto;
}

.livestream-player {
    aspect-ratio: 16/11;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f3f4f6;
    margin-bottom: 3rem;
}

.livestream-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #6b7280;
}


.previous-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;

    .livestream-placeholder iframe,
    .livestream-placeholder embed,
    .livestream-placeholder object {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        display: block;
        border: 0;
    }

    padding: 1rem;
}

.service-item h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.service-item a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.service-item a:hover {
    text-decoration: underline;
}

/* Responsive Design for Worship Page */
@media (min-width: 768px) {
    .schedule-item {
        flex-direction: row;
        align-items: center;
    }

    .schedule-content {
        flex: 1;
    }

    .join-us-buttons {
        flex-direction: row;
        justify-content: center;
    }

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

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

/* about css */

/* About Page Styles */

/* Our Story Section */
.our-story {
    padding: 4rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.story-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.story-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.story-image {
    border-radius: 0.5rem;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Mission & Vision Section */
.mission-vision {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.mission-card,
.vision-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mission-icon,
.vision-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.mission-card p,
.vision-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Core Values Section */
.core-values {
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.value-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.value-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.value-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.value-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Leadership Section */
.leadership {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.leader-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.leader-image {
    margin-bottom: 1.5rem;
}

.leader-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.leader-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.leader-title {
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 1rem;
}

.leader-bio {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Ministries Section */
.ministries {
    padding: 4rem 0;
}

.ministries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ministry-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ministry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ministry-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.ministry-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.ministry-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Beliefs Section */
.beliefs {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.beliefs-content {
    max-width: 48rem;
    margin: 0 auto;
}

.belief-item {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.belief-item h3 img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: -1rem;
    /* Space between icon and text */
    margin-left: -8px;
    /* Nudges icon slightly to the left */
    vertical-align: middle;
    /* Keeps it centered with the text */
    filter: brightness(0) saturate(100%) invert(37%) sepia(96%) saturate(1242%) hue-rotate(199deg) brightness(95%) contrast(92%);
}

.belief-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.belief-item h3 i {
    color: #3b82f6;
}

.belief-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Join Us Section */
.join-us {
    padding: 4rem 0;
    background: rgba(59, 130, 246, 0.05);
}

.join-us-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.join-us-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.join-us-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.join-us-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Responsive Design for About Page */
@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .join-us-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .leadership-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ministries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* contact css */

/* Contact Page Styles */
.contact-info-section {
    padding: 3rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-info-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    background: white;
}

.contact-info-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.contact-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

.contact-map-container {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 400px;
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    padding: 3rem 0;
    background: rgba(59, 130, 246, 0.05);
}

.newsletter-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-note {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsive Design for Contact Page */
@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== SERMONS PAGE STYLES ===== */

/* Search and Filter Section */
.sermons-search {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-input-wrapper input {
    width: 100%;
    padding-left: 2.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    min-width: 150px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
}

.filter-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #f9fafb;
    color: #3b82f6;
}

/* Featured Sermon */
.featured-sermon {
    padding: 3rem 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-video {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    group: hover;
}

.featured-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-video:hover img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-video:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
}

.featured-details .sermon-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.featured-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sermon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sermon-tag {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Recent Sermons Grid */
.recent-sermons {
    padding: 3rem 0;
    background: #f9fafb;
}

.sermons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.sermon-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.sermon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sermon-thumbnail {
    position: relative;
    aspect-ratio: 2/1;
    overflow: hidden;
    cursor: pointer;
}

.sermon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sermon-card:hover .sermon-thumbnail img {
    transform: scale(1.05);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sermon-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-play {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
}

.sermon-info {
    padding: 1.5rem;
}

.sermon-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sermon-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sermon-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sermon-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Sabbath School Lessons */
.sabbath-school {
    padding: 4rem 0;
    background: #f5f5f5;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.grid-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.grid-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.grid-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .lessons-grid {
        grid-template-columns: 1fr;
    }
}


.sabbath-school {
    padding: 4rem 0;
    background: #f5f5f5;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.lessons-grid a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.lessons-grid h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.lessons-grid p {
    margin: 0;
    color: #666;
}

@media (max-width: 992px) {
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .lessons-grid {
        grid-template-columns: 1fr;
    }
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.lesson-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.lesson-card .lesson-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
}

.lesson-card .lesson-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.lesson-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.lesson-card p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lesson-cover {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.lesson-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quarter-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lesson-content {
    padding: 1.5rem;
}

.lesson-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.lesson-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.lesson-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.lesson-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-link:hover {
    text-decoration: underline;
}

/* EGW Writings Section */
.egw-writings {
    padding: 3rem 0;
    background: #f9fafb;
}

.egw-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.egw-intro h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.egw-intro p {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.egw-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.egw-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.egw-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.egw-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.egw-category:hover .egw-icon {
    background: #3b82f6;
    color: white;
}

.egw-category h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.egw-category p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.egw-link {
    text-align: center;
}

/* Media Library */
.media-library {
    padding: 3rem 0;
}

.media-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.media-intro h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.media-intro p {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.media-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-thumbnail {
    position: relative;
    aspect-ratio: 2/1;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.media-info {
    color: white;
}

.media-info h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.media-info p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.media-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Subscribe Section */
.subscribe-section {
    padding: 3rem 0;
    background: #eff6ff;
}

.subscribe-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subscribe-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.subscribe-form button {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #2563eb;
}

.subscribe-note {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Sermon Player Modal */
.sermon-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sermon-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: between;
    align-items: center;
}

.modal-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #374151;
}

.modal-video {
    aspect-ratio: 16/9;
    background: #000;
}

.modal-info {
    padding: 1.5rem;
}

.modal-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.skeleton-thumbnail {
    aspect-ratio: 2/1;
    background: #f0f0f0;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-line {
    height: 1rem;
    background: #f0f0f0;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-wrapper {
        min-width: auto;
    }

    .filter-group {
        flex-direction: column;
    }

    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sermons-header,
    .lessons-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

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

    .lessons-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .egw-categories {
        grid-template-columns: 1fr;
    }

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

    .subscribe-form {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

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

    .lesson-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-info {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {

    .sermon-modal,
    .chat-widget,
    .subscribe-section {
        display: none !important;
    }

    .sermon-card,
    .lesson-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

    .sermon-tag,
    .quarter-badge {
        border: 1px solid currentColor;
    }

    .video-overlay,
    .thumbnail-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .sermon-card,
    .lesson-card,
    .media-card,
    .egw-category {
        transition: none;
    }

    .sermon-card:hover,
    .lesson-card:hover,
    .media-card:hover,
    .egw-category:hover {
        transform: none;
    }

    .loading-skeleton {
        animation: none;
        background: #f0f0f0;
    }
}

/* Focus Styles for Accessibility */
.sermon-card:focus-within,
.lesson-card:focus-within,
.media-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.sermon-thumbnail:focus,
.lesson-link:focus,
.egw-category:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {

    .recent-sermons,
    .egw-writings {
        background: #1f2937;
    }

    .sermon-card,
    .lesson-card,
    .media-card,
    .egw-category {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .sermon-excerpt,
    .lesson-description,
    .egw-category p {
        color: #d1d5db;
    }

    .subscribe-section {
        background: #1e40af;
    }

    .modal-content {
        background: #374151;
        color: #f9fafb;
    }

    .modal-header {
        border-color: #4b5563;
    }
}

/* Add these styles to your existing CSS */

/* Hero Video Styles */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Resources Section */
.resources {
    padding: 80px 0;
    background: #f8fafc;
}

.devotional-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.media-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
}

.media-content {
    display: none;
}

.media-content.active {
    display: block;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.media-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.media-card iframe {
    width: 100%;
    height: 200px;
}

.media-card .media-info {
    padding: 20px;
}

.prayer-request-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}