/* =========================================================
   Reusable ACF sections (janeearle theme) – fully responsive
   Mobile-first. Breakpoints (Bootstrap 3 ke saath match):
     < 768px  : mobile
     768px+   : tablet
     992px+   : desktop
   ========================================================= */

/* ---------- Base / safety net ---------- */
.je-section {
	position: relative;
	overflow-x: hidden;        /* kuch bhi screen se bahar na jaye */
	overflow-x: clip;
}
.je-section *,
.je-section *::before,
.je-section *::after {
	box-sizing: border-box;
}
.je-section img {
	max-width: 100%;
	height: auto;
	display: block;
}
.je-section .je-heading,
.je-section .je-subheading,
.je-section .je-text {
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}
.je-section .row > [class*="col-"] {
	min-width: 0;              /* flex/grid children ko shrink hone do */
}
.je-section .btn {
	white-space: normal;       /* lambe button text wrap ho jaye */
	max-width: 100%;
}
.je-content p:last-child { margin-bottom: 0; }

/* Mobile par section padding thodi kam */
@media (max-width: 767px) {
	.je-section .container.inner {
		padding-top: 50px;
		padding-bottom: 50px;
	}
	.je-section .section-title {
		margin-bottom: 20px;
	}
	.je-section .lead {
		font-size: 16px;
	}
}

/* ---------- Centred Heading & Text ---------- */
.je-centered-text .je-content { margin-bottom: 0; }

/* ---------- Three-Column Image & Text ---------- */
.je-three-col__row {
	display: flex;
	flex-wrap: wrap;
}
.je-three-col__item {
	width: 100%;               /* mobile: 1 column */
	margin-bottom: 40px;
	text-align: center;
}
.je-three-col__item:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
	.je-three-col__item {
		width: 33.3333%;       /* tablet+ : 3 columns */
		margin-bottom: 30px;
	}
}
.je-three-col__image {
	margin: 0 0 20px;
	overflow: hidden;
}
.je-three-col__image img {
	width: 100%;
	transition: transform .4s ease;
}
.je-three-col__image a:hover img { transform: scale(1.04); }
.je-three-col__title {
	margin: 0 0 10px;
	font-size: 18px;
}
@media (min-width: 992px) {
	.je-three-col__title { font-size: 20px; }
}
.je-btn-small { padding: 8px 18px; font-size: 13px; }

/* ---------- Image & Text ---------- */
.je-image-text__row > [class*="col-"] {
	left: auto;                /* bootstrap push/pull reset (flex order use hota hai) */
	right: auto;
}
.je-image-text__media {
	margin-bottom: 30px;       /* mobile: image upar, text neeche */
}
.je-image-text__media img { width: 100%; }

@media (min-width: 768px) {
	.je-image-text__row {
		display: flex;
		align-items: center;
	}
	.je-image-text__media { margin-bottom: 0; }
	.je-image-right .je-image-text__media { order: 2; }
	.je-image-right .je-image-text__body  { order: 1; }
	.je-image-left  .je-image-text__body  { padding-left: 25px; }
	.je-image-right .je-image-text__body  { padding-right: 25px; }
}
@media (min-width: 992px) {
	.je-image-left  .je-image-text__body  { padding-left: 50px; }
	.je-image-right .je-image-text__body  { padding-right: 50px; }
}

/* ---------- Testimonials ---------- */
.je-testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;          /* mobile: 1 card per row */
	gap: 20px;
	width: 100%;
}
@media (min-width: 768px) {
	.je-testimonials__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));   /* tablet: 2 */
		gap: 25px;
	}
}
@media (min-width: 992px) {
	.je-testimonials__grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
		gap: 30px;
	}
}
.je-testimonial {
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 20px 18px;
	border: none;
	border-left: 3px solid currentColor;
	background: rgba(0, 0, 0, .03);
	font-size: inherit;
}
@media (min-width: 768px) {
	.je-testimonial { padding: 30px; }
}
.dark-wrapper .je-testimonial { background: rgba(255, 255, 255, .05); }

.je-testimonial__quote {
	font-style: italic;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 18px;
}
@media (min-width: 768px) {
	.je-testimonial__quote { font-size: 16px; }
}
.je-testimonial__author {
	display: flex;
	align-items: center;
	gap: 12px;
}
.je-testimonial__author::before { content: none; } /* bootstrap blockquote dash hatao */
.je-testimonial__photo { flex: 0 0 auto; }
.je-testimonial__photo img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}
@media (min-width: 768px) {
	.je-testimonial__photo img { width: 56px; height: 56px; }
}
.je-testimonial__meta { min-width: 0; }
.je-testimonial__name {
	display: block;
	font-style: normal;
	font-weight: 600;
}
.je-testimonial__role {
	display: block;
	font-size: 13px;
	opacity: .7;
}

/* ---------- Call to Action ---------- */
.je-cta {
	background-size: cover;
	background-position: center;
}
.je-cta--has-image::before {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(0, 0, 0, .55);
}
.je-cta__inner { position: relative; z-index: 1; }
.je-cta--has-image .je-cta__title,
.je-cta--has-image .je-cta__text { color: #fff; }

@media (max-width: 767px) {
	.je-cta .je-cta__btn {
		display: block;
		width: 100%;
	}
}
@media (min-width: 992px) {
	/* desktop par halka parallax feel (mobile/iOS par off, wahan bug hota hai) */
	.je-cta--has-image { background-attachment: fixed; }
}

/* =========================================================
   Style Options (Heading / Text size & color)
   Wrapper par CSS variables: --je-h-size, --je-h-color,
   --je-t-size, --je-t-color
   ========================================================= */

/* Heading size: mobile 65%, tablet 80%, desktop 100% (kam se kam 20px) */
.je-section.je-has-hsize .je-heading {
	font-size: max(20px, calc(var(--je-h-size) * .65));
	line-height: 1.2;
}
@media (min-width: 768px) {
	.je-section.je-has-hsize .je-heading {
		font-size: max(20px, calc(var(--je-h-size) * .8));
	}
}
@media (min-width: 992px) {
	.je-section.je-has-hsize .je-heading {
		font-size: var(--je-h-size);
	}
}

/* Heading color (sub-headings bhi) */
.je-section.je-has-hcolor .je-heading,
.je-section.je-has-hcolor .je-subheading {
	color: var(--je-h-color);
}

/* Text size: mobile 90% (kam se kam 14px), tablet+ full */
.je-section.je-has-tsize .je-text,
.je-section.je-has-tsize .je-text p,
.je-section.je-has-tsize .je-text li {
	font-size: max(14px, calc(var(--je-t-size) * .9));
	line-height: 1.7;
}
@media (min-width: 768px) {
	.je-section.je-has-tsize .je-text,
	.je-section.je-has-tsize .je-text p,
	.je-section.je-has-tsize .je-text li {
		font-size: var(--je-t-size);
	}
}

/* Text color */
.je-section.je-has-tcolor .je-text,
.je-section.je-has-tcolor .je-text p,
.je-section.je-has-tcolor .je-text li,
.je-section.je-has-tcolor .je-testimonial__role {
	color: var(--je-t-color);
}

/* =========================================================
   Contact page – left side (map / featured image)
   ========================================================= */
.je-contact-media {
	position: relative;
	height: 100%;
	min-height: 600px;
}
.je-contact-media__map,
.je-contact-media__image {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.je-contact-media__map { filter: grayscale(1); }  /* site ka black & white look */
.je-contact-media__image {
	background-size: cover;
	background-position: center;
}
/* ACF "map" field ka apna iframe bhi poori jagah le */
.je-contact-media--acf iframe {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}
