/* DianaMik v5.11 — cross-browser / browser-zoom responsive stabilization.
   Loaded after all page-specific styles so these rules consistently win. */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
#page,
.dianamik-native-content,
.service-page-wrapper,
.cashless-page-wrapper,
.gov-page-wrapper,
.jci-page-wrapper,
.medico-page-wrapper,
.nabl-page-wrapper,
.pharmacy-page-wrapper,
.tpa-page-wrapper,
.trials-page-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

*, *::before, *::after { min-width: 0; }

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

iframe { width: 100%; }

.container,
.sp-container,
.nav-container,
.footer-container,
.blog-wrapper,
.content-area {
  width: min(100% - 40px, 1200px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent long content from widening cards/columns at non-100% browser zoom. */
.nav-links,
.mega-menu,
.hero-content,
.about__stats,
.stats-grid,
.reviews__grid,
.why__grid,
.vmv__grid,
.clients__grid,
.services-grid,
.features-grid,
.cards-grid,
.departments-grid,
.intro-grid,
.content-grid,
.contact__grid,
.blog-grid,
.blogs-grid,
.expertise__grid,
.client-vertical-columns,
.masonry-grid {
  min-width: 0;
  max-width: 100%;
}

.about__stats > *,
.stats-grid > *,
.reviews__grid > *,
.why__grid > *,
.vmv__grid > *,
.clients__grid > *,
.services-grid > *,
.features-grid > *,
.cards-grid > *,
.departments-grid > *,
.intro-grid > *,
.content-grid > *,
.contact__grid > *,
.blog-grid > *,
.blogs-grid > *,
.expertise__grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Tables keep their content readable without pushing the whole page sideways. */
.table-responsive,
.table-wrapper,
.hospitals-table-wrapper,
.content-area:has(> table) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  max-width: 100%;
}

/* Make large vertical rhythm fluid; avoids oversized gaps after zoom changes. */
.about,
.expertise,
.stats-section,
.client-reviews,
.why,
.clients,
.clients-section,
.contact,
.contact-section,
.gallery-section,
.blog-section,
.blogs-section,
.faq,
.faq-directory-page,
.google-reviews-section,
.about-hero,
.team-hero,
.section,
.section-padding,
.sp-section {
  padding-top: clamp(56px, 6vw, 96px) !important;
  padding-bottom: clamp(56px, 6vw, 96px) !important;
}

.about__header,
.expertise__header,
.stats__header,
.reviews__header,
.why__header,
.clients__header,
.clients-header,
.contact__header,
.gallery__header,
.blog__header,
.faq__header,
.faq-directory-header,
.section-header,
.section-title {
  margin-bottom: clamp(24px, 3.5vw, 54px) !important;
}

/* Homepage hero: bounded height prevents huge empty-looking areas on zoom-out. */
.hero {
  height: clamp(560px, 78vh, 820px) !important;
  min-height: 560px;
}
.hero .slide,
.hero-slider,
.slide { height: 100% !important; }
.hero-content { width: min(90%, 800px); }
.hero-content h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
.hero-content p { font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* Service page hero spacing was fixed at 240px/120px; make it viewport-safe. */
.sp-hero-section {
  min-height: clamp(460px, 62vh, 680px) !important;
  padding-top: clamp(150px, 14vw, 205px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
  background-attachment: scroll !important;
}
.sp-hero-content { width: min(100%, 800px); padding-inline: 4px; }
.sp-hero-content h1 { font-size: clamp(2rem, 4vw, 3.2rem); overflow-wrap: anywhere; }
.sp-hero-content p { font-size: clamp(1rem, 1.5vw, 1.2rem); }

/* Blog detail hero/content must not create a tall gap or overflow. */
.blog-hero { height: clamp(320px, 42vw, 480px) !important; }
.blog-details,
.blog-body,
.blog-content { max-width: 100%; overflow-wrap: break-word; }

/* v5.11: keep the full desktop navigation visible on zoomed desktop widths.
   1366px at 110% zoom is roughly 1242 CSS px, so we compact the desktop header
   between 1101px and 1320px instead of switching to the mobile hamburger. */
@media (min-width: 1101px) and (max-width: 1320px) {
  .nav-container {
    width: min(100% - 20px, 1220px);
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 10px !important;
  }

  .main-navbar .nav-container { min-height: 66px; height: auto; }
  .logo { flex: 0 0 auto; }
  .logo img { max-width: 150px; max-height: 48px; width: auto; height: auto; }
  .menu-toggle { display: none !important; }
  .nav-links {
    position: static !important;
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: clamp(6px, .75vw, 12px) !important;
  }
  .nav-links li { width: auto !important; flex: 0 0 auto; }
  .nav-links a:not(.book-btn) {
    display: inline-flex !important;
    width: auto !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: clamp(11px, .86vw, 13px) !important;
    white-space: nowrap !important;
  }
  .book-btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 9px 11px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  .dropdown:hover .mega-menu { display: block; }
  .dropdown:hover .mega-menu.grid-2 { display: grid; }

  .top-info {
    width: min(100% - 20px, 1220px);
    padding-inline: 0 !important;
    gap: 6px 14px !important;
  }

  .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .blog-grid, .blogs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .menu-toggle { display: flex !important; flex: 0 0 30px; }
  .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 14px 20px 18px !important;
    display: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
    z-index: 9999;
  }
  .nav-links.show-menu { display: flex !important; }
  .nav-links li { width: 100% !important; }
  .nav-links a:not(.book-btn) { display: block !important; width: 100% !important; white-space: normal !important; }
  .book-btn { display: inline-flex !important; justify-content: center; width: auto !important; max-width: 100%; }
  .dropdown:hover .mega-menu,
  .dropdown:hover .mega-menu.grid-2 { display: none; }
  .mega-menu,
  .mega-menu.grid-2 {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    padding: 8px 0 4px 12px !important;
    box-shadow: none !important;
  }
  .dropdown.active .mega-menu,
  .dropdown.active .mega-menu.grid-2 { display: block !important; }
  .container,
  .sp-container,
  .footer-container,
  .blog-wrapper,
  .content-area { width: min(100% - 32px, 1040px); }

  .main-navbar .nav-container { height: 72px; }
  .logo img { max-height: 52px; width: auto; }

  .about__stats,
  .about__metrics,
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .masonry-grid { column-gap: 18px; }
}

@media (max-width: 992px) {
  .container,
  .sp-container,
  .footer-container,
  .blog-wrapper,
  .content-area { width: min(100% - 28px, 920px); }

  .about,
  .expertise,
  .stats-section,
  .client-reviews,
  .why,
  .clients,
  .clients-section,
  .contact,
  .contact-section,
  .gallery-section,
  .blog-section,
  .blogs-section,
  .faq,
  .faq-directory-page,
  .google-reviews-section,
  .about-hero,
  .team-hero,
  .section,
  .section-padding,
  .sp-section {
    padding-top: clamp(48px, 7vw, 72px) !important;
    padding-bottom: clamp(48px, 7vw, 72px) !important;
  }

  .reviews__grid,
  .why__grid,
  .clients__grid,
  .features-grid,
  .cards-grid,
  .departments-grid,
  .contact__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }

  .services-grid,
  .intro-grid,
  .content-grid { gap: 24px !important; }

  .client-vertical-columns { width: min(100%, 720px); }
  #certificates-grid { gap: 20px; }
}

@media (max-width: 768px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }

  .container,
  .sp-container,
  .nav-container,
  .footer-container,
  .blog-wrapper,
  .content-area {
    width: calc(100% - 28px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-bar { padding: 4px 0 !important; }
  .top-info {
    width: calc(100% - 20px) !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px 8px !important;
    line-height: 1.2 !important;
  }
  .top-info > span { margin: 0 !important; gap: 4px !important; }
  .top-phone-pair { gap: 3px !important; }
  .top-info a { overflow-wrap: anywhere; }

  .main-navbar .nav-container { height: 64px !important; }
  .logo img { max-height: 48px; max-width: min(190px, 62vw); width: auto; }
  .nav-links { max-height: calc(100dvh - 96px); padding: 12px 14px 16px !important; }

  .hero {
    height: clamp(480px, 72dvh, 650px) !important;
    min-height: 480px !important;
  }
  .hero-content { width: calc(100% - 42px); max-width: 680px; }
  .hero-content h1 { font-size: clamp(1.75rem, 7vw, 2.35rem) !important; line-height: 1.18; }
  .hero-content p { font-size: clamp(.95rem, 3.8vw, 1.05rem) !important; line-height: 1.55; margin-bottom: 20px; }
  .hero-btn, .btn, .btn-primary, .btn-orange, .btn-accent { max-width: 100%; white-space: normal; text-align: center; }

  .sp-hero-section {
    min-height: 440px !important;
    padding-top: clamp(115px, 24vw, 145px) !important;
    padding-bottom: 56px !important;
  }
  .sp-hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.2; }

  .about,
  .expertise,
  .stats-section,
  .client-reviews,
  .why,
  .clients,
  .clients-section,
  .contact,
  .contact-section,
  .gallery-section,
  .blog-section,
  .blogs-section,
  .faq,
  .faq-directory-page,
  .google-reviews-section,
  .about-hero,
  .team-hero,
  .section,
  .section-padding,
  .sp-section {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  .about__header,
  .expertise__header,
  .stats__header,
  .reviews__header,
  .why__header,
  .clients__header,
  .clients-header,
  .contact__header,
  .gallery__header,
  .blog__header,
  .faq__header,
  .faq-directory-header,
  .section-header,
  .section-title { margin-bottom: 24px !important; }

  .about__stats,
  .about__metrics,
  .stats-grid { gap: 14px !important; }

  .reviews__grid,
  .why__grid,
  .vmv__grid,
  .clients__grid,
  .services-grid,
  .features-grid,
  .cards-grid,
  .departments-grid,
  .intro-grid,
  .content-grid,
  .contact__grid,
  .blog-grid,
  .blogs-grid,
  .expertise__grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .stat,
  .stat-box,
  .review-card,
  .service-card,
  .expertise__item,
  .contact__card,
  .vmv__card,
  .objective-box { padding: 22px 18px !important; }

  .about__story { padding-inline: 0 !important; }
  .about__text-wrapper { padding: 26px 20px !important; }
  .about-image { margin-bottom: 24px !important; }
  .about-image img { width: min(100%, 600px) !important; }

  .faq__accordion { padding-inline: 0 !important; }
  .faq__item { margin-bottom: 10px !important; }
  .faq__question { padding: 14px 15px !important; gap: 12px; }
  .faq__answer { padding-inline: 15px !important; }
  .faq-category-tabs { gap: 7px !important; margin-bottom: 18px !important; }
  .faq-category-tab { padding: 8px 11px !important; font-size: 13px; }

  .masonry-grid { column-count: 2; column-gap: 14px; padding-inline: 0 !important; }
  .masonry-item { margin-bottom: 14px; }
  #certificates-grid { padding: 8px 0 30px !important; gap: 14px; }
  .certificate-card { flex-basis: min(100%, 340px); }

  .blog-hero { height: clamp(280px, 55vw, 360px) !important; }
  .blog-details { margin-top: -70px !important; width: calc(100% - 28px); }

  footer,
  .footer,
  .footer-section { padding-top: 32px !important; padding-bottom: 22px !important; }
  .footer-container { gap: 20px !important; }
  footer p, footer ul, .footer p, .footer ul { margin-top: 5px !important; margin-bottom: 5px !important; }
}

@media (max-width: 576px) {
  .container,
  .sp-container,
  .nav-container,
  .footer-container,
  .blog-wrapper,
  .content-area { width: calc(100% - 24px) !important; }

  .top-info { flex-direction: column; gap: 2px !important; font-size: 12px; }
  .top-info > span { justify-content: center; }
  .main-navbar .nav-container { height: 60px !important; }
  .logo img { max-height: 44px; max-width: 180px; }

  .hero { height: clamp(450px, 68dvh, 580px) !important; min-height: 450px !important; }
  .hero-content { width: calc(100% - 28px); }

  .about__stats,
  .about__metrics,
  .stats-grid { grid-template-columns: 1fr !important; }

  .client-vertical-columns { grid-template-columns: 1fr 1fr; gap: 10px !important; height: 380px; }
  .client-logo-item { min-height: 88px !important; padding: 8px !important; }

  .masonry-grid { column-count: 1; }
  .gallery__title,
  .faq__title { font-size: clamp(1.45rem, 7vw, 1.8rem) !important; }

  .blog-details { margin-top: -48px !important; }
  .blog-body, .blog-content { padding-left: 0 !important; padding-right: 0 !important; }

  .table-responsive,
  .table-wrapper,
  .hospitals-table-wrapper { margin-inline: 0; }
}

@media (max-width: 420px) {
  .top-phone-pair { white-space: normal !important; flex-wrap: wrap; justify-content: center; }
  .hero-content h1 { font-size: 1.65rem !important; }
  .sp-hero-content h1 { font-size: 1.7rem !important; }
  .faq-category-tab { width: 100%; border-radius: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* v5.13: mobile navigation must anchor to the navbar, not the page/viewport. */
.main-navbar {
  position: relative;
  z-index: 10020;
}

@media (max-width: 1100px) {
  .main-navbar .nav-container {
    position: static !important;
  }
  .main-navbar .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 10021 !important;
  }
}

/* ===== DIANAMIK V5.15 HOMEPAGE VISUAL TUNING ===== */
/* Make the two homepage section labels read as clear heading-level badges. */
.home .about__badge,
.home .expertise__badge {
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  line-height: 1.35 !important;
  margin-bottom: 18px !important;
}

/* Keep Award-Winning Results cards visibly smaller without changing the content. */
.home .stats-section .stats-grid {
  gap: 22px !important;
  max-width: 980px !important;
}
.home .stats-section .stat-box {
  max-width: 300px !important;
  min-height: 0 !important;
  padding: 26px 20px !important;
}
.home .stats-section .stat-box .icon {
  width: 62px !important;
  height: 62px !important;
  font-size: 32px !important;
  margin-bottom: 12px !important;
}
.home .stats-section .stat-box h2 {
  font-size: 38px !important;
  margin: 5px 0 !important;
}
.home .stats-section .stat-box p {
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: 1px !important;
}

@media (max-width: 768px) {
  .home .about__badge,
  .home .expertise__badge {
    font-size: 16px !important;
    padding: 7px 16px !important;
  }
  .home .stats-section .stats-grid {
    gap: 14px !important;
  }
  .home .stats-section .stat-box {
    max-width: 280px !important;
    margin-inline: auto !important;
    padding: 22px 16px !important;
  }
  .home .stats-section .stat-box .icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 28px !important;
  }
  .home .stats-section .stat-box h2 {
    font-size: 34px !important;
  }
}

/* ===== DIANAMIK V5.16 ALL HOMEPAGE SECTION LABELS ===== */
/* Keep every homepage section badge at one consistent, heading-like scale. */
.home .about__badge,
.home .expertise__badge,
.home .reviews__badge,
.home .stats__badge,
.home .why__badge,
.home .clients__badge,
.home .blog__badge,
.home .contact__badge,
.home .faq__badge {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  padding: 8px 18px !important;
  margin-bottom: 18px !important;
}
@media (max-width: 768px) {
  .home .about__badge,
  .home .expertise__badge,
  .home .reviews__badge,
  .home .stats__badge,
  .home .why__badge,
  .home .clients__badge,
  .home .blog__badge,
  .home .contact__badge,
  .home .faq__badge {
    font-size: 16px !important;
    padding: 7px 16px !important;
    margin-bottom: 15px !important;
  }
}

/* ===== DIANAMIK V5.17 HOMEPAGE LABEL PULSE ===== */
/* Soft, non-layout-shifting pulse for all homepage section labels. */
.home .about__badge,
.home .expertise__badge,
.home .reviews__badge,
.home .stats__badge,
.home .why__badge,
.home .clients__badge,
.home .blog__badge,
.home .contact__badge,
.home .faq__badge {
  animation: dianamikLabelPulse 2s ease-in-out infinite;
  will-change: opacity;
}

@keyframes dianamikLabelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

@media (prefers-reduced-motion: reduce) {
  .home .about__badge,
  .home .expertise__badge,
  .home .reviews__badge,
  .home .stats__badge,
  .home .why__badge,
  .home .clients__badge,
  .home .blog__badge,
  .home .contact__badge,
  .home .faq__badge {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ===== v5.19 ZOOM-SAFE HEADER ===== */
.logo img,.main-navbar .logo img{width:auto!important;height:auto!important;max-height:58px;object-fit:contain;flex-shrink:0}
@media (min-width: 992px) and (max-width: 1320px){
  .main-navbar .nav-container{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:clamp(12px,1.6vw,24px)!important}
  .main-navbar .logo{flex:0 0 auto!important;margin-right:0!important}
  .main-navbar .logo img{max-width:145px!important;height:auto!important;object-fit:contain}
  .main-navbar .nav-links{flex:1 1 auto!important;justify-content:flex-end!important;gap:clamp(5px,.65vw,10px)!important;margin-left:0!important;min-width:0!important}
  .main-navbar .nav-links a:not(.book-btn){padding-left:5px!important;padding-right:5px!important;font-size:13px!important}
  .main-navbar .book-btn{padding:10px 12px!important;font-size:12px!important;white-space:nowrap!important}
}
/* Explicit long-form declarations retained for cross-browser parser consistency. */
.main-navbar .logo img { height: auto !important; object-fit: contain; }


/* ===== v5.20 ZOOM HEADER CORRECTION =====
   Keep the wide official logo readable on desktop zoom and place the menu
   directly after the logo instead of pushing it to the far right. */
@media (min-width:1101px) and (max-width:1320px){
  .main-navbar .nav-container{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:min(100% - 20px,1240px)!important;
    max-width:1240px!important;
    min-height:70px!important;
    height:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    gap:0!important;
  }
  .main-navbar .logo{
    flex:0 0 auto!important;
    margin:0!important;
    min-width:0!important;
  }
  .main-navbar .logo img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:220px!important;
    max-height:52px!important;
    object-fit:contain!important;
    flex-shrink:0!important;
  }
  .main-navbar .nav-links{
    position:static!important;
    display:flex!important;
    flex:0 1 auto!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:auto!important;
    max-height:none!important;
    overflow:visible!important;
    margin-left:clamp(18px,2vw,28px)!important;
    margin-right:0!important;
    padding:0!important;
    gap:clamp(5px,.55vw,9px)!important;
    background:transparent!important;
    box-shadow:none!important;
    min-width:0!important;
  }
  .main-navbar .nav-links a:not(.book-btn){
    padding-left:4px!important;
    padding-right:4px!important;
    font-size:12.5px!important;
    white-space:nowrap!important;
  }
  .main-navbar .book-btn{
    display:inline-flex!important;
    padding:10px 11px!important;
    font-size:11.5px!important;
    white-space:nowrap!important;
  }
  .main-navbar .menu-toggle{display:none!important}
}

/* ===== v5.20 CLIENT CENTERING =====
   This stylesheet loads after both the homepage and Clients-page styles, so
   the complete animated block stays centered on both templates. */
.clients-slider{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;overflow:hidden!important}
.clients-track{width:100%!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important}
.client-vertical-columns{width:100%!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important;justify-content:center!important}
.client-portfolio-cta{width:100%!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important}

@media (max-width:767px){
  .clients-track,.client-vertical-columns,.client-portfolio-cta{width:100%!important;max-width:100%!important}
}


/* ===== v5.21 OFFICIAL LOGO CANVAS + ZOOM HEADER FIX =====
   The supplied logo artwork was on a square 1563x1563 canvas. v5.19/v5.20
   constrained that square by height, which made the visible banner artwork
   tiny. The v5.21 asset is tightly cropped; these rules size the banner itself. */
@media (min-width:1321px){
  .main-navbar .logo{flex:0 0 230px!important;margin:0!important}
  .main-navbar .logo img{display:block!important;width:230px!important;max-width:230px!important;height:auto!important;max-height:none!important;object-fit:contain!important}
}
@media (min-width:1101px) and (max-width:1320px){
  .main-navbar .nav-container{justify-content:flex-start!important;gap:0!important}
  .main-navbar .logo{flex:0 0 210px!important;width:210px!important;min-width:190px!important;margin:0!important}
  .main-navbar .logo img{display:block!important;width:210px!important;min-width:190px!important;max-width:230px!important;height:auto!important;max-height:none!important;object-fit:contain!important}
  .main-navbar .nav-links{margin-left:18px!important;justify-content:flex-start!important}
}
@media (max-width:1100px){
  .main-navbar .logo{flex:0 0 auto!important;width:auto!important;min-width:0!important}
  .main-navbar .logo img{display:block!important;width:180px!important;max-width:55vw!important;height:auto!important;max-height:none!important;object-fit:contain!important}
}

/* ===== v5.22 SAME DESKTOP HEADER AT 110% ZOOM =====
   At 100% on a 1366px desktop the header uses the normal desktop layout.
   110% browser zoom reduces the CSS viewport into the 1101-1320 range, so
   earlier compact rules were changing the logo/menu. This final override
   deliberately restores the exact desktop header dimensions in that range. */
@media (min-width:1101px) and (max-width:1320px){
  .main-navbar .nav-container{
    width:100%!important;
    max-width:1200px!important;
    height:80px!important;
    min-height:80px!important;
    margin:0 auto!important;
    padding:0 20px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:0!important;
  }
  .main-navbar .logo{
    flex:0 0 230px!important;
    width:230px!important;
    min-width:230px!important;
    margin:0!important;
  }
  .main-navbar .logo img{
    display:block!important;
    width:230px!important;
    min-width:230px!important;
    max-width:230px!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
  }
  .main-navbar .nav-links{
    position:static!important;
    display:flex!important;
    flex:0 0 auto!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:auto!important;
    max-height:none!important;
    overflow:visible!important;
    margin:0!important;
    padding:0!important;
    gap:18px!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .main-navbar .nav-links li{width:auto!important;flex:0 0 auto!important}
  .main-navbar .nav-links a:not(.book-btn){
    display:inline-flex!important;
    width:auto!important;
    font-size:14px!important;
    padding:8px 10px!important;
    white-space:nowrap!important;
  }
  .main-navbar .book-btn{
    display:inline-flex!important;
    width:auto!important;
    font-size:14px!important;
    line-height:normal!important;
    padding:12px 24px!important;
    white-space:nowrap!important;
  }
  .main-navbar .menu-toggle{display:none!important}
}

/* ===== v5.24 DESKTOP ZOOM DROPDOWN FIX =====
   Keep the v5.22 header geometry, but do not let top-level navigation rules
   force mega-menu links onto a single line. Long service labels may wrap
   inside their own column so the dropdown remains readable at 100%/110%+. */
@media (min-width:1101px){
  .main-navbar .nav-links > li > a:not(.book-btn){
    white-space:nowrap!important;
  }
  .main-navbar .mega-menu{
    box-sizing:border-box!important;
    max-width:calc(100vw - 24px)!important;
  }
  .main-navbar .mega-menu.grid-2{
    width:min(620px,calc(100vw - 24px))!important;
    min-width:0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:24px!important;
  }
  .main-navbar .mega-menu .mega-column{
    min-width:0!important;
  }
  .main-navbar .mega-menu a{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    padding:8px 10px!important;
    font-size:14px!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
}

/* ===== v5.25 DROPDOWN SPECIFICITY FIX =====
   The compact desktop header rule uses a more-specific selector with !important.
   Match/exceed that specificity for mega-menu links so long expertise names can
   actually wrap instead of being clipped at 110%+ browser zoom. */
@media (min-width:1101px){
  .main-navbar .nav-links .mega-menu.grid-2{
    width:min(700px,calc(100vw - 32px))!important;
    max-width:calc(100vw - 32px)!important;
    min-width:0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:28px!important;
    row-gap:0!important;
    overflow:visible!important;
  }
  .main-navbar .nav-links .mega-menu .mega-column{
    min-width:0!important;
    width:100%!important;
    overflow:visible!important;
  }
  .main-navbar .nav-links .mega-menu a:not(.book-btn){
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    padding:8px 10px!important;
    font-size:14px!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    box-sizing:border-box!important;
  }
}
