/* ===========================================================
   FRONT PAGE STYLES
   Theme: Medical Clinic (matches header & footer)
   =========================================================== */

/* ========================= HERO SLIDESHOW ========================= */
.hero-slideshow {
  margin-bottom: 20px;
}

.slideshow-container {
  position: relative;
  width: 100vw;             /* full browser width */
  height: 60vh;             /* 60% viewport height */
  overflow: hidden;
  border-radius: 0;
  background-color: #2B3A55; /* match clinic theme */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

/* Slides */
.mySlides {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Gradient overlay for text readability */
.mySlides::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(43, 58, 85, 0.7),
    rgba(43, 58, 85, 0.3),
    transparent
  );
  pointer-events: none;
}

/* Slide Text */
.slide-text {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: #F9E79F;
  font-size: 40px;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
  text-align: center;
  width: 90%;
  padding: 0 10px;
  z-index: 5;
}

/* Navigation Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 25px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  user-select: none;
  transition: background 0.3s ease;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.5);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Slideshow Dots */
.slideshow-dots {
  text-align: center;
  margin-top: 12px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #87CEFA; /* Inactive sky blue */
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.dot:hover {
  background-color: #a0d8ff; /* Slightly lighter sky blue on hover */
  transform: scale(1.2);      /* Subtle grow effect */
}

.dot.active {
  background-color: #3498DB; /* Clinic header/footer blue */
}

/* ========================= WELCOME SECTION ========================= */
.welcome-section {
  background-color: #F7FBFE;
  padding: 50px 20px;
  text-align: center;
}

.welcome-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2B3A55; /* match header/nav theme */
  margin-bottom: 25px;
}

.welcome-section p {
  font-size: 18px;
  text-align: justify;
  line-height: 1.8;
  color: #444;
  max-width: 850px;
  margin: 0 auto 40px auto;
}

/* ========================= OUR SERVICES SECTION ========================= */
.services-section {
  padding: 60px 20px 80px;
  background: #fff;
  text-align: center;
}

.services-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
  color: #2B3A55;
  font-weight: 700;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-items: center;
}

.service-card {
  background: #F7FBFE; /* lighter clinic theme */
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
}

.service-card h3 {
  margin-top: 20px;
  font-size: 26px;
  color: #2B3A55;
  font-weight: 700;
}

.service-card ul {
  list-style-type: disc;
  margin-top: 20px;
  padding-left: 20px;
  text-align: left;
  color: #444;
  font-size: 18px;
}

.service-card ul li {
  margin-bottom: 10px;
}

/* ========================= WHY CHOOSE US SECTION ========================= */
.why-choose-us {
  padding: 50px 20px;
  background: #F7FBFE;
  text-align: center;
}

.why-choose-us h2 {
  font-size: 36px;
  color: #2B3A55;
  font-weight: 700;
  margin-bottom: 45px;
}

.choose-us-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 45px auto;
}

.choose-us-text {
  flex: 0 1 60%;
  text-align: justify;
}

.choose-us-text h3 {
  font-size: 26px;
  color: #2B3A55;
  margin-bottom: 15px;
}

.choose-us-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.choose-us-image {
  flex: 0 1 35%;
  text-align: right;
}

.choose-us-image img {
  width: 100%;
  max-width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  display: inline-block;
}

/* ========================= RESPONSIVE STYLES ========================= */
@media (max-width: 992px) {
  .choose-us-row,
  .services-container {
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .choose-us-text,
  .choose-us-image {
    flex: 1 1 100%;
    text-align: center;
  }

  .choose-us-image img {
    max-width: 90%;
    height: auto;
    margin-top: 20px;
  }

  .service-card h3 {
    font-size: 24px;
  }

  .service-card ul {
    font-size: 16px;
  }

  .welcome-section h2 {
    font-size: 28px;
  }

  .welcome-section p {
    font-size: 16px;
    line-height: 1.7;
  }

  .slideshow-container {
    height: 50vh;
  }

  .slide-text {
    font-size: 32px;
    bottom: 25px;
  }
}

@media (max-width: 768px) {
  .service-card img {
    height: 180px;
  }

  .slideshow-container {
    height: 40vh;
  }

  .slide-text {
    font-size: 22px;
    bottom: 20px;
  }

  .prev, .next {
    padding: 10px;
    font-size: 18px;
  }

  .welcome-section {
    padding: 40px 15px;
  }
}