/**
 * Connections ELCC theme styles
 */

body {
	font-family: 'Outfit', sans-serif;
}

.font-display {
	font-family: 'Playfair Display', serif;
}

/* Home hero: the banner image is a 512x512 square, but the hero is wide, so
   object-cover crops top/bottom. Bias the crop toward the lower-centre so the
   children (and forest clearing) stay in frame instead of just the tree trunks. */
.hero-banner-img {
	object-position: center 62%;
}

.hero-overlay {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
}

.blur-nature {
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.sel-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 9999px;
	color: #4a6741;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.45rem 0.75rem;
	text-transform: uppercase;
}

.masonry-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-auto-rows: 200px;
	gap: 1rem;
}

.masonry-item-large {
	grid-row: span 2;
}

/* Gallery — uniform 3-column grid */
.masonry-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
#g-review .swiper .swiper-wrapper .swiper-slide .g-review {
    height: 400px !important;
}
#g-review.layout_style-1 .g-review .gr-inner-body { max-height: 250px; } 
/*
 * The Load More button uses the `inline-flex` utility, whose `display`
 * out-specifies the browser's `[hidden]{display:none}`. This ID-scoped rule
 * wins so the button truly disappears when there are no more posts to load.
 */
#gallery-load-more[hidden] {
	display: none;
}

@media (max-width: 1024px) {
	.masonry-columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.masonry-columns {
		grid-template-columns: 1fr;
	}
}

.masonry-item {
	margin-bottom: 0;
}

.gallery-image-wrapper {
	transition: all 0.3s ease-out;
	border: 2px solid transparent;
	cursor: pointer;
}

.gallery-image-wrapper:hover {
	transform: translateY(-0.5rem);
	border-color: rgba(74, 103, 65, 0.2);
	box-shadow: 0 20px 25px -5px rgba(74, 103, 65, 0.08);
}

/* Gallery lightbox */
.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 28, 20, 0.93);
	padding: 4vh 4vw;
	opacity: 1;
}

.gallery-lightbox[hidden] {
	display: none;
}

.gallery-lb-img {
	max-width: 90vw;
	max-height: 86vh;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	background: #000;
}

.gallery-lb-close,
.gallery-lb-prev,
.gallery-lb-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	line-height: 1;
	transition: background 0.2s ease;
}

.gallery-lb-close:hover,
.gallery-lb-prev:hover,
.gallery-lb-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.gallery-lb-close {
	top: 20px;
	right: 24px;
	width: 46px;
	height: 46px;
	font-size: 30px;
}

.gallery-lb-prev,
.gallery-lb-next {
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	font-size: 38px;
	padding-bottom: 4px;
}

.gallery-lb-prev {
	left: 24px;
}

.gallery-lb-next {
	right: 24px;
}

@media (max-width: 640px) {
	.gallery-lb-prev,
	.gallery-lb-next {
		width: 42px;
		height: 42px;
		font-size: 28px;
	}

	.gallery-lb-prev {
		left: 8px;
	}

	.gallery-lb-next {
		right: 8px;
	}

	.gallery-lb-close {
		top: 10px;
		right: 12px;
	}
}

/*
 * Google Reviews (Embedder) widget.
 * - The plugin reserves a 150px band below the cards (for the nav) — drop it.
 * - Give the carousel side padding so the prev/next arrows have room to sit
 *   BESIDE the cards. They must stay inside the swiper, whose own
 *   overflow:hidden would otherwise clip arrows pushed past its edge.
 */
#google-reviews #g-review .swiper {
	padding-bottom: 0 !important;
	padding-left: 52px !important;
	padding-right: 52px !important;
}

/*
 * The widget's inner `.grwp_body` has a 30px bottom margin; because the section
 * has no bottom padding that margin collapses out and reveals the page
 * background as a stray strip. Zeroing the margin removes the strip without an
 * `overflow:hidden` BFC, which would have clipped the cards at the bottom.
 */
#google-reviews .grwp_body {
	margin-bottom: 0 !important;
}

/* Arrows: vertically centred, sitting in the side padding next to the cards. */
#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-prev,
#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-next {
	margin-top: 0 !important;
	top: 50% !important;
	transform: translateY(-50%);
}

#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-prev {
	left: 6px !important;
}

#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-next {
	right: 6px !important;
}

@media (max-width: 640px) {
	#google-reviews #g-review .swiper {
		padding-left: 44px !important;
		padding-right: 44px !important;
	}
}

.bio-card {
	background: #fff;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.layered-portrait-area {
	position: relative;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 2.5rem 0;
}

.blurred-rect-frame {
	position: relative;
	width: 66.6667%;
	aspect-ratio: 1 / 1;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.blurred-image-fill {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(4px);
	opacity: 0.6;
	transform: scale(1.1);
}

.clear-portrait-frame {
	position: absolute;
	z-index: 20;
	width: 33.3333%;
	aspect-ratio: 3 / 4;
	border-radius: 0.5rem;
	box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
	border: 3px solid #fff;
	overflow: hidden;
	transition: transform 0.5s;
}

.group:hover .clear-portrait-frame {
	transform: scale(1.1);
}

.clear-portrait-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
}

/* WordPress custom logo */
.custom-logo-link img {
	max-height: 80px;
	width: auto;
}

/* CF7 wrapper inside contact section */
.connections-cf7 .wpcf7 form {
	display: grid;
	gap: 1.25rem;
}

.connections-cf7 .wpcf7-form-control-wrap {
	display: block;
}

.connections-cf7 label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.35rem;
	color: #334155;
}

.connections-cf7 input[type='text'],
.connections-cf7 input[type='email'],
.connections-cf7 input[type='tel'],
.connections-cf7 select,
.connections-cf7 textarea {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 0.65rem 0.85rem;
	font-size: 0.95rem;
}

.connections-cf7 select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1.1rem;
	padding-right: 2.5rem;
	cursor: pointer;
}

.connections-cf7 textarea {
	resize: vertical;
}

.connections-cf7 .wpcf7-submit {
	background-color: #4a6741;
	color: #fff;
	border: none;
	border-radius: 9999px;
	padding: 0.85rem 2rem;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}

.connections-cf7 .wpcf7-submit:hover {
	opacity: 0.92;
}

.connections-cf7 .wpcf7-not-valid-tip {
	color: #b91c1c;
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.connections-cf7 .wpcf7-response-output {
	margin: 0 !important; /* beat CF7's default 2em; the grid gap already spaces it */
	border-radius: 12px;
	padding: 0.75rem 1rem;
}

/* No message → no empty box / no reserved grid space. */
.connections-cf7 .wpcf7-response-output:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
/* Two-column CF7 rows */
.connections-cf7 .cf7-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 639px) {
	.connections-cf7 .cf7-row-2 {
		grid-template-columns: 1fr;
	}
}

/* Team / program cards */
.team-card img,
.program-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===================== Blog listing ===================== */
.bg-pattern {
	background-color: #faf9f6;
	background-image: radial-gradient(rgba(74, 103, 65, 0.07) 1px, transparent 1px);
	background-size: 24px 24px;
}

.common-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
}

@media (max-width: 1024px) {
	.common-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.common-grid {
		grid-template-columns: 1fr;
	}
}

.common-blog-box {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #f1f5f9;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.common-blog-box:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 24px 40px rgba(74, 103, 65, 0.1);
}

.common-blog-box .img-box {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1f5f9;
}

.common-blog-box .img-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.common-blog-box:hover .img-box img {
	transform: scale(1.05);
}

.blog-date-box {
	padding: 1.25rem 1.5rem 0;
}

.blog-date-box p {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #4a6741;
	background: rgba(74, 103, 65, 0.08);
	padding: 0.3rem 0.75rem;
	border-radius: 9999px;
	margin: 0;
}

.cont-box {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1rem 1.5rem 1.75rem;
}

.cont-box .sub-title-box h4 {
	font-family: 'Playfair Display', serif;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	color: #0f172a;
	margin-bottom: 0.75rem;
}

.cont-box > p {
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.cont-box a {
	align-self: flex-start;
	margin-top: auto;
}

/* Blog pagination */
.blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.6rem;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
	font-weight: 600;
	font-size: 0.9rem;
	color: #4a6741;
	text-decoration: none;
}

.blog-pagination a:hover {
	background: rgba(74, 103, 65, 0.08);
}

.blog-pagination .current {
	background: #4a6741;
	border-color: #4a6741;
	color: #fff;
}

/* ===================== Blog detail (single post) ===================== */
.blog-detail-section .blog-date-box {
	background-color: #faf6ed;
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 16px;
	border-radius: 9999px;
}

.blog-detail-section .blog-date-box p {
	margin: 0;
	background: transparent;
	padding: 0;
	color: #8c7b6b;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.blog-detail-section .title-box {
	margin-bottom: 0 !important;
}

.blog-detail-section .title-box h2 {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: 48px;
	line-height: 1.2;
	color: #0f172a;
}

.blog-detail-section .sub-title-box h4 {
	font-size: 24px;
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	margin-top: 24px;
}

.blog-detail-section p {
	margin-top: 16px;
}

.blog-detail-section .blog-main-img-box {
	margin: 30px 0;
}

.blog-detail-section .blog-main-img-box img {
	width: 100%;
	border-radius: 32px;
}

.blog-detail-section .blog-img-grid {
	margin: 30px 0;
}

.blog-detail-section .blog-img-grid .common-img-box img {
	width: 100%;
	border-radius: 32px;
}

.blog-detail-section p img {
	border-radius: 24px;
}

@media screen and (max-width: 1279px) {
	.blog-detail-section .sub-title-box h4 {
		font-size: 22px;
		margin-top: 18px;
	}
	.blog-detail-section .title-box h2 {
		font-size: 40px;
		line-height: 1.3;
		margin-bottom: 20px;
	}
}

@media screen and (max-width: 1023px) {
	.blog-detail-section .title-box h2 {
		font-size: 36px;
	}
}

@media screen and (max-width: 767px) {
	.blog-detail-section .title-box h2 {
		font-size: 32px;
	}
	.blog-detail-section .sub-title-box h4 {
		font-size: 20px;
		margin-top: 15px;
	}
}

@media screen and (max-width: 639px) {
	.blog-detail-section .title-box h2 {
		font-size: 24px;
		margin-bottom: 15px;
	}
	.blog-detail-section .sub-title-box h4 {
		font-size: 18px;
		margin-top: 14px;
	}
	.blog-detail-section p {
		margin-top: 12px;
	}
	.blog-detail-section .blog-date-box {
		padding: 5px 14px;
	}
}

/* ===================== Responsive overrides (breakpoint tuning) ===================== */
@media screen and (max-width: 1919px) {
}

@media screen and (max-width: 1599px) {
}

@media screen and (max-width: 1439px) {
}

@media screen and (max-width: 1365px) {
	.md\:text-6xl {
		font-size: 56px !important;
	}
	.py-24 {
		padding: 70px 0 !important;
	}
}

@media screen and (max-width: 1279px) {
	#programs .lg\:col-span-3 {
		grid-column: span 1 / span 1;
	}
	.py-24 {
		padding: 60px 0 !important;
	}
	.inner-banner-section .md\:text-5xl {
		font-size: 36px;
	}
	.vision-mission-section .p-12 {
		padding: 30px;
	}
}

@media screen and (max-width: 1023px) {
	#programs .md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	footer .col-span-2 {
		grid-column: span 1 / span 1;
	}
	footer .md\:grid-cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.py-24 {
		padding: 50px 0 !important;
	}
	.inner-banner-section {
		min-height: 60vh;
	}
	.inner-banner-section .md\:p-20 {
		padding: 65px;
	}
	.vision-mission-section .gap-12 {
		gap: 30px;
	}
	#about .md\:text-5xl {
		font-size: 38px;
	}
	#about .grid .order-2 {
		order: 1;
	}
	.cta-section .md\:text-5xl {
		font-size: 42px;
	}
	.py-20 {
		padding: 50px 0 !important;
	}
	.our-team-section .text-5xl {
		font-size: 42px;
	}
	.our-team-section .-rotate-2 {
		left: 0;
	}
	.md\:text-5xl {
		font-size: 38px !important;
	}
	.md\:text-6xl {
		font-size: 50px !important;
	}
	#approach .grid .order-2 {
		order: 1;
	}
}

@media screen and (max-width: 767px) {
	.py-24 {
		padding: 30px 0 !important;
	}
	#programs .grid-cols-1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	footer .col-span-2 {
		grid-column: span 2 / span 2;
	}
	footer .md\:grid-cols-4 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	.banner-section .text-5xl {
		font-size: 32px;
	}
	.inner-banner-section .md\:text-5xl {
		font-size: 32px;
	}
	.inner-banner-section .md\:p-20 {
		padding: 55px;
	}
	.vision-mission-section .text-4xl {
		font-size: 32px;
	}
	#about .md\:text-5xl {
		font-size: 32px;
	}
	.cta-section .md\:text-5xl {
		font-size: 36px;
	}
	.our-team-section .text-5xl {
		font-size: 38px;
	}
	.inner-team-box .py-10 {
		padding: 15px 0 !important;
	}
	.inner-team-box .mb-10 {
		margin-bottom: 20px !important;
	}
	.our-team-section .-rotate-2 {
		right: 0;
	}
	.py-16 {
		padding: 40px 0 !important;
	}
	.md\:text-5xl {
		font-size: 32px !important;
	}
	.md\:text-6xl {
		font-size: 42px !important;
	}
	.pt-20 {
		padding-top: 50px !important;
	}
	.pb-24 {
		padding-bottom: 30px !important;
	}
}

@media screen and (max-width: 639px) {
	#programs .grid-cols-1 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	footer .col-span-2 {
		grid-column: span 1 / span 1;
	}
	.py-24 {
		padding: 20px 0 !important;
	}
	#testimonials .p-8 {
		padding: 20px;
	}
	.banner-section .text-5xl {
		font-size: 24px;
	}
	.vision-mission-section .text-4xl {
		font-size: 26px;
		line-height: 32px;
	}
	.vision-mission-section p {
		font-size: 18px;
	}
	.vision-mission-section .p-12 {
		padding: 25px;
	}
	#beliefs .p-10 {
		padding: 20px;
	}
	#beliefs .gap-8 {
		gap: 20px;
	}
	#about .md\:text-5xl {
		font-size: 24px;
		line-height: 32px;
		margin-bottom: 20px;
	}
	.md\:text-5xl {
		font-size: 24px !important;
	}
	#about p {
		font-size: 16px;
		margin-top: 15px;
	}
	.cta-section .md\:text-5xl {
		font-size: 26px;
		margin-bottom: 20px;
	}
	.cta-section p {
		font-size: 18px;
		margin-bottom: 25px;
	}
	.cta-section a {
		font-size: 14px;
		padding: 10px 20px;
	}
	.inner-banner-section .md\:p-20 {
		padding: 30px;
	}
	.inner-banner-section .md\:text-5xl {
		font-size: 22px;
	}
	.inner-banner-section {
		padding: 50px 0 !important;
	}
	.our-team-section .text-5xl {
		font-size: 30px;
	}
	.our-team-section p.text-2xl {
		font-size: 22px;
	}
	.our-team-section .leading-relaxed {
		font-size: 16px;
	}
	.our-team-section .gap-6 {
		gap: 20px;
	}
	.text-4xl {
		font-size: 28px !important;
	}
	.text-2xl {
		font-size: 20px !important;
	}
	.inner-team-box .p-10 {
		padding: 20px;
	}
	.py-20,
	.py-16 {
		padding: 30px 0 !important;
	}
	.md\:text-6xl {
		font-size: 30px !important;
	}
	.pt-20 {
		padding-top: 30px !important;
	}
	.philosophy-section .p-10 {
		padding: 20px;
	}
	.pb-24 {
		padding-bottom: 20px !important;
	}
	.philosophy-section .sel-badge {
		font-size: 14px;
		padding: 6px 11px;
		display: flex;
		align-items: center;
		gap: 5px;
	}
	.p-8 {
		padding: 20px !important;
	}
	.mb-20 {
		margin-bottom: 20px !important;
	}
	.contact-us-section .text-slate-600 {
		font-size: 18px !important;
	}
}

@media screen and (max-width: 479px) {
	.banner-section .text-5xl {
		font-size: 21px;
	}
	.inner-team-box .blurred-rect-frame {
		width: 100% !important;
	}
		.swiper-wrapper {
  padding-bottom: 40px !important;
}
	#g-review.layout_style-1 .g-review { padding: 20px !important; }
#google-reviews #g-review .swiper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-next {
  right: 35% !important;
}
#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-prev {
  left: 35% !important;
}
#google-reviews .slider-prev-next-wrapper .grwp-swiper-button-prev, #google-reviews .slider-prev-next-wrapper .grwp-swiper-button-next {
  margin-top: 0 !important;
  bottom: 0px !important;
  transform: none !important;
  top: auto !important;
}

}
@media screen and (max-width: 399px) {
.connections-contact-form .wpcf7-form-control {
  width: 90% !important;
	}
	.connections-contact-form iframe { width: 275px !important; }
}
