/*
Theme Name: Serenecare
Theme URI: https://serenecare.online/
Author: Whiteraysoft Technologies
Author URI: https://serenecare.online/
Description: Compassionate Elder Care Services in Massachusetts – Custom theme for Serenecare Inc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serenecare
Tags: elder-care, healthcare, one-column, two-columns, custom-menu, featured-images
*/

/* ================================================
   Custom Theme Styles (from inline <style> blocks)
   ================================================ */

/* Lazy Loading */
.lazyload,
.lazyloading {
  max-width: 100%;
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 400ms;
  transition-delay: 0ms;
}

.lazyload,
.lazyloading {
  --smush-placeholder-width: 100px;
  --smush-placeholder-aspect-ratio: 1/1;
  width: var(--smush-image-width, var(--smush-placeholder-width)) !important;
  aspect-ratio: var(--smush-image-aspect-ratio, var(--smush-placeholder-aspect-ratio)) !important;
}

.no-js img.lazyload {
  display: none;
}

figure.wp-block-image img.lazyloading {
  min-width: 150px;
}

/* Footer logo */
footer img.footer {
  width: 20% !important;
  aspect-ratio: auto !important;
}

/* Dropdown menu */
.dropdown-menu>li>a {
  padding-left: 10px;
  padding-right: 15px;
  font-size: 13px;
}

/* Background theme color */
.bgth {
  background-color: #40D0C6;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ================================================
   Hero Carousel — Professional Left-Side Layout
   ================================================ */

/* Left-to-right overlay: dark on left (text), clear on right (image) */
#header-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(1, 38, 34, 0.90) 0%,
      rgba(1, 38, 34, 0.78) 42%,
      rgba(1, 38, 34, 0.18) 68%,
      rgba(1, 38, 34, 0.0) 100%);
  z-index: 0;
}

/*
 * .carousel-caption has Bootstrap class "flex-column"
 * so: main axis = vertical (justify-content), cross axis = horizontal (align-items)
 * Desktop: align-items: flex-start = push LEFT, justify-content: center = vertically centered
 */
#header-carousel .carousel-caption {
  z-index: 1;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  /* horizontal → left */
  justify-content: center !important;
  /* vertical → center */
}

/* Text block: occupies left ~48%, with left padding */
#header-carousel .widt {
  min-width: 0 !important;
  width: 48% !important;
  max-width: 580px !important;
  padding: 0 32px 0 60px !important;
  text-align: left !important;
}

/* Badge pill */
#header-carousel p.td1 {
  display: inline-block !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: #40d0c6 !important;
  border: 1px solid #40d0c6 !important;
  border-radius: 50px !important;
  padding: 6px 18px !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 0 18px 0 !important;
  float: none !important;
  background: rgba(64, 208, 198, 0.12) !important;
}

/* Hero heading */
#header-carousel h2.display-1 {
  display: block !important;
  font-family: "Poppins", sans-serif !important;
  font-size: clamp(26px, 3.6vw, 56px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  text-align: left !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.5px !important;
}

#header-carousel h2.display-1 span {
  color: #40d0c6 !important;
}

/* Decorative divider image — hidden inside carousel */
#header-carousel img.fe {
  display: none !important;
}

/* Body text */
#header-carousel p.td:not(.td1) {
  font-family: "Poppins", sans-serif !important;
  font-size: clamp(13px, 1.3vw, 15px) !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-align: left !important;
  line-height: 1.8 !important;
  max-width: 440px !important;
  margin: 0 0 28px 0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3) !important;
}

/* CTA button — left-aligned */
#header-carousel a.btn2 {
  display: inline-block !important;
  float: none !important;
  position: static !important;
  background: #40d0c6 !important;
  color: #012622 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 6px 24px rgba(64, 208, 198, 0.35) !important;
  transition: background 0.25s, color 0.25s, transform 0.2s !important;
  margin: 0 !important;
}

#header-carousel a.btn2:hover {
  background: #fff !important;
  color: #012622 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(64, 208, 198, 0.4) !important;
}

/* Slide image height */
#header-carousel img.b {
  height: 620px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Carousel arrows */
#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
  width: 48px !important;
  opacity: 0.75 !important;
  z-index: 2 !important;
}

/* ================================================
   Hero Carousel — Tablet (768–991px)
   Slightly wider text block
   ================================================ */
@media screen and (min-width: 768px) and (max-width: 991px) {
  #header-carousel .widt {
    width: 60% !important;
    padding: 0 24px 0 40px !important;
  }

  #header-carousel h2.display-1 {
    font-size: clamp(26px, 4vw, 40px) !important;
  }
}

/* ================================================
   Hero Carousel — Mobile (≤767px): centered layout
   ================================================ */
@media screen and (max-width: 767px) {

  /* Full tint overlay on mobile */
  #header-carousel .carousel-item::after {
    background: rgba(1, 38, 34, 0.68) !important;
  }

  /* Center everything on mobile */
  #header-carousel .carousel-caption {
    align-items: center !important;
    /* horizontal → center */
    justify-content: center !important;
  }

  #header-carousel img.b {
    height: 580px !important;
    object-position: center top !important;
  }

  #header-carousel .widt {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 24px !important;
    text-align: center !important;
  }

  #header-carousel p.td1 {
    margin: 0 auto 14px !important;
  }

  #header-carousel h2.display-1 {
    font-size: clamp(22px, 7vw, 32px) !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }

  #header-carousel p.td:not(.td1) {
    font-size: 13px !important;
    line-height: 1.7 !important;
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto 20px !important;
  }

  #header-carousel a.btn2 {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto !important;
    padding: 12px 30px !important;
    font-size: 13px !important;
  }
}

/* ================================================
   Contact Page UI Improvements
   ================================================ */
.container-fluid.py-5>.container>.row.g-5 {
  align-items: stretch;
}

.bg-light.rounded.h-100.p-5 {
  background: linear-gradient(160deg, #f0fffe 0%, #e6f7f6 100%) !important;
  border-radius: 20px !important;
  border: 1px solid #c8eeeb !important;
  box-shadow: 0 10px 40px rgba(64, 208, 198, 0.10) !important;
  padding: 40px 36px !important;
}

/* ================================================
   WordPress Block Styles
   ================================================ */
.wp-block-button__link {
  color: #fff;
  background-color: #32373c;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
}

.wp-block-file__button {
  background: #32373c;
  color: #fff;
  text-decoration: none;
}

/* ================================================
   Responsive Overrides
   ================================================ */
@media screen and (max-width: 767px) {
  footer img.footer {
    width: 80% !important;
  }
}

/* Auto-sizing for responsive images */
img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

/* ================================================
   Professional UI Enhancements - Serenecare
   ================================================ */

/* ----- Global Body & Typography ----- */
body {
  font-family: "Poppins", sans-serif !important;
  color: #334343;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif !important;
}

/* ----- Sticky Navbar ----- */
nav.navbar {
  box-shadow: 0 2px 20px rgba(1, 38, 34, 0.09);
  border-bottom: 2px solid #e8f9f8;
  position: sticky;
  top: 0;
  z-index: 1300;
  background: #fff !important;
  overflow: visible !important;
}

/* Offset sticky navbar when WP admin bar is present */
.admin-bar nav.navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar nav.navbar {
    top: 46px;
  }
}

img.serlog {
  height: 60px !important;
  width: auto !important;
  aspect-ratio: auto !important;
}

.navbar-nav .nav-link,
.navbar-nav li>a {
  font-family: "Poppins", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #012622 !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s !important;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav li>a:hover,
.navbar-nav li.current-menu-item>a,
.navbar-nav li.current-page-ancestor>a {
  color: #40d0c6 !important;
  background-color: rgba(64, 208, 198, 0.08) !important;
}

.dropdown-menu {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(1, 38, 34, 0.12) !important;
  padding: 8px 0 !important;
}

.dropdown-menu>li>a {
  color: #012622 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  transition: background-color 0.15s !important;
  border-radius: 0 !important;
}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
  background-color: #f0fdfc !important;
  color: #40d0c6 !important;
}

/* PAY NOW button */
a.btn3 {
  display: inline-block;
  background: linear-gradient(135deg, #40d0c6, #2ab5ab) !important;
  color: #012622 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(64, 208, 198, 0.35) !important;
  text-transform: uppercase;
}

a.btn3:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(64, 208, 198, 0.5) !important;
  color: #012622 !important;
  text-decoration: none !important;
}

/* ----- About Section Headings ----- */
h2.about {
  font-family: "Poppins", sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #012622 !important;
  line-height: 1.3 !important;
}

h2.about span {
  color: #40d0c6 !important;
}

/* Feat/divider images */
img.feat,
img.feat2,
img.assistt {
  display: block !important;
  margin: 10px auto !important;
  width: 90px !important;
  opacity: 0.5 !important;
  aspect-ratio: auto !important;
  pointer-events: none;
}

/* ----- Services Section ----- */
section.assist {
  padding: 80px 0;
  background: #f8fffe;
}

section.assist h1 {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  color: #012622 !important;
  margin-bottom: 10px !important;
}

section.assist h1 span {
  color: #40d0c6 !important;
}

section.assist p.text-center {
  font-size: 15.5px;
  color: #5a7070;
}

/* Services slider container */
section.assist .services-slider {
  position: relative;
  padding: 0 50px;
}

/* Service card wrapper (owl-item child) */
section.assist .services-slider .owl-item>div {
  overflow: hidden;
  border-radius: 14px;
  transition: transform 0.3s;
}

section.assist .services-slider .owl-item>div:hover {
  transform: translateY(-5px);
}

img.doctor {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 14px 14px 0 0 !important;
  display: block !important;
  transition: transform 0.45s ease !important;
  aspect-ratio: auto !important;
}

section.assist .services-slider .owl-item>div:hover img.doctor {
  transform: scale(1.06);
}

.doctorr {
  background: #ffffff !important;
  border-radius: 0 0 14px 14px !important;
  padding: 22px 18px 20px !important;
  border: 1px solid #dff0ee !important;
  border-top: none !important;
  box-shadow: 0 8px 30px rgba(1, 38, 34, 0.07) !important;
  text-align: center;
}

.doctorr h3 {
  font-family: "Poppins", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #012622 !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 10px !important;
}

.doctorr p {
  font-size: 13.5px !important;
  color: #5a7070 !important;
  line-height: 1.65 !important;
}

a.btn6 {
  display: inline-block !important;
  background: transparent !important;
  border: 2px solid #40d0c6 !important;
  color: #40d0c6 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.25s !important;
  margin-top: 14px !important;
}

a.btn6:hover {
  background: #40d0c6 !important;
  color: #012622 !important;
  box-shadow: 0 4px 14px rgba(64, 208, 198, 0.35) !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

/* Services slider nav arrows */
section.assist .services-slider .owl-nav button {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid #40d0c6 !important;
  color: #40d0c6 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-shadow: 0 4px 14px rgba(1, 38, 34, 0.12) !important;
  transition: all 0.25s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

section.assist .services-slider .owl-nav button.owl-prev {
  left: 0 !important;
}

section.assist .services-slider .owl-nav button.owl-next {
  right: 0 !important;
}

section.assist .services-slider .owl-nav button:hover {
  background: #40d0c6 !important;
  color: #012622 !important;
  box-shadow: 0 6px 20px rgba(64, 208, 198, 0.4) !important;
}

section.assist .services-slider .owl-nav button span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

a.serv {
  display: block !important;
  text-align: center !important;
  width: fit-content !important;
  margin: 48px auto 0 !important;
  background: #012622 !important;
  color: #fff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 16px rgba(1, 38, 34, 0.2) !important;
}

a.serv:hover {
  background: #40d0c6 !important;
  color: #012622 !important;
  box-shadow: 0 8px 24px rgba(64, 208, 198, 0.4) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* ----- Employment Section ----- */
/* Background uses gradient.gif from assets/css/ per serenecare-combined.css */

a.btn9 {
  display: inline-block !important;
  background: #40d0c6 !important;
  color: #012622 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  box-shadow: 0 6px 20px rgba(64, 208, 198, 0.4) !important;
  margin-top: 24px !important;
}

a.btn9:hover {
  background: #fff !important;
  color: #012622 !important;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* ----- Photo Gallery Section ----- */
section.photog {
  padding: 70px 0 0 !important;
  background: #f5fefe !important;
}

/* Unify #wrap with section.photog — remove top gap, keep bottom breathing room */
#wrap {
  padding: 20px 0 70px !important;
  background: #f5fefe;
  overflow: hidden;
}

section.photog h2 {
  font-family: "Poppins", sans-serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #012622 !important;
  line-height: 1.5 !important;
  max-width: 780px;
  margin: 14px auto 0 !important;
}

section.photog h2 span {
  color: #40d0c6 !important;
}

/* Shrink the feat divider so it doesn't push the carousel down */
section.photog img.feat {
  margin: 6px auto 0 !important;
  opacity: 0.35 !important;
}

/* ----- Why Choose / Our Approach list items ----- */
.col-lg-6>ul>li {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #334343;
  padding: 7px 0;
  border-bottom: 1px solid #d9f0ee;
}

.col-lg-6>ul>li:last-child {
  border-bottom: none;
}

.col-lg-6>ul>li strong {
  color: #012622;
}

/* ----- Footer ----- */
footer {
  background: #012622 !important;
  padding: 60px 0 40px !important;
  text-align: center;
}

footer img.footer {
  filter: brightness(1.05);
}

footer .d-lg-flex.d-sm-none a,
footer ul.foot li a {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #c8e8e6 !important;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 0 12px;
  transition: color 0.2s;
}

footer ul.foot {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

footer ul.foot li a:hover {
  color: #40d0c6 !important;
}

.information {
  border-top: 1px solid rgba(64, 208, 198, 0.2);
  padding-top: 32px;
  text-align: left;
}

.phonee,
.phone {
  align-items: flex-start;
  margin-bottom: 16px;
}

.inn p {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6a9e9b !important;
  margin-bottom: 2px;
}

.inn a p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #d8f4f2 !important;
  margin-bottom: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.inn a:hover p {
  color: #40d0c6 !important;
}

.fbt {
  background: #020f0e !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #4a7472 !important;
}

/* Social icon circles — ensure proper display and icon centering */
footer i.fab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   Responsive: Mobile UI Adjustments
   ================================================ */

/* ----- Mobile Hamburger Toggler ----- */
.navbar-toggler {
  border: 2px solid #40d0c6 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  background: transparent !important;
  transition: background 0.2s !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(64, 208, 198, 0.25) !important;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2340d0c6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

@media screen and (max-width: 991px) {

  /* Navbar container — tight horizontal padding, vertically centered row */
  nav.navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  /* Logo — natural proportions, never squeezed */
  img.serlog {
    height: 44px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  /* Brand link — no shrinking, vertically centered */
  a.navbar-brand {
    flex-shrink: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    align-self: center !important;
  }

  /* Toggler — always fully visible, never clipped, vertically centered */
  .navbar-toggler {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 7px 10px !important;
    align-self: center !important;
  }

  /* Mobile menu drawer — slides in from right, below navbar */
  #navbarCollapse {
    position: fixed !important;
    top: 66px !important;  /* navbar height ~66px */
    right: 0 !important;
    bottom: 0 !important;
    width: 82vw !important;
    max-width: 320px !important;
    background: #fff !important;
    border-left: 2px solid #e0f7f5 !important;
    box-shadow: -8px 0 40px rgba(1, 38, 34, 0.22) !important;
    padding: 16px 20px 40px !important;
    overflow-y: auto !important;
    z-index: 1250 !important;
    margin: 0 !important;
    display: none;
  }

  #navbarCollapse.show {
    display: block !important;
  }

  /* Backdrop — dim the page when menu is open */
  #navbarCollapse.show::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(1, 38, 34, 0.45);
    z-index: -1;
    pointer-events: none;
  }

  /* Admin bar offset */
  .admin-bar #navbarCollapse {
    top: 98px !important;
  }

  /* Full-width nav links */
  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-link,
  .navbar-nav li > a {
    display: block !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #012622 !important;
    border-bottom: 1px solid #f0f8f7 !important;
    min-height: 48px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  .navbar-nav li:last-child > a {
    border-bottom: none !important;
  }

  /* Active / hover state */
  .navbar-nav .nav-link:hover,
  .navbar-nav li > a:hover,
  .navbar-nav .nav-link.active {
    background: #f0fffe !important;
    color: #40d0c6 !important;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 8px !important;
    background: #f4fffe !important;
    margin: 2px 0 8px 0 !important;
    padding: 4px 0 !important;
    width: 100% !important;
  }

  .dropdown-menu > li > a,
  .dropdown-menu .dropdown-item {
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #012622 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    white-space: normal !important;
    border-radius: 6px !important;
  }

  .dropdown-menu > li > a:hover,
  .dropdown-menu .dropdown-item:hover {
    background: #e0f9f7 !important;
    color: #40d0c6 !important;
  }

  /* PAY NOW button — full-width, easy to tap */
  a.btn3 {
    display: block !important;
    text-align: center !important;
    margin: 20px 0 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 22px !important;
    font-size: 14px !important;
  }

  section.assist h1 {
    font-size: 1.9rem !important;
  }
}

@media screen and (max-width: 767px) {
  h2.about {
    font-size: 1.7rem !important;
  }

  section.photog h2 {
    font-size: 1.25rem !important;
  }

  section.assist .services-slider .owl-item>div {
    margin-bottom: 20px;
  }

  /* ---- Mobile Footer Fix ---- */

  /* Reset the broken margins from serenecare-combined.css */
  footer {
    padding: 40px 0 32px !important;
  }

  footer .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  img.footer {
    width: 70% !important;
    max-width: 220px !important;
  }

  /* Social icon row */
  footer .d-flex.justify-content-center {
    gap: 16px !important;
  }

  /* Footer nav links — hide on mobile (matches original behaviour) */
  footer .d-lg-flex.d-sm-none {
    display: none !important;
  }

  /* Contact info block */
  .information {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(64, 208, 198, 0.2) !important;
  }

  /* Fix each contact row — icon + text side by side */
  .phonee,
  footer .phone {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 14px 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(64, 208, 198, 0.12) !important;
  }

  /* Override the broken icon position from serenecare-combined.css */
  footer .bi,
  footer .fa {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
  }

  /* Reset the broken .inn negative margin */
  .inn {
    margin-left: 0 !important;
    margin-top: 0 !important;
    flex: 1 !important;
  }

  .inn p {
    font-size: 11px !important;
    margin-bottom: 3px !important;
    letter-spacing: 1px !important;
  }

  .inn a p,
  .inn>p.text-white,
  .inn>p.mb-3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
  }
}

/* ================================================
   Service Detail Page
   ================================================ */
.svc-hero-banner {
  padding: 70px 0 60px;
}

.svc-hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.svc-hero-breadcrumb {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.svc-hero-breadcrumb a {
  color: #40d0c6;
  text-decoration: none;
}

.svc-hero-breadcrumb a:hover {
  color: #fff;
}

.svc-hero-breadcrumb span {
  color: rgba(255, 255, 255, 0.65);
}

.svc-hero-thumb {
  width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid rgba(64, 208, 198, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* --- Intro block --- */
.svc-detail-wrap {
  background: #f8fffe;
}

.svc-main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.svc-intro-box {
  padding-left: 20px;
}

.svc-eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #40d0c6;
  background: rgba(64, 208, 198, 0.1);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 14px;
}

.svc-main-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #012622;
  margin-bottom: 16px;
  line-height: 1.25;
}

.svc-intro-text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #4a6b68;
  line-height: 1.75;
  margin: 0;
}

/* --- Service cards --- */
.svc-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  border: 1px solid rgba(64, 208, 198, 0.18);
  box-shadow: 0 4px 18px rgba(1, 38, 34, 0.07);
  transition: transform 0.22s, box-shadow 0.22s;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(64, 208, 198, 0.18);
}

.svc-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0f877f, #40d0c6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.svc-card-icon i {
  font-size: 22px;
  color: #fff;
}

.svc-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #012622;
  margin-bottom: 12px;
}

.svc-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-card-list li {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #4a6b68;
  padding: 5px 0 5px 22px;
  position: relative;
  border-bottom: 1px solid rgba(64, 208, 198, 0.1);
  line-height: 1.5;
}

.svc-card-list li:last-child {
  border-bottom: none;
}

.svc-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  background: #40d0c6;
  border-radius: 50%;
}

/* --- Our Approach box --- */
.svc-approach-box {
  background: linear-gradient(135deg, #012622, #0f4440);
  border-radius: 16px;
  padding: 36px 40px;
}

.svc-approach-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.svc-approach-icon {
  font-size: 40px;
  color: #40d0c6;
  flex-shrink: 0;
  margin-top: 4px;
}

.svc-approach-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.svc-approach-text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin: 0;
}

/* --- CTA buttons --- */
.svc-cta-btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0f877f, #40d0c6);
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(64, 208, 198, 0.3);
}

.svc-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: #fff !important;
}

.svc-cta-outline {
  background: transparent !important;
  border: 2px solid #40d0c6;
  color: #012622 !important;
  box-shadow: none;
}

.svc-cta-outline:hover {
  background: rgba(64, 208, 198, 0.08) !important;
  color: #012622 !important;
}

/* --- Responsive --- */
@media screen and (max-width: 767px) {
  .svc-hero-title {
    font-size: 1.7rem;
  }

  .svc-intro-box {
    padding-left: 0;
  }

  .svc-approach-inner {
    flex-direction: column;
    gap: 12px;
  }

  .svc-approach-box {
    padding: 24px 20px;
  }
}

/* ================================================
   Our Services List Page
   ================================================ */
.svc-list-section {
  background: #f8fffe;
}

.svc-list-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(1, 38, 34, 0.08);
  border: 1px solid rgba(64, 208, 198, 0.15);
  transition: transform 0.22s, box-shadow 0.22s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.svc-list-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(64, 208, 198, 0.18);
}

.svc-list-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.svc-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.svc-list-card:hover .svc-list-card-img img {
  transform: scale(1.06);
}

.svc-list-card-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f877f, #40d0c6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(64, 208, 198, 0.4);
  border: 3px solid #fff;
  z-index: 2;
}

.svc-list-card-badge i {
  font-size: 18px;
  color: #fff;
}

.svc-list-card-body {
  padding: 32px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc-list-card-body h3 {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #012622;
  margin-bottom: 10px;
}

.svc-list-card-body p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #4a6b68;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}

.svc-list-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #40d0c6 !important;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: gap 0.2s, color 0.2s;
}

.svc-list-card-btn:hover {
  color: #0f877f !important;
  gap: 10px;
}

/* CTA strip */
.svc-list-cta {
  background: linear-gradient(135deg, #012622, #0f4440);
  border-radius: 16px;
  padding: 36px 40px;
}

.svc-list-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.svc-list-cta-inner h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.svc-list-cta-inner p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

@media screen and (max-width: 767px) {
  .svc-list-cta {
    padding: 24px 20px;
  }

  .svc-list-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}