/*
Theme Name: Astra Child
Author: Nasmed Diagnostic Team
Description: Fully Responsive, Fluid Edge-to-Edge Child Theme for Nasmed Diagnostic (Standardized 1-to-1 with SRE Liftech & Gajanand)
Version: 2.1.0
Template: astra
*/

/* ==========================================================================
   1. GLOBAL RESET & BASE RULES (100% FLUID LIKE SRE & GAJANAND)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Complete Removal of Block-Editor / Gutenberg Container Constraints */
.ast-page-builder-template .entry-content[data-ast-blocks-layout] > .inherit-container-width > *,
.ast-page-builder-template .entry-content[data-ast-blocks-layout] > *:not(.wp-block-group):where(:not(.uagb-is-root-container):not(.spectra-is-root-container)) > *,
.entry-content[data-ast-blocks-layout] > .wp-block-cover .wp-block-cover__inner-container,
.entry-content[data-ast-blocks-layout] > * > *,
.nasmed-guidelines-overlay,
.nasmed-hero-video-overlay {
  max-width: none !important;
  width: 100% !important;
}

html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh;
  overflow-x: clip !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #ffffff;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   2. ZERO-GUTTER FULL-WIDTH CONTAINER OVERRIDES
   ========================================================================== */
#page,
#content,
#content.site-content,
.site-content,
.site-content > .ast-container,
#content > .ast-container,
.site-content .ast-container,
#content .ast-container,
.ast-page-builder-template .site-content > .ast-container,
.site,
.site-header,
#masthead,
#ast-desktop-header,
.ast-main-header-wrap,
.main-header-bar-wrap,
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-plain-container,
.ast-separate-container,
.ast-page-builder-template,
#primary,
.content-area,
.content-area.primary,
#main,
.site-main,
article,
.ast-article-single,
.ast-article-post,
.ast-article-inner,
.entry-content,
.entry-content[data-ast-blocks-layout],
.entry-content[data-ast-blocks-layout] > *,
.entry-content > *,
.ast-page-builder-template .entry-content[data-ast-blocks-layout] > *,
.ast-plain-container.ast-no-sidebar .entry-content > *,
#colophon,
.site-footer,
.ast-custom-footer {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Eliminate Astra default wrapper gaps and borders */
.ast-separate-container #primary,
.ast-separate-container .ast-article-single {
  border: none !important;
  background: transparent !important;
}

/* ==========================================================================
   3. UNIFIED SECTION OUTER WRAPPERS (100% FULL WIDTH EDGE-TO-EDGE)
   ========================================================================== */
[class*="nasmed-"][class*="-wrap"],
[class*="nasmed-"][class*="-section"],
.entry-content > [class*="nasmed-"][class*="-wrap"],
.entry-content > [class*="nasmed-"][class*="-section"],
.entry-content[data-ast-blocks-layout] > [class*="nasmed-"][class*="-wrap"],
.entry-content[data-ast-blocks-layout] > [class*="nasmed-"][class*="-section"],
.nasmed-hero-video-section,
.nasmed-partner-wrap,
.nasmed-partner-red-section,
.nasmed-home-about-wrap,
.nasmed-about-section,
.nasmed-uq-modern-wrap,
.nasmed-solutions-wrap,
.nasmed-testimonials-wrap,
.nasmed-products-carousel-wrap,
.nasmed-our-products-wrap,
.nasmed-mat-guidelines-wrap,
.nasmed-guidelines-banner-wrap,
.nasmed-why-wrap,
.nasmed-why-choose-wrap,
.nasmed-cert-mfg-wrap,
.nasmed-stats-cta-wrap,
.nasmed-footer-wrap,
.nasmed-about-hero-wrap,
.nasmed-about-hero-master-wrap,
.nasmed-about-hero-section,
.nasmed-about-who-wrap,
.nasmed-about-team-wrap,
.nasmed-about-mvv-wrap,
.nasmed-about-services-wrap,
.nasmed-about-faq-wrap,
.nasmed-career-hero-wrap,
.nasmed-career-openings-wrap,
.nasmed-career-why-wrap,
.nasmed-career-life-wrap,
.nasmed-career-apply-wrap,
.nasmed-contact-hero-wrap,
.nasmed-contact-touch-wrap,
.nasmed-contact-get-in-touch-wrap,
.nasmed-products-hero-wrap,
.nasmed-category-hero-wrap,
.nasmed-blog-hero-banner,
.nasmed-case-study-hero-wrap,
.nasmed-case-study-pillars-wrap,
.nasmed-case-study-impact-wrap,
.nasmed-case-study-more-wrap,
.nasmed-cs-hero-wrap,
.nasmed-cs-pillars-wrap,
.nasmed-cs-impact-wrap,
.nasmed-cs-more-wrap,
.nasmed-cs-detail-wrap,
.nasmed-single-case-wrap,
.nasmed-single-prod-wrap,
.uagb-block-be604979 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box !important;
 
}

/* ==========================================================================
   4. SRE & GAJANAND STANDARD 94% FLUID INNER CONTAINERS
   ========================================================================== */
[class*="nasmed-"][class*="-inner"],
.nasmed-hero-inner,
.nasmed-home-about-inner,
.nasmed-about-inner,
.nasmed-partner-inner,
.nasmed-partner-red-inner,
.nasmed-uq-inner-container,
.nasmed-solutions-inner,
.nasmed-testimonials-inner,
.nasmed-prod-carousel-inner,
.nasmed-our-products-inner,
.nasmed-mat-guidelines-inner,
.nasmed-guidelines-inner,
.nasmed-why-inner,
.nasmed-why-choose-inner,
.nasmed-cert-mfg-inner,
.nasmed-stats-cta-inner,
.nasmed-footer-inner,
.nasmed-footer-top,
.nasmed-footer-bottom-inner,
.nasmed-footer-trust-inner,
.nasmed-about-hero-inner,
.nasmed-about-who-inner,
.nasmed-about-team-inner,
.nasmed-about-mvv-inner,
.nasmed-about-services-inner,
.nasmed-about-faq-inner,
.nasmed-contact-hero-inner,
.nasmed-contact-inner,
.nasmed-contact-touch-inner,
.nasmed-contact-split-row,
.nasmed-products-hero-inner,
.nasmed-category-hero-inner,
.nasmed-case-study-hero-inner,
.nasmed-cs-hero-inner,
.nasmed-cs-pillars-inner,
.nasmed-cs-impact-inner,
.nasmed-cs-more-inner,
.nasmed-cs-detail-hero-inner,
.nasmed-pillars-inner,
.nasmed-impact-inner,
.nasmed-more-cards-inner,
.nasmed-single-case-inner,
.nasmed-single-prod-inner,
.nasmed-blog-hero-inner,
.nasmed-blog-grid-wrap,
.site-header .site-primary-header-wrap,
.site-header .ast-builder-grid-row-container,
.site-header .ast-container,
#masthead .site-primary-header-wrap,
#masthead .ast-builder-grid-row-container,
#ast-desktop-header .site-primary-header-wrap,
.main-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .site-primary-header-wrap,
.site-primary-header-wrap,
.ast-builder-grid-row-container,
.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container,
.ast-above-header .ast-container,
.ast-below-header .ast-container,
.single-product .ast-woocommerce-container,
.single-product .site-main > div.product,
.single-product #primary .ast-woocommerce-container,
.woocommerce.single-product div.product,
.woocommerce-page.single-product div.product,
.woocommerce-cart .ast-woocommerce-container,
.woocommerce-checkout .ast-woocommerce-container,
.woocommerce-account .ast-woocommerce-container,
.tax-product_cat .ast-woocommerce-container,
.post-type-archive-product .ast-woocommerce-container,
.page-template-insights .ast-container,
.page-template-insights .ast-row-insights,
.ast-row-insights,
.single-insights .ast-container,
.blog #primary {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Single Insights Detail Page Container */
.single-insights .insight-section {
  width: 94% !important;
  max-width: 1360px !important;
  margin: 40px auto 70px auto !important;
  padding-left: clamp(15px, 2.5vw, 35px) !important;
  padding-right: clamp(15px, 2.5vw, 35px) !important;
  box-sizing: border-box !important;
  float: none !important;
  display: block !important;
}

/* Single Blog Post Detail Page Container - Exact Match with Single Insights */
.single-post .site-content > .ast-container,
.single-post #primary,
.single-post .blog-post-section {
  width: 94% !important;
  max-width: 1360px !important;
  margin: 40px auto 70px auto !important;
  padding-left: clamp(15px, 2.5vw, 35px) !important;
  padding-right: clamp(15px, 2.5vw, 35px) !important;
  box-sizing: border-box !important;
  float: none !important;
  display: block !important;
}


.site-header,
#masthead,
#ast-desktop-header,
.ast-main-header-wrap,
.main-header-bar-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.main-header-bar,
.ast-primary-header-bar {
  min-height: 90px !important;
  background-color: var(--ast-global-color-6, #F7D0D1) !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.ast-builder-grid-row,
.main-header-bar .ast-builder-grid-row,
.ast-primary-header-bar .ast-builder-grid-row,
.site-primary-header-wrap .ast-builder-grid-row,
.ast-main-header-wrap .ast-builder-grid-row,
.site-header .ast-builder-grid-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 90px !important;
  align-items: center !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.site-branding,
.site-branding .site-logo-img,
.site-branding .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.site-branding img.custom-logo,
header .custom-logo-link img,
.site-logo-img img {
  max-height: 75px !important;
  max-width: 220px !important;
  min-width: 150px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  transition: all 0.25s ease !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: 90px !important;
}

#masthead .main-header-menu .menu-item > .menu-link,
#masthead .main-header-menu .menu-item > a,
.site-header .main-header-menu .menu-item > .menu-link,
.site-header .main-header-menu .menu-item > a,
.main-header-bar .main-header-menu .menu-item > .menu-link,
.main-header-bar .main-header-menu .menu-item > a,
.ast-desktop .main-header-menu .menu-item > .menu-link,
.ast-desktop .main-header-menu .menu-item > a,
.ast-desktop .main-header-menu .sub-menu .menu-item > .menu-link,
.ast-desktop .main-header-menu .sub-menu .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > .menu-link,
.ast-header-break-point .main-header-menu .menu-item > a,
.main-header-menu .menu-item .menu-text,
.main-header-menu .menu-item a,
.main-header-menu .menu-link,
.main-navigation .main-header-menu .menu-item > a,
.main-navigation .main-header-menu .menu-link {
  font-weight: 700 !important;
}

.site-header-primary-section-left {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-header-primary-section-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 15px !important;
}

.ast-header-button-1,
.ast-header-button-1 .ast-builder-button-wrap {
  display: inline-flex !important;
  align-items: center !important;
}

.ast-header-button-1 .ast-custom-button,
.ast-header-button-1 .ast-custom-button-link {
  white-space: nowrap !important;
}

/* Insights Archive & Single Insights Text Justify (Short descriptions and single post body only) */
.page-template-insights .ast-excerpt-container,
.page-template-insights .ast-excerpt-container p,
.ast-row-insights .ast-excerpt-container,
.ast-row-insights .ast-excerpt-container p,
.single-insights .insight-content,
.single-insights .insight-content p,
.single-insights .insight-content ul,
.single-insights .insight-content ol,
.single-insights .insight-content li,
.single-insights .insight-content div:not(.nasmed-contact-btn) {
  text-align: justify !important;
}

/* Insights Main Page Headings & Date Left Align (Strictly Left) */
.page-template-insights .entry-title,
.page-template-insights .entry-title a,
.page-template-insights h2.entry-title,
.page-template-insights h2.entry-title a,
.ast-row-insights .entry-title,
.ast-row-insights .entry-title a,
.ast-row-insights h2.entry-title,
.ast-row-insights h2.entry-title a {
  text-align: left !important;
  text-align-last: left !important;
  display: block !important;
}

.page-template-insights .entry-header,
.page-template-insights .ast-blog-meta-container,
.ast-row-insights .entry-header,
.ast-row-insights .ast-blog-meta-container {
  text-align: left !important;
  text-align-last: left !important;
  display: block !important;
  margin: 0 20px 12px 20px !important;
  padding: 0 !important;
}

.page-template-insights .entry-meta,
.page-template-insights .posted-on,
.page-template-insights .published,
.ast-row-insights .entry-meta,
.ast-row-insights .posted-on,
.ast-row-insights .published {
  text-align: left !important;
  text-align-last: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d81a1a !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
}

.ast-row-insights .ast-read-more-container,
.page-template-insights .ast-read-more-container {
  text-align: left !important;
  text-align-last: left !important;
}

/* ==========================================================================
   WOOCOMMERCE SINGLE PRODUCT & SHOP 94% FLUID CONTAINER SYSTEM
   ========================================================================== */
.single-product .ast-woocommerce-container,
.single-product .site-main > div.product,
.single-product #primary .ast-woocommerce-container,
.woocommerce.single-product div.product,
.woocommerce-page.single-product div.product,
.tax-product_cat .ast-woocommerce-container,
.post-type-archive-product .ast-woocommerce-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 40px 0 !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box !important;
}

/* Single Product Description & Tabs Styling (Justify Text & Left Headings) */
.single-product .woocommerce-tabs {
  width: 100% !important;
  margin-top: 45px !important;
  margin-bottom: 45px !important;
  padding-top: 25px !important;
  border-top: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
}

.single-product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  display: flex !important;
  gap: 15px !important;
  list-style: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  padding: 10px 18px !important;
  margin: 0 !important;
  border-radius: 6px 6px 0 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom: none !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #d81a1a !important;
  border-bottom: none !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product .woocommerce-Tabs-panel#tab-description,
.woocommerce-Tabs-panel#tab-description {
  padding: 20px 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.single-product .woocommerce-Tabs-panel#tab-description p,
.single-product .woocommerce-Tabs-panel#tab-description ul,
.single-product .woocommerce-Tabs-panel#tab-description ol,
.single-product .woocommerce-Tabs-panel#tab-description li,
.single-product .woocommerce-Tabs-panel#tab-description div:not(.nasmed-contact-btn) {
  text-align: justify !important;
  text-justify: inter-word !important;
  line-height: 1.8 !important;
  color: #334155 !important;
  font-size: 15.5px !important;
}

.single-product .woocommerce-Tabs-panel#tab-description h1,
.single-product .woocommerce-Tabs-panel#tab-description h2,
.single-product .woocommerce-Tabs-panel#tab-description h3,
.single-product .woocommerce-Tabs-panel#tab-description h4,
.single-product .woocommerce-Tabs-panel#tab-description h5,
.single-product .woocommerce-Tabs-panel#tab-description h6 {
  text-align: left !important;
  text-align-last: left !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  margin-top: 26px !important;
  margin-bottom: 12px !important;
  line-height: 1.35 !important;
}

.single-product .woocommerce-Tabs-panel#tab-description h2 {
  font-size: 24px !important;
}

.single-product .woocommerce-Tabs-panel#tab-description h3 {
  font-size: 19px !important;
}

.single-product .woocommerce-Tabs-panel#tab-description ul,
.single-product .woocommerce-Tabs-panel#tab-description ol {
  padding-left: 24px !important;
  margin-bottom: 18px !important;
}

.single-product .woocommerce-Tabs-panel#tab-description li {
  margin-bottom: 8px !important;
}

/* Related Products */
.single-product .related.products {
  width: 100% !important;
  margin-top: 40px !important;
  padding-top: 30px !important;
  border-top: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
}

.single-product .related.products h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: left !important;
  margin-bottom: 25px !important;
}

/* --- Ultra-Wide Screens (1920px+) --- */
@media (min-width: 1920px) {
  .container,
  .nasmed-hero-inner,
  .nasmed-home-about-inner,
  .nasmed-partner-inner,
  .nasmed-partner-red-inner,
  .nasmed-uq-inner-container,
  .nasmed-solutions-inner,
  .nasmed-testimonials-inner,
  .container,
  .ast-container,
    [class*="nasmed-"][class*="-inner"],
  .nasmed-hero-inner,
  .nasmed-home-about-inner,
  .nasmed-about-inner,
  .nasmed-partner-inner,
  .nasmed-partner-red-inner,
  .nasmed-uq-inner-container,
  .nasmed-solutions-inner,
  .nasmed-testimonials-inner,
  .nasmed-prod-carousel-inner,
  .nasmed-our-products-inner,
  .nasmed-mat-guidelines-inner,
  .nasmed-guidelines-inner,
  .nasmed-why-inner,
  .nasmed-why-choose-inner,
  .nasmed-cert-mfg-inner,
  .nasmed-stats-cta-inner,
  .nasmed-footer-inner,
  .nasmed-footer-top,
  .nasmed-footer-bottom-inner,
  .nasmed-footer-trust-inner,
  .nasmed-about-hero-inner,
  .nasmed-about-who-inner,
  .nasmed-about-team-inner,
  .nasmed-about-mvv-inner,
  .nasmed-about-services-inner,
  .nasmed-about-faq-inner,
  .nasmed-contact-hero-inner,
  .nasmed-contact-inner,
  .nasmed-contact-touch-inner,
  .nasmed-contact-split-row,
  .nasmed-products-hero-inner,
  .nasmed-category-hero-inner,
  .nasmed-case-study-hero-inner,
  .nasmed-cs-hero-inner,
  .nasmed-cs-pillars-inner,
  .nasmed-cs-impact-inner,
  .nasmed-cs-more-inner,
  .nasmed-cs-detail-hero-inner,
  .nasmed-pillars-inner,
  .nasmed-impact-inner,
  .nasmed-more-cards-inner,
  .nasmed-single-case-inner,
  .nasmed-single-prod-inner,
  .nasmed-blog-hero-inner,
  .nasmed-blog-grid-wrap,
  .site-primary-header-wrap,
  .ast-builder-grid-row-container,
  .main-header-bar .ast-container,
  .ast-primary-header-bar .ast-container,
  .ast-above-header .ast-container,
  .ast-below-header .ast-container,
  .single-product .ast-woocommerce-container,
  .single-product .site-main > div.product,
  .single-product #primary .ast-woocommerce-container,
  .woocommerce.single-product div.product,
  .woocommerce-page.single-product div.product,
  .woocommerce-cart .ast-woocommerce-container,
  .woocommerce-checkout .ast-woocommerce-container,
  .woocommerce-account .ast-woocommerce-container,
  .tax-product_cat .ast-woocommerce-container,
  .post-type-archive-product .ast-woocommerce-container,
  .page-template-insights .ast-container,
  .page-template-insights .ast-row-insights,
  .ast-row-insights,
  .single-insights .ast-container,
  .single-insights .insight-section,
  .single-insights .nasmed-single-insight-wrap,
  .blog,
  .blog #primary {
    width: 94% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .ast-builder-grid-row,
  .main-header-bar .ast-builder-grid-row,
  .ast-primary-header-bar .ast-builder-grid-row,
  .site-primary-header-wrap .ast-builder-grid-row,
  .ast-main-header-wrap .ast-builder-grid-row,
  .site-header .ast-builder-grid-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* --- High-Res 4K Screens (2560px - 3840px+) --- */
@media (min-width: 2560px) {
  .container,
  .ast-container,
    [class*="nasmed-"][class*="-inner"],
  .nasmed-hero-inner,
  .nasmed-home-about-inner,
  .nasmed-about-inner,
  .nasmed-partner-inner,
  .nasmed-partner-red-inner,
  .nasmed-uq-inner-container,
  .nasmed-solutions-inner,
  .nasmed-testimonials-inner,
  .nasmed-prod-carousel-inner,
  .nasmed-our-products-inner,
  .nasmed-mat-guidelines-inner,
  .nasmed-guidelines-inner,
  .nasmed-why-inner,
  .nasmed-why-choose-inner,
  .nasmed-cert-mfg-inner,
  .nasmed-stats-cta-inner,
  .nasmed-footer-inner,
  .nasmed-footer-top,
  .nasmed-footer-bottom-inner,
  .nasmed-footer-trust-inner,
  .nasmed-about-hero-inner,
  .nasmed-about-who-inner,
  .nasmed-about-team-inner,
  .nasmed-about-mvv-inner,
  .nasmed-about-services-inner,
  .nasmed-about-faq-inner,
  .nasmed-contact-hero-inner,
  .nasmed-contact-inner,
  .nasmed-contact-touch-inner,
  .nasmed-contact-split-row,
  .nasmed-products-hero-inner,
  .nasmed-category-hero-inner,
  .nasmed-case-study-hero-inner,
  .nasmed-cs-hero-inner,
  .nasmed-cs-pillars-inner,
  .nasmed-cs-impact-inner,
  .nasmed-cs-more-inner,
  .nasmed-cs-detail-hero-inner,
  .nasmed-pillars-inner,
  .nasmed-impact-inner,
  .nasmed-more-cards-inner,
  .nasmed-single-case-inner,
  .nasmed-single-prod-inner,
  .nasmed-blog-hero-inner,
  .nasmed-blog-grid-wrap,
  .site-primary-header-wrap,
  .ast-builder-grid-row-container,
  .main-header-bar .ast-container,
  .ast-primary-header-bar .ast-container,
  .ast-above-header .ast-container,
  .ast-below-header .ast-container,
  .single-product .ast-woocommerce-container,
  .single-product .site-main > div.product,
  .single-product #primary .ast-woocommerce-container,
  .woocommerce.single-product div.product,
  .woocommerce-page.single-product div.product,
  .woocommerce-cart .ast-woocommerce-container,
  .woocommerce-checkout .ast-woocommerce-container,
  .woocommerce-account .ast-woocommerce-container,
  .tax-product_cat .ast-woocommerce-container,
  .post-type-archive-product .ast-woocommerce-container,
  .page-template-insights .ast-container,
  .page-template-insights .ast-row-insights,
  .ast-row-insights,
  .single-insights .ast-container,
  .single-insights .insight-section,
  .single-insights .nasmed-single-insight-wrap,
  .blog,
  .blog #primary {
    width: 94% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .ast-builder-grid-row,
  .main-header-bar .ast-builder-grid-row,
  .ast-primary-header-bar .ast-builder-grid-row,
  .site-primary-header-wrap .ast-builder-grid-row,
  .ast-main-header-wrap .ast-builder-grid-row,
  .site-header .ast-builder-grid-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (TABLETS & MOBILE PERFECTION)
   ========================================================================= */

/* --- Tablet Devices (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .container,
  .ast-container,
    [class*="nasmed-"][class*="-inner"],
  .nasmed-hero-inner,
  .nasmed-home-about-inner,
  .nasmed-about-inner,
  .nasmed-partner-inner,
  .nasmed-partner-red-inner,
  .nasmed-uq-inner-container,
  .nasmed-solutions-inner,
  .nasmed-testimonials-inner,
  .nasmed-prod-carousel-inner,
  .nasmed-our-products-inner,
  .nasmed-mat-guidelines-inner,
  .nasmed-guidelines-inner,
  .nasmed-why-inner,
  .nasmed-why-choose-inner,
  .nasmed-cert-mfg-inner,
  .nasmed-stats-cta-inner,
  .nasmed-footer-inner,
  .nasmed-footer-top,
  .nasmed-footer-bottom-inner,
  .nasmed-footer-trust-inner,
  .nasmed-about-hero-inner,
  .nasmed-about-who-inner,
  .nasmed-about-team-inner,
  .nasmed-about-mvv-inner,
  .nasmed-about-services-inner,
  .nasmed-about-faq-inner,
  .nasmed-career-hero-inner,
  .nasmed-career-openings-inner,
  .nasmed-career-why-inner,
  .nasmed-career-life-inner,
  .nasmed-career-apply-inner,
  .nasmed-contact-hero-inner,
  .nasmed-contact-inner,
  .nasmed-contact-touch-inner,
  .nasmed-contact-split-row,
  .nasmed-products-hero-inner,
  .nasmed-category-hero-inner,
  .nasmed-case-study-hero-inner,
  .nasmed-cs-hero-inner,
  .nasmed-cs-pillars-inner,
  .nasmed-cs-impact-inner,
  .nasmed-cs-more-inner,
  .nasmed-cs-detail-hero-inner,
  .nasmed-pillars-inner,
  .nasmed-impact-inner,
  .nasmed-more-cards-inner,
  .nasmed-single-case-inner,
  .nasmed-single-prod-inner,
  .nasmed-blog-hero-inner,
  .nasmed-blog-grid-wrap,
  .site-primary-header-wrap,
  .ast-builder-grid-row-container,
  .main-header-bar .ast-container,
  .ast-primary-header-bar .ast-container,
  .ast-above-header .ast-container,
  .ast-below-header .ast-container,
  .single-product .ast-woocommerce-container,
  .single-product .site-main > div.product,
  .single-product #primary .ast-woocommerce-container,
  .woocommerce.single-product div.product,
  .woocommerce-page.single-product div.product,
  .woocommerce-cart .ast-woocommerce-container,
  .woocommerce-checkout .ast-woocommerce-container,
  .woocommerce-account .ast-woocommerce-container,
  .tax-product_cat .ast-woocommerce-container,
  .post-type-archive-product .ast-woocommerce-container,
  .page-template-insights .ast-container,
  .page-template-insights .ast-row-insights,
  .ast-row-insights,
  .single-insights .ast-container,
  .single-insights .insight-section,
  .blog 
  .blog #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .ast-builder-grid-row,
  .main-header-bar .ast-builder-grid-row,
  .ast-primary-header-bar .ast-builder-grid-row,
  .site-primary-header-wrap .ast-builder-grid-row,
  .ast-main-header-wrap .ast-builder-grid-row,
  .site-header .ast-builder-grid-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nasmed-why-cards-grid,
  .nasmed-cert-grid,
  .nasmed-partner-grid,
  .nasmed-team-grid,
  .nasmed-values-grid,
  .nasmed-footer-grid,
  .nasmed-prod-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .nasmed-case-study-grid,
  .nasmed-blog-grid,
  .nasmed-insights-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .nasmed-hero-inner {
    flex-direction: column !important;
    gap: 30px !important;
  }
  
  .nasmed-hero-content-col,
  .nasmed-hero-form-col,
  .nasmed-career-hero-left,
  .nasmed-career-hero-right,
  .nasmed-why-left,
  .nasmed-why-right {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .nasmed-why-bottom-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .container,
  .ast-container,
    [class*="nasmed-"][class*="-inner"],
  .nasmed-hero-inner,
  .nasmed-home-about-inner,
  .nasmed-about-inner,
  .nasmed-partner-inner,
  .nasmed-partner-red-inner,
  .nasmed-uq-inner-container,
  .nasmed-solutions-inner,
  .nasmed-testimonials-inner,
  .nasmed-prod-carousel-inner,
  .nasmed-our-products-inner,
  .nasmed-mat-guidelines-inner,
  .nasmed-guidelines-inner,
  .nasmed-why-inner,
  .nasmed-why-choose-inner,
  .nasmed-cert-mfg-inner,
  .nasmed-stats-cta-inner,
  .nasmed-footer-inner,
  .nasmed-footer-top,
  .nasmed-footer-bottom-inner,
  .nasmed-footer-trust-inner,
  .nasmed-about-hero-inner,
  .nasmed-about-who-inner,
  .nasmed-about-team-inner,
  .nasmed-about-mvv-inner,
  .nasmed-about-services-inner,
  .nasmed-about-faq-inner,
  .nasmed-career-hero-inner,
  .nasmed-career-openings-inner,
  .nasmed-career-why-inner,
  .nasmed-career-life-inner,
  .nasmed-career-apply-inner,
  .nasmed-contact-hero-inner,
  .nasmed-contact-inner,
  .nasmed-contact-touch-inner,
  .nasmed-contact-split-row,
  .nasmed-products-hero-inner,
  .nasmed-category-hero-inner,
  .nasmed-case-study-hero-inner,
  .nasmed-cs-hero-inner,
  .nasmed-cs-pillars-inner,
  .nasmed-cs-impact-inner,
  .nasmed-cs-more-inner,
  .nasmed-cs-detail-hero-inner,
  .nasmed-pillars-inner,
  .nasmed-impact-inner,
  .nasmed-more-cards-inner,
  .nasmed-single-case-inner,
  .nasmed-single-prod-inner,
  .nasmed-blog-hero-inner,
  .nasmed-blog-grid-wrap,
  .site-primary-header-wrap,
  .ast-builder-grid-row-container,
  .main-header-bar .ast-container,
  .ast-primary-header-bar .ast-container,
  .ast-above-header .ast-container,
  .ast-below-header .ast-container,
  .single-product .ast-woocommerce-container,
  .single-product .site-main > div.product,
  .single-product #primary .ast-woocommerce-container,
  .woocommerce.single-product div.product,
  .woocommerce-page.single-product div.product,
  .woocommerce-cart .ast-woocommerce-container,
  .woocommerce-checkout .ast-woocommerce-container,
  .woocommerce-account .ast-woocommerce-container,
  .tax-product_cat .ast-woocommerce-container,
  .post-type-archive-product .ast-woocommerce-container,
  .page-template-insights .ast-container,
  .page-template-insights .ast-row-insights,
  .ast-row-insights,
  .single-insights .ast-container,
  .single-insights .insight-section,
  .blog 
  .blog #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .ast-builder-grid-row,
  .main-header-bar .ast-builder-grid-row,
  .ast-primary-header-bar .ast-builder-grid-row,
  .site-primary-header-wrap .ast-builder-grid-row,
  .ast-main-header-wrap .ast-builder-grid-row,
  .site-header .ast-builder-grid-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .site-branding img.custom-logo,
  header .custom-logo-link img,
  .site-logo-img img {
    max-height: 64px !important;
    max-width: 185px !important;
    min-width: 140px !important;
  }

  .menu-toggle.main-header-menu-toggle {
    margin: 0 !important;
    padding: 6px 10px !important;
  }

  .nasmed-uq-split-row,
  .nasmed-about-split-row,
  .nasmed-contact-split,
  .nasmed-career-split,
  .nasmed-stats-cta-inner,
  .nasmed-footer-grid,
  .nasmed-footer-top,
  .nasmed-footer-cols-row,
  .nasmed-footer-left-block,
  .nasmed-footer-right-block,
  .nasmed-why-cards-grid,
  .nasmed-cert-grid,
  .nasmed-team-grid,
  .nasmed-case-study-grid,
  .nasmed-blog-grid,
  .nasmed-insights-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .single-product .ast-woocommerce-container,
  .single-product .site-main > div.product,
  .woocommerce.single-product div.product,
  .tax-product_cat .ast-woocommerce-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 18px auto !important;
  }

  .single-product .woocommerce-Tabs-panel#tab-description h2 {
    font-size: 20px !important;
  }

  .single-product .woocommerce-Tabs-panel#tab-description h3 {
    font-size: 17px !important;
  }

  .single-product .woocommerce-Tabs-panel#tab-description p,
  .single-product .woocommerce-Tabs-panel#tab-description li {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .single-product .woocommerce-product-gallery {
    min-height: auto !important;
    padding: 15px !important;
  }

  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    max-height: 290px !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
  }

  .nasmed-single-specs-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .nasmed-single-info-box {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .nasmed-hero-title,
  .nasmed-about-hero-title,
  .nasmed-career-hero-title,
  .nasmed-contact-hero-title,
  .nasmed-category-hero-title {
    font-size: clamp(1.6rem, 6vw, 2.25rem) !important;
    line-height: 1.25 !important;
  }

  .nasmed-hero-btn-group,
  .nasmed-btn-group,
  .nasmed-cta-buttons {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .nasmed-btn-hero-chat,
  .nasmed-btn-hero-catalog,
  .nasmed-btn-quote-red,
  .nasmed-btn-talk-outline,
  .nasmed-single-enquire-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .nasmed-footer-bottom-inner {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .nasmed-footer-socials {
    justify-content: center !important;
  }
}

/* --- Small Mobile Phones (max-width: 480px) --- */
@media (max-width: 480px) {
  .container,
  .nasmed-hero-inner,
  .nasmed-home-about-inner,
  .nasmed-partner-inner,
  .nasmed-partner-red-inner,
  .nasmed-uq-inner-container,
  .nasmed-solutions-inner,
  .nasmed-testimonials-inner,
  .nasmed-prod-carousel-inner,
  .nasmed-mat-guidelines-inner,
  .nasmed-guidelines-inner,
  .nasmed-why-inner,
  .nasmed-why-choose-inner,
  .nasmed-cert-mfg-inner,
  .nasmed-stats-cta-inner,
  .nasmed-footer-inner,
  .nasmed-footer-bottom-inner,
  .nasmed-about-hero-inner,
  .nasmed-about-who-inner,
  .nasmed-about-team-inner,
  .nasmed-about-mvv-inner,
  .nasmed-about-services-inner,
  .nasmed-about-faq-inner,
  .nasmed-career-hero-inner,
  .nasmed-career-openings-inner,
  .nasmed-career-why-inner,
  .nasmed-career-life-inner,
  .nasmed-career-apply-inner,
  .nasmed-contact-hero-inner,
  .nasmed-contact-inner,
  .nasmed-contact-split-row,
  .nasmed-products-hero-inner,
  .nasmed-category-hero-inner,
  .nasmed-case-study-hero-inner,
  .nasmed-pillars-inner,
  .nasmed-impact-inner,
  .nasmed-more-cards-inner,
  .nasmed-single-case-inner,
  .nasmed-single-prod-inner,
  .nasmed-blog-hero-inner,
  .nasmed-blog-grid-wrap,
  .main-header-bar .ast-builder-grid-row,
  .ast-primary-header-bar .ast-builder-grid-row,
  .site-primary-header-wrap .ast-builder-grid-row,
  .ast-main-header-wrap .ast-builder-grid-row,
  .site-header .ast-builder-grid-row,
  .ast-builder-grid-row-container,
  .site-primary-header-wrap,
  .main-header-bar .ast-container,
  .ast-above-header .ast-container,
  .ast-below-header .ast-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-branding img.custom-logo,
  header .custom-logo-link img,
  .site-logo-img img {
    max-height: 54px !important;
    max-width: 160px !important;
    min-width: 120px !important;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="url"],
  .wpcf7-form select,
  .wpcf7-form textarea,
  .nasmed-input,
  .nasmed-select,
  .nasmed-textarea {
    width: 100% !important;
    font-size: 14px !important;
  }

  .nasmed-stat-num,
  .nasmed-uq-stat-val {
    font-size: 1.85rem !important;
  }
}


/* ==========================================================================