/* =========================================================
   PUBLIC LIBRARY WORKSHOPS PAGE
========================================================= */

.workshops-page {
	background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
	overflow-x: hidden;
}

.workshops-page .wp-block-group.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ---------- Hero ---------- */

.workshops-hero-section {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 80px 24px;
	min-height: 460px;
	background-image: url('https://readthinkcode.org/wp-content/uploads/2026/04/workshops.webp');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 100% 55%;
	overflow: hidden;
	padding-top: 120px;
	padding-bottom: 60px;
	filter: brightness(0.9) contrast(1.05);
}

.workshops-hero-section.alignfull {
	max-width: none !important;
}

.workshops-hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.28) 0%,
		rgba(0,0,0,0.18) 35%,
		rgba(0,0,0,0.08) 65%,
		rgba(0,0,0,0.00) 100%
	);
	z-index: 1;
}

.workshops-hero-section > .wp-block-group__inner-container {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.workshops-hero-content {
	max-width: 620px;
	background: rgba(0,0,0,0.38); /* slightly darker than before, but not heavy */
	padding: 24px 26px;
	border-radius: 16px;
	backdrop-filter: blur(3px);
}

.workshops-hero-content .benefits-eyebrow,
.workshops-hero-content h1,
.workshops-hero-content p {
	color: #ffffff !important;
	text-shadow: 0px 2px 6px rgba(0,0,0,0.6);
}

.workshops-hero-content .benefits-eyebrow {
	margin-bottom: 8px;
	text-align: left !important;
}

.workshops-hero-content h1 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 42px;
	line-height: 1.15;
	text-align: left;
	text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.workshops-hero-content p {
	font-size: 18px;
	line-height: 1.7;
	text-align: left;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.workshops-location {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
	background: rgba(0,0,0,0.55);
	color: #ffffff;
}

/* ---------- Quote ---------- */

.workshops-quote-section {
	background: #ffffff;
	padding: 36px 24px 28px;
}

.workshops-quote-section .teaching-quote {
	font-size: 26px;
	line-height: 1.5;
	margin-bottom: 8px;
	color: #111827;
}

/* ---------- Workshop Process ---------- */

.workshops-core-section {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 50px 24px;
	box-sizing: border-box;
	background-color: whitesmoke;
}

.workshops-core-section.alignfull {
	max-width: none !important;
}

.workshops-core-inner {
	max-width: 1000px;
	margin: 0 auto !important;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.workshops-core-inner h2 {
	margin-bottom: 20px;
	color: #111827;
}

.workshops-core-inner > .wp-block-group__inner-container > p,
.workshops-core-inner > p {
	max-width: 780px;
	margin: 0 auto 28px;
	font-size: 18px;
	line-height: 1.7;
	color: #475569;
}

/* ---------- Cards ---------- */

.workshops-core-section .teaching-card-row {
	max-width: 1100px;
	margin: 0 auto !important;
	gap: 20px;
}

.workshops-core-section .teaching-card-row > .wp-block-column {
	display: flex;
	overflow: visible !important;
}

.workshops-core-section .teaching-card-row .benefits-card {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 12px 24px rgba(0,0,0,0.35);
	padding: 24px 18px;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: visible;
}

.workshops-core-section .teaching-card-row .benefits-card > .wp-block-group__inner-container {
	background: transparent !important;
	box-shadow: none !important;
}

.workshops-core-section .benefits-card h4 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 20px;
	line-height: 1.3;
	color: #111827;
}

.workshops-core-section .benefits-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: #475569;
}

/* ---------- Featured Workshop ---------- */

.workshops-featured-section {
	padding: 50px 24px;
	background: #ffffff;
	margin-bottom: 0 !important;
	padding-bottom: 30px !important;
}

.workshops-featured-section.alignfull {
	max-width: none !important;
}

.workshops-featured-section > .wp-block-group__inner-container {
	max-width: 1100px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.workshops-featured-section .wp-block-columns {
	max-width: 1100px;
	margin: 0 auto !important;
	gap: 36px;
}

.workshops-featured-section .wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* ---------- Workshop Week Divider ---------- */

.workshop-week {
	margin: 18px 0;
	padding: 14px 16px;
	border-left: 3px solid #60a5fa;
    background: #f8fbff;
	border-radius: 10px;
	
}

.workshop-week-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #3b82f6;
	margin: 0 0 6px;
}

.workshop-week p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #475569;
}

.workshops-featured-image img,
.workshops-featured-section .wp-block-image img {
	display: block;
	width: 100%;
	max-width: 430px;
	height: auto;
	margin: 0 auto;
	border-radius: 18px;
	box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.workshops-featured-eyebrow {
	display: inline-block;
	width: fit-content;
	margin: 0 0 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #111827;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.workshops-featured-section h2.wp-block-heading {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 36px;
	line-height: 1.15;
	color: #111827;
}

.workshops-featured-section p {
	font-size: 17px;
	line-height: 1.7;;
}

.workshops-featured-meta {
	display: inline-block;
	width: fit-content;
	margin-top: 6px;
	margin-bottom: 18px;
	padding: 8px 12px;
	border-radius: 20px;
	background: #eef6ff;
	color: #334155 !important;
	font-size: 14px !important;
}

/* ---------- CTA ---------- */

.workshops-cta-section {
	padding: 50px 24px;
	background:
		linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px),
		linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
	background-size: 40px 40px, 40px 40px, auto;
}

.workshops-cta-section.alignfull {
	max-width: none !important;
}

.workshops-cta-section h2 {
	margin-bottom: 16px;
	color: #111827;
}

.workshops-cta-section p {
	max-width: 700px;
	margin: 0 auto 20px;
	font-size: 18px;
	line-height: 1.7;
	color: #475569;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.workshops-featured-section .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr !important;
		align-items: start;
	}

	.workshops-featured-section .wp-block-column {
		width: 100% !important;
		max-width: 100% !important;
		flex-basis: auto !important;
	}

	.workshops-featured-image {
		margin: 0 0 24px 0 !important;
	}

	.workshops-featured-section .wp-block-column {
		padding: 0 !important;
	}
}

@media (max-width: 781px) {
	.workshops-hero-section {
		padding: 80px 20px 50px;
		min-height: 380px;
		background-position: 75% center;
	}

	.workshops-hero-content {
		padding: 22px 20px;
	}

	.workshops-hero-content h1 {
		font-size: 34px;
	}

	.workshops-hero-content p {
		font-size: 17px;
	}

	.workshops-quote-section .teaching-quote {
		font-size: 22px;
	}

	.workshops-core-section,
	.workshops-featured-section,
	.workshops-cta-section {
		padding-left: 20px;
		padding-right: 20px;
	}

	.workshops-featured-section h2.wp-block-heading {
		font-size: 30px;
	}
}