
    @font-face {
    font-family: 'Poppins';
    src: url('/wp-content/plugins/infina-health/fonts/Poppins/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
      
      .overlay { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; }
      .content-box {
  width: 100%;
  
  padding: 5rem 2rem 7rem;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  color: white;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.content-box h1 {
  color: #00BFFF;
  font-size: 16px !important;
  margin: 0 0 0.5rem 0; /* bottom spacing only */
}

.content-box h2 {
  color: orange;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
}

.content-box p {
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.content-box,
.content-box h1,
.content-box h2,
.content-box p {
  font-family: 'Poppins', sans-serif;
}
    .cta-button {
  position: absolute;
  bottom: -25px;
  left: 45%;
  transform: translate(-50%, 50%);
  z-index: 3;
  cursor: pointer;
  background: transparent;
  padding: 0;
  margin: 0;
  text-decoration: none;
}



/* Shared font family */
.content-box,
.content-box h1,
.content-box h2,
.content-box p {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

.text-content,
.text-content h1,
.text-content h2,
.text-content p {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* Base styles */
.content-box h1 {
  font-weight: 600;
}

.content-box h2 {
  font-weight: 600;
}

.content-box p {
  font-weight: 400;
  font-size: 22px;
  margin: 0.5rem auto 0;
  padding: 0;
  text-align: center;      /* Horizontally center the text */
  max-width: 700px;        /* Prevent it from spanning full width */
  line-height: 1.5;
}


/* Slide-specific font sizes */
.slide-0 .heading { font-size: 60px; }
.slide-0 .sub-heading { font-size: 25px; }
.slide-0 p   { font-size: 14px; }

.slide-1 .heading,
.slide-2 .heading,
.slide-3 .heading { font-size: 30px; }

.slide-1 .sub-heading,
.slide-2 .sub-heading,
.slide-3 .sub-heading { font-size: 25px; }

.slide-0 p,
.slide-1 p,
.slide-2 p,
.slide-3 p { width:40vw;font-size: 14px; }

.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: auto; cursor: pointer; z-index: 4;transition: none !important; }
      .nav-arrow.left { left: 30px; }
      .nav-arrow.right { right: 30px; } 
/* Responsive adjustments */
@media (max-width: 768px) {
  .slide-0 h1 { font-size: 70px; }
  .slide-0 h2 { font-size: 30px; }

  .slide-1 h1,
  .slide-2 h1,
  .slide-3 h1 { font-size: 40px; }

  .slide-1 h2,
  .slide-2 h2,
  .slide-3 h2 { font-size: 28px; }

  .content-box p { font-size: 18px; }
   .content-box {top:0 !important;}
}

.slider-content h1,h2 {
  text-transform: none !important;
}
.custom-book-button {
  display: inline-block;
  padding: 20px 50px;
  background-color: #E71D25;
  color: black;
  font-weight: bold;
  font-size: clamp(14px, 2vw, 20px);
  font-family: 'Poppins', sans-serif;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-book-button:hover {
 
  color: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); /* subtle hover depth */
}


      .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: auto; cursor: pointer; z-index: 4;transition: none !important; }
      .nav-arrow.left { left: 30px; }
      .nav-arrow.right { right: 30px; }
      .dots {     position: absolute;
    right: 24px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 8;
    background: #e71d25;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 8px 16px;
    max-width: calc(100% - 40px); }
      .dot {     width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border: none;
    border-radius: 50%;
    background: #fff;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.25s ease; }
    
    button.dot.active {
    width: 30px;
    height: 10px;
    min-width: 30px;
    min-height: 10px;
    background: #000;
    border-radius: 10px;
}
      
      @media (max-width: 480px) {
        .content-box h1 { font-size: 1.6rem; }
        .content-box h2 { font-size: 1.2rem; }
        .content-box p { font-size: 0.95rem; }
      }
     
    </style>

<style>
/* ===== MOBILE FULL OVERLAY FIX ===== */
.mobile-overlay {
  display: none;
}

/* ===== MOBILE STYLING ===== */
@media (max-width: 767px) {

  /* Fullscreen dark overlay */
  .mobile-overlay {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
  }

  /* Centered text + arrows inside overlay */
  .mobile-content-wrapper {
    background: rgba(0, 0, 0, 0.55); /* ✅ black with 55% opacity */
    padding: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    backdrop-filter: blur(3px);      /* subtle background blur for polish */
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
  }
  
  .nav-arrow-wrapper.left {
      left: 0 !important;
  }
  
  .nav-arrow-wrapper.right {
    right: 0px !important;
  }
  
  .nav-arrow {
      width: 20px !important;
  }
  
  .custom-book-button {
      bottom: -15px;
  }
}
  .mobile-overlay .text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .mobile-overlay .heading-text {
    color: #E71D25;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .mobile-overlay .subheading-text {
    color: #F4947A;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
  }

  .mobile-overlay .slider-paragraph {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 300px;
    width:250px;
    margin: 0.5rem auto 0;
  }

  /* Arrows */
  .mobile-overlay .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: auto;
    cursor: pointer;
    z-index: 10;
    transition: none !important;
  }

  .mobile-overlay .nav-arrow.left { left: 12px; }
  .mobile-overlay .nav-arrow.right { right: 12px; }

  /* CTA button OUTSIDE overlay */
  .custom-book-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #E71D25;
    color: black;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 24px;
    padding: 15px 45px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .custom-book-button:hover {
    color: white;
  }

  /* Small phones (≤360px) */
  @media (max-width: 360px) {
    .mobile-overlay .heading-text { font-size: 1.2rem; }
    .mobile-overlay .subheading-text { font-size: 0.9rem; }
    .mobile-overlay .slider-paragraph { font-size: 0.75rem; }
    .custom-book-button { font-size: 0.85rem; padding: 8px 22px;margin-top:20px; bottom: -15px; }
  }

  /* Hide desktop overlay completely */
  .desktop-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Force mobile overlay visible */
  .mobile-overlay {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
.custom-book-button {
  display: inline-block;
  margin-top: 15px; /* ✅ adds space above the CTA */
  background-color: #E71D25;
  color: black;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 24px;
  padding: 10px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.custom-book-button:hover {
  color: white;
}
 .custom-book-button {
    margin-top: 1.2rem; /* slightly larger gap on mobile */
  }
/* ===== DESKTOP VISIBILITY ===== */
@media (min-width: 768px) {
  .mobile-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .desktop-overlay {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
/* ===== TABLET DUPLICATE OVERLAY (768–992px) ===== */
@media (min-width: 768px) and (max-width: 992px) {
  .tablet-overlay {
    position: absolute !important;
  inset: 0;
    top: 0;
    left: 0;
    width: 100vw !important;          /* ✅ cover full width */
    height: 100vh !important;         /* ✅ cover full height */
    background: rgba(0, 0, 0, 0.55);  /* ✅ blackish transparent overlay */
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 9999;
    overflow: hidden;                 /* prevent internal scroll */
  }

  .tablet-content-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.55);  /* ✅ same semi-transparent bg for content box */
    border-radius: 12px;
    padding: 2rem 1.5rem;
    width: 90%;
    max-width: 100vw;
    text-align: center;
    backdrop-filter: blur(3px);
    z-index: 10000;
  }

  .tablet-overlay .heading-text {
    color: #E71D25;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .tablet-overlay .subheading-text {
    color: #F4947A;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
  }

  .tablet-overlay .slider-paragraph {
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 400px;
    margin: 0.8rem auto 0;
  }

  .tablet-overlay .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: auto;
    cursor: pointer;
    z-index: 10;
    transition: none !important;
  }

  .tablet-overlay .nav-arrow.left { left: 12px; }
  .tablet-overlay .nav-arrow.right { right: 12px; }

  /* Hide other overlays */
  .mobile-overlay,
  .desktop-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Hide tablet overlay outside 768–992px */
@media (max-width: 767px), (min-width: 993px) {
  .tablet-overlay {
    display: none !important;
  }
}







@media (min-width: 992px) {
  .desktop-overlay .heading-text {
      color:#E71D25;
    font-size: clamp(2.8rem, 4vw, 3.8rem) !important;
    font-weight: 600;
  }

  .desktop-overlay .subheading-text {
      color:#fff;
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    font-weight: 400;
  }

  .slider-paragraph {
    font-size: 20px !important;
    max-width: 50vw;
    margin: 20px auto 0;
  }
  .desktop-overlay .slider-paragraph {
    width: 80%;                 /* 90% of content box width */
    max-width: none !important;
    margin: 20px auto 0;        /* keep centered block */
    font-size: 22px !important;
    text-align: center;           /* NOT centered */
    line-height: 1.5;
  }
}
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Make overlays fill slide but never affect arrows */
.overlay,
.desktop-overlay,
.mobile-overlay,
.tablet-overlay {
  position: absolute !important;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Content remains clickable */
.content-box,
.content-box * {
  pointer-events: auto;
}

/* Full-height click zones */
.nav-arrow-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 100000;
  cursor: pointer;
}

.nav-arrow-wrapper.left  { left: 30px; }
.nav-arrow-wrapper.right { right: 30px; }

.nav-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: auto;
  pointer-events: none;
}
.nav-arrow-wrapper.right { 
  right: 30px;
}
