/**
 * Events widget & listing styles (Hyvä / Swiper).
 * Source of truth for Tailwind: web/tailwind/theme/events.css
 * Rebuild theme CSS: cd web/tailwind && npm install && npm run build
 */

.home-upcoming-events {
    padding-top: 50px;
}

.events-widget-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.home-upcoming-events .events-widget-slider .swiper-wrapper {
    display: flex;
}

.home-upcoming-events .events-widget-slider {
    padding-bottom: 50px;
}

.home-upcoming-events .events-widget-slider .swiper-pagination {
    bottom: 0;
}

.home-upcoming-events .events-widget__item {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding-bottom: 25px;
    transition: transform 80ms;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.home-upcoming-events .events-widget-slider .swiper-slide {
    display: flex;
    padding: 0 10px;
    height: auto;
}

.home-upcoming-events .events-widget__item:hover {
    transform: matrix(0.99, 0, 0, 0.99, 0, 0);
}

.home-upcoming-events .events-widget__event-title h3 {
    margin: 0;
    padding: 15px;
    padding-bottom: 10px;
}

.home-upcoming-events .event-card__address {
    padding: 0 0 15px;
    flex-grow: 1;
}

.home-upcoming-events .events-widget__location {
    text-transform: uppercase;
}

.home-upcoming-events .events-widget__date {
    padding: 0 15px;
    font-weight: bold;
}

.home-upcoming-events .events-widget__grid .events-widget__cta {
    background: #1e2a4f;
    border: 1px solid #1e2a4f;
    border-radius: 35px;
    color: #fff;
    padding: 8px 15px;
    display: inline-block;
    line-height: normal;
    margin: 0 15px;
    text-decoration: none;
}

.home-upcoming-events .events-widget__grid .events-widget__cta:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    text-decoration: none;
}

.home-upcoming-events .events-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.home-upcoming-events .events-widget__header h2,
.home-upcoming-events .events-widget__title {
    color: #1e2a4f;
    font-size: 3rem;
    margin: auto;
}

.home-upcoming-events .events-widget__footer .events-widget__view-all {
    border: 1px solid #1e2a4f;
    border-radius: 35px;
    padding: 4px 15px;
    display: inline-block;
    text-decoration: none;
    color: #1e2a4f;
}

.events-widget__footer {
    text-align: center;
}

.events-page__section h2 {
    font-size: 4rem;
    color: #1e2a4f;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: #fff;
    box-shadow: 0 0 10px rgba(231, 176, 176, 0.2);
    padding: 20px;
    text-align: center;
    transition: transform 80ms;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card:hover {
    transform: matrix(0.99, 0, 0, 0.99, 0, 0);
}

.event-card .category-description [data-content-type='row'][data-appearance='contained'] {
    padding-left: 0;
    padding-right: 0;
}

.event-card__location {
    padding: 15px 0;
}

.event-card__location a {
    color: #1e2a4f;
    text-decoration: none;
}

.event-card__location a:hover,
.event-card__location a:visited {
    color: #1e2a4f;
}

.event-card__date {
    font-weight: bold;
}

.event-card__btn {
    background: #1979c3;
    border: 1px solid #1979c3;
    font-weight: 600;
    font-size: 1.8rem;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    text-decoration: none;
}

.event-card__btn:hover,
.event-card__btn:focus,
.event-card__btn:visited {
    background: #006bb4;
    border: 1px solid #006bb4;
    color: #fff;
    text-decoration: none;
}

.event-card__address {
    padding-bottom: 10px;
    flex-grow: 1;
}

.event-card__address p {
    margin-bottom: 4px;
}
