/* Joy in the City — Events/News page middle section */

:root {
	--jitc-events-green: #1b3d2f;
	--jitc-events-navy: #1d354d;
	--jitc-events-joy-red: #c94a3d;
	--jitc-max-width: 1280px;
}

.jitc-news-events-page {
	width: 100%;
}

.jitc-container {
	width: 100%;
	max-width: var(--jitc-max-width);
	margin: 0 auto;
	padding: 0 32px;
}

/* Hero */

.jitc-news-events-hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	height: 440px;
	min-height: 440px;
	overflow: hidden;
}

.jitc-news-events-hero__background {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.jitc-news-events-hero__background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.jitc-news-events-hero__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 440px;
	padding: 24px;
}

.jitc-news-events-hero__title {
	margin: 0;
	color: var(--jitc-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.5rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}

/* Events banner — navy panel with cream frame */

.jitc-events-banner {
	padding: 40px 48px;
	background-color: var(--jitc-page-bg);
}

.jitc-events-banner__panel {
	margin: 0 auto;
	padding: 56px 48px 52px;
	background-color: var(--jitc-events-navy);
	text-align: center;
}

.jitc-events-banner__heading {
	margin: 0 0 36px;
	color: var(--jitc-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.jitc-events-banner__tagline {
	display: inline-block;
	max-width: min(900px, 72%);
	margin: 0 auto;
	padding: 22px 40px;
	background-color: var(--jitc-white);
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.65;
	text-align: center;
}

.jitc-events-banner__tagline p {
	margin: 0;
}

.jitc-events-banner__tagline strong {
	font-weight: 700;
	color: var(--jitc-text);
}

.jitc-events-banner__joy {
	color: var(--jitc-events-joy-red);
}

/* Event cards — shell + utility classes for your shortcode */

.jitc-events-list {
	padding: 48px 0 64px;
	background-color: var(--jitc-page-bg);
}

.jitc-events-list .jitc-container {
	max-width: 1280px;
}

.jitc-events-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: stretch;
}

.jitc-events-cards__slot {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
	padding: 12px 6px;
	background-color: var(--jitc-events-navy);
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.55);
	font-family: var(--jitc-sans);
	font-size: 0.9375rem;
}

.jitc-events-cards__slot > * {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.jitc-events-cards__slot .jitc-event-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	max-width: 100%;
	background: var(--jitc-white);
	border: none;
	border-radius: 6px;
	overflow: hidden;
	box-sizing: border-box;
}

.jitc-event-card {
	background: var(--jitc-white);
	border: 4px solid var(--jitc-events-green);
	overflow: hidden;
}

.jitc-event-card__media {
	width: 100%;
	aspect-ratio: 16 / 10;
	height: auto;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	background-color: #e8e4dc;
}

.jitc-event-card__image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center center;
}

.jitc-event-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 28px 32px 32px;
	text-align: left;
}

.jitc-event-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	margin-bottom: 16px;
}

.jitc-event-card__title {
	margin: 0;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.jitc-event-card__label {
	flex-shrink: 0;
	margin: 4px 0 0;
	color: var(--jitc-text-muted);
	font-family: var(--jitc-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.jitc-event-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.jitc-event-card__meta-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 0.875rem;
	line-height: 1.5;
}

.jitc-event-card__meta-row span {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.jitc-event-card__meta-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	opacity: 0.7;
}

.jitc-event-card__text {
	flex: 1;
	margin: 0 0 24px;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 0.9375rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.jitc-event-card__btn {
	display: block;
	width: 100%;
	padding: 14px 24px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(180deg, #2a5a6a 0%, var(--jitc-events-green) 100%);
	color: var(--jitc-white);
	font-family: var(--jitc-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.jitc-event-card__btn:hover {
	opacity: 0.9;
	color: var(--jitc-white);
}

.jitc-event-card__btn,
.jitc-event-card__btn--disabled {
	margin-top: auto;
}

.jitc-event-card__btn--disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.jitc-event-card__btn--disabled:hover {
	opacity: 0.6;
}

.jitc-event-card-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--jitc-white);
}

/* Single event (jitc_event post type) */

.jitc-single-wrap {
	max-width: 900px;
	margin: 40px auto;
	padding: 26px;
	background: var(--jitc-white);
	border: 1px solid #e7e7e7;
	border-radius: 18px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.jitc-single-badge {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 12px;
}

.jitc-type-event {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	color: #1e3a8a;
}

.jitc-type-workshop {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.jitc-single-title {
	font-size: 38px;
	line-height: 1.15;
	margin: 6px 0 10px;
}

.jitc-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 14px;
	color: #374151;
	margin: 10px 0 18px;
}

.jitc-single-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	text-decoration: none !important;
	border-radius: 30px;
	font-weight: 600;
	font-size: 17px;
	color: var(--jitc-white);
	background: linear-gradient(135deg, #1e3a8a 0%, #115e59 100%);
	transition: all 0.3s ease;
	letter-spacing: 0.3px;
	box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
	border: none;
	line-height: 1;
	text-align: center;
}

.jitc-single-btn:hover {
	background: linear-gradient(135deg, #1e40af 0%, #0f5f54 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35);
	color: var(--jitc-white);
	text-decoration: none !important;
}

.jitc-single-btn-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

.jitc-single-btn-disabled:hover {
	transform: none;
	box-shadow: none;
}

.jitc-single-thumb {
	width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
	object-fit: cover;
}

.jitc-single-image {
	margin: 18px 0 20px;
	overflow: hidden;
	border-radius: 16px;
	line-height: 0;
}

.jitc-single-content {
	font-size: 16px;
	line-height: 1.75;
	color: #111827;
}

/* Joy in the News */

.jitc-news-press {
	padding: 64px 0 96px;
	background-color: var(--jitc-page-bg);
}

.jitc-news-press .jitc-container {
	max-width: 1280px;
}

.jitc-news-press__heading {
	margin: 0 0 40px;
	color: var(--jitc-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.jitc-news-press__intro {
	margin: -24px 0 40px;
	color: var(--jitc-text-muted);
	font-family: var(--jitc-sans);
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
}

.jitc-news-press__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: stretch;
}

.jitc-news-press__card {
	position: relative;
	display: block;
	min-height: 280px;
	overflow: hidden;
	border-radius: 4px;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jitc-news-press__card:hover {
	opacity: 0.92;
	transform: translateY(-2px);
}

.jitc-news-press__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	object-position: center top;
}

.jitc-news-press__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(42, 120, 140, 0.35);
	pointer-events: none;
}

.jitc-news-press__label {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: var(--jitc-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	pointer-events: none;
}

/* Responsive */

@media (max-width: 1024px) {
	.jitc-events-cards {
		gap: 32px;
	}

	.jitc-news-press__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.jitc-container {
		padding: 0 24px;
	}

	.jitc-news-events-hero {
		height: auto;
		min-height: 280px;
	}

	.jitc-news-events-hero__overlay {
		min-height: 280px;
	}

	.jitc-events-banner {
		padding: 28px 24px;
	}

	.jitc-events-banner__panel {
		padding: 40px 24px 36px;
	}

	.jitc-events-banner__tagline {
		max-width: 100%;
		padding: 16px 20px;
	}

	.jitc-events-list {
		padding: 40px 0 56px;
	}

	.jitc-events-cards {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.jitc-events-cards__slot {
		padding: 10px 5px;
	}

	.jitc-event-card__media {
		aspect-ratio: 4 / 3;
	}

	.jitc-event-card__body {
		padding: 24px;
	}

	.jitc-news-press {
		padding: 48px 0 64px;
	}

	.jitc-news-press__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.jitc-news-press__card,
	.jitc-news-press__image {
		min-height: 220px;
	}
}
