/* ============================================================
   SURROCARE WELLNESS — RESPONSIVE, POPUP, NAVBAR & BUTTON FIX
   Loads LAST to override existing styles safely.
   Organized mobile-first by component then by breakpoint.
   ============================================================ */

/* ──────────────────────────────────────────────────────────────
   1. GLOBAL RESETS & TEXT OVERFLOW WRAPPING PREVENTIONS
   ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* Prevent any horizontal overflow site-wide */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Smooth scroll on all devices */
html {
  scroll-behavior: smooth;
}

/* Ensure iframes (maps, YouTube) are responsive */
iframe {
  max-width: 100%;
}

/* Prevent any text from breaking outside of container borders */
h1, h2, h3, h4, h5, h6, p, li, a, span, div, td, th, label {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* Fluid subheader title sizing so long medical titles fit cleanly */
#subheader h1,
.subheader h1 {
  font-size: clamp(20px, 4.5vw, 36px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 8px !important;
}

/* Table responsive wrapping */
table {
  max-width: 100%;
}

.table-responsive,
.de-table-responsive {
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* ──────────────────────────────────────────────────────────────
   2. MOBILE NAVBAR & NAVIGATION DRAWER OVERHAUL (≤ 992px)
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 992px) {

  /* Mobile Header Bar (Closed State) */
  header.header-mobile,
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    z-index: 10000 !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 0 !important;
  }

  /* Body top padding so content is not hidden under fixed header */
  body {
    padding-top: 70px !important;
  }

  header .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  header .row {
    margin: 0 !important;
  }

  header .de-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 6px 0 !important;
  }

  /* Logo */
  header #logo {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  header #logo a {
    display: flex !important;
    align-items: center !important;
  }

  header .logo-mobile {
    max-height: 42px !important;
    max-width: 150px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  header .logo-main,
  header .logo-scroll {
    display: none !important;
  }

  /* Right Side Header Items */
  header .menu_side_area {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Header "Book Appointment" CTA button */
  header .btn-main {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 18px !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  header .btn-main i {
    font-size: 12px;
    margin-left: 4px;
  }

  header .h-phone a {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    border-radius: 50% !important;
    background: rgba(23, 80, 74, 0.08) !important;
    color: #17504a !important;
  }

  /* Hamburger Menu Button */
  #menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #17504a !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    float: none !important;
    z-index: 100001 !important;
  }

  #menu-btn::before {
    font-family: 'Font Awesome 6 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
    content: '\f0c9' !important;
    font-size: 20px !important;
    color: #17504a !important;
  }

  /* When Mobile Menu is Open */
  header.menu-open,
  header.header-mobile.menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 100000 !important;
    padding-bottom: 40px !important;
  }

  header.menu-open #menu-btn::before {
    content: '\f00d' !important; /* 'X' Close icon */
    color: #17504a !important;
  }

  /* Navigation Menu Container */
  .header-col-mid,
  header.header-mobile .header-col-mid {
    width: 100% !important;
    display: block !important;
  }

  #mainmenu,
  header.header-mobile #mainmenu {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-top: 1px solid #edf2f7 !important;
    background: #ffffff !important;
    float: none !important;
  }

  /* Top-Level Menu Items */
  #mainmenu > li,
  header.header-mobile #mainmenu > li {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    list-style: none !important;
    float: none !important;
  }

  #mainmenu > li > a,
  header.header-mobile #mainmenu > li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 13px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    border: none !important;
    min-height: 48px !important;
    transition: all 0.2s ease !important;
  }

  #mainmenu > li > a:hover,
  #mainmenu > li > a.active {
    color: var(--tertiary-color, #1A935D) !important;
    background: #f8fafc !important;
  }

  /* Dropdown Toggle Arrow Buttons */
  header.header-mobile #mainmenu > li > span,
  header.header-mobile #mainmenu li > ul > li > span,
  #mainmenu li span {
    position: absolute !important;
    top: 0 !important;
    right: 4px !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    cursor: pointer !important;
    z-index: 20 !important;
  }

  header.header-mobile #mainmenu li span::before,
  #mainmenu li span::before {
    content: '\f107' !important;
    font-family: 'Font Awesome 6 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #64748b !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    display: inline-block !important;
  }

  header.header-mobile #mainmenu li span.active::before,
  #mainmenu li span.active::before {
    transform: rotate(180deg) !important;
    color: var(--tertiary-color, #1A935D) !important;
  }

  /* 2nd-Level Submenu Accordion */
  #mainmenu li ul,
  header.header-mobile #mainmenu li ul {
    display: block !important;
    height: 0;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #f8fafc !important;
    border-left: 3px solid var(--tertiary-color, #1A935D) !important;
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    float: none !important;
  }

  #mainmenu li ul li,
  header.header-mobile #mainmenu li ul li {
    position: relative !important;
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #mainmenu li ul li a,
  header.header-mobile #mainmenu li ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 11px 18px 11px 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #mainmenu li ul li a:hover {
    color: var(--tertiary-color, #1A935D) !important;
    background: #f1f5f9 !important;
  }

  #mainmenu li ul li span,
  header.header-mobile #mainmenu li ul li span {
    height: 42px !important;
    width: 42px !important;
    top: 0 !important;
    right: 4px !important;
  }

  /* 3rd-Level Submenu Accordion */
  #mainmenu li ul li ul,
  header.header-mobile #mainmenu li ul li ul {
    background: #f1f5f9 !important;
    border-left: 2px solid #cbd5e1 !important;
  }

  #mainmenu li ul li ul li a,
  header.header-mobile #mainmenu li ul li ul li a {
    padding: 9px 18px 9px 32px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    font-weight: 400 !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   3. POPUP MODAL & OVERLAY OVERHAUL (PERFECT CENTERING & FILL)
   ────────────────────────────────────────────────────────────── */
#overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 99999 !important;
  display: none;
}

#popup {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  width: 92% !important;
  max-width: 600px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 100000 !important;
  border-radius: 16px !important;
  display: none;
  -webkit-overflow-scrolling: touch;
}

#popup .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#popup .row {
  margin: 0 !important;
}

#popup .bg-color-3 {
  background-color: var(--tertiary-color, #1A935D) !important;
  padding: 24px 22px 20px 22px !important;
  border-radius: 16px !important;
  position: relative !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

#popup .bg-color-3 h3 {
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 16px 0 !important;
  padding-right: 40px !important;
  text-align: left !important;
}

#popup .close-btn,
#closePopup {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 1002 !important;
  transition: all 0.2s ease !important;
}

#popup .close-btn:hover,
#closePopup:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  transform: rotate(90deg);
}

#popup #contact_form {
  position: relative !important;
  z-index: 1000 !important;
}

#popup .form-control,
#popup input[type="text"],
#popup input[type="email"],
#popup input[type="tel"],
#popup select,
#popup textarea {
  width: 100% !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#popup .form-control:focus,
#popup input:focus,
#popup select:focus,
#popup textarea:focus {
  border-color: #17504A !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(23, 80, 74, 0.15) !important;
  outline: none !important;
}

#popup .field-set {
  margin-bottom: 10px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

#popup #date {
  margin-bottom: 10px !important;
  width: 100% !important;
}

#popup #date input {
  cursor: pointer !important;
  padding-right: 36px !important;
}

#popup #date i {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  pointer-events: none !important;
  color: #17504A !important;
  font-size: 15px !important;
}

#popup .input-group-addon {
  display: none !important;
}

#popup select {
  cursor: pointer !important;
  padding-right: 36px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

#popup .relative > i.fa-angle-down {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  pointer-events: none !important;
  color: #17504A !important;
  font-size: 14px !important;
}

#popup textarea {
  min-height: 65px !important;
  max-height: 90px !important;
  resize: vertical !important;
}

#popup .g-recaptcha {
  display: flex !important;
  justify-content: center !important;
  margin: 10px 0 !important;
  transform: scale(0.9) !important;
  transform-origin: center center !important;
}

#popup #submit {
  margin-top: 10px !important;
  text-align: center !important;
}

#popup #submit input[type="submit"],
#popup #send_message {
  width: 100% !important;
  max-width: 260px !important;
  height: 44px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: var(--tertiary-color, #1A935D) !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
  margin: 0 auto !important;
  display: inline-block !important;
}

#popup #submit input[type="submit"]:hover,
#popup #send_message:hover {
  background-color: #f1f5f9 !important;
  color: var(--primary-color, #17504A) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ──────────────────────────────────────────────────────────────
   4. CORE BUTTON SYSTEM & BASE STYLES
   ────────────────────────────────────────────────────────────── */
.btn-main,
a.btn-main,
.btn-custom,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 42px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

.btn-main.bg-color-3 {
  background-color: var(--tertiary-color, #1A935D);
  color: #ffffff;
}

.btn-main.bg-color-3:hover {
  background-color: var(--primary-color, #17504A);
  color: #ffffff;
}

/* Button groups and dual CTA containers */
.cta-btn-group,
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ──────────────────────────────────────────────────────────────
   5. SERVICE CARDS NORMALIZATION (FIX FOR 4 OVERSIZED GREEN CARDS)
   ────────────────────────────────────────────────────────────── */
.subtitle-light.h-80 {
  background: var(--tertiary-color, #1A935D) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  box-sizing: border-box !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subtitle-light.h-80:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.subtitle-light.h-80 .row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  width: 100% !important;
}

.subtitle-light.h-80 .col-lg-8,
.subtitle-light.h-80 .col-sm-6:first-child {
  flex: 1 1 auto !important;
  max-width: calc(100% - 44px) !important;
  padding: 0 !important;
}

.subtitle-light.h-80 .col-lg-4,
.subtitle-light.h-80 .col-sm-6:last-child {
  flex: 0 0 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
}

.subtitle-light.h-80 h4 {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  letter-spacing: 0 !important;
}

.subtitle-light.h-80 .arrow-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.subtitle-light.h-80 .arrow-icon a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.subtitle-light.h-80 .arrow-icon a i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  transition: all 0.2s ease;
}

.subtitle-light.h-80:hover .arrow-icon a i {
  background: #ffffff !important;
  color: var(--tertiary-color, #1A935D) !important;
  transform: translateX(2px);
}

/* ──────────────────────────────────────────────────────────────
   6. LIST TYPOGRAPHY & BULLET NORMALIZATION
   ────────────────────────────────────────────────────────────── */
ul {
  padding-left: 22px !important;
  margin-bottom: 16px !important;
}

ul li {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
  padding-left: 4px !important;
}

ul li h4,
.bg-grey ul li h4,
section ul li h4,
div ul li h4 {
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: inherit !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  display: inline !important;
}

.subtitle,
.subtitle-light {
  max-width: 100% !important;
  white-space: normal !important;
  font-size: 12.5px !important;
  padding: 4px 14px !important;
  line-height: 1.35 !important;
}

/* ──────────────────────────────────────────────────────────────
   7. MAP CONTENT OVERLAY — Desktop Fix (Contact Page)
   ────────────────────────────────────────────────────────────── */
.iframe_map .map-content {
  transform: translateX(-50%);
}

/* ──────────────────────────────────────────────────────────────
   8. NAVBAR & HEADER BUTTON SYSTEM (DESKTOP & BASE)
   ────────────────────────────────────────────────────────────── */
@media only screen and (min-width: 993px) {
  header .menu_side_area {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  header .btn-main {
    padding: 10px 22px;
    font-size: 13.5px;
    height: 42px;
    min-height: 42px;
    border-radius: 25px;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  header .btn-main i {
    font-size: 15px;
    margin-left: 4px;
  }

  header .h-phone a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(23, 80, 74, 0.08);
    color: #17504a;
    transition: all 0.2s ease;
  }

  header .h-phone a:hover {
    background: #17504a;
    color: #ffffff;
  }
}

/* ──────────────────────────────────────────────────────────────
   9. BREAKPOINT: ≤ 1200px (Small Laptops / Large Tablets)
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 1200px) {
  .ivf_understanding .ivf_content {
    padding-left: 20px;
    padding-right: 20px;
  }

  header .btn-main {
    padding: 8px 18px;
    font-size: 13px;
    height: 38px;
    min-height: 38px;
  }

  #popup {
    max-width: 560px !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   10. BREAKPOINT: ≤ 768px (Large Phones / Small Tablets)
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 768px) {

  /* ─── CRITICAL GRID RESET: ELIMINATE LEFT/RIGHT TEXT CLIPPING ─── */
  .container,
  .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Neutralize all negative row margins so text never gets chopped */
  .row,
  .row.g-5,
  .row.gx-5,
  .row.gy-5,
  .row.g-4,
  .row.gx-4,
  .row.gy-4,
  .row.g-3,
  .row.gx-3,
  .row.g-2,
  .row.g-1,
  .row.g-0 {
    --bs-gutter-x: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .row.g-4 > [class*="col-"],
  .row.g-3 > [class*="col-"] {
    margin-bottom: 14px !important;
  }

  /* --- Typography Scaling & Line-Height Normalization --- */
  h1, .h1 {
    font-size: 28px !important;
    letter-spacing: -0.5px;
    line-height: 1.25 !important;
  }

  h2, .h2 {
    font-size: 23px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  h3, .h3 {
    font-size: 19.5px !important;
    line-height: 1.35 !important;
  }

  h4, .h4 {
    font-size: 16.5px !important;
    line-height: 1.4 !important;
  }

  h5, .h5 {
    font-size: 15px !important;
  }

  p, li, .de_light p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
  }

  .jarallax p.fs-32 {
    font-size: 16.5px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }

  /* --- General Button Sizing on Mobile --- */
  .btn-main,
  a.btn-main,
  .btn-custom {
    padding: 9px 18px;
    font-size: 13.5px;
    min-height: 40px;
    border-radius: 8px;
    max-width: 100%;
  }

  .hero-cta-group,
  .cta-btn-group {
    justify-content: center;
    gap: 10px;
  }

  /* --- 3-Button Advisor Bar --- */
  .bg-dark-5 .d-flex,
  .padding50 .d-flex,
  .bg-dark-5 .row > [class*="col-"],
  .padding50 .row > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .bg-dark-5 .row,
  .padding50 .row {
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  .bg-dark-5 .btn-main,
  .padding50 .btn-main {
    width: 100% !important;
    max-width: 320px !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 6px auto !important;
  }

  /* --- Location CTA Buttons --- */
  .bg-color-5 .row,
  .bg-color-3 .row {
    max-width: 360px;
    margin: 0 auto;
  }

  .bg-color-5 .col-lg-4,
  .bg-color-3 .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  .bg-color-5 .btn-main,
  .bg-color-3 .btn-main {
    width: 100% !important;
    max-width: 320px !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .rounded-20px .subtitle-light.h-80 {
    margin-bottom: 10px;
  }

  /* --- Floating CTA Bar at Bottom --- */
  .float-container {
    position: fixed;
    top: auto !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    flex-direction: row !important;
    width: 100% !important;
    z-index: 9999;
  }

  .float-container a {
    width: 50% !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    justify-content: center !important;
    height: 44px;
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .float-container a:hover {
    margin-right: 0 !important;
  }

  .float-container .icon:before {
    margin-right: 6px;
  }

  /* --- WhatsApp Float Button --- */
  .whatsapp_float {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    bottom: 56px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2) !important;
  }

  /* --- Map Content Overlay --- */
  .iframe_map iframe {
    height: 300px;
  }

  .iframe_map .map-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
    padding: 20px 16px;
    margin: -30px 0 0 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .iframe_map .map-content h3 {
    font-size: 21px;
  }

  .iframe_map .map-content p {
    font-size: 14px;
  }

  /* --- Infertility Content Overlay --- */
  .why-consider .infertility_content {
    position: relative !important;
    margin-top: 0 !important;
    padding: 1.25rem 1rem;
    background: #f8f9fa;
    height: auto !important;
  }

  .why-consider .consider-infertility-img img {
    max-height: 250px;
    object-fit: cover;
  }

  /* --- Service Cards: Single Column --- */
  #ivf-services .col-lg-4,
  #male-test .col-lg-4,
  #infertility-services .col-lg-4,
  #ivf-services .col-md-6,
  #male-test .col-md-6,
  #infertility-services .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* --- Process Steps: Single Column --- */
  .arrow-divider .col-lg-3,
  .arrow-divider .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .arrow-divider img[src*="arrow"],
  .arrow-divider .d-arrow-right {
    display: none;
  }

  /* --- IVF Comparison Cards --- */
  #ivf-comparison .col-lg-6,
  #ivf-comparison .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  /* --- Testimonials & Video --- */
  .client-testimonial iframe,
  section iframe[src*="youtube"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .jarallax {
    background-attachment: scroll !important;
  }

  /* --- Blog Cards --- */
  .blog-list .col-lg-4,
  .blog-list .col-md-6,
  .row.g-4.gy-5 > .col-lg-4,
  .row.g-4.gy-5 > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* --- Footer: Safe Padding & 2 Columns --- */
  footer .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  footer .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  footer .col-lg-3,
  footer .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 0 !important;
    padding-right: 10px !important;
    margin-bottom: 20px;
  }

  footer ul {
    padding-left: 0 !important;
  }

  footer ul li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 6px !important;
  }

  /* --- Clinic Info Strip --- */
  .no-bottom .col-lg-4,
  .no-top.no-bottom .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 16px;
  }

  /* --- Section Padding --- */
  section {
    padding: 34px 0;
  }

  section.no-top {
    padding-top: 0;
  }

  section.no-bottom {
    padding-bottom: 0;
  }

  .padding50 {
    padding: 22px 14px !important;
  }

  /* --- Popup Modal on Mobile --- */
  #popup {
    width: 94% !important;
    max-width: 94% !important;
    max-height: 88vh !important;
    border-radius: 14px !important;
  }

  #popup .bg-color-3 {
    padding: 20px 16px 16px 16px !important;
    border-radius: 14px !important;
  }

  #popup .bg-color-3 h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  #popup .field-set {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
  }

  #popup .g-recaptcha {
    transform: scale(0.85) !important;
  }

  /* --- Sidebar / Article layout --- */
  .col-lg-8 + .col-lg-4,
  .gx-5 > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .gx-5 > .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* --- Doctor page expertise --- */
  .section-dark .col-lg-8,
  .section-dark .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body {
    padding-bottom: 48px;
  }
}

/* ──────────────────────────────────────────────────────────────
   11. BREAKPOINT: ≤ 576px (Standard Phones)
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 576px) {

  /* --- Typography --- */
  h1, .h1 {
    font-size: 24px !important;
    letter-spacing: -0.5px;
  }

  h2, .h2 {
    font-size: 20.5px !important;
  }

  h3, .h3 {
    font-size: 17.5px !important;
  }

  .container,
  .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* --- Footer: Single Column --- */
  footer .col-lg-3,
  footer .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    margin-bottom: 22px;
  }

  footer .col-lg-3:last-child {
    margin-bottom: 0;
  }

  /* --- Buttons in Content --- */
  .btn-main,
  a.btn-main {
    padding: 9px 18px;
    font-size: 13px;
  }

  /* Form submit buttons */
  form .btn-main,
  form input[type="submit"],
  #submit .btn-main {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    height: 44px !important;
    font-size: 13.5px !important;
  }

  /* --- Accordion FAQ --- */
  .accordion .accordion-button {
    font-size: 14px;
    padding: 12px 14px;
    min-height: 44px;
  }

  /* --- Cards --- */
  .rounded-20px {
    border-radius: 12px !important;
  }

  .p-4 {
    padding: 1rem !important;
  }

  /* --- Popup on Standard Phones --- */
  #popup .form-control,
  #popup input,
  #popup select,
  #popup textarea {
    font-size: 13px !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
  }

  #popup textarea {
    min-height: 55px !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   12. BREAKPOINT: ≤ 480px (Small Phones)
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 480px) {

  /* --- Typography --- */
  h1, .h1 {
    font-size: 22px !important;
    word-break: break-word;
    hyphens: auto;
  }

  h2, .h2 {
    font-size: 18.5px !important;
  }

  h3, .h3 {
    font-size: 16px !important;
  }

  p, li {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }

  /* --- Header & Navbar Compact Sizing --- */
  header .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header .logo-mobile {
    max-width: 130px !important;
    max-height: 38px !important;
  }

  header .btn-main {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 16px !important;
    letter-spacing: 0 !important;
  }

  header .btn-main i {
    display: none !important;
  }

  header .h-phone a {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  /* --- Float Container (Bottom Docked) --- */
  .float-container a {
    font-size: 11.5px;
    height: 40px;
    padding: 6px 8px;
  }

  /* --- WhatsApp Float --- */
  .whatsapp_float {
    width: 44px !important;
    height: 44px !important;
    font-size: 21px !important;
    bottom: 48px !important;
    right: 10px !important;
  }

  /* --- Map Content Card --- */
  .iframe_map .map-content {
    padding: 14px;
    margin: -20px 0 0 0;
  }

  .iframe_map .map-content h3 {
    font-size: 17.5px;
  }

  .iframe_map .map-content p {
    font-size: 13px;
  }

  .iframe_map iframe {
    height: 220px;
  }

  /* --- Section Padding --- */
  section {
    padding: 26px 0;
  }

  .padding50 {
    padding: 16px 10px !important;
  }

  /* --- Popup on Small Phones --- */
  #popup .bg-color-3 {
    padding: 16px 12px 14px 12px !important;
  }

  #popup .bg-color-3 h3 {
    font-size: 16px !important;
    padding-right: 34px !important;
  }

  #popup .close-btn,
  #closePopup {
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 13px !important;
  }

  #popup .g-recaptcha {
    transform: scale(0.78) !important;
    margin: 6px 0 !important;
  }

  #popup #submit input[type="submit"],
  #popup #send_message {
    height: 40px !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   13. BREAKPOINT: ≤ 360px (Extra Small Phones — iPhone SE / Fold)
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 360px) {

  h1, .h1 {
    font-size: 20px !important;
  }

  h2, .h2 {
    font-size: 17.5px !important;
  }

  h3, .h3 {
    font-size: 15px !important;
  }

  p, li {
    font-size: 13px !important;
  }

  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* --- Header Ultra Compact --- */
  header .logo-mobile {
    max-width: 115px !important;
    max-height: 34px !important;
  }

  header .btn-main {
    padding: 4px 8px !important;
    font-size: 11px !important;
    height: 29px !important;
    min-height: 29px !important;
    border-radius: 14px !important;
  }

  header .h-phone a {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  /* --- Float container single mode --- */
  .float-container .icon:last-child {
    display: none !important;
  }

  .float-container a {
    width: 100% !important;
    font-size: 12px;
  }

  /* --- WhatsApp Float --- */
  .whatsapp_float {
    width: 40px !important;
    height: 40px !important;
    font-size: 19px !important;
    bottom: 46px !important;
    right: 6px !important;
  }

  /* --- Popup Ultra Compact --- */
  #popup .g-recaptcha {
    transform: scale(0.72) !important;
  }

  .btn-main,
  a.btn-main {
    font-size: 12px !important;
    padding: 8px 14px !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   14. BREAKPOINT: ≥ 1400px (Large Desktops & 4K)
   ────────────────────────────────────────────────────────────── */
@media only screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  p, li {
    font-size: 16px;
    line-height: 1.7;
  }

  .btn-main,
  a.btn-main {
    padding: 11px 26px;
    font-size: 14.5px;
  }
}

@media only screen and (min-width: 1921px) {
  .container {
    max-width: 1600px;
  }

  h1, .h1 {
    font-size: 56px;
  }

  p, li {
    font-size: 17.5px;
    line-height: 1.75;
  }
}

/* ──────────────────────────────────────────────────────────────
   15. TOUCH DEVICE OPTIMIZATIONS
   ────────────────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .hover-scale-1-2:hover,
  .hover-scale-in-2:hover {
    transform: none !important;
  }

  a, button, .btn-main, input[type="submit"] {
    min-height: 42px;
  }

  footer .social-icons a,
  footer .de-socials a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ──────────────────────────────────────────────────────────────
   16. LANDSCAPE PHONE ORIENTATION
   ────────────────────────────────────────────────────────────── */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  header.menu-open {
    height: 100vh !important;
    overflow-y: auto !important;
  }

  .full-height {
    min-height: 60vh !important;
  }

  .iframe_map iframe {
    height: 200px;
  }

  #popup {
    max-height: 85vh !important;
    top: 50% !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   17. PRINT STYLES
   ────────────────────────────────────────────────────────────── */
@media print {
  .float-container,
  .whatsapp_float,
  #popup,
  #overlay,
  #menu-btn,
  #de-loader,
  .float-text {
    display: none !important;
  }

  header {
    position: relative !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}
