/*CSS of specialites*/

.tablist {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0d96b;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    padding-bottom: 10px; /* Optional: space to keep scroll bar from touching tabs */
    max-width: 100%; /* Prevents tab container from overflowing */
}

/* Hide the scrollbar */
.tablist::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* Tab styling */
.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color:white;
    border: 2px solid #f0d96b;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap; /* Prevent text from wrapping */
    width: auto; /* Let tabs resize based on their content */
}

/* Active tab styling */
.tab[aria-selected="true"] {
    background-color: #f0d96b;
    color: rgb(0, 0, 0);
    outline: none;
    
}

/* Hover effect for tabs */
.tab:hover {
    background-color: #f0d96b;
    color: white;
    outline: none;

}

/* Panel styling */
.tabpanel {
    display: none;
    padding: 20px;

    border-radius: 0 0 5px 5px;
    background-color: white;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tabpanel[aria-hidden="false"] {
    display: block;
}

/* Additional styling for headings and paragraphs */
h3 {
    font-size: 20px;
    color: #333;
}

p {
    font-size: 16px;
    color: #555;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    /* Center the tabs horizontally */
    .tablist {
        justify-content: flex-start; /* Ensure tabs are aligned to the left for small screens */
    }

    .tab {
        margin-right: 5px;
        text-align: center; /* Ensure the text is centered inside tabs */
        width: auto; /* Let tabs resize based on their content */
    }
}

/* For even smaller mobile screens */
@media (max-width: 480px) {
    .tab {
        font-size: 14px; /* Make text smaller for very small screens */
    }
}

/*CSS of specialites end here */



/*css of cards */

.card_det{

    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    padding-top: 30px;
    
}

/* Card Styles */
.card {
    position: relative;
    width: 300px;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px; /* Space between cards horizontally */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Image Style */
.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 5px solid #f0d96b;
}

/* Content Area Styles */
.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    color: #333;
    margin: 0;
    text-transform:uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-description {
    font-size: 1em;
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}

/* Button Style */
.view-profile-btn {
    position: absolute;   /* Position the button absolutely within the .card */
    bottom: 10px;         /* 10px from the bottom */
    left: 10px; 
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0d96b;
    color: black;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(188, 173, 97, 0.3);
}

.view-profile-btn-right{

    position: absolute;   /* Position the button absolutely within the .card */
    bottom: 10px;         /* 10px from the bottom */
    right: 10px; 
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0d96b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(188, 173, 97, 0.3);
}

.view-profile-btn-right:hover{

    background-color: #9e8c4f;
    transform: translateY(-3px);
}

.view-profile-btn:hover {
    background-color: #9e8c4f;
    transform: translateY(-3px);
}

/*css of cards ends here*/


/*Career Section css*/

.career-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.5rem;
    cursor: pointer;
    background-color: #f0d96b;
    width: 90%;
    height: 150px;
    margin : 20px;
    align-items:center;
    border-left: 7px solid #b69b15;
    
  }
  .career-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 10px 20px #000000;
  }

/*end of career section css */

/*card sep section home */

.scroll-container {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .scroll-container::-webkit-scrollbar {
    display: none;
  }

  .sep-card {
    width: 300px;

    background: #f0d96b;
    border-radius: 1.5rem;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: 0.3s;
  }

  .sep-card a{

    color: black;
  }

  .sep-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .sep-icon {
    width: 100px;
    height: 100px;
    background: black;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    overflow: hidden;
   
  }

 
  /*end of card sep section home */

  /*blog grid section */

    
  .blog-card {
      border: none;
      width: 350px;
      height:400px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      transition: transform 0.3s;
    }

    .blog-card:hover {
      transform: translateY(-5px);
    }

    .blog-category {
      font-size: 0.75rem;
      text-transform: uppercase;
      color: #425563;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .blog-title {
      color: #f0d96b; /* NHS Blue */
      font-size: 1.1rem;
      font-weight: 600;
    }

    .blog-image {
      width: 100%;
      height: 200px;
      aspect-ratio: 1 / 1; /* Makes it perfect square */
      object-fit: cover;
    }

    .blog-description {
      color: #6c757d;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
    }

    .read-more {
      color: #f0d96b;
      font-weight: 600;
      text-decoration: none;
      position: absolute;   /* Position the button absolutely within the .card */
    bottom: 10px;         /* 10px from the bottom */
    left: 10px; 
    display: inline-block;
    }

    .read-more:hover {
      text-decoration: underline;
    }

   /*end of blog grid section */

   /*Home page slider image*/

   .icon-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: 0.3s;
}
.icon-box:hover {
    background-color: #e2e6ea;
}
.banner-title {
    
    padding:0px;
    
    display: inline-block;
    animation: fadeInLeft 1s ease-in-out;
    border-radius: 15px;
}
.banner-title h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #c7ad2a;
    border-radius: 15px;
    
}
.banner-title p {
    color: #ffffff;
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 10px;
    
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 0.8;
        transform: translateX(0);
    }
}
.carousel-indicators [data-bs-target] {
    background-color: #f0d96b;
}
.progress-bar-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: #f0d96b;
    animation: progressBar 5s linear infinite;
}
@keyframes progressBar {
    from {width: 0%;}
    to {width: 100%;}
}
.carousel-caption {
    text-align: left;
    left: 10%;
    right: auto;
}

.btn-primary {
background-color: #a18a16;
border-color: #a18a16;
color: #000; /* Optional: for dark text */
}

.btn-primary:hover {
background-color: #856d06; /* Slightly darker shade for hover */
border-color: #856d06;
color: #000;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}


   /*end of homepage slider*/

   /* Dropdown Hover Show */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    transition: 0.3s ease-in-out;

  }
  
  /* Dropdown Styling */
  .dropdown-menu {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .dropdown-menu:hover  {

    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* Dropdown Item Styling */
  .dropdown-menu .dropdown-item {
    padding: 8px 20px;
    color: #222;
    font-size: 1.1rem;
    font-weight: 500;
    transition:0.3s;
    
  }
  
  /* Hover Effect */
  .dropdown-menu .dropdown-item:hover {
    background-color: #f0d96b;
    color: #000;
    border-radius: 5px;
  }

   /*End of Dropdown Hover Show */

   /*servoce sectionn */

   .services-section {
    padding: 60px 0;
    background-color: #fefefe;
  }
  .service-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .service-icon  a{
    font-size: 40px;
    color: #f0d96b;
    margin-bottom: 20px;
  }
  .service-title a {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
  }


  .service-desc {
    color: #666;
    font-size: 0.95rem;
  }
  .section-title {
    text-align: center;
    margin-bottom: 50px;
  }
  .section-title h2 {
    font-weight: 700;
    color: #2c3e50;
  }
  .section-title span {
    color: #f0d96b;
  }



  /*why choose nhs*/

  
     .circle-wrapper-hospital {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 40px auto;
  }

  .center-image-hospital {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid #f0d96b;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }

  .reason-point-hospital {
    position: absolute;
    width: 150px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transform: translate(-50%, -50%);
  }

  .reason-point-hospital a {
    display: block;
    color: #333;
    text-decoration: none;
    background: #fff8d0;
    border: 2px solid #f0d96b;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }

  .reason-point-hospital a:hover {
    background-color: #f0d96b;
    color: #000;
    transform: scale(1.05);
  }

  .description-hospital {
    font-size: 12px;
    font-weight: normal;
    margin-top: 6px;
    color: #555;
  }

  /* Position each point around the circle */
  .point1 { top: 30px; left: 300px; }
  .point2 { top: 100px; left: 480px; }
  .point3 { top: 300px; left: 570px; }
  .point4 { top: 500px; left: 480px; }
  .point5 { top: 570px; left: 300px; }
  .point6 { top: 500px; left: 120px; }
  .point7 { top: 300px; left: 30px; }
  .point8 { top: 100px; left: 120px; }

  .circle-wrapper-hospital svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
  }


  @media (max-width: 768px) {
  .circle-wrapper-hospital {
    width: 100%;
    height: auto;
    padding: 30px 10px;
  }

  .circle-wrapper-hospital svg {
    display: none; /* Hide lines on small screens */
  }

  .center-image-hospital {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 30px;
    display: block;
  }

  .reason-point-hospital {
    position: static;
    transform: none;
    margin: 10px auto;
    width: 90%;
  }

  .reason-point-hospital a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    font-size: 16px;
  }

  .description-hospital {
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
  }
}

  /*end of why choose nhs*/


  /*social media icon colors*/

  .social_box a {
  display: inline-block;
  font-size: 20px;
  margin: 0 8px;
  transition: transform 0.3s ease;
}

.social_box a:hover {
  transform: scale(1.2);
}

.social_box a.facebook i {
  color: #3b5998; /* Facebook Blue */
}

.social_box a.twitter i {
  color: #55acee; /* Twitter Blue */
}

.social_box a.linkedin i {
  color: #0077b5; /* LinkedIn Blue */
}

.social_box a.instagram i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social_box a.youtube i {
  color: #ff0000; /* YouTube Red */
}
