/* Calendar Grid Layout */
.events-calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    
    min-height: 200px;
}

.calendar-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    
}

.calendar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.calendar-item:hover img {
    filter: grayscale(0);
}

.calendar-item .event-date {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    z-index: 2;
}

.calendar-item .event-details {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
    padding: 0;
    background: transparent;
}

.event-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.event-venue {
    color: #ffffff;
    font-size: 0.9em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.event-title {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
}

.event-time {
    color: #ffffff;
    font-size: 0.9em;
    display: block;
    margin-bottom: 15px;
    opacity: 0.9;
}

.calendar-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.calendar-item:hover::after {
    opacity: 0.3;
}

/* No events message */
.no-events-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-events-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.no-events-message h3 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-events-message p {
    color: #4a5568;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Grid Layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.grid-item {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid-item-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item .event-date {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: #7fb432;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
}

.grid-item-details {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .events-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-calendar-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-item {
        aspect-ratio: 1;
    }
    
    .grid-item {
        margin-bottom: 30px;
    }
}