/* Elderly Wellness - Service Pages Design Enhancements & Card Systems */

/* ==========================================================================
   0. Hero Section Top Spacing & Generous Title Spacing
   ========================================================================== */
#services-inner-page-banner-section,
.banner_section {
  padding-top: 64px !important;
  padding-bottom: 72px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  #services-inner-page-banner-section,
  .banner_section {
    padding-top: 44px !important;
    padding-bottom: 52px !important;
  }
}

.ew-services-overview-section {
  padding: 80px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ew-booking-cta-section {
  padding: 80px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ew-card-action-btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 12px 20px !important;
  background-color: #2786a5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.ew-card-action-btn:hover {
  background-color: #1e6b85 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   Service Comparison Table Top-Alignment & Button System
   ========================================================================== */
.ew-comparison-section .table {
  vertical-align: top !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.ew-comparison-section .table thead th {
  vertical-align: middle !important;
  white-space: nowrap !important;
  background-color: #2786a5 !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
}

.ew-comparison-section .table tbody td {
  vertical-align: top !important;
  padding: 20px !important;
  line-height: 1.6 !important;
  border-top: 1px solid #e2e8f0 !important;
}

.ew-comparison-section .table tbody tr:first-child td {
  border-top: none !important;
}

.ew-table-btn {
  display: inline-block !important;
  white-space: nowrap !important;
  padding: 8px 18px !important;
  background-color: #2786a5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(39, 134, 165, 0.2) !important;
}

.ew-table-btn:hover {
  background-color: #1e6b85 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   High-Contrast Readable Footer System Site-Wide
   ========================================================================== */
footer.footer_section {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
}

footer.footer_section .abt_side p,
footer.footer_section .links p {
  color: #cbd5e1 !important;
  line-height: 1.6 !important;
}

footer.footer_section .links h3,
footer.footer_section .abt_side h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}

footer.footer_section .links ul li a {
  color: #cbd5e1 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

footer.footer_section .links ul li a:hover {
  color: #38bdf8 !important;
}

footer.footer_section .bottom_footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 20px !important;
  color: #94a3b8 !important;
}

footer.footer_section .bottom_footer a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

footer.footer_section .bottom_footer a:hover {
  color: #38bdf8 !important;
}

/* Prevent single orphan words on new lines */
h1, h2, h3, .banner_text h1, .banner_text h2, .section_title h2, .section_title h3 {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

#services-inner-page-banner-section .banner_text h1 {
  font-size: 32px !important;
  line-height: 1.35 !important;
  color: #1a2e35 !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
}

#services-inner-page-banner-section .banner_text h1 span {
  display: inline-block;
  color: #2786a5 !important;
}

#services-inner-page-banner-section .banner_text h2 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  color: #2786a5 !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

#services-inner-page-banner-section .banner_text p {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #475569 !important;
  margin-bottom: 18px !important;
}

/* Service Pages Pricing Teaser - Centered Layout (Start Price & View Full Pricing Button Below It) */
.service-pricing-teaser {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 20px auto 24px auto !important;
  gap: 10px !important;
}

.service-pricing-teaser > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 15px !important;
  color: #1e293b !important;
}

/* Hide vertical divider pipe when stacked centered */
.service-pricing-teaser > span:nth-child(2) {
  display: none !important;
}

.service-pricing-teaser .pricing-teaser-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.btn-main-row-service-inner-banner {
  margin-bottom: 28px !important;
}

/* ==========================================================================
   1. "Why Choose Elderly Wellness for [Service] ?" Section Cards & Icons
   ========================================================================== */
#services-inner-icon-section {
  padding: 72px 0 80px 0 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

#services-inner-icon-section .section_title h2 {
  color: #1a2e35 !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  text-align: center;
  margin-bottom: 10px !important;
  letter-spacing: -0.3px;
}

#services-inner-icon-section .section_title h2 span {
  color: #2786a5 !important;
}

/* Crisp Feature Card System */
.ew-feature-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 30px 26px !important;
  box-shadow: 0 4px 16px rgba(15, 40, 55, 0.04) !important;
  border: 1.5px solid #e2e8f0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  margin-bottom: 24px !important;
}

.ew-feature-card:hover {
  transform: translateY(-4px) !important;
  border-color: #2786a5 !important;
  box-shadow: 0 12px 32px rgba(39, 134, 165, 0.12) !important;
}

.ew-feature-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 16px;
  background: rgba(39, 134, 165, 0.12);
  color: #2786a5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.ew-feature-icon i {
  animation: none !important;
  transform: none !important;
  display: inline-block !important;
}

.ew-feature-card:hover .ew-feature-icon {
  transform: scale(1.08);
  background: #2786a5;
  color: #ffffff;
}

.ew-feature-text h3 {
  color: #1a2e35 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.35 !important;
}

.ew-feature-text p {
  color: #475569 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* ==========================================================================
   2. "How Care Works in 3 Simple Steps" - Premium Card System
   ========================================================================== */
.ew-3step-grid {
  row-gap: 24px;
}

.ew-step-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 30px 24px !important;
  height: 100% !important;
  box-shadow: 0 4px 20px rgba(15, 40, 55, 0.04) !important;
  text-align: left !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  position: relative;
}

.ew-step-card:hover {
  transform: translateY(-5px) !important;
  border-color: #2786a5 !important;
  box-shadow: 0 12px 32px rgba(39, 134, 165, 0.12) !important;
}

.ew-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ew-step-num {
  font-size: 14px;
  font-weight: 800;
  color: #2786a5;
  background: rgba(39, 134, 165, 0.1);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ew-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #2786a5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.ew-step-card:hover .ew-step-icon {
  background: #2786a5;
  color: #ffffff;
  border-color: #2786a5;
}

.ew-step-card h3 {
  font-size: 18.5px !important;
  font-weight: 800 !important;
  color: #1a2e35 !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.35 !important;
}

.ew-step-card p {
  font-size: 14.5px !important;
  color: #475569 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* ==========================================================================
   3. Expander Button Hover Effects
   ========================================================================== */
.ew-expand-process-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #2786a5 !important;
  border-radius: 30px !important;
  padding: 10px 28px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
}

.ew-expand-process-btn:hover {
  background: #2786a5 !important;
  color: #ffffff !important;
  border-color: #2786a5 !important;
  transform: scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(39, 134, 165, 0.35) !important;
}

.ew-expand-process-btn:hover span,
.ew-expand-process-btn:hover i {
  color: #ffffff !important;
}

/* ==========================================================================
   4. Expanded 10-Step Process Cards & Spacing
   ========================================================================== */
.arrange-home-physio {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 6px 20px rgba(15, 40, 55, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

@media (max-width: 640px) {
  .arrange-home-physio {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px !important;
    gap: 16px !important;
  }
}

.arrange-home-physio:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(15, 40, 55, 0.08) !important;
  border-color: #2786a5 !important;
}

.arrange-home-physio > div:first-child {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 18px;
  background: rgba(39, 134, 165, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arrange-home-physio > div:first-child img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.arrange-home-physio h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #1a2e35 !important;
  margin: 0 0 8px 0 !important;
}

.arrange-home-physio p {
  font-size: 14.5px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 0 8px 0 !important;
}

.arrange-home-physio p:last-child {
  margin-bottom: 0 !important;
}

.arrange-home-physio ul {
  margin: 6px 0 8px 0;
  padding-left: 20px;
}

.arrange-home-physio ul li {
  font-size: 14px;
  color: #475569;
  margin-bottom: 4px;
}


/* ==========================================================================
   TIGHTEN BOTTOM EMPTY SPACES BEFORE FOOTER
   ========================================================================== */
.post-views,
.post-views.content-post {
  margin-top: 12px !important;
  margin-bottom: 14px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ew-medical-disclaimer {
  margin-top: 16px !important;
  margin-bottom: 20px !important;
}

.single-post #page,
.single-post .site-content,
.single-post #primary,
.single-post .site-main,
.single-post article,
.single-post .inside-article,
.single-post #right-sidebar,
.single-post .inside-right-sidebar {
  padding-bottom: 12px !important;
  margin-bottom: 0 !important;
}

body.single-post footer,
body.single footer,
footer,
footer.site-footer,
footer.row_am {
  margin-top: 24px !important;
}


/* ==========================================================================
   INCREASE POST VIEWS SIZE & ELIMINATE SPACE BELOW DISCLAIMER
   ========================================================================== */
.post-views,
.post-views.content-post {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 16px !important;
  margin-bottom: 12px !important;
}

.post-views-icon,
.post-views .dashicons {
  font-size: 1.2rem !important;
  color: #2786a5 !important;
  vertical-align: middle !important;
}

.ew-medical-disclaimer {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
}

.single-post #page,
.single-post .site-content,
.single-post #primary,
.single-post .site-main,
.single-post article,
.single-post .inside-article,
.single-post #right-sidebar,
.single-post .inside-right-sidebar,
.single-post .widget-area {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.single-post footer,
body.single footer,
footer,
footer.site-footer,
footer.row_am {
  margin-top: 12px !important;
}


/* ==========================================================================
   HIGH CONTRAST TEXT VISIBILITY FIX FOR DARK CTA CARDS & BANNER BOXES
   ========================================================================== */
.ew-blog-cta--app,
.ew-blog-service-card,
.ew-blog-cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25) !important;
  margin: 32px 0 !important;
  box-sizing: border-box !important;
}

.ew-blog-cta--app .ew-blog-cta__eyebrow,
.ew-blog-service-card .ew-blog-cta__eyebrow,
.ew-blog-cta .ew-blog-cta__eyebrow {
  color: #38bdf8 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.ew-blog-cta--app .ew-blog-cta__heading,
.ew-blog-cta--app h3,
.ew-blog-cta--app h4,
.ew-blog-service-card .ew-blog-cta__heading,
.ew-blog-service-card h3,
.ew-blog-service-card h4,
.ew-blog-cta h3,
.ew-blog-cta h4 {
  color: #ffffff !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin-top: 4px !important;
  margin-bottom: 10px !important;
}

.ew-blog-cta--app .ew-blog-cta__text,
.ew-blog-cta--app p,
.ew-blog-service-card .ew-blog-cta__text,
.ew-blog-service-card p,
.ew-blog-cta p {
  color: #f1f5f9 !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
}

.ew-blog-cta--app .ew-blog-cta__btn,
.ew-blog-service-card .ew-blog-cta__btn,
.ew-blog-cta--app a.btn,
.ew-blog-service-card a.btn,
.ew-blog-cta a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ew-blog-cta--app .ew-blog-cta__btn:hover,
.ew-blog-service-card .ew-blog-cta__btn:hover,
.ew-blog-cta a:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}


/* ==========================================================================
   CLEAN WHITE SPACE / GAP ABOVE FOOTER SECTION
   ========================================================================== */
#callback-form-section,
.ew-contact-hub-section,
.service_section#callback-form-section,
.how_it_section,
.row_am:last-of-type {
  margin-bottom: 48px !important;
  padding-bottom: 0 !important;
}

body footer,
body.inner-services-page footer,
footer.white_text,
footer {
  margin-top: 48px !important;
  clear: both !important;
}

/* ==========================================================================
   SERVICE SECTION IMAGE SIZE REDUCTION (NO CROPPING)
   ========================================================================== */
.service_section .service_blocks .inner_block img,
.service_section .service_blocks .img img,
.service_section .img img,
.inner_block .img img,
.image-sec-banner-inner-service img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 440px !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 20px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   ABOUT PAGE SLIDER UNIFORM IMAGE SIZING
   ========================================================================== */
.about_slider #about_slider .abt_slides img,
.about_slider .abt_slides img,
.abt_slides img {
  width: 100% !important;
  max-width: 100% !important;
  height: 280px !important;
  max-height: 280px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: 0 8px 24px rgba(15, 40, 55, 0.08) !important;
}

@media screen and (max-width: 991.98px) {
  .about_slider #about_slider .abt_slides img,
  .about_slider .abt_slides img,
  .abt_slides img {
    height: 240px !important;
    max-height: 240px !important;
  }
}

@media screen and (max-width: 575.98px) {
  .about_slider #about_slider .abt_slides img,
  .about_slider .abt_slides img,
  .abt_slides img {
    height: 200px !important;
    max-height: 200px !important;
  }
}

/* ==========================================================================
   HERO BANNER HEADING BLACK COLOR & MIXED CASE RESTORATION
   ========================================================================== */
#banner-font2,
#banner-font2 .hero-age,
#banner-font2 .hero-serif,
.banner_section .banner_text #banner-font2,
.banner_section .banner_text #banner-font2 .hero-age,
.banner_section .banner_text #banner-font2 .hero-serif {
  color: #000000 !important;
  text-transform: none !important;
}




