/*
Theme Name: Medicross Child
Theme URI: http://demo.casethemes.net/medicross
Author: Case-Themes
Author URI: https://casethemes.net/
Description:Medicross is a beautifully handcraftedfor doctors, clinics, medical care and health care centers, hospitals, dentists, orthopedic doctors, pediatricians, psychologists on Elementor Page Builder & designed with great attention to details, flexibility and performance. Medicross has stunning styles and elements to help you make a professional website in no time.
Version: 1.0.3
License: ThemeForest
License URI: https://themeforest.net/licenses
Template: medicross
Text Domain: medicross-child
Tags:appointment booking, chiropractor, dentist, doctor, doctor appointment, doctor booking, health, health theme, healthcare, hospital, medical, medical appointment, medical booking, medical theme, pharmacy
Requires at least: 5.8 or Higher
Requires PHP: 7.4 or Higher
Tested up to: 6.4.1
*/

/* Healyn: stop the white strips at the left/right edges while the page loads on mobile/tablet.
   Elementor stretches full-width sections with JavaScript after load; this makes them full width from the start. */
@media (max-width: 1199.98px) {
	.pxl-content-area .elementor-section.elementor-section-stretched {
		width: calc(100% + 30px) !important;
		max-width: none !important;
		left: 0 !important;
		margin-left: -15px !important;
		margin-right: -15px !important;
	}
}

/* Healyn speed: show text immediately while the theme and icon fonts load (font-display: swap). */
@font-face { font-family: "Font Awesome 5 Brands"; font-style: normal; font-weight: 400;  src: url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.woff2") format("woff2"), url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.woff") format("woff"), url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.ttf") format("truetype");  font-display: swap; }
@font-face { font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 400;  src: url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.woff2") format("woff2"), url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.woff") format("woff"), url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.ttf") format("truetype");  font-display: swap; }
@font-face { font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 900;  src: url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2") format("woff2"), url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff") format("woff"), url("/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.ttf") format("truetype");  font-display: swap; }
@font-face { font-family: eicons; src: url("/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff2?5.54.0") format("woff2"), url("/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff?5.54.0") format("woff"), url("/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.ttf?5.54.0") format("truetype"); font-weight: 400; font-style: normal;  font-display: swap; }
@font-face { font-family: Flaticon; src: url("/wp-content/themes/medicross/assets/fonts/flaticon/fonts/flaticon.woff2") format("woff2"), url("/wp-content/themes/medicross/assets/fonts/flaticon/fonts/flaticon.woff") format("woff"), url("/wp-content/themes/medicross/assets/fonts/flaticon/fonts/flaticon.ttf") format("truetype"); font-style: normal;  font-display: swap; }
@font-face {  font-family: bootstrap-icons; src: url("/wp-content/themes/medicross/assets/fonts/bootstrap-icons/fonts/bootstrap-icons.woff2?8d200481aa7f02a2d63a331fc782cfaf") format("woff2"), url("/wp-content/themes/medicross/assets/fonts/bootstrap-icons/fonts/bootstrap-icons.woff?8d200481aa7f02a2d63a331fc782cfaf") format("woff");  font-display: swap; }
@font-face { font-family: Caseicon; src: url("/wp-content/themes/medicross/assets/fonts/caseicon/caseicon.woff2") format("woff2"), url("/wp-content/themes/medicross/assets/fonts/caseicon/caseicon.woff") format("woff"), url("/wp-content/themes/medicross/assets/fonts/caseicon/caseicon.ttf") format("truetype"); font-weight: normal; font-style: normal;  font-display: swap; }
@font-face { font-family: "GT Walsheim Pro"; font-weight: 400; font-style: normal; src: url("/wp-content/themes/medicross/assets/fonts/walsheim/GTWalsheimPro-Regular.woff2") format("woff2"), url("/wp-content/themes/medicross/assets/fonts/walsheim/GTWalsheimPro-Regular.woff") format("woff");  font-display: swap; }
@font-face { font-family: "GT Walsheim Pro"; font-weight: 500; font-style: normal; src: url("/wp-content/themes/medicross/assets/fonts/walsheim/GTWalsheimPro-Medium.woff2") format("woff2"), url("/wp-content/themes/medicross/assets/fonts/walsheim/GTWalsheimPro-Medium.woff") format("woff");  font-display: swap; }

/* ===== Healyn: emergency + quick-contact bar ===== */

/* ---------- Desktop header buttons (top bar) ---------- */
.hl-top-actions{display:none}
.hl-top-actions.hl-ready{display:inline-flex;align-items:center;gap:10px;margin:0 6px}
.hl-tb{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 16px;border-radius:8px;font-size:14px;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none !important;transition:background .2s,color .2s,border-color .2s}
.hl-tb svg{width:16px;height:16px;flex:0 0 auto}
.hl-tb-lab{border:1.5px solid #0A2E4E;color:#0A2E4E !important;background:#fff}
.hl-tb-lab:hover{background:#0A2E4E;color:#fff !important}
.hl-tb-book{background:linear-gradient(90deg,#0A2E4E 0%,#2E7CA3 100%);color:#fff !important;border:0}
.hl-tb-book:hover{background:#0A2E4E}
.hl-tb-emg{background:#C62828;color:#fff !important;border:0}
.hl-tb-emg:hover{background:#A61F1F}
@media (max-width:1399px){.hl-tb{height:34px;padding:0 12px;font-size:13px}}
/* give the top bar's right column enough room for the buttons */
.elementor-container:has(.hl-top-actions.hl-ready) > .elementor-column:first-child{width:auto !important;flex:0 1 auto}
.elementor-container:has(.hl-top-actions.hl-ready) > .elementor-column:last-child{width:auto !important;flex:1 1 auto}
.elementor-container:has(.hl-top-actions.hl-ready){flex-wrap:nowrap !important}
.elementor-widget-wrap:has(> .hl-top-actions.hl-ready){flex-wrap:nowrap !important;justify-content:flex-end !important;align-items:center !important}

/* ---------- Mobile header: Lab Reports + call + emergency, right-aligned ---------- */
.hl-mh-actions{display:none}
@media (max-width:1199px){
	.pxl-header-mobile-default{display:flex !important;align-items:center !important;justify-content:flex-start !important;flex-wrap:nowrap !important;width:100%}
	.pxl-header-mobile-default .pxl-header-branding{flex:0 1 auto;margin-right:auto !important;min-width:0}
	.pxl-header-mobile-default .pxl-header-branding img{max-width:150px;height:auto}
	.pxl-header-mobile-default #pxl-nav-mobile{flex:0 0 auto;margin-left:0 !important}
	.hl-mh-actions.hl-ready{display:flex;align-items:center;gap:7px;margin:0 60px 0 auto;flex:0 0 auto}
}
.hl-mh-btn{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0A2E4E;color:#fff !important;flex:0 0 auto}
.hl-mh-btn svg{width:17px;height:17px}
.hl-mh-emg{background:#C62828}
.hl-mh-lab{display:flex;align-items:center;justify-content:center;height:36px;padding:0 9px;border:1.5px solid #0A2E4E;border-radius:8px;color:#0A2E4E !important;font-size:10.5px;font-weight:700;line-height:1.1;text-align:center;text-decoration:none !important;flex:0 0 auto}
@media (max-width:389px){
	.pxl-header-mobile-default .pxl-header-branding img{max-width:125px}
	.hl-mh-lab{padding:0 7px}
}
@media (max-width:340px){.hl-mh-lab{display:none}}

/* ---------- Sticky bottom bar ---------- */
.hl-sticky-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;gap:6px;background:#0A2E4E;padding:6px 6px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px rgba(10,46,78,.22);font-family:inherit}
.hl-sb{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;padding:7px 4px;border-radius:12px;color:#fff !important;text-decoration:none !important;font-size:12px;font-weight:600;line-height:1.15;text-align:center}
.hl-sb svg{width:21px;height:21px;flex:0 0 auto}
.hl-sb .hl-l{display:none}
.hl-sb-emg{background:#C62828}
.hl-sb-book{background:#C5A46D;color:#0A2E4E !important}
.hl-sb:active{opacity:.85}
body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
.pxl-scroll-top{bottom:84px !important}
@media (min-width:1200px){
	body{padding-bottom:0}
	.pxl-scroll-top{bottom:30px !important}
	.hl-sticky-bar{left:50%;right:auto;bottom:18px;transform:translate(-50%,150%);border-radius:40px;padding:8px;gap:8px;transition:transform .35s ease;box-shadow:0 10px 30px rgba(10,46,78,.28)}
	.hl-sticky-bar.hl-show{transform:translate(-50%,0)}
	.hl-sb{flex:0 0 auto;flex-direction:row;gap:8px;min-height:0;padding:11px 20px;border-radius:30px;font-size:14px;white-space:nowrap}
	.hl-sb svg{width:18px;height:18px}
	.hl-sb .hl-s{display:none}
	.hl-sb .hl-l{display:inline}
	.hl-sb-call:hover,.hl-sb-map:hover{background:rgba(255,255,255,.12)}
	.hl-sb-emg:hover{background:#A61F1F}
	.hl-sb-book:hover{background:#D2B47F}
}

/* WhatsApp button in the bottom bar (same number: +91 63666 14481) */
.hl-sb-wa{background:#25D366;color:#fff !important}
@media (max-width:1199px){.hl-sticky-bar{gap:5px;padding-left:5px;padding-right:5px}.hl-sb{font-size:11px;padding:7px 2px}}
@media (min-width:1200px){.hl-sb-wa:hover{background:#1EBE5A}.hl-sb{padding:11px 18px}}


/* ===== Healyn: Our Team page ===== */
.hl-team-grid > .elementor-widget-wrap{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 24px;align-items:stretch;align-content:start}
.hl-team-grid .hl-team-head{grid-column:1/-1;margin-bottom:0!important}
.hl-team-grid .hl-team-intro{max-width:780px;margin-bottom:10px!important}
.hl-team-card{margin:0!important;height:100%}
.hl-team-card .elementor-widget-container{height:100%}
.hl-team-card .elementor-image-box-wrapper{background:#fff;border:1px solid #e3eaf0;border-radius:18px;overflow:hidden;box-shadow:0 6px 22px rgba(10,46,78,.06);transition:transform .25s ease,box-shadow .25s ease;height:100%;text-align:center}
.hl-team-card:hover .elementor-image-box-wrapper{transform:translateY(-4px);box-shadow:0 14px 32px rgba(10,46,78,.12)}
.hl-team-card .elementor-image-box-img{display:block!important;width:100%!important;margin:0!important;aspect-ratio:6/7;background:#eef3f7;overflow:hidden}
.hl-team-card .elementor-image-box-img img{width:100%!important;height:100%!important;object-fit:cover;object-position:center top;display:block;border-radius:0!important}
.hl-team-card .elementor-image-box-content{padding:16px 16px 20px}
.hl-team-card .elementor-image-box-title{font-size:18px;line-height:1.3;color:#0A2E4E;margin:0 0 6px!important;font-weight:600}
.hl-team-card .elementor-image-box-title a{color:inherit}
.hl-team-card .elementor-image-box-description{font-size:14px;line-height:1.45;color:#247B5B;margin:0}
.hl-team-alt{background:#F4F8FA}
@media (max-width:1024px){.hl-team-grid > .elementor-widget-wrap{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px}}
@media (max-width:767px){.hl-team-grid > .elementor-widget-wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.hl-team-card .elementor-image-box-content{padding:12px 10px 14px}.hl-team-card .elementor-image-box-title{font-size:15px}.hl-team-card .elementor-image-box-description{font-size:12.5px}.hl-team-card .elementor-image-box-wrapper{border-radius:14px}}

/* ===== Healyn: compact mega menus (desktop, normal + sticky header) ===== */
@media (min-width:1200px){
.sub-menu.pxl-mega-menu{padding-top:10px!important;padding-bottom:8px!important}
.pxl-mega-menu .elementor-inner-section{padding-top:2px!important;padding-bottom:6px!important}
.pxl-mega-menu .elementor-column>.elementor-widget-wrap{padding-top:12px!important;padding-bottom:6px!important}
.pxl-mega-menu .hl-mega-row>.elementor-widget-container{padding:4px 12px!important}
.pxl-mega-menu .hl-mega-row .pxl-text-editor{font-size:14px!important;line-height:1.3!important}
.pxl-mega-menu .hl-mega-row a>span:first-child,.pxl-mega-menu .hl-mega-row .pxl-item--inner>div>a{line-height:18px!important}
.pxl-mega-menu .hl-mega-row a>span:nth-child(2),.pxl-mega-menu .hl-mega-row .pxl-item--inner>div>span{font-size:12.5px!important;line-height:16px!important;margin-top:1px!important}
.pxl-mega-menu .hl-mega-row br.hl-opd-br{display:none}
.pxl-mega-menu .hl-mega-row .hl-opd::before{content:" \00B7 "}
.pxl-mega-menu .elementor-column:last-child>.elementor-widget-wrap{padding:20px 24px!important;align-self:flex-start}
.pxl-mega-menu .elementor-column:last-child .elementor-widget-pxl_text_editor:nth-child(3){display:none}
.pxl-mega-menu .elementor-column:last-child .elementor-widget-pxl_button>.elementor-widget-container{margin-top:10px!important}
.pxl-mega-menu .elementor-column:last-child .elementor-widget:last-child>.elementor-widget-container{margin-top:6px!important}
/* hide the bottom bar while a mega menu is open, so it never covers the menu */
body:has(li:hover>.sub-menu.pxl-mega-menu) .hl-sticky-bar{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
/* ===== end compact mega menus ===== */
