.real-estate-hero {
    position: relative;
    height: 85vh; 
    overflow: hidden;
    display: flex;
    background: #000;
}

.real-estate-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; 
}

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

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

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

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

.real-estate-hero .btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid rgb(37, 150, 190);
    background-color: rgb(37, 150, 190);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
}

.real-estate-hero .btn:hover {
    background-color: #fff;
    color: rgb(37, 150, 190);
}

/* Animations */
.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; }
.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;
    transition: 0.3s;
}

.slide-controls span:hover { 
    color: rgb(37, 150, 190); 
}

@media (max-width: 768px) {
    .real-estate-hero { height: 75vh; }
    .slide.active h1 { font-size: 2rem; }
    .slide.active p { font-size: 1rem; padding: 0 15px; }
}

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

.why-choose-us h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: rgb(37, 150, 190);
}

.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: #ebf4f9; 
  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: rgb(37, 150, 190);
  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; }

.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: #f0faff; 
  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: rgb(37, 150, 190); 
}

/* List Styling */
.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;
  transition: all 0.4s ease;
  color: #555; 
}

.treatment-card ul li i {
  color: rgb(37, 150, 190); 
  transition: all 0.4s ease;
}

.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: rgb(20, 100, 130); 
}

.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 900px) {
  .treatments-overview .container {
    flex-direction: column;
  }
  .treatment-card {
    margin-bottom: 30px;
  }
}
.our-services {
  padding: 60px 20px;
  background-color: #ebf4f9; 
  text-align: center;
}

.our-services h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: rgb(37, 150, 190); 
}

.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: rgb(37, 150, 190); 
}

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

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

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 28%); 
    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%); 
    gap: 5%;
  }
}




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

.reviews-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: rgb(37, 150, 190); 
}

.rating-overview { margin-bottom: 3rem; }

.rating-score { 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: rgb(37, 150, 190); 
    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: 380px; 
}

.review-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(37, 150, 190, 0.12); 
    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: rgb(37, 150, 190); 
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

.reviewer-info strong { 
    display: block; 
    color: rgb(37, 150, 190); 
    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: rgb(37, 150, 190); 
    width: 30px;
    border-radius: 10px;
}

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