/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1b4332;
    /* A dark elegant green */
    --secondary-color: #2d6a4f;
    /* Medium elegant green */
    --accent-color: #d4af37;
    /* Elegant muted gold */
    --light-gray: #f9fbf9;
    /* Subtle greenish-white */
    --text-color: #333;
    --heading-font: 'Lora', serif;
    --body-font: 'Lato', sans-serif;
    --transition-speed: 0.4s;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
.main-header {
    background: rgba(249, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed), padding var(--transition-speed);
}

.main-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid transparent;
    padding: 0.5rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo span {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 1100;
    color: var(--primary-color);
    font-size: 1.7rem;
    line-height: 1;
}

/* When nav is open, button turns white (it sits above the dark overlay) */
.nav-toggle.active {
    color: #fff;
}


/* --- Mobile: full-screen overlay drawer --- */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    /* Header spans full width — logo touches far left edge */
    .main-header .container {
        width: 100%;
        padding: 0 12px;
    }

    /* Pin logo firmly to the left */
    .logo {
        flex: 0 0 auto;
        margin-right: auto;
        justify-content: flex-start;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1050;
        background: #1b4332;
        align-items: center;
        justify-content: center;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0;
        list-style: none;
        padding: 20px 0;
        margin: 0;
        width: 100%;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        color: #ffffff;
        font-size: 1.4rem;
        font-weight: 700;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:first-child a {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #d4af37;
        background: rgba(255, 255, 255, 0.07);
    }

    .nav-links a::after {
        display: none;
    }
}




/* --- Hero Section --- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 80vh;
    padding: 200px 0 80px 0;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.95) 0%, rgba(27, 67, 50, 0.4) 40%, transparent 80%), url(../images/coverphoto.png) center top/cover no-repeat;
    z-index: -1;
    animation: zoomInOut 30s infinite alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero .container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #1b4332;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #e6c15c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 67, 50, 0.2);
}

/* --- Homepage Specific Sections --- */
.welcome-grid {
    padding: 120px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.welcome-image img {
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.info-cards {
    display: flex;
    gap: 50px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    border-radius: 8px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(27, 67, 50, 0.1);
    border-color: transparent;
}

.card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
}

/* --- General Content Pages --- */
.page-title {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.page-title h1 {
    color: #fff;
}

.content-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.content-section ul {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

/* --- Church History Video Player --- */
.church-video-section {
    margin: 36px 0 10px;
}

.video-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 14px;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: #000;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.video-player-wrapper:hover {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.video-player-wrapper:hover .video-thumbnail {
    transform: scale(1.03);
    filter: brightness(0.8);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0.05) 100%);
    transition: background 0.3s ease;
}

.video-player-wrapper:hover .video-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.25) 50%,
            rgba(0, 0, 0, 0.1) 100%);
}

/* Play button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 72px;
    height: 72px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b4332;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    z-index: 2;
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    /* optical centering for play icon */
}

.video-player-wrapper:hover .video-play-btn {
    transform: translate(-50%, -60%) scale(1.12);
    background: #fff;
    box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Pulse ring */
.play-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Title card at the bottom */
.video-title-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    z-index: 2;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.video-player-wrapper:hover .video-title-card {
    transform: translateY(0);
}

.video-title-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-title-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Active iframe state */
.video-player-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
}

/* --- About Us Page: Leadership --- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.leader-card {
    text-align: center;
}

.leader-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.leader-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.leader-card h4 {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
    margin-bottom: 0.5rem;
}

/* --- Sermon List --- */
.sermon-list {
    padding: 60px 0;
}

.sermon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.sermon-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.sermon-title {
    margin-bottom: 0.5rem;
}

.sermon-meta {
    color: #666;
}

.btn-sermon {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-sermon:hover {
    background: var(--primary-color);
}

/* --- Contact Page --- */
.contact-info {
    padding: 60px 0;
    display: flex;
    gap: 40px;
}

.contact-details {
    flex: 1;
}

.contact-map {
    flex: 1;
}

/* --- CORRECTED 4-COLUMN FOOTER STYLES --- */
.main-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 20px 20px;
    margin-top: auto;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-column p strong {
    color: #fff;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-icons a {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.footer-social-icons a:hover {
    transform: translateY(-4px);
}

.footer-social-icons img {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Document Grid Styles for Beliefs Page --- */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.document-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(27, 67, 50, 0.1);
    padding: 20px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.document-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(27, 67, 50, 0.08);
    border-color: var(--accent-color);
}

.document-card .doc-icon {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    margin-right: 15px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: color var(--transition-speed) ease;
}

.document-card:hover .doc-icon {
    color: var(--accent-color);
    background: transparent;
    transform: none;
}

.document-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0;
    font-weight: 700;
}

/* --- Advanced Sermon Archive (Accordion System) --- */
.sermon-accordion-container {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-lvl-1 {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    padding: 16px 22px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease, border-left 0.3s ease;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.accordion-lvl-1:hover,
.accordion-lvl-1.active-accordion {
    background-color: #153225;
}

.accordion-lvl-1::after {
    content: '\002B';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 2rem;
    transition: transform 0.3s;
}

.accordion-lvl-1.active-accordion::after {
    content: "\2212";
}

.panel-lvl-1 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #f9fdfa;
    border-radius: 0 0 8px 8px;
    margin-top: -10px;
    margin-bottom: 15px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-lvl-2 {
    background-color: #eef5f0;
    color: var(--primary-color);
    cursor: pointer;
    padding: 12px 18px;
    width: 100%;
    border: none;
    border-left: 4px solid #ccd8d1;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-lvl-2:hover,
.accordion-lvl-2.active-accordion {
    background-color: #e2ede5;
    border-left-color: var(--secondary-color);
}

.accordion-lvl-2::after {
    content: '\25BC';
    font-size: 0.9rem;
    transition: transform 0.3s;
    color: var(--secondary-color);
}

.accordion-lvl-2.active-accordion::after {
    transform: rotate(180deg);
}

.panel-lvl-2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fff;
    border: 1px solid #eef5f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin-top: -5px;
}

.sermon-list {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sermon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background-color: #f7faf8;
    border-radius: 6px;
    border: 1px solid rgba(27, 67, 50, 0.05);
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sermon-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 67, 50, 0.08);
    background-color: #fff;
    border-color: rgba(27, 67, 50, 0.15);
    border-left-color: var(--accent-color);
}

.sermon-title-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.play-button.small-play {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 36px;
    height: 36px;
    box-shadow: none;
    animation: none;
}

.play-button.small-play:hover {
    transform: scale(1.1);
}

.play-button.small-play svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: #1b4332;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    animation: pulsePlay 2s infinite;
    transition: transform var(--transition-speed) ease;
    z-index: 2;
}

@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    animation: none;
}

.play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    /* Center the triangle visually */
}

.sermon-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sermon-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sermon-details h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sermon-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.sermon-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.btn-outline {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Universal Image Lightbox --- */
.zoomable-image {
    cursor: zoom-in;
    transition: filter var(--transition-speed) ease, transform 0.3s ease;
}

.zoomable-image:hover {
    filter: brightness(0.85);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 30, 25, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.1) rotate(90deg);
}

/* --- Social Icons Standardized --- */
.footer-social-icons img {
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.footer-social-icons a:hover img {
    opacity: 1;
    transform: scale(1.15);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* --- Mobile Logo Styles MOVED TO CORRECT PLACE --- */
    .logo img {
        max-height: 40px;
        /* Make the logo image smaller on mobile */
    }

    .logo span {
        font-size: 1.2rem;
        /* Make the logo text smaller on mobile */
    }

    /* --- End of Mobile Logo Styles --- */

    h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .welcome-grid,
    .info-cards,
    .contact-info,
    .sermon-item {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 60%;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .nav-links a {
        color: #fff;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        position: relative;
        transition: background 0.2s ease-in-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        transition: transform 0.2s ease-in-out;
    }

    .hamburger::before {
        transform: translateY(-8px);
    }

    .hamburger::after {
        transform: translateY(8px);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
    }
}

/* --- Table Styles for About Page --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 0.95rem;
    /* Slightly smaller font for better fit */
}

thead th {
    text-align: left;
    padding: 12px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    /* Aligns content to the top of the cell */
}

tbody tr:last-child td {
    border-bottom: none;
    /* Removes the line under the last row */
}

/* Responsive adjustments for the table */
@media (max-width: 768px) {
    thead {
        display: none;
    }

    table {
        display: block;
        width: 100%;
    }

    tbody {
        display: block;
        width: 100%;
    }

    tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #dde8df;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        background: #fff;
    }

    td {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid #eef2ee;
        text-align: left;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        flex: 0 0 110px;
        /* Wide enough for "ACTIVITY DETAILS" */
        font-size: 0.72rem;
        line-height: 1.3;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--accent-color);
        padding-top: 2px;
    }

    /* Ensure the value part fills remaining space and wraps */
    td>*,
    td>span {
        flex: 1;
        min-width: 0;
    }
}


.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- Latest News & Carousel Section --- */
.latest-news {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.news-text h2 {
    font-size: 2.5rem;
}

.news-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.news-text p {
    margin-bottom: 1.5rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Or your specific height */
    margin: 0 auto;
    overflow: hidden;
    /* ADD THIS LINE */
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 1.5rem;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
    border-radius: 5px 0 0 5px;
}

.carousel-button.next {
    right: 10px;
    border-radius: 0 5px 5px 0;
}

/* --- Responsive adjustments for the new section --- */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Document Modal (PDF Lightbox) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

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

.modal-content {
    background: #fff;
    width: 90vw;
    max-width: 1200px;
    height: 90vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(27, 67, 50, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-color);
    color: #1b4332;
}

.modal-frame {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    padding: 20px;
    padding-top: 60px;
    /* Space for close button */
}

.modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(27, 67, 50, 0.1);
    border-radius: 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Advanced Dynamic Effects --- */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn.pulse {
    animation: pulse 2.5s infinite;
}

.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.3s !important;
}

.delay-3 {
    transition-delay: 0.5s !important;
}

/* --- Custom Toast Notification --- */
.custom-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.4);
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.custom-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* =========================================================================
   Service Schedule Cards (Homepage)
   ========================================================================= */
.schedule-cards-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.schedule-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(27, 67, 50, 0.1);
}

.schedule-icon {
    width: 70px;
    height: 70px;
    background: rgba(205, 163, 79, 0.15);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-icon img {
    width: 35px;
    height: 35px;
    opacity: 0.9;
}

.schedule-content h4 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.schedule-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.time-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
}

/* =========================================================================
   Lightbox and Video Modal Overlays
   ========================================================================= */
.lightbox-overlay,
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 99999;
    /* Use relative positioning context so image can center itself absolutely */
    display: block;
    overscroll-behavior: none;
    touch-action: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active,
.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    /* Absolute center inside fixed overlay - most reliable on all mobile browsers */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-image {
    transform: translate(-50%, -50%) scale(1);
}

.video-modal.active .video-container {
    transform: scale(1);
}

.video-modal .video-container {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    position: relative;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.lightbox-close,
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover,
.modal-close:hover {
    color: var(--accent-color);
}

/* =========================================================================
   Universal Table Styling
   ========================================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.05);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

thead tr {
    background-color: var(--primary-color);
}

thead th {
    color: #ffffff !important;
    text-align: left;
    font-weight: bold;
}

th,
td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

th:not(:last-child),
td:not(:last-child) {
    white-space: nowrap;
    width: 1%;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: rgba(27, 67, 50, 0.02);
}

tbody tr:last-of-type th,
tbody tr:last-of-type td {
    border-bottom: none;
}

.delay-4 {
    transition-delay: 0.7s !important;
}

/* =========================================================================
   Image Carousel Details
   ========================================================================= */
.news-carousel {
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 400px;
    /* Hide native scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 67, 50, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* =========================================================================
   Mobile Optimization (@media max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p,
    body {
        font-size: 1rem;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 100px 20px 40px;
    }

    .main-header .container {
        justify-content: space-between;
        position: relative;
    }

    .nav-toggle {
        display: block;
        width: auto;
        height: auto;
        flex-direction: unset;
        justify-content: unset;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 4px 8px;
    }

    /* Old hamburger bar styles removed — using unicode ☰ character now */

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1050;
        background: #1b4332;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-bottom: 0;
    }

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

    .nav-links {
        flex-direction: column;
        padding: 10px 20px;
        gap: 20px;
        align-items: center;
    }

    .features-grid,
    .beliefs-grid,
    .gallery-grid,
    .values-grid,
    .footer-grid,
    .contact-grid,
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .welcome-grid .btn-secondary {
        margin: 0 auto;
    }

    .sermon-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
    }

    .sermon-title-text {
        flex: 1;
        text-align: left;
    }

    .play-button {
        flex-shrink: 0;
        align-self: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    /* Ensure tables can natively scroll horizontally on narrow devices without breaking brand blocks */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 30px;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* =========================================================================
   Contact Page — Newsletter Subscription Section
   ========================================================================= */
.contact-subscribe {
    padding: 80px 0;
    background: #fdf8ef;
    /* Warm parchment/cream — distinct from green footer */
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
    color: var(--text-dark);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.contact-subscribe::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    pointer-events: none;
}

.contact-subscribe::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.05);
    pointer-events: none;
}

.subscribe-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left: text panel */
.subscribe-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.subscribe-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    border: none;
}

.subscribe-text h2::after {
    display: none;
}

.subscribe-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.subscribe-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.subscribe-benefits li {
    color: #444;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right: form card */
.subscribe-form-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.subscribe-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.subscribe-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
}

.subscribe-form-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.subscribe-form-header p {
    color: #666;
    font-size: 0.9rem;
}

.subscribe-form-fields .form-group {
    margin-bottom: 16px;
}

.subscribe-form-fields label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.subscribe-form-fields input[type="text"],
.subscribe-form-fields input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dde3dd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #f9faf9;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.subscribe-form-fields input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
    background: #fff;
}

.subscribe-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
    border-radius: 8px;
}

.subscribe-note {
    text-align: center;
    font-size: 0.78rem;
    color: #999;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Contact info + map layout */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding: 60px 0;
}

.contact-map {
    min-height: 380px;
    border-radius: 12px;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .subscribe-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .subscribe-benefits {
        grid-template-columns: 1fr;
    }

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

    .contact-map {
        min-height: 280px;
    }
}

/* --- Sermon List: Row Layout --- */
.sermon-list {
    padding: 8px 0;
}

.sermon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #eef0ee;
}

.sermon-row:last-child {
    border-bottom: none;
}

.sermon-title-text {
    flex: 1;
    font-size: 0.95rem;
    color: #2c3e2d;
    font-weight: 500;
    line-height: 1.4;
}

.play-button.small-play {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.play-button.small-play:hover {
    background: #b8972e;
    transform: scale(1.1);
}

.play-button.small-play svg {
    width: 16px;
    height: 16px;
    fill: #1b4332;
    margin-left: 2px;
}

/* --- Mobile Font Size Fixes --- */
@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .logo span {
        font-size: 0.85rem;
    }

    .accordion-lvl-1,
    .accordion-lvl-2 {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .sermon-title-text {
        font-size: 0.88rem;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .card h3 {
        font-size: 1rem;
    }
}

/* --- Modal Overlay (PDF & Video) --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #000;
}

.modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

/* --- Home Page: Recent Sermons Section --- */
.recent-sermons-section {
    padding: 80px 0;
    background: #f7faf8;
}

.recent-sermons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-sermon-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-sermon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.15);
}

.home-sermon-thumb {
    position: relative;
    overflow: hidden;
}

.home-sermon-thumb img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-sermon-card:hover .home-sermon-thumb img {
    transform: scale(1.04);
}

.home-sermon-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.25s ease;
}

.home-sermon-card:hover .home-sermon-play {
    background: rgba(0, 0, 0, 0.52);
}

.home-sermon-play svg {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.home-sermon-info {
    padding: 16px 20px 22px;
}

.home-sermon-series {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-color);
}

.home-sermon-title {
    margin: 6px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.45;
}

@media (max-width: 768px) {
    .recent-sermons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .recent-sermons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- Beliefs Page: Five Solas Cards --- */
.solas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
}

.sola-card {
    position: relative;
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    padding: 24px 28px 24px 72px;
    box-shadow: 0 3px 14px rgba(27,67,50,0.07);
}

.sola-badge {
    position: absolute;
    left: 18px;
    top: 22px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.sola-card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    color: var(--primary-color);
}

.sola-sub {
    font-weight: 400;
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
}

.sola-card p {
    margin: 0;
    line-height: 1.75;
    color: #444;
    font-size: 0.97rem;
}

.sola-card em {
    font-style: italic;
    color: var(--primary-color);
}

/* --- Desktop Dropdown Navigation --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    min-width: 210px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: dropFadeIn 0.18s ease;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu li a {
    display: block;
    padding: 11px 22px;
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-dropdown-menu li a:hover {
    background: rgba(27,67,50,0.07);
    color: var(--primary-color) !important;
}
