
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 70px; 
}


.h-font {
  font-family: "Merienda", "cursive";
}
/* header */
.navbar{
width: 100%!important;
margin: 0 !important;
box-shadow: 0 4px 10px rgba(0,0,0,0.5)!important;
padding: 0!important;
font-size: 25px !important;
}
/* new css header casousel banner */
.banner {
  background: linear-gradient(to right, #5c3a57, #1f2a8c);
  border-radius: 15px;
  padding: 15px; /* smaller padding */
  color: white;
  position: relative;
  overflow: hidden;
  transform: scale(0.9); /* shrink the whole section */
  transform-origin: center; /* keep it centered */
}

.banner h2 {
  font-size: 36px; /* smaller heading */
}

.badge-custom {
  font-size: 16px; /* smaller badge text */
  padding: 4px 8px;
}

.input-group input {
  font-size: 14px;
}

.btn-search {
  font-size: 16px; /* smaller search button */
}

.img-col {
  padding-bottom: 0 !important;
  display: flex;
  justify-content: flex-end; /* push image to the right */
  align-items: center; /* center vertically */
    padding: 0 !important;
}

.doctor-img {
  max-height: 250px;
  width: auto;
  padding: 0px;
  margin-bottom: -25px;
}


@media (max-width: 768px) {
  .banner {
    transform: scale(1); /* no shrinking on small screens */
    padding: 10px;
  }

  .banner h2 {
    font-size: 24px;
  }

  .doctor-img {
    max-height: 180px;
  }
}


     .service-card {
      border-radius: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.5);
      transition: transform 0.3s ease;
      text-align: center;
      padding: 20px;
      background: white;
    }
    .service-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 15px 15px 0 0;
    }
    .service-card:hover {
      transform: translateY(-5px);
    }
    .service-card h5 {
      font-weight: bold;
      margin-top: 15px;
    }
    .service-card p {
      color: #666;
      font-size: 0.95rem;
    }

/* consult best doctor online*/
        .specialist-icon {
      background-color: #f0f7fd;
      border-radius: 50%;
      width: 100px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
    }
    .specialist-text {
      text-align: center;
      font-weight: 500;
    }
    .view-all {
      float: right;
      font-weight: bold;
      margin-top: -40px;
    }
 

    /*-----------------Carousel one--------------*/
 .logo-card {
      padding: 30px;
      text-align: center;
      background-color: #f9f9ff;
      border-radius: 10px;
      height: 100%;
    }

    .logo-card img {
      max-height: 50px;
      object-fit: contain;
      max-width: 100%;
    }

     /*----------------- carousel 2 --------*/

    h2 {
      margin-bottom: 20px;
      font-size: 28px;
    }

    .news-carousel-wrapper {
      position: relative;
    }
    /* .container{
height: 300px!important;

    } */
    .news-carousel-container {
      display: flex;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      gap: 16px;
      padding-bottom: 10px;
    }

    .news-carousel-container::-webkit-scrollbar {
      display: none;
    }

    .news-card {
      flex: 0 0 auto;
      width: 300px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      scroll-snap-align: start;
    }

    .news-card img {
      width: 100%;
      height: 200px;
      object-fit: contain;
      background: #0000FF;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
    }

    .news-card-content {
      padding: 15px;
      font-size: 14px;
      color: #333;
    }

    .news-card-content strong {
      color: #000;
    }

    .news-read-more {
      display: inline-block;
      margin-top: 10px;
      color: #007bff;
      text-decoration: none;
      font-weight: bold;
    }

    .news-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: white;
      border: 1px solid #ccc;
      color: #007bff;
      font-size: 24px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      z-index: 10;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .news-arrow-left {
      left: -20px;
    }

    .news-arrow-right {
      right: -20px;
    }

    @media (max-width: 768px) {
        .doctor-img {
    display: block;
    margin-top: 115px;
    max-height: 100%;
  }
      .news-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
      }

      .news-arrow-left {
        left: 0;
      }

      .news-arrow-right {
        right: 0;
      }
    }
    .news-card {
  display: flex;
  flex-direction: column; /* stack image on top, text below */
  align-items: stretch;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* better for real photos */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.news-card img {
  background-color:#393175; /* fallback */
  display: block; /* prevent inline behavior */
}

/* Footer */

.footer {
  margin-top: 200px;
      background-color: #1c1c1c;
      color: #ccc;
      padding: 25px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      font-size: 20px;
     box-shadow: 0 0 10px rgba(0,0,0,0.1);
     height:150px; 
    }

    .footer a {
      color: #ffa500;
      text-decoration: none;
      font-family: sans-serif;
      font-size: 25px;
    }

    .footer .left p {
      margin: 5px 0;
    }

    .footer .right {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .footer .right span {
      color: white;
      margin-right: 10px;
    }

    .footer .social-icons a {
      color: white;
      margin: 2px;
      font-size: 25px;
      margin-right: 18px;
      transition: color 0.3s;
    }

    .footer .social-icons a:hover {
      color: #ffa500;
    }
    .conntect_us{
      font-size: 25px;
    }
 