/**
 * Jain Mission Hospital: theme styles on top of Bootstrap 5.3.
 *
 * Change the --jmh-* tokens; the Bootstrap variables below follow them.
 * Width breakpoints are grouped in the "Responsive" section at the end.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--jmh-navy: #2c2c82;
	--jmh-navy-rgb: 46, 49, 146;
	--jmh-navy-dark: #23256f;
	--jmh-green: #6e9916;
	--jmh-green-1: rgba(110,153,22,0.9);
	--jmh-green-2:#9fcf3c;
	--jmh-brown: #b2423f;
	--jmh-brown-1: rgba(178,66,63,0.9);
	--jmh-black-1:rgba(37,37,38,0.7);
	--jmh-white: #fff;
	--jmh-text: #252526;
	--jmh-text-muted: #5c5c5c;
	--jmh-border: #e5e5e5;
	--jmh-black:#000;

	--jmh-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Map tokens onto Bootstrap. */
	--bs-primary: var(--jmh-navy);
	--bs-primary-rgb: var(--jmh-navy-rgb);
	--bs-link-color: var(--jmh-navy);
	--bs-link-color-rgb: var(--jmh-navy-rgb);
	--bs-link-hover-color: var(--jmh-navy-dark);
	--bs-body-font-family: var(--jmh-font);
	--bs-body-color: var(--jmh-text);
	--bs-focus-ring-color: rgba(var(--jmh-navy-rgb), 0.25);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
 
p,h1,h2,h3,h4,h5{ margin: 0px;}
a, a:hover{ text-decoration: none;}
.text1 {font-size: 35px;font-weight: 500;line-height: 40px;color: var(--jmh-black);}
.text2 {font-size: 60px;  font-weight: 600;  line-height: 65px;  letter-spacing: -0.5px;  color: var(--jmh-white);}
.text3{font-size: 14px;  font-weight: 600;  color: var(--jmh-green-2);  text-transform: uppercase;}
.text4{font-size: 17px; font-weight: 500;  line-height: 24px;  color: var(--jmh-white);}
.text5{font-size: 16px;}
.text6{font-size: 20px; font-weight: 600;  line-height: 25px;  }
.text7{font-size: 40px;font-weight: 500;line-height: 45px;color: var(--jmh-black);}
.text8{font-size: 30px;font-weight: 500;line-height: 35px;color: var(--jmh-black);}
.text9{font-size: 25px;font-weight: 500;line-height: 30px;color: var(--jmh-black);}
.text10{font-size:50px;  font-weight: 600;  line-height:55px;}
.text11{font-size: 100px;line-height: 100px;  font-weight: 600;}

.clr-white{color:#fff;}
.clr-white1{color:rgba(255,255,255,0.7);}
.clr-grey{color:#252526;}
.clr-grey1{color:rgba(45,45,48,0.8);}
.clr-grey2{color:rgba(45,45,48,1);}
.clr-blue1{ color:#f3f6ff;}
.clr-blue2{ color:#2c2c82;}
.clr-blk{ color:#000}
.clr-green1{color:#9fcf3c;}
.txt-uppr{ text-transform: uppercase;}
.txt-cntr{ text-align: center;}
.wgt-rglr{font-weight: 400;}
.wgt-mdm{font-weight: 500;}
.wgt-semi{	font-weight: 600;}


.wdt1{width: 500px;}
.wdt2{width: 400px;}
.wdt3{width: 540px;}
.wdt4{width: 920px;}
.wdt5{width: 410px;}
.wdt6{ width: 80%;}
.wdt7{width: 925px;}
.wdt8{width: 450px;}
.wdt9{ width: 500px;}
.wdt10{ width:600px;}

.events-banner .wdt2 {width: 530px;}
.mrg1{ margin: 0 auto;}
.mrg-btm1{ margin-bottom: 10px;}
.mrg-btm2{ margin-bottom: 15px;}
.mrg-btm3{ margin-bottom: 30px;}
.mrg-btm4{ margin-bottom: 50px;}
.mrg-btm5{ margin-bottom: 5px;}
.pdg1{ padding: 100px 0px;}
.pdg2{ padding: 50px 0px;}

.bg-blue{background:#fbfcff;}
.bg-blue1{ background:#def2f4;}
.bg-green1{ background:#84ab8d;}
.bg-green2{ background:#f3fdf5;}

.pstn-rltv{position: relative;	}
.z-1{z-index: 1;}
.alc{align-items: center;}
.ale{align-items: end;}
.jsb{justify-content: space-between; }
.d-flx{display: flex;lex-wrap: wrap; }
.brk-wb{ display: block;}
.container1{ width: 1440px; max-width: 1440px;}
.container2{ width: 1320px; max-width: 1320px;}
.gap1{--bs-gutter-x: 30px; --bs-gutter-y: 0;}
.gap2{--bs-gutter-x: 70px;}
.doctors-section{ background: url(/wp-content/uploads/2026/10/sec-dr-bg.webp) no-repeat 100% 100%; background-size: cover;}

ul{ padding: 0px; margin: 0px;}
.ul1 li {
  font-size: 17px;
  font-weight: 500;
  line-height: 24px; 
  color:rgba(45,45,48,0.8);
  padding-left: 20px;
  background: url(/wp-content/uploads/2026/10/icon-green-5.jpg)no-repeat;
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto;
  background-size: 8px;
  background-position: 0px 8px;
  list-style: none;
  margin: 0px 0px 10px 0px;
}


/* Facilities page: one grey card per facility, photo left, text right. */
.facility-box {
	display: grid;
	grid-template-columns: 38% 1fr;
	min-height: 360px;
	overflow: hidden;
	background: #f6f6f6;
	border-radius: 10px;
}

.facility-box + .facility-box {
	margin-top: 55px;
}

.facility-box--no-image {
	grid-template-columns: 1fr;
}

/*
 * Photo covers the card's left side (cropped to fit). The card's height comes
 * from the text (min 360px); the photo is absolutely positioned so it never
 * sizes the card.
 */
.facilities-list .facility-box__media {
	position: relative;
	min-width: 0;
	height: 100%;
	min-height: 260px;
	overflow: hidden;
	border-radius: 10px;
}

.facility-box__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.facility-box__body {
	align-self: center;
	padding: 45px 45px 45px 45px;
}

.facility-box__title {
	margin-bottom: 14px;
	font-size: 22px;
	font-weight: 500;
	line-height: 30px;
	color: var(--jmh-navy);
}

.facility-box__text > :last-child {
	margin-bottom: 0;
}

/* Bullet lists: two columns, small navy squares (replaces the .ul1 image). */
.facility-box__text ul {
	padding: 0;
	margin: 20px 0 0;
	list-style: none;
	columns: 2;
	column-gap: 30px;
}

.facility-box__text ul li {
	position: relative;
	padding-left: 16px;
	margin: 0 0 10px;
	background: none;
	break-inside: avoid;
	color: var(--jmh-text);
}

.facility-box__text ul li::before {
	position: absolute;
	top: 10px;
	left: 2px;
	width: 5px;
	height: 5px;
	content: "";
	background: var(--jmh-navy);
}

.careers__status {
	margin-bottom: 40px;
}

/* Careers: "Open Positions" label, then one grey card per job. */
.careers__label {
	margin-bottom: 20px;
}

.job-card {
	padding: 26px 26px 34px;
	background: #f4f4f4;
	border-radius: 10px;
}

.job-card + .job-card {
	margin-top: 25px;
}

.job-card__head {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	justify-content: space-between; 
}


.job-card__intro {
	margin-bottom: 16px;
}

/* Details: label left, text or list right. */
.job-card__details {
	margin: 0;
}

.job-card__row {
	display: grid;
	grid-template-columns: 135px 1fr;
	gap: 0 30px;
}

.job-card__row + .job-card__row {
	margin-top: 12px;
}

 

.job-card__value {
	margin: 0;
}

/* The job content brings its own utility classes; only reset the spacing. */
.job-card__value > *,
.job-card__intro > * {
	margin-bottom: 0;
}

.job-card__value > * + * {
	margin-top: 8px;
}

.job-card__value ul,
.job-card__value .ul1 li {
	margin-bottom: 0;
}


/* ==========================================================================
   Bootstrap component overrides
   ========================================================================== */

/* Compiled Bootstrap hard-codes button colours, so map them here. */
.btn-primary {
	--bs-btn-bg: var(--jmh-navy);
	--bs-btn-border-color: var(--jmh-navy);
	--bs-btn-hover-bg: var(--jmh-navy-dark);
	--bs-btn-hover-border-color: var(--jmh-navy-dark);
	--bs-btn-active-bg: var(--jmh-navy-dark);
	--bs-btn-active-border-color: var(--jmh-navy-dark);
	--bs-btn-disabled-bg: var(--jmh-navy);
	--bs-btn-disabled-border-color: var(--jmh-navy);
}

.btn-outline-primary {
	--bs-btn-color: var(--jmh-navy);
	--bs-btn-border-color: var(--jmh-navy);
	--bs-btn-hover-bg: var(--jmh-navy);
	--bs-btn-hover-border-color: var(--jmh-navy);
	--bs-btn-active-bg: var(--jmh-navy-dark);
	--bs-btn-active-border-color: var(--jmh-navy-dark);
}

.form-control:focus {
	border-color: rgba(var(--jmh-navy-rgb), 0.5);
}

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 14px;
	color: var(--bs-secondary-color);
}

.jmh-icon {
	display: block;
	flex-shrink: 0;
}

/* ==========================================================================
   Header: top row
   ========================================================================== */
.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1080;
	padding: 12px 16px;
	background: var(--jmh-white);
}

.site-header {
	position: relative;
	z-index: 1000;
	background: var(--jmh-white);
}

.site-header__top-inner {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding-block: 12px;
}

.site-header__brand {
	display: flex;
	gap: 20px;
	align-items: center;
}

.site-header__brand .custom-logo {
	display: block;
	width: auto;
	height: 70px;
}

.site-header__badge {
	display: block;
	width: auto;
	height: 80px;
}

.site-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--jmh-navy);
	text-decoration: none;
}

.site-header__actions {
	display: flex;
	gap: 16px;
	align-items: center;
}

/* Hamburger */
.site-header__toggler {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--jmh-text);
	background: transparent;
	border: 0;
}

.site-header__toggler .jmh-icon {
	width: 28px;
	height: 28px;
}

.site-header__toggler-close,
.site-header__toggler[aria-expanded="true"] .site-header__toggler-open {
	display: none;
}

.site-header__toggler[aria-expanded="true"] .site-header__toggler-close {
	display: block;
}

/* Contact blocks */
.header-contact {
	display: flex;
	gap: 24px;
	align-items: center;
}

.header-contact__item {
	display: flex;
	gap: 10px;
	align-items: center;
	line-height: 1.2;
	text-decoration: none;
}

.header-contact__item--appointment {
	color: var(--jmh-green);
}

.header-contact__item--emergency {
	color: var(--jmh-brown);
}

.header-contact__item:hover,
.header-contact__item:focus {
	
}

.header-contact__item--appointment:hover .header-contact__value,
.header-contact__item--emergency:hover .header-contact__value {
	text-decoration: none;
}

.header-contact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: currentColor;
	border-radius: 50%;
}

.header-contact__icon .jmh-icon {
	width: 18px;
	height: 18px;
	color: var(--jmh-white);
}

.header-contact__text {
	display: flex;
	flex-direction: column;
}

.header-contact__label {
	font-size: 10px;
  font-weight: 600;
	text-transform: uppercase;
}

.header-contact__value {
	font-size: 15px;
	font-weight: 600;
}
.header-contact__item--appointment .header-contact__label{color: var(--jmh-green-1);}
.header-contact__item--emergency .header-contact__label{color: var(--jmh-brown-1);}


.header-contact__divider {
	width: 1px;
	height: 32px;
	background: var(--jmh-border);
}


/* ==========================================================================
   Header: primary navigation (shared)
   ========================================================================== */
.site-nav__menu,
.submenu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
}

.submenu-toggle .jmh-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .jmh-icon {
	transform: rotate(180deg);
}

/* Wrapper is what shows/hides (and animates height on mobile), so the
   multi-column list inside never reflows mid-animation. */
.submenu-wrap {
	display: none;
}

.is-open > .submenu-wrap {
	display: block;
}

.submenu__item {
	break-inside: avoid;
}

.submenu__link {
	display: inline-block;
	padding: 10px 0px 0px 0px;
	font-size: 15px;
	font-weight: 400;
	color: var(--jmh-black-1);	 
	transition: all 0.5s ease;
	border-bottom:1px solid transparent;
	text-decoration: none;
}

.submenu__link:hover,
.submenu__link:focus,
.submenu__item.is-active > .submenu__link {
	color: var(--jmh-text);
	border-bottom:1px solid var(--jmh-text);
	
}

/* Long submenus (8+ items) use two columns. */
.submenu:has(> li:nth-child(8)) {
	columns: 2;
	column-gap:50px;
}

@media (prefers-reduced-motion: reduce) {
	.site-nav__menu > .nav-item::after,
	.submenu-toggle .jmh-icon,
	body::after {
		transition: none;
	}
}

/* ==========================================================================
   Section: page banner (listing pages: Doctors, Events)
   Label and heading use the utility classes text3 and text2.
   ========================================================================== */
.page-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(380px, 34vw, 650px);
	overflow: hidden;
	background: var(--jmh-navy);
}

/* No photo set: a plain navy band. */
.page-banner--no-image {
	min-height: 0;
	padding: 80px 0;
}

.page-banner__media,
.page-banner__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.page-banner__image {
	object-fit: cover;
	object-position: right center;
}

/* Dark on the left so the white heading reads; clear over the right side. */
.page-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(30, 30, 32, 0.92) 0%, rgba(30, 30, 32, 0.7) 28%, rgba(30, 30, 32, 0) 58%);
}

.page-banner__content {
	position: relative;
	z-index: 1;
	padding-block: 60px;
}

/* Page-load animation: label and heading fade up (the Home banner's keyframes). */
.page-banner__content > * {
	animation: jmh-hero-text-in 0.7s ease-out both;
}

.page-banner__content > :nth-child(1) {
	animation-delay: 0.1s;
}

.page-banner__content > :nth-child(2) {
	animation-delay: 0.2s;
}

.page-banner__content > :nth-child(n+3) {
	animation-delay: 0.3s;
}

/* Optional paragraph under the heading (text4 wgt-rglr, white). */
.page-banner__text {
	max-width: 480px;
}


@media (prefers-reduced-motion: reduce) {
	.page-banner__content > * {
		animation: none;
	}
}

/* Listing grids: gap1 has no vertical gutter on desktop, so rows need one. */
.doctors-archive .row,
.events-archive .row {
	--bs-gutter-y: 40px;
}

/* Doctors listing: department dropdown, then one group per department. */
.doctors-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.doctors-filter__select {
	width: 340px;
	max-width: 100%;
	padding: 12px 40px 12px 18px;
	font-size: 16px;
	color: #2d2d30;
	border: 1px solid #b9b9bd;
	border-radius: 2px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.doctors-filter__select:focus {
	border-color: var(--jmh-navy);
	box-shadow: 0 0 0 3px rgba(var(--jmh-navy-rgb), 0.15);
}

.doctors-group:not([hidden]) ~ .doctors-group:not([hidden]) {
	margin-top: 70px;
}


/* ==========================================================================
   Section: values slider (About page)
   Full-width photo per value, cross-fade (values-slider.js). The list of
   values sits on the left; the current value's title and text are centred.
   ========================================================================== */
.values-slider {
	position: relative;
	overflow: hidden;
	background: var(--jmh-navy);
}

/* Scoped under .values-slider so these beat Swiper's own .swiper-slide rules
   (height: 100%; display: block), which load after main.css. */
.values-slider .values-slide {
	position: relative;
	display: flex;
	align-items: center;
	height: clamp(560px, 42vw, 800px);
	overflow: hidden;
	background: var(--jmh-navy);
}

.values-slide__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.values-slide__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 24, 0.5);
}

.values-slide__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.values-slide__title {
	margin-bottom: 30px;
 
}

 

/* Label and list of values, laid over the slides on the left. */
.values-slider__nav {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding-block: 110px;
	pointer-events: none;
}

.values-slider__list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 0;
	margin: auto 0;
	list-style: none;
}

.values-slider__tab {
	display: flex;
	gap: 22px;
	align-items: center;
	padding: 6px 0;
	pointer-events: auto;
	background: transparent;
	border: 0;
	opacity: 0.85;
	transition: opacity 0.3s ease;
}

.values-slider__tab:hover,
.values-slider__tab:focus-visible,
.values-slider__tab.is-active {
	opacity: 1;
}

.values-slider__tab:focus-visible {
	outline: 2px solid var(--jmh-white);
	outline-offset: 4px;
}

/* Green dot; the current value gets a soft green ring. */
.values-slider__dot {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	background: var(--jmh-green);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(110, 153, 22, 0.4);
	transition: box-shadow 0.3s ease;
}

.values-slider__tab.is-active .values-slider__dot {
	box-shadow: 0 0 0 10px rgba(110, 153, 22, 0.4);
}


@media (prefers-reduced-motion: reduce) {
	.values-slider__tab,
	.values-slider__dot {
		transition: none;
	}
}

/* ==========================================================================
   Section: About message ("Our Message To Everyone")
   Text uses text1, text4, text5, clr-*, wgt-* and mrg-btm* classes.
   ========================================================================== */
 
 

/* Photo fills its column with rounded corners. */
.about-message__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.about-message__button {
	margin-top: 30px;
}


 


/* ==========================================================================
   Section: Vision & Mission (About page)
   Sizes and colours come from text2, text4, text5, clr-* and wgt-* classes.
   ========================================================================== */
/* Rows: dot + title left, text right (top-aligned), thin line under each. */
.vision-mission__row {
	padding-block: 40px;
	border-bottom: 1px solid var(--jmh-border);
}

.vision-mission__title {
	display: flex;
	gap: 24px;
	align-items: center;
	margin: 0;
}

.vision-mission__text {
	margin: 0;
}

/* Green dot in a pale green ring. */
.vision-mission__dot {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	background: #eaf3d9;
	border-radius: 50%;
}

.vision-mission__dot::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	content: "";
	background: var(--jmh-green);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

 


/* ==========================================================================
   Section: hero banner
   ========================================================================== */
.hero {
	position: relative;
	background: var(--jmh-navy);
}

.hero__carousel {
	position: relative;
}

/*
 * Page-load animation (first view only): the photo eases in from slightly
 * zoomed, then the text, button and dots fade up one after another.
 *
 * CSS only, so it starts with the first paint. main.js adds .is-ready to
 * .hero two seconds after load, which switches these rules off; later slide
 * changes are animated by the carousel script instead, so nothing plays twice.
 */
@keyframes jmh-hero-image-in {
	from {
		opacity: 0.3;
		transform: scale(1.06);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes jmh-hero-text-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.hero__media {
	overflow: hidden; /* keeps the zoomed photo inside its area */
}

.hero:not(.is-ready) .hero__slide.active .hero__image {
	animation: jmh-hero-image-in 1.2s ease-out both;
}

.hero:not(.is-ready) .hero__slide.active .hero__content > * {
	animation: jmh-hero-text-in 0.7s ease-out both;
}

.hero:not(.is-ready) .hero__slide.active .hero__content > :nth-child(1) {
	animation-delay: 0.3s;
}

.hero:not(.is-ready) .hero__slide.active .hero__content > :nth-child(2) {
	animation-delay: 0.4s;
}

.hero:not(.is-ready) .hero__slide.active .hero__content > :nth-child(3) {
	animation-delay: 0.5s;
}

.hero:not(.is-ready) .hero__slide.active .hero__content > :nth-child(4) {
	animation-delay: 0.6s;
}

.hero:not(.is-ready) .hero__slide.active .hero__content > :nth-child(n+5) {
	animation-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
	.hero:not(.is-ready) .hero__slide.active .hero__image,
	.hero:not(.is-ready) .hero__slide.active .hero__content > * {
		animation: none;
	}
}

.hero__slide {
	position: relative;
	height: 600px;
	overflow: hidden;
}

.hero__media,
.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__image {
	object-fit: cover;
	object-position: center;
}

.hero__slide--focus-left .hero__image {
	object-position: left center;
}

.hero__slide--focus-right .hero__image {
	object-position: right center;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	height: 100%;
	padding-bottom: 0;
}

 

 
 

.btn-jmh,
.hero__btn {
	--bs-btn-padding-x: 20px;
	--bs-btn-padding-y: 8px;
	--bs-btn-font-size: 15px;
	--bs-btn-font-weight: 500;
	--bs-btn-color: var(--jmh-white);
	--bs-btn-bg: var(--jmh-green);	 
	--bs-btn-border-radius: 10px;
	--bs-btn-hover-color: var(--jmh-white);
	--bs-btn-hover-bg: var(--jmh-navy);	 
	--bs-btn-active-color: var(--jmh-white);
	--bs-btn-active-bg: var(--jmh-navy);
	transition: all 0.5s ease;

}

/*
 * btn-jmh: "sweep to right" hover. The button stays green; a white layer
 * (::before) slides in smoothly from the left, and the text turns green.
 * The border is green in both states, so nothing shifts.
 */
.btn-jmh {
	--bs-btn-border-color: var(--jmh-green);
	--bs-btn-hover-color: var(--jmh-green);
	--bs-btn-hover-bg: var(--jmh-green); /* the white comes from the sweeping layer */
	--bs-btn-hover-border-color: var(--jmh-green);
	--bs-btn-active-color: var(--jmh-green);
	--bs-btn-active-bg: var(--jmh-green);
	--bs-btn-active-border-color: var(--jmh-green);
	position: relative;
	z-index: 0; /* keeps the ::before layer above the button's own background */
	overflow: hidden; /* clips the layer to the rounded corners */
	transition: color 0.45s ease;
}

.btn-jmh::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: var(--jmh-white);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s ease;
}

.btn-jmh:hover::before,
.btn-jmh:focus-visible::before {
	transform: scaleX(1);
}

.btn-jmh:focus-visible {
	color: var(--jmh-green);
}

/*
 * btn-blue: navy version of btn-jmh (same size and "sweep to right" hover).
 * A white layer slides in from the left; text and border turn navy.
 */
.btn-blue {
	--bs-btn-padding-x: 20px;
	--bs-btn-padding-y: 8px;
	--bs-btn-font-size: 15px;
	--bs-btn-font-weight: 500;
	--bs-btn-border-radius: 8px;
	--bs-btn-color: var(--jmh-white);
	--bs-btn-bg: var(--jmh-navy);
	--bs-btn-border-color: var(--jmh-navy);
	--bs-btn-hover-color: var(--jmh-navy);
	--bs-btn-hover-bg: var(--jmh-navy); /* the white comes from the sweeping layer */
	--bs-btn-hover-border-color: var(--jmh-navy);
	--bs-btn-active-color: var(--jmh-navy);
	--bs-btn-active-bg: var(--jmh-navy);
	--bs-btn-active-border-color: var(--jmh-navy);
	position: relative;
	z-index: 0;
	overflow: hidden;
	transition: color 0.45s ease;
}

.btn-blue::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: var(--jmh-white);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s ease;
}

.btn-blue:hover::before,
.btn-blue:focus-visible::before {
	transform: scaleX(1);
}

.btn-blue:focus-visible {
	color: var(--jmh-navy);
}

@media (prefers-reduced-motion: reduce) {
	.btn-blue,
	.btn-blue::before {
		transition: none;
	}
}

/* Reduced motion: switch colours instantly, no sweep. */
@media (prefers-reduced-motion: reduce) {
	.btn-jmh,
	.btn-jmh::before {
		transition: none;
	}
}

/*
 * Dots: directly under the button in each slide, left-aligned with the text.
 * Each button is a 24px tap target with the visible dot drawn inside it; the
 * -7px margin lines the first visible dot up with the text edge.
 */
.hero .hero__dots {
	display: flex; 
	align-items: center;
	margin: 50px 0 0 0px; /* -7px lines the first dot's circle up with the text edge */
}

.hero .hero__dots .hero__dot {
	position: relative;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	padding: 0;
	margin: 0;
	text-indent: 0;
	background: transparent;
	border: 0;
	opacity: 1;
}

/* Every dot is the same 10px circle: white by default. */
.hero .hero__dots .hero__dot::before {
	position: absolute;
	top: 50%;
	right: 7px;
	left: 0px;
	height: 8px;
	content: "";
	background: var(--jmh-white);
	border-radius: 50%;
	transform: translateY(-50%);
	transition: background-color 0.3s ease;
}

/* Current slide: same dot, green. */
.hero .hero__dots .hero__dot.active::before {
	background: var(--jmh-green);
}

.hero .hero__dots .hero__dot:focus-visible {
	outline: 2px solid var(--jmh-white);
	outline-offset: 2px;
	border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.hero .hero__dots .hero__dot,
	.hero .hero__dots .hero__dot::before {
		transition: none;
	}
}

/* ==========================================================================
   Content
   ========================================================================== */
.page-header,
.entry-header {
	margin-bottom: 24px;
}

.entry-meta {
	font-size: 14px;
	color: var(--bs-secondary-color);
}

.entry-summary-card,
.search-result {
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--bs-border-color);
}

.search-form {
	max-width: 480px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Keep page content clear of the logo that overlaps the footer's top edge. */


.site-footer {
	position: relative;
	padding: 55px 0 45px;
	color: var(--jmh-white);
	background: var(--jmh-navy);
}

.site-footer__inner {
	position: relative;
	z-index: 1;
}

/* Logo: pinned top-right, half above the footer. */
.site-footer__logo {
	position: absolute;
	top: -70px;
	right: 12px;
	transform: translateY(-50%);
}

.site-footer__logo .custom-logo {
	display: block;
	width: auto;
	height: 120px;
}

/* Decorative watermark (white silhouette of the logo). */
.site-footer__watermark {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.site-footer__watermark img {
	position: absolute;
	right: 22%;
	bottom: 0px;
	width: 200px;
	height: auto;
	opacity: 0.06;
	filter: brightness(0) invert(1);
}


/* Desktop: tagline | social icons, then menu | copyright. */
.site-footer__grid {
	display: grid;
	grid-template-areas:
		"tagline social"
		"nav     copyright";
	grid-template-columns: 1fr auto;
	gap: 30px 40px;
	align-items: end;
}

.site-footer__tagline {
	grid-area: tagline;
	margin: 0;
}

.footer-nav {
	grid-area: nav;
	align-self: center;
}

.site-footer__social {
	grid-area: social;
	display: flex;
	justify-content: flex-end;
	padding-bottom: 6px;
}

.site-footer__copyright {
	grid-area: copyright;
	align-self: center;
	text-align: right;
}

.footer-nav__menu {
	gap: 12px 40px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-nav__menu a {
	font-size: 15px;
	font-weight: 400;
	color: var(--jmh-white);
	transition: all 0.5s ease;
}
.footer-nav__menu a:hover{color: var(--jmh-green);}
 

.footer-social {
	display: flex;
	gap: 28px;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

/* Icons are inline SVGs with fill="currentColor": the link colour sets the icon colour. */
.footer-social__link {
	display: block;
	color: var(--jmh-white);
	transition: all 0.5s ease;
}

.footer-social__link:hover,
.footer-social__link:focus {
	color: var(--jmh-green);
}

.footer-social__icon {
	display: block;
	width: 24px;
	height: 24px;
}

.site-footer__copyright {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
	.footer-social__link {
		transition: none;
	}
}

/* ==========================================================================
   Card: event
   ========================================================================== */
.event-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.event-card__media {
	aspect-ratio: 16 / 9;
	margin-bottom: 10px;
	overflow: hidden;
	background: var(--bs-secondary-bg);
	border-radius: 10px;
}

.event-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

 

.event-card__link:hover .event-card__title,
.event-card__link:focus-visible .event-card__title {
	color: var(--jmh-green);
}

.event-card__link:hover .event-card__image,
.event-card__link:focus-visible .event-card__image {
	transform: scale(1.04);
}

.event-card__link:focus-visible {
	outline: 3px solid var(--jmh-navy);
	outline-offset: 6px;
	border-radius: 10px;
}

/*
 * Events slider (below 992px). grid-slider.js adds .is-slider and Swiper's
 * classes only while the slider is active, so these rules never touch the
 * desktop grid. Same approach as the doctors slider.
 */
.events-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

/* Arrows reuse the testimonials buttons; hidden until the slider is active. */
.events-section .events-nav {
	display: none;
}

.events-section .events-nav.is-active {
	display: flex;
}

/* Pagination (events listing) */
.jmh-pagination {
	margin-top: 48px;
}

.jmh-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.jmh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	color: var(--jmh-navy);
	text-decoration: none;
	border: 1px solid var(--jmh-border);
	border-radius: 6px;
}

.jmh-pagination .page-numbers.current,
.jmh-pagination a.page-numbers:hover {
	color: var(--jmh-white);
	background: var(--jmh-navy);
	border-color: var(--jmh-navy);
}

/* ==========================================================================
   Single event
   ========================================================================== */
/*
 * Grey band: title + details. The banner photo overlaps its bottom edge by
 * half the photo's height (--event-overlap, from the container width and the
 * photo's 3:1 crop; 16:9 on phones).
 */
.event-single {
	--event-overlap: calc(min(1320px, 90vw) / 6);
}

.event-band {
	padding: 60px 0 50px;
	background: #f2f2f2;
}

.event-band--has-image {
	padding-bottom: calc(var(--event-overlap) + 50px);
}

.event-band__title {
	margin-bottom: 26px;
	font-size: 30px;
	font-weight: 500;
	line-height: 38px;
	color: var(--jmh-black);
}

/* Details: small label left, grey text right. */
.event-details {
	margin: 0;
}

.event-details__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 0 20px;
}

.event-details__row + .event-details__row {
	margin-top: 10px;
}

 
 

/* Banner photo, pulled up over the band. */
.event-band--has-image + .event-single__body {
	padding-top: 0;
}

.event-banner {
	margin: calc(var(--event-overlap) * -1) 0 50px;
	overflow: hidden;
	border-radius: 10px;
}

.event-banner__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 1;
	object-fit: cover;
}

 
/* Brief: in the band, after the details. */
.event-single__brief {
	max-width: 900px;
	margin: 24px 0 0;
	line-height: 30px;
}

/* Gallery grid (3 per row). */
.event-gallery {
	--bs-gutter-x: 30px;
	--bs-gutter-y: 30px;
	max-width: 1100px;
}

.event-gallery__item {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--jmh-border);
}

.event-gallery__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


@media (prefers-reduced-motion: reduce) {
	.event-card__image,
	.event-card__title {
		transition: none;
	}
}

/* ==========================================================================
   Section: specialities
   ========================================================================== */
.section--light {
	background: #f8f9fe;
}

 

.speciality-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 160px;
	padding: 20px 12px;
	color: #111;
	text-align: center;
	text-decoration: none;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	transition: all 0.5s ease;
}

.speciality-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
}

.speciality-card__image {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

 

.speciality-card:hover,
.speciality-card:focus-visible {
	color: var(--jmh-navy);
	background: var(--jmh-white);
	border-color: var(--jmh-border);
}

.speciality-card:focus-visible {
	outline: 3px solid var(--jmh-navy);
	outline-offset: 2px;
}

/*
 * Specialities slider (below 992px). specialities-slider.js groups the cards
 * into pages (.speciality-page) and adds .is-slider only while active, so
 * these rules never touch the desktop grid.
 */
.specialities-nav {
	display: none; /* shown via .is-active while the slider is on */
	gap: 16px;
	align-items: center;
	margin-top: 32px;
}

.specialities-nav.is-active {
	display: flex;
}

.specialities-nav__line {
	flex: 1 1 0;
	height: 1px;
	background: #cfd3de;
}

.specialities-nav__btn {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #111;
	background: var(--jmh-white);
	border: 1px solid #cfd3de;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.specialities-nav__btn .jmh-icon {
	width: 14px;
	height: 14px;
}

.specialities-nav__btn:hover:not(.is-disabled),
.specialities-nav__btn:focus-visible {
	color: var(--jmh-white);
	background: var(--jmh-green);
	border-color: var(--jmh-green);
}

.specialities-nav__btn.is-disabled {
	cursor: default;
	opacity: 0.45;
}

.specialities-nav__count {
	min-width: 44px;
	margin: 0;
	font-size: 15px;
	color: #111;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.specialities-nav__btn {
		transition: none;
	}
}

/* ==========================================================================
   Single speciality page
   Text sizes, colours, weights, margins and section padding come from the
   utility classes in the templates (text1, text4, text5, clr-*, wgt-*,
   mrg-btm*, pdg1, gap1, d-flx...). Only what they cannot do lives here.
   ========================================================================== */

/* 1. Intro band (light grey). With a banner it extends behind the banner's top half. */
.speciality-intro {
	padding: 48px 0;
	background: #f1f1f3;
}

.speciality-intro--has-banner {
	padding-bottom: 150px;
}

.speciality-intro__inner {
	max-width: 100%; /* wdt4 is a fixed width; never wider than the container */
}

.speciality-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
}

/*
 * Page-load animation (the Home banner's fade-up keyframes): the heading,
 * intro, buttons and then the banner photo fade up one after another. No
 * zoom. The sections further down use the scroll-reveal.
 */
.speciality-intro__inner > * {
	animation: jmh-hero-text-in 0.7s ease-out both;
}

.speciality-intro__inner > :nth-child(1) {
	animation-delay: 0.1s;
}

.speciality-intro__inner > :nth-child(2) {
	animation-delay: 0.2s;
}

.speciality-intro__inner > :nth-child(n+3) {
	animation-delay: 0.3s;
}

.speciality-banner__figure {
	animation: jmh-hero-text-in 0.7s ease-out 0.4s both;
}

@media (prefers-reduced-motion: reduce) {
	.speciality-intro__inner > *,
	.speciality-banner__figure {
		animation: none;
	}
}

/* Underlined text link ("Our Doctors", "Call For Appointment"). */
.text-link {
	display: inline-block;
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: color 0.3s ease;
}

.text-link:hover,
.text-link:focus-visible {
	color: var(--jmh-green);
	text-decoration: underline;
}

/* 2. Banner photo, pulled up over the grey band. */
.speciality-banner {
	margin-top: -110px;
}

.speciality-banner__figure,
.speciality-care__figure {
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
}

.speciality-banner__image,
.speciality-care__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.speciality-banner__image {
	aspect-ratio: 3 / 1;
	min-height: 200px;
}

.speciality-care__image {
	aspect-ratio: 4 / 3;
}

/* Sections use pdg1; back-to-back white sections share one gap instead of two. */
.speciality-care + .speciality-content,
.speciality-care + .speciality-doctors,
.speciality-content + .speciality-doctors {
	padding-top: 0;
}

/* 3. Services: ticked list. */
.speciality-services__list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.speciality-services__item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	max-width: 380px;
}

.speciality-services__icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	color: var(--jmh-green);
}

/* 4. Optional editor content. */
.speciality-content .entry-content {
	max-width: 900px;
	line-height: 1.7;
}

/* 5. Doctors. Offset so the "Our Doctors" link lands with the heading in view. */
.speciality-doctors {
	scroll-margin-top: 24px;
}

/* Arrows reuse the testimonials buttons; hidden until the slider is active. */
.speciality-doctors-section .speciality-doctors-nav {
	display: none;
}

.speciality-doctors-section .speciality-doctors-nav.is-active {
	display: flex;
}

/* White buttons need an outline on this section's white background. */
.speciality-doctors-section .testimonials-nav__btn {
	border: 1px solid var(--jmh-border);
}

/* Doctor card (photo, name, qualifications, timings, call link). */
.doctor-detail-card__media {
	display: block;
	aspect-ratio: 1 / 1.03;
	margin-bottom: 18px;
	overflow: hidden;
	background: var(--bs-secondary-bg);
	border-radius: 10px;
}

.doctor-detail-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.5s ease;
}

/* Same hover as the Home doctor cards: the photo zooms when the card is hovered. */
.doctor-detail-card:hover .doctor-detail-card__image,
.doctor-detail-card:focus-within .doctor-detail-card__image {
	transform: scale(1.04);
}


@media (prefers-reduced-motion: reduce) {
	.text-link,
	.doctor-detail-card__image {
		transition: none;
	}
}

/* Shared "← back" link (speciality pages). */
.back-link {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	margin-bottom: 24px;
	font-size: 15px;
	color: var(--jmh-navy);
	text-decoration: none;
}

.back-link .jmh-icon {
	width: 18px;
	height: 18px;
}

.back-link:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.speciality-card,
	.speciality-card__title {
		transition: none;
	}
}

/* ==========================================================================
   Section: testimonials (Swiper)
   ========================================================================== */
.testimonials-section {
	overflow: hidden; /* clip the peeking card at the screen edge */
	background: #dff0f3;
}

.testimonials-nav {
	display: flex;
	gap: 12px;
}

.testimonials-nav__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #111;
	background: var(--jmh-white);
	border: 1px solid #cfd3de;
	border-radius: 50%;
	transition: all 0.5s ease;
}

.testimonials-nav__btn .jmh-icon {
	width: 14px;
	height: 14px;
}

.testimonials-nav__btn:hover:not(.is-disabled),
.testimonials-nav__btn:focus-visible {
	color: var(--jmh-white);
	background: var(--jmh-green);
	border-color: var(--jmh-green);
}

.testimonials-nav__btn.is-disabled {
	cursor: default;
	opacity: 0.45;
}

/* Let the next card peek past the container on the right only. */
.testimonials-section .testimonials-slider {
	overflow: visible;
	clip-path: inset(-20px -100vw -20px 0);
}

.testimonials-section .swiper-slide {
	height: auto; /* equal-height cards */
}

.testimonial-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 40px 30px;
	margin: 0;
	background: var(--jmh-white);
	border-radius: 10px;
}

 

.testimonial-card__quote {
	margin: 0;
}

 

@media (prefers-reduced-motion: reduce) {
	.testimonials-nav__btn {
		transition: none;
	}
}

/* ==========================================================================
   Section: facilities
   ========================================================================== */
 

.facility-card {
	display: block;
	color: #111;
	text-align: center;
	text-decoration: none;
}

.facility-card__media {
	aspect-ratio: 16 / 9;
	margin-bottom: 24px;
	overflow: hidden;
	background: var(--bs-secondary-bg);
	border-radius: 10px;
}

.facility-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

 

.facility-card--link:hover,
.facility-card--link:focus-visible {
	color: var(--jmh-green);
}

.facility-card--link:hover .facility-card__image,
.facility-card--link:focus-visible .facility-card__image {
	transform: scale(1.04);
}

.facility-card--link:focus-visible {
	outline: 3px solid var(--jmh-navy);
	outline-offset: 6px;
	border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
	.facility-card__image,
	.facility-card__caption {
		transition: none;
	}
}

/* ==========================================================================
   Section: doctors
   ========================================================================== */
.section--navy {
	color: var(--jmh-white);
	background: var(--jmh-navy);
}

 
 

.doctor-card {
	display: block;
	color: #111;
	text-decoration: none;
}

.doctor-card__media {
	aspect-ratio: 1 / 1.03;
	margin-bottom: 10px;
	overflow: hidden;
	background: var(--bs-secondary-bg);
	border-radius: 10px;
}

.section--navy .doctor-card__media {
	background: rgba(255, 255, 255, 0.08);
}

.doctor-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.5s ease;
}

.doctor-card__quals {
	font-size: 15px;
}

 

 

 

.doctor-card:hover .doctor-card__image {
	transform: scale(1.04);
}

/*
 * Doctors slider (below 992px). grid-slider.js adds .is-slider and Swiper's
 * classes only while the slider is active, so these rules never touch the
 * desktop grid. They cancel Bootstrap's row/column sizing so Swiper can size
 * the cards, and let the next card peek to the right edge of the screen.
 */
.doctors-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

/* Arrows reuse the testimonials buttons; hidden until the slider is active. */
.doctors-section .doctors-nav {
	display: none;
}

.doctors-section .doctors-nav.is-active {
	display: flex;
}

@media (prefers-reduced-motion: reduce) {
	.doctor-card__image {
		transition: none;
	}
}

/* ==========================================================================
   Section: about + stats (bento grid)
   ========================================================================== */
.about-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
}

.about-row + .about-row {
	margin-top: 20px;
}

.about-tile {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

/* Intro card: ~2.85x a stat card. */
.about-intro {
	flex: 2.85 1 0;
	min-height: 284px;
	padding: 40px 30px;
	color: var(--jmh-white);
	background: var(--jmh-navy);
}

.about-intro__text:last-of-type {
	margin-bottom: 0;
}

.about-intro__watermark {
	position: absolute;
	right: -100px;
	bottom: 0px;
	width: 219px;
	height: auto;
	pointer-events: none;
	opacity: 0.12;
	filter: brightness(0) invert(1);
}

/* Stat cards */
.stat-card {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-height: 284px;
	padding: 30px;
	color: #111;
}

.stat-card--teal {
	background: #7bb6bd;
}

.stat-card--outline {
	background: var(--jmh-white);
	border: 1px solid var(--jmh-border);
}

.stat-card--lavender {
	background: #f3ecfd;
}

.stat-card__value {
	font-variant-numeric: tabular-nums;
}

.stat-card__note {
	margin: auto 0 0;
}

/* Photo tiles: the wide photo is twice a stat card. */
.about-image {
	flex: 1 1 0;
	min-height: 284px;
	background: var(--bs-secondary-bg);
}

.about-image--wide {
	flex: 2 1 0;
}

.about-image__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* ==========================================================================
   Gallery page: category tabs (one scrollable line, ‹ › arrows top right) + photo grid
   ========================================================================== */
.gallery-tabs {
	position: relative;
	margin-bottom: 30px;
	padding: 6px;
	background: var(--jmh-navy);
	border-radius: 8px;
}

.gallery-tabs__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	/* Edges fade while there is more to that side (classes set by gallery.js). */
	--fade-start: 60px;
	--fade-end: 60px;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
}

.gallery-tabs__list::-webkit-scrollbar {
	display: none;
}

.gallery-tabs.is-at-start .gallery-tabs__list { --fade-start: 0px; }
.gallery-tabs.is-at-end .gallery-tabs__list { --fade-end: 0px; }

.gallery-tabs__item {
	flex: 0 0 auto;
}

.gallery-tabs__tab {
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	color: var(--jmh-white);
	background: transparent;
	border: 0;
	border-radius: 6px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery-tabs__tab:hover {
	background: rgba(255, 255, 255, 0.12);
}

.gallery-tabs__tab.is-active {
	color: var(--jmh-navy);
	background: var(--jmh-white);
}

/* Arrows above the bar, top right (buttons styled by .testimonials-nav__btn). */
.gallery-tabs-nav {
	justify-content: flex-end;
	margin-bottom: 12px;
}

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

.gallery-grid {
	--bs-gutter-x: 20px;
	--bs-gutter-y: 20px;
}

.gallery-grid__figure {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: var(--jmh-border);
}

.gallery-grid__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Touch screens swipe the bar; the arrows are for mouse users. */
@media (hover: none) {
	.gallery-tabs-nav { display: none; }
}


/* ==========================================================================
   Contact page: intro, form card (left), contact details (right).
   .contact-form__* below is shared with the Careers "Apply Now" pop-up;
   the compact card look is scoped under .contact-section.
   ========================================================================== */
 

 

/* Form card */
.contact-section__card {
	padding: 26px 26px 30px;
	background: #f6f6f6;
	border-radius: 10px;
}

.contact-section .contact-form__group {
	margin-bottom: 18px;
}

 
 

 

.contact-form__group {
	margin-bottom: 28px;
}

.contact-form__label {
	display: block;
	margin-bottom: 10px;
}

.contact-form__input {
	display: block;
	width: 100%;
	padding:5px 15px;
	font-size: 16px;
	line-height: 24px;
	color: var(--jmh-text);
	background: var(--jmh-white);
	border: 1px solid #b9bcc4;
	border-radius: 5px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__input::placeholder {
	color: #a9acb3;
}

.contact-form__input:focus {
	outline: 0;
	border-color: var(--jmh-navy); 
}

.contact-form__input.is-invalid {
	border-color: var(--jmh-brown);
}

textarea.contact-form__input {
 
	resize: vertical;
}

.contact-form__error {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--jmh-brown);
}
 

.contact-form__submit.is-sending {
	opacity: 0.7;
	pointer-events: none;
}

/* Google reCAPTCHA v3: badge hidden; this note under Submit replaces it (Google's rule). */
.grecaptcha-badge {
	visibility: hidden;
}

.contact-form__recaptcha {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 19px;
	color: var(--jmh-text);
	opacity: 0.75;
}

.contact-form__recaptcha a {
	color: inherit;
	text-decoration: underline;
}

.contact-form__status {
	margin-bottom: 28px;
	padding: 16px 20px;
	font-size: 16px;
	color: #24562f;
	background: #e3f4e6;
	border-left: 4px solid var(--jmh-green);
}

.contact-form__status.is-error {
	color: #7a2a28;
	background: #fbeceb;
	border-left-color: var(--jmh-brown);
}

.contact-form__status:focus {
	outline: 0;
}

/* Bot trap: off screen, never seen by people. */
.contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Contact details: navy heading, then small label | value rows. */
.contact-block + .contact-block {
	margin-top: 36px;
}

 

.contact-block__list {
	margin: 0;
}

.contact-block__row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 0 20px;
}

.contact-block__row + .contact-block__row {
	margin-top: 10px;
}
 
 

/* ==========================================================================
   Insurance page: "Our Tie-ups" logo grid
   Heading uses text1, clr-blue2 and text-center.
   ========================================================================== */
.tie-ups__title {
	margin-bottom: 50px;
}

.tie-ups__grid {
	--bs-gutter-x: 40px;
	--bs-gutter-y: 40px;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

.tie-ups__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 130px;
}

/* Same box for every logo: wide and tall logos look balanced. */
.tie-ups__logo {
	display: block;
	width: auto;
	max-width: min(100%, 200px);
	height: auto;
	max-height: 90px;
	object-fit: contain;
}


/* ==========================================================================
   Careers page: job openings + "Job Application" pop-up
   Text uses text1, text5, text6, clr-* and wgt-*; the form reuses
   .contact-form (Contact page) and the button .btn-jmh.
   ========================================================================== */
 


 

 
 

 

 

 

.job-card__apply {
	flex: 0 0 auto;
	--bs-btn-padding-x: 16px;
	--bs-btn-padding-y: 6px;
	--bs-btn-border-radius: 8px;
}

/* Pop-up */
.job-apply .modal-content {
	position: relative;
	border: 0;
	border-radius: 0;
}

.job-apply__body {
	padding: 40px 60px 50px;
}

.job-apply__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--jmh-black);
	background: var(--jmh-white);
	border: 2px solid var(--jmh-black);
	border-radius: 50%;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.job-apply__close:hover,
.job-apply__close:focus-visible {
	color: var(--jmh-green);
	border-color: var(--jmh-green);
}

.job-apply__close .jmh-icon {
	width: 20px;
	height: 20px;
}

.job-apply__heading {
	margin-bottom: 30px;
	padding-right: 50px;
}

.job-apply__job {
	margin-bottom: 20px;
	font-size: 24px;
	line-height: 32px;
}

.job-apply .contact-form__group {
	margin-bottom: 24px;
}

.job-apply textarea.contact-form__input {
	min-height: 170px;
}


/* ==========================================================================
   "Appointment Helpline" pop-up (template-parts/modals/appointment.php)
   ========================================================================== */
/* "Call For Appointment" is a button now: look exactly like the text link. */
button.text-link {
	padding: 0;
	text-align: left;
	background: none;
	border: 0;
}

.appointment-modal .modal-dialog {
	max-width: 520px;
}

.appointment-modal .modal-content {
	border: 0;
	border-radius: 0;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.appointment-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 26px;
	border-bottom: 1px solid var(--jmh-black);
}

.appointment-modal__title {
	margin: 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 30px;
	color: var(--jmh-text);
}

.appointment-modal__close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--jmh-black);
	background: none;
	border: 2px solid var(--jmh-black);
	border-radius: 50%;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.appointment-modal__close:hover,
.appointment-modal__close:focus-visible {
	color: var(--jmh-green);
	border-color: var(--jmh-green);
}

.appointment-modal__close .jmh-icon {
	width: 16px;
	height: 16px;
}

.appointment-modal__call {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 26px 28px;
	color: var(--jmh-navy);
	text-decoration: none;
	transition: color 0.3s ease;
}

.appointment-modal__call:hover,
.appointment-modal__call:focus-visible {
	color: var(--jmh-green);
}

.appointment-modal__number {
	font-size: 30px;
	font-weight: 400;
	line-height: 38px;
}

.appointment-modal__icon .jmh-icon {
	width: 28px;
	height: 28px;
}

/* --- Home page poster pop-up (template-parts/modals/home-poster.php) --- */
/* The whole poster fits the screen (no scrolling); white frame, round close
   button outside the top-right corner (reuses .appointment-modal__close). */
.poster-modal .modal-dialog {
	width: fit-content;
	max-width: min(800px, calc(100% - 32px));
	margin-right: auto;
	margin-left: auto;
}

.poster-modal .modal-content {
	position: relative;
	border: 0;
	border-radius: 0;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.poster-modal__body {
	padding: 14px;
}

.poster-modal__link {
	display: block;
}

.poster-modal__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 120px);
	margin: 0 auto;
}

.poster-modal .poster-modal__close {
	position: absolute;
	top: -30px;
  right: -25px;
  z-index: 1;
  width: 30px;
  height: 30px;
	color: var(--jmh-white);
	border-color: var(--jmh-white);
}

.poster-modal .poster-modal__close .jmh-icon {
	width: 18px;
	height: 18px;
}

/* Darker backdrop, only while the poster is open (Bootstrap puts the backdrop outside the modal). */
body:has(#poster-modal.show) .modal-backdrop.show {
	--bs-backdrop-opacity: 0.8;
}


 
 

.donate-bank__row {
	display: grid;
	grid-template-columns: minmax(130px, 1fr) 1.2fr;
	gap: 10px;
}

.donate-bank__row + .donate-bank__row {
	margin-top: 10px;
}

/* ==========================================================================
   Responsive
   Every width breakpoint lives here. The base styles above are the large
   desktop design; the max-width blocks run widest first and later blocks
   override earlier ones, so keep this order.
   ========================================================================== */
@media (min-width: 991px) {
	/* --- Section: About message ("Our Message To Everyone") --- */
	.about-message__content {
		padding-left: 40px;
	}

	.about-intro-section__col + .about-intro-section__col {
		padding-left: 60px;
	}

	/* --- Single speciality page --- */
	.speciality-intro {
		padding: 64px 0;
	}

	.speciality-intro--has-banner {
		padding-bottom: 270px;
	}

	.speciality-banner {
		margin-top: -200px;
	}

	/* Desktop header and navigation. */
	/* Header: top row */
	.site-header__top-inner {
		padding-block: 16px;
	}

	.site-header__brand .custom-logo {
		height: 85px;
	}

	.header-contact {
		gap: 28px;
	}

	.header-contact__icon {
		width: 34px;
		height: 34px;
	}

	.header-contact__value {
		font-size: 15px;
	}

	/* Header: navigation */
	.site-nav {
		background: var(--jmh-navy);
	}

	.site-nav__menu {
		display: flex;
		justify-content: space-between;
	}

	.site-nav__menu > .nav-item {
		position: relative;
		display: flex;
		gap: 6px;
		align-items: center;
		padding-inline: 20px;
		color: var(--jmh-white);
	}

	/* Green active/hover bar across link + chevron; grows from the centre. */
	.site-nav__menu > .nav-item::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 3px;
		content: "";
		background: var(--jmh-green);
		transform: scaleX(0);
		transform-origin: center;
		transition: transform 0.25s ease;
	}

	.site-nav__menu > .nav-item.is-active::after,
	.site-nav__menu > .nav-item.is-open::after,
	.site-nav__menu > .nav-item:hover::after {
		transform: scaleX(1);
	}

	.site-nav .nav-link {
		padding-block: 13px;
		font-size: 15px;
		font-weight: 400;
		color: var(--jmh-white);
	}

	.site-nav .nav-link:hover,
	.site-nav .nav-link:focus {
		color: var(--jmh-white);
	}

	.site-nav .submenu-toggle {
		width: 20px;
		height: 20px;
		color: var(--jmh-white);
	}

	.site-nav .submenu-toggle .jmh-icon {
		width: 14px;
		height: 14px;
	}

	/* Out of flex flow, so showing it never adds a gap to the nav item. */
	.site-nav .submenu-wrap {
		position: absolute;
		top: 100%;
		left: -30px;
		z-index: 10;
	}

	.site-nav .submenu {
		min-width: 240px;
		padding: 25px 50px;
		background: var(--jmh-white);
		border-radius: 0 0 50px 0;
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	}

	.site-nav .submenu:has(> li:nth-child(8)) {
		min-width: 400px;
	}

	.submenu__link {
		white-space: nowrap;
	}
	

	/*
	 * Fallback until main.js loads (it adds .js to <html>): open on hover with
	 * CSS. After that, main.js handles hover so GSAP can animate it.
	 */
	@media (hover: hover) {
		html:not(.js) .site-nav .has-submenu:hover > .submenu-wrap {
			display: block;
		}

		html:not(.js) .site-nav .has-submenu:hover > .submenu-toggle .jmh-icon {
			transform: rotate(180deg);
		}
	}

	/* Hero */
	.hero__overlay {
		background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 70%);
	}
}

@media (max-width: 1366px) {
	.container1{ width: 95%; max-width: 95%;}
	.container2{ width: 90%; max-width: 90%;}
}

@media (max-width: 1280px) {
	/*
	 * Header: compact, so all menu items fit on one line. The 992px block
	 * below puts the phone/tablet values back.
	 */
	.site-header__brand .custom-logo {
		height: 70px;
	}

	.site-header__badge {
		height: 64px;
	}

	.header-contact {
		gap: 18px;
	}

	.header-contact__value {
		font-size: 14px;
	}

	.site-nav__menu > .nav-item {
		gap: 4px;
		padding-inline: 8px;
	}

	.site-nav .nav-link {
		font-size: 14px;
	}

	.site-nav .submenu-wrap {
		left: -20px;
	}

	/* Hero */
	.hero__slide {
		height: 520px;
	}

	.hero__content {
		padding-bottom: 40px;
	}

	/* Footer */
	.site-footer {
		padding-top: 110px;
	}

	.site-footer__logo {
		top: -110px;
	}

	.site-footer__logo .custom-logo {
		height: 90px;
	}

	.site-footer__watermark img {
		right: 4%;
		width: 240px;
	}

	.footer-nav__menu {
		gap: 12px 32px;
	}

	/* Cards */
	.speciality-card {
		min-height: 150px;
	}

	.testimonial-card {
		padding: 24px;
	}

	.facility-card__media {
		margin-bottom: 10px;
	}

	.doctor-card__quals {
		font-size: 16px;
	}

	/* About + stats: the tiles sit two per row. */
	.about-row {
		flex-wrap: wrap;
		gap: 16px;
	}

	.about-row + .about-row {
		margin-top: 16px;
	}

	.about-intro {
		flex: 1 1 100%;
		min-height: 0;
		padding: 32px 28px;
	}

	.about-intro__watermark {
		right: -40px;
		width: 200px;
	}

	.stat-card {
		flex: 1 1 calc(50% - 8px);
		min-height: 200px;
		padding: 24px 20px;
	}

	.about-image {
		flex: 1 1 calc(50% - 8px);
		min-height: 260px;
	}

	/* Swap the last pair so the layout alternates: photo | Inpatients, then Doctors | photo. */
	.about-row--bottom .about-image--wide {
		order: 2;
	}

	.about-row--bottom .about-image--wide + .stat-card {
		order: 1;
	}
}

@media (max-width: 992px) {
	/* --- Home page poster pop-up: close button above the top-right corner --- */
	.poster-modal .modal-dialog {
		padding-top: 46px;
	}

	.poster-modal .poster-modal__close {
		right: 0;
	}

	.poster-modal__body {
		padding: 8px;
	}

	.poster-modal__image {
		max-height: calc(100vh - 140px);
	}

	/* --- Section: values slider (About page) --- */
	/* Phones and tablets: green label top-left, title + text left-aligned under
	   it, and a row of dots (no names) at the bottom-left. The value names stay
	   in the buttons for screen readers. */
	.values-slider .values-slide {
		align-items: flex-start;
		height: 600px;
	}

	.values-slide__content {
		align-items: flex-start;
		padding-top: 110px;
		padding-bottom: 90px;
		text-align: left;
	}

	.values-slide__title {
		margin-bottom: 20px;
	}

	.values-slider__nav {
		padding-block: 60px 40px;
	}

	.values-slider__label {
		margin: 0;
		color: var(--jmh-green-2);
	}

	.values-slider__list {
		flex-direction: row;
		gap:0px;
		margin: auto 0 0;
	}

	/* Scoped under .values-slider so it beats the later mobile .text4 size. */
	.values-slider .values-slider__tab {
		gap: 0;
		padding: 10px;
		margin-left: -10px;
		font-size: 0; /* dots only; the name is still read out */
		line-height: 0;
	}

	.values-slider__tab + .values-slider__tab,
	.values-slider__list li + li .values-slider__tab {
		margin-left: 0;
	}

	.values-slider__tab.is-active .values-slider__dot {
		box-shadow: 0 0 0 8px rgba(110, 153, 22, 0.4);
	}

	/* --- Section: About message ("Our Message To Everyone") --- */
	.about-message__image {
		max-width: 420px;
		margin: 0 auto 10px;
	}

	/* --- Section: Vision & Mission (About page) --- */
	.vision-mission__row {
		padding-block: 30px;
	}

	.vision-mission__title {
		gap: 18px;
		font-size: 30px;
		line-height: 38px;
	}

	/* --- Single event --- */
	.event-band {
		padding-top: 40px;
	}

	.event-band__title {
		font-size: 26px;
		line-height: 34px;
	}

	/* --- Single speciality page --- */
	/*
	 * Doctors slider (below 992px), same approach as the Home page: grid-slider.js
	 * adds .is-slider and Swiper's classes only while the slider is active.
	 */
	.speciality-doctors-section {
		overflow: hidden;
	}

	.speciality-doctors-section .speciality-doctors-slider.is-slider {
		overflow: visible;
		clip-path: inset(-20px -100vw -20px 0);
	}

	.speciality-doctors-section .speciality-doctors-slider.is-slider .speciality-doctors-slider__track {
		--bs-gutter-x: 0;
		--bs-gutter-y: 0;
		flex-wrap: nowrap;
		margin: 0;
	}

	.speciality-doctors-section .speciality-doctors-slider.is-slider .speciality-doctors-slider__item {
		flex: 0 0 auto;
		max-width: none;
		height: auto;
		padding: 0;
		margin-top: 0;
	}

	/* Phones and tablets: mobile menu, stacked hero, card sliders. */
	/* Header: emergency block becomes an outlined pill. */
	.header-contact {
		gap: 24px;
	}

	.header-contact__value {
		font-size: 15px;
	}

	.header-contact__item--emergency {
		padding: 6px 16px 6px 6px;
		border: 1px solid rgba(178, 66, 63, 0.3);
		border-radius: 800px;
	}

	/* Header: navigation */
	.site-nav__panel {
		display: none;
		border-top: 1px solid var(--jmh-border);
	}

	.site-nav__panel.is-open,
	html:not(.js) .site-nav__panel {
		display: block;
	}

	/* Overlay the page instead of pushing it down; main.js slides the height. */
	html.js .site-nav__panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100vh - 100%);
		max-height: calc(100dvh - 100%);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--jmh-white);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	}

	/* Dim the page behind the open menu (sits just under the header). */
	body::after {
		position: fixed;
		inset: 0;
		z-index: 999;
		visibility: hidden;
		content: "";
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	html.jmh-nav-open body::after {
		visibility: visible;
		opacity: 1;
	}

	/* main.js adds this while the menu is open: the page behind must not scroll. */
	html.jmh-nav-open,
	html.jmh-nav-open body {
		overflow: hidden;
	}

	.site-nav .container {
		padding-block: 12px 24px;
	}

	.site-nav__menu > .nav-item {
		display: flex;
		flex-wrap: wrap;
		gap: 0;
		align-items: center;
		padding-inline: 0;
	}

	.site-nav .nav-link {
		padding-block: 7px;
		font-size: 20px;
		font-weight: 500;
		color: var(--jmh-text);
	}

	.site-nav .nav-link:hover,
	.site-nav .nav-item.is-active > .nav-link,
	.site-nav .nav-item.is-open > .nav-link {
		color: var(--jmh-navy);
	}

	.site-nav .submenu-toggle {
		width: 32px;
		height: 32px;
		margin-left: 2px;
		color: var(--jmh-text);
	}

	.site-nav .is-open > .submenu-toggle {
		color: var(--jmh-navy);
	}

	.site-nav .submenu-wrap {
		flex-basis: 100%;
	}

	.site-nav .submenu {
		padding: 4px 0 8px 10px;
	}

	.submenu:has(> li:nth-child(8)) {
		column-gap: 24px;
	}

	/*
	 * Hero: tall photo with a navy gradient rising from the bottom; text and
	 * button sit bottom-left over it. Rules are prefixed with .hero so they
	 * take priority over the plain .hero__* rules.
	 *
	 * The slide is a column: the photo at its natural proportions, then the
	 * text. Nothing sets a height: the photo and the text decide it.
	 */
	.hero{ background: none;}
	.hero .hero__slide {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		height: auto;
		min-height: 0;
	}

	/* Photo area: as tall as the photo itself (full width, natural height). */
	.hero .hero__media {
		position: relative;
		inset: auto;
		display: block;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		margin-bottom: -80px;
	}

	/* Whole photo, uncropped: full width, height follows the photo's own shape. */
	.hero .hero__image {
		position: static;
		display: block;
		width: 100%;
		height: auto;
		object-fit: fill;
	}

	/*
	 * One gradient per slide, on the overlay that covers the whole slide (photo
	 * and text). It is clear over the top of the photo, builds gradually, and is
	 * navy from where the text starts down to the bottom of the slide.
	 *
	 * The stops are in vw because the photo's height follows the screen width.
	 * They are tuned for mobile images shaped like 501 x 631 (height = 126vw);
	 * a very different image shape would need these stops adjusted.
	 */
	.hero .hero__overlay {
		display: block;
		background: linear-gradient(
			180deg,
			rgba(var(--jmh-navy-rgb), 0) 60vw,
			rgba(var(--jmh-navy-rgb), 0.35) 76vw,
			rgba(var(--jmh-navy-rgb), 0.8) 91vw,
			var(--jmh-navy) 110vw
		);
	}

	/* Text starts right at the photo's lower edge (slightly tucked into the fade). */
	.hero .hero__content {
		align-items: flex-start;
		justify-content: flex-start;
		height: auto;
		padding-top: 0;
		margin-top: -8px;
		text-align: left;
	}

	/* The small "Welcome to JMH" line is not part of the mobile design. */
	.hero .hero__eyebrow {
		display: none;
	}

	/* All slides share one grid cell, so the banner keeps the tallest
	   slide's height and never jumps while fading. */
	.hero__carousel .carousel-inner {
		display: grid;
	}

	.hero__carousel .carousel-item {
		display: flex;
		grid-area: 1 / 1;
		float: none;
		margin-right: 0;
	}

	.hero__carousel .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) {
		visibility: hidden;
	}

	/* Events slider */
	.events-section {
		overflow: hidden;
	}

	.events-section .events-slider.is-slider {
		overflow: visible;
		clip-path: inset(-20px -100vw -20px 0);
	}

	.events-section .events-slider.is-slider .events-slider__track {
		--bs-gutter-x: 0;
		--bs-gutter-y: 0;
		flex-wrap: nowrap;
		margin: 0;
	}

	.events-section .events-slider.is-slider .events-slider__item {
		flex: 0 0 auto;
		max-width: none;
		height: auto;
		padding: 0;
		margin-top: 0;
	}

	/* Specialities slider */
	.specialities-section .specialities-slider.is-slider .specialities-slider__track {
		--bs-gutter-x: 0;
		--bs-gutter-y: 0;
		flex-wrap: nowrap;
		margin: 0;
	}

	/* Each page is a slide holding a small grid of cards, in reading order. */
	.specialities-section .speciality-page {
		display: grid;
		flex: 0 0 auto;
		grid-template-columns: repeat(var(--speciality-cols, 2), minmax(0, 1fr));
		gap: 12px;
		align-content: start;
		max-width: none;
		height: auto;
		padding: 0;
		margin-top: 0;
	}

	.specialities-section .speciality-page > .specialities-slider__item {
		width: auto;
		max-width: none;
		padding: 0;
		margin: 0;
	}

	/* Doctors slider */
	.doctors-section {
		overflow: hidden;
	}

	.doctors-section .doctors-slider.is-slider {
		overflow: visible;
		clip-path: inset(-20px -100vw -20px 0);
	}

	.doctors-section .doctors-slider.is-slider .doctors-slider__track {
		--bs-gutter-x: 0;
		--bs-gutter-y: 0;
		flex-wrap: nowrap;
		margin: 0;
	}

	.doctors-section .doctors-slider.is-slider .doctors-slider__item {
		flex: 0 0 auto;
		max-width: none;
		height: auto;
		padding: 0;
		margin-top: 0;
	}

	/* Utilities and sections */
	.container2{ width: 95%; max-width: 95%;}
	.text1 {font-size: 25px; line-height: 30px; }
	.text2{font-size: 40px; line-height: 45px;}
	.text7 {font-size: 30px; line-height: 40px;}
	.text8{font-size: 20px; line-height: 30px;}
	.text10,.text11 {font-size: 35px; line-height: 40px;}
	
	.pdg1{ padding: 80px 0px;}
	.pdg-tb-btm1{ padding-bottom: 150px;}
	.wdt1,.wdt2{ width: 90%;}
	.wdt4{ width: 90%; margin-left: 0;}
	.wdt7{width: auto;}
	.gap1 { --bs-gutter-x: 30px; --bs-gutter-y: 30px;}
	.facilities-list .txt-cntr,.tie-ups .txt-cntr{ text-align: left;}

	/* Footer: tagline, menu, social icons, copyright, stacked and left-aligned. */
	.site-footer__grid {
		grid-template-areas:
			"tagline"
			"nav"
			"social"
			"copyright";
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.site-footer__social {
		justify-content: flex-start;
		padding-bottom: 0;
	}

	.site-footer__copyright {
		font-size: 15px;
		text-align: left;
	}
	.about-intro-section .gap1 { --bs-gutter-y: 0;} /* stacked columns: paragraph margin is the only gap */
	.gap2 { --bs-gutter-x: 0;}
	.about-row{ gap:30px;}
	.stat-card{flex: 1 1 calc(50% - 30px);}
	.about-image{flex-basis: calc(50% - 30px);}
	.about-row + .about-row { margin-top: 30px;}
	.facilities-section .txt-cntr,.facility-card{ text-align: left;}
	.mrg-mb-btm1{ margin-bottom: 15px;}
	.mrg-mb-btm2{ margin-bottom: 30px;}
	.mrg-mb-btm3{ margin-bottom: 20px;}
	.job-card {padding: 22px 20px 26px;}
	/* Facilities: photo on top, text below. */
	.facility-box {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.facility-box + .facility-box {
		margin-top: 35px;
	}

	.facilities-list .facility-box__media {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.facility-box__body {
		padding: 28px 22px 30px;
	}

	/* --- Contact page --- */
	.contact-section__intro {
		margin-bottom: 36px;
	}

	.contact-section__title {
		font-size: 38px;
		line-height: 46px;
	}
}

@media (max-width: 768px) {
	/* --- Section: page banner (listing pages: Doctors, Events) --- */
	/* Phones: text at the bottom, dark fade rising from the bottom edge. */
	.page-banner {
		align-items: flex-end;
		min-height: 420px;
	}

	.page-banner--no-image {
		min-height: 0;
	}

	.page-banner__image {
		object-position: center;
	}

	.page-banner__overlay {
		background: linear-gradient(0deg, rgba(30, 30, 32, 0.92) 0%, rgba(30, 30, 32, 0.45) 55%, rgba(30, 30, 32, 0) 85%);
	}

	.page-banner__content {
		padding-block: 40px;
	}

	.doctors-filter__select {
		width: 100%;
	}

	.doctors-group:not([hidden]) ~ .doctors-group:not([hidden]) {
		margin-top: 50px;
	}

	/* --- Single event --- */
	.event-single {
		--event-overlap: calc(90vw * 9 / 32);
	}

	.event-banner__image {
		aspect-ratio: 16 / 9;
	}

	.event-details__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.event-details__row + .event-details__row {
		margin-top: 14px;
	}

	.event-gallery {
		--bs-gutter-x: 30px;
    --bs-gutter-y: 30px;
	}

	.about-image {
		min-height: 220px;
	}

	/* --- Gallery page: category tabs (one scrollable line, ‹ › arrows top right) + photo grid --- */
	.gallery-grid {
		--bs-gutter-x: 12px;
		--bs-gutter-y: 12px;
	}

	.gallery-tabs__tab {
		padding: 9px 14px;
		font-size: 14px;
	}

	.gallery-tabs__list {
		--fade-start: 36px;
		--fade-end: 36px;
	}	 

	.tie-ups__grid {
		--bs-gutter-x: 50px;
		--bs-gutter-y: 20px;
	}

	.tie-ups__item {
		min-height: 100px;
	}

	.tie-ups__logo {
		max-height: 70px;
	}
}

@media (max-width: 640px) {
	/* --- Careers: title, then Apply Now; each label above its text --- */
	.job-card__head {
		flex-direction: column;
		gap: 14px;
	} 

	.job-card__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.job-card__row + .job-card__row {
		margin-top: 16px;
	}

	/* --- Single event --- */
	/* Event photos: one per row below 640px. */
	.event-gallery > .event-gallery__col {
		flex: 0 0 auto;
		width: 100%;
	}

	/* The buttons row takes its own line; View All far left, arrows far right. */
	.events-section__actions,
	.doctors-section__actions {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.wdt3,.wdt5,.wdt10 { width: auto;}
	.hero__content {padding: 50px 30px;	}
	.hero__controls {top: calc(33.333vw + 44px);}
	.pdg1{ padding: 50px 0px;}
	.pdg-tb-btm1{ padding-bottom: 100px;}
	.d-flx{ display: block;}
	.d-flx-mb{ display:flex; flex-wrap: wrap;}
	.site-footer{padding: 50px 0 20px;}
	.site-footer__logo{top: -55px;}
	.wdt1-mb{ width:250px;}
	.text4{ font-size:16px;}
	.about-intro__watermark{ display: none;}
	.site-footer__watermark img{ width: 120px;}
}

@media (max-width: 575px) {
.page-banner__image { object-position: 80% 100%;}
.wdt8,.wdt9, .events-banner .wdt2 {width: auto;}
	/* --- Contact page --- */
	.contact-section__title {
		font-size: 30px;
		line-height: 38px;
	}

	.contact-section__card {
		padding: 20px 18px 24px;
	}

	.contact-block__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.contact-block__row + .contact-block__row {
		margin-top: 14px;
	}

	/* --- Careers page: job openings + "Job Application" pop-up --- */
	.job-apply__body {
		padding: 30px 20px 36px;
	}

	.job-apply__close {
		top: 12px;
		right: 12px;
	}

	.job-apply__job {
		font-size: 20px;
		line-height: 28px;
	}

	/* --- "Appointment Helpline" pop-up (template-parts/modals/appointment.php) --- */
	.appointment-modal__head,
	.appointment-modal__call {
		padding-right: 20px;
		padding-left: 20px;
	}

	.appointment-modal__title {
		font-size: 19px;
	}

	.appointment-modal__number {
		font-size: 25px;
		line-height: 32px;
	}
}

@media (max-width: 480px) {
	.facility-box__text ul { columns: 1; }
	.about-row{ gap:20px;}
	.stat-card{flex: 1 1 calc(50% - 20px);}
	.about-image{flex-basis: calc(50% - 20px);}
	.about-row + .about-row { margin-top: 20px;}
	.doctors-section .gap1{--bs-gutter-x: 20px; --bs-gutter-y: 20px;}
}

@media (max-width: 400px) {
	.site-header__brand .custom-logo {		height: 56px;	}

	.header-contact__item--emergency {		padding-right: 11px;	}

	.header-contact__label {		font-size: 10px;	}

	.header-contact__value {		font-size: 13px;	}
}
