.doctors-section {
    padding: 6rem 0;
    background: #fcfcfc;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #333333;
    overflow: hidden;
}
.doctors-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}
.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: #0b2240;
    margin: 0;
}
.doctors-section-title span {
    color: #008080;
}
.doctors-section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666666;
    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: #ffffff;
    border: 1px solid rgba(11, 34, 64, 0.1);
    color: #0b2240;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(6, 26, 53, 0.08);
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.carousel-arrow:hover {
    background: #008080;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 128, 128, 0.25);
    border-color: #008080;
}

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

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

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

.carousel-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dcdcdc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.carousel-dot-btn.active {
    background: #008080;
    width: 24px;
    border-radius: 10px;
}

.doctor-card {
    background: #ffffff;
    border: 1px solid rgba(11, 34, 64, 0.05);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 34, 64, 0.03);
    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);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    will-change: transform, box-shadow;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 34, 64, 0.06), 0 0 20px rgba(0, 128, 128, 0.15); /* Soft teal glow */
}

/* Portrait Container */
.doctor-portrait-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f4faf9;
    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: #008080;
    opacity: 0.8;
}
.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: #008080;
    background: rgba(0, 128, 128, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.doctor-name {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0.2rem 0 0 0;
}
.doctor-specialty {
    font-size: 0.95rem;
    color: #555555;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.doctor-qualification {
    font-size: 0.85rem;
    color: #777777;
    margin: 0 0 0.2rem 0;
    font-style: italic;
    line-height: 1.4;
}
.doctor-schedule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f7faf9;
    border: 1px solid rgba(0, 128, 128, 0.05);
    border-radius: 10px;
    padding: 0.75rem;
    margin-top: auto;
}
.schedule-icon {
    font-size: 1rem;
    color: #008080;
}
.schedule-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0b2240;
}
.doctor-actions {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-top: 1px solid rgba(11, 34, 64, 0.06);
    background: #fafafa;
}
.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: #0b2240;
    background: transparent;
    border-right: 1px solid rgba(11, 34, 64, 0.06);
}
.doctor-btn.btn-outline:hover {
    background: rgba(11, 34, 64, 0.04);
    color: #008080;
}
.doctor-btn.btn-primary {
    color: #ffffff !important;
    background: #008080;
}
.doctor-btn.btn-primary:hover {
    background: #0b2240;
}
.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: #0b2240;
    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;
    }
}
