body {
    font-family: 'Cinzel', Georgia, serif;
    margin: 0;
    padding: 0;
    /* Background with repeating BMME logo pattern */
    background:
        linear-gradient(rgba(244,244,244,0.9), rgba(244,244,244,0.9)),
        url('assets/images/BMME-FAV.jpg');
    background-repeat: repeat;
    background-size: auto 80px;
    background-attachment: fixed;
    color: #333;
}

header {
    background-color: #b22222;
    color: white;
    text-align: center;
    padding: 20px;
    border-bottom: 5px solid #006400;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.slogan {
    font-size: 1.8em;
    font-style: italic;
    margin: 10px 0;
}

.language-switcher {
    margin-bottom: 10px;
}

.lang-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    background-color: #006400;
    color: white;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #ffd700;
    transform: scale(1.1);
}

main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.content-section {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.content-section:last-child {
    border-bottom: none;
}

h2 {
    color: #b22222;
    border-bottom: 3px solid #006400;
    padding-bottom: 5px;
    font-size: 1.8em;
}

h3 {
    color: #006400;
    font-size: 1.4em;
    margin-top: 20px;
}

.main-image {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slideshow {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 10px;
    position: relative;
    background-color: #f0f0f0;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slide-btn:hover {
    opacity: 1;
}

.left-btn {
    left: 10px;
}

.right-btn {
    right: 10px;
}

.slides-container {
    display: flex;
    width: 200%;
    height: 100%;
    animation: scroll 40s linear infinite;
    gap: 5px;
}

.slide {
    flex: 0 0 12.5%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.event-highlight {
    background-color: #fff8f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.cta-button {
    display: inline-block;
    background-color: #b22222;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #006400;
    transform: scale(1.05);
}

.gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gallery-img {
    width: 23%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-toggle-btn {
    background: #005F2F;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.gallery-toggle-btn:hover {
    background: #004020;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #b22222;
    color: white;
    width: 100%;
    border-top: 5px solid #006400;
}

.social-links a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .slogan {
        font-size: 1.4em;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    main {
        margin: 10px;
        padding: 15px;
    }

    .main-image {
        height: 200px;
    }

    .slideshow {
        height: 150px;
    }

    .slide {
        flex: 0 0 25%;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    .gallery-img {
        width: 48%;
        height: 200px;
    }

    .cta-button {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .slogan {
        font-size: 1.2em;
    }

    .lang-btn {
        padding: 3px 8px;
    }

    .main-image {
        height: 150px;
    }

    .slideshow {
        height: 100px;
    }

    .gallery-img {
        width: 31%;
        height: 150px;
    }

    .gallery {
        justify-content: center;
    }
}

/* Image Modal Styles */
#image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#modal-image {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: 5vh auto;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 5px solid white;
    border-radius: 8px;
}

#modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

#modal-close:hover,
#modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    #modal-image {
        max-width: 95%;
        max-height: 80%;
        margin: 10vh auto;
        border: 2px solid white;
    }

    #modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}
