﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    padding: 15px;
}

h4.mb-4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem !important;
}

/* Doctor Slider Container */
.doctor-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
/*    -webkit-overflow-scrolling: touch;*/
}

/*    .doctor-slider::-webkit-scrollbar {
        display: none;
    }*/
/*
.doctor-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}*/

/* Doctor Card */
.doctor-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
}

@media (min-width: 768px) {
    .doctor-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (min-width: 992px) {
    .doctor-card {
        flex: 0 0 calc(50% - 14px);
    }
}

/* Card Styling */
.specialist-card {
    border-radius: 14px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}

/* Instant Badge */
.instant-badge {
    background: #0c0c3a;
    color: #fff;
    padding: 10px 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Card Body - Mobile Optimized */
.card-body {
    padding: 10px 20px 20px 20px !important;
}

.doctor-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

@media (min-width: 576px) {
    .doctor-img {
        width: 110px;
        height: 110px;
    }
}

/* Doctor Info */
.flex-grow-1 h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.speciality {
    font-size: 12px;
    font-weight: 700;
    color: #f39c12 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

/* Meta Info - Stack on mobile */
.meta {
    font-size: 15px;
    color: #555;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    row-gap: 8px;
}

    .meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

/* Book Button */
.book-btn {
    background: #0c0c3a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 7px;
    border-radius: 8px;
    border: none;
    width: 90%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

    .book-btn:hover {
        color: white !important;
        background: #060628;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .card-body {
        flex-direction: column;
        text-align: center;
    }

    .doctor-img {
        margin-bottom: 15px;
        margin-right: 0 !important;
    }

    .meta {
        justify-content: center;
        gap: 35px;
    }
        .meta span {
          
            gap: 0px;
        }
    .flex-grow-1 {
        width: 100%;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .doctor-slider {
        margin: 0; 
        padding: 15px;
        width: 100%;
        gap: 15px; 
    }

    .doctor-card {
        flex: 0 0 100%; /* full width of slider */
        max-width: 100%; /* ensure it doesn't shrink */
        margin: 0; /* remove auto margin */
    }

    .doctor-slider {
        padding-left: 0;
        padding-right: 0;
        gap: 0; /* optional: ensures only 1 card fully visible */
    }
    .ml-24 {
        margin-left: 0px !important;
    }
    .doctor-img{
        margin-left: 0px !important;
    }
   
}
@media (max-width: 767px) {
    .doctor-card {
        flex: 0 0 calc(100% - 16px); /* slightly less than full width */
        margin-right: 16px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .doctor-img {
        width: 110px !important;
        height: 110px !important;
    }

    .card-body {
        padding: 15px !important;
    }
}


.dr-name {
    color: #0c0c3a;
    font-weight: bolder;

}

.ml-24{
    margin-left:24px !important;
}
.icon-svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
    background: none !important;
}

.top-heading {
    font-weight: 800;
    color: #0c0c3a !important;
    font-size: 20px;
    margin-bottom: 0px !important;
}


.specialist-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease
}
    .specialist-card .card-body {
        padding: 20px 24px;
    }
    .specialist-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 20px 60px rgba(0, 0, 0, 0.12);
    }
.doctor-slider {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 14px;
    padding: 16px;
    border-radius: 12px;
    cursor:default;
}

.doctor-slider,
.doctor-card,
.specialist-card,
.card-body,
.flex-grow-1 {
    cursor: default !important;
}
.doctor-slider {
    padding-left: 10px;
    padding-right: 10px;
}
@media (min-width: 992px) {
    .doctor-slider {
        justify-content: center;
    }
}
.specialist-card .card-body {
    display: flex;
    align-items: center;
}
.specialist-card .flex-grow-1 {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.button-container {
    margin-top: auto;
}
.mt-auto{
    margin-top: auto;

}
