/* NOBATYOU homepage refresh v20260929-1
   ADDITIVE stylesheet. The existing assets/nobatyar.css stays untouched.
   Only body.ny-home-redesign is styled; PHP booking and payment behaviour remains unchanged.
*/
body.ny-home-redesign {background:#f5faff!important; overflow-x:hidden}
body.ny-home-redesign > header {position:relative;z-index:80;background:#fff!important;min-height:0!important}
body.ny-home-redesign > header .nav-container {
  position:relative;max-width:1320px!important;min-height:78px!important;
  padding:12px 24px!important;gap:20px!important;
}
body.ny-home-redesign .nav-links {gap:5px!important}
body.ny-home-redesign .nav-links a {border-radius:12px!important}
body.ny-home-redesign .ny-mobile-login {display:none!important}
body.ny-home-redesign .ny-menu-toggle {display:none!important}

/* Separate the hero photograph from its typography. No text overlays a face. */
body.ny-home-redesign .ny-hero-reference {
  display:flex!important;flex-direction:column!important;isolation:isolate;
  min-height:0!important;height:auto!important;padding:0!important;
  overflow:hidden!important;border-radius:0 0 30px 30px!important;
  background:linear-gradient(180deg,#edf7ff 0%,#f7fbff 100%)!important;
}
body.ny-home-redesign .ny-hero-reference::before,
body.ny-home-redesign .ny-hero-reference::after {display:none!important}
body.ny-home-redesign .ny-hero-visual {
  position:relative;display:block;width:100%;height:clamp(270px,25.5vw,395px);
  flex:none;overflow:hidden;background:#e9f6ff;
}
body.ny-home-redesign .ny-hero-visual img {
  display:block;width:100%;height:100%;max-width:none;
  object-fit:cover;object-position:50% top;
}
body.ny-home-redesign .ny-hero-visual::after {
  content:'';pointer-events:none;position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(247,251,255,0) 65%,rgba(247,251,255,.5) 85%,#f7fbff 100%);
}
body.ny-home-redesign .ny-hero-inner {
  position:relative!important;z-index:3;display:block!important;
  width:100%!important;max-width:1000px!important;
  height:auto!important;min-height:0!important;
  padding:0 18px 28px!important;margin:-35px auto 0!important;
  text-align:center!important;
}
body.ny-home-redesign .ny-hero-copy {
  position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;
  width:min(840px,100%)!important;max-width:none!important;margin:0 auto!important;
  padding:0!important;text-align:center!important;
}
body.ny-home-redesign .ny-hero-mini {
  display:inline-flex!important;align-items:center;justify-content:center;
  background:rgba(255,255,255,.96)!important;border:1px solid #d9e9fc!important;
  border-radius:999px!important;padding:8px 16px!important;
  color:#17599f!important;font-size:12px!important;font-weight:800!important;
  box-shadow:0 10px 23px rgba(31,85,146,.07)!important;
}
body.ny-home-redesign .ny-hero-copy h1,
body.ny-home-redesign .ny-hero-reference h1 {
  position:relative!important;inset:auto!important;max-width:none!important;
  font-size:clamp(31px,3.9vw,51px)!important;line-height:1.4!important;
  margin:12px 0 4px!important;color:#132747!important;text-align:center!important;
  text-shadow:none!important;letter-spacing:-.5px!important;
}
body.ny-home-redesign .ny-hero-copy h1 span {display:inline;color:#1769e8!important}
body.ny-home-redesign .ny-hero-copy p,
body.ny-home-redesign .ny-hero-reference p {
  position:relative!important;inset:auto!important;
  width:auto!important;max-width:840px!important;
  margin:0 auto!important;color:#435776!important;
  text-align:center!important;font-size:15px!important;line-height:2!important;
}
/* Keep the existing GET search form and its field order. */
body.ny-home-redesign .ny-search-wrap {
  position:relative;z-index:9;width:min(1080px,calc(100% - 36px))!important;
  margin:22px auto 25px!important;
}
body.ny-home-redesign .ny-search-wrap .ny-hero-search {
  display:grid!important;
  grid-template-columns:minmax(0,1.7fr) minmax(140px,1fr) minmax(120px,.8fr) auto!important;
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  width:100%!important;max-width:none!important;transform:none!important;
  margin:0!important;background:#fff!important;
  border:1px solid #dce8f5!important;border-radius:21px!important;
  box-shadow:0 12px 35px rgba(35,86,145,.10)!important;
}
body.ny-home-redesign .ny-search-wrap .ny-hero-search .search-field:nth-of-type(3){display:flex!important}
body.ny-home-redesign .home-content {
  max-width:1180px!important;margin:10px auto 0!important;padding:0 16px!important;
}
body.ny-home-redesign .category-panel {border-radius:24px!important;box-shadow:0 12px 40px rgba(29,72,125,.065)!important}
body.ny-home-redesign .category-panel .ny-category-strip {grid-template-columns:repeat(7,minmax(0,1fr))!important}
body.ny-home-redesign .ny-category-item {min-width:0!important}

@media (max-width:900px) {
  body.ny-home-redesign .ny-search-wrap .ny-hero-search {
     grid-template-columns:minmax(0,1.6fr) minmax(130px,1fr) minmax(100px,.8fr) auto!important;
  }
  body.ny-home-redesign .ny-search-wrap .ny-hero-search .search-field:nth-of-type(3){display:flex!important}
  body.ny-home-redesign .category-panel .ny-category-strip {grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:700px) {
  body.ny-home-redesign > header,
  body.ny-home-redesign > header .nav-container {min-height:0!important}
  body.ny-home-redesign > header .nav-container {
    display:grid!important;direction:rtl;
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    align-items:center!important;justify-items:center!important;
    padding:9px 14px!important;gap:8px!important;min-height:66px!important;
  }
  body.ny-home-redesign .ny-header-actions {
    order:unset!important;grid-column:1;grid-row:1;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:46px!important;min-width:0!important;margin:0!important;
  }
  body.ny-home-redesign .ny-login-pill {display:none!important}
  body.ny-home-redesign .ny-city-pill {
    display:grid!important;place-items:center!important;
    width:43px!important;height:43px!important;min-width:0!important;
    padding:0!important;margin:0!important;
    border-radius:14px!important;font-size:16px!important;
    color:#1769e8!important;background:#eff6ff!important;
    border:1px solid #dfebff!important;box-shadow:none!important;
  }
  body.ny-home-redesign .ny-city-pill span {display:none!important}
  body.ny-home-redesign .logo {
    order:unset!important;grid-column:2;grid-row:1;
    justify-self:center!important;align-self:center!important;
    min-width:0!important;margin:0!important;
    font-size:21px!important;direction:rtl;
  }
  body.ny-home-redesign .logo i {width:35px!important;height:35px!important}
  body.ny-home-redesign .ny-menu-toggle {
    order:unset!important;grid-column:3;grid-row:1;
    display:grid!important;place-items:center!important;
    width:43px!important;min-width:43px!important;height:43px!important;min-height:43px!important;
    padding:0!important;margin:0!important;
    border:1px solid #dce8f6!important;border-radius:14px!important;
    background:#fff!important;color:#1769e8!important;
    box-shadow:none!important;transform:none!important;filter:none!important;
    font-size:19px!important;cursor:pointer;
  }
  body.ny-home-redesign .ny-menu-toggle:hover,
  body.ny-home-redesign .ny-menu-toggle:focus-visible {
    background:#eef6ff!important;color:#0d55c7!important;transform:none!important;
  }
  body.ny-home-redesign .nav-links,
  body.ny-home-redesign .ny-nav-open .nav-links {
    position:absolute!important;top:calc(100% - 1px)!important;
    inset-inline:13px!important;right:13px!important;left:13px!important;
    z-index:100!important;list-style:none!important;
    width:auto!important;max-width:none!important;flex:initial!important;
    grid-column:1/-1;grid-row:2;order:unset!important;
    margin:0!important;padding:10px!important;
    background:#fff!important;border:1px solid #dfebfa!important;
    border-radius:0 0 18px 18px!important;box-shadow:0 20px 30px rgba(20,65,120,.14)!important;
    overflow:visible!important;white-space:normal!important;
    flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;
  }
  body.ny-home-redesign .nav-links{display:none!important}
  body.ny-home-redesign .ny-nav-open .nav-links {display:flex!important}
  body.ny-home-redesign .nav-links li,
  body.ny-home-redesign .nav-links a {display:block!important;width:100%!important;text-align:right!important}
  body.ny-home-redesign .nav-links a {font-size:13px!important;padding:12px 14px!important}
  body.ny-home-redesign .ny-mobile-login{display:block!important;border-top:1px solid #e7edf5;padding-top:6px!important;margin-top:5px!important}
  body.ny-home-redesign .ny-hero-visual {height:clamp(185px,53vw,285px)!important}
  body.ny-home-redesign .ny-hero-visual img {object-fit:cover;object-position:46% top}
  body.ny-home-redesign .ny-hero-inner {margin:-16px auto 0!important;padding:0 14px 19px!important}
  body.ny-home-redesign .ny-hero-mini {font-size:11px!important;padding:7px 12px!important}
  body.ny-home-redesign .ny-hero-copy h1,
  body.ny-home-redesign .ny-hero-reference h1 {font-size:clamp(27px,7.5vw,37px)!important;line-height:1.45!important;margin:9px 0 5px!important}
  body.ny-home-redesign .ny-hero-copy p,
  body.ny-home-redesign .ny-hero-reference p {font-size:12px!important;line-height:2!important;max-width:450px!important}
  body.ny-home-redesign .ny-search-wrap {width:calc(100% - 28px)!important;margin:17px auto 22px!important}
  body.ny-home-redesign .ny-search-wrap .ny-hero-search {
     position:relative!important;width:100%!important;
     display:flex!important;flex-direction:column!important;
     grid-template-columns:none!important;gap:4px!important;
     padding:9px!important;border-radius:19px!important;
  }
  body.ny-home-redesign .ny-search-wrap .ny-hero-search .search-field,
  body.ny-home-redesign .ny-search-wrap .ny-hero-search .search-field:nth-of-type(3) {
     display:flex!important;width:100%!important;height:48px!important;min-height:48px!important;
     border:0!important;border-bottom:1px solid #eaf0f7!important;
     padding:0 11px!important;
  }
  body.ny-home-redesign .ny-search-wrap .ny-hero-search .btn-search {
     display:flex!important;width:100%!important;height:48px!important;min-height:48px!important;
     margin:5px 0 0!important;background:#1769e8!important;color:white!important;
     border-radius:13px!important;
  }
  body.ny-home-redesign .home-content {padding:0 13px!important;margin:12px auto 0!important}
  body.ny-home-redesign .category-panel {padding:15px!important;border-radius:19px!important}
  body.ny-home-redesign .category-panel .ny-category-strip {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.ny-home-redesign .ny-category-item{min-height:94px!important;padding:9px 5px!important}
  body.ny-home-redesign .ny-home-stats{grid-template-columns:1fr!important}
  body.ny-home-redesign .grid-cards{grid-template-columns:1fr!important}
}
@media (max-width:370px) {
  body.ny-home-redesign .ny-hero-visual {height:185px!important}
  body.ny-home-redesign .ny-hero-copy h1 {font-size:26px!important}
  body.ny-home-redesign .logo {font-size:18px!important}
}

/* Phase 3: Medical-specialty directory. Scoped to homepage only. */
body.ny-home-redesign .category-panel .ny-category-strip.ny-medical-specialty-grid {
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;
  max-height:360px;overflow-y:auto;overscroll-behavior:contain;padding:5px!important;scrollbar-width:thin;
}
body.ny-home-redesign .ny-medical-specialty-grid .ny-category-item {min-height:86px!important;padding:11px 7px!important;gap:7px!important}
body.ny-home-redesign .ny-medical-specialty-grid .ny-category-item span {white-space:normal!important;text-align:center;line-height:1.6;font-size:11px!important}
body.ny-home-redesign .ny-medical-specialty-grid .ny-category-selected {border-color:#1769e8!important;background:#eaf3ff!important;box-shadow:0 0 0 2px #1769e822!important}
@media(max-width:900px){body.ny-home-redesign .category-panel .ny-category-strip.ny-medical-specialty-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;max-height:300px}}
@media(max-width:520px){body.ny-home-redesign .category-panel .ny-category-strip.ny-medical-specialty-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:275px;gap:6px!important}body.ny-home-redesign .ny-medical-specialty-grid .ny-category-item {min-height:79px!important;padding:7px 3px!important}body.ny-home-redesign .ny-medical-specialty-grid .ny-category-item i {width:36px!important;height:36px!important;font-size:15px!important}body.ny-home-redesign .ny-medical-specialty-grid .ny-category-item span{font-size:9px!important}}

/* V3.1: top-level service directory + doctor-only specialty subdirectory. */
body.ny-home-redesign .ny-category-hint {font-size:11px;color:#64748b;margin:4px 0 0}
body.ny-home-redesign .category-panel .ny-category-strip.ny-services-grid {
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:11px!important;
 max-height:none!important;overflow:visible!important;padding:3px!important;
}
body.ny-home-redesign .ny-services-grid .ny-category-item{min-height:102px!important;gap:5px!important;padding:12px 7px!important}
body.ny-home-redesign .ny-services-grid .ny-category-item span {font-size:13px!important;text-align:center!important;white-space:normal!important;line-height:1.65!important}
body.ny-home-redesign .ny-services-grid .ny-category-item small {font-size:9px!important;color:#7586a0!important;line-height:1.6;text-align:center}
body.ny-home-redesign .ny-services-grid .ny-category-selected,
body.ny-home-redesign .ny-medical-specialty-grid .ny-category-selected {background:#eaf3ff!important;border-color:#1769e8!important;box-shadow:0 0 0 2px rgba(23,105,232,.12)!important}
body.ny-home-redesign .ny-subcategory-area{margin-top:19px;padding-top:17px;border-top:1px solid #e7edf6;scroll-margin-top:15px}
body.ny-home-redesign .ny-subcategory-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
body.ny-home-redesign .ny-subcategory-heading h3{margin:0!important;font-size:17px!important}
body.ny-home-redesign .ny-subcategory-heading a{font-size:12px;font-weight:800;color:#1769e8;text-decoration:none}
@media(max-width:900px){body.ny-home-redesign .category-panel .ny-category-strip.ny-services-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:520px){
 body.ny-home-redesign .category-panel .ny-category-strip.ny-services-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 body.ny-home-redesign .ny-services-grid .ny-category-item{min-height:90px!important;padding:8px 3px!important}
 body.ny-home-redesign .ny-services-grid .ny-category-item span{font-size:11px!important}
 body.ny-home-redesign .ny-services-grid .ny-category-item small{font-size:8px!important}
 body.ny-home-redesign .category-panel .ny-category-strip.ny-medical-specialty-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:330px!important}
 body.ny-home-redesign .ny-subcategory-heading h3{font-size:14px!important}
}
