/* =====================================================================
   home.css — Minerva Hospital homepage (professional redesign)
   Relies on design tokens defined in theme.css (var(--brand), --ink, etc.)
   ===================================================================== */

/* ============ HERO SLIDER (full-width) ============ */
#hero.hero {
	position: relative;
	padding: 0;
	overflow: hidden;
	background: #0B1E2E;
}

/* Full-bleed 16:9 — near full-screen on standard monitors, no cropping of the
   slides' baked-in text/branding. Fixed aspect keeps height even before Swiper inits. */
.hero-swiper {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.hero-swiper .swiper-wrapper { height: 100%; }

.hero-swiper .swiper-slide {
	width: 100%;
	height: 100%;
	flex-shrink: 0;
}

.hero-swiper .swiper-slide picture {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* On phones, use the taller left-anchored mobile crops (larger, readable text) */
@media (max-width: 767px) {
	.hero-swiper { aspect-ratio: 4 / 5; }
}

/* Older browsers without aspect-ratio: fall back to a sensible min-height */
@supports not (aspect-ratio: 16 / 9) {
	.hero-swiper { min-height: 420px; }
	.hero-swiper .swiper-slide { min-height: 420px; }
}

/* Pagination bullets */
#hero .swiper-pagination { bottom: 14px !important; }

#hero .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #fff;
	opacity: .55;
	transition: all .3s ease;
}

#hero .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 20px;
	opacity: 1;
}

/* Prev / next arrows — circular branded buttons */
#hero .swiper-button-prev,
#hero .swiper-button-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--brand);
	box-shadow: var(--sh-2);
	transition: background .25s ease, transform .25s ease;
}

#hero .swiper-button-prev { left: 20px; }
#hero .swiper-button-next { right: 20px; }

#hero .swiper-button-prev:hover,
#hero .swiper-button-next:hover {
	background: #fff;
	transform: scale(1.08);
}

#hero .swiper-button-prev::after,
#hero .swiper-button-next::after {
	font-size: 18px;
	font-weight: 700;
}

@media (max-width: 575px) {
	#hero .swiper-button-prev,
	#hero .swiper-button-next { width: 38px; height: 38px; }
	#hero .swiper-button-prev::after,
	#hero .swiper-button-next::after { font-size: 15px; }
	#hero .swiper-button-prev { left: 10px; }
	#hero .swiper-button-next { right: 10px; }
}

/* ============ QUICK ACCESS ============ */
.quick-access {
	position: relative;
	z-index: 5;
	margin: 0;
	width: 100%;
	max-width: none;
	background: #fff;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	box-shadow: var(--sh-1);
	overflow: hidden;
	margin-bottom: 50px;
}

.quick-inner { padding: 0; }

.quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.quick-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 32px 16px;
	text-decoration: none;
	color: var(--ink);
	border-right: 1px solid var(--line);
	transition: background .25s ease, transform .25s ease;
}

.quick-grid .quick-item:last-child { border-right: none; }

.quick-item:hover {
	background: var(--brand-050);
	color: var(--brand);
}

.quick-icon {
	width: 62px;
	height: 62px;
	border-radius: var(--rad);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-050) !important;
	transition: all .25s ease;
}

.quick-item:hover .quick-icon {
	background: var(--brand) !important;
	transform: translateY(-4px);
}

.quick-icon i {
	font-size: 26px;
	color: var(--brand);
	line-height: 1;
	transition: color .25s ease;
}

.quick-item:hover .quick-icon i { color: #fff; }

.quick-item span {
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	font-family: var(--heading-font);
}

@media (max-width: 768px) {
	.quick-access { margin: 0; }
	.quick-item { border-bottom: 1px solid var(--line); }
}

/* ============ EMERGENCY CTA ============ */
#call-to-action {
	position: relative;
	padding: 64px 0;
}

#call-to-action::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 78, 134, .92), rgba(11, 116, 196, .78));
}

.emergency-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.emergency-content h3 {
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	color: #fff;
	letter-spacing: -.02em;
	margin-bottom: 16px;
}

.emergency-desc {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .9);
}

#call-to-action .btn-outline-light {
	border-radius: var(--pill);
	border-width: 2px;
	font-weight: 600;
}

/* ============ ABOUT ============ */
#about .about-img,
#about img.about-img {
	border-radius: var(--rad-lg);
	box-shadow: var(--sh-2);
}

#about .content h3 {
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 18px;
}

#about .content p {
	color: var(--body);
	line-height: 1.85;
	font-size: 16px;
}

/* ============ STATS ============ */
.premium-stats {
	background: var(--bg-soft) !important;
	padding: 90px 0;
}

.premium-stats::before,
.premium-stats::after { display: none; }

.stats-card {
	position: relative;
	height: 100%;
	padding: 40px 26px;
	border-radius: var(--rad);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	text-align: center;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.stats-glow { display: none; }

/* Gradient accent bar that reveals on hover */
.stats-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--brand), var(--teal));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s ease;
}

.stats-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--sh-3);
	border-color: var(--brand-100);
}

.stats-card:hover::after { transform: scaleX(1); }

.stats-icon {
	width: 74px;
	height: 74px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-050);
	box-shadow: 0 0 0 6px rgba(11, 116, 196, .06);
	transition: background .3s ease;
}

.stats-icon::before { display: none; }

.stats-icon i {
	font-size: 30px;
	color: var(--brand);
	transition: color .3s ease;
}

.stats-card:hover .stats-icon { background: var(--brand); }
.stats-card:hover .stats-icon i { color: #fff; }

.stats-content h2 {
	display: inline-block;
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	margin: 0 0 12px;
	background: linear-gradient(135deg, var(--brand), var(--teal));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--brand);
}

.stats-content p {
	position: relative;
	font-size: 15px;
	font-weight: 600;
	color: var(--muted);
	margin: 0;
	padding-top: 12px;
}

.stats-content p::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--brand), var(--teal));
}

/* ============ WHY CHOOSE US / FEATURES ============ */
#features {
	background: var(--bg-soft);
}

#features .features-image img {
	width: 100%;
	border-radius: var(--rad-lg);
	box-shadow: var(--sh-2);
	object-fit: cover;
}

#features .features-eyebrow {
	display: inline-block;
	font-family: var(--heading-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand);
	background: var(--brand-050);
	padding: 6px 14px;
	border-radius: var(--pill);
	margin-bottom: 16px;
}

#features .features-title {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink);
	margin-bottom: 14px;
}

#features .features-lead {
	color: var(--body);
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 28px;
}

#features .features-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

#features .feature-point {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 18px;
	box-shadow: var(--sh-1);
	transition: transform .25s ease, box-shadow .25s ease;
}

#features .feature-point:hover {
	transform: translateY(-4px);
	box-shadow: var(--sh-2);
}

#features .feature-point-icon {
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: var(--rad-sm);
	background: var(--brand-050);
	color: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: background .25s ease, color .25s ease;
}

#features .feature-point:hover .feature-point-icon {
	background: var(--brand);
	color: #fff;
}

#features .feature-point-body h4 {
	margin: 0 0 5px;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
}

#features .feature-point-body p {
	margin: 0;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--muted);
}

@media (max-width: 575px) {
	#features .features-list { grid-template-columns: 1fr; }
}

/* ============ SERVICES ============ */
.premium-services {
	background: #fff;
	padding: 96px 0;
}

.service-card {
	position: relative;
	background: #fff;
	border-radius: var(--rad);
	padding: 38px 30px;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	z-index: 1;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--sh-3);
	border-color: var(--brand-100);
}

/* Keep content above the decorative shape */
.service-icon,
.service-content { position: relative; z-index: 1; }

.service-icon {
	width: 72px;
	height: 72px;
	border-radius: var(--rad);
	background: var(--brand-050);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	box-shadow: 0 0 0 6px rgba(11, 116, 196, .06);
	transition: transform .3s ease, background .3s ease;
}

.service-card:hover .service-icon {
	background: var(--brand);
	transform: translateY(-3px) scale(1.05);
}

.service-icon i {
	font-size: 32px;
	color: var(--brand);
	transition: color .3s ease;
}

.service-card:hover .service-icon i { color: #fff; }

.service-content h3 { margin-bottom: 14px; }

.service-content h3 a {
	color: var(--ink);
	text-decoration: none;
	font-size: 21px;
	font-weight: 700;
	transition: color .25s ease;
}

.service-content h3 a:hover { color: var(--brand); }

.service-content p {
	color: var(--body);
	line-height: 1.8;
	font-size: 15px;
	margin-bottom: 22px;
	min-height: 104px;
}

/* Decorative corner shape that grows + tints on hover */
.service-shape {
	display: block;
	position: absolute;
	top: -45px;
	right: -45px;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: var(--brand-050);
	z-index: 0;
	transition: transform .45s ease, background .45s ease;
}

.service-card:hover .service-shape {
	transform: scale(1.35);
	background: rgba(11, 116, 196, .10);
}

@media (max-width: 991px) {
	.service-content p { min-height: auto; }
}

/* ============ DEPARTMENTS / TABS ============ */
.department-section {
	background: var(--bg-soft);
	padding: 96px 0;
}

.department-sidebar {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 12px;
	box-shadow: var(--sh-1);
	position: sticky;
	top: 90px;
}

.department-scroll {
	height: 460px;
	overflow-y: auto;
	padding-right: 4px;
	margin: 0;
	border: none;
}

/* Kill Bootstrap's nav-tabs underline */
.department-scroll.nav-tabs { border-bottom: none; }
.department-scroll .nav-item { margin: 0 0 4px; }

.department-scroll .nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: none;
	width: 100%;
	text-align: left;
	border-radius: var(--rad-sm);
	padding: 13px 14px 13px 16px;
	font-size: 14.5px;
	font-weight: 600;
	font-family: var(--heading-font);
	background: transparent;
	color: var(--ink);
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.department-scroll .nav-link .dept-tab-text {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.department-scroll .nav-link .dept-tab-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.department-scroll .nav-link .dept-tab-dot {
	font-size: 8px;
	color: var(--brand-100);
	flex: none;
	transition: color .2s ease;
}

.department-scroll .nav-link .dept-tab-arrow {
	font-size: 13px;
	color: transparent;
	flex: none;
	transition: color .2s ease, transform .2s ease;
}

.department-scroll .nav-link:hover {
	background: var(--brand-050);
	color: var(--brand);
}

.department-scroll .nav-link:hover .dept-tab-dot { color: var(--brand); }
.department-scroll .nav-link:hover .dept-tab-arrow { color: var(--brand); }

.department-scroll .nav-link.active {
	background: linear-gradient(135deg, var(--brand), var(--brand-600));
	color: #fff;
	box-shadow: 0 8px 20px rgba(11, 116, 196, .30);
}

.department-scroll .nav-link.active .dept-tab-dot { color: rgba(255, 255, 255, .9); }
.department-scroll .nav-link.active .dept-tab-arrow { color: #fff; transform: translateX(2px); }

/* Thin branded scrollbar for the list */
.department-scroll::-webkit-scrollbar { width: 6px; }
.department-scroll::-webkit-scrollbar-thumb { background: var(--brand-100); border-radius: 30px; }
.department-scroll::-webkit-scrollbar-track { background: transparent; }

.department-content-wrapper {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 36px;
	box-shadow: var(--sh-1);
	height: 487px;
	overflow: auto;
}

.department-title {
	position: relative;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 18px;
	padding-bottom: 14px;
	color: var(--ink);
}

.department-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 52px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--brand), var(--teal));
}

.short-description {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--brand-700);
	font-weight: 500;
}

.department-description {
	font-size: 15.5px;
	line-height: 1.85;
	color: var(--body);
}

.department-image {
	width: 100%;
	height: 280px;
	object-fit: cover;
	border-radius: var(--rad);
	box-shadow: var(--sh-2);
}

@media (max-width: 991px) {
	.department-sidebar { position: static; margin-bottom: 24px; }
	.department-scroll { max-height: 340px; }
	.department-image { height: 220px; }
}

/* ============ TESTIMONIALS ============ */
#testimonials {
	background: var(--bg-soft) !important;
	padding: 96px 0;
}

#testimonials::before,
#testimonials::after { display: none; }

#testimonials .swiper { padding-bottom: 64px; }

/* Equal-height slides so cards align instead of rendering ragged */
#testimonials .swiper-slide {
	height: auto;
	display: flex;
}

.testimonial-item {
	position: relative;
	padding: 20px 17px 15px;
	border-radius: var(--rad);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.testimonial-item::before { display: none; }

.testimonial-item:hover {
	transform: translateY(-8px);
	box-shadow: var(--sh-3);
	border-color: var(--brand-100);
}

/* Big decorative quote mark */
.testimonial-quote-mark {
	position: absolute;
	top: 10px;
	right: 22px;
	font-size: 66px;
	line-height: 1;
	color: var(--brand-050);
	z-index: 0;
	pointer-events: none;
}

.testimonial-stars {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 3px;
	margin-bottom: 6px;
	color: #F5A623;
	font-size: 15px;
}

.testimonial-stars .bi-star { color: #E2E8F0; }

.testimonial-text {
	position: relative;
	color: var(--body);
	margin-bottom: 0px !important;
	height:225px !important;
	overflow:auto;
}

/* Author row anchored at the bottom */
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
}

.testimonial-img {
	width: 56px;
	height: 86px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--brand-050);
	background: #fff;
	flex: none;
	margin-top: 4px !important;
}

.testimonial-author-info h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.testimonial-author-info h4 { font-size: 13px; font-weight: 500; color: var(--brand); margin: 0; }

#testimonials .swiper-pagination-bullet {margin-top:90px; width: 10px; height: 10px; background: var(--brand-100); opacity: 1; }
#testimonials .swiper-pagination-bullet-active { width: 28px; border-radius: 20px; background: var(--brand); }

#feedBack {
	margin-top: -20px !important;
	padding: 13px 32px;
	border: none;
	border-radius: var(--pill);
	background: var(--brand);
	color: #fff;
	font-family: var(--heading-font);
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 10px 24px rgba(11, 116, 196, .28);
	transition: all .3s ease;
}

#feedBack:hover { background: var(--brand-600); transform: translateY(-3px); }

/* ============ DOCTORS ============ */
.doctors .team-member {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	overflow: hidden;
	box-shadow: var(--sh-1);
	width: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}

.doctors .team-member:hover {
	transform: translateY(-8px);
	box-shadow: var(--sh-3);
}

.doctors .team-member .member-img {
	position: relative;
	overflow: hidden;
}

.doctors .team-member .member-img img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	transition: transform .5s ease;
}

.doctors .team-member:hover .member-img img { transform: scale(1.05); }

.doctors .team-member .social {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -60px;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	background: linear-gradient(180deg, transparent, rgba(9, 30, 48, .55));
	transition: bottom .35s ease;
}

.doctors .team-member:hover .social { bottom: 0; }

.doctors .team-member .social a {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: var(--brand);
	transition: all .25s ease;
}

.doctors .team-member .social a:hover { background: var(--brand); color: #fff; }

.doctors .team-member .member-info { padding: 22px 20px 24px; text-align: center; }
.doctors .team-member .member-info h4 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }

.doctors .team-member .doctor-designation {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--brand);
	margin-bottom: 8px;
}

.doctors .team-member .doctor-degree {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 16px;
	line-height: 1.4;
}

.doctors .team-member .doctor-degree i { color: var(--teal); margin-right: 4px; }

/* Specialty badge on the photo */
.doctor-dept-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--brand);
	color: #fff;
	font-family: var(--heading-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
	padding: 5px 12px;
	border-radius: var(--pill);
	box-shadow: var(--sh-1);
}

/* Book Now button */
.doctors .team-member .doctor-book-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 16px;
	border-radius: var(--pill);
	background: var(--brand-050);
	color: var(--brand-700);
	font-family: var(--heading-font);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--brand-100);
	transition: all .25s ease;
}

.doctors .team-member .doctor-book-btn:hover {
	background: var(--brand);
	color: #fff;
	border-color: var(--brand);
	box-shadow: 0 10px 22px rgba(11, 116, 196, .28);
}

/* ============ TEST / PACKAGE / PRODUCT CARDS ============ */
.test-items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
	gap: 26px;
}

.product-items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 26px;
}

.test-card,
.product-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--sh-1);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	height: 100%;
}

.test-card:hover,
.product-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--sh-3);
	border-color: var(--brand-100);
}

.test-card-image { width: 100%; height: 190px; overflow: hidden; background: var(--bg-soft); }
.test-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.test-card:hover .test-card-image img { transform: scale(1.06); }

.product-image-wrapper { position: relative; }
.product-card-image {
	height: 240px;
	background: var(--bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.product-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.06); }

.stock-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 13px;
	border-radius: var(--pill);
	font-size: 11.5px;
	font-weight: 700;
	color: #fff;
	z-index: 5;
}
.in-stock { background: #16A34A; }
.out-stock { background: #DC2626; }

.test-card-body,
.product-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }

.test-card-title,
.product-card-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 10px;
	line-height: 1.35;
}
.product-card-title { min-height: 46px; }
.test-card-title { min-height: 2.6em; }

.test-card-desc,
.product-card-desc {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.7;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.test-card-price { font-size: 18px; font-weight: 800; color: var(--brand); margin-bottom: 14px; }
del.test-card-price { font-size: 14px; font-weight: 500; color: var(--muted); }

.price-area { margin-bottom: 18px; }
.old-price { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.new-price { font-size: 26px; font-weight: 800; color: var(--brand); margin: 0; }

.test-card-btn,
.product-card-btn {
	margin-top: auto;
	width: 100%;
	border: none;
	padding: 12px 16px;
	border-radius: var(--rad-sm);
	background: var(--brand);
	color: #fff;
	font-family: var(--heading-font);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .25s ease, transform .25s ease;
}

.test-card-btn:hover,
.product-card-btn:hover { background: var(--brand-600); transform: translateY(-2px); }

.disabled-btn { background: #CBD5E1 !important; cursor: not-allowed; }

@media (max-width: 768px) {
	.test-card-image { height: 160px; }
	.product-card-image { height: 200px; }
}

/* ============ BLOG ============ */
.blog-section {
	background: #fff;
	padding: 60px 0;
}

.blog-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.blog-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	overflow: hidden;
	box-shadow: var(--sh-1);
	transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover { transform: translateY(-8px); box-shadow: var(--sh-3); }

.blog-img { position: relative; overflow: hidden; }
.blog-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.06); }

.blog-date {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #fff;
	border-radius: var(--rad-sm);
	text-align: center;
	padding: 8px 12px;
	box-shadow: var(--sh-2);
}
.blog-date .day { display: block; font-size: 20px; font-weight: 800; color: var(--brand); line-height: 1; }
.blog-date .month { font-size: 11.5px; color: var(--muted); }

.blog-content { padding: 26px; }
.blog-meta { font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 12px; text-transform: capitalize; }
.blog-title { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }
.blog-desc { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

@media (max-width: 992px) { .blog-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-wrapper { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
#faq {
	background: var(--bg-soft);
}

#faq .faq-container .faq-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 22px 68px 22px 26px;
	margin-bottom: 14px;
	box-shadow: var(--sh-1);
	transition: box-shadow .25s ease, border-color .25s ease;
}

#faq .faq-container .faq-item:hover { box-shadow: var(--sh-2); }

#faq .faq-container .faq-item h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	margin: 0;
	line-height: 1.5;
	cursor: pointer;
	transition: color .2s ease;
}

#faq .faq-container .faq-item h3:hover { color: var(--brand); }

#faq .faq-container .faq-item .faq-content {
	color: var(--body);
	line-height: 1.85;
	font-size: 15px;
}

/* Circular toggle button */
#faq .faq-container .faq-item .faq-toggle {
	top: 20px;
	right: 20px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--brand-050);
	color: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
	transition: transform .3s ease, background .25s ease, color .25s ease;
}

/* Active (open) state */
#faq .faq-container .faq-active {
	border-color: var(--brand);
	box-shadow: var(--sh-2);
}

#faq .faq-container .faq-active h3 { color: var(--brand); }

#faq .faq-container .faq-active .faq-toggle {
	background: var(--brand);
	color: #fff;
	transform: rotate(90deg);
}

/* ============ CONTACT ============ */
#contact .contact-info {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
}

#contact .contact-info-item {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 20px 22px;
	box-shadow: var(--sh-1);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#contact .contact-info-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--sh-2);
	border-color: var(--brand-100);
}

#contact .contact-info-icon {
	width: 54px;
	height: 54px;
	min-width: 54px;
	border-radius: 50%;
	background: var(--brand-050);
	color: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	transition: background .25s ease, color .25s ease;
}

#contact .contact-info-item:hover .contact-info-icon {
	background: var(--brand);
	color: #fff;
}

#contact .contact-info-text h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
#contact .contact-info-text p { margin: 0; color: var(--muted); font-size: 14.5px; word-break: break-word; }
#contact .contact-info-text a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
#contact .contact-info-text a:hover { color: var(--brand); }

#contact .php-email-form {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 30px;
	box-shadow: var(--sh-1);
	height: 100%;
}

#contact .php-email-form .form-control {
	border: 1px solid var(--line);
	border-radius: var(--rad-sm);
	padding: 12px 14px;
	font-size: 15px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

#contact .php-email-form .form-control:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-050);
}

#contact .php-email-form button[type=submit] {
	background: var(--brand);
	border: none;
	border-radius: var(--pill);
	color: #fff;
	font-family: var(--heading-font);
	font-weight: 600;
	padding: 13px 40px;
	transition: background .25s ease, transform .25s ease;
}

#contact .php-email-form button[type=submit]:hover { background: var(--brand-600); transform: translateY(-2px); }

#contact iframe { border-radius: var(--rad); box-shadow: var(--sh-1); }

/* ============ GALLERY ============ */
#gallery .swiper-slide img {
	border-radius: var(--rad);
	box-shadow: var(--sh-1);
	transition: transform .3s ease;
}
#gallery .swiper-slide img:hover { transform: scale(1.02); }

/* ============ MODAL HEADER ============ */
.modal-header { background: var(--brand) !important; color: #fff !important; }
.modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.rating-box i { cursor: pointer; color: #d7dee5; transition: color .15s ease; }
.rating-box i.text-warning { color: #F5A623 !important; }

/* =====================================================================
   CHECKOUT MODAL / CART (functional — referenced by layout JS)
   ===================================================================== */
.checkout-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(9, 30, 48, .5);
	display: none;
	justify-content: flex-end;
	z-index: 9999;
	overflow-y: auto;
	transition: all .3s ease;
}

.checkout-modal.show { display: flex; }

.checkout-content {
	background-color: #fff;
	width: 400px;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: -3px 0 24px rgba(9, 30, 48, .18);
	animation: slideIn .3s forwards;
}

@keyframes slideIn {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.checkout-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid var(--line);
}
.checkout-header h2 { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.checkout-header button { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }

.checkout-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--rad-sm); }
.cart-item-info { flex: 1; margin-left: 10px; }
.cart-item-info span { display: block; font-weight: 700; }
.cart-item-info small { color: var(--muted); }
.cart-item-actions { text-align: right; }
.cart-item-actions div { display: flex; align-items: center; margin-bottom: 5px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 16px; border-radius: 6px; }
.cart-item-actions span { margin: 0 5px; }
.remove-btn { background: none; border: none; color: #DC2626; font-size: 18px; cursor: pointer; }

.checkout-footer { padding: 20px; border-top: 1px solid var(--line); }
.checkout-footer .subtotal { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.checkout-btn,
.view-btn {
	width: 100%;
	padding: 12px;
	border: none;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--rad-sm);
	transition: background .25s ease;
}
.view-btn { background-color: var(--brand); }
.view-btn:hover { background-color: var(--brand-600); }
.checkout-btn { background-color: var(--teal); }
.checkout-btn:hover { background-color: #0E8F79; }

.empty-text { text-align: center; color: var(--muted); margin-top: 50px; font-size: 1rem; }

@media (max-width: 500px) { .checkout-content { width: 100%; } }

/* =====================================================================
   SCROLL REVEAL — each block fades + scales up (back → front) on scroll.
   The .reveal class is added by JS, so if JS is disabled content stays visible.
   Disabled automatically for users who prefer reduced motion.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.reveal {
		opacity: 0;
		transform: translateY(28px) scale(.94);
		transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
					transform .7s cubic-bezier(.22, .61, .36, 1);
		will-change: opacity, transform;
	}

	.reveal.in {
		opacity: 1;
		transform: none;
	}
}

/* =====================================================================
   COHESIVE SECTION PALETTE (About → Contact)
   Deliberate white <-> light-brand-blue alternation that harmonises with
   the navy hero slider, the brand-blue Emergency band, and the navy footer.
   ID selectors + !important so this wins over the template's .light-background
   and any earlier per-section rules.
   ===================================================================== */
#about                       { background: #ffffff !important; }
#stats.premium-stats         { background: var(--brand-050) !important; }
#features                    { background: #ffffff !important; }
#services.premium-services   { background: var(--brand-050) !important; }
#tabs.department-section     { background: #ffffff !important; }
#testimonials                { background: var(--brand-050) !important; }
#doctors                     { background: #ffffff !important; }
#Tests                       { background: var(--brand-050) !important; }
#TestPackages                { background: #ffffff !important; }
#products                    { background: var(--brand-050) !important; }
#gallery                     { background: #ffffff !important; }
.blog-section                { background: var(--brand-050) !important; }
#faq                         { background: #ffffff !important; }
#contact                     { background: var(--brand-050) !important; }

/* =====================================================================
   TEST PACKAGE CARDS — distinct "bundle" treatment within the card system
   ===================================================================== */
.package-card .test-card-image { position: relative; }

.package-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--brand);
	color: #fff;
	font-family: var(--heading-font);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 5px 12px;
	border-radius: var(--pill);
	box-shadow: var(--sh-1);
}

.package-includes {
	margin-bottom: 16px;
	padding-top: 4px;
	border-top: 1px dashed var(--line);
}

.package-includes-label {
	display: block;
	font-family: var(--heading-font);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ink);
	margin: 12px 0 8px;
}

.package-list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 132px;
	overflow-y: auto;
}

.package-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--body);
	padding: 3px 0;
}

.package-list li i {
	color: var(--teal);
	font-size: 12px;
	margin-top: 3px;
	flex: none;
}

.package-list::-webkit-scrollbar { width: 5px; }
.package-list::-webkit-scrollbar-thumb { background: var(--brand-100); border-radius: 20px; }

/* Price row */
.package-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	margin-bottom: 14px;
}

.package-price-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
}

.package-price-row .test-card-price { margin: 0; }

/* Price row already carries margin-top:auto, so the button sits directly under it */
.package-card .test-card-btn { margin-top: 0; }

/* =====================================================================
   ABOUT US — modern asymmetric layout with image badge + highlights
   ===================================================================== */
.about-media {
	position: relative;
	padding: 0 0 18px 18px;
}

/* Decorative brand accent behind the image */
.about-media::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 62%;
	height: 72%;
	background: var(--brand-050);
	border-radius: var(--rad-lg);
	z-index: 0;
}

.about-media .about-img {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: var(--rad-lg);
	box-shadow: var(--sh-3);
}

/* Floating trust badge */
.about-badge {
	position: absolute;
	right: 18px;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--rad);
	padding: 14px 18px;
	box-shadow: var(--sh-3);
}

.about-badge i {
	font-size: 26px;
	color: var(--brand);
	background: var(--brand-050);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.about-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.about-badge-text strong { font-family: var(--heading-font); font-size: 15px; color: var(--ink); }
.about-badge-text span { font-size: 12px; color: var(--muted); }

/* Content */
.about-eyebrow {
	display: inline-block;
	font-family: var(--heading-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand);
	background: var(--brand-050);
	padding: 6px 14px;
	border-radius: var(--pill);
	margin-bottom: 16px;
}

.about-heading {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink);
	margin-bottom: 16px;
	position: relative;
	padding-bottom: 16px;
}

.about-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 4px;
	border-radius: var(--pill);
	background: linear-gradient(90deg, var(--brand), var(--teal));
}

.about-text {
	color: var(--body);
	font-size: 16px;
	line-height: 1.85;
	margin-bottom: 16px;
}

.about-highlights {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}

.about-highlights li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15.5px;
	font-weight: 500;
	color: var(--ink);
	padding: 7px 0;
}

.about-highlights li i {
	color: var(--teal);
	font-size: 18px;
	flex: none;
}

@media (max-width: 991px) {
	.about-media { margin-bottom: 12px; }
	.about-badge { right: 10px; padding: 12px 14px; }
}
