/* 例: events.css */

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

/* イベントグリッドの設定 */
.event-grid {
    display: grid;
    /* 2列または3列で均等に並べるのが一般的 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 30px;
}

/* イベントカードのスタイル */
.event-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}
.event-card a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 🔴 画像コンテナの必須設定 */
.event-image {
    height: 180px; /* 高さを指定 */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* テキストエリア */
.event-text {
    padding: 15px;
}
.event-text h3 {
    font-size: 18px;
    margin: 10px 0;
}
.date-info, .location-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

/* ステータス表示のスタイル */
.status {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    color: white;
}
.status.upcoming {
    background-color: #007bff; /* 青色（開催予定） */
}
.status.past {
    background-color: #888; /* 灰色（終了） */
}