/* =============================================================
   WPA Event Feed — Card Styles
   Relies on root vars: --teal-dark, --yellow, --navy,
                        --cyan, --cyan-light, --grey-light
   ============================================================= */

/* ── ALM listing grid ──────────────────────────────────────── */
/* ALM wraps items in .alm-listing — we target it directly */
.alm-listing.wpa-events-alm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4em;
    align-items: stretch;
}

.alm-listing.wpa-events-alm article {
    align-self: start;
}

.alm-listing.wpa-events-alm::after {
    display: none;
}



/* Featured card spans both columns */
@media (min-width: 701px) {
    .wpa-events-alm .alm-listing .wpa-event-card--featured {
        grid-column: span 2;
    }
}

.wpa-events-alm .alm-listing article {
    align-self: start;
}

/* ── Card base ─────────────────────────────────────────────── */
.wpa-event-card {
    background: var(--navy);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.wpa-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 43, 92, 0.3);
}

.wpa-event-card--live {
    outline: 2px solid var(--cyan);
}

/* ── Thumbnail ─────────────────────────────────────────────── */
.wpa-event-card__image {
    height: 300px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.wpa-event-card--featured .wpa-event-card__image {
    height: 260px;
}

/* ── Event type badge ──────────────────────────────────────── */
.wpa-event-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--yellow);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
    line-height: 1.5;
    z-index: 2;
}

/* ── Live flag ─────────────────────────────────────────────── */
.wpa-event-card__live-flag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--cyan);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
    line-height: 1.5;
    z-index: 2;
    animation: wpa-live-pulse 1.4s ease-in-out infinite;
}

@keyframes wpa-live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ── Card body ─────────────────────────────────────────────── */
.wpa-event-card__body {
    padding: 2em 3em;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
	background-size: 75% !important;
    background-position: bottom right !important;
    background-blend-mode: overlay;
    background-image: url(https://waterpoloaustralia.kinsta.cloud/wp-content/uploads/2026/03/WPA-Partner-bg.svg) !important;
    background: var(--navy);
    background-repeat: no-repeat;
}

/* ── Meta row ──────────────────────────────────────────────── */
.wpa-event-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpa-event-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: normal;
    color: var(--yellow);
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.wpa-event-card__meta-item.location {
	color: #ffffff;
	margin-bottom: 1rem;
}

.wpa-event-card__meta-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Hide time — no dedicated time field yet */
.wpa-event-card__meta-time {
    display: none;
}

/* ── Title ─────────────────────────────────────────────────── */
.wpa-event-card__title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

/* ── Countdown block ───────────────────────────────────────── */
.wpa-event-card__countdown {
    border-radius: 6px;
    padding: 0 0 16px;
    margin-top: 2px;
	width: fit-content;
}

.wpa-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.wpa-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background: #ffffff;
    border-radius: 6px;
    padding: 1em;
}

.wpa-countdown__value {
    font-family: din-2014, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
    display: block;
    transition: opacity 0.08s ease;
}

.wpa-countdown__value.is-ticking {
    opacity: 0.25;
}

.wpa-countdown__label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-top: 8px;
    line-height: 0;
}

/* Live state — replaces countdown units */
.wpa-event-card__live-countdown {
    background: var(--cyan);
    color: var(--navy);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 2px;
}

/* ── CTA button ────────────────────────────────────────────── */
.wpa-event-card .et_pb_button {
	background: var(--cyan-light);
	color: var(--navy) !important;
    width: fit-content;
	margin-top: auto;
}

.wpa-event-card__cta:hover {
    background: var(--teal-dark);
    color: #fff;
    gap: 12px;
}

/* ── ALM Load More button ──────────────────────────────────── */
.wpa-events-alm .alm-btn-wrap {
    display: none;
}


@media (max-width: 980px) {
    .wpa-events-alm .alm-listing {
        grid-template-columns: 1fr;
		gap: 2em;
    }
}

@media (max-width: 767px) {
	body .wpa-event-card__meta-item {
		font-size: 1em;
	}
	body .wpa-event-card__body {
		padding: 2em;
	}
    body .wpa-event-card__countdown {
        padding: 10px 8px;
    }
    body .wpa-countdown {
        gap: 0;
		width: auto;
    }
    body .wpa-countdown__unit {
        min-width: unset;
        flex: 1;
    }
    body .wpa-countdown__value {
        font-size: 1.3rem;
    }
    body .wpa-countdown__sep {
        font-size: 1.1rem;
        padding-bottom: 10px;
        flex-shrink: 0;
        width: 12px;
        text-align: center;
    }
    body .wpa-countdown__label {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }
	.wpa-event-card .et_pb_button {
		margin-left: auto;
		margin-right: auto;
	}
}