/* --- DR Home Overflow Patch: ElementsKit cards stay inside viewport --- */
.site-content .ekit-row.post-items,
.site-content .ekit-row[class*="post-items"],
body.home .site-content .ekit-row.post-items {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.site-content .ekit-row.post-items > [class*="ekit-col-"],
.site-content .ekit-row[class*="post-items"] > [class*="ekit-col-"] {
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .site-content .ekit-row.post-items,
  .site-content .ekit-row[class*="post-items"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .site-content .ekit-row.post-items > [class*="ekit-col-"],
  .site-content .ekit-row[class*="post-items"] > [class*="ekit-col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* --- End DR Home Overflow Patch --- */

/* --- DR Homepage Hero Background Refresh: cleaner app-style first screen --- */
body.home #site-header.dr-header {
  background: linear-gradient(135deg, rgba(247, 239, 255, 0.96) 0%, rgba(243, 232, 255, 0.84) 100%) !important;
  border-bottom-color: rgba(124, 58, 237, 0.10) !important;
  box-shadow: none !important;
}

body.home .elementor-45 .elementor-element-5d2399a {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

body.home .elementor-45 .elementor-element-5d2399a > .e-con-inner,
body.home .elementor-45 .elementor-element-9868f9f,
body.home .elementor-45 .elementor-element-9868f9f > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  gap: 0 !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-section,
body.home .hero-section:has(.hero-title) {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(620px, 72svh, 760px) !important;
  margin: 0 !important;
  padding: clamp(2.2rem, 4.4vw, 4.25rem) 0 !important;
  display: flex !important;
  align-items: center !important;
  background-image:
    linear-gradient(180deg, rgba(247,239,255,0.54) 0%, rgba(247,239,255,0.05) 15%, rgba(0,0,0,0) 30%),
    linear-gradient(90deg, rgba(20, 10, 42, 0.68) 0%, rgba(88, 28, 135, 0.34) 45%, rgba(15, 23, 42, 0.06) 100%),
    url("https://doctorsrevisionuganda.com/wp-content/uploads/2025/09/doctor-revision.jpg") !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-section::before,
body.home .hero-section:has(.hero-title)::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 22%, rgba(168, 85, 247, 0.20), transparent 36%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.10)) !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-container,
body.home .hero-section:has(.hero-title) .hero-container {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-left: clamp(18px, 4vw, 64px) !important;
  padding-right: clamp(18px, 4vw, 64px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-grid,
body.home .hero-section:has(.hero-title) .hero-grid,
body.home .elementor-45 .elementor-element-9868f9f .hero-content,
body.home .hero-section:has(.hero-title) .hero-content {
  display: block !important;
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #ffffff !important;
  text-align: center !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-badge,
body.home .hero-section:has(.hero-title) .hero-badge,
body.home .elementor-45 .elementor-element-9868f9f .stat-card,
body.home .hero-section:has(.hero-title) .stat-card,
body.home .elementor-45 .elementor-element-9868f9f .hero-image-wrapper,
body.home .hero-section:has(.hero-title) .hero-image-wrapper,
body.home .elementor-45 .elementor-element-9868f9f .hero-features,
body.home .hero-section:has(.hero-title) .hero-features,
body.home .elementor-45 .elementor-element-9868f9f .hero-features .feature-item,
body.home .hero-section:has(.hero-title) .hero-features .feature-item {
  display: none !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-title,
body.home .hero-section:has(.hero-title) .hero-title {
  width: min(1050px, 100%) !important;
  max-width: 1050px !important;
  margin: 0 auto clamp(0.9rem, 1.6vw, 1.25rem) auto !important;
  padding: 0 !important;
  font-size: clamp(3rem, 5vw, 5.15rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  text-align: center !important;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42) !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-title .text-purple,
body.home .hero-section:has(.hero-title) .hero-title .text-purple {
  color: #c084fc !important;
  -webkit-text-fill-color: #c084fc !important;
  text-shadow: 0 10px 32px rgba(88, 28, 135, 0.46) !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-subtitle,
body.home .hero-section:has(.hero-title) .hero-subtitle {
  width: min(800px, 100%) !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: clamp(1rem, 2vw, 1.55rem) !important;
  font-size: clamp(1.02rem, 1.22vw, 1.16rem) !important;
  line-height: 1.58 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  text-align: center !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.36) !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-buttons-wrapper,
body.home .hero-section:has(.hero-title) .hero-buttons-wrapper {
  width: min(920px, 100%) !important;
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.28)) !important;
}

body.home .elementor-45 .elementor-element-9868f9f .hero-buttons-row,
body.home .hero-section:has(.hero-title) .hero-buttons-row {
  justify-content: center !important;
}

body.home .elementor-45 .elementor-element-9868f9f .btn-gradient-wrapper,
body.home .hero-section:has(.hero-title) .btn-gradient-wrapper {
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: 0 16px 34px rgba(76, 29, 149, 0.28) !important;
}

body.home .elementor-45 .elementor-element-9868f9f .btn-gradient-wrapper-alt,
body.home .hero-section:has(.hero-title) .btn-gradient-wrapper-alt {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home .elementor-45 .elementor-element-32c8157 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: linear-gradient(180deg, rgba(43, 13, 76, 0.18) 0%, rgba(250, 245, 255, 0.98) 24%, #ffffff 100%) !important;
}

body.home .elementor-45 .elementor-element-32c8157 > .e-con-inner,
body.home .elementor-45 .elementor-element-b717905,
body.home .elementor-45 .elementor-element-b717905 > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .elementor-45 .elementor-element-b717905 .hero-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding-top: clamp(3.6rem, 6vw, 5.3rem) !important;
  padding-bottom: clamp(3.6rem, 5.4vw, 5rem) !important;
  background: linear-gradient(180deg, rgba(250,245,255,0.96) 0%, rgba(255,255,255,1) 88%) !important;
  box-shadow: inset 0 42px 70px rgba(88, 28, 135, 0.10) !important;
}

body.home .elementor-45 .elementor-element-b717905 .container,
body.home .elementor-45 .elementor-element-b717905 .content-wrapper {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 767px) {
  body.home .elementor-45 .elementor-element-9868f9f .hero-section,
  body.home .hero-section:has(.hero-title) {
    min-height: auto !important;
    padding: 2.45rem 0 2.45rem !important;
    background-image:
      linear-gradient(180deg, rgba(247,239,255,0.34) 0%, rgba(247,239,255,0.02) 15%, rgba(0,0,0,0) 30%),
      linear-gradient(180deg, rgba(17, 10, 34, 0.74) 0%, rgba(88, 28, 135, 0.44) 50%, rgba(15, 23, 42, 0.20) 100%),
      url("https://doctorsrevisionuganda.com/wp-content/uploads/2025/09/doctor-revision.jpg") !important;
    background-position: center center !important;
  }

  body.home .elementor-45 .elementor-element-9868f9f .hero-container,
  body.home .hero-section:has(.hero-title) .hero-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.home .elementor-45 .elementor-element-9868f9f .hero-title,
  body.home .hero-section:has(.hero-title) .hero-title {
    width: 100% !important;
    font-size: clamp(2.35rem, 10.6vw, 3.85rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
  }

  body.home .elementor-45 .elementor-element-9868f9f .hero-subtitle,
  body.home .hero-section:has(.hero-title) .hero-subtitle {
    width: 100% !important;
    font-size: 0.97rem !important;
    line-height: 1.54 !important;
  }

  body.home .elementor-45 .elementor-element-9868f9f .hero-buttons-wrapper,
  body.home .hero-section:has(.hero-title) .hero-buttons-wrapper,
  body.home .elementor-45 .elementor-element-9868f9f .hero-buttons-row,
  body.home .hero-section:has(.hero-title) .hero-buttons-row {
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.7rem !important;
  }

  body.home .elementor-45 .elementor-element-9868f9f .hero-buttons-row,
  body.home .hero-section:has(.hero-title) .hero-buttons-row {
    flex-direction: column !important;
  }

  body.home .elementor-45 .elementor-element-9868f9f .btn-gradient-wrapper,
  body.home .hero-section:has(.hero-title) .btn-gradient-wrapper,
  body.home .elementor-45 .elementor-element-9868f9f .btn-gradient-wrapper-alt,
  body.home .hero-section:has(.hero-title) .btn-gradient-wrapper-alt {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
  }

  body.home .elementor-45 .elementor-element-b717905 .hero-section {
    padding: 3.1rem 10px 3.4rem !important;
  }
}
/* --- End DR Homepage Hero Background Refresh --- */

/* --- DR Homepage Seam Polish: remove visible gaps between header, hero, and clinical block --- */
body.home #content {
  margin-top: -10px !important;
}

body.home .elementor-45 .elementor-element-32c8157 {
  margin-top: -10px !important;
}

@media (max-width: 767px) {
  body.home #content {
    margin-top: -8px !important;
  }

  body.home .elementor-45 .elementor-element-32c8157 {
    margin-top: -8px !important;
  }
}
/* --- End DR Homepage Seam Polish --- */

/* --- DR Header Logo Image: use actual site icon instead of font icon --- */
#site-header .logo-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  display: inline-block !important;
  border-radius: 10px !important;
  background-image: url("https://doctorsrevisionuganda.com/wp-content/uploads/2025/09/cropped-logo-bg-doctors-revision-i-e1757410870595-2-192x192.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

#site-header .logo-icon::before {
  content: "" !important;
}
/* --- End DR Header Logo Image --- */
