.elementor-widget-image-gallery .gallery-item {
    display: flex;
    flex-direction: column;
}

.elementor-widget-image-gallery .gallery-caption {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    background: transparent !important;
    color: #333;
    padding: 10px 5px;
    font-size: 14px;
    text-align: center;
}

.clickable-card {
    position: relative;
    overflow: hidden;
}

.clickable-card .elementor-widget-html {
    position: static;
}

.clickable-card .card-link {
    position: absolute;
    inset: 0;
    z-index: 99;
    display: block;
}

/* Highlight active dropdown menu links */
.mobile-menu a:active,
.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-ancestor > a {
    color: #03989E !important;
}

/* DESKTOP SERVICE CARDS */

.services-slider {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  padding-top: 15px;
  padding-bottom: 20px;
}

.services-slider > .service-card {
  min-width: 0;
  flex: 1 1 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s ease;
  will-change: transform;
}

/* Gentle lift on hover */
@media (hover: hover) and (pointer: fine) {
  .services-slider > .service-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
    z-index: 2;
  }
}

/* MOBILE SWIPEABLE CARDS */
@media (max-width: 767px) {
  .services-slider {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 10px 16px 22px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .services-slider::-webkit-scrollbar {
    display: none;
  }

  .services-slider > .service-card {
    flex: 0 0 82% !important;
    width: 60% !important;
    max-width: 60% !important;
    min-width: 0;
    scroll-snap-align: start;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-slider > .service-card {
    transition: none;
  }
}


/* =====================================
   SERVICE CARDS - TEXT ALIGNMENT
   ===================================== */

/* Main service card */
.services-slider .service-card {
  position: relative;
}

/* Content container at bottom of card */
.services-slider .service-content {
  position: absolute;
  bottom: 25px;
  left: 20px;
  right: 20px;
  width: auto !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 12px;

  z-index: 2;
}

/* =====================================
   TITLES - CONSISTENT ALIGNMENT
   ===================================== */

.services-slider .service-title {
  height: 110px !important;
  min-height: 110px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* Actual Elementor heading text */
.services-slider
.service-title
.elementor-heading-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* =====================================
   DESCRIPTIONS - CONSISTENT ALIGNMENT
   ===================================== */

.services-slider .service-description {
  min-height: 7em;

  margin: 0 !important;
  padding: 0 !important;
}

/* Remove default paragraph margins */
.services-slider .service-description p {
  margin: 0 !important;
}

/* =====================================
   MOBILE ADJUSTMENTS
   ===================================== */

@media (max-width: 767px) {

  .services-slider .service-content {
    bottom: 20px;
    left: 15px;
    right: 15px;
    gap: 10px;
  }

  .services-slider .service-title {
    height: 100px !important;
    min-height: 100px !important;
  }

  .services-slider .service-description {
    min-height: 8em;
  }
}

/* FREE GUIDE - SCROLL ANIMATION */

.guide-animation {
  opacity: 1;
  transform: translateY(0);
}

/* Initial hidden state when JavaScript is ready */
.guide-animation.guide-ready {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(.2,.8,.2,1);
}

/* Reveal when scrolled into view */
.guide-animation.guide-ready.guide-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .guide-animation.guide-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* MODERN FAQ ACCORDION */

.modern-faq .elementor-accordion-item {
  background: #ffffff;
  border: none !important;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.035);
}

/* Question */
.modern-faq .elementor-tab-title {
  padding: 20px !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Question text */
.modern-faq .elementor-accordion-title {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  color: #273b39 !important;
  flex: 1;
}

/* Active question */
.modern-faq .elementor-tab-title.elementor-active
.elementor-accordion-title {
  color: #078f94 !important;
}

/* Plus / minus icon */
.modern-faq .elementor-accordion-icon {
  color: #078f94 !important;
  font-size: 16px;
  flex-shrink: 0;
}

/* Answer */
.modern-faq .elementor-tab-content {
  padding: 5px 20px 22px !important;
  border: none !important;
  color: #41474c;
  font-size: 15px;
  line-height: 1.7;
}

/* Answer paragraphs */
.modern-faq .elementor-tab-content p {
  margin: 0 0 14px;
}

.modern-faq .elementor-tab-content p:last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .modern-faq .elementor-tab-title {
    padding: 17px !important;
  }

  .modern-faq .elementor-accordion-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .modern-faq .elementor-tab-content {
    padding: 4px 17px 20px !important;
    font-size: 14px;
    line-height: 1.65;
  }
}


/* BEFORE & AFTER MOBILE SLIDER */

@media (max-width: 767px) {

  .before-after-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    padding: 10px 16px 20px !important;
  }

  .before-after-slider::-webkit-scrollbar {
    display: none;
  }

  .before-after-slider > .before-after-card {
    flex: 0 0 88% !important;
    width: 88% !important;
    min-width: 88% !important;
    max-width: 88% !important;

    scroll-snap-align: start;
  }

  /* Keep the two images side by side */
  .before-after-card .e-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .before-after-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
}
@media (max-width: 767px) {
    .mob-menu-logo-holder {
        display: none !important;
    }
}

