* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #dd3333;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-box:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #b32d2d;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.date-selector {
    text-align: center;
    margin: 20px 0;
}

.date-selector input[type="date"] {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.date-selector button {
    padding: 8px 15px;
    background-color: #dd3333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.date-selector button:hover {
    background-color: #b32d2d;
}

.date-nav {
    text-align: center;
    margin: 10px 0;
}

.date-nav button {
    padding: 8px 15px;
    background-color: #dd3333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.date-nav button:hover {
    background-color: #b32d2d;
}

.date-nav button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.events-container {
    max-width: 1000px;
    margin: 30px auto;
}

.events-header {
    text-align: center;
    margin-bottom: 20px;
}

.events-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dd3333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.event-item {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-item img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.event-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.event-item p {
    color: #555;
    margin-bottom: 15px;
}

.event-item a {
    color: #dd3333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.event-item a:hover {
    text-decoration: underline;
    color: #b32d2d;
}

.event-item .image-credit {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
    font-style: italic;
}

.no-events {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 40px;
}

footer {
    background-color: #dd3333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
    }

    .logo-container, .search-container, nav {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo-container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 5px 0;
        text-align: center;
    }

    .event-item {
        padding: 10px;
    }

    .event-item img {
        max-height: 200px;
    }

    .event-item h3 {
        font-size: 1.2rem;
    }

    .event-item p {
        font-size: 0.9rem;
    }

    .date-nav button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Search Results */
.search-results {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.search-results h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #dd3333;
    outline-offset: 2px;
}