/* =========================================================
   Custom Events List — front-end styles
   All classes are prefixed "cde-" so they do not collide
   with theme or other plugin styles.
   ========================================================= */

.cde-events-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 100%;
	margin: 0 0 32px 0;
}

.cde-no-events {
	font-size: 16px;
	color: #555;
}

/* ---- Card ---- */

.cde-event-card {
	display: flex;
	align-items: stretch;
	gap: 24px;
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ---- Image column (left, uniform/average width for every event; height
   automatically matches the details column on the right — no distortion,
   cropped to fit). ---- */

.cde-event-image-col {
	flex: 0 0 260px;
	max-width: 260px;
	display: block;
}

.cde-event-image-link {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
}

.cde-event-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

/* ---- Details column (right, content starts at the top) ---- */

.cde-event-details-col {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 20px 24px 20px 0;
	gap: 12px;
}

.cde-event-details-col.cde-no-image {
	padding-left: 24px;
}

/* ---- Title ---- */

.cde-event-title {
	display: block;
	text-decoration: none;
	margin: 0 0 4px 0;

	color: var(--tec-color-text-primary, #141827);
	font-size: var(--tec-font-size-2, 24px);
	font-weight: var(--tec-font-weight-bold, 700);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.cde-event-title:hover,
.cde-event-title:focus {
	text-decoration: underline;
}

/* ---- Meta rows (Time & Date / Organizer / Venue / Phone / Publish date) ---- */

.cde-event-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cde-event-row {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #333333;
}

.cde-event-label {
	font-weight: 700;
	color: #141827;
	margin-right: 4px;
}

.cde-event-value {
	font-weight: 400;
}

.cde-event-row a {
	color: inherit;
	text-decoration: none;
}

.cde-event-row a:hover,
.cde-event-row a:focus {
	text-decoration: underline;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
	.cde-event-card {
		flex-direction: column;
	}

	.cde-event-image-col {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.cde-event-image-link {
		height: 200px;
		max-width: 400px;
		margin: 0 auto;
	}

	.cde-event-details-col,
	.cde-event-details-col.cde-no-image {
		padding: 16px 20px 20px 20px;
	}
}

@media (max-width: 480px) {
	.cde-event-title {
		font-size: 20px;
	}

	.cde-event-row {
		font-size: 14px;
	}
}
