/*
Theme Name: PHCC
Theme URI: https://ar.phcc-pal.org/
Author: Palestinian Happy Child Centre
Description: Custom lightweight theme for the Palestinian Happy Child Centre. No page builder required: pages are edited with the standard WordPress editor, and site-wide details (slider, contact info, donation strip) are edited in Appearance > Customize. Right-to-left and left-to-right ready, fully responsive.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phcc
*/

/* ---------- Design tokens ---------- */
:root {
	--phcc-blue: #0099d3;
	--phcc-sky: #00adee;
	--phcc-purple: #af5da3;
	--phcc-yellow: #ffe117;
	--phcc-teal: #5cc5bb;
	--phcc-teal-dark: #4ebbad;
	--phcc-pink: #ea008a;
	--phcc-ink: #333333;
	--phcc-heading: #484848;
	--phcc-text: #615e5d;
	--phcc-muted: #848484;
	--phcc-line: #e7e5e0;
	--phcc-sand: #f0efe8;
	--phcc-grey-band: #ece9e9;
	--phcc-white: #ffffff;
	--phcc-font: "Noto Kufi Arabic", "Droid Arabic Kufi", "Segoe UI", Tahoma, Arial, sans-serif;
	--phcc-wrap: 1170px;
	--phcc-gutter: clamp(16px, 4vw, 32px);
	--phcc-radius: 14px;
	--phcc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--phcc-header-h: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--phcc-font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--phcc-text);
	background: var(--phcc-white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--phcc-blue); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--phcc-pink); }
:focus-visible { outline: 3px solid var(--phcc-pink); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--phcc-font);
	color: var(--phcc-heading);
	line-height: 1.5;
	margin: 0 0 .6em;
	font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
blockquote {
	margin: 1.5em 0;
	padding: 1em 1.4em;
	border-inline-start: 5px solid var(--phcc-teal);
	background: var(--phcc-sand);
	border-radius: 8px;
}
table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
th, td { border: 1px solid var(--phcc-line); padding: .6em .8em; text-align: start; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	position: fixed; top: 8px; inset-inline-start: 8px; z-index: 1000;
	background: var(--phcc-white); color: var(--phcc-ink); padding: 10px 16px; border-radius: 6px; box-shadow: var(--phcc-shadow);
}

.phcc-wrap { width: min(100% - 2 * var(--phcc-gutter), var(--phcc-wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.phcc-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	font-family: var(--phcc-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: 27px;
	background: var(--phcc-pink);
	color: var(--phcc-white);
	cursor: pointer;
	text-align: center;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.phcc-btn:hover, .phcc-btn:focus,
.wp-block-button__link:hover, .wp-block-button__link:focus,
button[type="submit"]:hover, input[type="submit"]:hover {
	background: var(--phcc-blue);
	color: var(--phcc-white);
	transform: translateY(-2px);
}
.phcc-btn--blue { background: var(--phcc-blue); border-radius: 0; font-size: 18px; font-weight: 800; padding: 14px 40px; }
.phcc-btn--blue:hover, .phcc-btn--blue:focus { background: var(--phcc-pink); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; border-color: currentColor; color: inherit;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--phcc-white);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: var(--phcc-header-h);
}
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding img { display: block; max-height: 78px; width: auto; }
.site-title { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--phcc-blue); }
.site-title a { color: inherit; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 12px 15px;
	font-size: 15px; font-weight: 700; color: var(--phcc-blue);
	border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_parent > a { color: var(--phcc-pink); }
.main-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 10;
	min-width: 220px; padding: 8px;
	background: var(--phcc-white); border-radius: 0 0 12px 12px;
	border-top: 3px solid var(--phcc-pink);
	box-shadow: var(--phcc-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 600; color: var(--phcc-heading); white-space: normal; }
.main-nav .sub-menu a:hover { background: var(--phcc-sand); color: var(--phcc-pink); }
.main-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-inline-start: 8px;
	width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
	transform: translateY(-3px) rotate(45deg);
}
.submenu-toggle { display: none; }

.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0;
	background: var(--phcc-blue); color: var(--phcc-white);
	border: 0; border-radius: 10px; cursor: pointer;
}
.nav-toggle:hover { background: var(--phcc-pink); transform: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 24px; height: 3px; border-radius: 3px; background: currentColor;
	transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
	:root { --phcc-header-h: 76px; }
	.site-branding img { max-height: 60px; }
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: absolute; top: 100%; inset-inline: 0;
		background: var(--phcc-white);
		border-top: 1px solid var(--phcc-line);
		box-shadow: 0 16px 24px rgba(0, 0, 0, 0.1);
		max-height: calc(100vh - var(--phcc-header-h)); overflow-y: auto;
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--phcc-gutter) 16px; }
	.main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--phcc-line); border-radius: 0; white-space: normal; }
	.main-nav .menu-item-has-children > a { padding-inline-end: 56px; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.main-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border-top: 0; border-radius: 0; padding: 0 16px 0 0; display: none;
	}
	[dir="ltr"] .main-nav .sub-menu { padding: 0 0 0 16px; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		position: absolute; top: 6px; inset-inline-end: 0;
		width: 44px; height: 44px; padding: 0;
		background: var(--phcc-sand); color: var(--phcc-blue);
		border: 0; border-radius: 8px;
	}
	.submenu-toggle::before {
		content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0;
		transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
	}
	.is-open > .submenu-toggle::before { transform: translateY(2px) rotate(-135deg); }
	.submenu-toggle:hover { background: var(--phcc-sand); color: var(--phcc-pink); transform: none; }
}

/* ---------- Hero slider ---------- */
.phcc-hero { position: relative; background: var(--phcc-ink); overflow: hidden; }
.phcc-hero__track { position: relative; height: clamp(320px, 52vw, 620px); }
.phcc-hero__slide {
	position: absolute; inset: 0;
	display: flex; align-items: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.phcc-hero__slide.is-active { opacity: 1; visibility: visible; }
.phcc-hero__slide::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to left, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05) 70%);
}
[dir="ltr"] .phcc-hero__slide::before { background: linear-gradient(to right, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05) 70%); }
.phcc-hero__content { position: relative; z-index: 1; max-width: 640px; padding-inline: 64px; }
.phcc-hero__title {
	color: var(--phcc-white);
	font-size: clamp(1.6rem, 1rem + 3.2vw, 3.2rem);
	font-weight: 800; line-height: 1.35; margin-bottom: .7em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.phcc-hero__arrow {
	position: absolute; top: 50%; z-index: 2;
	width: 52px; height: 52px; padding: 0; margin-top: -26px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--phcc-blue); color: var(--phcc-white);
	border: 0; border-radius: 50%; cursor: pointer;
}
.phcc-hero__arrow:hover { background: var(--phcc-pink); transform: none; }
.phcc-hero__arrow--prev { inset-inline-start: 16px; }
.phcc-hero__arrow--next { inset-inline-end: 16px; }
.phcc-hero__arrow svg { width: 22px; height: 22px; }
[dir="rtl"] .phcc-hero__arrow svg { transform: scaleX(-1); }
.phcc-hero__dots { position: absolute; bottom: 18px; inset-inline: 0; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.phcc-hero__dot {
	width: 12px; height: 12px; padding: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .55); border: 0; cursor: pointer;
}
.phcc-hero__dot:hover { transform: none; background: var(--phcc-white); }
.phcc-hero__dot.is-active { background: var(--phcc-yellow); }
@media (max-width: 600px) {
	.phcc-hero__content { padding-inline: 24px; text-align: center; margin-inline: auto; }
	.phcc-hero__arrow { display: none; }
	.phcc-hero__slide::before { background: rgba(0, 0, 0, .35) !important; }
}

/* ---------- Page banner ---------- */
.phcc-banner {
	position: relative; display: flex; align-items: flex-end;
	min-height: clamp(180px, 26vw, 300px);
	background: var(--phcc-sky) center / cover no-repeat;
	color: var(--phcc-white);
}
.phcc-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 65%); }
.phcc-banner--plain { background: var(--phcc-teal-dark) url("assets/images/doodles-teal.png") center / cover no-repeat; min-height: clamp(150px, 20vw, 230px); }
.phcc-banner--plain::before { display: none; }
.phcc-banner__inner { position: relative; padding-block: 28px; }
.phcc-banner__title { color: var(--phcc-white); margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.phcc-breadcrumb { font-size: 14px; margin-bottom: 6px; opacity: .95; }
.phcc-breadcrumb a { color: var(--phcc-white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Content area & editor blocks ---------- */
.site-main { display: block; }
.entry-content > * { width: min(100% - 2 * var(--phcc-gutter), var(--phcc-wrap)); margin-inline: auto; }
.entry-content > .alignwide { width: min(100% - 2 * var(--phcc-gutter), 1320px); }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content > *:first-child:not(.alignfull) { margin-top: clamp(32px, 5vw, 64px); }
.entry-content > *:last-child:not(.alignfull) { margin-bottom: clamp(32px, 5vw, 64px); }
.entry-content--narrow > *:not(.alignwide):not(.alignfull) { width: min(100% - 2 * var(--phcc-gutter), 820px); }

.wp-block-group.alignfull { padding-block: clamp(40px, 6vw, 72px); padding-inline: var(--phcc-gutter); }
.wp-block-group.alignfull > .wp-block-group__inner-container,
.wp-block-group.alignfull.is-layout-constrained > *,
.wp-block-group.alignfull > * { max-width: var(--phcc-wrap); margin-inline: auto; }
.wp-block-group.alignfull > *:last-child { margin-bottom: 0; }
.wp-block-columns { gap: 32px; margin-bottom: 1.5em; }
.wp-block-image img { border-radius: var(--phcc-radius); }
.wp-block-image.is-style-rounded img { border-radius: 50%; }
.wp-block-embed, .wp-block-video { margin: 0 0 1.5em; }
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--phcc-radius); }
.wp-block-separator { border: 0; height: 4px; width: 80px; background: var(--phcc-teal); border-radius: 4px; margin: 2em auto; opacity: 1; }
.has-text-align-center { text-align: center; }

/* Coloured bands (Group block styles) */
.is-style-phcc-blue, .is-style-phcc-sky, .is-style-phcc-purple, .is-style-phcc-teal { color: var(--phcc-white); }
.is-style-phcc-blue { background-color: var(--phcc-blue); }
.is-style-phcc-sky { background-color: var(--phcc-sky); }
.is-style-phcc-purple { background-color: var(--phcc-purple); }
.is-style-phcc-teal { background-color: var(--phcc-teal); }
.is-style-phcc-yellow { background-color: var(--phcc-yellow); color: var(--phcc-ink); }
.is-style-phcc-grey { background-color: var(--phcc-sand); }
.is-style-phcc-blue :is(h1, h2, h3, h4, h5, h6),
.is-style-phcc-sky :is(h1, h2, h3, h4, h5, h6),
.is-style-phcc-purple :is(h1, h2, h3, h4, h5, h6),
.is-style-phcc-teal :is(h1, h2, h3, h4, h5, h6) { color: var(--phcc-white); }
.is-style-phcc-yellow :is(h1, h2, h3, h4, h5, h6) { color: var(--phcc-blue); }
.is-style-phcc-blue a:not(.wp-block-button__link),
.is-style-phcc-sky a:not(.wp-block-button__link),
.is-style-phcc-purple a:not(.wp-block-button__link),
.is-style-phcc-teal a:not(.wp-block-button__link) { color: var(--phcc-white); text-decoration: underline; }
.phcc-pattern-bg { background: var(--phcc-white) url("assets/images/pattern.png") center top / 1200px auto repeat; }
.phcc-bg-doodles { background-image: url("assets/images/doodles-yellow.png"); background-size: cover; background-position: center; }
/* "Our philosophy" band: the speech bubble is cut out of the artwork and sits beside the text, so they can never overlap. */
.wp-block-group.phcc-bg-philosophy { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); padding-block: 20px; }
.phcc-bg-philosophy::before { content: ""; flex: 0 0 360px; height: 250px; background: url("assets/images/philosophy-blue.png") -1230px 0 / 1920px 250px no-repeat; }
.wp-block-group.phcc-bg-philosophy > * { flex: 0 1 620px; max-width: 620px; margin: 0 !important; }
@media (max-width: 760px) {
	.wp-block-group.phcc-bg-philosophy { flex-direction: column; gap: 0; padding-block: 12px 32px; text-align: center; }
	.phcc-bg-philosophy::before { flex: 0 0 188px; width: 270px; height: 188px; background-size: 1440px 188px; background-position: -922px 0; }
	.wp-block-group.phcc-bg-philosophy > * { flex: 0 1 auto; }
}
.phcc-bg-objectives { background-image: linear-gradient(rgba(78, 187, 173, .88), rgba(78, 187, 173, .88)), url("assets/images/objectives-bg.jpg"); background-size: cover; background-position: center; }
.phcc-accent { color: var(--phcc-yellow) !important; }
.phcc-lead { font-size: clamp(1.02rem, .98rem + .35vw, 1.18rem); font-weight: 500; line-height: 2.05; }

/* Section heading with the two little dashes */
.phcc-section-title { text-align: center; color: var(--phcc-teal-dark); position: relative; padding-top: 26px; margin-bottom: 1.2em; }
.phcc-section-title::before {
	content: ""; position: absolute; top: 0; left: 50%; width: 76px; height: 4px; margin-left: -38px;
	background: linear-gradient(to right, var(--phcc-teal) 0 28px, transparent 28px 48px, var(--phcc-sky) 48px 76px);
	border-radius: 4px;
}
.phcc-section-title.is-blue { color: var(--phcc-sky); }

/* Statistics */
.phcc-stats { text-align: center; }
.phcc-stats .wp-block-column { padding: 8px; }
.phcc-stats .wp-block-image { margin: 0 auto 14px; }
.phcc-stats .wp-block-image img { border-radius: 0; height: 88px; width: auto; }
.phcc-stat-number { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.2; margin: 0 0 .2em; direction: ltr; }
.phcc-stats p { font-size: 14px; line-height: 1.9; max-width: 240px; margin-inline: auto; }

/* Icon boxes */
.phcc-iconbox { text-align: center; }
.phcc-iconbox .wp-block-image { margin: 0 auto 12px; }
.phcc-iconbox .wp-block-image img { border-radius: 0; height: 84px; width: auto; }
.phcc-iconbox p { max-width: 340px; margin-inline: auto; }

/* Circular faces row */
.phcc-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 36px); margin-block: 24px 8px; }
.phcc-faces > .wp-block-group__inner-container { display: contents; }
.phcc-faces .wp-block-image { margin: 0; }
.phcc-faces img { width: clamp(96px, 16vw, 150px); height: clamp(96px, 16vw, 150px); object-fit: cover; border-radius: 50%; border: 5px solid var(--phcc-white); box-shadow: var(--phcc-shadow); }

/* Service lists */
.phcc-services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.phcc-services li { padding: 8px 20px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 600; }
.is-style-phcc-yellow .phcc-services li, .is-style-phcc-yellow.phcc-services li { background: rgba(255, 255, 255, .6); }
.phcc-checklist ul, ul.phcc-checklist { list-style: none; padding: 0; }
.phcc-checklist li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; }
.phcc-checklist li::before {
	content: ""; position: absolute; inset-inline-start: 4px; top: .6em; width: 16px; height: 9px;
	border: solid var(--phcc-yellow); border-width: 0 0 3px 3px; transform: rotate(-45deg);
}

/* Founder card */
.phcc-founder .wp-block-image img { border-radius: 50%; box-shadow: var(--phcc-shadow); }
.phcc-founder h3 { color: var(--phcc-sky); font-weight: 500; line-height: 2; }
.phcc-founder h4 { color: var(--phcc-purple); }

/* Bank / info cards */
.phcc-card { background: var(--phcc-white); border: 1px solid var(--phcc-line); border-top: 5px solid var(--phcc-sky); border-radius: var(--phcc-radius); padding: 24px 26px; box-shadow: var(--phcc-shadow); height: 100%; }
.phcc-card h3 { color: var(--phcc-blue); }
.phcc-card p:last-child { margin-bottom: 0; }
.phcc-ltr { direction: ltr; unicode-bidi: embed; display: inline-block; font-family: Consolas, "Courier New", monospace; font-size: .95em; letter-spacing: .02em; }

/* ---------- Post cards ---------- */
.phcc-cards, ul.wp-block-latest-posts.is-grid {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px;
	list-style: none; padding: 0; margin-block: 0 1.5em;
}
.phcc-card-post, .wp-block-latest-posts.is-grid > li {
	display: flex; flex-direction: column; width: auto !important; margin: 0 !important;
	background: var(--phcc-white); border-radius: var(--phcc-radius); overflow: hidden;
	box-shadow: var(--phcc-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.phcc-card-post:hover, .wp-block-latest-posts.is-grid > li:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, .14); }
.phcc-card-post__media, .wp-block-latest-posts__featured-image { display: block; aspect-ratio: 3 / 2; margin: 0 !important; overflow: hidden; background: var(--phcc-teal-dark) url("assets/images/doodles-teal.png") center / cover; }
.phcc-card-post__media img, .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; max-width: none !important; object-fit: cover; display: block; border-radius: 0; transition: transform .5s ease; }
.phcc-card-post:hover .phcc-card-post__media img, .wp-block-latest-posts.is-grid > li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.06); }
.phcc-card-post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.phcc-card-post__title, .wp-block-latest-posts__post-title { font-size: 1.08rem; font-weight: 800; line-height: 1.7; margin: 0 0 8px; color: var(--phcc-heading); }
.wp-block-latest-posts__post-title { display: block; padding: 18px 22px 0; }
.phcc-card-post__title a, a.wp-block-latest-posts__post-title { color: var(--phcc-heading); }
.phcc-card-post__title a:hover, a.wp-block-latest-posts__post-title:hover { color: var(--phcc-pink); }
.phcc-card-post__meta, .wp-block-latest-posts__post-date { font-size: 13px; color: var(--phcc-teal-dark); font-weight: 600; margin-bottom: 8px; }
.wp-block-latest-posts__post-date { padding: 6px 22px 0; }
.phcc-card-post__excerpt, .wp-block-latest-posts__post-excerpt { font-size: 14.5px; margin: 0; }
.wp-block-latest-posts__post-excerpt { padding: 6px 22px 22px; }
.phcc-card-post__count { font-size: 13px; color: var(--phcc-muted); }

.phcc-archive { padding-block: clamp(32px, 5vw, 64px); }
.phcc-pagination { margin-top: 36px; }
.phcc-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.phcc-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 22px; background: var(--phcc-sand); color: var(--phcc-heading); font-weight: 700;
}
.phcc-pagination .page-numbers.current, .phcc-pagination a.page-numbers:hover { background: var(--phcc-blue); color: var(--phcc-white); }

/* ---------- Single post ---------- */
.phcc-article { padding-block: clamp(32px, 5vw, 60px); }
.phcc-article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--phcc-teal-dark); font-weight: 600; margin-bottom: 18px; }
.phcc-article__meta a { color: inherit; }
.phcc-article__thumb { margin: 0 0 28px; }
.phcc-article__thumb img { width: 100%; border-radius: var(--phcc-radius); display: block; }
.phcc-article .entry-content > * { width: 100%; }
.phcc-article .entry-content > *:first-child { margin-top: 0; }
.phcc-article__layout { width: min(100% - 2 * var(--phcc-gutter), 860px); margin-inline: auto; }
.phcc-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--phcc-line); }
.phcc-postnav a { display: block; font-weight: 700; color: var(--phcc-heading); }
.phcc-postnav a:hover { color: var(--phcc-pink); }
.phcc-postnav span { display: block; font-size: 13px; color: var(--phcc-muted); font-weight: 400; }
.phcc-postnav__next { text-align: end; }
@media (max-width: 600px) { .phcc-postnav { grid-template-columns: 1fr; } .phcc-postnav__next { text-align: start; } }

/* ---------- Galleries ---------- */
.wp-block-gallery.has-nested-images { gap: 12px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 10px; cursor: zoom-in; }
.phcc-empty { text-align: center; padding: 40px 20px; background: var(--phcc-sand); border-radius: var(--phcc-radius); color: var(--phcc-muted); }
.phcc-lightbox {
	position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .9); padding: 56px 16px;
}
.phcc-lightbox.is-open { display: flex; }
.phcc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.phcc-lightbox button {
	position: absolute; width: 48px; height: 48px; padding: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .15); color: var(--phcc-white); border: 0; font-size: 26px; line-height: 1; cursor: pointer;
}
.phcc-lightbox button:hover { background: var(--phcc-pink); transform: none; }
.phcc-lightbox__close { top: 12px; inset-inline-end: 12px; }
.phcc-lightbox__prev { top: 50%; left: 12px; margin-top: -24px; }
.phcc-lightbox__next { top: 50%; right: 12px; margin-top: -24px; }
.phcc-lightbox__caption { position: absolute; bottom: 14px; inset-inline: 16px; text-align: center; color: var(--phcc-white); font-size: 14px; }

/* ---------- Forms ---------- */
.phcc-form { display: grid; gap: 16px; max-width: 720px; margin-inline: auto; }
.phcc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .phcc-form__row { grid-template-columns: 1fr; } }
.phcc-form label { display: block; font-weight: 700; color: var(--phcc-heading); margin-bottom: 6px; font-size: 15px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], textarea, select {
	width: 100%; font: inherit; color: var(--phcc-ink);
	padding: 12px 16px; background: var(--phcc-white);
	border: 2px solid var(--phcc-line); border-radius: 10px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--phcc-sky); box-shadow: 0 0 0 4px rgba(0, 173, 238, .15); outline: 0; }
textarea { min-height: 160px; resize: vertical; }
.phcc-form__hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.phcc-form { position: relative; }
.phcc-notice { padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }
.phcc-notice--ok { background: #e4f7f1; color: #116b55; border: 1px solid #a9e2d2; }
.phcc-notice--err { background: #fde8ee; color: #a3123f; border: 1px solid #f5b5c8; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-inline: auto; }
.search-form label { flex: 1; }

/* ---------- Donate strip ---------- */
.phcc-donate { background: var(--phcc-grey-band); padding-block: 30px; }
.phcc-donate__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.phcc-donate__amount { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 700; color: var(--phcc-blue); margin: 0; }
.phcc-donate__text { font-size: 1.02rem; font-weight: 600; color: var(--phcc-text); margin: 0; max-width: 300px; }
.phcc-donate__cta { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); font-weight: 800; color: var(--phcc-pink); }
.phcc-donate__cta:hover { color: var(--phcc-blue); }
@media (max-width: 700px) { .phcc-donate__inner { flex-direction: column; text-align: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--phcc-white); }
.site-footer__main { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 40px; align-items: start; padding-block: clamp(36px, 5vw, 64px); }
.site-footer h2 { font-size: 1.15rem; color: var(--phcc-blue); margin-bottom: 14px; }
.site-footer__about p { font-size: 14px; line-height: 2.1; }
.site-footer__map { text-align: center; }
.site-footer__map img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; box-shadow: var(--phcc-shadow); }
.phcc-contact-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.phcc-contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.phcc-contact-list svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 6px; color: var(--phcc-sky); }
.phcc-contact-list a { color: var(--phcc-text); }
.phcc-contact-list a:hover { color: var(--phcc-pink); }
.phcc-contact-list .phcc-num { direction: ltr; unicode-bidi: embed; }
.phcc-social { display: flex; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.phcc-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--phcc-sky); color: var(--phcc-white); }
.phcc-social a:hover { background: var(--phcc-pink); }
.phcc-social svg { width: 18px; height: 18px; }
.site-footer__bottom { background: var(--phcc-sand); padding-block: 22px; font-size: 14px; color: var(--phcc-muted); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__bottom img { max-height: 54px; width: auto; display: block; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--phcc-text); font-weight: 600; }
@media (max-width: 900px) { .site-footer__main { grid-template-columns: 1fr; text-align: center; } .phcc-contact-list li { justify-content: center; } .phcc-social { justify-content: center; } .site-footer__bottom-inner { flex-direction: column; text-align: center; } .footer-nav ul { justify-content: center; } }

.phcc-totop {
	position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: var(--phcc-sky); color: var(--phcc-white); cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s;
	display: inline-flex; align-items: center; justify-content: center;
}
.phcc-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.phcc-totop:hover { background: var(--phcc-pink); }
.phcc-totop svg { width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.phcc-404 { text-align: center; padding-block: clamp(48px, 9vw, 110px); }
.phcc-404__code { font-size: clamp(4.5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; color: var(--phcc-sky); margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .phcc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .phcc-reveal.is-in { opacity: 1; transform: none; }

.phcc-stat-number { white-space: nowrap; }
@media (max-width: 1023px) {
	.phcc-stats .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 781px) {
	.wp-block-columns { gap: 22px; }
}
@media (max-width: 420px) { .phcc-stats .wp-block-columns { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .phcc-reveal { opacity: 1; transform: none; }
}

@media print {
	.site-header, .phcc-hero, .phcc-donate, .site-footer__map, .phcc-totop, .nav-toggle { display: none !important; }
	body { color: #000; }
}

/* Core list-grid overrides */
ul.wp-block-latest-posts.is-grid > li { width: auto !important; margin: 0 !important; max-width: none; }
ul.wp-block-latest-posts.is-grid { padding-inline-start: 0 !important; }
.wp-block-latest-posts__featured-image a { display: block; width: 100%; height: 100%; }
.wp-block-latest-posts__featured-image img { width: 100% !important; height: 100% !important; max-width: none !important; }

/* ---------- Biographies, long lists, English pages ---------- */
.phcc-bio { align-items: flex-start; padding-block: 12px; }
.phcc-bio + .phcc-bio { border-top: 1px solid var(--phcc-line); padding-top: 32px; }
.phcc-bio > .wp-block-column:first-child { flex: 0 0 220px !important; text-align: center; }
.phcc-bio > .wp-block-column:first-child img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; box-shadow: var(--phcc-shadow); }
.phcc-bio h3 { color: var(--phcc-blue); }
@media (max-width: 781px) { .phcc-bio > .wp-block-column:first-child { flex-basis: 100% !important; } }
ul.phcc-columns-list { columns: 3 260px; column-gap: 40px; list-style: none; padding: 0; }
ul.phcc-columns-list li { break-inside: avoid; padding: 8px 0 8px 0; padding-inline-start: 22px; position: relative; border-bottom: 1px dashed var(--phcc-line); }
ul.phcc-columns-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--phcc-teal); }
ul.phcc-checklist--dark li::before { border-color: var(--phcc-teal-dark); }
ul.phcc-checklist--dark { max-width: 860px; margin-inline: auto; }
ul.phcc-checklist { list-style: none; padding: 0; }
html[lang^="en"] body { line-height: 1.75; }
html[lang^="en"] .phcc-lead { line-height: 1.8; }
html[lang^="en"] .main-nav a { font-weight: 600; }
