.doctors-section {
    padding: 6rem 0;
    background: #0A1F3D !important;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle Glowing Background Blobs */
.doctors-section::before, .doctors-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}
.doctors-section::before {
    width: 450px;
    height: 450px;
    background: rgba(0, 229, 255, 0.05);
    top: -50px;
    left: -100px;
    animation: subtleGlowMove 15s ease-in-out infinite;
}
.doctors-section::after {
    width: 400px;
    height: 400px;
    background: rgba(21, 50, 92, 0.2);
    bottom: -80px;
    right: -100px;
    animation: subtleGlowMove 18s ease-in-out infinite;
    animation-delay: -4s;
}

.doctors-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.doctors-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.doctors-section-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
}
.doctors-section-title span {
    color: #00e5ff;
}
.doctors-section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.doctors-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.doctors-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.doctors-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    will-change: transform;
}

/* 3-Layer Card Animation System */
.doctor-card-wrapper {
    opacity: 0;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 25%; /* 4 cards visible by default */
    padding: 0 1rem;
    box-sizing: border-box;
}

.doctor-card-wrapper.animate-card {
    animation: cardFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.doctor-card-float {
    animation: doctorCardFloat 4.8s ease-in-out infinite;
    will-change: transform;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Carousel controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0;
    outline: none;
}

.carousel-arrow:hover {
    background: #00e5ff;
    color: #050b14;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.45);
    border-color: #00e5ff;
}

.carousel-arrow.arrow-prev {
    left: -24px;
}

.carousel-arrow.arrow-next {
    right: -24px;
}

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.carousel-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.carousel-dot-btn.active {
    background: #00e5ff;
    width: 24px;
    border-radius: 10px;
    animation: dotPulse 1.8s infinite ease-in-out;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 4px solid #00e5ff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform, box-shadow;
}

.doctor-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.35);
}

/* Portrait Container */
.doctor-portrait-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.doctor-card:hover .doctor-image {
    transform: scale(1.06);
}
.doctor-placeholder-svg {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.doctor-placeholder-svg svg {
    width: 100%;
    height: 100%;
}
.placeholder-caption {
    position: absolute;
    bottom: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00e5ff;
    opacity: 0.85;
}
.doctor-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}
.doctor-dept-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff !important;
    background: linear-gradient(135deg, #008080 0%, #00a3a3 100%);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.15);
}
.owner-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}
.doctor-name {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.2rem 0 0 0;
}
.doctor-specialty {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.doctor-qualification {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.2rem 0;
    font-style: italic;
    line-height: 1.4;
}
.doctor-schedule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem;
    margin-top: auto;
}
.schedule-icon {
    font-size: 1rem;
    color: #00e5ff;
}
.schedule-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
}
.doctor-actions {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01);
}
.doctor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.doctor-btn.btn-outline {
    color: #ffffff;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.doctor-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #00e5ff;
}
.doctor-btn.btn-primary {
    color: #ffffff !important;
    background: #008080;
}
.doctor-btn.btn-primary:hover {
    background: #00a8a8;
}
.doctors-footer {
    text-align: center;
    margin-top: 4rem;
}
.view-all-doctors-btn {
    display: inline-block;
    padding: 0.95rem 2.65rem;
    background: #008080;
    border: 2px solid transparent;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
}
.view-all-doctors-btn:hover {
    background: #00a8a8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 34, 64, 0.25);
}

/* Animations */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes doctorCardFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsiveness overrides */
@media (max-width: 1200px) {
    .doctors-section-title {
        font-size: 2.4rem;
    }
}
@media (max-width: 992px) {
    .doctor-card-wrapper {
        flex: 0 0 50%; /* 2 cards visible */
    }
    .carousel-arrow.arrow-prev {
        left: -12px;
    }
    .carousel-arrow.arrow-next {
        right: -12px;
    }
}
@media (max-width: 900px) {
    .doctor-portrait-container {
        height: 220px;
    }
}
@media (max-width: 768px) {
    .doctors-section {
        padding: 4rem 0;
    }
    .doctors-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    .doctors-section-title {
        font-size: 2rem;
    }
}
@media (max-width: 576px) {
    .doctor-card-wrapper {
        flex: 0 0 100%; /* 1 card visible */
        padding: 0 0.5rem;
    }
    .carousel-arrow {
        display: none; /* Rely on swipe on mobile */
    }
    .doctor-portrait-container {
        height: 240px;
    }
}

/* Progress Bar styling */
.carousel-progress-bar-container {
    width: 120px;
    height: 3px;
    background: rgba(11, 34, 64, 0.06);
    border-radius: 10px;
    margin: 1.5rem auto 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: #008080;
    border-radius: 10px;
    will-change: width;
}
