/*
 * Bibi Noor Theme - Main Stylesheet
 * Kept lightweight on purpose: no CSS framework, just variables + basic layout.
 * Design/colors to be finalized with client, update variables below.
 */

:root {
	--bn-color-primary: #105945;
	--bn-color-primary-dark: #0c4433;   /* thora dark shade, hover states k lye */
	--bn-color-accent: #D5B07B;
	--bn-color-text: #232323;
	--bn-color-text-light: #6a6a6a;
	--bn-color-bg: #ffffff;
	--bn-color-bg-alt: #f7f8f5;
	--bn-font-heading: 'Poppins', sans-serif;
	--bn-font-body: 'Inter', sans-serif;
    --bn-font-hero-title: 'Playfair Display', serif;
	--bn-container-width: 1200px;
	--bn-radius: 50px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--bn-font-body);
	color: var(--bn-color-text);
	background: var(--bn-color-bg);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bn-font-heading);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

a { color: var(--bn-color-primary); text-decoration: none; }
a:hover { color: var(--bn-color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
	max-width: var(--bn-container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.section { padding: 60px 0; }
.section:nth-of-type(even) { background: var(--bn-color-bg-alt); }

/* Buttons */
.btn {
	display: inline-block;
	padding: 10px 28px;
	border-radius: var(--bn-radius);
	font-weight: 600;
	transition: all 0.2s ease;
}
.btn-donate {
	background: var(--bn-color-primary);
	color: #fff;
}
.btn-donate:hover { background: var(--bn-color-primary-dark); color: #fff; }
.btn-outline {
	border: 2px solid var(--bn-color-primary);
	color: var(--bn-color-primary);
}
.btn-outline:hover { background: var(--bn-color-primary); color: #fff; }

/* ==========================================================================
   Header - transparent on load, sticky + white on scroll
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 999;
	background: transparent;
	transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Added by JS (assets/js/main.js) once user scrolls past threshold */
.site-header.is-scrolled {
	background: var(--bn-color-bg);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.site-header.is-scrolled .main-navigation .primary-menu a:hover { color: var(--bn-color-accent); }

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	transition: padding 0.3s ease;
}
.site-header.is-scrolled .site-header-inner { padding: 12px 20px; }

/* Push page content below the fixed header. Hero sections that want the
   transparent overlap effect can cancel this with a negative margin. */
body { padding-top: 86px; }

.site-branding { display: flex; align-items: center; }
.site-branding img { max-height: 56px; width: auto; transition: max-height 0.3s ease; }
.site-header.is-scrolled .site-branding img { max-height: 46px; }
.site-branding .site-title {
	font-family: var(--bn-font-heading);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}
.site-header.is-scrolled .site-branding .site-title { color: var(--bn-color-primary); }

/* Desktop nav */
.main-navigation .primary-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation .primary-menu a {
	color: #fff;
	font-weight: 500;
	font-family: var(--bn-font-body);
}
.site-header.is-scrolled .main-navigation .primary-menu a { color: var(--bn-color-text); }
.main-navigation .primary-menu a:hover { color: var(--bn-color-accent); }

.desktop-cta { display: block; }
.nav-cta { display: none; } /* only shown inside mobile panel */
.mobile-panel-top { display: none; }

/* Hamburger button */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 500;
}
.menu-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: background 0.3s ease;
}
.site-header.is-scrolled .menu-toggle-bar { background: var(--bn-color-primary); }

/* Overlay behind the mobile panel */
.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-active { opacity: 1; visibility: visible; }

.nav-cta { display: none; } /* only shown inside mobile panel */
.mobile-panel-contact { display: none; } /* only shown inside mobile panel */
.mobile-panel-logo { display: none; }

/* ==========================================================================
   Mobile panel (full width, slides in from right)
   ========================================================================== */
@media (max-width: 860px) {

	.menu-toggle {
		display: flex;
		background: rgba(16, 89, 69, 0.85);
		border-radius: 6px;
		padding: 6px;
	}
	.menu-toggle-bar,
	.site-header.is-scrolled .menu-toggle-bar {
		background: #fff;
	}
	.desktop-cta { display: none; }

	.main-navigation {
		position: fixed;
		top: 0;
		right: 0;
		width: 100%;
		height: 100vh;
		background: var(--bn-color-primary);
		z-index: 1000;
		display: flex;
		flex-direction: column;
		padding: 24px 28px;
		transform: translateX(100%);
		visibility: hidden;
		overflow-y: auto;
	}
	.main-navigation.is-open { visibility: visible; } /* transform handled by GSAP */

	.mobile-panel-top {
		display: flex;
		justify-content: flex-end;
		margin-bottom: 32px;
	}
    .mobile-panel-logo {
		display: flex;
		justify-content: center;
		margin-bottom: 28px;
	}
	.mobile-panel-logo img {
		max-width: 130px;
		height: auto;
	}
	.panel-close {
		background: none;
		border: none;
		font-size: 32px;
		line-height: 1;
		color: #fff;
		cursor: pointer;
		padding: 4px;
	}

	.main-navigation .primary-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		width: 100%;
		margin-bottom: 32px;
	}
	.main-navigation .primary-menu a {
		color: #fff;
		font-size: 20px;
		font-weight: 600;
	}
	.main-navigation .primary-menu a:hover { color: var(--bn-color-accent); }

    .site-header.is-scrolled .main-navigation .primary-menu a { color: #fff; }

    .mobile-panel-contact {
		display: flex;
		flex-direction: column;
		gap: 14px;
		width: 100%;
		margin-bottom: 24px;
		padding-top: 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}
	.panel-contact-item {
		display: flex;
		align-items: center;
		gap: 10px;
		color: #fff;
		font-size: 15px;
		font-weight: 500;
	}
	.panel-contact-item svg { flex-shrink: 0; color: var(--bn-color-accent); }
	.panel-contact-item:hover { color: var(--bn-color-accent); }

	.nav-cta {
		display: block;
		width: 100%;
		text-align: center;
		margin-top: auto;
        background: var(--bn-color-accent);
		color: var(--bn-color-primary-dark);
	}
   
	.nav-cta:hover {
		background: #fff;
		color: var(--bn-color-primary);
	}
}

/* Home page hero handles its own spacing under the transparent header,
   so cancel the global body padding only on the Home template. */
body.page-template-page-home-php { padding-top: 0; }

/* ==========================================================================
   Hero Slider (Home page) - full screen, zoom + crossfade transition
   ========================================================================== */
.hero-slider {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	background: var(--bn-color-primary-dark);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
	will-change: transform;
}

/* Dark gradient so headline text stays readable over any photo */
.hero-slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(16, 89, 69, 0.55) 0%, rgba(16, 89, 69, 0.35) 45%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-slide-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
}

.hero-slide-content .container {
	text-align: center;
}
.hero-title {
	font-family: var(--bn-font-hero-title);
	font-size: 56px;
	color: #fff;
	max-width: 700px;
	margin: 0 auto 18px;
}
.hero-subtitle {
	font-size: 16px;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 auto 30px;
}
.hero-cta { font-size: 16px; }

.hero-dots {
	position: absolute;
	bottom: 34px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 5;
}
.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot.is-active { background: var(--bn-color-accent); transform: scale(1.3); }
.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }

.hero-scroll-indicator {
	position: absolute;
	bottom: 30px;
	right: 40px;
	z-index: 5;
	width: 34px;
	height: 34px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.hero-scroll-indicator span {
	display: block;
	width: 6px;
	height: 6px;
	background: #fff;
	border-radius: 50%;
	margin: 6px auto 0;
	animation: heroScrollBounce 1.6s infinite;
}
@keyframes heroScrollBounce {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(8px); opacity: 0.4; }
}

@media (max-width: 860px) {
	.hero-title { font-size: 38px; }
	.hero-subtitle { font-size: 16px; }
	.hero-scroll-indicator { display: none; }
}

@media (max-width: 480px) {
	.hero-slider { height: 50vh }
	.hero-title { font-size: 30px; }
	.hero-dots { bottom: 20px; }
}
/* Footer */
.site-footer { background: var(--bn-color-bg-alt); padding-top: 50px; }
.site-footer-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	padding-bottom: 30px;
}
.site-footer-bottom {
	border-top: 1px solid #e2e2e2;
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
	color: var(--bn-color-text-light);
}

/* Responsive */

	@media (max-width: 782px) {
	.site-footer-inner { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 480px) {
	.site-footer-inner { grid-template-columns: 1fr; }
	.section { padding: 40px 0; }
}

/* ==========================================================================
   Stats Strip (floats over the hero bottom edge)
   ========================================================================== */
.stats-strip {
	position: relative;
	z-index: 5;
	margin-top: -70px;
	padding-bottom: 0;
}
.stats-strip-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border-radius: 12px;
	/* box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12); */
}
.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 32px 20px;
	border-right: 1px solid #eee;
}
.stat-item:last-child { border-right: none; }
.stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bn-color-bg-alt);
	color: var(--bn-color-primary);
	margin-bottom: 4px;
}
.stat-icon img { max-width: 50px; height: auto; }
.stat-number {
	font-family: var(--bn-font-heading);
	font-size: 32px;
	font-weight: 700;
	color: var(--bn-color-primary);
}
.stat-label {
	font-size: 14px;
	color: var(--bn-color-text-light, #666);
}

@media (max-width: 860px) {
	.stats-strip { margin-top: -40px; }
	.stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
	.stat-item {
		padding: 22px 14px;
		border-bottom: 1px solid #eee;
	}
	.stat-item:nth-child(odd) { border-right: 1px solid #eee; }
	.stat-item:nth-last-child(-n+2) { border-bottom: none; }
	.stat-icon { width: 46px; height: 46px; }
	.stat-number { font-size: 24px; }
}


/* ==========================================================================
   About Us (image left, content right)
   ========================================================================== */
.about-us-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 50px;
}
.about-us-media img {
	width: 100%;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
	border-radius: 12px;
}
.section-eyebrow {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--bn-color-primary);
	margin-bottom: 10px;
}
.about-us-title {
	font-size: 36px;
    font-family: var(--bn-font-hero-title);
	margin-bottom: 18px;
}
.about-us-text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--bn-color-text-light, #555);
	margin-bottom: 26px;
}

@media (max-width: 860px) {
	.about-us-inner {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
	}
	.about-us-media { order: -1; }
	.about-us-media img { max-height: 300px; }
	.about-us-title { font-size: 28px; }
}

@media (max-width: 480px) {
	.about-us-title { font-size: 24px; }
	.about-us-text { font-size: 15px; }
}


/* ==========================================================================
   Programs Section
   ========================================================================== */
.section-heading {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 44px;
}
.programs-title { 
    font-size: 36px;
    font-family: var(--bn-font-hero-title);
     }

.programs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.program-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.program-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}
.program-card-media {
	width: 100%;
	height: 220px;
	overflow: hidden;
}
.program-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.program-card:hover .program-card-media img { transform: scale(1.06); }
.program-card-content { padding: 26px 24px 28px; }
.program-card-title { font-size: 21px; margin-bottom: 10px; font-family: var(--bn-font-hero-title); }
.program-card-desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--bn-color-text-light, #555);
	margin-bottom: 16px;
}
.program-card-cta {
	font-size: 14px;
	font-weight: 700;
	color: var(--bn-color-primary);
}
.program-card:hover .program-card-cta { color: var(--bn-color-primary-dark); }

@media (max-width: 860px) {
	.programs-grid { grid-template-columns: 1fr; gap: 24px; }
	.programs-title { font-size: 28px; }
	.program-card-media { height: 200px; }
}

@media (max-width: 480px) {
	.programs-title { font-size: 24px; }
}

/* ==========================================================================
   Featured News Carousel
   ========================================================================== */
.section-desc {
	font-size: 15px;
	color: var(--bn-color-text-light, #666);
	margin-top: 6px;
	max-width: 480px;
}
.news-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 36px;
}
.news-section-heading .section-eyebrow,
.news-section-heading .news-title,
.news-section-heading .section-desc {
	text-align: left;
	margin-left: 0;
}
.news-title { font-size: 34px; margin-bottom: 4px; font-family: var(--bn-font-hero-title); }

.carousel-arrows {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
	margin-top: 6px;
}
.carousel-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--bn-color-primary);
	color: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}
.carousel-arrow:hover {
	background: var(--bn-color-primary-dark);
}
.carousel-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	background: var(--bn-color-primary);
}

.news-carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.news-carousel::-webkit-scrollbar { display: none; }

.news-card {
	flex: 0 0 calc(33.333% - 16px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
	transform: translateY(-6px);
	/* box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14); */
}
.news-card-media {
	display: block;
	width: 100%;
	height: 280px;
	overflow: hidden;
	background: var(--bn-color-bg-alt);
}
.news-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.06); }
.news-card-content { padding: 22px 22px 24px; }
.news-card-category {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--bn-color-primary);
	background: var(--bn-color-bg-alt);
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}
.news-card-title { font-size: 21px; margin-bottom: 10px; font-family: var(--bn-font-hero-title); }
.news-card-subtitle {
	font-size: 14px;
	font-weight: 600;
	color: var(--bn-color-primary);
	margin-bottom: 10px;
}
.news-card-title a { color: var(--bn-color-text); }
.news-card-title a:hover { color: var(--bn-color-primary); }
.news-card-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--bn-color-text-light, #555);
	margin-bottom: 14px;
}
.news-card-link {
	font-size: 14px;
	font-weight: 700;
	color: var(--bn-color-primary);
}
.news-card-link:hover { color: var(--bn-color-primary-dark); }

@media (max-width: 860px) {
	.news-section-header { flex-direction: column; }
	.news-title { font-size: 28px; }
    .news-card-media { height: 220px; }
	.news-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 600px) {
	.news-card { flex: 0 0 85%; }
}

/* ==========================================================================
   Mission / Vision / Donate (tabbed card)
   ========================================================================== */
.mv-inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 40px;
	align-items: stretch;
	margin-top: 44px;
}
h2.mv-title {
    font-size: 34px;
    font-family: var(--bn-font-hero-title);
}
.mv-media img {
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	border-radius: 10px;
}
.mv-panel {
	background: var(--bn-color-primary-dark);
	border-radius: 10px;
	padding: 40px;
	display: flex;
	flex-direction: column;
}
.mv-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}
.mv-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}
.mv-tab:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.mv-tab.is-active {
	background: var(--bn-color-accent);
	border-color: var(--bn-color-accent);
	color: var(--bn-color-primary-dark);
}
.mv-content { flex: 1; position: relative; }
.mv-panel-item { display: none; }
.mv-panel-item.is-active { display: block; }
.mv-quote {
	display: block;
	font-family: Georgia, serif;
	font-size: 60px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.25);
	margin-bottom: 4px;
}
.mv-panel-item h3 {
	font-size: 26px;
	color: #fff;
	margin-bottom: 14px;
	position: relative;
	padding-bottom: 14px;
    font-family: var(--bn-font-hero-title);
}
.mv-panel-item h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 46px;
	height: 3px;
	background: var(--bn-color-accent);
}
.mv-panel-item p {
	font-size: 15.5px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.78);
}
.mv-cta {
	align-self: flex-start;
	margin-top: 28px;
}
.mv-cta:hover{
    background: var(--bn-color-accent);
    color: #0c4433;
}

@media (max-width: 860px) {
	.mv-inner { grid-template-columns: 1fr; gap: 26px; }
	.mv-media img { min-height: 260px; }
	.mv-panel { padding: 28px; }
	.mv-title { font-size: 28px; }
}

@media (max-width: 480px) {
	.mv-tabs { gap: 8px; }
	.mv-tab { padding: 8px 14px; font-size: 13px; }
	.mv-panel-item h3 { font-size: 22px; }
}

/* ==========================================================================
   Awards Gallery Carousel (images only, reuses News carousel base styles)
   ========================================================================== */
.awards-card {
	/* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}
.awards-card-media {
	height: 320px;
}
.awards-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 860px) {
	.awards-card-media { height: 260px; }
}
@media (max-width: 600px) {
	.awards-card-media { height: 220px; }
}

/* ==========================================================================
   Program Gallery (2-row marquee)
   ========================================================================== */
.gallery-title { font-size: 34px; font-family: var(--bn-font-hero-title); }

.gallery-marquee-wrap {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.gallery-row {
	width: 100%;
	overflow: hidden;
}
.gallery-track {
	display: flex;
	width: max-content;
	gap: 20px;
}
.gallery-row-1 .gallery-track {
	animation: gallery-marquee-left 35s linear infinite;
}
.gallery-row-2 .gallery-track {
	animation: gallery-marquee-right 35s linear infinite;
}
.gallery-row:hover .gallery-track {
	animation-play-state: paused;
}
.gallery-item {
	flex-shrink: 0;
	width: 300px;
	height: 200px;
	border-radius: 10px;
	overflow: hidden;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes gallery-marquee-left {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@keyframes gallery-marquee-right {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

@media (max-width: 860px) {
	.gallery-title { font-size: 28px; }
	.gallery-item { width: 220px; height: 150px; }
	.gallery-marquee-wrap { gap: 14px; }
	.gallery-row-1 .gallery-track,
	.gallery-row-2 .gallery-track { animation-duration: 25s; }
}

@media (max-width: 480px) {
	.gallery-item { width: 170px; height: 120px; }
	.gallery-marquee-wrap { gap: 10px; }
}

/* ==========================================================================
   Testimonials Carousel (reuses News carousel base layout)
   ========================================================================== */
.testimonial-card {
	padding: 30px 26px;
	display: flex;
	flex-direction: column;
}
.testimonial-quote-icon {
	font-family: Georgia, serif;
	font-size: 46px;
	line-height: 1;
	color: var(--bn-color-primary);
	opacity: 0.25;
	margin-bottom: 6px;
}
.testimonial-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--bn-color-text-light, #555);
	margin-bottom: 6px;

	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.testimonial-card.is-expanded .testimonial-text {
	-webkit-line-clamp: unset;
	overflow: visible;
}
.testimonial-readmore {
	align-self: flex-start;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--bn-color-primary);
	cursor: pointer;
}
.testimonial-readmore:hover { color: var(--bn-color-primary-dark); }
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid #eee;
}
.testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.testimonials-carousel {
	align-items: flex-start;
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--bn-color-text); }
.testimonial-role { font-size: 13px; color: var(--bn-color-text-light, #777); }

@media (max-width: 860px) {
	.testimonial-text { -webkit-line-clamp: 6; }
}
@media (max-width: 600px) {
	.testimonial-card { padding: 24px 20px; }
}


/* ==========================================================================
   Footer Donate CTA Banner (site-wide, above footer)
   ========================================================================== */
section.footer-cta {
    min-height: 400px;
    display: flex;
    align-items: center;
}
.footer-cta {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: var(--bn-color-primary-dark);
	padding: 70px 0;
}
.footer-cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}
.footer-cta-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	text-align: center;
	margin: 0 auto;
}
.footer-cta-inner h2 {
	color: #fff;
	font-size: 32px;
	line-height: 1.35;
	margin-bottom: 26px;
    font-family: var(--bn-font-hero-title);
}
.footer-cta-btn { font-size: 16px; padding: 14px 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--bn-color-primary-dark);
	color: rgba(255, 255, 255, 0.75);
	padding-top: 60px;
}
.site-footer-inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
	gap: 40px;
	padding-bottom: 50px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-col h4 {
	color: #fff;
	font-size: 19px;
	margin-bottom: 18px;
    font-family: var(--bn-font-hero-title);
}
.footer-brand img {
    max-width: 90px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
	font-size: 14px;
	line-height: 1.7;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.65);
}
.footer-links .footer-menu,
.footer-legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-links .footer-menu li { margin-bottom: 10px; }
.footer-links .footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14.5px;
}
.footer-links .footer-menu a:hover { color: var(--bn-color-accent); }

.footer-newsletter p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 16px;
}
.newsletter-form {
	display: flex;
	gap: 0;
}
.newsletter-form input {
	flex: 1;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-right: none;
	border-radius: var(--bn-radius) 0 0 var(--bn-radius);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form button {
	padding: 12px 20px;
	border: none;
	border-radius: 0 var(--bn-radius) var(--bn-radius) 0;
	background: var(--bn-color-accent);
	color: var(--bn-color-primary-dark);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}
.newsletter-form button:hover { background: #fff; }

.footer-contact a {
	display: block;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14.5px;
	margin-bottom: 10px;
}
.footer-contact a:hover { color: var(--bn-color-accent); }
.footer-social {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}
.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--bn-color-accent); color: var(--bn-color-primary-dark); }

.site-footer-bottom { padding: 22px 0; }
.site-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.footer-copyright { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin: 0; }
.footer-legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.footer-legal-menu a {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.55);
}
.footer-legal-menu a:hover { color: var(--bn-color-accent); }

@media (max-width: 960px) {
	.site-footer-inner {
		grid-template-columns: 1fr 1fr;
		gap: 34px;
	}
}

@media (max-width: 860px) {
	.footer-cta { padding: 50px 0; }
	.footer-cta-inner h2 { font-size: 24px; }
}

@media (max-width: 600px) {
	.site-footer-inner { grid-template-columns: 1fr; gap: 30px; }
	.site-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
	.newsletter-form { flex-direction: column; gap: 10px; }
	.newsletter-form input,
	.newsletter-form button { border-radius: var(--bn-radius); border-right: 1px solid rgba(255,255,255,0.2); }
}