.events-grid {
    display: grid;
    /* The grid-template-columns property is now handled dynamically via Elementor selectors */
    gap: 24px;
}

.event-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFC750;
    color: #003859;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tag {
    position: absolute;
    right: 18px;
    top: 18px;
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(16, 23, 19, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.event-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #003859;
    font-weight: 700;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #5a6c7d;
    margin-bottom: 20px;
}

.event-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003859;
}

.btn {
    display: inline-block;
    background: #003859;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #FFC750;
    color: #003859;
}
