html {
  scroll-behavior: smooth;
}

.about-dentist-hero {
  background: #fafafa;
  padding: 60px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.about-dentist-header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 900px;
}

.about-dentist-tagline {
  color: #e87d68;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

.about-dentist-title {
  color: #233a68;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 32px;
  margin-top: 0;
}

.about-dentist-btn {
  display: inline-block;
  color: #fff;
  background: #273976;
  padding: 16px 40px;
  border-radius: 36px;
  font-size: 24px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.about-dentist-btn:hover,
.about-dentist-btn:focus {
  background: #1c2857;
}

.about-dentist-image-holder {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  width: 90%;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(60,60,110,0.14);
}

.about-dentist-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.about-dentist-image-holder:hover .about-dentist-image {
  transform: scale(1.08);
}

/* Technology Grid */
.technology-images-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  justify-items: center;
}

.technology-images-grid img {
  width: 140px;      /* increased size */
  height: 140px;     /* increased size */
  object-fit: contain;
  border-radius: 8px;
}

/* Tablet */
@media (max-width: 992px) {
  .about-dentist-title {
    font-size: 36px;
  }
  .about-dentist-btn {
    font-size: 20px;
    padding: 14px 32px;
  }
  .technology-images-grid img {
    width: 110px;    /* increased size for tablet */
    height: 110px;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .technology-images-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .technology-images-grid img {
    width: 90px;     /* increased size for smaller screens */
    height: 90px;
  }
  .about-dentist-title {
    font-size: 32px;
  }
  .about-dentist-btn {
    font-size: 18px;
    padding: 12px 28px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .technology-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .technology-images-grid img {
    width: 75px;     /* increased size for phones */
    height: 75px;
  }
  .about-dentist-title {
    font-size: 26px;
    line-height: 1.3;
  }
  .about-dentist-btn {
    font-size: 16px;
    padding: 10px 26px;
  }
  .about-dentist-image-holder {
    border-radius: 12px;
  }
}


/* Dental Feature Section */
.dental-feature-section {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  gap: 200px;
}

.dental-feature-content {
  flex: 1 1 45%;
  max-width: 450px;
  text-align: left;
}

.dental-feature-title {
  color: #233a68;
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.dental-feature-desc {
  color: #7d7d7d;
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.dental-feature-btn {
  display: inline-block;
  background-color: #273976;
  color: #fff;
  padding: 18px 40px;
  border-radius: 36px;
  font-size: 22px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.dental-feature-btn:hover,
.dental-feature-btn:focus {
  background: #1c2857;
}

/* Feature images */
.dental-feature-images {
  flex: 1 1 55%;
  min-width: 360px;
  min-height: 380px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.circle-outline {
  position: absolute;
  top: 16px;
  left: 45px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 20px solid #7e8099;
  opacity: 0.45;
  z-index: 1;
}

.feature-img {
  border-radius: 22px;
  box-shadow: 0 10px 38px rgba(60,60,110,0.16);
  position: absolute;
  object-fit: cover;
  background: #e5eaf5;
}

.child-img {
  top: 0;
  left: -30px;
  width: 210px;
  height: 240px;
  z-index: 2;
}

.woman-img {
  bottom: -12px;
  left: 220px;
  width: 210px;
  height: 230px;
  z-index: 3;
}

/* Responsive feature section */
@media (max-width: 992px) {
  .dental-feature-section {
    flex-direction: column;
    gap: 40px;
  }
  .dental-feature-content {
    text-align: center;
    max-width: 100%;
  }
  .dental-feature-images {
    min-width: 260px;
    min-height: 280px;
  }
}
@media (max-width: 576px) {
  .circle-outline {
    width: 140px;
    height: 140px;
    border-width: 6px;
    top: 20px;
    left: 50px;
  }
  .child-img {
    width: 120px;
    height: 140px;
    left: 35px;
  }
  .woman-img {
    width: 100px;
    height: 110px;
    left: 110px;
    bottom: 0;
  }
}

/* Convenience Section */
.convenience-feature-section {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fdfdfd;
  color: #0a1a4a;
  padding: 80px 10% 40px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.convenience-tagline {
  color: #e87d68;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.convenience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 60px 0;
  max-width: 600px;
}

.convenience-list li {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.3;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 20px;
  text-align: center;
}

.convenience-feature-section .buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Responsive for different devices */
@media (max-width: 992px) {
  .convenience-feature-section {
    padding: 60px 8% 30px 8%;
  }
  .convenience-list li {
    font-size: 32px;
  }
}
@media (max-width: 768px) {
  .convenience-list li {
    font-size: 26px;
  }
  .convenience-feature-section .buttons {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .convenience-list li {
    font-size: 22px;
    margin-bottom: 30px;
  }
}


.gallery-section {
  font-family: 'Segoe UI', Arial, sans-serif;
}

.gallery-section img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-section img:hover {
  transform: scale(1.05);
}

.gallery-thumb {
  cursor: pointer;
  transition: transform 0.3s ease;
  max-height: 240px;
  object-fit: cover;
}
.gallery-thumb:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-section img {
    height: 200px;
  }
}
@media (max-width: 576px) {
  .gallery-section img {
    height: 160px;
  }
}

.about-why-section {
  background-color: #f8f9fa; /* light background to match bg-light */
}

.section-subtitle {
  color: #dc3545; /* red, bootstrap danger */
  font-weight: 600;
  font-size: 1.25rem;
}

.section-title {
  color: #233064; /* same dark blue as banner */
  font-weight: 700;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #333;
}

.about-why-image {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}