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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #d4af37;
    --accent: #ff9800;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/divine-bird-bg.png') center/cover fixed no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.container {
    width: clamp(90%, 95%, 1400px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2.5rem);
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f172a 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid var(--secondary);
}

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

.language-switcher {
    position: relative;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: var(--dark);
    list-style: none;
    width: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.language-dropdown li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.language-dropdown li:hover {
    background-color: #f5f5f5;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

/* Main Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 99;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
}

.nav-links a i {
    margin-right: 8px;
    color: var(--primary);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/church-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: var(--btn-font-size);
}

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

.btn-primary:hover {
    background-color: #1e3d6f;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-youtube {
    background-color: #ff0000;
    color: white;
}

.btn-youtube:hover {
    background-color: #cc0000;
}

.btn-notify {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-notify:hover {
    background-color: #b8941f;
}

/* Inline Notification Form Styles */
.notify-container {
    display: flex;
    align-items: center;
}

.notify-form-inline {
    display: flex;
    gap: 8px;
    background: #f0f2f5;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #dcdde1;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notify-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 180px;
    outline: none;
}

.notify-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.btn-submit-inline {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-inline:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(233, 185, 201, 0.5), rgba(230, 116, 195, 0.5)),
        url('https://images.unsplash.com/photo-1642756936657-8634761ab859?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8dGhlJTIwZ2F0ZXMlMjBvZiUyMGplcnVzYWxlbXxlbnwwfHwwfHx8MA%3D%3D');
    background-size: cover;
    background-position: center;
    min-height: clamp(400px, 70vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(60px, 10vh, 100px) 20px;
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        /* Increased from 50vh for better visible impact */
        min-height: 350px;
        background-attachment: scroll;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        /* Slightly smaller for better fit */
    }

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


/* Live Stream Section */
.live-section {
    padding: 100px 0;
    background-color: var(--light);
}

.youtube-search-bar {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 43, 109, 0.1);
}

.youtube-search-bar input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
}

.youtube-search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.youtube-search-bar button:hover {
    background: var(--secondary);
    color: var(--primary);
}

@media (max-width: 600px) {
    .youtube-search-bar {
        flex-direction: column;
        border-radius: 15px;
        padding: 5px;
        gap: 5px;
    }

    .youtube-search-bar input {
        padding: 10px 15px;
        text-align: center;
    }

    .youtube-search-bar button {
        padding: 10px;
        width: 100%;
        border-radius: 10px;
    }
}

.quick-browse {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-browse {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-browse:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-browse i {
    font-size: 0.9rem;
}

.stream-player {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
    width: 100%;
}

.stream-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .stream-player iframe {
        height: auto;
        aspect-ratio: 16/9;
    }
}

.stream-info {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    transform: translateY(0);
    transition: var(--transition);
}

.stream-info:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stream-status {
    margin-bottom: 20px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.live-badge i {
    margin-right: 8px;
    font-size: 0.7rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.stream-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.sermon-title {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 15px;
}

.stream-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 8px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .stream-meta {
        justify-content: center !important;
        text-align: center;
    }

    .meta-item {
        justify-content: center;
        width: 100%;
    }
}

.stream-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Volume Control Styling */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    height: 48px;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    min-width: 120px;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.volume-control .btn-outline {
    border: none;
    padding: 0 10px;
    min-height: auto;
    font-size: 0.9rem;
    height: 100%;
}

.volume-control .btn-outline:hover {
    background: transparent;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .stream-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .stream-actions {
        flex-direction: column;
        width: 100%;
    }

    .stream-actions .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .stream-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary);
    color: white;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-form {
    display: flex;
    gap: 10px;
}

.cta-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    min-width: 250px;
}

.cta-form button {
    white-space: nowrap;
}

/* Events Section */
.events-section {
    padding: 80px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    display: flex;
}

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

.event-date {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.event-date .month {
    font-size: 0.9rem;
}

.event-details {
    padding: 20px;
    flex-grow: 1;
}

.event-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.event-time,
.event-location {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--gray);
}

.event-time i,
.event-location i {
    margin-right: 8px;
    color: var(--primary);
}

.event-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

.section-footer {
    text-align: center;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #0f1b3d 0%, #1a2b6d 100%);
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 65px;
    width: auto;
    margin-right: 20px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    font-family: 'Playfair Display', serif;
}

.footer-desc {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    color: var(--secondary);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .stream-player iframe {
        height: 400px;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-form {
        width: 100%;
        justify-content: center;
    }

    .cta-form input {
        min-width: auto;
        flex-grow: 1;
    }
}

/* Mobile Toggle - Standardized */
.mobile-menu-btn {
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    z-index: 2001;
    /* Ensure above nav-links */
    padding: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary);
    font-size: 1.5rem;
}

.hamburger {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        display: flex !important;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

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

    .nav-links a {
        color: var(--dark);
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: flex-start;
        border-radius: 0;
    }

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

    .nav-links a i {
        color: var(--primary);
        width: 20px;
        text-align: center;
        margin-right: 15px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .stream-player iframe {
        height: auto;
    }

    .stream-meta {
        flex-direction: column;
        gap: 10px;
    }

    .stream-actions {
        flex-direction: column;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .event-date .day {
        margin-bottom: 0;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 10px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stream-player iframe {
        height: auto;
    }

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

    .cta-form input {
        margin-bottom: 10px;
    }

    .youtube-search-bar {
        flex-direction: column;
        padding: 5px;
        border-radius: 15px;
        gap: 5px;
    }

    .youtube-search-bar input {
        width: 100%;
        text-align: center;
    }

    .youtube-search-bar button {
        width: 100%;
        padding: 12px;
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a2b6d;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Tablet Navigation Refinement */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

/* Sermon Archive Section */
.sermons-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.sermon-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.sermon-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.sermon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sermon-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.sermon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.sermon-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--secondary);
}

.sermon-details {
    padding: 20px;
}

.sermon-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.sermon-details h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 1.2rem;
}

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

    .sermon-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        flex-grow: 1;
        text-align: center;
    }
}