/* Ranka — site-wide maintenance fixes (all pages) */

/* Soulmedic sets html/body{overflow-x:hidden;height:100%} which makes <body> the scroll box:
   breaks sticky header and in-page links (#doctors, #faq …). */
html,body{overflow-x:clip!important;height:auto!important}

/* Leftover search-filter labels ("Generic selectors", "Exact matches only" …) */
div[id^="ajaxsearchlitesettings"],.searchsettings{display:none!important}

/* Readability: no justified text (uneven gaps), comfortable line height */
#primary p[style*="justify"]{text-align:left!important}
#primary .wpb_text_column p{line-height:1.75}
@media(max-width:767px){#primary table{display:block;overflow-x:auto}}

/* ---------- Mobile header: logo + menu button on one line (classes set by assets/site.js) ---------- */
body.rsp-mh #header.rsp-mh-on{position:relative}
body.rsp-mh .rsp-mh-on .rsp-mh-row{display:flex!important;flex-wrap:wrap;align-items:center;margin-left:0!important;margin-right:0!important}
body.rsp-mh .rsp-mh-on .rsp-mh-row::before,body.rsp-mh .rsp-mh-on .rsp-mh-row::after{display:none!important}
body.rsp-mh .rsp-mh-on .rsp-mh-row>.wpb_column{float:none!important;width:auto!important;max-width:none!important;flex:0 0 auto}
body.rsp-mh .rsp-mh-on .rsp-mh-row>.rsp-mh-logo-col{order:1;flex:1 1 0!important;min-width:0}
body.rsp-mh .rsp-mh-on .rsp-mh-row>.rsp-mh-menu-col{order:2;margin-left:auto!important}
body.rsp-mh .rsp-mh-on .rsp-mh-row>.wpb_column:not(.rsp-mh-logo-col):not(.rsp-mh-menu-col){order:3;flex:1 1 100%!important;width:100%!important}
body.rsp-mh .rsp-mh-on .rsp-mh-logo-col>.vc_column-inner,body.rsp-mh .rsp-mh-on .rsp-mh-menu-col>.vc_column-inner{padding-top:8px!important;padding-bottom:8px!important}
body.rsp-mh .rsp-mh-on .rsp-mh-menu-col .wpb_wrapper{display:flex!important;justify-content:flex-end;flex-direction:column}
body.rsp-mh .rsp-mh-on .dt-logo-container{display:block!important;float:none!important;margin:0!important;text-align:left!important;width:auto!important}
body.rsp-mh .rsp-mh-on .dt-logo-container a{display:inline-block!important;margin:0!important}
body.rsp-mh .rsp-mh-on .dt-logo-container img{width:auto!important;max-width:min(190px,60vw)!important;max-height:48px!important;height:auto!important}
body.rsp-mh .rsp-mh-on .mobile-nav-container{margin:0!important;text-align:right!important;float:none!important}
body.rsp-mh .rsp-mh-on .mobile-nav-container .menu-trigger{margin:0!important;cursor:pointer}
body.rsp-mh .rsp-mh-on .rsp-mh-float{position:absolute!important;right:16px;z-index:20;width:auto!important}
body.rsp-mh .rsp-mh-on .rsp-mh-collapse{height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:visible!important;border:0!important}

/* ---------- Mobile: no search in the header or the slide-out menu ---------- */
@media (max-width:1199px){
  body.rsp-mh .rsp-mh-on .search-module,
  body.rsp-mh .rsp-mh-on .simple-header-search,
  body.rsp-mh .rsp-mh-on .overlay-header-search,
  body.rsp-mh .rsp-mh-on .dt-search-icon,
  body.rsp-mh .rsp-mh-on .asl_w_container,
  body.rsp-mh .rsp-mh-on div[id^="ajaxsearchlite"],
  body.rsp-mh .rsp-mh-on .wpb_column:has(> .vc_column-inner > .wpb_wrapper > .search-module:only-child),
  body.rsp-mh .rsp-mh-on .wpb_column:has(> .vc_column-inner > .wpb_wrapper > .asl_w_container:only-child),
  body.rsp-mh .mobile-menu .search-module,
  body.rsp-mh .mobile-menu .asl_w_container,
  body.rsp-mh .mobile-menu div[id^="ajaxsearchlite"],
  body.rsp-mh .mobile-menu form[role="search"],
  body.rsp-mh .mobile-menu #searchform{display:none!important}
}

/* ---------- Mobile slide-out menu: keep sub-menus / mega menus inside the panel ---------- */
body.rsp-mh .mobile-menu,
body.rsp-mh .mobile-menu ul.sub-menu{overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;max-width:min(300px,85vw)!important;width:100%!important}
body.rsp-mh .mobile-menu ul.sub-menu{left:0!important;right:0!important}
body.rsp-mh .mobile-menu .vc_section,
body.rsp-mh .mobile-menu .vc_row,
body.rsp-mh .mobile-menu .vc_row_inner{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;width:100%!important;max-width:100%!important;left:0!important;transform:none!important;display:block!important}
body.rsp-mh .mobile-menu .wpb_column,
body.rsp-mh .mobile-menu .vc_column_container{float:none!important;width:100%!important;max-width:100%!important}
body.rsp-mh .mobile-menu .vc_column-inner{padding:0!important}
body.rsp-mh .mobile-menu .dt-custom-nav-wrapper,
body.rsp-mh .mobile-menu .dt-custom-nav-wrapper>div,
body.rsp-mh .mobile-menu ul.dt-custom-nav{position:static!important;width:100%!important;max-width:100%!important;float:none!important;margin:0!important;padding:0!important;transform:none!important}
body.rsp-mh .mobile-menu ul.dt-custom-nav li{float:none!important;width:100%!important;display:block!important;margin:0!important}
body.rsp-mh .mobile-menu ul.dt-custom-nav li a{display:block!important;padding:11px 20px!important;white-space:normal!important;word-break:break-word;font-size:14px;line-height:1.4;border-bottom:1px solid #f0f2f4}
body.rsp-mh .mobile-menu ul.dt-custom-nav .divider,
body.rsp-mh .mobile-menu ul.dt-custom-nav .menu-item-icon{display:none!important}
body.rsp-mh .mobile-menu .wpb_wrapper>h6{margin:0!important;padding:16px 20px 6px!important;font-size:12px!important;letter-spacing:.08em;text-transform:uppercase;color:#2978b7!important}
body.rsp-mh .mobile-menu img{max-width:100%!important;height:auto!important}

/* ---------- Small screens: use the full width (theme fixes it to 290px / 420px / 710px) ---------- */
@media (max-width:991px){
  .container,
  .type5.tribe_events .container .container,
  .layout-boxed .vc_row .dt-sc-stretch-row-content{width:calc(100% - 40px)!important;max-width:100%!important}
  #header .dt-header-tpl .sticky-wrapper .apply-sticky-header{max-width:none!important}
}
@media (max-width:767px){
  .container,
  .type5.tribe_events .container .container,
  .layout-boxed .vc_row .dt-sc-stretch-row-content{width:calc(100% - 32px)!important}
  #primary,#primary.with-left-sidebar,#primary.with-right-sidebar,#primary.with-both-sidebar,
  #secondary-left,#secondary-right{width:100%!important;float:none!important;margin-left:0!important;margin-right:0!important}
}

/* ---------- Mobile menu: arrows + Back button (top-left, same bar as the close ✕) ---------- */
/* sub-menu links: no arrow in front */
.mobile-menu .dt-primary-nav[data-menu="main-menu"] ul.sub-menu li:not(.go-back) a:before{content:none!important;margin-left:0!important;line-height:normal!important}

/* Back button: sits in the top bar on the left, the ✕ stays on the right */
.mobile-menu ul.dt-primary-nav ul.sub-menu{padding-top:50px!important}
.mobile-menu ul.dt-primary-nav li.go-back{position:absolute!important;top:0;left:0;width:auto!important;height:50px;z-index:6;border:0!important;margin:0!important;float:none!important}
.mobile-menu ul.dt-primary-nav li.go-back a{display:flex!important;align-items:center;gap:6px;height:50px!important;padding:0 16px!important;line-height:50px;font-weight:600;border:0!important;background:none!important}
.mobile-menu .dt-primary-nav[data-menu="main-menu"] ul.sub-menu li.go-back a:before,
.mobile-menu ul.dt-primary-nav li.go-back a:before{
  content:"\f104"!important;font-family:"Font Awesome 5 Free",FontAwesome!important;font-weight:900;
  font-size:25px;height:50px;line-height:49px!important;margin-left:0!important;margin-right:0;width:15px;text-align:center;
  display:inline-block;position:static!important;top:auto!important;left:auto!important;transform:none!important;backface-visibility:hidden}
.mobile-menu ul.dt-primary-nav li.go-back a:after{display:none!important}

/* "has sub-menu" arrows on the right: vertically centred */
.mobile-menu li[class*="has-children"]>a:before,
.mobile-menu li[class*="has_children"]>a:before{font-family:"Font Awesome 5 Free",FontAwesome!important;font-weight:900;top:50%!important;height:auto!important;line-height:1!important}
.mobile-menu ul.dt-primary-nav li a,
.mobile-menu ul.dt-primary-nav li a:before,
.mobile-menu ul.dt-primary-nav li a:after{-webkit-transition:none;transition:all .3s linear 0s}
