.events-section {
    padding: 2rem;
    font-family: 'Arial', sans-serif;
}

.events-title {
    color: #FF4B55;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.event-card {
    background: white;
    width: 294px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image img.placeholder-image {
    object-fit: contain;
    padding: 1rem;
    background: #f5f5f5;
}

.play-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(76, 175, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: rgba(36, 94, 38, 0.9);
}

.play-icon {
    color: white;
    font-size: 1.2rem;
}

.event-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
    flex-grow: 1
}

.event-location, .event-organizer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.location-icon img, .organizer-icon img {
    width: 1rem;
}

.booking-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.booking-button:hover {
    background-color: #45a049;
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Pagination Styles */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
    margin-bottom: 3rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.pagination-link:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.pagination-link.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    cursor: default;
}

.pagination-info {
    margin-left: 1rem;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-info {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.error-message {
    color: #dc3545;
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 1rem;
}
