/* Frontend styles */
.marathon-events {
    margin: 2em 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}


/* Event Card Styles */
.event-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-thumbnail {
    height: 180px;
    overflow: hidden;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
}

.event-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.event-title a {
    color: #222;
    text-decoration: none;
}

.event-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.event-meta > div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.event-meta .dashicons {
    margin-right: 5px;
    color: #0073aa;
}

.event-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
}

.event-link, .event-register {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.event-link {
    background: #f5f5f5;
    color: #333;
}

.event-register {
    background: #0073aa;
    color: white;
    margin-left: 10px;
}

.event-link:hover {
    background: #e0e0e0;
}

.event-register:hover {
    background: #005d8c;
}


/* Status badges */
.event-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.event-status.upcoming {
    background: #e6f7e6;
    color: #1a531b;
}

.event-status.past {
    background: #f0f0f0;
    color: #555;
}

/* Packages table */
.event-packages-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.event-packages-table th {
    text-align: left;
    background: #f5f5f5;
    padding: 10px;
}

.event-packages-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.event-packages-table tr:nth-child(even) {
    background: #f9f9f9;
}

