/* === Colors === */
:root {
  --primary: #007f9e;   /* teal blue */
  --secondary: #00b894; /* medical green */
  --dark: #333;
}


/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
}
.top-bar a {
  color: #fff;
  transition: color 0.3s;
}
.top-bar a:hover {
  color: var(--secondary);
}
.social-link {
  color: #fff;
  margin-left: 10px;
}
.social-link:hover {
  color: var(--secondary);
}

/* Navbar */
.navbar {
  background: #fff;
}
.navbar-brand {
  color: var(--primary) !important;
  font-size: 1.3rem;
  font-weight: 700;
}
.navbar-nav .nav-link {
  color: var(--dark) !important;
  margin-right: 15px;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Appointment Button */
.btn-appointment {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 25px;
  transition: background 0.3s ease;
}
.btn-appointment:hover {
  background: var(--primary);
  color: #fff;
}

.flip-card {
  background: transparent;
  width: 100%;
  height: 250px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
}
.flip-card-front {
  background: #dde6f5;
}
.flip-card-back {
  background: #0a58ca;
  color: white;
  transform: rotateY(180deg);
}
.why-card {
  transition: all 0.4s ease;
  border: 2px solid transparent;
}
.why-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #0d6efd;
  box-shadow: 0px 8px 20px rgba(13, 110, 253, 0.2);
}
.icon-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  transition: background 0.3s;
}
.why-card:hover .icon-wrap {
  background: rgba(13, 110, 253, 0.2);
}
  .blog-img {
    width: auto !important;   /* keep original width */
    height: auto !important;  /* keep original height */
    max-width: 100%;          /* prevent overflow on smaller screens */
    display: block;
    margin: 0 auto;           /* center the image */
  }
.achievement-card {
  background: #fff;
  border-radius: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a58ca, #86b7fe);
  color: #fff;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
  .testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #fff;
  }
  .testimonial-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.15);
  }

  .blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.blog-img-wrapper {
  /* height: 220px; */
  overflow: hidden;
}
.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.1);
}

/* Logo Zoom Animation */
.logo-zoom {
  animation: zoomInOut 3s ease-in-out infinite;
}

@keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* layout vars */

.service-card {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.service-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,37,84,0.7);
  opacity: 0; transition: opacity 0.3s ease;
}
.service-card:hover .service-overlay {
  opacity: 1;
}


.hex-circle {
  position: relative;
       width: 500px;
    height: 390px;

  margin: auto;
}

/* Center Logo */
.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.center-logo img {
  width: 200px;
  height: auto;
  animation: zoomLogo 3s infinite ease-in-out;
}
@keyframes zoomLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Hexagons */
.hex {
      width: 150px;
    height: 120px;
  position: absolute;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  outline: 4px solid #0a58ca;   /* ✅ Adds border */
  outline-offset: -4px;         /* keeps border inside */
}

/* Image inside hex */
.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Top border only */
.hex::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 4px;
  background: #0a58ca;
  border-radius: 4px;
}


/* Hexagon positions */
.hex1 { top: 5%; left: 50%; transform: translate(-50%, 0); }
.hex2 { top: 28%; right: 5%; transform: translate(0, -50%); }
.hex3 { top: 72%; right: 5%; transform: translate(0, -50%); }
.hex4 { bottom: 5%; left: 50%; transform: translate(-50%, 0); }
.hex5 { top: 72%; left: 5%; transform: translate(0, -50%); }
.hex6 { top: 28%; left: 5%; transform: translate(0, -50%); }


  .hero-logo {
    max-height: 80px;   /* controls vertical size */
    width: auto;        /* keeps proportions */
  }

  @media (max-width: 576px) {
    .hero-logo {
      max-height: 60px; /* smaller on mobile */
    }
  }


.expertise-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}
.icon-circle {
  width: 70px;
  height: 70px;
 background: linear-gradient(135deg, #0a58ca, #86b7fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.expertise-card:hover .icon-circle {
  background: linear-gradient(135deg, #052554, #0a58ca);
}
.credential-card {
  background: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.credential-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #0a58ca, #01bdb2); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.credential-card:hover .icon-circle {
  transform: rotate(15deg);
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5c;
  color: #fff;
}
 /* ✅ Mobile font size for top bar */
  @media (max-width: 576px) {
    .top-bar {
      font-size: 12px !important;
    }
  }



  @keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-text {
  opacity: 0;
  animation: fadeSlide 1s ease forwards;
}
.animate-text.delay-1 { animation-delay: 0.3s; }
.animate-text.delay-2 { animation-delay: 0.6s; }

/* Button Animation */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-text {
  opacity: 0;
  animation: fadeSlide 1s ease forwards;
}
.animate-text.delay-1 { animation-delay: 0.3s; }
.animate-text.delay-2 { animation-delay: 0.6s; }

/* Button Animation */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.animate-btn {

  animation: bounceIn 1s ease forwards 0.9s;
}

.flip-card {
  perspective: 1000px;
  transition: transform 0.4s ease;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 250px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg) scale(1.05); /* Flip + slight scale */
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
}
.flip-card-front {
  background: #dde6f5;
}
.flip-card-back {
  transform: rotateY(180deg);
  border-radius: 12px;
}

/* Entrance Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-title {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}
.animate-card {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}
.delay-0 { animation-delay: 0.3s; }
.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 0.9s; }

/* 🔹 Gradient Animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-animated,
.cta-animated {
  background: linear-gradient(90deg, #86b7fe, #052554, #86b7fe);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}

/* 🔹 Fade & Zoom Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.fade-up { animation: fadeUp 1s ease forwards; }
.zoom-in { animation: zoomIn 1s ease forwards; }

/* Delay utilities */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }



  @media (max-width: 576px) {
   
.hex1 {
    top: 10%;
    left: 53%;
}

.hex2 {
    top: 35%;
    right: 5%;
}
.hex3 {
    top: 61%;
    right: 5%;
}

.hex4 {
    bottom: 13%;
    left: 53%;
}
.hex5 {
    top: 66%;
    left: 11%;
}
.hex6 {
    top: 37%;
    left: 10%;
}

.hex {
    width: 100px;
    height: 100px;
}.center-logo img {
    width: 118px;
}
  }