/* =============================================================================
   IIC Events By Category — Shortcode Styles
   Matches the 3-column layout: [date block] [content] [image]
   @author Fudo
   @date   2026-03-17
   ============================================================================= */

/* ── Wrapper ─────────────────────────────────────────────────────────────────── */
.iic-events {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 1px 0; /* collapses margin bleed */
}

/* ── Single Event Card ───────────────────────────────────────────────────────── */
.iic-event {
	display: grid;
	grid-template-columns: 160px 1fr 240px;
	grid-template-areas: "date body image";
	align-items: stretch;
	margin: 0 0 6px;
	min-height: 160px;
}

/* ── Date Block ──────────────────────────────────────────────────────────────── */
.iic-event__date-block {
	grid-area: date;
	background: #1c3557;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	text-align: center;
	line-height: 1;
	gap: 4px;
	height: 160px;
	min-height: 160px;
	max-height: 160px;
	align-self: start;
	overflow: hidden;
	border-radius: 4px;
}

.iic-event__date-month {
	font-size: 24px;
	font-weight: 100;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
}

.iic-event__date-day {
	font-size: 50px;
	font-weight: 600!important;
	line-height: 1;
}

.iic-event__date-year {
	font-size: 16px;
	opacity: 0.7;
	margin-top: 2px;
}

/* ── Body ────────────────────────────────────────────────────────────────────── */
.iic-event__body {
	grid-area: body;
	padding: 10px 30px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.iic-event__title {
	margin: 0 0 4px;
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.2;
	margin-top: 0px !important;
    line-height: 1.2em !important;
}

.iic-event__title a {
	color: #111;
	text-decoration: none;
}

.iic-event__title a:hover {
	text-decoration: underline;
}

.iic-event__meta {
	font-size: 0.9rem;
	font-weight: 600;
	color: #222;
	margin: 0;
}

.iic-event__meta time {
	white-space: nowrap;
}

.iic-event__venue {
	margin: 0;
	font-size: 0.85rem;
}

.iic-event__venue a,
.iic-event__venue {
	color: #1a5fa8;
	text-decoration: none;
}

.iic-event__venue a:hover {
	text-decoration: underline;
}

.iic-event__excerpt {
	font-size: 0.875rem;
	color: #333;
	line-height: 1.55;
	margin: 4px 0 0;
}

.iic-event__excerpt p {
	margin: 0;
}

.iic-event__link {
	display: inline;
	font-size: 0.875rem;
	color: #1a5fa8;
	text-decoration: none;
	font-weight: 500;
}

.iic-event__link:hover {
	text-decoration: underline;
}

/* ── Image ───────────────────────────────────────────────────────────────────── */
.iic-event__image-link {
	grid-area: image;
	display: block;
	overflow: hidden;
}

.iic-event__image-link img,
.iic-event__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── No-image fallback: collapse image column ────────────────────────────────── */
.iic-event:not(:has(.iic-event__image-link)) {
	grid-template-columns: 160px 1fr;
	grid-template-areas: "date body";
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.iic-event {
		grid-template-columns: 100px 1fr;
		grid-template-areas:
			"date  body"
			"image image";
	}

	.iic-event__image-link {
		height: 200px;
	}

	.iic-event__date-day {
		font-size: 2.25rem;
	}

	.iic-event__title {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.iic-event {
		grid-template-columns: 1fr;
		grid-template-areas:
			"date"
			"body"
			"image";
	}
	
	.iic-event {
		display: block;
		text-align: center;
	}

	.iic-event__date-block {
		flex-direction: row;
		gap: 12px;
		padding: 14px 20px;
		justify-content: center;
		        width: 160px;
        margin: 0 auto;
        text-align: center;
        display: grid;
	}

	.iic-event__date-day {
		font-size: 1.75rem;
	}

	.iic-event__image-link {
		height: 180px;
	}
}