body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
	background-color: #008080;
    color: white;
    padding: 15px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

section {
    padding: 20px;
}

section p {
    text-align: center;
}

footer {
    background-color: #008080;
    color: white;
    padding: 10px;
    width: 100%;
    margin-top: 40px; /* optional spacing */
}

form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #00467F;
    color: white;
    padding: 10px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;      /* centers columns */
    align-items: flex-start;      /* prevents squeezing */
    gap: 30px;                    /* nicer spacing */
    max-width: 1200px;            /* keeps layout tidy */
    margin: 0 auto;               /* centers the whole section */
    padding: 20px;
}

.events-box {
    max-width: 800px;
    width: 90%;
    padding: 20px;
    margin: 20px auto;

    background: #ffffff;
    border: 3px solid #008080;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);

    font-size: 1.2rem;

    /* key part: let it grow */
    height: auto;
    max-height: none;
    overflow-y: visible;
}



.events-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-box li.event {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.events-box li.event:last-child {
    border-bottom: none;
}

.events-box li.event strong {
    display: block;
    font-size: 1.25rem;
    color: #00467F;
    margin-bottom: 5px;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-list .event {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    line-height: 1.6;
}

.events-list .event:last-child {
    border-bottom: none;
}

.events-list .event strong {
    display: block;
    font-size: 1.25rem;
    color: #00467F;
    margin-bottom: 5px;
}

