body {
    margin: 0;
    background-color: #EDE8D0;
    font-family: Arial, sans-serif;
}

.header{
    text-align: center;
}

.header-section img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensure the image covers the section */
}

.events-section {
    padding: 20px;
    background-color: #EDE8D0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.events-section h1 {
    width: 100%;
    text-align: center;
    color: #7E1414;
    margin-bottom: 20px;
}

.event {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 40px); /* Three columns with spacing */
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s; /* Add transition for hover effect */
}

.event:hover {
    transform: translateY(-10px); /* Lift the card on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.event img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.event h2 {
    color: #7E1414;
    margin-bottom: 10px;
    text-align: center; /* Center the title */
}

.event p {
    margin: 5px 0;
    color: #333;
    text-align: center; /* Center the text */
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 10px 20px;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .toggle-button {
        display: flex;
        margin-left: auto;
    }

    .navbar .brand-title.hidden {
        display: none;
    }

    .navbar .dropdown-content {
        position: static;
        box-shadow: none;
    }

    .navbar .dropdown-content a {
        padding: 10px 20px;
    }

    .event {
        width: calc(50% - 20px); /* Two columns on smaller screens */
    }
}

@media (max-width: 480px) {
    .event {
        width: 100%; /* One column on very small screens */
    }
}
