/*--------------- ------------------------header-------------------------------- */

.top-header {
  background-color: #0077b6;
  padding: 12px 0;
  color: white;
  font-size: 15px;
}

.top-header a {
  color: white;
}

.top-header a:hover {
  color: #990707;
}

@media (max-width: 768px) {
  .top-header .container {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .contact-info span {
    display: block;
    width: 100%;
    text-align: left;
  }

  .social-icons {
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 0;
  }
}


/* --------------------------------------navbar------------------------------------------ */

@media (max-width: 991.98px) {
  .navbar-toggler {
    margin-right: 10px;   
  }
  
}
/* Make navbar toggler icon black */
.navbar-dark .navbar-toggler {
  border-color: black;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Make nav links black */
.navbar-nav .nav-link {
   font-size: 18px;
  padding: 8px 12px;
  color: black !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Change color to red on hover */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #1919da !important;
 
}

/* Style dropdown items */
.dropdown-menu .dropdown-item {
   font-size: 18px;
  color: black;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for dropdown items */
.dropdown-menu .dropdown-item:hover {
  background-color: #6d9bcc;
  color: #990707;
}

.navbar .container {
  padding-left: 0;
  padding-right: 0;
}



/*-----------------------------------------carousel---------------------------------------  */

.carousel-item {
  position: relative;
}

/* Make sure images display with same height */
.carousel-item img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay only on image */
.carousel-image-wrapper {
  position: relative;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* adjust as needed */
  z-index: 1;
}

/* Caption stays above image + overlay */
.carousel-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background: transparent; /* no background needed now */
  color: white;
  max-width: 40%;
}


/* Indicators: dots */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fdfdfd;
  opacity: 0.5;
  border: none;
  margin: 0 5px;
  transition: 0.3s;
}

.carousel-indicators .active {
  background-color: #1919da;
  opacity: 1;
}

/* Prev/Next Buttons */
.carousel-control-prev,
.carousel-control-next {
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 1;
  transition: background-color 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

/* Hover color change */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #990707;
}

/* Icon color */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}
.centered-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 10px 20px;
  width: 90%;
  max-width: 700px;
}
.centered-caption p{
    font-size: 18px;
    margin-top: 20px;
}

/* ---------------------------------------grid--------------------------------------- */
@media (max-width: 768px) {
  .big-img {
    width: 100%;
    height: auto;
  }

  .small-img,
  .small-img-wide {
    width: 100%;
    height: auto;
  }

  .d-flex.flex-column.align-items-center.gap-3 {
    gap: 1rem !important;
  }

  .d-flex.justify-content-center.gap-3,
  .d-flex.justify-content-center.align-items-center.gap-3 {
    flex-direction: column;
    align-items: center;
    gap: 1rem !important;
  }

  .d-flex.flex-column.gap-3 {
    flex-direction: row !important;
    justify-content: center;
    gap: 1rem !important;
  }
}

.big-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
}

.small-img {
  width: 120px;
  height: 132px;
  object-fit: cover;
}

.small-img-wide {
  width: 280px;
  height: 132px;
  object-fit: cover;
}


.text-d h1{
 color: #1919da;
}

.text-d p{
  font-size: 18px;
}
.parent-container {
  display: flex;
  justify-content: center;
  align-items: center;
  
}
/* tye writer  */
#typewriter-name::after {
  content: '';
  animation: blink 0.7s infinite;
  color: black; /* or white, depending on background */
  font-weight: bold;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* button */


/*------------------------------------------- services---------------------------------- */

.sev-tot p{
  margin-bottom: 30px;
  font-size: 18px;
}
.card {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}


/* Container styling */
.what-we-do-section {
  background-color: #f8f9fa;
}

.what-we-do-section h3{
  color: #990707;

}
.what-we-do-section h2 {
  
  color: #1919da;
}

/* Custom single card */
.custom-card {
  border-radius: 5%;
  overflow: hidden;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  /* background-color: white; */
  display: flex;
  flex-direction: column;
  width: 95%; /* Full width of column */
  margin: 0 auto;
  border-radius: 10px;
  height: 100%;
}
.custom-card .card_image {
  width: 100%;
  height: 200px; /* Fixed height */
  overflow: hidden;
}
.custom-card .card_image img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gradient background for card content */
 .card_content {
  padding: 36px 10px;
    background: linear-gradient(135deg, #0a0a0a, #f9f9f9);
/* height: -webkit-fill-available;  */
flex-grow: 1; 
}

.card_title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: capitalize;
}

.card_text {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Button styling */
.custom-call-btn {
  background-color: #c92230;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, transform 0.2s;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.custom-call-btn::before {
  content: "";
  position: absolute;
  background: rgba(15, 15, 15, 0.3);
  width: 0;
  height: 300%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.4s ease;
  z-index: -1;
}

.custom-call-btn:hover::before {
  width: 220%;
}







/*----------------------------------- next section------------------------------------- */
.text-section h3{
color:  black;
}
.text-section h2{
color: white;
}
.gradient-section {
 background: linear-gradient(135deg, #274e79, #c3d1e0);
  
}



.text-section p {
  font-size: 1.1rem;
}

.gradient-section .btn {
  background-color: #ffffff;
  color: #6d9bcc;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s ease;
}

.gradient-section .btn:hover {
  background-color: #e2eaf3;
  color: #3d6fa5;
}

/*----------------------------------- 3 card section------------------------------------ */

.hover-card {
  background: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.hover-card .img-wrap {
 position: relative;
  overflow: hidden;
  height: 250px; /* Set a consistent fixed height */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hover-card .img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Black overlay with 40% opacity */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.hover-card:hover .img-wrap::before {
  opacity: 1;
}

.hover-card .img-wrap img {
   width: 100%;
  height: 100%;
  object-fit: cover; /* ensures all images fill equally */
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}


.hover-card:hover .img-wrap img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.card-content h4::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: #0077b6;
  transition: width 0.3s ease;
  margin-top: 4px;
}

.hover-card:hover h4::after {
  width: 60%;
  margin-inline: auto;
}

.card-content p {
  color:  #990707;
  font-size: 0.95rem;
  font-size: 18px;
}


/* --------------------------------------- 6 cards --------------------------------------- */

.doctor-section {
background: linear-gradient(135deg, #274e79, #c3d1e0);
}

.doctor-img {
  max-width: 100%;
  height: auto;
}

.feature-card {
  background-color: white;
  display: flex;
  align-items: center;
  gap: 15px;
  /* padding: 15px 20px; */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  font-weight: 500;
  color: #222;
  width: max-content;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
}

.feature-card .icon {
     width: 174px;
    height: 147px;
}

/* Right side step layout */
.card-one {
  margin-left: 18px;
}
.card-two {
  margin-left: 67px;
}
.card-three {
      margin-left: 121px;
}
.start2{
          padding-left: 19px;
}
/* Left side step layout mirrored */
.start1{
      padding-right: 19px;
}
.left-card-one {
   margin-left: -152px;

}
.left-card-two {
  margin-left: -52px;
}
.left-card-three {
  margin-left: 0px;
}

/* Responsive layout */
@media (max-width: 768px) {
  .card-one, .card-two, .card-three,
  .left-card-one, .left-card-two, .left-card-three {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .feature-card {
    justify-content: center;
    text-align: center;
  }

  .row.align-items-center {
    flex-direction: column;
  }

  .col-md-4, .col-md-3 {
    width: 100%;
  }

  .text-end,
  .text-start {
    text-align: center !important;
  }
}


/* --------------------------------------last section--------------------------------------- */
.review-card{
  margin-top: 20px;
  
}
.testimonial-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-card {
  position: relative; /* Enable absolute positioning inside */
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #b2b7bd);
  
  
  border-radius: 12px;
  padding: 40px 20px 20px 20px;
  box-shadow: 0 0 12px rgba(153, 7, 7, 0.3);
  /* overflow: hidden; */

}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px 10px rgba(153, 7, 7, 0.3); /* corrected syntax */
  border: 3px solid #990707;
}

.testimonial-avatar {
  position: absolute;
  top: -50px; /* moves avatar slightly above the card */
  left: 50%;  /* center horizontally */
  transform: translateX(-50%); /* exact centering */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: url('https://cdn-icons-png.flaticon.com/512/149/149071.png') no-repeat center center;
  background-size: 60%;
  background-color: #fff;
  border: 3px solid #990707;
  z-index: 2;
}


.testimonial-card p{
  font-size: 18px;
  color: black;
}
.testimonial-card h2 {
  color: white;
  margin-top: 40px; /* adjust based on how much space you want */
}

.section-title {
  position: relative;
  display: inline-block;
  padding: 0 20px;
  font-size: 2rem;
  color: #990707;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background-color: #990707;
}

.section-title::before {
  left: -110px;
}

.section-title::after {
  right: -110px;
}



/*------------------------------------- footer section -------------------------------------*/
.footer-l{
  padding-top: 30px;
}
.foot-he{
  text-align: center;
}
.footer-text,
footer p
{
  line-height: 1.8;
  font-size: 18px;
}
footer ul li {
  margin-bottom: 15px; /* space between list items */
  font-size: 18px;

}

footer ul li:last-child {
  margin-bottom: 0; /* optional: remove space after last item */
}
.footer-bottom{
  padding-top: 2px;
}

/* -------------------------------------call and whatsapp symbol--------------------------------------- */

.fixed-buttons {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
    z-index: 9999;
}

.call-btn, .whatsapp-btn {
  position: absolute;
  bottom: 20px;
  background-color: #25D366; /* WhatsApp green */
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.call-btn {
  left: 20px;
  background-color: #25D366; /* Call button red */
}

.whatsapp-btn {
  right: 20px;
}