/*
 * GrowSafe Hub — Knowledge, Projects & Opportunities
 *
 * This sheet only adds what the new sections need. Everything else — colours,
 * type, spacing, cards, buttons — comes from the theme's custom properties, so
 * a change in the Customizer reaches these sections too.
 *
 * Written with logical properties (inline-start, margin-inline) so one sheet
 * serves both the Arabic and the English site with no RTL copy.
 */

/* The theme calls this .screen-reader-text; these sections use the shorter
   name too, so they stay correct even on a page the theme is not styling. */
.gsch-stats .sr-only,
.gsch-projects .sr-only,
.gsch-knowledge .sr-only,
.gsch-clients .sr-only,
.gsch-testimonials .sr-only,
.gsch-opps .sr-only,
.gsch-apply-sec .sr-only {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Impact figures                                                      */
/* ------------------------------------------------------------------ */

.gsch-stat {
	text-align: center;
	padding: 1.6rem 1.1rem;
}

.gsch-stat-i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 46px;
	block-size: 46px;
	border-radius: 50%;
	background: var(--tint, #F4F9F7);
	color: var(--primary, #0E7A66);
	margin-block-end: .7rem;
}

.gsch-stat-i svg {
	inline-size: 22px;
	block-size: 22px;
}

.gsch-stat-n {
	display: block;
	font-family: var(--font-head, inherit);
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--primary, #0E7A66);
	font-variant-numeric: tabular-nums;
}

.gsch-stat-s {
	font-size: .7em;
	margin-inline-start: .08em;
}

.gsch-stat-l {
	display: block;
	margin-block-start: .45rem;
	color: var(--muted, #4D6A6B);
	font-size: .95rem;
	line-height: 1.45;
}

.sec-dark .gsch-stat-n { color: var(--accent-bright, #3FE3A8); }
.sec-dark .gsch-stat-l { color: #DCEAE6; }
.sec-dark .gsch-stat-i { background: rgba(255,255,255,.08); color: var(--accent-bright, #3FE3A8); }

/* ------------------------------------------------------------------ */
/* The filter, shared by the projects grid and the knowledge list      */
/* ------------------------------------------------------------------ */

.gsch-filter {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-block-end: 1.6rem;
}

.gsch-fbtn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .46rem .95rem;
	border: 1px solid var(--line, #DDE8E4);
	border-radius: 999px;
	background: #fff;
	color: var(--ink, #07282E);
	font: inherit;
	font-size: .92rem;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.gsch-fbtn:hover,
.gsch-fbtn:focus-visible {
	border-color: var(--primary, #0E7A66);
	color: var(--primary, #0E7A66);
}

.gsch-fbtn.is-on {
	background: var(--primary, #0E7A66);
	border-color: var(--primary, #0E7A66);
	color: #fff;
}

.gsch-fnum {
	font-size: .78em;
	opacity: .72;
	font-variant-numeric: tabular-nums;
}

.gsch-filter-sel {
	display: flex;
	gap: .5rem;
	align-items: center;
	margin-block-end: 1.6rem;
	max-inline-size: 420px;
}

.gsch-filter-sel select {
	inline-size: 100%;
	min-inline-size: 0;
}

.gsch-hidden { display: none !important; }

.gsch-none {
	color: var(--muted, #4D6A6B);
	background: var(--tint, #F4F9F7);
	border: 1px dashed var(--line, #DDE8E4);
	border-radius: var(--radius, 12px);
	padding: 1.1rem 1.2rem;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Tags                                                                */
/* ------------------------------------------------------------------ */

.gsch-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0 0 .6rem;
}

.gsch-tag {
	display: inline-block;
	padding: .2rem .6rem;
	border-radius: 999px;
	background: var(--tint, #F4F9F7);
	color: var(--primary, #0E7A66);
	font-size: .78rem;
	line-height: 1.5;
	text-decoration: none;
	border: 1px solid transparent;
}

a.gsch-tag:hover,
a.gsch-tag:focus-visible {
	border-color: var(--primary, #0E7A66);
}

/* ------------------------------------------------------------------ */
/* Project and article cards                                           */
/* ------------------------------------------------------------------ */

.gsch-proj,
.gsch-art {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	min-inline-size: 0;
}

.gsch-proj-img,
.gsch-art-img {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--tint, #F4F9F7);
	overflow: hidden;
}

.gsch-proj-img img,
.gsch-art-img img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.gsch-art:hover .gsch-art-img img,
.gsch-proj:hover .gsch-proj-img img {
	transform: scale(1.04);
}

.gsch-proj-body,
.gsch-art-body {
	padding: 1.15rem 1.25rem 1.3rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	flex: 1;
	min-inline-size: 0;
}

.gsch-proj-metric {
	align-self: flex-start;
	background: var(--primary, #0E7A66);
	color: #fff;
	font-weight: 700;
	font-size: .82rem;
	padding: .22rem .7rem;
	border-radius: 999px;
}

.gsch-proj-t,
.gsch-art-t {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.gsch-art-t a {
	color: inherit;
	text-decoration: none;
}

.gsch-art-t a:hover,
.gsch-art-t a:focus-visible {
	color: var(--primary, #0E7A66);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gsch-proj-meta,
.gsch-art-meta {
	margin: 0;
	font-size: .85rem;
	color: var(--muted, #4D6A6B);
}

.gsch-proj-x,
.gsch-art-x {
	margin: 0;
	color: var(--muted, #4D6A6B);
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.gsch-proj-more,
.gsch-art-more {
	margin-block-start: auto;
	padding-block-start: .3rem;
	font-weight: 600;
	color: var(--primary, #0E7A66);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: .35rem;
}

/* The label is its own box, so when it wraps the arrow stays beside it
   rather than dropping between the two lines. */
.gsch-more-t { min-inline-size: 0; }

.gsch-proj-more:hover,
.gsch-art-more:hover,
.gsch-proj-more:focus-visible,
.gsch-art-more:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The arrow points the way the language runs. */
.gsch-arrow { display: inline-block; }
[dir="rtl"] .gsch-arrow { transform: scaleX(-1); }

.gsch-proj-more:hover .gsch-arrow,
.gsch-art-more:hover .gsch-arrow {
	transform: translateX(3px);
}

[dir="rtl"] .gsch-proj-more:hover .gsch-arrow,
[dir="rtl"] .gsch-art-more:hover .gsch-arrow {
	transform: scaleX(-1) translateX(3px);
}

/* ------------------------------------------------------------------ */
/* Pagination                                                          */
/* ------------------------------------------------------------------ */

.gsch-pages {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: center;
	margin-block-start: 2rem;
}

.gsch-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 40px;
	block-size: 40px;
	padding: 0 .7rem;
	border: 1px solid var(--line, #DDE8E4);
	border-radius: 10px;
	text-decoration: none;
	color: var(--ink, #07282E);
}

.gsch-pages .page-numbers:hover {
	border-color: var(--primary, #0E7A66);
	color: var(--primary, #0E7A66);
}

.gsch-pages .page-numbers.current {
	background: var(--primary, #0E7A66);
	border-color: var(--primary, #0E7A66);
	color: #fff;
}

.gsch-pages .dots { border-color: transparent; }

/* ------------------------------------------------------------------ */
/* Client logos                                                        */
/* ------------------------------------------------------------------ */

.gsch-clients-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
	align-items: stretch;
}

.gsch-client {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 1.1rem .9rem;
	background: #fff;
	border: 1px solid var(--line, #DDE8E4);
	border-radius: var(--radius, 12px);
	text-decoration: none;
	min-inline-size: 0;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}

a.gsch-client:hover,
a.gsch-client:focus-visible {
	border-color: var(--primary, #0E7A66);
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(7,40,46,.07));
	transform: translateY(-2px);
}

.gsch-client img {
	inline-size: auto;
	max-inline-size: 100%;
	block-size: 54px;
	object-fit: contain;
	display: block;
}

.gsch-clients-grid.is-grey .gsch-client img {
	filter: grayscale(1);
	opacity: .72;
	transition: filter .2s, opacity .2s;
}

.gsch-clients-grid.is-grey .gsch-client:hover img,
.gsch-clients-grid.is-grey .gsch-client:focus-visible img {
	filter: none;
	opacity: 1;
}

.gsch-client-fallback {
	font-weight: 700;
	color: var(--ink, #07282E);
	text-align: center;
	font-size: .95rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.gsch-client-n {
	font-size: .82rem;
	color: var(--muted, #4D6A6B);
	text-align: center;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Testimonials                                                        */
/* ------------------------------------------------------------------ */

.gsch-quote {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 1.5rem 1.4rem;
	position: relative;
	min-inline-size: 0;
}

.gsch-quote.has-mark::before {
	content: "\201C";
	position: absolute;
	inset-block-start: -.1rem;
	inset-inline-start: 1rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4.2rem;
	line-height: 1;
	color: var(--accent, #22C58B);
	opacity: .28;
	pointer-events: none;
}

[dir="rtl"] .gsch-quote.has-mark::before {
	content: "\201D";
}

.gsch-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	position: relative;
	z-index: 1;
}

.gsch-quote blockquote p {
	margin: 0 0 .7rem;
	line-height: 1.75;
	color: var(--ink, #07282E);
	overflow-wrap: anywhere;
}

.gsch-quote blockquote p:last-child { margin-block-end: 0; }

.gsch-cite {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-block-start: auto;
	padding-block-start: .3rem;
	border-block-start: 1px solid var(--line, #DDE8E4);
	min-inline-size: 0;
}

.gsch-ava {
	flex: 0 0 auto;
	inline-size: 46px;
	block-size: 46px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block-start: .7rem;
}

.gsch-ava img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
}

.gsch-ava-i {
	background: var(--primary, #0E7A66);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}

.gsch-cite-t {
	display: flex;
	flex-direction: column;
	margin-block-start: .7rem;
	min-inline-size: 0;
}

.gsch-cite-n {
	font-weight: 700;
	color: var(--ink, #07282E);
	overflow-wrap: anywhere;
}

.gsch-cite-n a { color: inherit; text-decoration: none; }
.gsch-cite-n a:hover { text-decoration: underline; text-underline-offset: 3px; }

.gsch-cite-r {
	font-size: .85rem;
	color: var(--muted, #4D6A6B);
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Opportunities                                                       */
/* ------------------------------------------------------------------ */

.gsch-opp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.gsch-opp {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 1.3rem 1.4rem;
	min-inline-size: 0;
}

.gsch-opp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
}

.gsch-opp-type {
	display: inline-block;
	padding: .2rem .7rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	background: var(--tint, #F4F9F7);
	color: var(--primary, #0E7A66);
	border: 1px solid var(--line, #DDE8E4);
}

.gsch-type-job         { background: #E8F5F0; color: #0B5C4C; border-color: #BFE3D6; }
.gsch-type-consultancy { background: #EAF1FB; color: #1C4E8A; border-color: #C8DCF4; }
.gsch-type-trainer     { background: #FDF3E2; color: #8A5B11; border-color: #F3DFB8; }
.gsch-type-partnership { background: #F1ECFA; color: #563B96; border-color: #DCD1F2; }
.gsch-type-volunteer   { background: #EAF7EC; color: #2A6B35; border-color: #CBE7D1; }
.gsch-type-tender      { background: #FBEDEE; color: #8E2F36; border-color: #F2CFD2; }

.gsch-opp-t {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.gsch-opp-meta {
	margin: 0;
	font-size: .88rem;
	color: var(--muted, #4D6A6B);
}

.gsch-opp-x {
	margin: 0;
	line-height: 1.7;
	color: var(--muted, #4D6A6B);
	overflow-wrap: anywhere;
}

.gsch-opp-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .7rem;
	margin-block-start: .3rem;
}

.gsch-opp-dl {
	font-size: .88rem;
	color: var(--muted, #4D6A6B);
}

.gsch-opp-dl.is-soon { color: #8E2F36; font-weight: 600; }
.gsch-opp-dl.is-open { color: var(--primary, #0E7A66); font-weight: 600; }

.gsch-opp-apply { flex: 0 0 auto; }

.gsch-opp-full {
	border-block-start: 1px solid var(--line, #DDE8E4);
	padding-block-start: .7rem;
	margin-block-start: .2rem;
}

.gsch-opp-full summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--primary, #0E7A66);
}

.gsch-opp-full > .prose { padding-block-start: .6rem; }

/* ------------------------------------------------------------------ */
/* The application form                                                */
/* ------------------------------------------------------------------ */

.gsch-anchor {
	display: block;
	position: relative;
	inset-block-start: -90px;
	visibility: hidden;
}

.gsch-form {
	background: #fff;
	border: 1px solid var(--line, #DDE8E4);
	border-radius: var(--radius, 12px);
	padding: 1.6rem 1.5rem;
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(7,40,46,.07));
}

.gsch-grid2 {
	display: grid;
	/* minmax(0,…) rather than 1fr, so a long label can never push the form
	   wider than the phone it is read on. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1rem 1.1rem;
}

.gsch-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-inline-size: 0;
}

.gsch-field.is-wide { grid-column: 1 / -1; }

.gsch-field label {
	font-weight: 600;
	font-size: .93rem;
	color: var(--ink, #07282E);
}

.gsch-req { color: #B32D2E; }

.gsch-form input[type="text"],
.gsch-form input[type="email"],
.gsch-form input[type="tel"],
.gsch-form input[type="url"],
.gsch-form select,
.gsch-form textarea {
	inline-size: 100%;
	min-inline-size: 0;
	padding: .62rem .8rem;
	border: 1px solid var(--line, #DDE8E4);
	border-radius: 10px;
	background: #fff;
	color: var(--ink, #07282E);
	font: inherit;
	line-height: 1.5;
}

.gsch-form textarea { resize: vertical; }

.gsch-form input:focus-visible,
.gsch-form select:focus-visible,
.gsch-form textarea:focus-visible {
	outline: 2px solid var(--primary, #0E7A66);
	outline-offset: 1px;
	border-color: var(--primary, #0E7A66);
}

.gsch-help {
	font-size: .82rem;
	color: var(--muted, #4D6A6B);
}

.gsch-checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: .4rem .9rem;
}

.gsch-check {
	display: flex;
	align-items: flex-start;
	gap: .45rem;
	font-weight: 400 !important;
	font-size: .9rem;
	line-height: 1.5;
	cursor: pointer;
	min-inline-size: 0;
}

.gsch-check input { margin-block-start: .22rem; flex: 0 0 auto; }
.gsch-check span { overflow-wrap: anywhere; }

.gsch-consent {
	margin-block-start: 1.1rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--line, #DDE8E4);
}

.gsch-submit {
	margin-block-start: 1.1rem;
	display: flex;
}

/* The Arabic button label is long; it wraps rather than widening the page. */
.gsch-submit .btn {
	white-space: normal;
	text-align: center;
	min-inline-size: 0;
}

.gsch-formnote {
	margin: .8rem 0 0;
	font-size: .85rem;
	color: var(--muted, #4D6A6B);
}

/* The honeypot: off-screen rather than display:none, which some bots detect. */
.gsch-hp {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.gsch-thanks h3 { margin-block-start: 0; }

/* ------------------------------------------------------------------ */
/* The editor placeholder                                              */
/* ------------------------------------------------------------------ */

.gsh-widget-empty a { color: var(--primary, #0E7A66); }

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 560px) {
	.gsch-form { padding: 1.2rem 1rem; }
	.gsch-opp,
	.gsch-quote { padding: 1.15rem 1.1rem; }
	.gsch-opp-foot { flex-direction: column; align-items: stretch; }
	.gsch-opp-apply { inline-size: 100%; justify-content: center; }
	.gsch-filter { gap: .4rem; }
	.gsch-fbtn { font-size: .86rem; padding: .4rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
	.gsch-art-img img,
	.gsch-proj-img img,
	.gsch-client,
	.gsch-arrow {
		transition: none !important;
		transform: none !important;
	}
}
