:root {
	--green: #2f8f44;
	--red: #c62828;
	--maroon: #6b1f1f;
	--white: #ffffff;
	--muted: #6b6d6b;
	--container-padding: clamp(16px, 4vw, 32px);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	min-width: 320px;
	overflow-x: hidden;
	font-family: Arial, sans-serif;
}

img,
iframe {
	max-width: 100%;
}

.container {
	width: min(100%, 1160px);
	margin-inline: auto;
	padding: 12px var(--container-padding);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	background: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.top-header {
	background: var(--maroon);
	color: var(--white);
}

.top-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
}

.contact-left,
.contact-right {
	display: flex;
	align-items: center;
}

.contact-left {
	flex-wrap: wrap;
	gap: 6px 18px;
}

.contact-left span {
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.contact-right {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.contact-right a {
	color: var(--white);
	text-decoration: none;
	font-size: 0.95rem;
	padding: 6px;
}

.contact-right a.social {
	opacity: 0.95;
}

.contact-right a.social-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 5px;
}

.contact-right .social-icon {
	display: block;
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
}

.header-bottom {
	background: var(--white);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px 28px;
}

.brand-wrap {
	flex: 0 1 auto;
	min-width: 0;
}

.brand-wrap .logo {
	display: block;
	width: auto;
	height: clamp(56px, 10vw, 112px);
	object-fit: contain;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
}

.main-nav a {
	color: var(--maroon);
	text-decoration: none;
	padding: 9px 12px;
	border-radius: 6px;
	white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
	background: var(--green);
	color: var(--white);
}

.donate {
	background: var(--red);
	color: var(--white);
	padding: 6px 10px;
	border-radius: 6px;
	text-decoration: none;
}

/* Main content */
.mainContainer {
	width: 100%;
}

.main-item {
	width: 100%;
	padding: clamp(20px, 4vw, 40px) var(--container-padding);
	background: var(--white);
}

.bcgImg {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: clamp(260px, 42vw, 440px);
	margin-top: 0;
	background-size: cover;
	background-position: center;
	color: var(--white);
	isolation: isolate;
}

.bcgImg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(0, 0, 0, 0.58);
}

.bcgImg h1 {
	max-width: 1000px;
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.8rem);
	line-height: 1.12;
	text-align: center;
	text-wrap: balance;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.data {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
	max-width: 1160px;
	width: 100%;
	margin-inline: auto;
}

.data-img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
}

.about {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
}

.about h2,
#programs h2,
.contact-inner h2 {
	color: var(--maroon);
}

.about p {
	color: var(--muted);
	line-height: 1.7;
	overflow-wrap: anywhere;
}

/* Program cards */
.programme > h2 {
	margin: 0;
	text-align: center;
	color: var(--maroon);
}

.programs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 22px);
	width: min(100%, 1160px);
	margin: 22px auto 0;
}

.program-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #f9f9f9;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease;
}

.program-img {
	display: block;
	width: 100%;
	height: clamp(140px, 16vw, 190px);
	object-fit: cover;
}

.program-card h3 {
	margin: 12px 16px 0;
	color: var(--maroon);
	font-size: 1.1rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.program-card p {
	flex-grow: 1;
	margin: 8px 16px 16px;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

#programs .program-card:hover {
	transform: translateY(-3px);
}

#programs .program-card:focus-within {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

/* Contact */
.contact-section {
	padding-block: clamp(28px, 5vw, 52px);
	background: var(--white);
}

.contact-inner h2 {
	margin-top: 0;
	text-align: center;
}

.contact-inner > p {
	color: var(--muted);
	text-align: center;
	line-height: 1.6;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 3vw, 32px);
	align-items: start;
	margin-top: 18px;
}

.contact-info,
.contact-form {
	min-width: 0;
	padding: clamp(8px, 2vw, 16px);
}

.contact-info h3 {
	margin-top: 0;
	color: var(--maroon);
}

.contact-info p {
	margin: 8px 0;
	color: var(--muted);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.contact-info a {
	overflow-wrap: anywhere;
}

.map-wrap {
	width: 100%;
	margin-top: 18px;
	overflow: hidden;
	border-radius: 8px;
}

.map-wrap iframe {
	display: block;
	width: 100%;
	height: clamp(220px, 30vw, 360px);
	border: 0;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.contact-form label {
	color: #333;
	font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	min-width: 0;
	padding: 11px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font: inherit;
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form .btn {
	padding: 11px 14px;
	border: 0;
	border-radius: 6px;
	background: var(--green);
	color: var(--white);
	cursor: pointer;
}

.contact-form .btn:hover,
.contact-form .btn:focus-visible {
	background: #257233;
}

/* Footer */
.site-footer {
	margin-top: 24px;
	padding: 28px 0 0;
	background: var(--maroon);
	color: var(--white);
}

.footer-inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-bottom: 20px;
}

.footer-col {
	min-width: 0;
}

.footer-col h4 {
	margin-top: 0;
	color: var(--white);
}

.footer-col p {
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.footer-col a {
	color: var(--white);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	text-decoration: underline;
}

.newsletter-form {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.newsletter-form input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	padding: 10px;
	border: 0;
	border-radius: 6px;
	font: inherit;
}

.newsletter-form .btn {
	flex: 0 0 auto;
	padding: 9px 12px;
}

.footer-bottom {
	margin-top: 12px;
	padding: 12px 0;
	background: rgba(0, 0, 0, 0.12);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.programs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.top-inner {
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding-block: 8px;
	}

	.contact-left {
		justify-content: center;
		text-align: center;
	}

	.contact-right {
		justify-content: center;
	}

	.header-inner {
		flex-direction: column;
		gap: 4px;
		padding-block: 8px 10px;
	}

	.brand-wrap .logo {
		height: 56px;
	}

	.main-nav {
		justify-content: center;
		gap: 2px;
		width: 100%;
	}

	.main-nav a {
		padding: 8px;
		font-size: 0.92rem;
	}

	.data {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.data-img {
		width: 100%;
		aspect-ratio: 16 / 10;
	}

	.about {
		width: 100%;
	}

	.footer-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.contact-left {
		flex-direction: column;
		gap: 4px;
	}

	.contact-left span {
		font-size: 0.88rem;
	}

	.main-nav a {
		padding: 7px 6px;
		font-size: 0.84rem;
	}

	.bcgImg {
		min-height: 240px;
	}

	.programs-grid,
	.footer-inner {
		grid-template-columns: 1fr;
	}

	.program-img {
		height: 190px;
	}

	.contact-section {
		padding-inline: 10px;
	}

	.newsletter-form {
		flex-direction: column;
	}

	.newsletter-form .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.program-card {
		transition: none;
	}
}
