/* Doctors Tab Container */
.doctors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
    justify-content: start;
}

/* Doctor Card */
.doctor-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 15px;
    width: calc(25% - 30px);
    font-family: 'Montserrat', sans-serif;
    background: white;
    height: 580px;
    overflow: hidden;
    position: relative;
    transition: height 0.4s ease;
}

/* Expanded state */
.doctor-card.expanded {
    height: auto;
}
.doctor-card p {
    line-height: 1.4 !important;
    color: #000000;
    padding-bottom: 10px !important;
}

/* Doctor Image */
.doctor-image {
    text-align: center;
    margin-bottom: 15px;
}
.doctor-image img {
    border-radius: 12px;
    width: 100%;
    height: 300px;
    max-height: 300px;
    object-fit: cover;
    object-position: top center;
}

/* Doctor Name */
.doctor-name {
    margin: 5px 0;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #000000;
    padding-bottom: 8px;
}
.doctor-name i {
    margin-right: 12px;
    color: #2a327b;
    margin-top: -5px;
}

/* Info Rows */
.doctor-info {
    color: #000;
    margin: 8px 0;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
}
.doctor-info i {
    margin-right: 11px;
    color: #2a327b;
    width: 20px;
}

/* Qualifications */
.doctor-qualifications {
    font-size: 16px;
    color: #000;
    margin: 8px 0;
    line-height: 1.4;
}

.doctor-buttons {
    z-index: 9;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    position: sticky;
    bottom: -15px;
    background: white;
    padding-top: 10px;
    padding-bottom: 15px;
}

.doctor-buttons a {
    padding: 8px 15px;
    border: 1px solid #2a327b;
    border-radius: 5px;
    color: #2a327b;
    text-decoration: none;
    font-size: 14px;
}


/* Fade effect for truncated content */
.doctor-card:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}





/*General styling*/
.__hospital_info_box {
    margin-bottom: 30px !important;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 40px !important;
    background: #fff !important;
}

img.__location_icon {
    width: 26px;
}
.__location{
    display: flex;
    align-items: center;
    gap: 10px;
}


.__hospital_info_title {
    position: relative;
    font-size: 26px;
    margin-bottom: 10px;
    display: inline-block;
}
.__hospital_info_title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #2a327b;
    border-radius: 10px;
}
/*.__about .__hospital_info_title::after{*/
/*    width: 84px;*/
/*}*/
/*.__department .__hospital_info_title::after{*/
/*    width: 184px;*/
/*}*/
/*.__awards .__hospital_info_title::after{*/
/*    width: 225px;*/
/*}*/
/*.__expertise .__hospital_info_title::after{*/
/*    width: 360px;*/
/*}*/
/*.__additional .__hospital_info_title::after{*/
/*    width: 265px;*/
/*}*/

#wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links {
    background: #2a327b;
    display: flex;
    gap: 40px;
    margin-top: 12px;
    border-radius: 10px;
    top: 174px;
    position: sticky;
    padding: 8px;
}
#wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links li a {
    padding: 0 !important;
    font-size: 14px;
    color: #fff !important;
    font-family: 'Montserrat';
    letter-spacing: 1px;
}
#wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links li {
    border: none;
    padding: 8px 20px 8px;
}

#wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links .active, #wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links li:hover {
    border-top: none !important;
     border: none !important; 
    background: #fff;
    border-bottom: none !important;
    border-radius: 8px;
}

#wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links .active a, #wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links li:hover a {
    color: #2a327b !important;
    font-weight: 600;
}

#wcfmmp-store .tab_area .tab_links li:hover:after {
    display: none !important;
}

ul.wcfm-departments-list, ul.wcfm-services-list, ul.wcfm-accreditation-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 columns */
  gap: 20px; /* space between items */
  list-style: none; /* remove bullets */
  padding: 0;
  margin: 0;
}

ul.wcfm-departments-list li, ul.wcfm-services-list li, ul.wcfm-accreditation-list li {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 8px;
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.department-card {
  background: #f3f5f8;
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 150px; /* square look */
  display: flex;
  align-items: center;
  justify-content: center;
}

.department-card:hover {
  background: #e8f3ff;
}

.department-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.vendor-accreditation-wrapper {
    margin-top: 16px;
}

.vendor-accreditation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.vendor-accreditation-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.single-accreditation {
    position: relative; /* Needed for tooltip */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-accreditation img {
    max-width: 40px;
    max-height: 40px;
}

.single-accreditation:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom tooltip */
.single-accreditation .custom-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.single-accreditation:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px); /* Slight move up */
}

.vendor-accreditation-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}


.__expertise ul li{
    margin: 0;
    padding: 0 0 12px 0 !important;
    list-style-type: none;
}


.__expertise i {
    color: #2a327b !important;
    font-size: 18px !important;
    margin-right: 10px !important;
}

.amenities-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* exactly 3 per row */
    gap: 12px 20px; /* row + column spacing */
    margin-top: 10px;
}

.amenity-simple {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #000000;
    gap: 10px;
}

.amenity-simple i {
    margin-right: 8px;
    font-size: 18px;
    color: #2a327b !important;
}



.amenity-simple img.amenity-icon {
  width: 32px;
  height: 32px;
}

.__additional div:last-child {
    border-bottom: none !important;
    padding: 20px 0 !important;
}



.doctor-info strong{
    margin-right:5px;
}

#__delete_button.wcfm-action-icon:hover {
    background: #17a2b8;
    color: #fff;
    text-decoration: none;
}


@media (max-width: 768px) {
      .department-grid {
        grid-auto-flow: column;       /* flow items in columns instead of rows */
        grid-auto-columns: 80%;       /* each item takes ~80% of viewport width */
        overflow-x: auto;             /* enable horizontal scrolling */
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    }
    
  
    #wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links {
        flex-direction: column;
        gap: 10px !important;
    }

#wcfmmp-store .single-store-detail-custom-page .tab_area .tab_links_area .tab_links li {
    border: none;
    padding: 12px 20px 12px;
}
.__hospital_info_box {
    padding: 20px !important;
}
.__hospital_info_box p{
    text-align: justify;
}
}

@media (max-width: 480px) {
  .department-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .amenities-simple-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
}

@media (max-width: 576px) {
  .amenities-simple-grid {
    grid-template-columns: 1fr;
    gap: 10px 12px;
  }
}


._doctor_header {
    width: 100%;
    padding: 40px;
    background: transparent;
    margin: 30px 0;
    border: 1px solid #aaaaaa;
    border-radius: 8px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* allow wrapping for smaller screens */
}

.doctor-photo {
    width: 300px;
    max-width: 100%; /* responsive scaling */
    height: auto;
    border-radius: 10px;
}

h1.single-doctor-name {
    font-size: 26px;
}

.single-doctor-summary p {
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.single-doctor-summary p i {
    color: #2a327b;
    font-size: 20px;
    margin-right: 10px;
}

body.single-doctor {
    background: #fff;
}

.doctor-details p {
    margin-bottom: 0px;
}

.single-doctor-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* allow stacking */
}

.doctor-details {
    width: 72%;
}

.single-doctor-wrapper .doctor-sidebar {
    width: 25%;
    margin-bottom: 30px !important;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 40px !important;
    background: #fff !important;
}

.related-doctors {
    margin-top: 30px;
}

.related-doctors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-doctor-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.related-doctor-item img.related-doctor-photo {
    width: 70px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
}

.__hospital_info_box_side {
    margin-bottom: 10px !important;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 14px !important;
    background: #fff !important;
    width: 100%;
}


span.doctor-name_side {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-top: 5px;
    margin-bottom: -5px;
}
span.doctor-designation-side {
    font-weight: 600;
    color: #898989;
}

/* ------------------- Responsive Styles ------------------- */

/* Tablet */
@media (max-width: 991px) {
    .single-doctor-wrapper {
        flex-direction: column; /* stack details & sidebar */
    }

    .doctor-details,
    .single-doctor-wrapper .doctor-sidebar {
        width: 100%;
        max-width: 100%;
    }

    ._doctor_header {
        flex-direction: column;
        margin-top:100px;
    }


    h1.single-doctor-name {
        font-size: 22px;
    }
    .doctor-card {
    width: calc(50% - 20px);
}

}

/* Mobile */
@media (max-width: 768px) {
     .doctor-card {
    width: 100%;
}   
}
/* Mobile */
@media (max-width: 576px) {
    ._doctor_header {
        padding: 20px;
        gap: 20px;
    }

    .doctor-photo {
        width: 100%;
        max-width: 300px;
    }

    h1.single-doctor-name {
        font-size: 20px;
    }

    .single-doctor-summary p {
        font-size: 14px;
    }

    .single-doctor-wrapper .doctor-sidebar {
        padding: 20px !important;
    }
}
