/* Clinic Services Section */
.clinic-services-section {
  background-color: #f1f2f6;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Headings */
.clinic-services-section .text-center.fw-semibold.text-danger.mb-1 {
  margin-bottom: 0.25rem;
}

.clinic-services-section h1 {
  color: #18305e;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Service card layout */
.service-img-zoom {
  overflow: hidden;
  border-radius: 14px;
  width: 100%;
  margin-bottom: 1.5rem; /* increased from 1rem for extra gap */
}

/* Service image size */
.service-img {
  width: 90%; /* reduced overall image size */
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 0 auto; /* center the smaller image */
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-img-zoom:hover .service-img,
.service-img-zoom:focus .service-img {
  transform: scale(1.09);
}

/* Row spacing between cards */
.clinic-services-section .row.g-4 {
  --bs-gutter-x: 2rem; /* increased column gap horizontally */
  --bs-gutter-y: 2.5rem; /* increased vertical gap */
}

/* Icon and title */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; /* increased from 32px */
  height: 42px;
  flex-shrink: 0;
}

.service-icon img {
  width: 42px;  /* ensure the SVG scales properly */
  height: 42px;
}

.service-title {
  font-size: 25px; /* increased from 1.08rem */
  color: #18305e;
  font-weight: 600;
}

/* Description */
.service-desc {
  font-size: 18px;
  margin-top: 15px;
  text-align: start;
  font-weight: 600;
  line-height: 30px;
}

/* Responsive aspect ratios */
@media (max-width: 991.98px) {
  .service-img {
    aspect-ratio: 16/11;
    width: 92%;
  }
}

@media (max-width: 575.98px) {
  .service-img {
    aspect-ratio: 3/2;
    width: 95%;
  }
}


/* Dental Info Section */
.dental-info-section {
  background-color: #f9f9fb;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-heading {
  color: #233b75;
  font-weight: 700;
  line-height: 1.3;
}

/* List styling */
.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  position: relative;
  color: #394867;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  padding-left: 1.4rem;
}

.service-list li::before {
  content: "•";
  color: #d63333;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.4rem;
  line-height: 1;
}

/* Button styling */
.btn-process {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #233b75;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-process:hover {
  background-color: #1c2d5b;
  transform: translateY(-2px);
}

/* Image wrapper */
.image-wrapper {
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.image-wrapper:hover .service-image {
  transform: scale(1.05);
}

/* Responsive spacing */
@media (max-width: 991.98px) {
  .section-heading {
    font-size: 1.75rem;
    text-align: center;
  }

  .service-list li {
    text-align: center;
  }

  .btn-process {
    display: block;
    margin: 0 auto;
  }

  .image-wrapper {
    text-align: center;
  }
}


.button-bar-section {
  background-color: #f8f9fa;
  padding: 18px 0;
  height: auto !important;
}

.button-bar-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.custom-btn {
  background-color: #233b75 !important;
  color: #fff !important;
  border-color: #233b75 !important;
  margin: 0.5rem 1rem; /* vertical & horizontal margin for spacing */
  min-width: 190px;
}

.custom-btn:hover, 
.custom-btn:focus {
  background-color: #1d2e5a !important;
  border-color: #1d2e5a !important;
  color: #fff !important;
}

@media (max-width: 991.98px) { /* medium and below */
  .button-bar-section {
    padding: 16px 0;
  }
  .button-bar-buttons {
    gap: 0.5rem;
  }
  .custom-btn {
    font-size: 1rem;
    min-width: 160px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) { /* small screens */
  .button-bar-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .custom-btn {
    width: 100%;
    margin: 0;
    min-width: 0;
  }
}