/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff8dc; /* light creamy yellow */
  color: #3b2f00;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0px; /* to avoid content under fixed header */
}

/* Header */

header {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #ffeb3b, #fbc02d);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease-in-out;
}

/* Hide header on scroll */
.hide-header {
  transform: translateY(-100%);
}

/* Title bar */
.title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(90deg, #fbc02d, #ffeb3b);
  padding: 15px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.title-bar h1 {
  font-size: 1.8rem;
  color: #5c4000;
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* Navbar */
.navbar {
  max-width: 1200px;
  margin:  0 auto;
  padding: 0 10px;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;
  gap: 5px;
}

.menu > li {
  position: relative;
  flex: 0 0 18%;
  box-sizing: border-box;
  text-align: justify;
}

.menu > li > a {
  display: inline-flex;
  flex-direction: column;
  justify-content: justify;
  align-items: center;
  padding: 10px 5px;
  width: 100%;
  color: #5c4000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
  text-align: center;
}

.menu > li > a i {
  margin-bottom: 4px;
  font-size: 18px;
  color: #b8860b;
  transition: color 0.3s ease;
}

.menu > li:hover > a,
.menu > li > a:focus {
  background-color: #f9a825;
  color: #fff8dc;
  border-bottom-color: #fff8dc;
  border-radius: 5px 5px 0 0;
}

.menu > li:hover > a i,
.menu > li > a:focus i {
  color: #fff8dc;
}

/* Submenu */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  background: #fff8dc;
  min-width: 180px;
  border: 2px solid #fbc02d;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  border-radius: 0 0 5px 5px;
}

.menu > li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu li a {
  display: block;
  padding: 12px 16px;
  color: #5c4000;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid #fbc02d;
  white-space: nowrap;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background-color: #f9a825;
  color: #fff8dc;
}

/* Introduction section */
.introduction {
  max-width: 900px;
  margin: 50px auto 40px;
  padding: 0 15px;
  color: #3b2f00;
  text-align: center;
  
}

.introduction h1 {
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 500;
  color: #b8860b;
}


.introduction h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #b8860b;
}

.introduction p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3b2f00;
  text-align: justify;
}

/* Specializations section */
.specializations {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 15px;
  text-align: center;
  color: #3b2f00;
}

.specializations h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #b8860b;
}

.specialization-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Make cards flexible and responsive */
.specialization-card {
  background: #fff8dc;
  border: 2px solid #fbc02d;
  border-radius: 8px;
  padding: 25px 20px;
  flex: 1 1 220px;      /* grow, shrink, basis */
  max-width: 280px;
  box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  transform: scale(1);
}

.specialization-card:hover {
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.6);
  background-color: #fff3b0;
  transform: scale(1.03);
}

.specialization-card i {
  font-size: 40px;
  color: #b8860b;
  margin-bottom: 15px;
}

.specialization-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.specialization-card p {
  font-size: 1rem;
  line-height: 1.4;
  color: #3b2f00;
}

/* MOBILE SPECIFIC TWEAKS: force single column on narrow screens */
@media (max-width: 480px) {
  .specialization-grid {
    flex-direction: column;
    align-items: center;
  }

  .specialization-card {
    max-width: 90vw;  /* almost full width */
    flex-basis: auto; /* ignore fixed basis to let it grow full width */
  }
}


/* Footer */
footer {
  background: linear-gradient(90deg, #fbc02d, #ffeb3b);
  color: #5c4000;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.1);
  font-size: 14px;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 800px) {
  .specialization-grid {
    flex-direction: column;
    align-items: center;
  }

  .specialization-card {
    max-width: 90%;
  }

  .menu > li {
    flex: 0 0 5%;
  }

  .title-bar h1 {
    font-size: 1.4rem;
  }

  .logo {
    height: 30px;
  }
} 


/* Slider styles apply to all screen sizes */
.image-slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background-color: #fff8dc;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-desc {
  position: absolute;
  bottom: 15px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff8dc;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 16px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fbc02d;
  color: #3b2f00;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.arrow:hover {
  opacity: 1;
  background-color: #f9a825;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}


.image-description-container {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
  gap: 30px;
  color: #3b2f00;
}

.image-description-container img {
  width: 45%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.4);
  transition: transform 0.4s ease, filter 0.4s ease;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* keeps ratio */
}

/* Hover effect on image */
.image-description-container img:hover {
  transform: scale(1.05) rotate(2deg);
  filter: brightness(1.1) saturate(1.2);
}

.image-description-text {
  width: 55%;
}

.image-description-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #b8860b;
  font-weight: 700;
  text-align: center;
}

.image-description-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}


.image-description-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 15px;
  gap: 40px;
  flex-wrap: wrap;
  color: #3b2f00;
}

.image-description-container img {
  flex: 1 1 45%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.4);
  transition: transform 0.4s ease, filter 0.4s ease;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.image-description-container img:hover {
  transform: scale(1.05) rotate(2deg);
  filter: brightness(1.1) saturate(1.2);
}

.image-description-text {
  flex: 1 1 50%;
  text-align: left;
}

.image-description-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #b8860b;
  font-weight: 700;
}

.image-description-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #3b2f00;
}

@media (max-width: 800px) {
  .image-description-container {
    flex-direction: column;
    text-align: center;
  }

  .image-description-container img,
  .image-description-text {
    width: 100%;
    max-width: 100%;
  }

  .image-description-text h2 {
    font-size: 1.5rem;
  }

  .image-description-text p {
    font-size: 1rem;
  }
}

.contact-info {
  background: #fffefa;
  padding: 50px 20px;
  text-align: center;
  color: #3b2f00;
  border-top: 2px solid #fbc02d;
  border-bottom: 2px solid #fbc02d;
}

.contact-info h2 {
  font-size: 2rem;
  color: #b8860b;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.1rem;
  margin: 15px 0;
  flex-wrap: wrap;
}

.contact-item i {
  font-size: 1.4rem;
  color: #f9a825;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: #3b2f00;
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover {
  color: #b8860b;
}

/* phone mock up */

.services-with-description {
  display: flex;
  max-width: 1200px;
  margin: 60px auto;
  gap: 40px;
  padding: 0 15px;
  color: #3b2f00;
}

.left-side {
  flex: 1;
  display: flex;
  justify-content: center;
  /* Phone mockup styles already applied inside .phone-screen */
}

.right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  text-align: left;
}

.right-side h2 {
  font-size: 2rem;
  color: #b8860b;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.right-side p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #3b2f00;
}


/* phone mockup*/

.services-with-description {
  display: flex;
  max-width: 1200px;
  margin: 60px auto;
  gap: 40px;
  padding: 0 15px;
  color: #3b2f00;
}

.left-side {
  flex: 1;
  display: flex;
  justify-content: center;
  /* Phone mockup styles already applied inside .phone-screen */
}

.right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  text-align: left;
}

.right-side h2 {
  font-size: 2rem;
  color: #b8860b;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.right-side p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #3b2f00;
}

/* Phone mockup styles (same as before) */
.phone-screen {
  width: 360px;
  height: 650px;
  background: #fefefe;
  border: 16px solid #b8860b;
  border-top-width: 60px;
  border-bottom-width: 60px;
  border-radius: 40px;
  box-shadow: 0 0 20px rgba(184,134,11,0.6);
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #3b2f00;
  text-align: center;
}

.phone-screen h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #b8860b;
  font-weight: 700;
  letter-spacing: 1px;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.service-card {
  background: #fff8dc;
  border: 2px solid #fbc02d;
  border-radius: 15px;
  padding: 20px 15px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.service-card:hover {
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.6);
  background-color: #fff3b0;
  transform: scale(1.03);
}

.service-card i {
  font-size: 36px;
  color: #b8860b;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.4;
  color: #3b2f00;
  text-align: justify;
}

/* Scrollbar styling for phone screen */
.phone-screen::-webkit-scrollbar {
  width: 6px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: #fbc02d;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .services-with-description {
    flex-direction: column;
    gap: 30px;
  }

  .phone-screen {
    width: 100%;
    height: 600px;
  }

  .right-side {
    padding: 0;
    text-align: center;
  }
}

/* Floating Social Media Icons */
.social-icons {
  position: fixed;
  top: 40%;
  right: 0;
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.social-icons a {
  background-color: #00796b;
  color: white;
  padding: 12px 15px;
  margin: 5px 0;
  text-align: center;
  font-size: 18px;
  border-radius: 8px 0 0 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: #004d40;
  transform: scale(1.1);
}

.social-icons a.facebook {
  background-color: #3b5998;
}
.social-icons a.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icons a.twitter {
  background-color: #1da1f2;
}
.social-icons a.whatsapp {
  background-color: #25d366;
}
.social-icons a.youtube {
  background-color: #ff0000;
}


/* counter */

.counter-section {
  background-color: #fff8dc;
  padding: 50px 20px;
  text-align: center;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.counter-box {
  background: #fff;
  border: 2px solid #fbc02d;
  border-radius: 10px;
  padding: 25px 15px;
  box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3);
  transition: transform 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-5px);
  background-color: #fff3b0;
}

.counter-box i {
  font-size: 36px;
  color: #b8860b;
  margin-bottom: 10px;
}

.counter-box h3 {
  font-size: 2rem;
  color: #5c4000;
  margin: 10px 0;
}

.counter-box p {
  font-size: 1rem;
  color: #3b2f00;
  font-weight: 600;
}


/* two images and desc.*/

.image-description-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 20px;
}

.image-side {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; /* center-align images */
}

.image-side img {
  width: 100%;
  max-width: 400px; /* increased from 300px */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.image-description-text {
  flex: 1.5;
  color: #3b2f00;
}

.image-description-text h2 {
  font-size: 2rem;
  color: #b8860b;
  margin-bottom: 15px;
}

.image-description-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  .image-description-container {
    flex-direction: column;
  }

  .image-side img {
    max-width: 90%;
  }

  .image-side, .image-description-text {
    width: 100%;
    text-align: center;
  }

  .image-description-text p {
    text-align: justify;
  }
}

/* Communication empowering */
.intro-impact-section {
  background-color: #fff8dc;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.impact-container {
  max-width: 1000px;
  text-align: center;
}

.impact-text h2 {
  font-size: 2rem;
  color: #b8860b;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.impact-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3b2f00;
  text-align: justify;
}
/* place holder for clint */

.testimonial-section {
  background-color: #fffefa;
  padding: 60px 20px;
}

.testimonial-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-wrapper h2 {
  font-size: 2rem;
  color: #b8860b;
  margin-bottom: 40px;
  font-weight: 700;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff8dc;
  padding: 30px;
  border: 2px solid #fbc02d;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(251, 192, 45, 0.3);
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.testimonial-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fbc02d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
  flex: 1;
  text-align: left;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3b2f00;
}

.testimonial-author {
  margin-top: 10px;
  font-weight: 700;
  color: #5c4000;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-content {
    text-align: center;
  }
}

/* Static and certifacation */

.clinic-stats-section {
  background-color: #fff8dc;
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #4b3b00;
  text-align: center;
}

.clinic-stats-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #b8860b;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 60px auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 3.5rem;
  color: #fbc02d;
  margin-bottom: 12px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-item h3 {
  font-size: 3rem;
  color: #fbc02d;
  margin-bottom: 10px;
  font-weight: 800;
}

.stat-item p {
  font-size: 1.1rem;
  font-weight: 600;
}

.trust-signals {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.certification {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 140px;
}

.certification img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.certification p {
  font-weight: 600;
  font-size: 1rem;
  color: #5c4000;
}

/* Responsive */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .trust-signals {
    gap: 40px;
  }
}

/* contact bar*/

.floating-contact-icons {
  position: fixed;
  top: 0px;       /* changed from bottom to top */
  right: 20px;     /* keep it on the right side */
  z-index: 9999;
}

.contact-phone {
  display: flex;
  align-items: center;
  background-color: #fbc02d;  /* your yellow/gold */
  color: #3b2f00;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.contact-phone:hover {
  background-color: #fdd835;
  transform: scale(1.05);
}

.contact-phone i {
  font-size: 24px;
  margin-right: 12px;
  color: #3b2f00;
}

.contact-label {
  white-space: nowrap;
  font-size: 14px;
  color: #3b2f00;
}

@media (max-width: 480px) {
  .contact-phone {
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
  }

  .contact-phone i {
    margin: 0;
  }

  .contact-label {
    display: none;
  }
}

/* book an appointment*/
.btn-animated {
  display: inline-block;
  background: linear-gradient(90deg, #0066FF, #00CCFF);
  color: white;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.btn-animated:hover {
  background: linear-gradient(90deg, #00CCFF, #0066FF);
  box-shadow: 0 6px 20px rgba(0, 204, 255, 0.7);
  transform: translateY(-3px);
}

/* grid marquee */

.specializations {
  padding: 10px 20px;
  background-color: #fff8dc;
  text-align: center;
}

.specializations h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #222;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}

.specialization-card {
  flex: 0 0 auto;
  width: 260px;
  margin: 0; /* No gaps between cards */
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  text-align: center;
}

.specialization-card i {
  font-size: 32px;
  color:  #fbc02d; 
  margin-bottom: 10px;
}

.specialization-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #222;
}

.specialization-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

/* Smooth horizontal marquee */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 🔄 Responsive tweaks */
@media (max-width: 600px) {
  .specializations h2 {
    font-size: 22px;
  }

  .specialization-card {
    width: 220px;
    padding: 16px;
  }

  .specialization-card h3 {
    font-size: 16px;
  }

  .specialization-card p {
    font-size: 13px;
  }
}

/*back to top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 16px 22px;      /* Larger padding for easy tapping */
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: background-color 0.3s ease;
  user-select: none;       /* Prevent accidental text selection */
  touch-action: manipulation; /* Improves tap responsiveness */
}

#backToTop:hover {
  background-color: #0056b3;
}

@media (max-width: 480px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* image box */

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.image-box {
  max-width: 100%;
  overflow: hidden;
}


.image-box img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

/* for 3 column address */
.three-column-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #fffaf0;
  padding: 40px 20px;
  color: #3b2f00;
  border-top: 2px solid #fbc02d;
  border-bottom: 2px solid #fbc02d;
  gap: 30px;
}

.contact-column {
  flex: 1 1 30%;
  min-width: 260px;
  background-color: #fffef9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.contact-column:hover {
  transform: translateY(-5px);
}

.contact-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #b8860b;
  font-weight: bold;
}

.contact-column h3 i {
  margin-right: 10px;
  color: #d4af37;
}

.contact-column p,
.contact-column a {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  color: #3b2f00;
  margin-bottom: 10px;
  text-decoration: none;
}

.contact-column a:hover {
  color: #b8860b;
  text-decoration: underline;
}

.contact-column p i {
  margin-right: 8px;
  color: #fbc02d;
}

/* Responsive */
@media (max-width: 768px) {
  .three-column-contact {
    flex-direction: column;
    text-align: center;
  }

  .contact-column {
    flex: 1 1 100%;
  }

  .contact-column h3 {
    font-size: 1.2rem;
  }
}

/*specialzation in 3 colunm*/

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff8dc;
  color: #333;
}

/* Section */
.clinic-stats-section5 {
  background: #fff8dc;
  padding: 60px 20px;
}

/* Grid Layout */
.stats-container5 {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Stat Cards */
.stat-card5 {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card5:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Icons */
.icon {
  font-size: 2.5rem;
  color: #f6b100;
  margin-bottom: 15px;
}

/* Headings & Text */
.stat-card5 h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.stat-card5 p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/*blog page*/

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff8dc;
  color: #002244;
}

.blog-section {
  max-width: 960px;
  margin: 50px auto;
  padding: 20px;
}

.blog-title {
  text-align: center;
  font-size: 2.5rem;
  color: #E6A800; /* Primary brand color */
  margin-bottom: 40px;
  font-weight: bold;
}

.blog-post {
  display: flex;
  flex-direction: row;
  background: #fff8dc;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-image {
  width: 40%;
  object-fit: cover;
  height: auto;
}

.blog-content {
  padding: 20px;
  flex: 1;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #E6A800;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.read-more {
  text-decoration: none;
  color: #E6A800; /* Accent color */
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #007ACC; /* Button/link hover */
}

@media (max-width: 768px) {
  .blog-post {
    flex-direction: column;
  }

  .blog-image {
    width: 100%;
    height: 200px;
  }
}

/* Blog Section */

.blog {
  padding: 5rem 9%;
  background:#fff8dc;
}

.blog .heading {
  text-align: center;
  font-size: 3.5rem;
  color: #E6A800;
  margin-bottom: 3rem;
}

.blog .heading span {
  color: #E6A800; /* Vedanta blue */
}

.blog .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

.blog .box {
  background: #fff8dc;
  border-radius: .5rem;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog .box:hover {
  transform: translateY(-5px);
}

.blog .box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog .content {
  padding: 2rem;
}

.blog .content .icon {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1rem;
}

.blog .content .icon a {
  color: hsl(258, 100%, 45%);
  margin-right: 1rem;
  text-decoration: none;
}

.blog .content h3 {
  font-size: 1.5rem;
  color: #E6A800;
  margin-bottom: 1rem;
}

.blog .content p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.blog .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 2rem;
  background: #E6A800;
  color: #fff;
  font-size: 1.4rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background 0.3s;
}

.blog .btn:hover {
  background: #002855;
}

.blog .btn span {
  margin-left: .5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog {
    padding: 3rem 5%;
  }

  .blog .heading {
    font-size: 2.5rem;
  }

  .blog .box-container {
    grid-template-columns: 1fr;
  }

  .blog .box img {
    height: 200px;
  }

  .blog .content h3 {
    font-size: 1.6rem;
  }

  .blog .content p {
    font-size: 1.3rem;
  }

  .blog .btn {
    font-size: 1.3rem;
    padding: .7rem 1.6rem;
  }
}

