/*=============================================================================
  MEDAX HOSPITALS - UNIFIED DESIGN SYSTEM & ALTERNATING SECTION THEME
  Sequence:
    1. Hero: Dark
    2. Features & Why Choose: Light
    3. About: Dark
    4. Medical Expertise (Services): Light
    5. Healthcare Services (Portfolio): Dark
    6. Emergency Care: Light
    7. Our Doctors: Dark
    8. The Medax Difference: Light
    9. Working Process: Dark
   10. Testimonials: Light
   11. Appointment CTA (Quote): Dark
   12. FAQs: Light
   13. Footer: Dark
=============================================================================*/

:root {
  --theme-color: #05ACA9 !important;
  --theme-color2: #0e2524 !important;
  --theme-dark: #0e2524 !important;
  --theme-color-light: #5fd3d0 !important;
  --theme-bg-light: #f7fcfb !important;
  --theme-bg-light2: #edf8f7 !important;
  --body-text-color: #4f6362 !important;
  --color-dark: #0e2524 !important;
  --color-white: #ffffff !important;
}

/* ---------------------------------------------------------
   1. GLOBAL TYPOGRAPHY UNIFICATION
--------------------------------------------------------- */
body {
  font-family: var(--body-font) !important;
  color: var(--body-text-color);
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font) !important;
}

/* Unified Taglines (Pills) */
.site-title-tagline {
  font-family: var(--heading-font) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  line-height: 1.4 !important;
  transition: var(--transition2);
}

.site-title-tagline i {
  font-size: 14px;
}

/* Light Section Tagline */
.medax-light-section .site-title-tagline,
.site-title-tagline:not(.bg-white) {
  color: var(--theme-color) !important;
  background: var(--theme-bg-light2) !important;
  border: 1px solid rgba(5, 172, 169, 0.2) !important;
}

/* Dark Section Tagline */
.medax-dark-section .site-title-tagline,
.medax-dark-section .site-title-tagline.bg-white {
  color: var(--theme-color-light) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Unified Main Headings (.site-title) */
.site-title {
  font-family: var(--heading-font) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.5px;
}

.medax-light-section .site-title {
  color: var(--color-dark) !important;
}

.medax-dark-section .site-title {
  color: #ffffff !important;
}

/* Unified Sub-titles */
.site-subtitle,
.doctors-subtitle,
.medax-choose-subtitle,
.site-heading>h4,
.site-heading>h5 {
  font-family: var(--heading-font) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 8px !important;
}

.medax-light-section .site-subtitle,
.medax-light-section .doctors-subtitle,
.medax-light-section .medax-choose-subtitle,
.medax-light-section .site-heading>h4,
.medax-light-section .site-heading>h5 {
  color: var(--theme-color) !important;
}

.medax-dark-section .site-subtitle,
.medax-dark-section .doctors-subtitle,
.medax-dark-section .site-heading>h4,
.medax-dark-section .site-heading>h5 {
  color: var(--theme-color-light) !important;
}

/* Unified Paragraphs */
.site-heading-desc,
.site-heading p,
.about-text,
.doctors-desc,
.medax-choose-intro {
  font-family: var(--body-font) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

.medax-light-section .site-heading-desc,
.medax-light-section .site-heading p,
.medax-light-section p {
  color: var(--body-text-color);
}

.medax-dark-section .site-heading-desc,
.medax-dark-section .site-heading p,
.medax-dark-section .about-text,
.medax-dark-section .doctors-desc,
.medax-dark-section p:not(.badge-label):not(.badge-num):not(.unit):not(.count):not(.service-content p):not(.process-item p):not(.portfolio-content p) {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Universal Button Styling - Always crisp white text and icons */
.theme-btn,
.theme-btn:link,
.theme-btn:visited,
.theme-btn:active,
.theme-btn:focus,
a.theme-btn,
a.theme-btn:link,
a.theme-btn:visited,
button.theme-btn {
  color: #ffffff !important;
  background: var(--theme-color) !important;
}

.theme-btn i,
a.theme-btn i,
button.theme-btn i {
  color: #ffffff !important;
}

.theme-btn:hover,
a.theme-btn:hover,
button.theme-btn:hover {
  color: #ffffff !important;
  background: var(--theme-color2) !important;
}

.theme-btn:hover i,
a.theme-btn:hover i,
button.theme-btn:hover i {
  color: #ffffff !important;
}

.theme-btn2,
.theme-btn2:link,
.theme-btn2:visited,
a.theme-btn2,
button.theme-btn2 {
  color: #ffffff !important;
}

.theme-btn2 i,
a.theme-btn2 i,
button.theme-btn2 i {
  color: #ffffff !important;
}

.theme-btn2:hover,
a.theme-btn2:hover,
button.theme-btn2:hover {
  color: #ffffff !important;
}

/* Hero Banner 2nd Button (Explore Our Services) - White button with dark text & teal icon */
.hero-btn .theme-btn2,
.hero-btn .theme-btn2:link,
.hero-btn .theme-btn2:visited,
.hero-btn a.theme-btn2,
.hero-btn a.theme-btn2:link,
.hero-btn a.theme-btn2:visited,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2:link,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2:visited,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2:link,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2:visited {
  background: #ffffff !important;
  color: #0e2524 !important;
  border: 2px solid #ffffff !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-btn .theme-btn2 i,
.hero-btn .theme-btn2:link i,
.hero-btn .theme-btn2:visited i,
.hero-btn a.theme-btn2 i,
.hero-btn a.theme-btn2:link i,
.hero-btn a.theme-btn2:visited i,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2 i,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2 i,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2:link i,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2:visited i,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2:link i,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2:visited i {
  color: var(--theme-color) !important;
  margin-left: 8px !important;
}

.hero-btn .theme-btn2:hover,
.hero-btn a.theme-btn2:hover,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2:hover,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2:hover {
  background: var(--theme-color) !important;
  border-color: var(--theme-color) !important;
  color: #ffffff !important;
}

.hero-btn .theme-btn2:hover i,
.hero-btn a.theme-btn2:hover i,
.hs-1 .hero-single .hero-content .hero-btn .theme-btn2:hover i,
.hs-1 .hero-single .hero-content .hero-btn a.theme-btn2:hover i {
  color: #ffffff !important;
}

/* ---------------------------------------------------------
   2. ALTERNATING SECTION THEME COLORS
--------------------------------------------------------- */
/* Light Section Background */
.medax-light-section {
  background: var(--theme-bg-light) !important;
  color: var(--body-text-color);
}

/* Dark Section Background */
.medax-dark-section {
  background: #0e2524 !important;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  margin-top: 75px;
  margin-bottom: 75px;
}

/* ---------------------------------------------------------
   3. SECTION-SPECIFIC CUSTOMIZATIONS & ICONS
--------------------------------------------------------- */

/* Section 2: Features & Why Choose (Light) */
.choose-area2.medax-light-section {
  background: var(--theme-bg-light) !important;
}

.choose-area2 .site-heading .site-subtitle {
  color: var(--theme-color) !important;
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
}

/* Why Choose Us - Icons crisp circle badge styling */
.choose-area2 .choose-item .icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  border-radius: 50% !important;
  background: var(--theme-color-dark, #0e2524) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(14, 37, 36, 0.15) !important;
}

.choose-area2 .choose-item .icon img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Why Choose Us - Expand image width, remove dead space gap */
.choose-area2 .choose-img {
  text-align: left !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.choose-area2 .choose-img .ani-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.choose-area2 .choose-img img,
.choose-area2 .choose-img .img-1 {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 560px !important;
  max-height: 680px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 24px !important;
  box-shadow: 0 15px 40px rgba(14, 37, 36, 0.1) !important;
  display: block !important;
}

@media (max-width: 991px) {
  .choose-area2 .choose-img {
    margin-top: 30px !important;
  }

  .choose-area2 .choose-img img,
  .choose-area2 .choose-img .img-1 {
    min-height: 320px !important;
    max-height: 460px !important;
  }
}

/* Section 3: About Area (Dark) */
.about-area.medax-dark-section {
  background: #0e2524 !important;
}

.about-area.medax-dark-section .about-content .about-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.about-area.medax-dark-section .about-content .about-item .content h4 {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 700;
}

.about-area.medax-dark-section .about-content .about-item .content p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.about-area.medax-dark-section .about-experience {
  background: var(--theme-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  border-radius: 20px;
}

.about-area.medax-dark-section .about-experience .content h4,
.about-area.medax-dark-section .about-experience .content p {
  color: #ffffff !important;
}

.about-experience .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  width: 75px !important;
  height: 75px !important;
  min-width: 75px !important;
  border-radius: 20px !important;
  flex-shrink: 0 !important;
}

.about-experience .icon i {
  font-size: 34px !important;
  color: var(--theme-color) !important;
  line-height: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Section 4: Service Area (Light) */
.service-area.medax-light-section {
  background: #ffffff !important;
}

.service-area.medax-light-section .service-wrap {
  background: var(--theme-bg-light2) !important;
}

.service-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.service-icon i {
  position: relative;
  z-index: 2;
  font-size: 24px;
  color: var(--color-white);
  line-height: 1;
}

.service-content h4 a {
  color: var(--color-dark) !important;
  font-weight: 700;
}

.service-content h4 a:hover {
  color: var(--theme-color) !important;
}

.service-content p {
  color: var(--body-text-color) !important;
}

/* Service Card Hover States - Fix unreadable text and invisible icons on hover */
.service-item {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.35s ease !important;
}

.service-item::before {
  background: #0e2524 !important;
}

.service-item:hover {
  background: #0e2524 !important;
}

.service-icon {
  position: relative !important;
  background: var(--theme-color) !important;
}

.service-icon i {
  position: relative !important;
  z-index: 3 !important;
  font-size: 24px !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.service-item:hover .service-icon::before {
  background: #ffffff !important;
  transform: scale(1) !important;
}

.service-item:hover .service-icon i {
  color: #05ACA9 !important;
}

.service-item:hover .service-content h4 a {
  color: #ffffff !important;
}

.service-item:hover .service-content p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.service-item:hover .count {
  color: rgba(255, 255, 255, 0.6) !important;
}

.service-item:hover .service-bottom {
  border-top-color: rgba(255, 255, 255, 0.25) !important;
}

.service-item:hover .service-bottom a,
.service-item:hover .service-bottom a i {
  color: #ffffff !important;
}

/* Section 5: Portfolio Area (Dark) */
.portfolio-area.medax-dark-section {
  background: #0e2524 !important;
}

.portfolio-area.medax-dark-section .portfolio-panel .pin-panel {
  background: #143534 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.portfolio-area.medax-dark-section .pin-panel .portfolio-content {
  background: rgba(14, 37, 36, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Section 6: Emergency Area (Light) */
.emergency-area.medax-light-section {
  background: #f7fcfb !important;
}

.emergency-area.medax-light-section .emergency-wrap {
  background: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
}

.emergency-title {
  color: var(--color-dark) !important;
}

.emergency-text {
  color: var(--body-text-color) !important;
}

.emergency-list li {
  color: var(--color-dark) !important;
  font-weight: 500;
}

/* Section 7: Our Doctors Area (Dark) */
.our-doctors-area.medax-dark-section {
  background: #0e2524 !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-card {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 4px solid var(--theme-color-light) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-card:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-left-color: var(--theme-color) !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-info h4 {
  color: #ffffff !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-info p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-icon {
  background: rgba(5, 172, 169, 0.35) !important;
  color: var(--theme-color-light) !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-card:hover .doctors-stat-icon {
  background: var(--theme-color) !important;
  color: #ffffff !important;
}

/* Section 8: The Medax Difference (Light) */
.choose-area-medax.medax-light-section {
  background: #f7fcfb !important;
}

.choose-area-medax.medax-light-section .medax-choose-badge {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.choose-area-medax.medax-light-section .medax-choose-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Section 9: Working Process (Dark) */
.process-area.medax-dark-section {
  background: #0e2524 !important;
}

.process-area.medax-dark-section .process-wrap {
  background: transparent !important;
}

.process-area.medax-dark-section .process-item {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

.process-area.medax-dark-section .process-item .content h4 {
  color: var(--color-dark) !important;
}

.process-area.medax-dark-section .process-item .content p {
  color: var(--body-text-color) !important;
}

/* Section 10: Testimonials Area (Light) */
.testimonial-area.medax-light-section {
  background: #ffffff !important;
}

.testimonial-area.medax-light-section .testimonial-item.medax-testi {
  background: var(--theme-bg-light2) !important;
  border: 1px solid rgba(5, 172, 169, 0.1) !important;
}

.testimonial-area.medax-light-section .testimonial-item.medax-testi .quote p {
  color: var(--color-dark) !important;
}

/* Section 11: Quote / Appointment CTA (Dark) */
.quote-area.medax-dark-section {
  background: #0e2524 !important;
}

.quote-area.medax-dark-section .quote-wrap {
  background: transparent !important;
}

/* Section 12: FAQs (Light) */
.faq-area.medax-light-section {
  background: #f7fcfb !important;
}

/* ---------------------------------------------------------
   4. HEADER & FLOATING NAVBAR SYSTEM (DESKTOP & GLOBAL)
--------------------------------------------------------- */
/* Header Positioning: Absolute overlay on Desktop, Relative block on Mobile */
@media (min-width: 992px) {

  .header,
  .header.hd-1 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
  }

  .main-navigation {
    position: relative !important;
    background: transparent !important;
  }
}

@media (max-width: 991px) {

  .header,
  .header.hd-1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 1000 !important;
  }

  .main-navigation {
    position: relative !important;
    background: #ffffff !important;
  }
}

/* Floating Fixed Navbar - ALWAYS stays on top of all page sections on scroll */
.navbar.fixed-top,
.header .navbar.fixed-top,
.header.hd-1 .navbar.fixed-top,
.main-navigation .navbar.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483647 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  animation: slide-down 0.35s ease-out !important;
}

/* Pinned elements in GSAP and page content must never overlap navbar */
.portfolio-panel,
.portfolio-panel .pin-panel,
.pin-panel,
.pin-spacer,
#smooth-wrapper,
#smooth-content {
  z-index: 10 !important;
}

/* Desktop Top Bar - Completely transparent, seamless over hero */
.header-top {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  position: relative;
  z-index: 2;
  padding: 10px 0 !important;
}

.header-top-list a {
  color: #ffffff !important;
  font-size: 13.5px !important;
}

.header-top-list a:hover {
  color: var(--theme-color-light) !important;
}

.header-top-social span {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px !important;
}

.header-top-social a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px !important;
}

.header-top-social a:hover {
  color: var(--theme-color-light) !important;
}

/* Header Navbar on Desktop */
.header.hd-1 .navbar>.container {
  background-color: #ffffff !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 4px 24px !important;
  margin-top: 3px;
}

.navbar.fixed-top>.container,
.header.hd-1 .navbar.fixed-top>.container {
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* 3-Column Pill Navbar Layout on Desktop:
   Left: Logo | Center: Menu Links | Right: Book Appointment Button */
@media (min-width: 992px) {

  .header.hd-1 .navbar>.container,
  .navbar.fixed-top>.container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
  }

  .header.hd-1 .navbar-brand {
    margin-right: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    flex-shrink: 0 !important;
  }

  .header.hd-1 .navbar-nav {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(12px, 1.4vw, 22px) !important;
  }

  .header.hd-1 .nav-right,
  .header .navbar .nav-right,
  .navbar .nav-right {
    margin-left: auto !important;
    margin-right: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .header.hd-1 .nav-right .nav-btn,
  .header .navbar .nav-right .nav-btn,
  .navbar .nav-right .nav-btn {
    display: block !important;
  }

  .header.hd-1 .nav-right .nav-btn .theme-btn,
  .header .navbar .nav-right .nav-btn .theme-btn {
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(172, 5, 8, 0.25) !important;
  }

  .header.hd-1 .nav-right .nav-btn .theme-btn i,
  .header .navbar .nav-right .nav-btn .theme-btn i {
    font-size: 14px !important;
    margin-left: 4px !important;
  }

  /* Desktop Hero Content Top Padding to clear floating header */
  .hs-1 .hero-single {
    padding-top: 140px !important;
  }
}

/* Bootstrap Offcanvas Layers */
.offcanvas,
.offcanvas.offcanvas-start {
  z-index: 1000000 !important;
}

.offcanvas-backdrop {
  z-index: 999999 !important;
}

/* ---------------------------------------------------------
   5. STANDARDIZED DESKTOP SECTION PADDINGS & GAPS
--------------------------------------------------------- */
/* Unified Section Paddings (Balanced rhythm: ~75px instead of bloated 120px) */
.py-120 {
  padding-top: 75px !important;
  padding-bottom: 75px !important;
}

.pt-120 {
  padding-top: 75px !important;
}

.pb-120 {
  padding-bottom: 75px !important;
}

.py-100 {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.pt-100 {
  padding-top: 70px !important;
}

.pb-100 {
  padding-bottom: 70px !important;
}

.py-80 {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Intra-section Gap Normalization */
/* Feature Area: top padding 70px, no bottom padding */
.feature-area {
  padding-top: 70px !important;
  padding-bottom: 60px !important;
  
}

/* Choose Area 2: top padding 35px so it connects smoothly to feature-area */
.choose-area2 {
  padding-top: 35px !important;
  padding-bottom: 75px !important;
}

/* Emergency Area: unified 75px top and bottom */
.emergency-area {
  padding-top: 75px !important;
  padding-bottom: 75px !important;
}

/* Testimonials Area: unified 75px top and bottom */
.testimonial-area {
  padding-top: 75px !important;
  padding-bottom: 75px !important;
}

/* Desktop Section Heading Spacing */
.site-heading {
  margin-bottom: 17px !important;
}

/* ---------------------------------------------------------
   5b. SERVICE SIDEBAR & ALL SERVICES WIDGET (14 SERVICES)
--------------------------------------------------------- */
.service-sidebar .widget {
  background: #ffffff !important;
  padding: 28px 24px !important;
  border-radius: 20px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(5, 172, 169, 0.12) !important;
}

.service-sidebar .widget .title {
  position: relative !important;
  padding-bottom: 12px !important;
  margin-bottom: 22px !important;
  font-family: var(--heading-font) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--color-dark) !important;
}

.service-sidebar .widget .title::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 3px !important;
  width: 45px !important;
  background: var(--theme-color) !important;
  border-radius: 50px !important;
}

.service-sidebar .widget .category a {
  display: flex !important;
  align-items: center !important;
  font-size: 14.5px !important;
  color: var(--color-dark) !important;
  font-weight: 500 !important;
  padding: 9px 14px !important;
  margin-bottom: 6px !important;
  border-radius: 8px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.service-sidebar .widget .category a i {
  margin-right: 10px !important;
  font-size: 12px !important;
  color: var(--theme-color) !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.service-sidebar .widget .category a:hover {
  color: var(--theme-color) !important;
  background: var(--theme-bg-light2) !important;
  padding-left: 18px !important;
}

.service-sidebar .widget .category a.active {
  color: #ffffff !important;
  background: var(--theme-color) !important;
  font-weight: 700 !important;
  border-bottom-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.25) !important;
  padding-left: 14px !important;
}

.service-sidebar .widget .category a.active i {
  color: #ffffff !important;
}

.service-sidebar .widget .category a:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

.service-sidebar .widget .service-download a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--color-dark) !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  border: 1.5px solid var(--theme-color) !important;
  padding: 11px 18px !important;
  margin-bottom: 14px !important;
  border-radius: 50px !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.service-sidebar .widget .service-download a i {
  margin-right: 10px !important;
  color: var(--theme-color) !important;
  transition: all 0.25s ease !important;
}

.service-sidebar .widget .service-download a:hover {
  background: var(--theme-color) !important;
  color: #ffffff !important;
}

.service-sidebar .widget .service-download a:hover i {
  color: #ffffff !important;
}

.service-sidebar .widget .service-download a:last-child {
  margin-bottom: 0 !important;
}

/* ---------------------------------------------------------
   6. COMPREHENSIVE MOBILE RESPONSIVENESS & GAP NORMALIZATION
--------------------------------------------------------- */

@media all and (max-width: 991px) {

  /* Mobile Header Refinement - Fix messy top bar and orphan icons */
  .header-top {
    display: none !important;
  }

  .header,
  .main-navigation,
  .navbar {
    background: #ffffff !important;
    width: 100% !important;
  }

  .header.hd-1 .navbar>.container {
    background-color: #ffffff !important;
    border-radius: 0 !important;
    padding: 10px 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .navbar-brand img {
    max-height: 38px !important;
    width: auto !important;
  }

  .mobile-menu-right {
    display: flex !important;
    align-items: center !important;
  }

  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 6px !important;
  }

  .navbar.fixed-top,
  .header.hd-1 .navbar.fixed-top {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  }

  /* Normalize Standard Section Spacings & Gaps on Mobile (Standard 65px Rhythm) */
  .py-120 {
    padding-top: 65px !important;
    padding-bottom: 65px !important;
  }

  .pt-120 {
    padding-top: 65px !important;
  }

  .pb-120 {
    padding-bottom: 65px !important;
    margin-top: 100px;
  }

  .py-100 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .pt-100 {
    padding-top: 60px !important;
  }

  .pb-100 {
    padding-bottom: 60px !important;
  }

  .pt-80,
  .pb-80,
  .py-80 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  /* Specific Section Gaps on Mobile */
  .feature-area {
    padding-top: 55px !important;
    padding-bottom: 0px !important;
  }

  .choose-area2 {
    padding-top: 40px !important;
    padding-bottom: 65px !important;
  }

  .emergency-area {
    padding-top: 65px !important;
    padding-bottom: 65px !important;
  }

  .testimonial-area {
    padding-top: 65px !important;
    padding-bottom: 65px !important;
  }

  /* Global Section Heading Normalization on Mobile */
  .site-heading {
    margin-bottom: 24px !important;
  }

  .site-heading .site-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.3px !important;
  }

  .site-subtitle,
  .doctors-subtitle,
  .medax-choose-subtitle,
  .site-heading>h4,
  .site-heading>h5 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
  }

  .site-heading-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-top: 6px !important;
  }

  .site-title-tagline {
    font-size: 11.5px !important;
    padding: 4px 12px !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
  }

  /* 1. Hero Section on Mobile - Seamless connection with header, ZERO white space */
  .header {
    margin-bottom: 0 !important;
  }

  .hero-section {
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #0e2524 !important;
  }

  .hero-single {
    min-height: auto !important;
    padding: 70px 0 45px 0 !important;
  }

  .hero-content {
    padding-top: 10px !important;
  }

  .hero-content .hero-sub-title {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    padding: 6px 14px !important;
    margin-bottom: 14px !important;
    display: inline-block !important;
    white-space: normal !important;
  }

  .hero-content .hero-title {
    font-size: 30px !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  .hero-content p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 22px !important;
  }

  .hero-btn {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .hero-btn .theme-btn,
  .hero-btn .theme-btn2 {
    padding: 10px 18px !important;
    font-size: 13.5px !important;
    margin: 0 !important;
  }

  /* 2. Feature Area */
  .feature-area {
    padding-top: 40px !important;
  }

  .feature-item {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .feature-item .count {
    right: 20px !important;
    top: 20px !important;
    font-size: 15px !important;
  }

  .feature-icon {
    width: 48px !important;
    height: 48px !important;
    line-height: 46px !important;
    margin-bottom: 14px !important;
  }

  .feature-icon img {
    width: 24px !important;
  }

  .feature-info h4 {
    font-size: 16.5px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    line-height: 1.35 !important;
  }

  /* 2b. Why Choose Area (choose-area2) */
  .choose-area2 .choose-content {
    padding-top: 15px !important;

  }

  .choose-area2 .choose-intro p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 10px !important;
  }

  .choose-area2 .choose-item {
    margin-bottom: 15px !important;
  }

  .choose-area2 .choose-item .info h4 {
    font-size: 16.5px !important;
    margin-bottom: 6px !important;
  }

  .choose-area2 .choose-item .info p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .choose-area2 .choose-img {
    margin-top: 20px !important;
    text-align: center !important;
  }

  .choose-area2 .choose-img img {
    max-width: 100% !important;
    border-radius: 18px !important;
  }

  /* 3. About Area */
  .about-left {
    margin-bottom: 25px !important;
  }

  .about-left .shape {
    display: none !important;
  }

  .about-experience {
    border-radius: 16px !important;
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
    flex-direction: row !important;
    text-align: left !important;
    gap: 12px !important;
  }

  .about-experience .icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .about-experience .icon i {
    font-size: 20px !important;
    color: var(--theme-color) !important;
  }

  .about-experience h4 {
    font-size: 24px !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important;
  }

  .about-experience p {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0 !important;
  }

  .about-text {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
  }

  .about-content {
    margin-top: 18px !important;
    margin-bottom: 22px !important;
  }

  .about-content .about-item {
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    gap: 12px !important;
  }

  .about-content .about-item .icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    line-height: 44px !important;
  }

  .about-content .about-item .icon img {
    width: 22px !important;
  }

  .about-content .about-item .content h4 {
    font-size: 16.5px !important;
    margin-bottom: 4px !important;
  }

  .about-content .about-item .content p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }

  /* 4. Services Area */
  .service-wrap {
    border-radius: 20px !important;
    padding: 35px 12px !important;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .service-wrap .row.g-4.mb-5 {
    margin-bottom: 20px !important;
  }

  .service-wrap .heading-text p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 15px !important;
  }

  .service-item {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  .service-icon {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    margin-bottom: 16px !important;
  }

  .service-icon i {
    font-size: 22px !important;
  }

  .service-content h4 {
    font-size: 17px !important;
    margin-bottom: 6px !important;
  }

  .service-content p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  .service-img {
    margin: 18px auto 14px auto !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 280px !important;
    height: 125px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
  }

  .service-img img {
    width: 100% !important;
    height: 100% !important;
    max-height: 125px !important;
    object-fit: cover !important;
  }

  .service-bottom {
    margin-top: 12px !important;
    padding-top: 12px !important;
  }

  /* 5. Healthcare Services (Portfolio Area) on Mobile */
  .portfolio-panel .pin-panel {
    height: auto !important;
    margin-bottom: 25px !important;
    padding: 10px !important;
    border-radius: 20px !important;
    background: #143534 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
  }

  .portfolio-panel .pin-panel .portfolio-item {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .portfolio-panel .pin-panel .portfolio-img {
    width: 100% !important;
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden !important;
  }

  .portfolio-panel .pin-panel .portfolio-img img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 14px 14px 0 0 !important;
    display: block !important;
  }

  .portfolio-panel .pin-panel .portfolio-content {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 18px 16px !important;
    border-radius: 0 0 14px 14px !important;
    background: #0e2524 !important;
    border: none !important;
  }

  .portfolio-panel .pin-panel .portfolio-content .subtitle {
    font-size: 11px !important;
    padding: 4px 12px !important;
    background: rgba(5, 172, 169, 0.3) !important;
    color: var(--theme-color-light) !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    margin-bottom: 8px !important;
  }

  .portfolio-panel .pin-panel .portfolio-content .title {
    font-size: 17.5px !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }

  .portfolio-panel .pin-panel .portfolio-content .title a {
    color: #ffffff !important;
  }

  .portfolio-panel .pin-panel .portfolio-content .portfolio-text {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .portfolio-panel .pin-panel .portfolio-bottom .theme-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* 6. Emergency Area */
  .emergency-wrap {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .emergency-tagline {
    font-size: 12px !important;
    padding: 4px 12px !important;
    margin-bottom: 8px !important;
  }

  .emergency-small-title {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .emergency-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .emergency-text {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }

  .emergency-list-title {
    font-size: 15px !important;
    margin-top: 12px !important;
    margin-bottom: 10px !important;
  }

  .emergency-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }

  .emergency-list li {
    font-size: 13px !important;
  }

  .emergency-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .emergency-helpline .info span {
    font-size: 12px !important;
  }

  .emergency-helpline .info a {
    font-size: 18px !important;
  }

  .emergency-bottom .theme-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
  }

  .emergency-img {
    margin-top: 18px !important;
  }

  .emergency-img img {
    border-radius: 14px !important;
    max-height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* 7. Our Doctors Area */
  .our-doctors-area .col-lg-6:first-child {
    margin-bottom: 24px !important;
  }

  .doctors-subtitle {
    font-size: 16.5px !important;
    margin-top: 6px !important;
  }

  .doctors-desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }

  .our-doctors-area .theme-btn {
    margin-bottom: 24px !important;
  }

  .doctors-visual-wrap {
    gap: 12px !important;
  }

  .doctors-stat-card {
    padding: 16px !important;
    border-radius: 14px !important;
    gap: 12px !important;
  }

  .doctors-stat-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
  }

  .doctors-stat-info h4 {
    font-size: 15px !important;
    margin-bottom: 3px !important;
  }

  .doctors-stat-info p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  /* 8. The Medax Difference */
  .medax-choose-img-wrap {
    margin-bottom: 22px !important;
  }

  .medax-choose-main-img img {
    max-height: 300px !important;
    border-radius: 16px !important;
  }

  .medax-choose-thumb {
    display: none !important;
  }

  .medax-choose-badge {
    top: 12px !important;
    left: 12px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    gap: 8px !important;
  }

  .medax-choose-badge .badge-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 15px !important;
  }

  .medax-choose-badge .badge-num {
    font-size: 17px !important;
  }

  .medax-choose-badge .badge-label {
    font-size: 10.5px !important;
  }

  .medax-choose-subtitle {
    font-size: 16.5px !important;
  }

  .medax-choose-intro {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }

  .medax-choose-list {
    margin-top: 16px !important;
  }

  .medax-choose-row {
    padding: 12px 0 !important;
    gap: 12px !important;
  }

  .medax-choose-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
  }

  .medax-choose-icon img {
    width: 20px !important;
  }

  .medax-choose-text h5 {
    font-size: 14.5px !important;
    margin-bottom: 2px !important;
  }

  .medax-choose-text p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .choose-area-medax .theme-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* 9. Working Process Area */
  .process-area .process-wrap {
    padding: 35px 8px !important;
  }

  .process-item {
    padding: 20px 16px !important;
    border-radius: 18px !important;
    margin-bottom: 12px !important;
  }

  .process-item .count {
    right: 16px !important;
    top: 18px !important;
    font-size: 11.5px !important;
    padding: 2px 8px !important;
  }

  .process-item .icon {
    width: 46px !important;
    height: 46px !important;
    line-height: 44px !important;
    margin-bottom: 14px !important;
  }

  .process-item .icon img {
    width: 22px !important;
  }

  .process-item .content {
    margin-bottom: 0 !important;
  }

  .process-item .content h4 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
  }

  .process-item .content p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }

  .process-item .img {
    display: none !important;
  }

  /* 10. Testimonials Area */
  .testimonial-area {
    padding-bottom: 50px !important;
  }

  .testimonial-item.medax-testi {
    padding: 18px 15px !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }

  .testimonial-item.medax-testi .quote p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 14px !important;
  }

  .testimonial-item.medax-testi .author {
    gap: 10px !important;
  }

  .testimonial-item.medax-testi .medax-testi-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .testimonial-item.medax-testi .medax-testi-avatar span {
    font-size: 17px !important;
  }

  .testimonial-item.medax-testi .author-info h4 {
    font-size: 15px !important;
    margin-bottom: 2px !important;
  }

  .testimonial-item.medax-testi .author-info p {
    font-size: 11.5px !important;
  }

  /* 11. Quote / Appointment CTA on Mobile */
  .quote-area {
    padding: 0 !important;
  }

  .quote-wrap {
    padding: 55px 15px !important;
  }

  .quote-content {
    min-height: auto !important;
    margin-bottom: 30px !important;
    gap: 0 !important;
    display: block !important;
  }

  .quote-content .site-heading {
    margin-bottom: 20px !important;
  }

  .quote-content .site-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .quote-content p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
  }

  .quote-contact {
    position: relative !important;
    max-width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 16px !important;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .quote-contact .top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
  }

  .quote-contact .top h4 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }

  .quote-contact .top p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .quote-contact .info {
    gap: 8px !important;
  }

  .quote-contact .info li {
    font-size: 14px !important;
    margin: 4px 0 !important;
  }

  .quote-contact .info li i {
    color: var(--theme-color-light) !important;
  }

  .quote-form {
    padding: 28px 20px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25) !important;
    margin-top: 10px !important;
  }

  .quote-header h4 {
    font-size: 20px !important;
    margin-bottom: 6px !important;
    color: var(--color-dark) !important;
  }

  .quote-header p {
    font-size: 13px !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
    color: var(--body-text-color) !important;
  }

  .quote-form .form-group {
    margin-bottom: 14px !important;
  }

  .quote-form .form-control,
  .quote-form .form-select {
    font-size: 14px !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
  }

  .quote-form .theme-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    margin-top: 8px !important;
  }

  /* 12. FAQs Area */
  .faq-content {
    margin-bottom: 22px !important;
  }

  .faq-box {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    margin-top: 14px !important;
    padding: 16px !important;
  }

  .faq-box h4 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
  }

  .faq-box .theme-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
  }

  .faq-area .accordion-item,
  .sd-faq .accordion-item {
    margin-bottom: 8px !important;
    border-radius: 12px !important;
  }

  .faq-area .accordion-button,
  .sd-faq .accordion-button {
    font-size: 14px !important;
    padding: 11px 13px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    line-height: 1.35 !important;
  }

  .faq-area .accordion-button span,
  .sd-faq .accordion-button span {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    margin-right: 0 !important;
  }

  .faq-area .accordion-button span i,
  .sd-faq .accordion-button span i {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 12px !important;
  }

  .faq-area .accordion-body,
  .sd-faq .accordion-body {
    font-size: 13px !important;
    padding: 0 13px 13px 13px !important;
    line-height: 1.55 !important;
  }

  /* Footer Padding on Mobile */
  .footer-area {
    padding-bottom: 60px !important;
  }

  .footer-widget-wrap {
    padding-bottom: 10px !important;
  }
}

/*=============================================================================
  BRAND COLOR PAIR (from logo): TEAL #05ACA9  +  RED #AC0508
  Teal = base/theme colour, Red = action & accent colour.
=============================================================================*/
:root {
  --theme-color-red: #AC0508;
  --theme-color-red-dark: #8a0406;
  --theme-color-red-soft: rgba(172, 5, 8, 0.08);
}

::selection {
  background: #AC0508;
  color: #ffffff;
}

/* Primary call-to-action buttons -> RED */
.theme-btn,
.theme-btn:link,
.theme-btn:visited,
a.theme-btn,
a.theme-btn:link,
a.theme-btn:visited,
button.theme-btn {
  background: var(--theme-color-red) !important;
  border-color: var(--theme-color-red) !important;
}

.theme-btn::before {
  background: var(--theme-color) !important;
}

.theme-btn:hover,
a.theme-btn:hover,
button.theme-btn:hover {
  background: var(--theme-color) !important;
  border-color: var(--theme-color) !important;
}

/* Hero 2nd button: teal on hover stays; icon red */
.hero-btn .theme-btn2 i,
.hero-btn a.theme-btn2 i {
  color: var(--theme-color-red) !important;
}

.hero-btn .theme-btn2:hover i,
.hero-btn a.theme-btn2:hover i {
  color: #ffffff !important;
}

/* Hero small heading + section taglines / sub-titles */
.hero-section .hero-single .hero-content .hero-sub-title {
  color: #ffffff !important;
}

.medax-light-section .site-title-tagline,
.site-title-tagline:not(.bg-white) {
  color: var(--theme-color-red) !important;
  background: var(--theme-color-red-soft) !important;
  border: 1px solid rgba(172, 5, 8, 0.25) !important;
}

.medax-light-section .site-subtitle,
.medax-light-section .doctors-subtitle,
.medax-light-section .medax-choose-subtitle,
.medax-light-section .site-heading>h4,
.medax-light-section .site-heading>h5 {
  color: var(--theme-color-red) !important;
}

.medax-dark-section .site-title-tagline,
.medax-dark-section .site-title-tagline.bg-white {
  color: #ffffff !important;
  background: rgba(172, 5, 8, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* Accent underline / small decorations */
.footer-widget-title::before {
  background: var(--theme-color-red) !important;
}

/* Services cards: teal icon, RED on hover */
.service-item::before,
.service-item:hover {
  background: var(--theme-color-red) !important;
}

.service-item:hover .service-icon i {
  color: var(--theme-color-red) !important;
}

/* Stat / badge / experience icons */
.about-experience .icon i,
.medax-choose-badge .badge-icon i {
  color: var(--theme-color-red) !important;
}

.our-doctors-area.medax-dark-section .doctors-stat-card:hover .doctors-stat-icon {
  background: var(--theme-color-red) !important;
}

/* Active / hover states */
.navbar .nav-item .nav-link.active,
.navbar .nav-item .nav-link:hover,
.navbar.fixed-top .nav-link.active {
  color: var(--theme-color-red) !important;
}

.header-top-list a:hover,
.header-top-social a:hover,
.footer-list li a:hover,
.footer-list li a:hover i {
  color: var(--theme-color-red) !important;
}

.footer-area .footer-list li a:hover,
.footer-area .footer-list li a:hover i {
  color: #ff8d90 !important;
}

.service-content h4 a:hover {
  color: var(--theme-color-red) !important;
}



/* Scroll-to-top */
#scroll-top {
  background: var(--theme-color-red) !important;
}

#scroll-top:hover {
  background: var(--theme-color) !important;
}

/* Form focus */
.form-control:focus,
.form-select:focus {
  border-color: var(--theme-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(5, 172, 169, 0.2) !important;
}

/* Top header strip: thin red line, like logo's accent */
.header-top {
  border-bottom: 2px solid var(--theme-color-red);
}

/* Hero welcome tag -> red pill */
.hero-section .hero-single .hero-content .hero-sub-title {
  background: #AC0508 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}


/*=============================================================================
  FIXES: hero tag spacing, mobile header, mobile "Why Choose" grid, FAQ colours
=============================================================================*/

/* ---- Hero welcome tag: more breathing room (all screens) ---- */
.hs-1 .hero-single .hero-content .hero-sub-title,
.hero-section .hero-single .hero-content .hero-sub-title {
  padding: 12px 30px !important;
  line-height: 1.5 !important;
  border-radius: 50px !important;
  letter-spacing: 1.6px !important;
  font-size: 13.5px !important;
  white-space: nowrap !important;
  margin-bottom: 22px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ---- Mobile / tablet ---- */
@media all and (max-width: 991px) {

  /* Compact header: logo bigger, no wasted white space */
  .header .navbar,
  .header.hd-1 .navbar {
    padding: 0 !important;
    min-height: 0 !important;
  }

  .header .navbar>.container,
  .header.hd-1 .navbar>.container,
  .navbar.fixed-top>.container {
    margin-top: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .header .navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
  }

  .header .navbar-brand img,
  .header.hd-1 .navbar-brand img,
  .navbar-brand img {
    height: 64px !important;
    max-height: 64px !important;
    width: auto !important;
    max-width: 200px !important;
  }

  .header .navbar-brand {
    height: auto !important;
  }

  .header .navbar-toggler {
    padding: 6px 4px !important;
  }

  /* Hero tag on mobile */
  .hs-1 .hero-single .hero-content .hero-sub-title,
  .hero-section .hero-single .hero-content .hero-sub-title,
  .hero-content .hero-sub-title {
    display: block !important;
    white-space: normal !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 11.5px !important;
    letter-spacing: 1.2px !important;
    line-height: 1.6 !important;
    border-radius: 18px !important;
    margin-bottom: 18px !important;
    text-align: center !important;
  }

  .hero-single {
    padding: 40px 0 40px 0 !important;
  }
}

/* ---- "Why choose" 4 points: 2 x 2 card grid on mobile ---- */
@media all and (max-width: 767px) {
  .choose-area2 .choose-content .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
  }

  .choose-area2 .choose-content .row>.col-md-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .choose-area2 .choose-content .row>.col-lg-12 {
    display: none !important;
  }

  .choose-area2 .choose-item {
    position: relative;
    height: 100%;
    margin: 0 !important;
    padding: 16px 12px 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(5, 172, 169, 0.25) !important;
    border-top: 3px solid #AC0508 !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(14, 37, 36, 0.06) !important;
  }

  .choose-area2 .choose-item .count {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #05ACA9 !important;
    opacity: 1 !important;
  }

  .choose-area2 .choose-item .icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    border-radius: 50% !important;
    background: var(--theme-color-dark, #0e2524) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    box-shadow: 0 4px 10px rgba(14, 37, 36, 0.15) !important;
  }

  .choose-area2 .choose-item .icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .choose-area2 .choose-item .info h4 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
  }

  .choose-area2 .choose-item .info p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }
}

@media all and (max-width: 340px) {
  .choose-area2 .choose-content .row>.col-md-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* ---- FAQ colours: white cards, teal "?" icon, RED only for the open item (Home & Service Pages) ---- */
.faq-area.medax-light-section .accordion-item,
.sd-faq .accordion-item {
  background: #ffffff !important;
  border: 1px solid rgba(5, 172, 169, 0.25) !important;
  border-radius: 15px !important;
  margin-bottom: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 12px rgba(14, 37, 36, 0.04) !important;
  transition: all 0.3s ease !important;
}

.faq-area.medax-light-section .accordion-item:last-child,
.sd-faq .accordion-item:last-child {
  margin-bottom: 0 !important;
}

.faq-area.medax-light-section .accordion-button,
.sd-faq .accordion-button {
  background: #ffffff !important;
  color: #0e2524 !important;
  font-family: var(--heading-font, 'Montserrat', sans-serif) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  transition: all 0.3s ease !important;
}

.faq-area .accordion-button span,
.sd-faq .accordion-button span {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.faq-area .accordion-button span i,
.sd-faq .accordion-button span i {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 50% !important;
  background: var(--theme-color, #05ACA9) !important;
  text-align: center !important;
  color: #ffffff !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}

.faq-area .accordion-button::after,
.sd-faq .accordion-button::after {
  content: "107" !important;
  background: none !important;
  background-image: none !important;
  color: #05ACA9 !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  font-family: "Font Awesome 6 pro", "Font Awesome 6 Free", "FontAwesome" !important;
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: 3px !important;
  transform: none !important;
  transition: transform 0.3s ease, color 0.3s ease !important;
  flex-shrink: 0 !important;
}

.faq-area.medax-light-section .accordion-button:not(.collapsed),
.sd-faq .accordion-button:not(.collapsed) {
  background: #fdf1f1 !important;
  color: #AC0508 !important;
  box-shadow: none !important;
}

.faq-area .accordion-button:not(.collapsed)::after,
.sd-faq .accordion-button:not(.collapsed)::after {
  color: #AC0508 !important;
  transform: rotate(-180deg) !important;
}

.faq-area .accordion-button:not(.collapsed) span i,
.sd-faq .accordion-button:not(.collapsed) span i {
  background: #AC0508 !important;
  color: #ffffff !important;
}

.faq-area .accordion-item:has(.accordion-button:not(.collapsed)),
.sd-faq .accordion-item:has(.accordion-button:not(.collapsed)),
.faq-area .accordion-item.active,
.sd-faq .accordion-item.active {
  border-color: #AC0508 !important;
}

.faq-area.medax-light-section .accordion-body,
.sd-faq .accordion-body {
  background: #fdf1f1 !important;
  color: #0e2524 !important;
  border-top: 1px solid rgba(172, 5, 8, 0.15) !important;
  padding: 16px 20px 20px 20px !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* ==========================================================================
   Site Breadcrumb Banner Standard (matches about.php)
   ========================================================================== */
.site-breadcrumb {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  padding-top: 300px !important;
  padding-bottom: 100px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  min-height: 420px !important;
}

.site-breadcrumb::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  z-index: 1 !important;
}

.site-breadcrumb .container {
  position: relative !important;
  z-index: 2 !important;
}

.site-breadcrumb .breadcrumb-title {
  color: #ffffff !important;
  font-family: var(--heading-font, 'Montserrat', sans-serif) !important;
  font-size: 38px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  text-transform: capitalize !important;
}

.site-breadcrumb .breadcrumb-menu {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-breadcrumb .breadcrumb-menu li {
  display: inline-block !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

.site-breadcrumb .breadcrumb-menu li a {
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.site-breadcrumb .breadcrumb-menu li a:hover {
  color: var(--theme-color, #05ACA9) !important;
}

.site-breadcrumb .breadcrumb-menu li.active {
  color: var(--theme-color, #05ACA9) !important;
}

@media (max-width: 991px) {
  .site-breadcrumb {
    padding-top: 180px !important;
    padding-bottom: 80px !important;
  }

  .site-breadcrumb .breadcrumb-title {
    font-size: 28px !important;
  }
}





/*=============================================================================
  FOOTER - mobile / tablet responsive  (standard 28px rhythm, 15px side gutter)
=============================================================================*/
@media all and (max-width: 991px) {
  .footer-area {
    padding-bottom: 16px !important;
    overflow: hidden;
  }

  .footer-widget .container,
  .footer-area>.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .footer-widget-wrap {
    padding-bottom: 0 !important;
  }

  /* ---- Contact card: logo, then Call Us + Mail Us in ONE row ---- */
  .footer-contact {
    display: block !important;
    padding: 18px 15px !important;
    margin: 0 0 28px 0 !important;
    border-radius: 18px !important;
  }

  .footer-contact .navbar-brand {
    display: inline-flex !important;
    height: auto !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
  }

  .footer-contact .navbar-brand img {
    height: 72px !important;
    max-width: 190px !important;
    background: #ffffff;
    border-radius: 12px;
    padding: 4px 8px;
  }

  .footer-contact-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100%;
  }

  .footer-contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    align-self: stretch;
    justify-content: flex-start !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
  }

  .footer-contact-item .icon {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 17px !important;
    flex: 0 0 auto;
  }

  .footer-contact-item .content {
    line-height: 1.5 !important;
    min-width: 0;
    width: 100%;
  }

  .footer-contact-item .content h5 {
    font-size: 14px !important;
    margin: 0 0 4px 0 !important;
    opacity: .85;
  }

  .footer-contact-item .content a {
    font-size: 13px !important;
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
  }

  .footer-contact-item .content a[href^="mailto:"] {
    font-size: 12px !important;
    line-height: 1.4 !important;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  /* ---- Columns: everything stacked on its own line, same 28px gap ---- */
  .footer-widget-wrap .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    row-gap: 28px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .footer-widget-wrap .row>* {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
  }

  .footer-widget-box {
    margin: 0 !important;
  }

  .footer-widget-box.about-us {
    margin-right: 0 !important;
  }

  .footer-widget-box p {
    padding-right: 0 !important;
    margin: 0 !important;
  }

  .footer-widget-box.about-us p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .footer-social-box {
    margin-top: 20px !important;
  }

  .footer-social-box h4 {
    font-size: 17px !important;
    margin: 0 !important;
  }

  .footer-social {
    margin-top: 12px !important;
    gap: 12px !important;
  }

  .footer-widget-title {
    font-size: 19px !important;
    margin: 0 0 18px 0 !important;
    padding-bottom: 10px !important;
  }

  /* ---- Link lists ---- */
  .footer-list {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .footer-list li {
    margin: 0 0 12px 0 !important;
  }

  .footer-list li:last-child {
    margin-bottom: 0 !important;
  }

  .footer-list li a {
    display: flex !important;
    align-items: flex-start;
    margin-left: 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .footer-list li a i {
    display: none !important;
  }

  .footer-list li a::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin: 7px 10px 0 0;
    border-radius: 50%;
    background: #05ACA9;
  }

  /* ---- Map ---- */
  .footer-map {
    width: 100%;
  }

  .footer-map iframe {
    display: block;
    width: 100% !important;
    height: 220px !important;
    border-radius: 14px !important;
  }

  /* ---- Copyright ---- */
  .copyright {
    padding: 18px 0 !important;
    margin-top: 28px !important;
  }

  .copyright-text {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }
}

/* Very small phones (under 360px): Call Us / Mail Us stack */
@media all and (max-width: 359px) {
  .footer-contact-wrap {
    grid-template-columns: 1fr !important;
  }
}

/*=============================================================================
  COMPREHENSIVE FIXES — All reported issues (Nov 2026)
=============================================================================*/

/* ---- FIX 1: About-Experience Badge Icon (Multi-Speciality) ----
   style.css hides .about-experience .icon at max-width 1199px.
   We override to always show it on ALL screen sizes, using flex centering
   for <i> FontAwesome icons (not just <img>) */
.about-experience .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  line-height: 1 !important;
  background: #ffffff !important;
  border-radius: 24px !important;
}

.about-experience .icon i {
  font-size: 36px !important;
  color: var(--theme-color-red) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1 !important;
}

/* On desktop (>1199px), the experience block wraps oddly - keep it flex row */
@media all and (min-width: 992px) {
  .about-experience {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* ---- FIX 2: Service card hover — icon MUST stay visible (white circle fix) ----
   When hovered, .service-icon::before scales to full size (white circle) but
   the <i> tag must stay on top of it with z-index */
.service-icon {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.service-icon i,
.service-icon img {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* On hover: icon (i) turns to theme color so it's visible on white ::before */
.service-item:hover .service-icon i {
  color: var(--theme-color-red) !important;
  z-index: 3 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Keep ::before the white circle (from theme) */
.service-item:hover .service-icon::before {
  opacity: 1 !important;
  transform: scale(1) !important;
  background: #ffffff !important;
  z-index: 2 !important;
}

/* ---- FIX 3: Mobile header — zero gap between header and hero ----
   The navbar itself has height auto but on some phones there is residual
   margin/padding from .main-navigation */
@media all and (max-width: 991px) {
  .main-navigation {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Logo size on mobile — matches Medax logo aspect ratio */
  .navbar-brand img,
  .header .navbar-brand img,
  .header.hd-1 .navbar-brand img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
    max-width: 160px !important;
  }

  /* Hero section: start exactly where header ends — no gap */
  .hero-section.hs-1,
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 2nd hero button: white bg, dark text — ensure text is visible */
  .hero-btn .theme-btn2,
  .hero-btn a.theme-btn2 {
    background: #ffffff !important;
    color: #0e2524 !important;
    border: 2px solid #ffffff !important;
    min-width: 150px !important;
    justify-content: center !important;
  }

  .hero-btn .theme-btn2 i,
  .hero-btn a.theme-btn2 i {
    color: var(--theme-color-red) !important;
  }
}

/* ---- FIX 4: hero-sub-title pill — fix cropping on small screens ----
   On very small screens (375px) the long text overflows. Allow wrap. */
@media all and (max-width: 480px) {

  .hero-content .hero-sub-title,
  .hs-1 .hero-single .hero-content .hero-sub-title,
  .hero-section .hero-single .hero-content .hero-sub-title {
    white-space: normal !important;
    font-size: 10.5px !important;
    padding: 10px 16px !important;
    letter-spacing: 1px !important;
    line-height: 1.55 !important;
    border-radius: 14px !important;
    text-align: center !important;
  }
}

/* ---- FIX 5: Service page breadcrumb — ensure image covers fully ----
   The style attribute uses background: url(...) without cover/center,
   so we enforce it here */
.site-breadcrumb[style*="background: url"],
.site-breadcrumb[style*="background:url"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ---- FIX 6: Breadcrumb mobile — reduce excessive padding ---- */
@media (max-width: 991px) {
  .site-breadcrumb {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
    min-height: 300px !important;
  }

  .site-breadcrumb .breadcrumb-title {
    font-size: 26px !important;
  }

  .site-breadcrumb .breadcrumb-menu li {
    font-size: 14px !important;
  }
}

/* ---- FIX 7: About mobile — text first, image second (order classes) ----
   col-lg-6.order-2.order-lg-1 = image; col-lg-6.order-1.order-lg-2 = text
   On mobile: order-1 appears first (text ✅), order-2 appears second (image ✅) */
@media all and (max-width: 991px) {
  .about-area>.container>.row {
    display: flex !important;
    flex-direction: column !important;
  }

  .about-area>.container>.row>.order-1 {
    order: 1 !important;
  }

  .about-area>.container>.row>.order-2 {
    order: 2 !important;
  }

  /* Keep 2-column image collage side-by-side on mobile, exactly like laptop view */
  .about-area .about-left .about-img {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-area .about-left .about-img>.row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .about-area .about-left .about-img .col-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .about-area .about-left .about-img .img-1 img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 120px 120px 0 120px !important;
  }

  .about-area .about-left .about-img .img-2 img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 120px 120px 120px !important;
  }

  /* About experience badge on mobile: compact horizontal card inside col-6 */
  .about-area.medax-dark-section .about-experience {
    border-radius: 16px !important;
    padding: 12px 10px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
  }

  .about-area.medax-dark-section .about-experience .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .about-area.medax-dark-section .about-experience .icon i {
    font-size: 18px !important;
    color: var(--theme-color-red) !important;
  }

  .about-area.medax-dark-section .about-experience .content h4 {
    font-size: 16px !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
    color: #ffffff !important;
  }

  .about-area.medax-dark-section .about-experience .content p {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
}

/* ---- FIX 8: Email link in header — fix space in email ---- */
/* (handled in HTML; no CSS needed) */

/* ---- FIX 9: service-item on hover — entire card background fix ----
   The red override at line ~1920 sets .service-item:hover to red,
   but the medax-theme.css earlier set it to #0e2524. The brand-color
   block at the bottom already overrides to red. Keep consistent. */
.service-item:hover {
  background: var(--theme-color-red) !important;
}

/* ---- FIX 10: Laptop view service cards — ensure icon stays teal circle bg ----
   On desktop hover, the icon background (the circle behind) turns white,
   and the icon <i> should turn red. */
@media all and (min-width: 992px) {
  .service-item:hover .service-icon {
    background: var(--theme-color-red) !important;
  }

  .service-item:hover .service-icon::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: inherit !important;
    z-index: 1 !important;
    transform: scale(1) !important;
  }

  .service-item:hover .service-icon i {
    color: var(--theme-color-red) !important;
    z-index: 3 !important;
  }
}

/* ==========================================================================
   24/7 EMERGENCY CARE SECTION ENHANCEMENT
   ========================================================================== */
.emergency-area.medax-light-section {
  background: #f4faf8 !important;
  padding-top: 60px !important;
  padding-bottom: 70px !important;
}

.emergency-area .emergency-wrap {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 44px 48px !important;
  border: 1px solid rgba(14, 37, 36, 0.08) !important;
  border-top: 4px solid var(--theme-color-red, #ac0508) !important;
  border-left: none !important;
  box-shadow: 0 16px 45px rgba(14, 37, 36, 0.07) !important;
  position: relative !important;
  overflow: hidden !important;
}

.emergency-area .emergency-tagline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: var(--theme-color-red, #ac0508) !important;
  background: rgba(172, 5, 8, 0.08) !important;
  border: 1px solid rgba(172, 5, 8, 0.2) !important;
  padding: 6px 16px !important;
  border-radius: 50px !important;
  margin-bottom: 12px !important;
}

.emergency-area .emergency-small-title {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: var(--theme-color, #0f766e) !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
}

.emergency-area .emergency-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--theme-color-dark, #0e2524) !important;
  margin-bottom: 16px !important;
}

.emergency-area .emergency-text {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #4a5568 !important;
  margin-bottom: 12px !important;
}

.emergency-area .emergency-list-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--theme-color-dark, #0e2524) !important;
  margin-top: 18px !important;
  margin-bottom: 14px !important;
}

.emergency-area .emergency-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px 20px !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  list-style: none !important;
}

.emergency-area .emergency-list li {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.emergency-area .emergency-list li i {
  color: var(--theme-color, #0f766e) !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
}

.emergency-area .emergency-bottom {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(14, 37, 36, 0.08) !important;
}

.emergency-area .emergency-helpline {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.emergency-area .emergency-helpline .icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--theme-color-dark, #0e2524) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}

.emergency-area .emergency-helpline:hover .icon {
  background: var(--theme-color-red, #ac0508) !important;
  transform: scale(1.05) !important;
}

.emergency-area .emergency-helpline .info span {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #718096 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
}

.emergency-area .emergency-helpline .info a {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--theme-color-red, #ac0508) !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.emergency-area .emergency-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
  position: relative !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(14, 37, 36, 0.1) !important;
  display: flex !important;
}

.emergency-area .emergency-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 18px !important;
  transition: transform 0.4s ease !important;
}

.emergency-area .emergency-img:hover img {
  transform: scale(1.03) !important;
}

/* Mobile responsive for Emergency Area */
@media all and (max-width: 991.98px) {
  .emergency-area .emergency-wrap {
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }

  .emergency-area .emergency-title {
    font-size: 24px !important;
  }

  .emergency-area .emergency-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .emergency-area .emergency-img {
    min-height: 240px !important;
    max-height: 300px !important;
    margin-top: 20px !important;
  }

  .emergency-area .emergency-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .emergency-area .emergency-bottom .theme-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   FIX: Contact Info Address Icon Perfect Circle & Vertical Alignment
   ========================================================================== */
.contact-info {
  display: flex !important;
  align-items: center !important;
  border-radius: 40px !important;
}

.contact-info .icon {
  width: 55px !important;
  height: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
  min-height: 55px !important;
  max-height: 55px !important;
  flex: 0 0 55px !important;
  align-self: center !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: normal !important;
  background: var(--theme-color) !important;
  box-sizing: border-box !important;
}

.contact-info .icon img {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   SERVICE MEGA MENU DROPDOWN (14 SERVICES)
   ========================================================================== */

/* Navbar Service dropdown item */
.navbar .service-mega-dropdown {
  position: relative;
}

/* Remove default Bootstrap dropdown toggle caret */
.navbar .service-mega-dropdown .dropdown-toggle::after {
  display: none !important;
}

/* Custom chevron icon */
.navbar .service-mega-dropdown .dropdown-chevron {
  font-size: 11px !important;
  margin-left: 5px !important;
  display: inline-block !important;
  transition: transform 0.25s ease, color 0.25s ease !important;
  vertical-align: middle !important;
}

.navbar .service-mega-dropdown:hover .dropdown-chevron,
.navbar .service-mega-dropdown.show .dropdown-chevron {
  transform: rotate(180deg) !important;
  color: var(--theme-color-red) !important;
}

/* Desktop styles (>= 992px) */
@media all and (min-width: 992px) {
  .navbar .service-mega-dropdown {
    position: static !important;
  }

  .navbar .service-mega-dropdown .service-mega-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(14px) !important;
    top: calc(100% + 16px) !important;
    width: 1060px !important;
    max-width: 94vw !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 28px 32px !important;
    border: 1px solid rgba(14, 37, 36, 0.08) !important;
    box-shadow: 0 20px 50px rgba(14, 37, 36, 0.16), 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease !important;
    z-index: 1050 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Invisible bridge to keep hover alive between nav link and dropdown */
  .navbar .service-mega-dropdown .service-mega-menu::before {
    content: "" !important;
    position: absolute !important;
    top: -24px !important;
    left: 0 !important;
    right: 0 !important;
    height: 24px !important;
    background: transparent !important;
    display: block !important;
    z-index: 1051 !important;
  }

  /* Reveal on hover */
  .navbar .service-mega-dropdown:hover .service-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* Mega menu column layout & typography */
.navbar .service-mega-menu .service-mega-inner {
  width: 100%;
}

.navbar .service-mega-menu .service-mega-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.navbar .service-mega-menu .service-mega-col ul li {
  border: none !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
}

.navbar .service-mega-menu .service-mega-col ul li:last-child {
  margin-bottom: 0 !important;
}

/* Individual service link */
.navbar .service-mega-menu .service-mega-item {
  display: block !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #1f2d2d !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: transparent !important;
  white-space: normal !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

/* Remove default template's ::before '//' indicator */
.navbar .service-mega-menu .service-mega-item::before {
  display: none !important;
  content: none !important;
}

/* Hover effect on service item */
.navbar .service-mega-menu .service-mega-item:hover,
.navbar .service-mega-menu .service-mega-item:focus {
  color: var(--theme-color-red, #ac0508) !important;
  background: rgba(172, 5, 8, 0.05) !important;
  transform: translateX(4px) !important;
  padding-left: 14px !important;
}

/* Active service item */
.navbar .service-mega-menu .service-mega-item.active {
  color: var(--theme-color-red, #ac0508) !important;
  font-weight: 600 !important;
  background: rgba(172, 5, 8, 0.08) !important;
}

/* Mobile responsive drawer styles (< 992px) */
@media all and (max-width: 991.98px) {
  .navbar .service-mega-dropdown .service-mega-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #f7fbf9 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(14, 37, 36, 0.08) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 8px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    display: none;
  }

  .navbar .service-mega-dropdown .service-mega-menu.show {
    display: block !important;
  }

  .navbar .service-mega-menu .service-mega-item {
    font-size: 13.5px !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    color: #1a2e2d !important;
  }

  .navbar .service-mega-menu .service-mega-item:hover,
  .navbar .service-mega-menu .service-mega-item:active {
    color: var(--theme-color-red, #ac0508) !important;
    background: rgba(172, 5, 8, 0.08) !important;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL, WHATSAPP, COLLECTCHAT)
   ========================================================================== */
.floating-buttons {
  position: fixed !important;
  right: 30px !important;
  bottom: 155px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  pointer-events: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.float-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #ffffff !important;
  font-size: 24px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  cursor: pointer !important;
  position: relative !important;
}

.float-btn.call-btn {
  background: #2196f3 !important;
}

.float-btn.whatsapp-btn {
  background: #25d366 !important;
}

.float-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .floating-buttons {
    right: 18px !important;
    bottom: 145px !important;
    gap: 10px !important;
  }

  .float-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 22px !important;
  }
}






/* Doctor Book Appointment Hover Button */
.team-item .team-content .team-social a.doctor-appointment-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;

    width: auto !important;
    min-width: 200px;
    height: auto !important;

    padding: 7px 10px !important;

    background: #c40000 !important;
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    border: none !important;
    border-radius: 50px !important;

    text-decoration: none !important;
    white-space: nowrap;

    transition: all 0.3s ease;
}

/* Button Icon */
.team-item .team-content .team-social a.doctor-appointment-btn i {
    font-size: 17px;
    color: #c40000 !important;
    background: #ffffff;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
}

/* Button Hover */
.team-item .team-content .team-social a.doctor-appointment-btn:hover {
    background: #9e0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   OUR MEDICAL EXPERTISE - RESPONSIVE SERVICE CARDS (index.php & service.php)
   Desktop (>= 992px): Fixed 566px height for equal grid alignment
   Mobile (< 992px): Natural compact height without empty space gaps
   ========================================================================== */

/* Base common layout */
.service-item {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.service-item .service-icon {
  flex-shrink: 0 !important;
}

.service-item .service-content h4 a {
  display: block !important;
  line-height: 1.3 !important;
}

.service-item .service-content .service-img {
  width: 220px !important;
  height: 120px !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
}

.service-item .service-content .service-bottom {
  border-top: 1px solid var(--border-info-color) !important;
  flex-shrink: 0 !important;
}

.service-item:hover .service-content .service-bottom {
  border-top-color: rgba(255, 255, 255, 0.25) !important;
}

/* --- Laptop / Desktop View (>= 992px): Exact 566px Height --- */
@media (min-width: 992px) {
  .service-item {
    height: 566px !important;
    min-height: 566px !important;
    max-height: 566px !important;
  }

  .service-item .service-icon {
    margin-bottom: 22px !important;
  }

  .service-item .service-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: calc(100% - 82px) !important;
  }

  .service-item .service-content h4 {
    min-height: 54px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  .service-item .service-content p {
    min-height: 72px !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
  }

  .service-item .service-content .service-img {
    margin-top: auto !important;
    margin-bottom: 18px !important;
  }

  .service-item .service-content .service-bottom {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
}

/* --- Mobile / Tablet View (< 992px): Natural compact height, NO empty space gap --- */
@media (max-width: 991.98px) {
  .service-item {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }

  .service-item .count {
    right: 20px !important;
    top: 22px !important;
    font-size: 18px !important;
  }

  .service-item .service-icon {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    margin-bottom: 14px !important;
  }

  .service-item .service-content {
    display: block !important;
    height: auto !important;
    flex: none !important;
  }

  .service-item .service-content h4 {
    min-height: auto !important;
    font-size: 18px !important;
    margin-bottom: 8px !important;
    display: block !important;
  }

  .service-item .service-content p {
    min-height: auto !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }

  .service-item .service-content .service-img {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
    width: 200px !important;
    height: 110px !important;
  }

  .service-item .service-content .service-bottom {
    margin-top: 0 !important;
    padding-top: 14px !important;
  }
}


/* ==========================================================================
   PATIENT TESTIMONIALS - EQUAL HEIGHT CARDS (index.php)
   ========================================================================== */
.testimonial-slider .owl-stage {
  display: flex !important;
  align-items: stretch !important;
}

.testimonial-slider .owl-item {
  display: flex !important;
  flex: 0 0 auto !important;
  height: auto !important;
}

.testimonial-slider .testimonial-item.medax-testi,
.testimonial-slider .testimonial-item {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.testimonial-slider .testimonial-item .content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  width: 100% !important;
}

.testimonial-slider .testimonial-item .quote {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 20px !important;
}

.testimonial-slider .testimonial-item .quote p {
  flex: 1 1 auto !important;
  margin-bottom: 0 !important;
  line-height: 1.65 !important;
}

.testimonial-slider .testimonial-item .author {
  margin-top: auto !important;
  padding-top: 25px !important;
  border-top: 1px solid var(--border-info-color) !important;
}

@media (max-width: 991.98px) {
  .testimonial-slider .testimonial-item .author {
    padding-top: 18px !important;
    margin-top: auto !important;
  }
}


/* ==========================================================================
   OUR WORKING PROCESS - EQUAL HEIGHT CARDS (index.php)
   ========================================================================== */
.process-area .row.g-4 > [class*="col-"] {
  display: flex !important;
}

.process-area .process-item {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-radius: 35px 35px 35px 0 !important;
  padding: 35px 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
}

.process-area .process-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22) !important;
}

.process-area .process-item .count {
  position: absolute !important;
  right: 28px !important;
  top: 35px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--color-dark, #0e2524) !important;
  border: 1px solid var(--border-info-color, rgba(0, 0, 0, 0.1)) !important;
  padding: 4px 14px !important;
  border-radius: 50px !important;
  background: #f7fcfb !important;
}

.process-area .process-item .icon {
  flex-shrink: 0 !important;
  width: 62px !important;
  height: 62px !important;
  line-height: 58px !important;
  background: var(--theme-color2, #0e2524) !important;
  border-radius: 50% !important;
  text-align: center !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.process-area .process-item .icon img {
  width: 28px !important;
  height: auto !important;
  filter: brightness(0) invert(1) !important;
}

.process-area .process-item .content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}

.process-area .process-item .content h4 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--color-dark, #0e2524) !important;
  margin-bottom: 12px !important;
  min-height: 54px !important;
  display: flex !important;
  align-items: flex-start !important;
}

.process-area .process-item .content p {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: var(--body-text-color, #4f6362) !important;
  margin-bottom: 0 !important;
  flex: 1 1 auto !important;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .process-area .process-item {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  .process-area .process-item .count {
    right: 16px !important;
    top: 20px !important;
    font-size: 11.5px !important;
    padding: 2px 10px !important;
  }

  .process-area .process-item .icon {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    margin-bottom: 16px !important;
  }

  .process-area .process-item .icon img {
    width: 22px !important;
  }

  .process-area .process-item .content h4 {
    font-size: 17px !important;
    min-height: auto !important;
    margin-bottom: 8px !important;
  }

  .process-area .process-item .content p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
}


/* ==========================================================================
   DOCTOR CARDS - UNIFIED OVERLAY CARD HEIGHT & COMPACT TYPOGRAPHY
   ========================================================================== */
.team-item {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

.team-item .team-img img {
  border-radius: 20px !important;
  width: 100% !important;
  display: block !important;
}

/* Frosted Glass Overlay Card - Unified Equal Height */
.team-item .team-content {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 15px !important;
  text-align: center !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.35s ease !important;
  box-sizing: border-box !important;
}

/* Reduced & Balanced Text Sizes */
.team-item .team-content h4 {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-bottom: 3px !important;
  color: var(--color-dark, #0e2524) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.team-item .team-content span {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0e2524 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  margin-bottom: 2px !important;
}

.team-item .team-content .doctor-qualification {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #555555 !important;
  line-height: 1.25 !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

/* Hover Expansion for Book Appointment Button */
.team-item:hover .team-content {
  height: 162px !important;
  min-height: 162px !important;
  max-height: 162px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.team-item .team-content .team-social {
  margin-top: 0 !important;
  margin-bottom: -45px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.team-item:hover .team-content .team-social {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile / Tablet Responsiveness */
@media (max-width: 991.98px) {
  .team-item .team-content {
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    padding: 8px 10px !important;
  }

  .team-item .team-content h4 {
    font-size: 15px !important;
    margin-bottom: 2px !important;
  }

  .team-item .team-content span {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .team-item .team-content .doctor-qualification {
    font-size: 10px !important;
    margin-top: 2px !important;
  }

  .team-item:hover .team-content {
    height: 156px !important;
    min-height: 156px !important;
    max-height: 156px !important;
  }

  .team-item .team-content .team-social a.doctor-appointment-btn {
    min-width: 170px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}
