body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Adjust based on the height of the h1 element */
    box-sizing: border-box; /* Include padding and borders in the width and height */
}

.title-bar {
    background-color: #333; /* Dark grey background */
    color: white;
    text-align: center;
    padding: 30px 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Align items vertically */
    justify-content: center; /* Center items horizontally */
}

.back-button {
    position: absolute;
    left: 20px; /* Adjust as needed */
    background-color: #f5f5f5; /* Light grey background for the button */
    color: black; /* Button text color */
    border: none;
    padding: 10px 15px;
    margin-right: 20px; /* Space between button and title */
    border-radius: 5px; /* Optional: Rounded corners */
    font-size: 1em; /* Adjust as needed */
}

h1 {
    margin: 0; /* Remove margin */
    flex-grow: 1; /* Ensures title takes up remaining space */
    /* Other styles remain the same... */
}

.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between thumbnails */
    padding: 20px;
}

.event-thumbnail {
    width: 320px; /* Fixed width, adjust as needed */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px; /* Space between thumbnails */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

.event-thumbnail:hover {
    transform: scale(1.1); /* Scale up by 10% on hover */
}

.event-thumbnail-link {
    text-decoration: none; /* Removes underline from links */
    color: black; /* Sets text color to black, adjust as needed */
    /* Other styles... */
}

.event-thumbnail-link:hover {
    text-decoration: none; /* Keeps the underline removed even on hover */
    /* Add any hover effects if needed */
}

.event-image {
    position: relative;
    width: 320px; /* Fixed width or use percentages for responsiveness */
    height: 240px; /* Adjust as needed */
}

.event-image img {
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
}

.event-image .logo {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20%;
    width: auto;
    z-index: 10;
}

.event-image .event-closed {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 20%;
    width: auto;
    z-index: 10;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Ensures it matches the image width */
    background-color: rgba(101, 101, 101, 0.735);
    color: white;
    text-align: left;
    box-sizing: border-box; /* Prevents padding from affecting width */
    font-size: 14px; /* Reduce font size */
    padding: 5px;
}

.event-name {
    font-size: 1.2em; /* Smaller font */
    padding: 2px;
    text-transform: uppercase;
}

.event-description {
    font-size: 1em;
    padding: 2px;
}

.category-title {
    box-sizing: border-box; /* Include padding and border in the element's width */
    width: 100%;
    background-color: #b1b1b1; /* Dark background for contrast */
    padding: 30px;
}   

.category-title h2 {
    margin: 0 auto; /* Centering horizontally */
    font-size: 20px;
    text-align: left; /* Ensure text alignment is centered */
}   



