/* =========================================================
   HOSPITAL XPERT — MAIN STYLESHEET
   Author: Tahir Muneer — tahirmuneer.com
   Modern, fast, advanced medical UI/UX. No external dependencies.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
	--hx-primary: #0b6e6b;
	--hx-primary-dark: #084f4d;
	--hx-secondary: #12b3a8;
	--hx-accent: #ff7a59;
	--hx-dark: #0a2540;
	--hx-text: #45536b;
	--hx-light: #f5f9fb;
	--hx-white: #ffffff;
	--hx-border: #e6edf1;
	--hx-success: #1fa971;
	--hx-danger: #e0505b;
	--hx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--hx-font-size: 16px;
	--hx-heading-weight: 700;
	--hx-container: 1240px;
	--hx-radius-sm: 8px;
	--hx-radius: 16px;
	--hx-radius-lg: 28px;
	--hx-shadow-sm: 0 2px 8px rgba(10,37,64,.06);
	--hx-shadow: 0 10px 40px rgba(10,37,64,.10);
	--hx-shadow-lg: 0 20px 60px rgba(10,37,64,.16);
	--hx-transition: all .25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--hx-font);
	font-size: var(--hx-font-size);
	line-height: 1.7;
	color: var(--hx-text);
	background: var(--hx-white);
	margin: 0;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hx-font);
	color: var(--hx-dark);
	font-weight: var(--hx-heading-weight);
	line-height: 1.25;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }
a { color: var(--hx-primary); text-decoration: none; transition: var(--hx-transition); }
a:hover { color: var(--hx-secondary); }
ul { padding-left: 1.2em; }
.container { max-width: var(--hx-container); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
::selection { background: var(--hx-secondary); color: #fff; }

.hx-hide-sm, .hx-hide-md { display: inline-flex; }
@media (max-width: 992px) { .hx-hide-md { display: none !important; } }
@media (max-width: 700px) { .hx-hide-sm { display: none !important; } }

/* ---------- Buttons ---------- */
.hx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 50px; font-weight: 600; font-size: .95rem;
	border: 2px solid transparent; cursor: pointer; transition: var(--hx-transition);
	white-space: nowrap; line-height: 1;
}
.hx-btn svg { width: 18px; height: 18px; }
.hx-btn-primary { background: var(--hx-primary); color: #fff; box-shadow: 0 8px 20px rgba(11,110,107,.28); }
.hx-btn-primary:hover { background: var(--hx-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,110,107,.35); }
.hx-btn-outline { background: transparent; color: var(--hx-primary); border-color: var(--hx-border); }
.hx-btn-outline:hover { border-color: var(--hx-primary); color: var(--hx-primary); background: rgba(11,110,107,.06); }
.hx-btn-white { background: #fff; color: var(--hx-primary); }
.hx-btn-white:hover { background: var(--hx-light); color: var(--hx-primary-dark); transform: translateY(-2px); }
.hx-btn-outline-white { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.hx-btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.hx-btn-lg { padding: 16px 32px; font-size: 1rem; }
.hx-btn-sm { padding: 9px 18px; font-size: .85rem; }
.hx-btn-block { width: 100%; }
.hx-btn-spinner {
	width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff; display: none; animation: hx-spin .7s linear infinite;
}
.hx-btn.is-loading .hx-btn-text { opacity: .6; }
.hx-btn.is-loading .hx-btn-spinner { display: inline-block; }
@keyframes hx-spin { to { transform: rotate(360deg); } }

/* ---------- Icons ---------- */
.hx-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.hx-icon svg { width: 20px; height: 20px; }

/* ---------- Top Bar ---------- */
.hx-topbar { background: var(--hx-dark); color: #cfe3ea; font-size: .85rem; }
.hx-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 9px 24px; gap: 20px; flex-wrap: wrap; }
.hx-topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hx-topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.hx-topbar-left .hx-icon svg { width: 14px; height: 14px; }
.hx-topbar-left a { color: #cfe3ea; }
.hx-topbar-left a:hover { color: #fff; }
.hx-topbar-right { display: flex; align-items: center; gap: 10px; }
.hx-social-link {
	width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1);
	display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 700;
}
.hx-social-link:hover { background: var(--hx-secondary); color: #fff; }

/* ---------- Header ---------- */
.hx-header { background: #fff; padding: 14px 0; border-bottom: 1px solid var(--hx-border); z-index: 999; position: relative; }
.hx-header.hx-sticky { position: sticky; top: 0; }
.hx-header.hx-is-scrolled { box-shadow: var(--hx-shadow-sm); }
.hx-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hx-branding { display: flex; flex-direction: column; }
.hx-site-title { font-size: 1.5rem; font-weight: 800; color: var(--hx-dark); }
.hx-site-desc { font-size: .78rem; color: var(--hx-text); margin: 0; }
.custom-logo { max-height: 56px; width: auto; }

.hx-primary-nav { flex: 1; display: flex; justify-content: center; }
.hx-nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hx-nav-menu li { position: relative; }
.hx-nav-menu > li > a {
	display: block; padding: 10px 16px; color: var(--hx-dark); font-weight: 600; font-size: .95rem; border-radius: 50px;
}
.hx-nav-menu > li > a:hover, .hx-nav-menu > li.current-menu-item > a { color: var(--hx-primary); background: rgba(11,110,107,.08); }
.hx-nav-menu ul {
	list-style: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
	box-shadow: var(--hx-shadow); border-radius: var(--hx-radius-sm); padding: 8px; opacity: 0; visibility: hidden;
	transform: translateY(8px); transition: var(--hx-transition); z-index: 50;
}
.hx-nav-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.hx-nav-menu ul li a { padding: 10px 14px; border-radius: 6px; }
.hx-nav-menu ul li a:hover { background: var(--hx-light); }
.hx-nav-menu .menu-item-has-children > a::after { content: '\25BE'; margin-left: 6px; font-size: .7em; }

.hx-header-actions { display: flex; align-items: center; gap: 14px; }
.hx-emergency-btn { display: flex; align-items: center; gap: 8px; color: var(--hx-dark); font-weight: 700; }
.hx-emergency-btn svg { width: 26px; height: 26px; color: var(--hx-accent); }
.hx-emergency-label { font-size: .7rem; font-weight: 500; color: var(--hx-text); text-transform: uppercase; letter-spacing: .04em; }
.hx-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--hx-dark); }
.hx-menu-toggle svg { width: 26px; height: 26px; }
.hx-menu-toggle .hx-icon-close { display: none; }
.hx-menu-toggle.is-active .hx-icon-open { display: none; }
.hx-menu-toggle.is-active .hx-icon-close { display: inline-flex; }

@media (max-width: 992px) {
	.hx-primary-nav {
		position: fixed; top: 0; right: -320px; height: 100vh; width: 300px; background: #fff;
		flex-direction: column; align-items: flex-start; padding: 90px 24px 24px; transition: right .3s ease;
		box-shadow: var(--hx-shadow-lg); overflow-y: auto; z-index: 1000;
	}
	.hx-primary-nav.is-open { right: 0; }
	.hx-nav-menu { flex-direction: column; align-items: flex-start; width: 100%; gap: 2px; }
	.hx-nav-menu > li { width: 100%; }
	.hx-nav-menu ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
	.hx-nav-menu li.is-expanded > ul { display: block; }
	.hx-menu-toggle { display: inline-flex; }
}

/* ---------- Breadcrumbs ---------- */
.hx-breadcrumbs { background: var(--hx-light); padding: 14px 0; font-size: .88rem; }
.hx-breadcrumbs a { color: var(--hx-text); }
.hx-breadcrumbs .sep { margin: 0 8px; color: #a8b5c0; }
.hx-breadcrumbs .current { color: var(--hx-dark); font-weight: 600; }

/* ---------- Section Heads ---------- */
.hx-section { padding: 90px 0; }
.hx-section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.hx-section-head-light .hx-eyebrow { color: rgba(255,255,255,.85); }
.hx-section-head-light h2 { color: #fff; }
.hx-eyebrow {
	display: inline-block; color: var(--hx-primary); font-weight: 700; font-size: .82rem;
	text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; position: relative; padding-left: 26px;
}
.hx-eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 2px; background: var(--hx-secondary); }
.hx-grid { display: grid; gap: 26px; }
.hx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hx-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .hx-grid-3, .hx-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hx-grid-3, .hx-grid-4 { grid-template-columns: 1fr; } }

.hx-card {
	background: #fff; border: 1px solid var(--hx-border); border-radius: var(--hx-radius);
	transition: var(--hx-transition); overflow: hidden; display: block;
}
.hx-card:hover { transform: translateY(-6px); box-shadow: var(--hx-shadow); border-color: transparent; }

/* ---------- Hero ---------- */
.hx-hero { padding: 60px 0 90px; background: linear-gradient(180deg, #f3fbfa 0%, #fff 100%); overflow: hidden; }
.hx-hero-bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hx-shape { position: absolute; border-radius: 50%; filter: blur(0px); opacity: .5; }
.hx-shape-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(18,179,168,.18), transparent 70%); top: -120px; right: -100px; }
.hx-shape-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(11,110,107,.14), transparent 70%); bottom: -100px; left: -80px; }
.hx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 992px) { .hx-hero-grid { grid-template-columns: 1fr; } }

.hx-badge {
	display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--hx-border);
	padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: .82rem; color: var(--hx-primary);
	box-shadow: var(--hx-shadow-sm); margin-bottom: 22px;
}
.hx-badge svg { width: 16px; height: 16px; color: var(--hx-accent); }
.hx-hero-title { margin-bottom: 20px; }
.hx-hero-subtitle { font-size: 1.08rem; max-width: 540px; margin-bottom: 30px; }
.hx-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hx-hero-trust { display: flex; align-items: center; gap: 14px; }
.hx-hero-trust p { margin: 0; font-size: .92rem; }
.hx-avatars { display: flex; }
.hx-avatars span {
	width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px;
	background: linear-gradient(135deg, var(--hx-primary), var(--hx-secondary));
}
.hx-avatars span:first-child { margin-left: 0; }

.hx-hero-visual { position: relative; }
.hx-hero-image { border-radius: var(--hx-radius-lg); box-shadow: var(--hx-shadow-lg); width: 100%; }
.hx-hero-form-card {
	background: #fff; border-radius: var(--hx-radius); box-shadow: var(--hx-shadow-lg); padding: 32px;
	border-top: 5px solid var(--hx-secondary);
}
.hx-hero-form-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 18px; }
.hx-hero-form-card h3 .hx-icon svg { color: var(--hx-primary); width: 24px; height: 24px; }

/* ---------- Forms ---------- */
.hx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hx-form-group-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .hx-form-row, .hx-form-group-split { grid-template-columns: 1fr; } }
.hx-form-group { margin-bottom: 14px; }
.hx-form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--hx-dark); margin-bottom: 6px; }
.hx-form-group .req { color: var(--hx-danger); }
.hx-field-hint { display: block; font-size: .74rem; color: var(--hx-text); opacity: .75; margin-top: 4px; }
.hx-appointment-form input[type="text"],
.hx-appointment-form input[type="tel"],
.hx-appointment-form input[type="email"],
.hx-appointment-form input[type="date"],
.hx-appointment-form input[type="time"],
.hx-appointment-form select,
.hx-appointment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--hx-border); border-radius: var(--hx-radius-sm);
	font-size: .93rem; font-family: inherit; color: var(--hx-dark); background: var(--hx-light);
	transition: var(--hx-transition);
}
.hx-appointment-form input:focus,
.hx-appointment-form select:focus,
.hx-appointment-form textarea:focus {
	outline: none; border-color: var(--hx-secondary); background: #fff; box-shadow: 0 0 0 4px rgba(18,179,168,.12);
}
.hx-appointment-form textarea { resize: vertical; min-height: 90px; }
.hx-appointment-form .is-invalid { border-color: var(--hx-danger) !important; background: #fff5f5 !important; }
.hx-field-error { color: var(--hx-danger); font-size: .78rem; margin-top: 4px; display: block; }
.hx-hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.hx-form-response { margin-top: 14px; padding: 12px 16px; border-radius: var(--hx-radius-sm); font-size: .9rem; display: none; }
.hx-form-response.is-success { display: block; background: #e8f8f1; color: var(--hx-success); border: 1px solid #b9ebd4; }
.hx-form-response.is-error { display: block; background: #fdeeee; color: var(--hx-danger); border: 1px solid #f6c8cb; }

/* ---------- Stats Section ---------- */
.hx-stats { background: var(--hx-dark); padding: 50px 0; }
.hx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 768px) { .hx-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.hx-stat-item { color: #fff; }
.hx-stat-number, .hx-stat-suffix { font-size: 2.4rem; font-weight: 800; color: var(--hx-secondary); }
.hx-stat-item p { margin: 6px 0 0; color: #cfe3ea; font-size: .92rem; }

/* ---------- Departments ---------- */
.hx-dept-card { padding: 34px 26px; text-align: left; position: relative; }
.hx-dept-icon {
	width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg, rgba(11,110,107,.12), rgba(18,179,168,.12));
	display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--hx-primary);
}
.hx-dept-icon svg { width: 30px; height: 30px; }
.hx-dept-icon-lg { width: 90px; height: 90px; border-radius: 24px; }
.hx-dept-icon-lg svg { width: 44px; height: 44px; }
.hx-dept-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.hx-dept-card p { font-size: .9rem; margin-bottom: 16px; }
.hx-card-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .88rem; color: var(--hx-primary); }
.hx-card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.hx-card:hover .hx-card-link svg { transform: translateX(4px); }

/* ---------- Why Choose Us ---------- */
.hx-why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
@media (max-width: 992px) { .hx-why-grid { grid-template-columns: 1fr; } }
.hx-why-visual { position: relative; }
.hx-why-image-frame { border-radius: var(--hx-radius-lg); overflow: hidden; box-shadow: var(--hx-shadow); }
.hx-why-image-frame img { width: 100%; display: block; }
.hx-placeholder-visual {
	background: linear-gradient(135deg, var(--hx-primary), var(--hx-secondary)); min-height: 380px;
	display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5);
}
.hx-placeholder-visual svg, .hx-placeholder-visual span { width: 90px; height: 90px; }
.hx-why-badge-float {
	position: absolute; bottom: -24px; right: -20px; background: #fff; border-radius: var(--hx-radius);
	box-shadow: var(--hx-shadow-lg); padding: 16px 22px; display: flex; align-items: center; gap: 14px;
}
.hx-why-badge-float .hx-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(11,110,107,.1); display: flex; align-items: center; justify-content: center; color: var(--hx-primary); }
.hx-why-badge-float strong { display: block; font-size: 1.2rem; color: var(--hx-dark); }
.hx-why-badge-float span { font-size: .78rem; color: var(--hx-text); }
.hx-features-list { display: grid; gap: 22px; margin-top: 26px; }
.hx-feature-item { display: flex; gap: 16px; align-items: flex-start; }
.hx-feature-icon {
	flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: rgba(18,179,168,.12);
	display: flex; align-items: center; justify-content: center; color: var(--hx-primary);
}
.hx-feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.hx-feature-item p { font-size: .9rem; margin: 0; }

/* ---------- Doctors ---------- */
.hx-filter-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.hx-filter-btn {
	background: var(--hx-light); border: 1.5px solid transparent; padding: 9px 20px; border-radius: 50px;
	font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--hx-text); transition: var(--hx-transition);
}
.hx-filter-btn:hover { color: var(--hx-primary); }
.hx-filter-btn.is-active { background: var(--hx-primary); color: #fff; }
.hx-doctor-card { text-align: center; }
.hx-doctor-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--hx-light); }
.hx-doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hx-card:hover .hx-doctor-photo img { transform: scale(1.06); }
.hx-placeholder-avatar {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--hx-primary), var(--hx-secondary)); color: #fff;
	font-size: 2.4rem; font-weight: 800;
}
.hx-placeholder-avatar-sm { width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; flex-shrink: 0; }
.hx-placeholder-avatar-lg { width: 100%; aspect-ratio: 1/1; border-radius: var(--hx-radius); font-size: 4rem; }
.hx-doctor-socials {
	position: absolute; bottom: -50px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px;
	padding: 12px; transition: bottom .3s ease;
}
.hx-card:hover .hx-doctor-socials { bottom: 0; }
.hx-doctor-socials a {
	width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--hx-primary);
	display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; box-shadow: var(--hx-shadow-sm);
}
.hx-doctor-info { padding: 22px; }
.hx-doctor-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.hx-doctor-info h3 a { color: var(--hx-dark); }
.hx-doctor-spec { display: block; color: var(--hx-secondary); font-weight: 600; font-size: .85rem; margin-bottom: 14px; }
.hx-doctor-card[style*="display: none"] { display: none; }

/* ---------- Testimonials ---------- */
.hx-testimonials-section { background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-dark)); }
.hx-testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.hx-testimonial-track { display: flex; transition: transform .5s ease; }
.hx-testimonial-slide { flex: 0 0 100%; padding: 0 10px; }
.hx-testimonial-card { background: #fff; border-radius: var(--hx-radius); padding: 40px; text-align: center; }
.hx-stars { display: flex; justify-content: center; gap: 4px; color: #ffb648; margin-bottom: 18px; }
.hx-stars svg { width: 18px; height: 18px; }
.hx-testimonial-text { font-size: 1.1rem; color: var(--hx-dark); font-style: italic; margin-bottom: 24px; }
.hx-testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hx-testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.hx-testimonial-author strong { display: block; color: var(--hx-dark); font-size: .95rem; }
.hx-testimonial-author span { font-size: .8rem; color: var(--hx-text); }
.hx-slider-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.hx-slider-prev, .hx-slider-next {
	width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff;
	cursor: pointer; font-size: 1.1rem; transition: var(--hx-transition);
}
.hx-slider-prev:hover, .hx-slider-next:hover { background: #fff; color: var(--hx-primary); }
.hx-slider-dots { display: flex; gap: 8px; }
.hx-slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hx-slider-dots button.is-active { background: #fff; width: 24px; border-radius: 6px; }

/* ---------- Blog Preview / Cards ---------- */
.hx-blog-card { display: flex; flex-direction: column; }
.hx-blog-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--hx-light); }
.hx-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hx-card:hover .hx-blog-thumb img { transform: scale(1.06); }
.hx-blog-date {
	position: absolute; bottom: 12px; left: 12px; background: #fff; color: var(--hx-dark); font-weight: 700;
	font-size: .75rem; padding: 6px 12px; border-radius: 50px;
}
.hx-blog-body { padding: 22px; }
.hx-blog-body h3, .hx-entry-title { font-size: 1.1rem; margin-bottom: 10px; }
.hx-blog-body h3 a, .hx-entry-title a { color: var(--hx-dark); }
.hx-blog-body p { font-size: .9rem; margin-bottom: 14px; }

/* ---------- CTA ---------- */
.hx-cta-section { background: linear-gradient(135deg, var(--hx-secondary), var(--hx-primary)); padding: 60px 0; }
.hx-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hx-cta-inner h2, .hx-cta-inner p { color: #fff; margin: 0; }
.hx-cta-inner p { opacity: .9; margin-top: 6px; }
.hx-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.hx-footer { background: var(--hx-dark); color: #b9c9d6; }
.hx-footer-top { padding: 70px 0 40px; }
.hx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 992px) { .hx-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hx-footer-grid { grid-template-columns: 1fr; } }
.hx-footer .custom-logo { max-height: 46px; margin-bottom: 16px; }
.hx-footer .hx-site-title { color: #fff; font-size: 1.3rem; display: inline-block; margin-bottom: 16px; }
.hx-footer-about p { font-size: .9rem; line-height: 1.8; }
.hx-footer-contact { list-style: none; padding: 0; margin: 0; }
.hx-footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .88rem; }
.hx-footer-contact .hx-icon { color: var(--hx-secondary); flex-shrink: 0; }
.hx-widget-title { color: #fff; font-size: 1.02rem; margin-bottom: 20px; }
.hx-footer-menu { list-style: none; padding: 0; margin: 0; }
.hx-footer-menu li { margin-bottom: 12px; }
.hx-footer-menu a { color: #b9c9d6; font-size: .9rem; }
.hx-footer-menu a:hover { color: #fff; padding-left: 4px; }
.hx-footer-emergency { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); padding: 14px 16px; border-radius: var(--hx-radius-sm); margin-top: 16px; }
.hx-footer-emergency .hx-icon { color: var(--hx-accent); }
.hx-footer-emergency span { display: block; font-size: .74rem; color: #9fb3c2; }
.hx-footer-emergency strong { color: #fff; font-size: .95rem; }
.hx-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.hx-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hx-footer-bottom p { margin: 0; font-size: .85rem; }
.hx-footer-socials { display: flex; gap: 10px; }
.hx-footer-socials a {
	width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800;
}
.hx-footer-socials a:hover { background: var(--hx-secondary); }

/* ---------- Floating Elements ---------- */
.hx-back-to-top {
	position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: none;
	background: var(--hx-primary); color: #fff; display: none; align-items: center; justify-content: center;
	cursor: pointer; box-shadow: var(--hx-shadow); z-index: 900; transition: var(--hx-transition);
}
.hx-back-to-top.is-visible { display: flex; }
.hx-back-to-top:hover { background: var(--hx-primary-dark); transform: translateY(-3px); }
.hx-back-to-top svg { width: 20px; height: 20px; }

.hx-floating-book {
	position: fixed; bottom: 26px; left: 26px; background: var(--hx-accent); color: #fff; font-weight: 700;
	padding: 14px 22px; border-radius: 50px; display: flex; align-items: center; gap: 8px; box-shadow: var(--hx-shadow);
	z-index: 900; font-size: .9rem;
}
.hx-floating-book:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--hx-shadow-lg); }
.hx-floating-book svg { width: 18px; height: 18px; }

.hx-floating-whatsapp {
	position: fixed; bottom: 88px; right: 26px; width: 52px; height: 52px; border-radius: 50%; background: #25D366;
	color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--hx-shadow); z-index: 900;
}
.hx-floating-whatsapp svg { width: 26px; height: 26px; }
.hx-floating-whatsapp:hover { color: #fff; transform: translateY(-3px) scale(1.05); }

@media (max-width: 600px) {
	.hx-floating-book span { display: none; }
	.hx-floating-book { padding: 14px; }
}

/* ---------- Modal ---------- */
.hx-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.hx-modal.is-open { display: flex; }
.hx-modal-overlay { position: absolute; inset: 0; background: rgba(10,37,64,.65); backdrop-filter: blur(3px); }
.hx-modal-panel {
	position: relative; background: #fff; border-radius: var(--hx-radius); padding: 40px; max-width: 640px; width: 100%;
	max-height: 90vh; overflow-y: auto; box-shadow: var(--hx-shadow-lg); animation: hx-modal-in .3s ease;
}
@keyframes hx-modal-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.hx-modal-close {
	position: absolute; top: 18px; right: 18px; background: var(--hx-light); border: none; border-radius: 50%;
	width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--hx-dark);
}
.hx-modal-close:hover { background: var(--hx-border); }
.hx-modal-sub { font-size: .9rem; margin-bottom: 24px; }
body.hx-modal-open { overflow: hidden; }

/* ---------- Preloader ---------- */
#hx-preloader {
	position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center;
	transition: opacity .4s ease, visibility .4s ease;
}
#hx-preloader.is-hidden { opacity: 0; visibility: hidden; }
.hx-loader { width: 48px; height: 48px; border: 4px solid var(--hx-border); border-top-color: var(--hx-primary); border-radius: 50%; animation: hx-spin .8s linear infinite; }

/* ---------- Generic Page / Blog Layout ---------- */
.hx-page-header-banner { background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-dark)); padding: 60px 0; margin-bottom: 60px; }
.hx-page-header-banner h1 { color: #fff; margin: 0; }
.hx-page-wrap { padding: 60px 0 90px; }
.hx-front-page .hx-page-wrap { padding-top: 0; }
.hx-content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 50px; align-items: start; }
.hx-content-layout.hx-full-width-layout,
.hx-full-width .hx-content-layout { grid-template-columns: 1fr; }
@media (max-width: 860px) { .hx-content-layout { grid-template-columns: 1fr; } }
.hx-page-title { margin-bottom: 24px; }
.hx-page-thumb { border-radius: var(--hx-radius); overflow: hidden; margin-bottom: 30px; }
.hx-page-thumb img { width: 100%; display: block; }
.hx-entry-content { font-size: 1.02rem; }
.hx-entry-content img { border-radius: var(--hx-radius-sm); }
.hx-entry-content h2, .hx-entry-content h3 { margin-top: 1.4em; }
.hx-archive-header { text-align: center; margin-bottom: 50px; }
.hx-archive-header h1 span { color: var(--hx-primary); }
.hx-archive-desc { color: var(--hx-text); max-width: 600px; margin: 10px auto 0; text-align: center; }

.hx-blog-list { display: grid; gap: 26px; }
.hx-post-card { display: grid; grid-template-columns: 260px 1fr; }
@media (max-width: 640px) { .hx-post-card { grid-template-columns: 1fr; } }
.hx-post-card .hx-blog-thumb { aspect-ratio: auto; height: 100%; }
.hx-entry-meta { font-size: .82rem; color: var(--hx-text); margin-bottom: 10px; display: flex; gap: 14px; }
.hx-entry-summary { font-size: .94rem; }
.hx-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 10px; }
.hx-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
	border-radius: 10px; background: var(--hx-light); color: var(--hx-dark); font-weight: 600; padding: 0 12px;
}
.hx-pagination .page-numbers.current { background: var(--hx-primary); color: #fff; }
.hx-pagination .page-numbers:hover { background: var(--hx-border); }

/* ---------- Sidebar / Widgets ---------- */
.hx-sidebar { display: grid; gap: 26px; align-content: start; }
.hx-widget { background: var(--hx-light); border-radius: var(--hx-radius); padding: 26px; }
.hx-widget ul { list-style: none; padding: 0; margin: 0; }
.hx-widget li { padding: 10px 0; border-bottom: 1px solid var(--hx-border); font-size: .92rem; }
.hx-widget li:last-child { border-bottom: none; }
.hx-search-form { display: flex; }
.hx-search-field {
	flex: 1; padding: 12px 16px; border: 1.5px solid var(--hx-border); border-right: none;
	border-radius: 50px 0 0 50px; font-size: .9rem; background: #fff;
}
.hx-search-field:focus { outline: none; border-color: var(--hx-secondary); }
.hx-search-submit {
	background: var(--hx-primary); color: #fff; border: none; padding: 0 18px; border-radius: 0 50px 50px 0; cursor: pointer;
}
.hx-search-submit svg { width: 18px; height: 18px; }

/* ---------- Comments ---------- */
.hx-comments-area { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--hx-border); }
.hx-comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.hx-comment-list .comment-body { background: var(--hx-light); border-radius: var(--hx-radius-sm); padding: 20px; margin-bottom: 16px; }
.hx-comment-list .children { list-style: none; padding-left: 30px; }
.comment-form input, .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--hx-border); border-radius: var(--hx-radius-sm);
	font-family: inherit; margin-bottom: 14px; background: var(--hx-light);
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--hx-secondary); background: #fff; }

/* ---------- Single Doctor / Department ---------- */
.hx-doctor-single-grid { display: grid; grid-template-columns: 320px 1fr; gap: 50px; padding: 60px 0 90px; }
@media (max-width: 768px) { .hx-doctor-single-grid { grid-template-columns: 1fr; } }
.hx-doctor-single-photo { border-radius: var(--hx-radius); overflow: hidden; margin-bottom: 20px; }
.hx-doctor-single-photo img { width: 100%; display: block; }
.hx-doctor-single-meta { list-style: none; padding: 0; margin: 0 0 24px; background: var(--hx-light); border-radius: var(--hx-radius-sm); }
.hx-doctor-single-meta li { padding: 12px 18px; border-bottom: 1px solid var(--hx-border); font-size: .88rem; }
.hx-doctor-single-meta li:last-child { border-bottom: none; }
.hx-department-single { padding-bottom: 40px; }
.hx-related-doctors { padding: 20px 0 80px; }
.hx-related-doctors h2 { text-align: center; margin-bottom: 34px; }
.hx-doctor-depts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hx-dept-pill { display: inline-block; background: rgba(11,110,107,.1); color: var(--hx-primary); font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 50px; }
a.hx-dept-pill:hover { background: var(--hx-primary); color: #fff; }

/* ---------- Contact / Appointment page ---------- */
.hx-contact-grid, .hx-appointment-page-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
@media (max-width: 860px) { .hx-contact-grid, .hx-appointment-page-grid { grid-template-columns: 1fr; } }
.hx-contact-form-card, .hx-appointment-page-form {
	background: var(--hx-light); border-radius: var(--hx-radius); padding: 36px; border-top: 5px solid var(--hx-secondary);
}
.hx-contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.hx-contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.hx-contact-list .hx-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(11,110,107,.1); color: var(--hx-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hx-contact-list strong { display: block; color: var(--hx-dark); font-size: .92rem; }
.hx-contact-list span { font-size: .9rem; }
.hx-info-card { background: var(--hx-light); border-radius: var(--hx-radius-sm); padding: 20px; margin-bottom: 16px; }
.hx-info-card h3 { display: flex; align-items: center; gap: 10px; font-size: .98rem; margin-bottom: 6px; }
.hx-info-card .hx-icon { color: var(--hx-primary); }
.hx-info-card p { margin: 0; font-size: .9rem; }

/* ---------- 404 ---------- */
.hx-404-wrap { text-align: center; padding: 100px 0; }
.hx-404-code { font-size: 6rem; font-weight: 800; color: var(--hx-border); display: block; line-height: 1; }
.hx-404-content { max-width: 500px; margin: 0 auto; }
.hx-404-search { margin-top: 30px; display: flex; justify-content: center; }

.hx-no-results { text-align: center; padding: 60px 0; }

/* ---------- FAQ Accordion ---------- */
.hx-faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.hx-faq-item { border: 1.5px solid var(--hx-border); border-radius: var(--hx-radius-sm); overflow: hidden; transition: var(--hx-transition); }
.hx-faq-item.is-open { border-color: var(--hx-secondary); box-shadow: var(--hx-shadow-sm); }
.hx-faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--hx-light); border: none; padding: 18px 22px; text-align: left; cursor: pointer;
	font-weight: 700; font-size: .98rem; color: var(--hx-dark); font-family: inherit;
}
.hx-faq-item.is-open .hx-faq-question { background: rgba(18,179,168,.08); color: var(--hx-primary); }
.hx-faq-toggle { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.hx-faq-toggle::before, .hx-faq-toggle::after {
	content: ''; position: absolute; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hx-faq-toggle::before { width: 14px; height: 2px; }
.hx-faq-toggle::after { width: 2px; height: 14px; transition: transform .25s ease; }
.hx-faq-item.is-open .hx-faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.hx-faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.hx-faq-item.is-open .hx-faq-answer { max-height: 400px; }
.hx-faq-answer p { padding: 0 22px 20px; margin: 0; font-size: .93rem; }

/* ---------- Partners / Insurance Strip ---------- */
.hx-partners-strip { padding: 50px 0; border-top: 1px solid var(--hx-border); border-bottom: 1px solid var(--hx-border); }
.hx-partners-title { text-align: center; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hx-text); margin-bottom: 26px; }
.hx-partners-row { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; }
.hx-partner-logo { font-weight: 800; font-size: 1.15rem; color: var(--hx-dark); opacity: .45; transition: var(--hx-transition); letter-spacing: -.01em; }
.hx-partner-logo:hover { opacity: 1; color: var(--hx-primary); }

/* ---------- Utility / Misc ---------- */
.hx-full-width-visual { display: none; }
.wp-block-quote { border-left: 4px solid var(--hx-secondary); padding-left: 20px; font-style: italic; color: var(--hx-dark); }
table { border-collapse: collapse; width: 100%; }
table th, table td { padding: 10px 14px; border: 1px solid var(--hx-border); }
blockquote { margin: 0 0 1.5em; padding: 20px 24px; background: var(--hx-light); border-left: 4px solid var(--hx-secondary); border-radius: var(--hx-radius-sm); }
code { background: var(--hx-light); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
pre { background: var(--hx-dark); color: #e6edf1; padding: 20px; border-radius: var(--hx-radius-sm); overflow-x: auto; }

/* Reveal-on-scroll animation hook (progressive enhancement via main.js) */
[data-hx-animate] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-hx-animate].hx-in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	[data-hx-animate] { opacity: 1; transform: none; }
}
