/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: purple;
    color: #4b1a4b; /* dark purple text */
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}
/* Navigation */
nav {
    background-color: #800000; /* maroon */
    padding: 10px 15px;
    border-radius: 5px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}
nav ul li {
    display: inline-block;
}
nav a {
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    color: #d4af37; /* gold */
}
nav a:hover,
nav a:focus {
    background-color: #5a2a6e; /* purple */
    color: #fff;
}
/* Header Titles */
h1, h2, h3 {
    margin-bottom: 15px;
    color: #5a2a6e; /* purple */
}
/* Forms */
form {
    background: #fff;
    max-width: 500px;
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
}
form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #800000; /* maroon */
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1.5px solid #d4af37; /* gold border */
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form textarea:focus {
    border-color: #5a2a6e; /* purple focus */
    outline: none;
}
form textarea {
    resize: vertical;
    min-height: 100px;
}
form button {
    background-color: #800000; /* maroon */
    color: #d4af37; /* gold */
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}
form button:hover,
form button:focus {
    background-color: #5a2a6e; /* purple hover */
}
/* Error messages */
p[style*="color:red"],
.error-message {
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 12px;
}
/* Lists (for events) */
ul {
    list-style: none;
    margin-top: 10px;
    padding-left: 0;
}
ul li {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgb(0 0 0 / 0.05);
}
ul li h3 {
    margin-bottom: 8px;
    color: #800000; /* maroon */
}
ul li p {
    white-space: pre-line;
}
/* Links inside content */
a {
    color: #5a2a6e; /* purple */
    text-decoration: none;
    font-weight: 600;
}
a:hover,
a:focus {
    text-decoration: underline;
}
/* Footer */

/* Horizontal Rules */

/* Responsive */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 8px;
    }
    form {
        padding: 15px;
        width: 100%;
    }
}
