/* ==========================================================================
   Layouts — Header, Footer, Grids, Sections
   ========================================================================== */

/* --- Top Bar --- */
.top-bar {
	background-color: transparent;
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--text-xs);
	height: var(--topbar-height);
	display: flex;
	align-items: center;
	position: relative;
	z-index: 150;
}

.top-bar > .container {
	max-width: none !important;
	width: 100% !important;
	padding-left: var(--space-8);
	padding-right: var(--space-8);
}

.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.top-bar__contacts {
	display: flex;
	align-items: center;
	gap: var(--space-6);
}

.top-bar__item {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.top-bar__item:hover {
	color: rgba(255, 255, 255, 0.9);
}

.top-bar__item svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.top-bar__right {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.lang-switcher--topbar ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2px;
}

.lang-switcher--topbar li a {
	display: block;
	padding: 2px 8px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	border-radius: 3px;
	transition: all var(--transition-fast);
}

.lang-switcher--topbar li a:hover {
	color: rgba(255, 255, 255, 0.9);
}

.lang-switcher--topbar li.current-lang a {
	color: rgba(255, 255, 255, 0.9);
	background: var(--color-primary);
}

.top-bar__social {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.top-bar__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-full);
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.1);
	transition: all var(--transition-fast);
}

.top-bar__social-link:hover {
	color: rgba(255, 255, 255, 0.9);
	background: var(--color-primary);
}

/* --- Header --- */
.site-header {
	position: sticky;
	top: 0;
	height: var(--header-height);
	background-color: transparent;
	border-bottom: none;
	z-index: var(--z-header);
	transition: background-color var(--transition), box-shadow var(--transition);
}

/* На не-головній сторінці хедер одразу непрозорий */
body:not(.home-page) .site-header {
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
body:not(.home-page) .site-header .nav-menu a {
	color: var(--color-text);
}
body:not(.home-page) .site-header .nav-menu a:hover,
body:not(.home-page) .site-header .nav-menu .current-menu-item > a {
	color: var(--color-primary);
	background-color: var(--color-primary-light);
}
body:not(.home-page) .site-header .lang-switcher a {
	color: var(--color-secondary);
	border-color: var(--color-border);
}
body:not(.home-page) .site-header .lang-switcher .current-lang a {
	color: #fff;
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}
/* Logo white on transparent header (homepage hero) */
.site-header .site-logo {
	filter: brightness(0) invert(1);
	transition: filter var(--transition);
}
/* Logo dark on white header (scrolled or non-home pages) */
.site-header.scrolled .site-logo,
body:not(.home-page) .site-header .site-logo {
	filter: brightness(0);
}
body:not(.home-page) .site-header .site-title {
	color: var(--color-text);
}
body:not(.home-page) .site-header .hamburger-line {
	background-color: var(--color-secondary);
}

.site-header.scrolled {
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Header text — white on transparent, dark on scroll */
.site-header .site-title {
	color: rgba(255, 255, 255, 0.9);
	transition: color var(--transition);
}
.site-header.scrolled .site-title {
	color: var(--color-text);
}

.site-header .nav-menu a {
	color: rgba(255, 255, 255, 0.9);
}
.site-header .nav-menu a:hover,
.site-header .nav-menu .current-menu-item > a {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.15);
}
.site-header.scrolled .nav-menu a {
	color: var(--color-text);
}
.site-header.scrolled .nav-menu a:hover,
.site-header.scrolled .nav-menu .current-menu-item > a {
	color: var(--color-primary);
	background-color: var(--color-primary-light);
}

/* Lang switcher — white on transparent */
.site-header .lang-switcher a {
	color: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.4);
}
.site-header .lang-switcher .current-lang a {
	color: #fff;
	border-color: var(--color-primary);
}
.site-header.scrolled .lang-switcher a {
	color: var(--color-secondary);
	border-color: var(--color-border);
}
.site-header.scrolled .lang-switcher .current-lang a {
	color: #fff;
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: var(--space-4);
}

.site-branding {
	flex-shrink: 0;
}

.site-logo-link {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.site-logo {
	height: 50px;
	width: auto;
	max-width: none;
	filter: brightness(0) invert(1);
	transition: filter var(--transition);
}

.site-header.scrolled .site-logo {
	filter: brightness(0);
}

/* Navigation */
.main-navigation {
	display: flex;
	justify-content: center;
}

.nav-menu {
	display: flex;
	gap: var(--space-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: block;
	padding: var(--space-2) var(--space-3);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--radius);
	transition: all var(--transition-fast);
	white-space: nowrap;
}

/* Dropdown arrow for items with sub-menus */
.nav-menu .menu-item-has-children > a::after {
	content: ' \25BE';
	font-size: 0.7em;
	margin-left: 3px;
	opacity: 0.7;
}

/* Sub-menus (dropdowns) */
.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--color-border);
	padding: var(--space-2) 0;
	list-style: none;
	margin: 0;
	z-index: var(--z-dropdown, 100);
}

.nav-menu li:hover > .sub-menu {
	display: block;
}

.nav-menu .sub-menu a {
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	border-radius: 0;
	white-space: nowrap;
	color: var(--color-text) !important;
}

.nav-menu .sub-menu a:hover {
	background-color: var(--color-primary-light);
	color: var(--color-primary) !important;
}

/* Language Switcher */
.lang-switcher {
	display: flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}

.lang-switcher ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.lang-switcher li {
	margin: 0;
}

.lang-switcher li a {
	display: block;
	padding: 6px 14px;
	font-size: var(--text-sm);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--color-text-light);
	text-decoration: none;
	border: 1px solid var(--color-border);
	transition: var(--transition-fast);
	min-width: 38px;
	text-align: center;
}

.lang-switcher li:first-child a {
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	border-right: none;
}

.lang-switcher li:last-child a {
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lang-switcher li.current-lang a {
	background-color: var(--color-primary);
	color: rgba(255, 255, 255, 0.9);
	border-color: var(--color-primary);
}

.lang-switcher li a:hover {
	color: var(--color-primary);
}

.lang-switcher li.current-lang a:hover {
	color: rgba(255, 255, 255, 0.9);
}

/* Header CTA */
.header-cta {
	flex-shrink: 0;
}

.btn-donate-header {
	padding: var(--space-2) var(--space-5);
	font-size: var(--text-sm);
}

/* Mobile menu overlay — hidden on desktop */
.mobile-menu {
	display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: var(--space-2);
	background: none;
	border: none;
	cursor: pointer;
}

.hamburger-line {
	display: block;
	width: 24px;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 2px;
	transition: all var(--transition-fast);
}

.site-header.scrolled .hamburger-line {
	background-color: var(--color-text);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background-color: var(--color-bg-dark);
	background-size: cover;
	background-position: center top;
	color: rgba(255, 255, 255, 0.9);
	text-align: left;
	margin-top: calc(-1 * (var(--header-height) + var(--topbar-height)));
	padding-top: calc(var(--header-height) + var(--topbar-height));
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.hero > .container {
	max-width: none;
	padding-left: 8%;
	margin: 0;
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: 650px;
	padding: var(--space-12) 0;
}

.hero__subtitle {
	display: inline-block;
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: var(--space-4);
}

.hero__title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	color: #fff;
	margin-bottom: var(--space-5);
	line-height: 1.1;
	font-weight: 800;
}

.hero__text {
	font-size: var(--text-lg);
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: var(--space-8);
	line-height: 1.7;
	max-width: 550px;
}

.hero__actions {
	display: flex;
	gap: var(--space-4);
	justify-content: flex-start;
	flex-wrap: wrap;
}

/* --- Statistics Section --- */
/* --- Home About Section (Unbound style) --- */
.home-about {
	padding: 60px 0;
	background: linear-gradient(180deg, #fff 0%, var(--color-bg-alt) 100%);
	position: relative;
	overflow: hidden;
}

/* Decorative background dot */
.home-about::before {
	content: '';
	position: absolute;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241,91,67,0.06) 0%, transparent 70%);
	top: -120px;
	right: -120px;
	pointer-events: none;
}

.home-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.home-about-left {
	position: relative;
	background-color: var(--color-secondary);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(54,79,117,0.2);
}

/* Accent corner shape */
.home-about-left::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 80px;
	height: 80px;
	background: var(--color-primary);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	opacity: 0.6;
}

.home-about-image img {
	width: 100%;
	min-height: 340px;
	max-height: 380px;
	object-fit: cover;
	display: block;
	filter: brightness(0) invert(1);
}

/* Counter wrap */
.counter-wrap {
	background: linear-gradient(90deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 18px 8px;
}

.counter-item {
	border-right: 1px solid rgba(255,255,255,0.12);
	color: #fff;
	padding: 8px 14px;
	text-align: center;
	width: 25%;
}

.counter-item:last-child {
	border-right: none;
}

.counter-no {
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: 900;
	line-height: 1.15;
	display: block;
	margin-bottom: 3px;
	color: #fff;
}

.counter-text {
	display: block;
	font-size: 0.7rem;
	color: rgba(255,255,255,0.65);
	line-height: 1.3;
}

/* Right side content */
.home-about-content .sub-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-primary);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 12px;
}

.home-about-content .sub-title::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 2px;
	flex-shrink: 0;
}

.home-about-content .section-title {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 2.5vw, 2.1rem);
	color: var(--color-secondary);
	line-height: 1.2;
	margin-bottom: 14px;
}

.home-about-content > p {
	color: var(--color-text-light);
	margin-bottom: 20px;
	line-height: 1.75;
	font-size: 0.95rem;
}

.about-list {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 24px;
}

.about-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
}

.about-list ul li {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 7px;
	position: relative;
	padding-left: 22px;
	color: var(--color-text);
	line-height: 1.4;
}

.about-list ul li::before {
	content: '✓';
	color: var(--color-primary);
	font-weight: 900;
	font-size: 12px;
	position: absolute;
	left: 0;
	top: 2px;
}

.exp-date {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	border-radius: 14px;
	text-align: center;
	min-width: 110px;
	padding: 14px 12px 16px;
	flex-shrink: 0;
	box-shadow: 0 8px 24px rgba(241,91,67,0.3);
}

.exp-date * {
	color: #fff;
}

.exp-date h2 {
	font-family: var(--font-heading);
	font-size: 48px;
	line-height: 1;
	margin-bottom: 0;
}

.exp-date h3 {
	font-family: var(--font-heading);
	margin-bottom: 4px;
	line-height: 1.2;
	font-size: 1rem;
}

.exp-date .date-desc {
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.85;
}

@media screen and (max-width: 991px) {
	.home-about-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media screen and (max-width: 575px) {
	.home-about {
		padding: 48px 0;
	}
	.counter-item {
		width: 50%;
		border-top: 1px solid rgba(255,255,255,0.12);
	}
	.counter-item:first-child,
	.counter-item:nth-child(2) { border-top: none; }
	.counter-item:nth-child(2) { border-right: none; }
	.counter-no { font-size: 24px; }
	.about-list { flex-wrap: wrap; }
	.exp-date { min-width: 100%; margin-top: 16px; }
	.home-about-content .section-title { font-size: var(--text-2xl); }
}

/* Legacy: keep stat-item for any old references */
.statistics {
	background-color: var(--color-bg-dark);
	color: rgba(255, 255, 255, 0.9);
}

.statistics .section__title {
	color: rgba(255, 255, 255, 0.9);
}

.statistics__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-6);
}

/* --- Activities Grid --- */
.activities__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-8);
}

/* --- Cases Grid --- */
.cases-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-8);
}

/* --- Partners Grid --- */
.partners__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: var(--space-4);
}

/* --- CTA Donate Section --- */
.cta-donate {
	background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
	color: rgba(255, 255, 255, 0.9);
	text-align: center;
}

.cta-donate__inner {
	max-width: 700px;
	margin: 0 auto;
}

.cta-donate__title {
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--text-4xl);
	margin-bottom: var(--space-4);
}

.cta-donate__text {
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--text-lg);
	margin-bottom: var(--space-8);
}

.cta-donate__actions {
	display: flex;
	gap: var(--space-4);
	justify-content: center;
	flex-wrap: wrap;
}

/* === FOOTER (Unbound-style) === */
.site-footer {
	background-color: var(--color-secondary-dark);
	color: rgba(255, 255, 255, 0.75);
}

.footer-top {
	padding: var(--space-16) 0 var(--space-10);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: var(--space-10);
}

.footer-logo {
	margin-bottom: var(--space-5);
}

.footer-widget__desc {
	font-size: var(--text-sm);
	line-height: 1.8;
	margin-bottom: var(--space-5);
}

.footer-widget__title {
	color: #fff;
	font-size: var(--text-base);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--space-5);
	padding-bottom: var(--space-3);
	border-bottom: 2px solid var(--color-primary);
	display: inline-block;
}

.footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-nav li {
	margin-bottom: var(--space-3);
}

.footer-nav a {
	color: rgba(255,255,255,0.7);
	font-size: var(--text-sm);
	text-decoration: none;
	transition: color var(--transition-fast), padding-left var(--transition-fast);
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.footer-nav a::before {
	content: '›';
	color: var(--color-primary);
	font-size: 1.2em;
}

.footer-nav a:hover {
	color: #fff;
	padding-left: var(--space-2);
}

.footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
	font-size: var(--text-sm);
	color: rgba(255,255,255,0.7);
}

.footer-contact-list li svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--color-primary);
}

.footer-contact-list a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-contact-list a:hover { color: #fff; }

/* Footer social icons */
.footer-social {
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	transition: all var(--transition-fast);
	border: 1px solid rgba(255,255,255,0.15);
}

.footer-social a:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

/* Footer middle: newsletter */
.footer-middle {
	padding: var(--space-8) 0;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-middle__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
	flex-wrap: wrap;
}

.footer-newsletter h4 {
	color: #fff;
	font-size: var(--text-base);
	margin-bottom: var(--space-3);
}

.footer-newsletter__form {
	display: flex;
	gap: var(--space-2);
}

.footer-newsletter__form input {
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-size: var(--text-sm);
	width: 260px;
}

.footer-newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter__form input:focus { outline: none; border-color: var(--color-primary); }

.footer-middle__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--space-3);
}

.footer-policy-links {
	display: flex;
	gap: var(--space-5);
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-policy-links a {
	font-size: var(--text-xs);
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-policy-links a:hover { color: #fff; }

/* Footer bottom */
.footer-bottom {
	padding: var(--space-5) 0;
	text-align: center;
}

.footer-bottom__copy {
	font-size: var(--text-sm);
	color: rgba(255,255,255,0.5);
	margin: 0;
}

@media (max-width: 991px) {
	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
	.footer-middle__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer-middle__right {
		align-items: flex-start;
	}
}

@media (max-width: 575px) {
	.footer-widgets { grid-template-columns: 1fr; }
	.footer-newsletter__form { flex-direction: column; }
	.footer-newsletter__form input { width: 100%; }
}

.social-links {
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 10px 20px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(241, 91, 67, 0.25);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: var(--text-sm);
	font-weight: 600;
	text-decoration: none;
	transition: all var(--transition-fast);
}

.social-link:hover {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

/* Social icons via CSS */
.social-link::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
}

.social-link[aria-label*="acebook"]::before,
.social-link[aria-label*="Facebook"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231877F2'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.social-link[aria-label*="nstagram"]::before,
.social-link[aria-label*="Instagram"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4405F'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E");
}

.social-link[aria-label*="elegram"]::before,
.social-link[aria-label*="Telegram"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2326A5E4'%3E%3Cpath d='M11.944 0A12 12 0 000 12a12 12 0 0012 12 12 12 0 0012-12A12 12 0 0012 0a12 12 0 00-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 01.171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.479.33-.913.492-1.302.48-.428-.013-1.252-.242-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
}

/* Footer context: dark background */
.site-footer .social-link {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.site-footer .social-link:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.social-link:hover::before {
	filter: brightness(0) invert(1);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: var(--space-6);
	text-align: center;
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.5);
}

/* --- Page Content Layouts --- */
.page-content {
	padding: var(--space-16) 0;
}

.page-content__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-10);
	align-items: center;
}

/* --- Donate Page --- */
.donate-section {
	padding: var(--space-12) 0;
	border-bottom: 1px solid var(--color-border);
}

.donate-section:last-child {
	border-bottom: none;
}

.donate-section__title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-6);
}

/* === Single Case Page === */
.case-page-header {
	background-color: var(--color-secondary);
	padding: var(--space-12) 0 var(--space-10);
}

.case-page-header__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.case-back-link {
	color: rgba(255,255,255,0.7);
	font-size: var(--text-sm);
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	transition: var(--transition-fast);
}
.case-back-link:hover { color: #fff; }

.case-page-header__title {
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	margin-bottom: 0;
}

.case-page-header__diagnosis {
	color: rgba(255,255,255,0.75);
	font-size: var(--text-lg);
	margin: 0;
}

.case-page-content {
	padding: var(--space-12) 0;
}

.case-page-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: var(--space-10);
	align-items: start;
}

.case-page-image {
	position: relative;
	margin-bottom: var(--space-8);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.case-page-image img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	object-position: var(--focal, center top);
	display: block;
}

.case-page-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
	padding: var(--space-4);
	background: var(--color-bg-alt);
	border-radius: var(--radius);
}

.case-page-meta__item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-sm);
	color: var(--color-text-light);
}

.case-page-text {
	font-size: var(--text-base);
	line-height: 1.8;
	color: var(--color-text);
}

.case-page-text p { margin-bottom: var(--space-4); }

/* Donate card sidebar */
.case-donate-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	position: sticky;
	top: calc(var(--header-height) + var(--space-6));
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.case-donate-card__completed {
	background: #f0fdf4;
	color: #16a34a;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius);
	margin-bottom: var(--space-5);
	font-weight: 600;
	text-align: center;
}

.case-donate-card__title {
	font-size: var(--text-xl);
	color: var(--color-secondary);
	margin-bottom: var(--space-5);
}

.case-donate-card__progress {
	margin-bottom: var(--space-5);
}

.case-donate-card__amounts {
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-5);
	border-bottom: 1px solid var(--color-border);
}

.case-amount-block {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.case-amount-block--target { text-align: right; }

.case-amount-block__value {
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--color-secondary);
	font-family: var(--font-heading);
}

.case-amount-block__label {
	font-size: var(--text-xs);
	color: var(--color-text-light);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Donate form inside case */
.case-donate-form { }

.case-donate-form__label {
	font-size: var(--text-base);
	color: var(--color-text-light);
	margin-bottom: var(--space-4);
}

.case-donate-amounts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.case-donate-amount-btn {
	padding: var(--space-3) var(--space-4);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-pill);
	background: transparent;
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--color-secondary);
	cursor: pointer;
	transition: var(--transition-fast);
	line-height: 1.4;
}

.case-donate-amount-btn:hover {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: #fff;
}

.case-donate-input-wrap {
	position: relative;
	margin-bottom: var(--space-2);
}

.case-donate-reset {
	display: block;
	width: 100%;
	background: none;
	border: none;
	font-size: var(--text-sm);
	color: var(--color-text-light);
	cursor: pointer;
	text-align: right;
	padding: 0 var(--space-2) var(--space-3);
	text-decoration: underline;
	transition: color var(--transition-fast);
}
.case-donate-reset:hover { color: var(--color-primary); }

.case-donate-btn.is-disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

.case-donate-input {
	width: 100%;
	padding: var(--space-4) var(--space-5);
	padding-right: 40px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-pill);
	font-size: var(--text-xl);
	font-weight: 700;
	text-align: center;
	color: var(--color-secondary);
	background: var(--color-bg-alt);
	transition: var(--transition-fast);
	-moz-appearance: textfield;
}
.case-donate-input::-webkit-outer-spin-button,
.case-donate-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.case-donate-input:focus {
	outline: none;
	border-color: var(--color-primary);
	background: #fff;
}

.case-donate-currency {
	position: absolute;
	right: var(--space-4);
	top: 50%;
	transform: translateY(-50%);
	font-size: var(--text-lg);
	color: var(--color-text-light);
}

.case-donate-btn {
	width: 100%;
	text-align: center;
	margin-bottom: var(--space-3);
}

.case-donate-form__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-size: var(--text-xs);
	color: var(--color-text-light);
	margin: 0;
}

/* Case page nav */
.case-page-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: var(--space-12);
	padding-top: var(--space-8);
	border-top: 1px solid var(--color-border);
}

@media (max-width: 900px) {
	.case-page-grid {
		grid-template-columns: 1fr;
	}
	.case-donate-card {
		position: static;
	}
}

/* --- Contact Layout --- */
.contacts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-10);
}

.contact-info-list {
	list-style: none;
	padding: 0;
}

.contact-info-item {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	padding: 25px 35px 28px 35px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(241, 91, 67, 0.25);
	margin-bottom: var(--space-6);
}

.contact-info-item:last-child {
	margin-bottom: 0;
}

.contact-info-item__icon {
	background-color: var(--color-primary);
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-2xl);
	line-height: 70px;
	height: 70px;
	width: 70px;
	flex-shrink: 0;
}

.contact-info-item__content h4 {
	margin-bottom: var(--space-2);
	font-size: var(--text-base);
	font-weight: 700;
}

.contact-info-item__content p,
.contact-info-item__content a {
	color: var(--color-text-light);
	font-size: var(--text-sm);
	margin-bottom: 0;
}

/* --- Google Maps --- */
.map-embed {
	border-radius: var(--radius-pill);
	overflow: hidden;
	height: 400px;
	margin-top: var(--space-10);
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Posts Grid (index.php) --- */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-8);
}

.post-card {
	background: var(--color-bg);
	border-radius: var(--radius-pill);
	overflow: hidden;
	border: 1px solid rgba(241, 91, 67, 0.28);
	padding: 15px;
	transition: all var(--transition);
}

.post-card:hover {
	box-shadow: var(--shadow-lg);
}

.post-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__content {
	padding: var(--space-5);
}

.post-card__title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-2);
}

.post-card__title a {
	color: var(--color-text);
}

.post-card__title a:hover {
	color: var(--color-primary);
}

/* --- About Page — Founder --- */
.founder-block {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: var(--space-10);
	align-items: start;
	margin-bottom: var(--space-12);
}

.founder-block__photo img {
	border-radius: var(--radius-pill);
	width: 100%;
}

.founder-block__name {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-3);
}

/* --- Documents List --- */
.documents-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-4);
}

.document-item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4);
	background: var(--color-bg-alt);
	border-radius: var(--radius-pill);
	border: 1px solid rgba(241, 91, 67, 0.28);
	transition: all var(--transition-fast);
}

.document-item:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow);
}

.document-item__icon {
	font-size: var(--text-2xl);
	flex-shrink: 0;
}

.document-item__name {
	font-weight: 600;
	color: var(--color-text);
}

/* === DROPDOWN MENU (Unbound-style) === */
.main-navigation .nav-menu li.menu-item-has-children {
	position: relative;
}

.main-navigation .nav-menu li.menu-item-has-children > a::after {
	content: ' ▾';
	font-size: 0.7em;
	opacity: 0.7;
}

.main-navigation .nav-menu li.menu-item-has-children > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	padding: var(--space-3) 0;
	z-index: 200;
	border-top: 3px solid var(--color-primary);
	animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.main-navigation .nav-menu li.menu-item-has-children:hover > ul {
	display: block;
}

.main-navigation .nav-menu li.menu-item-has-children > ul li a {
	display: block;
	padding: var(--space-2) var(--space-5);
	color: var(--color-text) !important;
	font-size: var(--text-sm);
	font-weight: 500;
	transition: all var(--transition-fast);
	white-space: nowrap;
}

.main-navigation .nav-menu li.menu-item-has-children > ul li a:hover {
	background: #f8f9fa;
	color: var(--color-primary) !important;
	padding-left: calc(var(--space-5) + 4px);
}

/* Scrolled header — dropdown on white bg */
.site-header.scrolled .main-navigation .nav-menu li.menu-item-has-children > ul {
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* === ABOUT PAGE === */
.about-page-hero {
	background-color: var(--color-secondary);
	padding: var(--space-16) 0 var(--space-12);
}

.sub-title-label {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-primary);
	margin-bottom: var(--space-3);
}

.about-page-hero .sub-title-label { color: var(--color-primary); }

.about-page-hero__title {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: var(--space-4);
}

.about-page-hero__desc {
	color: rgba(255,255,255,0.8);
	font-size: var(--text-lg);
	max-width: 600px;
	margin: 0;
}

/* About intro */
.about-intro__head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-12);
	align-items: start;
	margin-bottom: var(--space-12);
}

.about-intro__title {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	color: var(--color-secondary);
	line-height: 1.2;
}

/* Iconbox row */
.about-iconbox-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--space-4);
}

.about-iconbox-item {
	background: #F8FAFF;
	border-radius: var(--radius-lg);
	padding: var(--space-6) var(--space-4);
	text-align: center;
	transition: all var(--transition-base);
	border: 1px solid transparent;
}

.about-iconbox-item:hover {
	background: #fff;
	border-color: var(--color-primary);
	box-shadow: 0 8px 24px rgba(241,91,67,0.1);
	transform: translateY(-4px);
}

.about-iconbox-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--color-secondary);
	color: #fff;
	margin: 0 auto var(--space-4);
}

.about-iconbox-item:hover .about-iconbox-item__icon {
	background: var(--color-primary);
}

.about-iconbox-item h4 {
	font-size: var(--text-sm);
	color: var(--color-secondary);
	margin: 0;
	font-weight: 600;
}

/* Values row — has description text under heading */
.about-values-head {
	margin-top: var(--space-12);
	margin-bottom: var(--space-8);
	text-align: center;
}

.about-values-title {
	font-size: var(--text-3xl);
	color: var(--color-secondary);
	margin: var(--space-2) 0 0;
}

.about-iconbox-row--values .about-iconbox-item {
	padding: var(--space-6) var(--space-4);
}

.about-iconbox-row--values .about-iconbox-item h4 {
	font-size: var(--text-base);
	margin-bottom: var(--space-2);
}

.about-iconbox-row--values .about-iconbox-item p {
	font-size: var(--text-sm);
	color: var(--color-text-light);
	line-height: 1.5;
	margin: 0;
}

.about-founder__lead {
	max-width: 720px;
	margin: 0 auto var(--space-8);
	color: var(--color-text-light);
	font-size: var(--text-lg);
	line-height: 1.6;
}

/* Activity single — list */
.activity-list {
	list-style: none;
	padding: 0;
	margin: var(--space-4) 0;
}

.activity-list li {
	position: relative;
	padding-left: var(--space-6);
	margin-bottom: var(--space-3);
	line-height: 1.6;
}

.activity-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-primary);
	font-weight: 700;
}

/* Team grid */
.team-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-8);
}

.team-card {
	display: flex;
	gap: var(--space-6);
	align-items: flex-start;
	background: #fff;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	transition: box-shadow var(--transition-base);
}

.team-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.team-card__img {
	width: 160px;
	min-height: 200px;
	flex-shrink: 0;
	overflow: hidden;
	background: #f0f4f8;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.team-card__img--placeholder {
	color: var(--color-text-light);
}

.team-card__content {
	padding: var(--space-6) var(--space-5) var(--space-6) 0;
	flex: 1;
}

.team-card__name {
	font-size: var(--text-xl);
	color: var(--color-secondary);
	margin-bottom: var(--space-1);
}

.team-card__role {
	display: inline-block;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--space-4);
}

.team-card__bio {
	font-size: var(--text-sm);
	color: var(--color-text-light);
	line-height: 1.7;
	margin-bottom: var(--space-4);
}

.team-card__social {
	display: flex;
	gap: var(--space-2);
}

.team-card__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f0f4f8;
	color: var(--color-text-light);
	text-decoration: none;
	transition: all var(--transition-fast);
}

.team-card__social a:hover {
	background: var(--color-primary);
	color: #fff;
}

/* About Vision */
.about-vision {
	background: var(--color-bg, #f7f7f9);
	padding: var(--space-16) 0;
}

.about-vision__card {
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-10) var(--space-8);
	text-align: center;
	border-top: 4px solid var(--color-primary);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.about-vision__title {
	color: var(--color-secondary);
	margin-bottom: var(--space-6);
	font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.about-vision__text {
	color: var(--color-text, #2a2a3a);
	font-size: var(--text-lg);
	line-height: 1.8;
	margin: 0;
}

/* About CTA */
.about-cta {
	background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
	padding: var(--space-16) 0;
	margin-top: 0;
}

.about-cta__inner {
	text-align: center;
}

.about-cta__inner h2 {
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	margin-bottom: var(--space-4);
}

.about-cta__inner p {
	color: rgba(255,255,255,0.85);
	font-size: var(--text-lg);
	margin-bottom: var(--space-8);
}

.about-cta .btn-primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.about-cta .btn-primary:hover {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

@media (max-width: 991px) {
	.about-intro__head { grid-template-columns: 1fr; }
	.about-iconbox-row { grid-template-columns: repeat(3, 1fr); }
	.team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
	.about-iconbox-row { grid-template-columns: repeat(2, 1fr); }
	.team-card { flex-direction: column; }
	.team-card__img { width: 100%; height: 220px; }
	.team-card__content { padding: var(--space-5); }
}
