/* ======================================================================
   NatDentist v5.5.8 — Mobile navigation on all internal pages
   Loaded after natdentist-cms.css by the shared theme renderers.
   Home v5.5.7 stays unchanged; personal CSS stays untouched.
   ====================================================================== */

@media (max-width: 991.98px){
  body.nd-page:not(.nd-page-home) #ftco-navbar{
    position:relative!important;
    top:0!important;
    left:auto!important;
    right:auto!important;
    z-index:10020!important;
    width:100%!important;
    min-height:86px!important;
    margin:0!important;
    padding:10px 16px!important;
    background:linear-gradient(115deg,#061725 0%,#08253a 58%,#07324a 100%)!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
    box-shadow:0 8px 28px rgba(0,20,35,.16)!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar>.container{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    width:100%!important;
    max-width:none!important;
    min-height:66px!important;
    margin:0!important;
    padding:0!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-brand{
    display:flex!important;
    align-items:center!important;
    min-height:64px!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-brand .nd-logo,
  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-brand img{
    display:block!important;
    width:auto!important;
    max-width:92px!important;
    height:62px!important;
    max-height:62px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-toggler{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    min-height:44px!important;
    margin:0 0 0 auto!important;
    padding:8px 4px 8px 12px!important;
    border:0!important;
    background:transparent!important;
    color:rgba(255,255,255,.76)!important;
    font-size:14px!important;
    font-weight:500!important;
    line-height:1!important;
    letter-spacing:.12em!important;
    text-transform:uppercase!important;
    box-shadow:none!important;
    outline:0!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-toggler .oi{
    color:#7edfe8!important;
    font-size:18px!important;
    line-height:1!important;
  }

  /* Closed means CLOSED. This specifically removes the huge white empty panel. */
  body.nd-page:not(.nd-page-home) #ftco-nav.collapse:not(.show){
    display:none!important;
    flex-basis:0!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav.collapsing,
  body.nd-page:not(.nd-page-home) #ftco-nav.collapse.show{
    flex-basis:100%!important;
    width:100%!important;
    min-height:0!important;
    max-height:min(68vh,520px)!important;
    margin:10px 0 4px!important;
    padding:8px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    border:1px solid rgba(143,224,235,.12)!important;
    border-radius:18px!important;
    background:linear-gradient(150deg,rgba(8,32,50,.99),rgba(8,47,67,.99))!important;
    box-shadow:0 20px 45px rgba(0,15,28,.30)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    backdrop-filter:blur(14px)!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav.collapsing{
    overflow:hidden!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    gap:3px!important;
    background:transparent!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav>.nav-item{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav>.nav-item>.nav-link{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:44px!important;
    margin:0!important;
    padding:11px 13px!important;
    border:1px solid transparent!important;
    border-radius:12px!important;
    background:transparent!important;
    color:rgba(245,252,255,.88)!important;
    font-size:13px!important;
    font-weight:650!important;
    line-height:1.35!important;
    text-decoration:none!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav>.nav-item.active>.nav-link,
  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav>.nav-item>.nav-link:hover,
  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav>.nav-item>.nav-link:focus{
    border-color:rgba(96,204,220,.13)!important;
    background:linear-gradient(90deg,rgba(39,139,235,.17),rgba(35,185,183,.10))!important;
    color:#fff!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .navbar-nav>.nav-item>.nav-link:after{
    display:none!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .nav-item.cta>a{
    justify-content:center!important;
    margin-top:5px!important;
    border:1px solid rgba(111,222,229,.28)!important;
    border-radius:12px!important;
    background:linear-gradient(105deg,#258cf2,#23b1ba)!important;
    color:#fff!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .dropdown-menu{
    position:static!important;
    float:none!important;
    width:100%!important;
    margin:4px 0 7px!important;
    padding:6px!important;
    border:1px solid rgba(255,255,255,.07)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.055)!important;
    box-shadow:none!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .dropdown-item{
    padding:10px 12px!important;
    border-radius:9px!important;
    color:rgba(255,255,255,.80)!important;
    font-size:12px!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-nav .dropdown-item:hover,
  body.nd-page:not(.nd-page-home) #ftco-nav .dropdown-item:focus{
    background:rgba(255,255,255,.08)!important;
    color:#fff!important;
  }

  /* Prevent the scrolled desktop navbar state from turning the mobile menu white. */
  body.nd-page:not(.nd-page-home) #ftco-navbar.scrolled,
  body.nd-page:not(.nd-page-home) #ftco-navbar.scrolled.awake{
    position:relative!important;
    top:0!important;
    margin-top:0!important;
    background:linear-gradient(115deg,#061725 0%,#08253a 58%,#07324a 100%)!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar.scrolled .navbar-toggler{
    color:rgba(255,255,255,.76)!important;
  }

  body.nd-page:not(.nd-page-home) #ftco-navbar.scrolled #ftco-nav .nav-link{
    color:rgba(245,252,255,.88)!important;
  }
}



/* Internal landing/breadcrumb. The original 630px desktop hero overwhelms phones. */
@media (max-width: 991.98px){
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item{
    position:relative!important;
    min-height:380px!important;
    height:380px!important;
    padding-top:0!important;
    background-size:cover!important;
    background-position:center 28%!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .slider-text{
    min-height:380px!important;
    height:380px!important;
    padding:0 0 36px!important;
    align-items:flex-end!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item>.container{
    position:relative!important;
    z-index:3!important;
    height:100%!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .overlay{
    display:block!important;
    opacity:1!important;
    background:linear-gradient(180deg,rgba(3,21,37,.23),rgba(3,29,51,.53) 55%,rgba(4,29,49,.88))!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item:after{
    background:linear-gradient(180deg,rgba(5,34,57,.12),rgba(3,28,49,.26) 52%,rgba(3,26,46,.66))!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .slider-text>[class*="col-"]{
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
    margin-bottom:0!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .breadcrumbs{
    display:inline-flex!important;
    flex-wrap:wrap!important;
    max-width:100%!important;
    gap:4px 8px!important;
    margin:0 0 16px!important;
    padding:8px 12px!important;
    color:#fff!important;
    line-height:1.45!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item h1{
    max-width:100%!important;
    margin:0!important;
    font-size:clamp(32px,5vw,42px)!important;
    line-height:1.12!important;
    letter-spacing:-.035em!important;
    overflow-wrap:anywhere!important;
    text-shadow:0 6px 22px rgba(0,22,38,.35)!important;
    color:#fff!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item [data-scrollax]{
    opacity:1!important;
    transform:none!important;
  }
}
@media (max-width: 767.98px){
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item{
    min-height:315px!important;
    height:315px!important;
    background-position:60% 20%!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .slider-text{
    min-height:315px!important;
    height:315px!important;
    padding:0 0 31px!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item>.container{
    padding-left:19px!important;
    padding-right:19px!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item h1{
    font-size:clamp(30px,8.6vw,37px)!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .breadcrumbs{
    font-size:11px!important;
    margin-bottom:13px!important;
  }
  body.nd-page:not(.nd-page-home) .nd-whatsapp-float,
  body.nd-page:not(.nd-page-home) .nd-whatsapp{
    right:12px!important;
    bottom:12px!important;
    width:50px!important;
    height:50px!important;
  }
}
@media (max-width: 420px){
  body.nd-page:not(.nd-page-home) #ftco-navbar{
    min-height:82px!important;
    padding:8px 14px!important;
  }
  body.nd-page:not(.nd-page-home) #ftco-navbar>.container{min-height:64px!important}
  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-brand{min-height:60px!important}
  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-brand .nd-logo,
  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-brand img{
    max-width:82px!important;
    height:57px!important;
    max-height:57px!important;
  }
  body.nd-page:not(.nd-page-home) #ftco-navbar .navbar-toggler{
    padding-left:8px!important;
    font-size:13px!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item,
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item .slider-text{
    min-height:300px!important;
    height:300px!important;
  }
  body.nd-page:not(.nd-page-home) .home-slider .slider-item.bread-item h1{
    font-size:31px!important;
  }
}
