/* services */
.service-card {
  background: #f5fbfd;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background-color: #52bad6;
  color: #fff;
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.service-icon img {
  width: 100%;
  max-width: 150px;
  height: auto;
  /*border-radius: 50%;*/
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-footer {
  font-size: 0.85rem;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; 
}

.service-card:hover .service-description,
.service-card:hover .service-footer,
.service-card:hover .service-title {
  color: #fff;
}



@media (max-width: 576px) {
  .service-card {
    padding: 15px;
  }

  .service-title {
    font-size: 1rem;
  }
}

/* services end */

/* four icons start */
.stats-wrapper {
  padding: 36px 0;
}

.stats-container {
  max-width: 1530px;
  margin: 0 auto;
  background: #1783a1;
  border-radius: 15px;
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stat-box {
  flex: 1;
  text-align: center;
  padding: 20px 15px;
  transition: background 0.3s;
  border-radius: 15px;
}

.stat-box:hover {
  background: #283075;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #283075;
  border-radius: 50%;
  /* margin-bottom: 15px; */
  transition: background 0.3s; /* Smooth background color transition */
}

.stat-box:hover .stat-icon {
  background: #1995b7; /* Change only icon background on hover */
}

.stat-icon img {
  width: 40px;
  height: 40px;
}

.stat-number {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 18px;
  color: #ffffff;
  /* margin-top: 6px; */
  font-weight: 600;
}

.divider1 {
  width: 2px;
  height: 70px;
  background: rgba(255, 255, 255, 0.3);
}

/* mobile responsive 4 icons*/
@media (max-width: 1024px) {
  .stats-container {
    flex-wrap: wrap;
    padding: 30px 20px;
    gap: 20px;
  }

  .stat-box {
    flex: 1 1 45%; 
    /* margin-bottom: 20px; */
  }

  .divider1 {
    display: none; 
  }
}

@media (max-width: 600px) {
  .stat-box {
    /* flex: 1 1 100%;  */
  }

  .stat-number {
    font-size: 36px; 
  }

  .stat-label {
    font-size: 16px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-icon img {
    width: 30px;
    height: 30px;
  }
}
/* four icons end*/

/* Doctors start */

    .specialists-section {
      padding: 0px 20px;
      padding-bottom: 47px;
      max-width: 1300px;
      margin: 0 auto;      
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
      flex-wrap: wrap; 
    }
    .section-header h2 {
      font-size: 36px;
      font-weight: 700;
      color: #0b0c4c;
      line-height: 1.2;
      margin: 0; 
    }

    .view-all-btn {
      background: #1783a1;
      color: #fff;
      padding: 12px 25px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      font-size: 16px;
      transition: 0.3s;
    }

    .view-all-btn:hover {
      background: #1783a1;
    }

    .specialist-cards-container {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
    }

    .specialist-card {
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      width: 280px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
      position: relative;
      transition: 0.3s;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }


    .specialist-card:hover {
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .specialist-card:hover .specialist-info h4,
    .specialist-card:hover .specialist-info p {
      color: #ffffff; /* make text white on hover */
    }

    .specialist-card:hover .specialist-info {
      background: #20315d; /* dark blue background on hover */
    }
    .specialist-card:hover .image-wrapper {
      border-color: #20315d; /* dark blue border on hover */
    }

    .specialist-card.active .specialist-info {
      background: #20315d;
    }
    .specialist-card.active .specialist-info h4,
    .specialist-card.active .specialist-info p {
      color: #ffffff;
    }
    .specialist-card.active .appointment-hover-btn {
      transform: translateY(0);
    }
    .specialist-card.active {
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    /* Important: When hovering any card, remove the active styles */
    .specialist-cards-container:hover .specialist-card.active:not(:hover) .specialist-info {
      background: #ECF5FB; /* original background */
    }
    .specialist-cards-container:hover .specialist-card.active:not(:hover) h4,
    .specialist-cards-container:hover .specialist-card.active:not(:hover) p {
      color: #0b0c4c; /* original title color */
    }
    .specialist-cards-container:hover .specialist-card.active:not(:hover) .appointment-hover-btn {
      transform: translateY(100%);
    }

    .image-wrapper {
      position: relative;
      overflow: hidden;
      height: 360px;
      border-top-left-radius: 20px; /* ADD this */
      border-top-right-radius: 20px; /* ADD this */
      border: 4px solid transparent; /* Add transparent border */
      transition: border 0.3s ease-in-out; /* Transition effect for the border */
    }

    .image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-top-left-radius: 20px; /* ADD this */
      border-top-right-radius: 20px; /* ADD this */
    }

    .specialist-card:hover .appointment-hover-btn {
      transform: translateY(0);
    }

    .appointment-hover-btn {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      background: #1783a1;
      padding: 7px 0;
      text-align: center;
      /* border-radius: 0 0 20px 20px;  */
      transform: none; 
      transition: none; 
    }
 

  .appointment-hover-btn a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }


  .specialist-card .appointment-hover-btn {
    transform: none; /* Make sure it is visible */
  }


    .specialist-info {
      padding: 20px;
      background: #ECF5FB;
      text-align: left;
      position: relative;
    }

    .specialist-info h4 {
      margin: 0 0 8px 0;
      font-size: 1.125rem;
      font-weight: 700;
      color: #0b0c4c;
    }

    .specialist-info p {
      margin: 0;
      color: #00bcd4;
      font-weight: 500;
    }

  
    .view-all-btn {
      margin-top: 40px;
      display: inline-block;
      background: #1783a1;
      color: #fff;
      padding: 12px 25px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      font-size: 16px;
      transition: 0.3s;
    }

    .view-all-btn:hover {
      background: #1783a1;
    }

/* Doctors End */



/* News start */
    .blog-section {
        max-width: 1200px;
        margin: auto;
      }

    .blog-header {
      color: #db6b5c;
      font-weight: 600;
      letter-spacing: 1.2px;
      margin-bottom: 10px;
    }

    .blog-title {
      font-size: 2.5rem;
      color: #033a3d;
      margin-bottom: 40px;
    }

    .blog-grid {
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
    }

    .blog-card {
      background-color: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease;
      width: 100%;
      max-width: 360px;
    }

    .image-container {
      overflow: hidden;
    }

    .blog-card img {
        height: 220px;       
        width: 100%;          
        object-fit: cover;   
        border-radius: 8px;   
      }

    .blog-card:hover img {
      transform: scale(1.08);
    }

    .blog-content {
      padding: 20px;
    }

    .blog-content h3 {
      font-size: 1.2rem;
      color: #014236;
      margin-bottom: 10px;
    }

    .blog-content p {
      font-size: 0.95rem;
      color: #666;
      margin-bottom: 15px;
    }

    .read-more {
      font-size: 0.95rem;
      color: #1783a1;
      text-decoration: none;
      font-weight: 500;
    }

    .read-more:hover {
      text-decoration: underline;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .blog-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
      }

      .blog-card {
        max-width: 100%;
        width: 90%;
      }

      .blog-title {
        font-size: 2rem;
        text-align: center;
      }

      .blog-content h3 {
        font-size: 1rem;
        text-align: center;
      }

      .blog-content p,
      .read-more {
        text-align: center;
      }
    }

    /* Small tablets and up */
    @media (min-width: 769px) and (max-width: 1024px) {
      .blog-grid {
        justify-content: center;
      }

      .blog-card {
        flex: 1 1 45%;
        max-width: 45%;
      }
    }

    /* News end */

    .custom-img-padding {
      padding-top: 81px;
    }
   
    @media (max-width: 767.98px) {
      .custom-img-padding {
        padding-top: 0px;
      }
    }
    
    
   .card_widget:hover img {
   filter: brightness(0) invert(1);
   }

   .card_widget:hover p {
   filter: brightness(0) invert(1);
   font-weight: 800;
   font-size: 15px;
   }
    @media only screen and (max-width: 600px) {
     #slider-1{
        display: none;
    }
  }
  .card_widget:hover {
      border: 2px solid #1783a1bf;
      background-color: #1783a1bf;
  }

   .cover-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
  
.counter-box {
  display: block;
 
  padding: 20px;
  text-align: center
}

.counter-box p {
  margin: 5px 0 0;
  padding: 0;
  color: #909090;
  font-size: 18px;
  font-weight: 500
}

.counter-box i {
  font-size: 60px;
  margin: 0 0 15px;
  color: #d2d2d2
}

.counter { 
     display: block;
    font-size: 52px;
    font-weight: 700;
    color: #666;
    line-height: 85px;
}

.bg-theme-colored2 {
    background-color: #20315d !important;
    border-radius: 29px;
}

.counter-box.colored {
      background: #3acf87;
}

.counter-box.colored p,
.counter-box.colored i,
.counter-box.colored .counter {
  color: #fff
}
.tm-sc-testimonials.testimonial-style7-current-theme .tm-testimonial .testimonial-author-details {
    padding: 0px;
    position: relative;
    z-index: 0;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 600px) {
  .dept_img {
   max-height: 89px;
   margin-top: 20px;
  }
  .dept_title{
   font-size: 12px;
  }
  .icon-box.iconbox-default-padding .icon-box-wrapper {
    padding: 20px;
  }
  .icon-box-wrapper{
    height: 179px;
  }
}
.cover-image1{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 41px;
    border-bottom-left-radius: 41px;
  }
  
  .p_text{
  font-size: 17px;
}

/* General card grid layout */


.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
    padding: 20px;
    grid-gap: 40px;
    position: relative;
    z-index: 1;
}

/* Card style */
.card_or {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.18);
}

.details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.details h4 {
    margin-top: auto;
    height: 50px;  /* Or any height that works for you */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card_or {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Make sure each card is fully stretched vertically */
}

/* Image container with specific clip path */
.co_opd {
    position: relative;
    clip-path: polygon(0 0,100% 0, 100% 85%, 0 100%);
}

/* Styling for the card image */
.card_img {
      width: 485px;
    display: block;
    border-radius: 20px 20px 0 0;

}

/* Overlay effect on the image */
.co_opd:after {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
    opacity: 0.7;
}

/* Details section with text */
.details {
    padding: 20px 10px;
}

/* Title styling */
.details > h3 {
    color: black;
    font-weight: 600;
    font-size: 24px; /* Adjusted for better visibility */
    margin: 10px 0 15px 0;
    text-transform: uppercase;
    text-align: center;
}




.card1>.container:after{
    background-image: linear-gradient(
        135deg,
       
    );
}
.card2>.container:after{
    background-image: linear-gradient(
        135deg,
       
    );
}
.card3>.container:after{
    background-image: linear-gradient(
        135deg,
       
    );
}

/* Media query for mobile screens (max-width: 767px) */
@media (max-width: 767px) {
    .cards {
        grid-template-columns: 1fr; /* Stack the cards vertically */
        padding: 10px;
    }

    .card_or {
        border-radius: 15px; /* Slightly smaller border radius for mobile */
    }

    .details > h3 {
        font-size: 20px; /* Adjust title size */
    }
   
   #prev{
    display: none;
   }
    
    #next{
      display: none;
    }

    .card_img {
      width: 100%;
    }
}

/* Media query for tablets (min-width: 768px and max-width: 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr); /* Show 2 cards in a row */
    }
   .card_img {
        width:100% /* Adjust image height */
    }
   .details > h3 {
        font-size: 22px; /* Slightly smaller title size for tablet */
    }
 
  #orho-section{
    position: relative;
    top: -89px;
  }
    
}

/*Media Query 600*/

@media only screen and (max-width: 600px) {
 
  #orho-section{
    position: relative;
    top: -89px;
  }
}

/*Media Query 1440*/

@media only screen and (max-width: 1440px) {
  
  #orho-section{
    position: relative;
    top: -89px;
  }
}


/*Media Query 1024*/

@media only screen and (max-width: 1024px) {
 
  #orho-section{
    position: relative;
    top: 10px;
  }
  .clr{
    height: 580px;
  }
.book-img{
  max-width: 218px !important;
}
}

/* Remove background color, padding, and border from the buttons */
.carousel-control-prev,
.carousel-control-next {
  background: transparent !important;  /* Removes background */
  border: none !important;  /* Removes border */
  padding: 0 !important;  /* Removes extra space/padding */
}

/* Optional: You can also remove the icon background color */
.carousel-control-prev-icon,
.carousel-control-next-icon {
/*  background-color: black; /* Change the icon color if needed */*/
}

 .carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    position: relative;
    left: -40%;
    background-size: 100% 100%;
}
.carousel-control-next-icon{
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    position: relative;
    left: 40%;
    background-size: 100% 100%;
}

@media only screen and (max-width: 600px) {
  .carousel-control-prev-icon {
     width: 16px !important;
  }
  .carousel-control-next-icon{
    width: 16px !important;
  }
}

/* ===== Ticker Wrapper ===== */
.news-ticker-wrap{
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  height: 48px;
  overflow: hidden;
}

/* ===== New Update Label ===== */
.news-ticker-label{
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  background: #dc3545; /* red */
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Blinking highlight */
.blink-highlight{
  animation: blinkBg 1.2s infinite;
}

@keyframes blinkBg{
  0%, 100% { background:#dc3545; }
  50% { background:#ff6b6b; }
}

/* ===== Marquee ===== */
.news-ticker{
  flex: 1;
  overflow: hidden;
}

.news-ticker-track{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: tickerMove 18s linear infinite;
}

.news-item{
  font-size: 14px;
  color: #212529;
  line-height: 1;
}

/*.news-dot{*/
/*  margin: 0 16px;*/
/*  color: #adb5bd;*/
/*}*/

/* Pause on hover */
.news-ticker-wrap:hover .news-ticker-track{
  animation-play-state: paused;
}

/* ===== Click Here Blink ===== */
.blink-link{
  margin-left: 8px;
  font-weight: 700;
  color: #0d6efd;
  text-decoration: underline;
  animation: blinkText 1s infinite;
}

@keyframes blinkText{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Animation ===== */
@keyframes tickerMove{
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* Mobile */
@media (max-width:576px){
  .news-item{ font-size:13px; }
  .news-ticker-wrap{ height:44px; }
}
