/**
 * CHF Theme — Components
 * Cards, buttons, tags, badges, stats, modals, toasts, forms
 */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.sbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gold);
	color: var(--g);
	padding: 15px 30px;
	font-weight: 600;
	font-size: 16px;
	border-radius: 3px;
	transition: all 0.25s;
	cursor: pointer;
	border: none;
	font-family: var(--sans);
}

.sbtn::after {
	content: '→';
}

.sbtn:hover {
	background: #FFB300;
	transform: translateY(-1px);
}

.abtn {
	background: var(--g);
	color: var(--white);
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
	cursor: pointer;
	font-family: var(--sans);
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: 1.5rem;
}

.abtn:hover {
	background: var(--gm);
}

.mbtn {
	margin-top: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--g);
	color: var(--white);
	padding: 12px 22px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	border: none;
	font-family: var(--sans);
}

.mbtn:hover {
	background: var(--gm);
}

/* ==========================================================================
   PUBLICATION HUB SIDEBAR
   ========================================================================== */

.pub-hub {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 2rem;
	align-items: start;
}

.pub-filters {
	position: sticky;
	top: 100px;
	background: var(--cream);
	border-radius: 6px;
	padding: 1.25rem;
	border: 1px solid var(--border);
}

.pub-filters-title {
	font-size: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.pub-filter-group {
	margin-bottom: 1rem;
}

.pub-filter-group h4 {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 6px;
}

.pub-filter-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 13px;
	font-family: var(--sans);
	color: var(--text);
	background: var(--white);
	cursor: pointer;
}

.rfwrap-sidebar {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rfwrap-sidebar .rf {
	display: block;
	text-align: left;
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 4px;
}

@media (max-width: 900px) {
	.pub-hub {
		grid-template-columns: 1fr;
	}

	.pub-filters {
		position: static;
	}
}

/* ==========================================================================
   FEATURED PUBLICATIONS GRID
   ========================================================================== */

.featured-pubs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.featured-pubs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.featured-pubs-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   SOCIAL SHARE BAR
   ========================================================================== */

.share-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.share-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin-right: 2px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cream);
	border: 1px solid var(--border);
	color: var(--g);
	cursor: pointer;
	transition: all 0.2s;
	padding: 0;
	font: inherit;
}

.share-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.share-btn:hover {
	background: var(--g);
	color: var(--white);
	border-color: var(--g);
}

/* ==========================================================================
   TAGS & BADGES
   ========================================================================== */

.ptag {
	display: inline-block;
	background: var(--g);
	color: var(--white);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 2px;
	margin-bottom: 10px;
}

.ptag.brief {
	background: var(--gold);
	color: var(--g);
}

.ptag.data {
	background: var(--gm);
}

.ptag.wp {
	background: #607D8B;
}

.sbadge {
	display: inline-block;
	background: var(--gold);
	color: var(--g);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 3px 9px;
	margin-bottom: 8px;
}

/* ==========================================================================
   PUBLICATION CARDS
   ========================================================================== */

.pg {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8rem;
}

.pc {
	background: var(--white);
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--border);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.pc:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(27, 94, 32, 0.12);
}

.pimg {
	width: 100%;
	height: 162px;
	object-fit: cover;
	display: block;
}

.pb {
	padding: 1.4rem;
}

.pb h3 {
	font-family: var(--serif);
	font-size: 1.02rem;
	color: var(--dark);
	line-height: 1.33;
	font-weight: 700;
	margin-bottom: 8px;
}

.pb p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
	margin-bottom: 12px;
}

.pm {
	font-size: 14px;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--border);
	padding-top: 10px;
}

.pdl {
	color: var(--g);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.pdl:hover {
	color: var(--gold2);
}

/* ==========================================================================
   THEMATIC / PROGRAMME CARDS
   ========================================================================== */

.tg {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}

.tc {
	padding: 2rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
	transition: all 0.3s;
	cursor: pointer;
}

.tc::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s;
}

.tc:hover {
	border-color: var(--gl);
	transform: translateY(-2px);
}

.tc:hover::after {
	transform: scaleX(1);
}

.tico {
	width: 52px;
	height: 52px;
	background: var(--g);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #fff;
	margin-bottom: 1rem;
}

.tico i,
.tico svg {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #fff;
}

.tc h3 {
	font-family: var(--serif);
	font-size: 1.02rem;
	color: var(--g);
	font-weight: 700;
	margin-bottom: 6px;
}

.tc p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
}

.tcl {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--g);
	font-size: 14px;
	font-weight: 600;
	margin-top: 12px;
	cursor: pointer;
}

/* ==========================================================================
   STORY CARDS
   ========================================================================== */

.sgg {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.4rem;
}

.sc {
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.sc img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s;
}

.sc:hover img {
	transform: scale(1.04);
}

.sm {
	height: 400px;
	position: relative;
}

.ss {
	height: 188px;
	position: relative;
}

.sov {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 30, 12, 0.93) 0%, rgba(10, 30, 12, 0.18) 60%, transparent 100%);
}

.sb {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.4rem;
}

.sb h3 {
	font-family: var(--serif);
	color: var(--white);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 6px;
}

.sm .sb h3 {
	font-size: 1.35rem;
}

.ss .sb h3 {
	font-size: 0.92rem;
}

.sb p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	line-height: 1.5;
}

.sr {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gold);
	font-size: 14px;
	font-weight: 600;
	margin-top: 8px;
	cursor: pointer;
}

.rcol {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}

/* ==========================================================================
   NEWS CARDS
   ========================================================================== */

.ng {
	display: flex;
	flex-direction: column;
	gap: 1.3rem;
}

.nc {
	display: flex;
	gap: 1rem;
	background: var(--cream);
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--border);
	transition: transform 0.2s;
	cursor: pointer;
}

.nc:hover {
	transform: translateX(3px);
}

.nim {
	width: 130px;
	flex-shrink: 0;
}

.nim img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nb {
	padding: 1rem;
}

.ncat {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gl);
	margin-bottom: 6px;
}

.nb h3 {
	font-family: var(--serif);
	font-size: 1rem;
	color: var(--dark);
	font-weight: 700;
	margin-bottom: 5px;
	line-height: 1.3;
}

.nb p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
}

.nd {
	font-size: 14px;
	color: var(--muted);
	margin-top: 6px;
}

/* ==========================================================================
   EVENT PANEL
   ========================================================================== */

.nl {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2.8rem;
}

.ep {
	background: var(--g);
	border-radius: 6px;
	padding: 1.8rem;
	color: var(--white);
}

.ep h3 {
	font-family: var(--serif);
	font-size: 1.2rem;
	color: var(--gold);
	font-weight: 700;
	margin-bottom: 1.2rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ei {
	padding: 0.9rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
}

.ei:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.edb {
	background: var(--gold);
	color: var(--g);
	width: 44px;
	flex-shrink: 0;
	text-align: center;
	border-radius: 3px;
	padding: 5px 0;
	font-weight: 700;
}

.edb .day {
	font-family: var(--serif);
	font-size: 1.4rem;
	line-height: 1;
	display: block;
}

.edb .mon {
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	display: block;
}

.eit h4 {
	font-size: 12px;
	font-weight: 600;
	color: var(--white);
	line-height: 1.3;
	margin-bottom: 2px;
}

.eit span {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
}

.etype {
	display: inline-block;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.8);
	padding: 2px 6px;
	border-radius: 2px;
	margin-bottom: 4px;
}

/* ==========================================================================
   COMMUNITY MAP
   ========================================================================== */

.community-map-wrap {
	max-width: 900px;
}

.community-state-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.community-state-tag {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
}

/* ==========================================================================
   EVENTS VIEW TOGGLE & CALENDAR
   ========================================================================== */

.events-view-toggle {
	display: flex;
	gap: 6px;
	margin-bottom: 1.5rem;
}

.cal-month {
	margin-bottom: 2rem;
}

.cal-month-title {
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--g);
	font-weight: 700;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--glite);
}

.cal-events {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cal-event {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cal-event:hover {
	border-color: var(--g);
	box-shadow: 0 2px 8px rgba(27, 94, 32, 0.08);
}

.cal-event.cal-past {
	opacity: 0.55;
	filter: grayscale(40%);
}

/* ── Past Event Card Styling ── */
.event-card.event-past {
	opacity: 0.55;
	filter: grayscale(40%);
	position: relative;
}

.event-card.event-past .edb {
	background: #9E9E9E;
	color: #fff;
}

.event-card.event-past .edb .day,
.event-card.event-past .edb .mon {
	color: #fff;
}

.event-past-badge {
	display: inline-block;
	background: #9E9E9E;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 3px;
	font-family: var(--sans);
}

.events-section-heading {
	font-family: var(--serif);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--g);
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--glite);
}

.events-section-heading.past {
	color: var(--muted);
	border-bottom-color: var(--border);
}

.cal-date {
	flex-shrink: 0;
	width: 48px;
	text-align: center;
}

.cal-day {
	display: block;
	font-family: var(--serif);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--g);
	line-height: 1.1;
}

.cal-dow {
	display: block;
	font-size: 11px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cal-info h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}

.cal-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 600px) {
	.cal-event {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	.cal-date {
		display: flex;
		gap: 6px;
		width: auto;
	}
}

/* ==========================================================================
   TEAM CONTROLS
   ========================================================================== */

.team-controls {
	margin-bottom: 2rem;
}

.team-search {
	width: 100%;
	max-width: 400px;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 14px;
	font-family: var(--sans);
	margin-bottom: 1rem;
}

.team-dept-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.team-dept-section.hidden {
	display: none;
}

.tcard.hidden {
	display: none;
}

/* ==========================================================================
   TEAM CARDS
   ========================================================================== */

.tm {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.tcard {
	background: var(--white);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border);
	text-align: center;
	transition: box-shadow 0.3s;
}

.tcard:hover {
	box-shadow: 0 8px 28px rgba(27, 94, 32, 0.12);
}

.tcard img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: top;
	display: block;
	background: var(--cream);
}

.tm[style*="repeat(2"] .tcard img {
	height: 340px;
	object-fit: contain;
}

.tcard-b {
	padding: 1.2rem;
}

.tcard-b h3 {
	font-family: var(--serif);
	font-size: 1rem;
	color: var(--dark);
	font-weight: 700;
	margin-bottom: 3px;
}

.role {
	font-size: 14px;
	color: var(--gl);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.tcard-b p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
}

.tcard-s {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.ts {
	width: 28px;
	height: 28px;
	background: var(--border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--g);
	font-size: 11px;
	cursor: pointer;
	transition: background 0.2s;
}

.ts:hover {
	background: var(--gold);
}

/* ==========================================================================
   JOB / VACANCY CARDS
   ========================================================================== */

.jcard {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1.5rem;
	margin-bottom: 1.2rem;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	transition: box-shadow 0.2s;
}

.jcard:hover {
	box-shadow: 0 4px 20px rgba(27, 94, 32, 0.1);
}

.jinfo h3 {
	font-family: var(--serif);
	font-size: 1.08rem;
	color: var(--dark);
	font-weight: 700;
	margin-bottom: 5px;
}

.jinfo p {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 8px;
}

.jtags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.jtag {
	font-size: 10px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 12px;
	background: var(--gold3);
	color: var(--gold2);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.ag {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.aimg {
	border-radius: 6px;
	overflow: hidden;
}

.aimg img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	object-position: top;
	display: block;
}

.at h2 {
	font-family: var(--serif);
	font-size: 2rem;
	color: var(--g);
	font-weight: 700;
	margin-bottom: 1rem;
}

.at p {
	font-size: 16px;
	color: var(--muted);
	line-height: 1.75;
	margin-bottom: 1rem;
}

.at .ac {
	color: var(--g);
	font-weight: 600;
}

/* Values grid */
.vg {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8rem;
	margin-top: 3rem;
}

.vc {
	background: var(--white);
	border-top: 1.5px solid var(--gold);
	border-bottom: 1.5px solid var(--gold);
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	border-radius: 8px;
	padding: 2.2rem 1.8rem;
	text-align: left;
	transition: box-shadow 0.3s, transform 0.3s;
}

.vc:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(27, 94, 32, 0.10);
}

.vc h3 {
	font-family: var(--serif);
	font-size: 1.05rem;
	color: var(--g);
	font-weight: 700;
	margin-bottom: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.8rem;
}

.vc h3 i,
.vc h3 svg {
	min-width: 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gold);
	color: #fff !important;
	fill: #fff;
	border-radius: 50%;
	flex-shrink: 0;
	box-sizing: border-box;
}

.vc h3 i {
	font-size: 20px;
}

.vc h3 svg {
	padding: 10px;
}

.vc:nth-child(even) h3 i,
.vc:nth-child(even) h3 svg {
	background: var(--white);
	color: var(--gold) !important;
	fill: var(--gold);
	border: 2px solid var(--gold);
}

.vc p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.65;
}

/* Values page intro */
.values-intro {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}

.values-intro__icon {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, var(--g), var(--gm));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.values-intro__icon i {
	font-size: 28px;
	color: #fff;
}

.values-intro__icon svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.values-intro p {
	font-size: 17px;
	color: var(--text);
	line-height: 1.85;
}

/* Values pillars (success section) */
.values-pillars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-top: 1rem;
}

.values-pillar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 1.5rem 1rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	transition: background 0.3s;
}

.values-pillar:hover {
	background: rgba(255, 255, 255, 0.18);
}

.values-pillar i {
	font-size: 28px;
	color: var(--gold);
}

.values-pillar svg {
	width: 28px;
	height: 28px;
	fill: var(--gold);
}

.values-pillar span {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--serif);
	line-height: 1.4;
}

/* Timeline */
.tl {
	position: relative;
	padding-left: 2.5rem;
}

.tl::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border);
}

.tle {
	position: relative;
	margin-bottom: 2rem;
}

.tle::before {
	content: '';
	position: absolute;
	left: -2.5rem;
	top: 5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--gold);
	border: 2px solid var(--g);
}

.tle h3 {
	font-family: var(--serif);
	font-size: 1.02rem;
	color: var(--g);
	font-weight: 700;
	margin-bottom: 4px;
}

.tle p {
	font-size: 16px;
	color: var(--muted);
	line-height: 1.6;
}

.tle .yr {
	font-size: 14px;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 4px;
	letter-spacing: 1px;
}

/* ==========================================================================
   RESEARCH FILTERS
   ========================================================================== */

.rfwrap {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.rf {
	padding: 7px 16px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	color: var(--g);
	cursor: pointer;
	transition: all 0.2s;
}

.rf.active,
.rf:hover {
	background: var(--g);
	color: var(--white);
	border-color: var(--g);
}

/* Search */
.rsrch {
	display: flex;
	gap: 10px;
	margin-bottom: 2.5rem;
}

.rsrch input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 16px;
	outline: none;
	font-family: var(--sans);
}

.rsrch input:focus {
	border-color: var(--gl);
}

.rsrch button {
	background: var(--g);
	color: var(--white);
	border: none;
	padding: 12px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 16px;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.cg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.cf label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--g);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cf input,
.cf textarea,
.cf select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 16px;
	font-family: var(--sans);
	outline: none;
	background: var(--white);
	margin-bottom: 1.2rem;
	transition: border-color 0.2s;
}

.cf input:focus,
.cf textarea:focus,
.cf select:focus {
	border-color: var(--gl);
}

.cf textarea {
	height: 130px;
	resize: vertical;
}

.cf-btn {
	background: var(--g);
	color: var(--white);
	border: none;
	padding: 13px 28px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	font-family: var(--sans);
}

.cf-btn:hover {
	background: var(--gm);
}

.cf-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

#cf-status {
	font-size: 0.95rem;
	padding: 0.5rem 0;
	min-height: 1.5em;
}

#cf-status.cf-success {
	color: var(--g);
}

#cf-status.cf-error {
	color: #c62828;
}

.ci h3 {
	font-family: var(--serif);
	color: var(--g);
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
}

.cii {
	display: flex;
	gap: 12px;
	margin-bottom: 1rem;
	align-items: flex-start;
}

.cii-icon {
	width: 38px;
	height: 38px;
	background: var(--gold3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	color: var(--g);
}

.cii-icon i,
.cii-icon svg {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.cii-text h4 {
	font-size: 16px;
	font-weight: 600;
	color: var(--g);
	margin-bottom: 2px;
}

.cii-text p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
}

.map-e {
	width: 100%;
	height: 280px;
	border-radius: 6px;
	overflow: hidden;
	margin-top: 1.5rem;
	border: 1px solid var(--border);
}

.map-e iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* ==========================================================================
   MULTIMEDIA
   ========================================================================== */

.mg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}

.mgc {
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	background: var(--dark);
}

.mgc img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	opacity: 0.85;
	transition: opacity 0.3s;
}

.mgc:hover img {
	opacity: 0.95;
}

.mgo {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgp {
	width: 52px;
	height: 52px;
	background: rgba(255, 0, 0, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s;
}

.mgc:hover .mgp {
	transform: scale(1.1);
}

.mgp svg {
	width: 20px;
	height: 20px;
	fill: var(--white);
}

.mginfo {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

.mginfo h4 {
	font-family: var(--serif);
	color: var(--white);
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 3px;
}

.mginfo span {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.6);
}

/* Photo gallery */
.pgal {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 2rem;
}

.pgg {
	position: relative;
	overflow: hidden;
	border-radius: 3px;
	cursor: pointer;
}

.pgg img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}

.pgg:hover img {
	transform: scale(1.06);
}

.pggo {
	position: absolute;
	inset: 0;
	background: rgba(27, 94, 32, 0);
	transition: background 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	opacity: 0;
	font-size: 20px;
}

.pgg:hover .pggo {
	background: rgba(27, 94, 32, 0.5);
	opacity: 1;
}

/* Impact grid */
.impact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}

.impact-num {
	text-align: center;
	padding: 2.5rem;
	background: var(--cream);
	border-radius: 6px;
	border-top: 4px solid var(--gold);
}

.impact-num .n {
	display: block;
	font-family: var(--serif);
	font-size: 3.5rem;
	color: var(--gold);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 12px;
}

.impact-num .l {
	display: block;
	font-size: 16px;
	color: var(--muted);
}

.impact-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 900px) {
	.impact-two-col {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-bg {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal-bg.open {
	display: flex;
}

.modal {
	background: var(--white);
	border-radius: 8px;
	max-width: 580px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 2.5rem;
	position: relative;
}

.mc-btn {
	position: absolute;
	top: 1rem;
	right: 1.2rem;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--muted);
	line-height: 1;
}

.modal h2 {
	font-family: var(--serif);
	color: var(--g);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.modal p {
	font-size: 16px;
	color: var(--muted);
	line-height: 1.7;
	margin-bottom: 0.8rem;
}

.modal strong {
	color: var(--dark);
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: var(--g);
	color: var(--white);
	padding: 12px 22px;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	z-index: 3000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s;
	pointer-events: none;
	max-width: 320px;
	line-height: 1.4;
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

#btt {
	position: fixed;
	bottom: 4.5rem;
	right: 1.5rem;
	width: 40px;
	height: 40px;
	background: var(--g);
	color: var(--white);
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(27, 94, 32, 0.3);
	z-index: 800;
	border: none;
}

.bttv {
	display: flex !important;
}

#btt:hover {
	background: var(--gm);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.chf-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 3000;
	background: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
}

.chf-lightbox.active {
	display: flex;
}

.chf-lb-content {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 2rem;
}

.chf-lb-close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: var(--white);
	font-size: 2.5rem;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
}

.chf-lb-close:hover {
	color: var(--gold);
}

.chf-lb-prev,
.chf-lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: var(--white);
	font-size: 2.5rem;
	cursor: pointer;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	z-index: 10;
	transition: background 0.2s;
}

.chf-lb-prev:hover,
.chf-lb-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.chf-lb-prev {
	left: 1rem;
}

.chf-lb-next {
	right: 1rem;
}

/* Toast type variants */
.toast--success {
	background: var(--g);
}

.toast--error {
	background: #c62828;
}

.toast--warning {
	background: var(--gold2);
	color: var(--white);
}

.toast--info {
	background: var(--g);
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--dark);
	color: var(--white);
	z-index: 2500;
	transform: translateY(100%);
	transition: transform 0.4s ease;
}

.cookie-banner[aria-hidden="false"] {
	transform: translateY(0);
}

.cookie-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.2rem 2rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cookie-inner p {
	flex: 1;
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
	min-width: 280px;
}

.cookie-inner a {
	color: var(--gold);
	text-decoration: underline;
}

.cookie-actions {
	display: flex;
	gap: 0.6rem;
	flex-shrink: 0;
}

.cookie-btn {
	border: none;
	padding: 0.55rem 1.4rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}

.cookie-btn:hover {
	opacity: 0.9;
}

.cookie-btn--accept {
	background: var(--gold);
	color: var(--dark);
}

.cookie-btn--reject {
	background: transparent;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   SINGLE VACANCY
   ========================================================================== */

.vacancy-layout--two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.vacancy-main {
	min-width: 0;
}

.vacancy-sidebar {
	position: sticky;
	top: 2rem;
}

.vacancy-apply-box {
	margin-top: 2rem;
	padding: 1.5rem;
	background: var(--cream);
	border-radius: 6px;
}

.vacancy-apply-box h3 {
	font-family: var(--serif);
	color: var(--g);
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 0.8rem;
}

#apply-status {
	font-size: 0.95rem;
	padding: 0.5rem 0;
	min-height: 1.5em;
}

#apply-status.cf-success {
	color: var(--g);
}

#apply-status.cf-error {
	color: #c62828;
}

/* ==========================================================================
   SINGLE PUBLICATION
   ========================================================================== */

.pub-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
	align-items: start;
}

.pub-body {
	min-width: 0;
}

.pub-sidebar {
	position: sticky;
	top: 2rem;
}

.pub-download-box {
	padding: 1.5rem;
	background: var(--cream);
	border-radius: 6px;
	border: 1px solid var(--border);
	margin-bottom: 1.5rem;
}

.pub-download-box h4 {
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--g);
	margin-bottom: 0.8rem;
}

/* Email publication inline form */
.pub-email-toggle {
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.pub-email-toggle:hover {
	background: var(--gm) !important;
	transform: translateY(-1px);
}

.pub-email-inline-form label {
	font-size: 12px;
}

.pub-email-inline-form input {
	font-size: 14px;
	padding: 8px 10px;
}

/* Publication autocomplete dropdown */
.pub-autocomplete-wrap {
	position: relative;
}

.pub-autocomplete-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid var(--border);
	border-top: none;
	border-radius: 0 0 6px 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pub-ac-item {
	padding: 10px 14px;
	cursor: pointer;
	font-size: 14px;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	transition: background 0.15s;
}

.pub-ac-item:last-child {
	border-bottom: none;
}

.pub-ac-item:hover,
.pub-ac-item.pub-ac-active {
	background: var(--cream);
	color: var(--g);
}

.pub-info-box {
	padding: 1.5rem;
	background: var(--cream);
	border-radius: 6px;
	border: 1px solid var(--border);
}

.pub-info-box h4 {
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--g);
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--border);
}

.pub-info-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.5rem 0;
	font-size: 14px;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pub-info-row:last-child {
	border-bottom: none;
}

.pub-info-label {
	font-weight: 600;
	color: var(--muted);
	flex-shrink: 0;
}

/* ==========================================================================
   SINGLE EVENT
   ========================================================================== */

.event-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 3rem;
	align-items: start;
}

.event-body {
	min-width: 0;
}

.event-sidebar {
	position: sticky;
	top: 2rem;
}

.event-register-box {
	padding: 1.5rem;
	background: var(--cream);
	border-radius: 6px;
}

.event-register-box h3 {
	font-family: var(--serif);
	color: var(--g);
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

#register-status {
	font-size: 0.95rem;
	padding: 0.5rem 0;
	min-height: 1.5em;
}

#register-status.cf-success {
	color: var(--g);
}

#register-status.cf-error {
	color: #c62828;
}

/* Clickable event items on homepage */
a.ei {
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
	border-radius: 4px;
	margin: 0 -6px;
	padding-left: 6px;
	padding-right: 6px;
}

a.ei:hover {
	background: rgba(255, 255, 255, 0.08);
}

a.ei .eit h4,
a.ei .eit span {
	color: inherit;
}

/* Clickable event cards on archive page */
a.event-card {
	transition: box-shadow 0.2s, transform 0.2s;
}

a.event-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ==========================================================================
   PODCAST
   ========================================================================== */

.podcast-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8rem;
}

.podcast-card {
	background: var(--white);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s, box-shadow 0.3s;
}

.podcast-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.podcast-card-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.podcast-card-placeholder {
	background: var(--g);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	font-size: 2.5rem;
}

.podcast-card-body {
	padding: 1.2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.podcast-card-ep {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--gl);
	margin-bottom: 4px;
}

.podcast-card-title {
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
	margin-bottom: 6px;
}

.podcast-card-guest {
	font-size: 12px;
	color: var(--g);
	font-weight: 600;
	margin-bottom: 6px;
}

.podcast-card-excerpt {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
	flex: 1;
}

.podcast-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 12px;
	color: var(--muted);
}

.podcast-card-meta i {
	margin-right: 3px;
	font-size: 10px;
}

/* Single podcast page */
.podcast-single-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
	align-items: start;
}

.podcast-single-body {
	min-width: 0;
}

.podcast-single-sidebar {
	position: sticky;
	top: 2rem;
}

.podcast-player {
	margin-bottom: 2rem;
	padding: 1.2rem;
	background: var(--cream);
	border-radius: 6px;
	border: 1px solid var(--border);
}

.podcast-player audio {
	display: block;
	border-radius: 4px;
}

.podcast-transcript {
	margin-top: 2rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
}

.podcast-transcript summary {
	padding: 1rem 1.2rem;
	font-weight: 600;
	color: var(--g);
	cursor: pointer;
	background: var(--cream);
	font-size: 14px;
}

.podcast-transcript summary:hover {
	background: var(--border);
}

.podcast-transcript-body {
	padding: 1.2rem;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
}

/* ==========================================================================
   SINGLE NEWS
   ========================================================================== */

.news-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
	align-items: start;
}

.news-body {
	min-width: 0;
}

.news-sidebar {
	position: sticky;
	top: 2rem;
}

.news-sidebar-title {
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--g);
	margin-bottom: 1.2rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid var(--gold);
}

.news-sidebar-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
}

.news-sidebar-item:hover {
	background: var(--cream);
	margin: 0 -8px;
	padding-left: 8px;
	padding-right: 8px;
	border-radius: 4px;
}

.news-sidebar-thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.news-sidebar-date {
	font-size: 11px;
	color: var(--muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.news-sidebar-headline {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.35;
	margin-top: 3px;
}

/* ==========================================================================
   SINGLE STORY
   ========================================================================== */

.story-body {
	max-width: 800px;
}

.story-featured-img {
	margin-bottom: 2rem;
	border-radius: 6px;
	overflow: hidden;
}

.story-quote {
	border-left: 4px solid var(--gold);
	padding: 1rem 1.5rem;
	margin: 0 0 2rem;
	font-size: 1.2rem;
	color: var(--g);
	font-style: italic;
	font-family: var(--serif);
}

.story-gallery {
	margin-top: 2.5rem;
}

.story-gallery h3 {
	font-family: var(--serif);
	color: var(--g);
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.story-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.story-gallery-item {
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
}

.story-gallery-item img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.story-gallery-item:hover img {
	transform: scale(1.05);
}

/* Photo essay layout */
.photo-essay {
	display: grid;
	gap: 2rem;
}

.photo-essay-item {
	margin: 0;
	cursor: pointer;
}

.photo-essay-item img {
	display: block;
	transition: transform 0.3s;
}

.photo-essay-item:hover img {
	transform: scale(1.01);
}

.photo-essay-caption {
	font-size: 14px;
	color: var(--muted);
	font-style: italic;
	line-height: 1.5;
	margin-top: 0.6rem;
	padding-left: 1rem;
	border-left: 3px solid var(--gold);
}

/* ===================================================================
   PROGRAMME IMAGE GRID — smart layouts by image count
   =================================================================== */

.prog-images {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	border-radius: 10px;
	overflow: hidden;
}

.prog-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.prog-img {
	border-radius: 8px;
	overflow: hidden;
}

.prog-img:hover img {
	transform: scale(1.03);
}

/* 1 image — full-width hero banner */
.prog-images--1 {
	grid-template-columns: 1fr;
}

.prog-images--1 .prog-img img {
	height: 400px;
}

/* 2 images — side by side, equal */
.prog-images--2 {
	grid-template-columns: 1fr 1fr;
}

.prog-images--2 .prog-img img {
	height: 320px;
}

/* 3 images — large left, two stacked right */
.prog-images--3 {
	grid-template-columns: 3fr 2fr;
	grid-template-rows: 1fr 1fr;
}

.prog-images--3 .prog-img--0 {
	grid-row: 1 / 3;
}

.prog-images--3 .prog-img--0 img {
	height: 100%;
	min-height: 360px;
}

.prog-images--3 .prog-img--1 img,
.prog-images--3 .prog-img--2 img {
	height: 174px;
}

/* 4 images — large top, three below */
.prog-images--4 {
	grid-template-columns: 1fr 1fr 1fr;
}

.prog-images--4 .prog-img--0 {
	grid-column: 1 / -1;
}

.prog-images--4 .prog-img--0 img {
	height: 360px;
}

.prog-images--4 .prog-img--1 img,
.prog-images--4 .prog-img--2 img,
.prog-images--4 .prog-img--3 img {
	height: 200px;
}

/* 5+ images — large left, 2x2 grid right */
.prog-images--5plus {
	grid-template-columns: 3fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.prog-images--5plus .prog-img--0 {
	grid-row: 1 / 3;
}

.prog-images--5plus .prog-img--0 img {
	height: 100%;
	min-height: 360px;
}

.prog-images--5plus .prog-img:not(.prog-img--0) img {
	height: 174px;
}

/* Hide 6th+ image on small screens */
.prog-images--5plus .prog-img:nth-child(n+6) {
	display: none;
}

/* Responsive */
@media (max-width: 768px) {
	.prog-images--2,
	.prog-images--3,
	.prog-images--4,
	.prog-images--5plus {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	.prog-images--3 .prog-img--0,
	.prog-images--4 .prog-img--0,
	.prog-images--5plus .prog-img--0 {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.prog-images--3 .prog-img--0 img,
	.prog-images--4 .prog-img--0 img,
	.prog-images--5plus .prog-img--0 img {
		height: 260px;
		min-height: 0;
	}

	.prog-images--2 .prog-img img,
	.prog-images--3 .prog-img--1 img,
	.prog-images--3 .prog-img--2 img,
	.prog-images--4 .prog-img--1 img,
	.prog-images--4 .prog-img--2 img,
	.prog-images--4 .prog-img--3 img,
	.prog-images--5plus .prog-img:not(.prog-img--0) img {
		height: 180px;
	}
}

@media (max-width: 480px) {
	.prog-images--2 {
		grid-template-columns: 1fr;
	}

	.prog-images--1 .prog-img img,
	.prog-images--2 .prog-img img {
		height: 220px;
	}
}

/* ===================================================================
   PARTNERS DIRECTORY PAGE
   =================================================================== */

.partner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
}

.partner-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.25s, box-shadow 0.25s;
}

.partner-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.partner-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	padding: 2rem 1.5rem 1.5rem;
	height: 100%;
}

a.partner-link:hover {
	color: inherit;
}

.partner-logo {
	width: 120px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.partner-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(30%);
	transition: filter 0.3s;
}

.partner-card:hover .partner-logo img {
	filter: grayscale(0%);
}

.partner-placeholder {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--cream);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gl);
	font-size: 24px;
}

.partner-name {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text);
	text-align: center;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.partner-visit {
	font-size: 12px;
	color: var(--g);
	margin-top: auto;
	opacity: 0;
	transition: opacity 0.25s;
}

.partner-visit i {
	font-size: 10px;
	margin-left: 3px;
}

.partner-card:hover .partner-visit {
	opacity: 1;
}

@media (max-width: 640px) {
	.partner-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.partner-link {
		padding: 1.5rem 1rem 1rem;
	}

	.partner-logo {
		width: 80px;
		height: 56px;
	}

	.partner-name {
		font-size: 0.85rem;
	}

	.partner-visit {
		opacity: 1;
	}
}

/* Legal / Policy pages */
.policy-content {
	max-width: 820px;
	margin: 0 auto;
}

.policy-content h2 {
	font-family: var(--serif);
	font-size: 1.4rem;
	color: var(--g);
	font-weight: 700;
	margin: 2.5rem 0 0.8rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--border);
}

.policy-content h2:first-of-type {
	margin-top: 0;
}

.policy-content h3 {
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--g);
	font-weight: 600;
	margin: 1.5rem 0 0.5rem;
}

.policy-content p {
	font-size: 16px;
	color: var(--text);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.policy-content ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1rem;
}

.policy-content ul li {
	font-size: 16px;
	color: var(--text);
	line-height: 1.8;
	margin-bottom: 0.3rem;
	position: relative;
}

.policy-content ul li::marker {
	color: var(--gold);
}

.policy-date {
	background: var(--cream);
	padding: 0.8rem 1.2rem;
	border-left: 4px solid var(--gold);
	border-radius: 4px;
	margin-bottom: 2rem;
}

.policy-contact {
	background: var(--cream);
	padding: 1.5rem;
	border-radius: 6px;
	border: 1px solid var(--border);
	font-style: normal;
	line-height: 2;
	margin: 1rem 0;
}

.policy-contact a {
	color: var(--g);
	font-weight: 500;
}

.policy-contact a:hover {
	color: var(--gold);
}
