body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    background-image: url('header-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 20px;
    text-align: center;
    min-height: 707px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #0a0e27;
    padding: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    background-color: #5462b8;
    border-radius: 5px;
    font-weight: bold;
}

nav a:hover {
    background-color: #ebcb1a;
    color: #0e1b69;
}

section {
    padding: 60px 20px;
    text-align: center;
    background-color: #424763;
    color: #fff;
}

.alt-background {
    background-color: #0a0e27;
    color: white;
}

footer {
    background-color: #fff;
    color: black;
    padding: 20px;
    text-align: center;
}

.social-media-icons {

    margin-top: 10px;
    background-color: #fff;
}

.social-media-icons img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
}

.footer-contact {
    margin-top: 20px;
}

.event-grid-wrapper {
    display: flex;
    justify-content: center; /* Centers the grid horizontally */
    margin-top: 20px; /* Adds spacing above the grid */
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjusted minimum size for items */
    gap: 20px;
    max-width: 1200px; /* Sets a max width for the grid */
    width: 100%; /* Ensures the grid is responsive */
    justify-items: center; /* Centers items horizontally within each grid cell */
}

.event-item {
    text-align: center;
    margin-top: 20px; /* Adds spacing above the grid */
}

.event-item img {
    width: 100%;
    height: 100%; /* Set a fixed height */
    object-fit: cover; /* Ensures images cover the space without distorting */
    border-radius: 8px;
}

.event-item p {
    margin-top: 8px;
    font-size: 0.9em;
}

.register-button {
    display: inline-block; /* Makes the link behave like a button */
    padding: 10px 20px;
    background-color: #5462b8; /* Button background color */
    color: white; /* Button text color */
    text-decoration: none; /* Remove underline from link */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text */
    margin-top: 15px; /* Space above the button */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.register-button:hover {
    background-color: #ebcb1a; /* Change background color on hover */
    color: #0e1b69; /* Change text color on hover */
}

