/**
 * Elementor Event Cards Widget — default look (v1.2).
 * Lato; white card with a thin sand border, image inset with rounded
 * corners, black stacked date badge, tan pin/separator, outlined tag
 * pills, full-width tan pill button. Presets:
 *   .eec-layout-vertical / .eec-layout-horizontal   card style
 *   .eec-theme-white / .eec-theme-tan               body colors
 *   .eec-corners-rounded / .eec-corners-square      radii
 * Everything here is overridable from the widget's Style tab.
 */

.eec-cards {
	--eec-tan: #c4b58f;
	--eec-ink: #2b2b2b;
	--eec-gray: #8a8a8a;
	--eec-line: #e1dccd;
	--eec-radius: 4px;
	--eec-radius-img: 3px;
	--eec-radius-pill: 999px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 30px;
	align-items: start;
	font-family: 'Lato', sans-serif;
}
.eec-cards--equal { align-items: stretch; }
.eec-corners-square .eec-cards { --eec-radius: 0; --eec-radius-img: 0; --eec-radius-pill: 0; }

@media (max-width: 1024px) {
	.eec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.eec-cards { grid-template-columns: minmax(0, 1fr); }
}

.eec-cards__item {
	display: flex;
	min-width: 0;
}

/* ---------------------------------------------------------------- Card */
.eec-cards .eec-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 16px;
	background-color: #ffffff;
	border: 1px solid var(--eec-line);
	border-radius: var(--eec-radius);
	color: var(--eec-ink);
	text-decoration: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.eec-cards a.eec-card,
.eec-cards a.eec-card:hover { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- Media */
.eec-cards .eec-card__media {
	position: relative;
	display: block;
	margin: 0;
	line-height: 0;
	overflow: hidden;
	border-radius: var(--eec-radius-img);
}
.eec-cards .eec-card__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center center;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: transform 0.4s ease;
}

/* Date badge */
.eec-cards .eec-card__badge {
	--eec-badge-offset: 14px;
	position: absolute;
	z-index: 2;
	display: inline-block;
	box-sizing: border-box;
	min-width: 78px;
	padding: 10px 12px;
	font-family: 'Lato', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
	background-color: #000000;
	border-radius: 0;
}
.eec-cards .eec-card__badge b {
	display: block;
	font-size: 26px;
	font-weight: 300;
	letter-spacing: 0;
}
.eec-badge-top-right    .eec-card__badge { top: var(--eec-badge-offset); right: var(--eec-badge-offset); }
.eec-badge-top-left     .eec-card__badge { top: var(--eec-badge-offset); left: var(--eec-badge-offset); }
.eec-badge-bottom-right .eec-card__badge { bottom: var(--eec-badge-offset); right: var(--eec-badge-offset); }
.eec-badge-bottom-left  .eec-card__badge { bottom: var(--eec-badge-offset); left: var(--eec-badge-offset); }

/* ---------------------------------------------------------------- Body */
.eec-cards .eec-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	padding: 20px 8px 6px;
	text-align: left;
	background-color: transparent;
}

.eec-cards .eec-card__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: 'Lato', sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--eec-ink);
	transition: color 0.25s ease;
}

.eec-cards .eec-card__date {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--eec-gray);
}

.eec-cards .eec-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--eec-gray);
}
.eec-cards .eec-card__pin { flex: 0 0 auto; font-size: 1em; color: var(--eec-tan); }
.eec-cards .eec-card__where { min-width: 0; }
.eec-cards .eec-card__sep { margin: 0 0.45em; color: var(--eec-tan); }
.eec-cards .eec-card__venue { text-transform: uppercase; letter-spacing: 0.08em; color: var(--eec-ink); }

.eec-cards .eec-card__text {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	color: #555555;
}
.eec-cards .eec-card__text p { margin: 0 0 1em; font: inherit; color: inherit; }
.eec-cards .eec-card__text p:last-child { margin-bottom: 0; }

/* Tags */
.eec-cards .eec-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}
.eec-cards .eec-card__tag {
	display: inline-block;
	padding: 5px 13px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.06em;
	color: var(--eec-ink);
	background-color: #ffffff;
	border: 1px solid var(--eec-tan);
	border-radius: var(--eec-radius-pill);
}

/* Button */
.eec-cards .eec-card__footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin-top: auto;
	padding-top: 0;
}
.eec-cards .eec-card__button {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	padding: 14px 20px;
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	color: #ffffff;
	background-color: var(--eec-tan);
	border: 1px solid var(--eec-tan);
	border-radius: var(--eec-radius-pill);
	box-shadow: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.eec-cards .eec-card__button:hover,
.eec-cards .eec-card__button:focus,
.eec-cards .eec-card--linked:hover .eec-card__button {
	color: #ffffff;
	background-color: #000000;
	border-color: #000000;
	text-decoration: none;
}

/* ---------------------------------------------------- Horizontal style */
.eec-layout-horizontal .eec-cards .eec-card {
	flex-direction: row;
	align-items: stretch;
	gap: 28px;
}
.eec-layout-horizontal .eec-cards .eec-card__media {
	flex: 0 0 40%;
	width: 40%;
	min-width: 0;
}
.eec-layout-horizontal .eec-cards .eec-card__img {
	height: 100%;
	min-height: 260px;
	aspect-ratio: auto;
}
.eec-layout-horizontal .eec-cards .eec-card__body {
	justify-content: center;
	padding: 8px 8px 8px 0;
}
.eec-layout-horizontal .eec-cards .eec-card__title { font-size: 30px; }
@media (max-width: 767px) {
	.eec-layout-horizontal .eec-cards .eec-card { flex-direction: column; gap: 0; }
	.eec-layout-horizontal .eec-cards .eec-card__media { flex-basis: auto; width: 100%; }
	.eec-layout-horizontal .eec-cards .eec-card__img { aspect-ratio: 4 / 3; min-height: 0; }
	.eec-layout-horizontal .eec-cards .eec-card__body { padding: 20px 8px 6px; }
	.eec-layout-horizontal .eec-cards .eec-card__title { font-size: 26px; }
}

/* --------------------------------------------------------- Tan theme */
.eec-theme-tan .eec-cards .eec-card { background-color: var(--eec-tan); border-color: var(--eec-tan); color: #ffffff; }
.eec-theme-tan .eec-cards .eec-card__title,
.eec-theme-tan .eec-cards .eec-card__date,
.eec-theme-tan .eec-cards .eec-card__location,
.eec-theme-tan .eec-cards .eec-card__venue,
.eec-theme-tan .eec-cards .eec-card__pin,
.eec-theme-tan .eec-cards .eec-card__sep,
.eec-theme-tan .eec-cards .eec-card__text { color: #ffffff; }
.eec-theme-tan .eec-cards .eec-card__tag { color: #ffffff; background-color: transparent; border-color: rgba(255, 255, 255, 0.7); }
.eec-theme-tan .eec-cards .eec-card__button { color: #000000; background-color: #ffffff; border-color: #000000; }
.eec-theme-tan .eec-cards .eec-card__button:hover,
.eec-theme-tan .eec-cards .eec-card__button:focus,
.eec-theme-tan .eec-cards .eec-card--linked:hover .eec-card__button { color: #ffffff; background-color: #000000; border-color: #000000; }
