/* ============================================================
   Rehabilitation Page — Heal Physio & Wellness
   Scoped with rh- prefix to avoid conflicts
   ============================================================ */

/* ── Hero / Banner ─────────────────────────────────────────── */
.rh-hero {
  padding-top: 150px;
  padding-bottom: 128px;
  background-image: url(../images/rehab/banner/banner.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.banner-img{
  position: relative;
}
.banner-inside-img {
    position: absolute;
    right: 79px;
    top: -54px;
}
.banner-inside-img img {
    width: 281px;
}

.rh-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(112, 195, 69, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.rh-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(29, 152, 193, 0.13) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.rh-hero .container {
  position: relative;
  z-index: 2;
}

.rh-hero h1 {
  font-size: 50px !important;
  font-weight: 500 !important;
}

/* Glassmorphism accent pill */
.rh-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  padding: 9px 22px;
  margin-bottom: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.rh-hero__pill i {
  color: #70c345;
  font-size: 13px;
}

/* Breadcrumb */
.rh-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
}

.rh-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.rh-breadcrumb a:hover {
  color: #70c345;
}

.rh-breadcrumb span {
  color: #70c345;
  font-weight: 600;
}

.rh-breadcrumb .rh-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
}

/* Hero H1 */
.rh-hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 45px;
  font-weight: 400;
  color: #70c345;
  line-height: 1.166;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  width: 700px;

}
@media (max-width: 767px) {
  .rh-hero h1 {
    font-size: 50px;
  }
}
@media (max-width: 575px) {
  .rh-hero h1 {
    font-size: 45px;
  }
  .banner-inside-img img{
    display: none;
  }
  .rh-hero {
    padding-top: 150px;
    padding-bottom: 120px;
    background-image: url(../images/rehab/banner/mobile-banner.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
    .rh-hero {
        padding-top: 122px !important;
        padding-bottom: 60px;
    }
        .rh-hero h1 {
        font-size: 32px !important;
    }
    .rehab-sec img{
      width: 100%;
    }
    #rh-recovery .row{
      display: flex;
      flex-direction: column-reverse;
    }
    .program-sec img{
      width: 100%;
    }
    #rh-who .row{
      display: flex;
      gap: 20px;
    }
    #rh-plan .row{
      display: flex;
      flex-direction: column-reverse;
    }
        .rh-cta-contacts {
        flex-direction: row;
        gap: 16px;
    }
}

/* Hero subtitle */
.rh-hero__sub {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 564px;
  margin-bottom: 38px;
}

/* ── Section Spacing ─────────────────────────────────────────── */
.rh-section {
  padding: 90px 0;
}

.rh-section--alt {
  background: #def0f2;
}

.rh-section--dark {
  background: #1c93ba;
  position: relative;
  overflow: hidden;
}

.rh-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(112, 195, 69, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(29, 152, 193, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.rh-section--dark .container {
  position: relative;
  z-index: 1;
}

/* ── Recovery Section (Section 2) ──────────────────────────── */
.rh-recovery__card {
  background: #f0faf4;
  border-radius: 20px;
  padding: 40px 36px;
  border-left: 4px solid #70c345;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.rh-recovery__icon-box {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #70c345, #539033);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(112, 195, 69, 0.28);
}
.rh-recovery__icon-box img{
  width: 30px;
}

.rh-recovery__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: center;
}

.rh-recovery__stat {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rh-recovery__stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(29, 152, 193, 0.12);
  border-color: #1d98c1;
}

.rh-stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: #def0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1d98c1;
  transition: all 0.35s ease;
}

.rh-recovery__stat:hover .rh-stat-icon {
  background: #1d98c1;
  color: #fff;
}

.rh-stat-body h5 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a2e35;
  margin-bottom: 4px;
}

.rh-stat-body p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

/* ── Who For Section (Section 3) ──────────────────────────── */
.rh-who__card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 48px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  border-top: 4px solid #1d98c1;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.rh-who__card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(29, 152, 193, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rh-who__card:hover {
  box-shadow: 0 14px 44px rgba(29, 152, 193, 0.13);
  transform: translateY(-3px);
}

.rh-who__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #def0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1d98c1;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

.rh-who__card:hover .rh-who__icon {
  background: #1d98c1;
  color: #fff;
}

/* ── Sessions Grid (Section 4) ──────────────────────────────── */
.rh-session-card {
  text-align: center;
  padding: 30px 15px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.rh-session-card:hover {
  transform: translateY(-6px);
}


.rh-session-card__image {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  opacity: 0;
  transform: scale(0.9);
}

.rh-visible .rh-session-card__image {
  opacity: 1;
  transform: scale(1);
}

.rh-session-card:hover .rh-session-card__image {
  transform: translateY(-5px) scale(1.02);
}

.rh-session-card__image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.rh-session-card h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a2e35;
  margin: 0;
  line-height: 1.4;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(10px);
}

.rh-visible .rh-session-card h4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.rh-session-card:hover h4 {
  color: #1d98c1;
  transform: translateY(-2px);
}

.rh-sessions__note {
  text-align: center;
  max-width: 680px;
  margin: 44px auto 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: #718096;
  line-height: 1.75;
  padding: 22px 28px;
  background: #f0faf4;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #70c345;
}

/* ── Matters Section (Section 5) ───────────────────────────── */
.rh-matters__inner {
  max-width: 100%;
  text-align: left;
}

.rh-matters__inner .sec-title__title {
  color: #fff !important;
  text-align: left;
  margin-bottom: 20px;
}

.rh-matters__inner > p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin: 0;
  text-align: left;
}

/* Overlapping Oval Images Style */
.rh-matters__images-wrap {
  position: relative;
  height: 450px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-matters__image-item {
  position: absolute;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.rh-matters__image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rh-matters__image-item:hover img {
  transform: scale(1.1);
}

.rh-matters__image-1 {
  width: 240px;
  height: 340px;
  border-radius: 120px; /* Capsule shape */
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rh-matters__image-2 {
  width: 180px;
  height: 260px;
  border-radius: 90px;
  z-index: 1;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.rh-matters__image-3 {
  width: 160px;
  height: 220px;
  border-radius: 80px;
  z-index: 3;
  bottom: 10%;
  right: 25%;
  transform: translate(50%, 0);
  opacity: 0.9;
}

/* Animation for images when visible */
.rh-visible .rh-matters__image-1 {
  animation: float-slow 6s ease-in-out infinite;
}

.rh-visible .rh-matters__image-2 {
  animation: float-slow 8s ease-in-out infinite reverse;
}

.rh-visible .rh-matters__image-3 {
  animation: float-slow 7s ease-in-out infinite 1s;
}

@keyframes float-slow {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
}

/* Adjust float for offset images */
@keyframes float-offset-3 {
  0%, 100% { transform: translate(50%, 0) translateY(0); }
  50% { transform: translate(50%, 0) translateY(-10px); }
}

.rh-visible .rh-matters__image-3 {
  animation: float-offset-3 7s ease-in-out infinite 1s;
}

@media (max-width: 991px) {
  .rh-matters__images-wrap {
    height: 350px;
    margin-top: 40px;
  }
  .rh-matters__image-1 { width: 180px; height: 260px; }
  .rh-matters__image-2 { width: 140px; height: 200px; }
  .rh-matters__image-3 { width: 120px; height: 170px; }
}

/* ── Plan Section (Section 6) ──────────────────────────────── */
.rh-plan__inner {
  max-width: 100%;
  text-align: left;
}

.rh-plan__inner .sec-title__title {
  color: #1d98c1 !important;
  text-align: left;
  margin-bottom: 20px;
}

.rh-plan__inner > p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: #4a5568;
  line-height: 1.75;
  margin: 0;
  text-align: left;
}

.rh-plan__images-wrap {
  position: relative;
  height: 450px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-plan__image-item {
  position: absolute;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  transition: all 0.5s ease;
}

.rh-plan__image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rh-plan__image-item:hover img {
  transform: scale(1.1);
}

.rh-plan__image-1 {
  width: 240px;
  height: 340px;
  border-radius: 120px;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rh-plan__image-2 {
  width: 180px;
  height: 260px;
  border-radius: 90px;
  z-index: 1;
  top: 35%;
  left: 70%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}

.rh-plan__image-3 {
  width: 160px;
  height: 220px;
  border-radius: 80px;
  z-index: 3;
  bottom: 15%;
  left: 20%;
  transform: translate(-50%, 0);
  opacity: 0.95;
}

/* Animations for Plan Section */
.rh-visible .rh-plan__image-1 {
  animation: float-slow 7s ease-in-out infinite;
}

.rh-visible .rh-plan__image-2 {
  animation: float-slow 9s ease-in-out infinite reverse;
}

.rh-visible .rh-plan__image-3 {
  animation: float-offset-plan-3 8s ease-in-out infinite 0.5s;
}

@keyframes float-offset-plan-3 {
  0%, 100% { transform: translate(-50%, 0) translateY(0); }
  50% { transform: translate(-50%, 0) translateY(-12px); }
}

/* ── Timeline (Section 6) ──────────────────────────────────── */
.rh-timeline {
  position: relative;
  padding-top: 60px;
}

.rh-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #70c345, #1d98c1);
  opacity: 0.2;
  border-radius: 4px;
}

.rh-timeline__item {
  position: relative;
  margin-bottom: 72px;
}

.rh-timeline__item:last-child {
  margin-bottom: 0;
}

.rh-tl-num {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-tl-num span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d98c1, #177a9b);
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(29, 152, 193, 0.38);
}

.rh-tl-card {
  background: #fff;
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  transition: all 0.35s ease;
  height: 100%;
}

.rh-tl-card:hover {
  box-shadow: 0 14px 40px rgba(29, 152, 193, 0.14);
  border-color: #1d98c1;
  transform: translateY(-4px);
}

.rh-tl-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1d98c1;
  margin-bottom: 14px;
  line-height: 1.25;
}

.rh-tl-card p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: #4a5568;
  line-height: 1.75;
  margin: 0;
}

.rh-tl-visual {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #def0f2, #f0faf4);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.rh-tl-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29, 152, 193, 0.14);
}

.rh-tl-visual i {
  font-size: 72px;
  color: #1d98c1;
  opacity: 0.28;
}

/* ── CTA Section (Section 7) ───────────────────────────────── */
.rh-cta-wrap {
 
  padding: 0;
}

#rh-cta-inner {
   background-image: url(../images/rehab/cta.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    padding: 40px 50px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#rh-cta-inner .sec-title__title {
  color: #fff !important;
}

#rh-cta-inner .about-one__text-1 {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 28px;
}

.rh-cta-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.rh-cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.rh-cta-contact-item i {
  color: #70c345;
  font-size: 18px;
}

.rh-cta-contact-item a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.3s ease;
}

.rh-cta-contact-item a:hover {
  color: #70c345;
}

/* ── Scroll Fade Animation ──────────────────────────────────── */
.rh-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rh-fade.rh-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .rh-hero {
    padding-top: 100px;
    padding-bottom: 70px;
  }

  .rh-hero h1 {
    font-size: 34px;
  }

  .rh-recovery__visual {
    margin-top: 32px;
  }

  .rh-who__card {
    padding: 32px 28px;
  }

  .rh-timeline::before {
    display: none;
  }

  .rh-tl-num {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 20px;
    justify-content: center;
  }

  .rh-timeline__item {
    margin-bottom: 52px;
  }

  .rh-tl-visual {
    margin-bottom: 24px;
    min-height: 160px;
  }

  .rh-section {
    padding: 70px 0;
  }

  #rh-cta-inner {
    padding: 52px 36px;
    margin: 50px 0;
  }
}

@media (max-width: 767px) {
  .rh-hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .rh-hero h1 {
    font-size: 28px;
    max-width: 100%;
  }

  .rh-hero__sub {
    font-size: 16px;
    max-width: 100%;
  }

  .rh-section {
    padding: 60px 0;
  }

  .rh-recovery__card {
    padding: 28px 24px;
  }

  .rh-who__card {
    padding: 28px 24px;
  }

  .rh-tl-card {
    padding: 26px 22px;
  }

  .rh-tl-card h3 {
    font-size: 20px;
  }

  .rh-cta-contacts {
    flex-direction: column;
    gap: 16px;
  }

  #rh-cta-inner {
    padding: 44px 24px;
    margin: 40px 0;
  }
}

@media (max-width: 575px) {
  .rh-hero h1 {
    font-size: 24px;
  }

  .rh-tl-visual {
    min-height: 130px;
  }

  .rh-tl-visual i {
    font-size: 52px;
  }

  .rh-sessions__note {
    padding: 18px 20px;
  }

  #rh-cta-inner {
    padding: 36px 18px;
  }
}
