.health-hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
  display: flex;
   
}

.health-hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  z-index: 2; 
}

.health-hero .slide.active {
  opacity: 1;
  visibility: visible;
  animation: kenBurns 10s infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 128, 128, 0.4); 
  z-index: 1; 
  pointer-events: none; 
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #008080;
  background-color: #008080;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 15; 
}

.hero .btn:hover {
  background-color: #fff;
  color: #008080;
}

.animate-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.slide.active .animate-text {
  opacity: 1;
  transform: translateY(0);
}

.slide.active h1 { 
    transition-delay: 0.3s; 
    font-size: 3rem;     
    margin-bottom: 1.25rem; 
}

.slide.active p { 
    transition-delay: 0.5s; 
    font-size: 1.125rem;  
    margin-bottom: 2rem; 
}

@media (max-width: 768px) {
    .slide.active h1 { 
        font-size: 2rem;  
        margin-bottom: 1rem;
    }

    .slide.active p { 
        font-size: 1rem;   
        margin-bottom: 1.5rem;
        padding: 0 15px;   
    }

    .health-hero {
        height: 70vh;      
    }
}
.slide.active .btn { transition-delay: 0.7s; }

.slide-controls {
  position: absolute;
  bottom: 30px;
  right: 50px;
  z-index: 20; 
  display: flex;
  gap: 20px;
}

.slide-controls span {
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.slide-controls span:hover { 
  background: #008080; 
  border-color: #008080;
}

.why-choose-us {
  padding: 60px 20px;
  background-color: #ffffff; 
  text-align: center;
}

.why-choose-us h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: #008080;
}

.why-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  flex: 1;
  min-width: 250px;
  background-color: #f0f7f7;
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.why-card i {
  font-size: 36px;
  color: #008080;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #000000;
}

.why-card p {
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .why-grid {
    flex-direction: column;
    gap: 20px;
  }
}




@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .nav-links { flex-direction: column; gap: 10px; }
}

.treatments-overview {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.treatments-overview .container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.treatment-card {
  background-color: #f0f7f7; 
  color: #000000;          
  flex: 1;
  min-width: 280px;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}


.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.treatment-card h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #008080; 
}

.treatment-card ul {
  list-style: none;
  padding-left: 0;
}

.treatment-card ul li {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.treatment-card ul li i {
  color: #008080;
}

.dental-card h2,
.dental-card ul li i {
  color: #008080; 
}

@media (max-width: 900px) {
  .treatments-overview .container {
    flex-direction: column;
  }

  .treatment-card {
    margin-bottom: 30px;
  }
}
.link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.treatment-card ul li.focused-item {
    font-weight: 800;
    color: #000;
    transform: scale(1.05); 
}

.treatment-card ul li.focused-item i {
    transform: scale(1.2);
    color: #004d4d; 
}
.treatment-card ul li {
    transition: all 0.4s ease;
    color: #555; 
}

.our-services {
  padding: 60px 20px;
  background-color: #f0f7f7;
  text-align: center;
}

.our-services h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #008080;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 18%); 
  gap: 2%; 
  justify-content: center; 
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #ffffff;
  padding: 30px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #000000;
  width: 100%; 
}

.service-card i {
  font-size: 36px;
  color: #008080; 
}

.service-card p {
  font-size: 16px;
  font-weight: 500;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 28%); /* 3 per row */
    gap: 4%;
    justify-content: center;
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 40%); /* 2 per row */
    gap: 5%;
  }
}


.reviews-section {
    padding: 5rem 1rem;
    background-color: #f4f8f8;
    text-align: center;
    overflow: hidden;
}

.rating-overview { margin-bottom: 3rem; }
.rating-score { font-size: 3.5rem; font-weight: 800; color: #008080; line-height: 1; }
.rating-score span { font-size: 1.5rem; color: #999; }
.rating-stars { color: #ffb400; font-size: 1.5rem; margin: 0.5rem 0; }
.rating-count { color: #666; font-size: 1rem; }

.reviews-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 350px; 
}
.reviews-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #008080;
}

.review-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 128, 128, 0.1);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.7s ease;
}

.review-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    position: relative; 
}

.review-badge {
    background: #008080;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.review-card p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.reviewer-info strong { display: block; color: #008080; font-size: 1.1rem; }
.reviewer-info span { color: #888; font-size: 0.9rem; }

.review-dots { margin-top: 2rem; }
.dot {
    height: 12px;
    width: 12px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background-color: #008080;
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .rating-score { font-size: 2.5rem; }
    .review-card { padding: 2rem 1rem; }
}



