/* Doctor Carousel Styles */
.doctor-carousel {
    position: relative;
    margin: 0 auto;
    display: none; /* Hide until initialized */
}

.doctor-carousel.owl-loaded {
    display: block; /* Show after initialization */
}

/* Basic Owl Carousel Structure */
.owl-carousel {
    position: relative;
    display: none;
    width: 100%;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
}

.owl-carousel.owl-loaded {
    display: block;
}

.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -moz-backface-visibility: hidden;
}

.owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0px, 0px, 0px);
    transform: translate3d(0px, 0px, 0px);
}

.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Doctor Card Styles */
.doctor-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.doctor-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-photo {
    transform: scale(1.05);
    border-color: #0056b3;
}

.doctor-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.doctor-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doctor-name a:hover {
    color: var(--primary-color);
}

.doctor-specialty {
    font-size: 16px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f8f9fa;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Legacy styles for backward compatibility */
.doctor-carousel .item {
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.doctor-carousel .item:hover {
    transform: translateY(-5px);
}

.doctor-carousel .thumb {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doctor-carousel .photo {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.doctor-carousel .item:hover .photo {
    transform: scale(1.05);
}

.doctor-carousel .text {
    padding: 0 10px;
}

.doctor-carousel .text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.doctor-carousel .text h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doctor-carousel .text h3 a:hover {
    color: var(--primary-color);
}

.doctor-carousel .text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.doctor-carousel .social-icons {
    margin-top: 15px;
}

.doctor-carousel .social-icons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.doctor-carousel .social-icons li {
    display: inline-block;
}

.doctor-carousel .social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #f8f9fa;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doctor-carousel .social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Owl Carousel Navigation */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.owl-prev,
.owl-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333 !important;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.owl-prev {
    left: -20px;
}

.owl-next {
    right: -20px;
}

.owl-prev:hover,
.owl-next:hover {
    background: var(--primary-color) !important;
    color: var(--light-color) !important;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doctor-carousel .photo {
        height: 200px;
    }
    
    .owl-prev {
        left: 10px;
    }
    
    .owl-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .doctor-carousel .item {
        padding: 10px;
    }
    
    .doctor-carousel .photo {
        height: 180px;
    }
    
    .doctor-carousel .text h3 {
        font-size: 16px;
    }
    
    .doctor-carousel .text p {
        font-size: 13px;
    }
}

.doctor-card:hover .doctor-photo {
    /* background-color: red; */
    border-color: #1ad4c2;

}

