/* ==========================================================================
   DOCTOR TEAM SLIDER CSS (Balagam Dental & Medical Clinic Brand Colors)
   Brand Palette:
   - Balagam Brand Red: #E31B23 / #C5131B
   - Royal Medical Blue: #005CA9 / #0067B6
   - Dental Luminous Cyan: #00AEEF / #00C7F4
   - Clinical Deep Navy: #09223A / #0B1F3A / #0B2545
   - Soft Clinical Slate: #5A7184 / #42586A
   ========================================================================== */

:root {
    --slider-brand-red: #E31B23;
    --slider-brand-red-hover: #C5131B;
    --slider-brand-red-light: #FFF1F2;
    --slider-brand-blue: #005CA9;
    --slider-brand-blue-hover: #004B8A;
    --slider-brand-cyan: #00AEEF;
    --slider-brand-cyan-bright: #00C7F4;
    --slider-brand-cyan-light: #E6F8FE;
    --slider-brand-navy: #09223A;
    --slider-brand-dark-text: #0B2545;
    --slider-text-muted: #5A7184;
    --slider-border-subtle: #E2ECF3;
    --slider-bg-light: #F8FBFE;
}

.doctor-team-slider-section {
    position: relative;
    background: var(--slider-bg-light);
    background-image:
        radial-gradient(circle at 8% 15%, rgba(0, 174, 239, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 92% 85%, rgba(0, 92, 169, 0.05) 0%, transparent 45%);
    padding: 85px 24px 95px;
    border-top: 1px solid var(--slider-border-subtle);
    border-bottom: 1px solid var(--slider-border-subtle);
    overflow: hidden;
}

.doctor-team-slider-container {
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
}

/* Header with Eyebrow, Main Title, and Top-Right Circular Navigation Arrows */
.doctor-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    gap: 24px;
}

.doctor-slider-header-left {
    max-width: 780px;
}

/* Eyebrow Accent Line Style matching website sections */
.doctor-slider-header .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.doctor-slider-header .section-tag span:not(.tag-accent) {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slider-brand-blue, #005CA9);
}

.doctor-slider-header .tag-accent {
    width: 26px;
    height: 3px;
    background: var(--slider-brand-blue, #005CA9);
    border-radius: 2px;
    display: inline-block;
}

/* Elegant Editorial Serif Heading matching screenshot */
.doctor-team-heading {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem) !important;
    font-weight: 700 !important;
    color: var(--slider-brand-navy, #09223A) !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.01em !important;
}

.doctor-team-subhead {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.98rem !important;
    color: var(--slider-text-muted, #5A7184) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    max-width: 680px !important;
}

/* Eyebrow Badge with Brand Red Pulse Dot */
.doctor-slider-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #EBF4FA;
    border: 1px solid rgba(0, 92, 169, 0.2);
    color: var(--slider-brand-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.eyebrow-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slider-brand-red);
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.2);
    animation: pulseRedDot 2.2s infinite ease-in-out;
}

@keyframes pulseRedDot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.25);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(227, 27, 35, 0);
    }
}

/* Heading in Deep Clinical Navy with Royal Blue & Cyan Highlight */
.doctor-slider-heading {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: var(--slider-brand-navy);
    line-height: 1.22;
    margin: 0 0 10px;
    letter-spacing: -0.015em;
}

.doctor-heading-accent {
    color: var(--slider-brand-blue);
    position: relative;
    display: inline;
    background: linear-gradient(135deg, #005CA9 0%, #0084D1 50%, #00AEEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doctor-slider-subheading {
    font-size: 0.96rem;
    color: var(--slider-text-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
}

/* Circular (←) and (→) Navigation Arrows in Brand Blue & Cyan Glow */
.doctor-slider-nav-arrows {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.slider-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--slider-brand-blue);
    background: #ffffff;
    color: var(--slider-brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 10px rgba(0, 92, 169, 0.08);
}

.slider-arrow-btn svg {
    transition: transform 0.2s ease;
}

.slider-arrow-btn:hover {
    background: linear-gradient(135deg, #005CA9 0%, #0077B6 60%, #00AEEF 100%);
    color: #ffffff;
    border-color: #005CA9;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 92, 169, 0.28);
}

.slider-arrow-btn:active {
    transform: translateY(0);
}

.slider-arrow-btn.prev-btn:hover svg {
    transform: translateX(-2px);
}

.slider-arrow-btn.next-btn:hover svg {
    transform: translateX(2px);
}

.slider-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #cbd5e1;
    color: #94a3b8;
    background: #f1f5f9;
    transform: none;
    box-shadow: none;
}

/* Viewport and Carousel Track */
.doctor-slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.doctor-slider-viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}

.doctor-slider-track {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 28px;
}

.doctor-slider-track::-webkit-scrollbar {
    display: none;
}

/* Doctor Slide Card */
.doctor-slide-card {
    flex: 0 0 calc((100% - 52px) / 3);
    min-width: 320px;
    height: 480px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #EBF2F7;
    scroll-snap-align: start;
    border: 1px solid var(--slider-border-subtle);
    box-shadow: 0 10px 26px rgba(9, 34, 58, 0.07);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.doctor-slide-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 174, 239, 0.5);
    box-shadow: 0 20px 45px rgba(0, 92, 169, 0.16);
}

/* Full bleed Portrait Image */
.doctor-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.doctor-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-slide-card:hover .doctor-card-media img {
    transform: scale(1.035);
}

/* Top Right Share Widget in Deep Navy & Cyan Aura */
.doctor-share-widget {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-pill-container {
    background: #09223A;
    border: 1px solid rgba(0, 174, 239, 0.25);
    border-radius: 28px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(9, 34, 58, 0.28);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-btn-trigger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #09223A;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.share-btn-trigger:hover {
    background: #005CA9;
    color: #00C7F4;
    transform: scale(1.08);
}

/* Vertical Social Stack */
.share-social-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* Expanded state: on card hover or widget hover/click */
.doctor-share-widget:hover .share-social-stack,
.doctor-share-widget.active .share-social-stack,
.doctor-slide-card:hover .doctor-share-widget .share-social-stack {
    max-height: 180px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 4px;
    padding-bottom: 6px;
}

.share-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.share-social-link:hover {
    background: #00AEEF;
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

/* Bottom Frosted Translucent Overlay Badge */
.doctor-frosted-pill {
    position: absolute;
    bottom: 18px;
    left: 16px;
    right: 16px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(9, 34, 58, 0.09);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
}

.doctor-slide-card:hover .doctor-frosted-pill {
    background: #ffffff;
    border-color: rgba(0, 174, 239, 0.5);
    box-shadow: 0 14px 34px rgba(0, 92, 169, 0.18);
    transform: translateY(-2px);
}

.doctor-pill-name {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slider-brand-navy);
    margin: 0 0 4px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.degree-highlight {
    color: var(--slider-brand-blue);
    font-weight: 800;
}

.doctor-pill-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slider-text-muted);
    margin: 0;
    line-height: 1.35;
}

/* Card Bottom View Profile Accent (subtle pill prompt on hover) */
.doctor-pill-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slider-brand-blue);
    margin-top: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
}

.doctor-slide-card:hover .doctor-pill-link-arrow {
    opacity: 1;
    transform: translateY(0);
    color: var(--slider-brand-red);
}

/* Footer Action (Explore all specialists button in Royal Blue + Red Hover) */
.doctor-slider-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.doctor-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: linear-gradient(135deg, #005CA9 0%, #0077B6 60%, #00AEEF 100%);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 92, 169, 0.25);
    transition: all 0.28s ease;
}

.doctor-view-all-btn:hover {
    background: linear-gradient(135deg, #E31B23 0%, #C5131B 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(227, 27, 35, 0.35);
}

.doctor-view-all-btn svg {
    transition: transform 0.2s ease;
}

.doctor-view-all-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
    .doctor-slide-card {
        flex: 0 0 calc((100% - 26px) / 2);
        min-width: 300px;
        height: 460px;
    }
}

@media (max-width: 768px) {
    .doctor-team-slider-section {
        padding: 60px 16px 70px;
    }

    .doctor-slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
    }

    .doctor-slider-header-left {
        width: 100%;
    }

    .doctor-slider-nav-arrows {
        align-self: flex-end;
    }

    .doctor-slider-heading {
        font-size: 1.75rem;
    }

    .doctor-slide-card {
        flex: 0 0 85%;
        min-width: 270px;
        height: 430px;
    }

    .doctor-pill-name {
        font-size: 1rem;
    }

    .doctor-pill-title {
        font-size: 0.8rem;
    }

    /* Keep social stack always visible on mobile card tap */
    .doctor-share-widget.active .share-social-stack {
        max-height: 180px;
        opacity: 1;
        pointer-events: auto;
    }
}