:root {
    --bg-color: #f4f7f6;
    --text-color: #2d3748;
    --card-bg: #ffffff;
    --primary-color: #1a365d;
    --accent-color: #d69e2e;
    /* Elegant gold touch */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    z-index: 10;
    box-sizing: border-box;
}

.logo {
    height: 50px;
    margin-right: 15px;
    /* Pwede mong lagyan ng drop-shadow kung white background ang logo para mag-blend */
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.church-name {
    color: white;
    font-family: 'Inter', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Premium Hero Section */
.hero {
    position: relative;
    height: 70vh;
    /* Takes up 70% of the screen height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Smooth Looping Background Animation */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeLoop 25s infinite;
    /* 5 slides x 5 seconds each */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

@keyframes fadeLoop {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 40px;
    color: #e2e8f0;
}

/* Glassmorphism Search Bar */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 18px 25px 18px 50px;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#searchInput:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

/* Main Content area */
main {
    max-width: 800px;
    margin: -40px auto 50px auto;
    /* Pulls the content slightly over the hero */
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* State Placeholders (No results / Empty) */
.empty-state {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #718096;
    font-size: 1.1rem;
    font-style: italic;
}

/* Premium Card Styles */
.hymn-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-top: 5px solid var(--accent-color);
}

.hymn-card h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    color: var(--primary-color);
    font-size: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.verse {
    margin-bottom: 25px;
}

.verse strong {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.verse p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .hymn-card {
        padding: 25px;
    }

    .hymn-card h2 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 15px 20px;
        justify-content: center;
    }

    .church-name {
        display: none;
    }

    /* Hide text on small phones, show logo only */
}

/* Special styling for Chorus blocks */
.chorus-block p {
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    padding-left: 15px;
    /* Adds a slight indent */
    border-left: 3px solid var(--accent-color);
    /* Adds a gold line on the left */
}

.chorus-block strong {
    color: var(--primary-color);
}