/* ==========================================================================
   Health Package Pro — Front-end
   Mobile-first, fully responsive, Elementor-safe.
   Colours are driven by CSS variables set inline on .hpp-wrap.
   ========================================================================== */

.hpp-wrap {
	--hpp-primary: #2FA98C;
	--hpp-primary-dark: #248C73;
	--hpp-accent: #E24C64;
	--hpp-price: #2E9E7E;
	--hpp-heading: #1B2130;
	--hpp-text: #5B6472;
	--hpp-card-bg: #FFFFFF;
	--hpp-border: #E7EBEF;
	--hpp-radius: 18px;
	--hpp-gap: 24px;

	box-sizing: border-box;
	font-family: inherit;
	color: var(--hpp-text);
	width: 100%;
	-webkit-font-smoothing: antialiased;
}

.hpp-wrap *,
.hpp-wrap *::before,
.hpp-wrap *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------- Filter tabs */
.hpp-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 28px;
}

.hpp-filter {
	appearance: none;
	border: 1.5px solid var(--hpp-border);
	background: #fff;
	color: var(--hpp-heading);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 26px;
	border-radius: 999px;
	cursor: pointer;
	transition: all .2s ease;
	font-family: inherit;
	line-height: 1.2;
}

.hpp-filter:hover {
	border-color: var(--hpp-primary);
	color: var(--hpp-primary);
}

.hpp-filter.is-active {
	background: var(--hpp-primary);
	border-color: var(--hpp-primary);
	color: #fff;
	box-shadow: 0 8px 18px -8px var(--hpp-primary);
}

/* -------------------------------------------------- Grid / list containers */
.hpp-items {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hpp-gap);
}

/* Mobile-first: single column, scale up with breakpoints. */
@media (min-width: 560px) {
	.hpp-cols-2 .hpp-items,
	.hpp-cols-3 .hpp-items,
	.hpp-cols-4 .hpp-items {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.hpp-cols-3 .hpp-items { grid-template-columns: repeat(3, 1fr); }
	.hpp-cols-4 .hpp-items { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
	.hpp-cols-4 .hpp-items { grid-template-columns: repeat(4, 1fr); }
	.hpp-cols-3 .hpp-items { grid-template-columns: repeat(3, 1fr); }
}

/* List layout */
.hpp-layout-list .hpp-items {
	grid-template-columns: 1fr;
	gap: 18px;
}

.hpp-layout-list .hpp-card {
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
}

/* Masonry (CSS columns) */
@media (min-width: 900px) {
	.hpp-layout-masonry .hpp-items {
		display: block;
		column-gap: var(--hpp-gap);
	}
	.hpp-layout-masonry.hpp-cols-2 .hpp-items { column-count: 2; }
	.hpp-layout-masonry.hpp-cols-3 .hpp-items { column-count: 3; }
	.hpp-layout-masonry.hpp-cols-4 .hpp-items { column-count: 4; }
	.hpp-layout-masonry .hpp-card {
		break-inside: avoid;
		margin-bottom: var(--hpp-gap);
	}
}

/* -------------------------------------------------- Card */
.hpp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--hpp-card-bg);
	border: 1px solid var(--hpp-border);
	border-radius: var(--hpp-radius);
	padding: 30px 28px 28px;
	box-shadow: 0 10px 30px -18px rgba(20, 40, 60, .18);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	height: 100%;
}

.hpp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 46px -22px rgba(20, 40, 60, .32);
	border-color: color-mix(in srgb, var(--hpp-primary) 40%, var(--hpp-border));
}

.hpp-card.is-featured {
	border-color: var(--hpp-primary);
	box-shadow: 0 22px 46px -20px color-mix(in srgb, var(--hpp-primary) 45%, transparent);
}

.hpp-corner-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: color-mix(in srgb, var(--hpp-primary) 14%, #fff);
	color: var(--hpp-primary-dark);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.3;
	padding: 6px 12px;
	border-radius: 8px;
	max-width: 45%;
	text-align: right;
}

.hpp-title {
	margin: 0 0 16px;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--hpp-heading);
	letter-spacing: -.01em;
	padding-right: 8px;
}

.hpp-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.hpp-offer {
	font-size: 30px;
	font-weight: 800;
	color: var(--hpp-price);
	line-height: 1;
	letter-spacing: -.02em;
}

.hpp-regular {
	font-size: 16px;
	color: #9AA3AE;
	text-decoration: line-through;
	font-weight: 600;
}

.hpp-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.hpp-discount {
	background: var(--hpp-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	line-height: 1.2;
}

.hpp-duration {
	font-size: 15px;
	color: #98A1AC;
	font-weight: 500;
}

.hpp-subtitle {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hpp-text);
}

/* Test list */
.hpp-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex-grow: 1;
}

.hpp-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--hpp-text);
}

.hpp-check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	position: relative;
}

.hpp-check::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 0;
	width: 7px;
	height: 12px;
	border: solid var(--hpp-primary);
	border-width: 0 2.4px 2.4px 0;
	transform: rotate(45deg);
}

.hpp-more {
	margin: 6px 0 22px;
	font-size: 15px;
	font-weight: 700;
	color: var(--hpp-primary);
}

/* Actions */
.hpp-actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 6px;
}

.hpp-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: none;
	font-family: inherit;
	line-height: 1.2;
	transition: all .2s ease;
}

.hpp-btn-outline {
	background: #fff;
	color: var(--hpp-primary-dark);
	border: 1.5px solid var(--hpp-border);
}

.hpp-btn-outline:hover {
	border-color: var(--hpp-primary);
	color: var(--hpp-primary);
	background: color-mix(in srgb, var(--hpp-primary) 6%, #fff);
}

.hpp-btn-fill {
	color: #fff;
	background: linear-gradient(135deg, var(--hpp-primary), var(--hpp-primary-dark));
	box-shadow: 0 12px 24px -12px var(--hpp-primary-dark);
}

.hpp-btn-fill:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -12px var(--hpp-primary-dark);
	color: #fff;
}

.hpp-btn-disabled {
	opacity: .55;
	cursor: not-allowed;
	pointer-events: none;
}

/* Hidden by filter */
.hpp-card.hpp-hidden { display: none; }

/* -------------------------------------------------- Carousel */
.hpp-carousel {
	position: relative;
	padding: 0 4px;
}

.hpp-viewport {
	overflow: hidden;
	margin: 0 -12px;
	padding: 8px 12px 12px;
}

.hpp-track {
	display: flex;
	gap: var(--hpp-gap);
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.hpp-slide {
	flex: 0 0 100%;
	min-width: 0;
}

@media (min-width: 560px) {
	.hpp-cols-2 .hpp-slide,
	.hpp-cols-3 .hpp-slide,
	.hpp-cols-4 .hpp-slide { flex-basis: calc((100% - var(--hpp-gap)) / 2); }
}

@media (min-width: 900px) {
	.hpp-cols-3 .hpp-slide { flex-basis: calc((100% - 2 * var(--hpp-gap)) / 3); }
	.hpp-cols-4 .hpp-slide { flex-basis: calc((100% - 2 * var(--hpp-gap)) / 3); }
}

@media (min-width: 1200px) {
	.hpp-cols-4 .hpp-slide { flex-basis: calc((100% - 3 * var(--hpp-gap)) / 4); }
}

.hpp-nav {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--hpp-border);
	background: #fff;
	color: var(--hpp-primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 24px -12px rgba(20, 40, 60, .35);
	transition: all .2s ease;
}

.hpp-nav:hover {
	background: var(--hpp-primary);
	color: #fff;
	border-color: var(--hpp-primary);
}

.hpp-nav:disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

.hpp-prev { left: -6px; }
.hpp-next { right: -6px; }

@media (min-width: 1300px) {
	.hpp-prev { left: -22px; }
	.hpp-next { right: -22px; }
}

.hpp-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.hpp-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--hpp-border);
	cursor: pointer;
	padding: 0;
	transition: all .2s ease;
}

.hpp-dot.is-active {
	background: var(--hpp-primary);
	width: 24px;
	border-radius: 999px;
}

/* -------------------------------------------------- Modal / popup */
.hpp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hpp-modal.is-open {
	display: flex;
}

.hpp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 41, 59, .55);
	backdrop-filter: blur(2px);
	animation: hpp-fade .2s ease;
}

.hpp-modal-box {
	position: relative;
	background: #fff;
	border-radius: 24px;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow-y: auto;
	padding: 40px 40px 36px;
	box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .5);
	animation: hpp-pop .28s cubic-bezier(.22, .61, .36, 1);
	-webkit-overflow-scrolling: touch;
}

@keyframes hpp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hpp-pop {
	from { opacity: 0; transform: translateY(16px) scale(.96); }
	to { opacity: 1; transform: none; }
}

.hpp-modal-close {
	position: absolute;
	top: 22px;
	right: 22px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #64748B;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}

.hpp-modal-close:hover {
	background: #F1F5F9;
	color: var(--hpp-heading);
}

.hpp-modal-title {
	margin: 0 40px 14px 0;
	font-size: 28px;
	font-weight: 800;
	color: var(--hpp-heading);
	line-height: 1.2;
	letter-spacing: -.01em;
}

.hpp-modal-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.hpp-modal-price .hpp-offer { font-size: 26px; }
.hpp-modal-price .hpp-regular { font-size: 17px; }

.hpp-modal-desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--hpp-text);
	margin-bottom: 22px;
}

.hpp-modal-desc:empty { display: none; }

.hpp-modal-included {
	margin: 0 0 18px;
	font-size: 17px;
	font-weight: 800;
	color: var(--hpp-heading);
}

.hpp-modal-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hpp-modal-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 17px;
	color: #334155;
	padding: 8px 0;
}

.hpp-modal-list li .hpp-check-circle {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hpp-primary) 14%, #fff);
	position: relative;
}

.hpp-modal-list li .hpp-check-circle::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 6px;
	width: 6px;
	height: 11px;
	border: solid var(--hpp-primary);
	border-width: 0 2.2px 2.2px 0;
	transform: rotate(45deg);
}

.hpp-modal-foot {
	margin-top: 26px;
}

.hpp-modal-foot:empty { display: none; }

.hpp-modal-foot .hpp-btn {
	max-width: 100%;
}

/* Empty state */
.hpp-empty {
	padding: 40px;
	text-align: center;
	color: #94A3B8;
	border: 1px dashed #E2E8F0;
	border-radius: 16px;
}

/* Body scroll lock helper */
body.hpp-modal-lock {
	overflow: hidden;
}

/* -------------------------------------------------- Small screens */
@media (max-width: 480px) {
	.hpp-card { padding: 26px 22px 24px; }
	.hpp-title { font-size: 19px; }
	.hpp-offer { font-size: 27px; }
	.hpp-modal-box { padding: 32px 24px 28px; border-radius: 20px; }
	.hpp-modal-title { font-size: 23px; }
	.hpp-modal-list li { font-size: 16px; }
}

/* Fallback for browsers without color-mix() */
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.hpp-corner-badge { background: #EAF6F2; }
	.hpp-modal-list li .hpp-check-circle { background: #EAF6F2; }
	.hpp-btn-outline:hover { background: #F4FBF9; }
}

/* ==========================================================================
   Featured image (packages / courses) — shown before the title
   ========================================================================== */
.hpp-thumb {
	margin: -30px -28px 22px;
	border-radius: var(--hpp-radius) var(--hpp-radius) 0 0;
	overflow: hidden;
	line-height: 0;
	aspect-ratio: 16 / 10;
	background: #f1f5f9;
}

.hpp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.hpp-card:hover .hpp-thumb img {
	transform: scale(1.04);
}

@media (max-width: 480px) {
	.hpp-thumb { margin: -26px -22px 20px; }
	.hpp-doc-photo { margin: -26px -22px 20px; }
}

/* ==========================================================================
   Doctor card
   ========================================================================== */
.hpp-doctor-card {
	text-align: center;
	align-items: center;
}

/* Full-bleed doctor photo: edge-to-edge, fills the card width, fully responsive. */
.hpp-doc-photo {
	align-self: stretch;
	margin: -30px -28px 22px;
	width: auto;
	aspect-ratio: 1 / 1;
	border-radius: var(--hpp-radius) var(--hpp-radius) 0 0;
	overflow: hidden;
	line-height: 0;
	background: color-mix(in srgb, var(--hpp-primary) 8%, #eef2f5);
}

.hpp-doc-img {
	width: 100%;
	height: 100%;
	display: block;
	line-height: 0;
}

.hpp-doc-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform .45s ease;
}

.hpp-doctor-card:hover .hpp-doc-img img {
	transform: scale(1.045);
}

.hpp-doc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: color-mix(in srgb, var(--hpp-primary) 55%, #94a3b8);
}

.hpp-doc-placeholder svg {
	width: 34%;
	height: auto;
}

/* Keep the badge legible when it sits over the photo. */
.hpp-doctor-card .hpp-corner-badge {
	background: rgba(255, 255, 255, .92);
	color: var(--hpp-primary-dark);
	box-shadow: 0 4px 12px -4px rgba(20, 40, 60, .35);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.hpp-doc-name {
	margin-bottom: 4px;
}

.hpp-doc-designation {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--hpp-primary-dark);
}

.hpp-doc-quals {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--hpp-text);
	line-height: 1.4;
}

.hpp-doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 16px;
}

.hpp-doc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hpp-text);
	background: #F4F6F8;
	padding: 6px 12px;
	border-radius: 999px;
}

.hpp-doc-chip.hpp-doc-dept {
	background: color-mix(in srgb, var(--hpp-primary) 12%, #fff);
	color: var(--hpp-primary-dark);
}

.hpp-doc-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hpp-primary);
}

.hpp-doc-expertise {
	text-align: left;
	width: 100%;
	margin-bottom: 20px;
	flex-grow: 1;
}

/* ==========================================================================
   Modal additions (photo, designation, meta, qualifications)
   ========================================================================== */
.hpp-modal-media:empty { display: none; }

.hpp-modal-img {
	width: 96px;
	height: 96px;
	border-radius: 20px;
	object-fit: cover;
	display: block;
	margin-bottom: 18px;
	box-shadow: 0 12px 26px -14px rgba(20, 40, 60, .4);
	box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--hpp-primary) 25%, #fff), 0 12px 26px -14px rgba(20, 40, 60, .4);
}

.hpp-modal-sub:empty { display: none; }
.hpp-modal-sub {
	font-size: 16px;
	font-weight: 700;
	color: var(--hpp-primary-dark);
	margin: -6px 0 14px;
}

.hpp-modal-metarow:empty { display: none; }
.hpp-modal-metarow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.hpp-modal-quals:empty { display: none; }
.hpp-modal-quals {
	font-size: 15px;
	color: var(--hpp-text);
	line-height: 1.5;
	margin-bottom: 20px;
}

.hpp-modal-quals .hpp-quals-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #94A3B8;
	margin-bottom: 2px;
}

.hpp-modal-included:empty { display: none; }
