:root {
    --primary-color: #003366;
    --secondary-color: #d4af37;
    /* Gold */
    --accent-color: #8b0000;
    /* Dark Red */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --max-width: 800px;
}

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

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

.app-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.nav-item img {
    width: 24px;
    height: 24px;
}

.nav-item:hover,
.nav-item.active {
    opacity: 1;
    color: var(--secondary-color);
}

.nav-item.active {
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

main {
    max-width: var(--max-width);
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.greeting-section {
    position: relative;
}

.greeting-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.signature {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.program-placeholder {
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
    color: #666;
    font-style: italic;
}

.venues-list {
    list-style: none;
}

.venues-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.venues-list li:last-child {
    border-bottom: none;
}

.venue-name {
    font-weight: 600;
    color: var(--primary-color);
}

.venue-details {
    font-size: 0.9rem;
    color: #666;
}

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

.info-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opening-hours {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.day-title {
    font-weight: 600;
}

.emergency-list {
    list-style: none;
}

.emergency-list li {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.emergency-number {
    font-weight: 700;
    color: var(--accent-color);
}

.song-container {
    margin-top: 2rem;
}

.song {
    margin-bottom: 3rem;
}

.song h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.verse {
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.verse-number {
    display: block;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.music-list {
    list-style: none;
}

.music-item {
    margin-bottom: 1.5rem;
}

.music-time {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.music-piece {
    display: block;
    padding-left: 1rem;
    border-left: 2px solid var(--secondary-color);
}

.acknowledgments p {
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-bg);
    color: #666;
    font-size: 0.9rem;
}

.search-container {
    margin-bottom: 2rem;
    z-index: 100;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

mark.highlight {
    background-color: rgba(212, 175, 55, 0.3);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

section.hidden {
    display: none;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem;
    }

    .search-container {
        margin-bottom: 1rem;
    }
}

.toc-section {
    padding: 1rem 3rem;
    margin-bottom: 2rem;
}

.toc-section ul {
    list-style: none;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.toc-section li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.toc-section li::before {
    content: "•";
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.toc-section li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.toc-section li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    display: flex;
}