.overlay {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: #e6e4e4; /* Black overlay with 52% opacity */
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 30.5%;
    left: 10.5%; /* Adjust based on desired padding */
    transform: translateY(-50%);
    color: black;
    font-size: 24px;
    font-weight: bold;
    z-index: 2; /* Ensure text appears above the overlay */
   
}

.overlay-text-h1 h1 {
    font-size: 60px;
    margin: 0;
}

.overlay-text p {
    margin: 0; /* Removes extra spacing */
    font-size: 16px; /* Adjust as needed */
}

nav {
    padding-top: 5px;
    padding-left: 5px;
    font-size: 15px;
    margin-bottom: 20px;
}

nav a {
    text-decoration: none;
    color: black; /* Default color for non-current pages */
    font-weight: normal;
}

nav a.active {
    color: #032c6e; /* Color for the current page */
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
    color: #032c6e; /* Hover color */
}

.container {
    width: 75%;
    margin: 300px auto 30px; /* Adjust margin-top to push content below overlay */
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 0; /* Ensure it's below the overlay */
    position: relative; /* Ensures proper stacking */
}

.link a {
    text-decoration: none;
    color: #4c4a4a;
    margin-left: 85%;
    position: relative;
    top: -20px;
    font-weight: bold;
}

.link a:hover {
    color: #f8c016; /* Change the color on hover */
    text-decoration: none; /* Add underline on hover */
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filters select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Event Section */
.event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #fff;
}

.event-image {
    position: relative;
    width: 20px;
    height: 150px;
    border-radius: 4px;
}

.base-image {
    width: 250px;
    height: 320px;
    object-fit: cover; /* Ensures the image covers the container */
    border: 1px solid #ccc; /* Add a border */
    border-radius: 2px; /* Optional: Rounds the corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.base-image:hover {
    transform: scale(1.4); /* Enlarges the image on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds a shadow effect */
}

.event-details {
    flex: 1;
    margin-left: 40px;
}

.event-details h3 {
    margin: 0;
    font-size: 25px;
    color: #333;
}

.event-details p {
    margin: 15px 0;
    color: #545353;
}

/* Register Button */
.register-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8c016;
    color: black;
    text-decoration: none; /* Remove underline */
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.register-button:hover {
    background-color: #0056b3;
    color: white;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.info-item i {
    margin-right: 10px;
}

.hidden{
    display: none;
}

@media (max-width: 1024px) { /* Tablet */
    .overlay{
        height:auto;
    }
    .overlay-text { 
        font-size: 15px; /* Adjust text size for smaller screens */ 
        left: 5%;
        top: 250px; 
         line-height: 1;
    } 
    .container {
        width: 90%; /* Adjust width on tablets */
        margin: 150px auto 30px; /* Adjust top margin */
    }

    .event {
        flex-direction: column; /* Stack event details and image vertically */
        align-items: flex-start;
    }

    .event-image {
        width: 100%; /* Make image full-width on tablets */
        height: auto;
        margin-bottom: 20px;
    }

    .base-image {
        width: 100%; /* Make the image responsive */
        height: auto;
        max-width: 300px; /* Max size for the image */
    }

    .event-details {
        margin-left: 0;
    }

    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters select {
        margin-bottom: 10px;
        width: 100%;
    }
}

@media (max-width: 768px) { /* Smaller Tablets and Large Phones */
    .overlay{
        position: absolute;
        height:auto;
    }

    .overlay-text { 
        font-size: 15px; /* Adjust text size for smaller screens */ 
        left: 5%;
        top: 250px; 
         line-height: 1;
    } 

    .container { 
        width: 85%; 
        margin: 125px auto 30px ; /* Adjust top margin */ 
    } 

    .event { 
        flex-direction: column; /* Stack event details and image vertically */ 
    } 

    .event-details h3 { 
        font-size: 20px; /* Reduce title size */ 
    } 

    .event-details p { 
        font-size: 13px; /* Adjust paragraph font size */ 
    } 

    .base-image { 
        width: 100%; 
        max-width: 200px; /* Adjust max-width */ 
    } 

    .filters { 
        flex-direction: column; 
        align-items: flex-start; 
    } 

    .filters select {
         margin-bottom: 10px; 
         width: 40%; 
    }
}

@media (max-width: 480px) { /* Mobile */
    body {
        font-size: 14px; /* Smaller font size for mobile */
    }

    .overlay-text {
        font-size: 18px; /* Further reduce text size */
    }

    .container {
        width: 80%;
        margin: 150px auto 30px; /* Adjust top margin */
    }
    

    .event {
        flex-direction: column; /* Stack event details and image vertically */
        align-items: flex-start;
    }

    .event-image {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .base-image {
        width: 100%;
        max-width: 250px; /* Adjust max-width */
    }

    .event-details h3 {
        font-size: 20px; /* Further reduce font size */
    }

    .event-details p {
        font-size: 12px; /* Further reduce paragraph size */
    }

    .register-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters select {
        width: 100%;
    }
}