/* ==========================================================================
   Trigg Island SLSC — Education section
   Loaded only on pages using the "Education" template, on top of the shared
   .vh design system in venue-hire.css. All rules are scoped to .edu.
   ========================================================================== */

.edu { --edu-accent: var(--vh-navy); }
.edu .edu--entry { --edu-accent: #d3233a; --edu-tint: #fbe9ec; }
.edu .edu--powercraft { --edu-accent: #2a6f8f; --edu-tint: #e3f0f5; }
.edu .edu--emergency { --edu-accent: #00a94e; --edu-tint: #e2f5ea; }
.edu .edu--other { --edu-accent: #b8892b; --edu-tint: #f6eedc; }

/* ---------- Icons (Image block with class edu-icon) ---------- */

.edu .edu-icon {
	margin: 0 0 1.2rem;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--edu-tint, var(--vh-sand));
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.edu .edu-icon img { width: 40px !important; height: 40px !important; display: block; }
.edu .edu-icon--lg { width: 88px; height: 88px; background: var(--edu-accent); }
.edu .edu-icon--lg img { width: 50px !important; height: 50px !important; filter: brightness(0) invert(1); }

/* ---------- Category tiles (Columns block with class edu-cats) ---------- */

.edu .edu-cats { gap: 24px; margin: 0; }
.edu .edu-cat {
	background: #fff;
	border-top: 4px solid var(--edu-accent);
	padding: 32px 28px 30px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 0 var(--vh-line);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.edu .edu-cat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(19, 40, 62, 0.35); }
.edu .edu-cat h3 { margin-bottom: 0.4em; }
.edu .edu-cat > p { font-size: 0.93rem; color: var(--vh-muted); }
.edu .edu-cat > .vh-link-arrow { margin-top: auto; padding-top: 1.2rem; margin-bottom: 0; }
.edu .edu-cat__list { list-style: none; margin: 0.4rem 0 0; padding: 0; border-top: 1px solid var(--vh-line); }
.edu .edu-cat__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--vh-line);
	font-size: 0.9rem;
	line-height: 1.35;
}
.edu .edu-cat__list a { color: var(--vh-ink); text-decoration: none; }
.edu .edu-cat__list a:hover { color: var(--edu-accent); }
.edu .edu-cat__list em { font-style: normal; font-size: 0.78rem; color: var(--vh-muted); white-space: nowrap; }
@media (min-width: 782px) and (max-width: 1100px) {
	.edu .edu-cats { flex-wrap: wrap !important; }
	.edu .edu-cats > .wp-block-column { flex: 1 1 calc(50% - 12px) !important; }
}

/* ---------- Award cards (Group with class edu-awards holding edu-award groups) ---------- */

.edu .edu-awards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}
.edu .edu-awards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .edu .edu-awards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) { .edu .edu-awards, .edu .edu-awards--3 { grid-template-columns: 1fr; gap: 20px; } }

.edu .edu-award {
	background: #fff;
	border: 1px solid var(--vh-line);
	border-top: 4px solid var(--edu-accent);
	padding: 32px 30px 30px;
	display: flex;
	flex-direction: column;
	scroll-margin-top: 90px;
}
.edu .vh-section--sand .edu-award { border-color: transparent; border-top-color: var(--edu-accent); }
.edu .edu-award:target { box-shadow: 0 0 0 3px var(--edu-accent); }
.edu .edu-award h3 { margin-bottom: 0.25em; }
.edu .edu-award .vh-meta {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--edu-accent);
	margin-bottom: 0.5rem;
}
.edu .edu-award > p { font-size: 0.95rem; }
.edu .edu-award .vh-label { color: var(--vh-navy); margin-top: 1.1rem; }
.edu .edu-award .vh-ticks { margin-bottom: 0.6rem; }
.edu .edu-award .vh-ticks li { font-size: 0.9rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.edu .edu-award .vh-ticks li::before { top: 0.85rem; border-color: var(--edu-accent); }
.edu .edu-award .edu-qualifies { font-size: 0.93rem; color: var(--vh-ink); }
.edu .edu-award > .vh-link-arrow { margin-top: auto; padding-top: 1.2rem; margin-bottom: 0; }

/* Key facts strip (List block with class edu-facts) */
.edu .edu-facts {
	list-style: none;
	margin: 1.2rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 0.7fr 1.6fr 0.8fr;
	background: var(--edu-tint, var(--vh-sand));
}
.edu .edu-facts li { padding: 12px 14px; font-size: 0.85rem; line-height: 1.35; color: var(--vh-ink); }
.edu .edu-facts li + li { border-left: 1px solid rgba(255, 255, 255, 0.9); }
.edu .edu-facts li strong {
	display: block;
	font-family: var(--vh-sans);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vh-muted);
	margin-bottom: 4px;
}
@media (max-width: 480px) {
	.edu .edu-facts { grid-template-columns: 1fr 1fr; }
	.edu .edu-facts li:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.9); }
}

/* ---------- Category intro (Columns with class edu-intro) ---------- */

.edu .edu-intro { gap: clamp(32px, 6vw, 88px); align-items: center !important; margin: 0; }
.edu .edu-intro figure.vh-media { margin: 0; }

/* ---------- Two-up info panels (Columns with class edu-panels) ---------- */

.edu .edu-panels { gap: 28px; margin: 0; }
.edu .edu-panel { background: #fff; padding: clamp(28px, 4vw, 44px); border-left: 4px solid var(--vh-sea); }
.edu .vh-section--sand .edu-panel { background: #fff; }
.edu .edu-panel h3 { margin-bottom: 0.5em; }
.edu .edu-panel p { font-size: 0.95rem; }
.edu .edu-panel .vh-link-arrow { margin-bottom: 0; }

/* ---------- Honour roll ---------- */

.edu .edu-honour table { min-width: 0; }
.edu .edu-honour td:first-child { font-size: 1rem; }
.edu .edu-honour-cols { gap: 28px; }

/* ---------- Note ---------- */

.edu .edu-note { font-size: 0.88rem; color: var(--vh-muted); max-width: 70ch; margin-top: 2rem; }

@media (max-width: 781px) {
	.edu .edu-cats,
	.edu .edu-intro,
	.edu .edu-panels { flex-direction: column; }
	.edu .edu-intro--reverse { flex-direction: column-reverse; }
}
@media (min-width: 782px) {
	.edu .edu-intro--reverse { flex-direction: row-reverse; }
}

/* Classic themes wrap group content in an inner container: let grid/flex reach the children. */
.edu .edu-awards > .wp-block-group__inner-container,
.edu .edu-award > .wp-block-group__inner-container { display: contents; }

/* Category banners: a little taller, and framed slightly above centre so faces aren't cropped. */
.edu .vh-hero--short { min-height: min(66vh, 620px); }
.edu .vh-hero .wp-block-cover__image-background { object-position: 50% 30%; }

/* Intro photo cropped toward the right of a wide image (e.g. RWC rescue). */
.edu .edu-media--right img { object-position: 72% 50%; }
