/* ----- Banner Section ----- */
.plain-banner {
  position: relative;
  background-color: #18305e;
  color: #fff;
  min-height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: visible;
}

/* ----- Testimonial Boxes Positioned at Banner Edge ----- */
.banner-testimonials-row {
  position: absolute;
  bottom: -100px; /* dips below banner */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
}

/* ----- Testimonial Card Styling ----- */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(24, 48, 94, 0.25);
}

/* ----- Text Styles ----- */
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.testimonial-author {
  font-size: 1rem;
  color: #18305e;
  font-weight: 600;
  margin-top: 1rem;
}

/* ----- Space Fix for Next Section ----- */
.testimonials-row {
  margin-top: 160px; /* ensures next section doesn't overlap */
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 991.98px) {
  .banner-testimonials-row {
    bottom: -80px;
    width: 95%;
  }
}

@media (max-width: 575.98px) {
  .banner-testimonials-row {
    bottom: -60px;
    width: 100%;
    padding: 0 15px;
  }
  .testimonial-card {
    padding: 1.5rem;
  }
}



/* ----- Section 2 (Three Box Layout) ----- */
.info-section {
  background-color: #f9fafc;
}

.info-card {
  background-color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(24, 48, 94, 0.15);
}

.info-card h5 {
  color: #18305e;
  font-weight: 700;
}

.info-card p {
  font-size: 1rem;
  color: #555;
}

/* Space above since testimonials overlap banner */
.info-section {
  margin-top: 180px;
}

/* ---------- Patient Gallery Section ---------- */
.patient-gallery-section {
  background-color: #f8f9fa;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 70px;
}

.patient-gallery-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #18305e;
}

.patient-gallery-section p {
  color: #6c757d;
  font-size: 1rem;
}

/* ---------- Gallery Layout ---------- */
.gallery-item {
  text-align: center;
}

.gallery-img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(24, 48, 94, 0.25);
}

/* ---------- Caption Style ---------- */
.gallery-caption {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e458a;
  text-align: center;
  background-color: rgba(230, 239, 255, 0.9);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add hover effect to caption */
.gallery-item:hover .gallery-caption {
  background-color: #1e458a;
  color: #fff;
}

/* ---------- Spacing ---------- */
.patient-gallery-section .row {
  row-gap: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .gallery-caption {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  .gallery-img {
    border-radius: 6px;
  }
}
