/* EVENTS SPECIFIC STYLES */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.event-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}
[data-theme="light"] .event-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.coming-soon {
    background-image: url(/img/projects/Events_Preview_01.png);
    width: auto;
    height: 450px; /* Fixed height for media consistency */
    background-color: var(--color-primary); /* Placeholder color */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-header);
    font-size: 1.5em;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--color-primary);
}

.event-image-placeholder {
    width: 100%;
    height: 200px; /* Fixed height for image consistency */
    background-color: var(--color-primary); /* Placeholder color */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-header);
    font-size: 1.2em;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden; /* Ensure text doesn't overflow */
}
.event-image-placeholder span {
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.event-title {
    font-family: var(--font-family-header);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.event-meta {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 15px;
}

.event-description {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Responsive Design - Consistent with Société il Noir homepage */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px;
    }
    .event-card {
        min-height: auto; /* Allow height to adjust */
    }
}

/* Landscape/Portrait adaptation (subtle changes) - Consistent with Société il Noir homepage */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Adjustments for very narrow landscape views (e.g., small phones held sideways) */
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .event-card {
        min-height: 300px; /* Adjust height for smaller landscape items */
    }
    .event-image-placeholder {
        height: 150px;
    }
    .container { padding: 10px; }
    /* Adjust nav links for very narrow landscape */
    .header-nav {
        flex-direction: row; /* Keep horizontal in landscape */
        gap: 15px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media screen and (orientation: portrait) and (max-width: 500px) {
    /* Specific adjustments for smaller portrait views */
    .events-grid {
        gap: 20px;
    }
    .event-card {
        padding: 15px;
    }
}
