/* Vina Derma — Doctors Hero (v2 cinematic) */

.elementor-widget-vina_doctors_hero {
    max-width: 100%;
    overflow-x: clip;
}

.vina-doctors-hero {
    --vdh-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --vdh-duration: 0.85s;
    --vdh-cream: #f5efe7;
    --vdh-navy: #213555;
    --vdh-rose: #a78295;
    --vdh-sand: #efe1d1;
    --vdh-hero-h: max(85vh, 600px);
    --vdh-focal: center 22%;
    --vdh-panel-blur: 24px;

    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--vdh-hero-h);
    min-height: var(--vdh-hero-h);
    overflow: hidden;
    background: var(--vdh-navy);
    color: var(--vdh-cream);
}

.vina-doctors-hero__ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 88% 75%, rgba(167, 130, 149, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 8% 18%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
}

.vina-doctors-hero__slider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vina-doctors-hero__slider .swiper-wrapper {
    height: 100%;
}

.vina-doctors-hero__slide {
    position: relative;
    height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* ── Visual / background layers ── */
.vina-doctors-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--vdh-navy);
}

.vina-doctors-hero__bg {
    position: absolute;
    background-image: var(--vdh-slide-bg);
    background-size: cover;
    background-position: var(--vdh-focal);
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Blurred fill — guarantees zero gaps */
.vina-doctors-hero__bg--fill {
    inset: -12%;
    filter: blur(28px) saturate(1.1);
    transform: scale(1.12);
    opacity: 0.9;
}

/* Sharp foreground image */
.vina-doctors-hero__bg--sharp {
    inset: 0;
    opacity: 1;
    transform: scale(1.04);
}

.vina-doctors-hero--ken-burns .swiper-slide-active .vina-doctors-hero__bg--sharp {
    animation: vdhKenSharp 16s ease-out forwards;
}

@keyframes vdhKenSharp {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

.vina-doctors-hero__sr-image {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Gradient scrims */
.vina-doctors-hero__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vina-doctors-hero__scrim--desktop {
    background: linear-gradient(
        to left,
        rgba(33, 53, 85, 0.93) 0%,
        rgba(33, 53, 85, 0.8) 30%,
        rgba(33, 53, 85, 0.42) 58%,
        rgba(33, 53, 85, 0.12) 100%
    );
}

.vina-doctors-hero__scrim--mobile {
    display: none;
}

/* ── Content stage ── */
.vina-doctors-hero__stage {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.vina-doctors-hero__stage::before,
.vina-doctors-hero__stage::after {
    content: '';
    flex: 1 1 0;
    min-height: clamp(20px, 4vh, 48px);
    pointer-events: none;
}

.vina-doctors-hero__inner {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.vina-doctors-hero__content-wrap {
    width: 100%;
    max-width: 620px;
}

.vina-doctors-hero__content {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    overflow: hidden;
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vina-doctors-hero__content-glass {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.vina-doctors-hero__content-glass__bg {
    position: absolute;
    inset: -28%;
    background-image: var(--vdh-slide-bg);
    background-size: cover;
    background-position: var(--vdh-focal);
    background-repeat: no-repeat;
    filter: blur(var(--vdh-panel-blur)) saturate(1.25);
    transform: scale(1.08);
    will-change: transform;
}

.vina-doctors-hero__content-glass__tint {
    position: absolute;
    inset: 0;
    background: rgba(33, 53, 85, 0.42);
}

.vina-doctors-hero__content-body {
    position: relative;
    z-index: 1;
}

.vina-doctors-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    padding: 7px 16px;
    border: 1px solid rgba(167, 130, 149, 0.4);
    border-radius: 999px;
    background: rgba(167, 130, 149, 0.1);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
}

.vina-doctors-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vdh-rose);
    box-shadow: 0 0 0 3px rgba(167, 130, 149, 0.28);
}

.vina-doctors-hero__name {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
}

.vina-doctors-hero__specialty {
    margin: 0 0 20px;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    color: var(--vdh-rose);
}

.vina-doctors-hero__quote {
    margin: 0 0 28px;
    padding-right: 16px;
    border-right: 2px solid var(--vdh-rose);
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 239, 231, 0.92);
}

.vina-doctors-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vina-doctors-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.35s var(--vdh-ease);
}

.vina-doctors-hero__btn--primary {
    background: var(--vdh-rose);
    color: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(167, 130, 149, 0.4);
}

.vina-doctors-hero__btn--primary:hover {
    background: #fff;
    color: var(--vdh-navy);
    transform: translateY(-2px);
}

.vina-doctors-hero__btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--vdh-sand);
    border: 1.5px solid rgba(239, 225, 209, 0.42);
    border-radius: 999px;
}

.vina-doctors-hero__btn--secondary:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Arrows */
.vina-doctors-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(33, 53, 85, 0.5);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s var(--vdh-ease);
}

.vina-doctors-hero__arrow:hover {
    background: var(--vdh-rose);
    border-color: var(--vdh-rose);
}

.vina-doctors-hero__arrow--prev { right: 24px; }
.vina-doctors-hero__arrow--next { left: 24px; }

/* Pagination */
.vina-doctors-hero__pagination {
    position: absolute;
    bottom: 28px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    box-sizing: border-box;
}

.vina-doctors-hero__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(239, 225, 209, 0.45);
    opacity: 1;
    transition: width 0.35s var(--vdh-ease), background-color 0.35s ease;
}

.vina-doctors-hero__pagination .swiper-pagination-bullet-active {
    width: 30px;
    background: var(--vdh-rose);
}

/* Entrance */
.vina-doctors-hero--animate .vina-doctors-hero__reveal > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--vdh-duration) var(--vdh-ease), transform var(--vdh-duration) var(--vdh-ease);
}

.vina-doctors-hero--animate .swiper-slide-active .vina-doctors-hero__reveal > * {
    opacity: 1;
    transform: translateY(0);
}

.vina-doctors-hero--animate .swiper-slide-active .vina-doctors-hero__badge { transition-delay: 0.06s; }
.vina-doctors-hero--animate .swiper-slide-active .vina-doctors-hero__name { transition-delay: 0.14s; }
.vina-doctors-hero--animate .swiper-slide-active .vina-doctors-hero__specialty { transition-delay: 0.22s; }
.vina-doctors-hero--animate .swiper-slide-active .vina-doctors-hero__quote { transition-delay: 0.3s; }
.vina-doctors-hero--animate .swiper-slide-active .vina-doctors-hero__actions { transition-delay: 0.38s; }

/* Tablet */
@media (max-width: 1024px) {
    .vina-doctors-hero {
        --vdh-hero-h: max(80vh, 540px);
    }

    .vina-doctors-hero__content-wrap {
        max-width: 540px;
    }
}

/* Mobile — portrait editorial */
@media (max-width: 767px) {
    .vina-doctors-hero {
        --vdh-hero-h: max(94svh, 600px);
        --vdh-focal: center 12%;
    }

    .vina-doctors-hero__slide {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        align-content: end;
        overflow: visible;
    }

    .vina-doctors-hero__visual {
        grid-column: 1;
        grid-row: 1 / -1;
    }

    .vina-doctors-hero__bg--fill {
        inset: -15%;
        filter: blur(32px) saturate(1.15);
        transform: scale(1.18);
    }

    .vina-doctors-hero__bg--sharp {
        transform: scale(1.06);
    }

    .vina-doctors-hero--ken-burns .swiper-slide-active .vina-doctors-hero__bg--sharp {
        animation: vdhKenSharpMobile 16s ease-out forwards;
    }

    @keyframes vdhKenSharpMobile {
        from { transform: scale(1.06); }
        to { transform: scale(1.12); }
    }

    .vina-doctors-hero__scrim--desktop {
        display: none;
    }

    .vina-doctors-hero__scrim--mobile {
        display: block;
        background: linear-gradient(
            180deg,
            rgba(33, 53, 85, 0.05) 0%,
            rgba(33, 53, 85, 0.18) 45%,
            rgba(33, 53, 85, 0.65) 75%,
            rgba(33, 53, 85, 0.88) 100%
        );
    }

    .vina-doctors-hero__stage {
        grid-column: 1;
        grid-row: 2;
        display: block;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .vina-doctors-hero__stage::before,
    .vina-doctors-hero__stage::after {
        display: none;
    }

    .vina-doctors-hero__inner {
        width: 100%;
    }

    .vina-doctors-hero__content-wrap {
        max-width: 100%;
    }

    .vina-doctors-hero__content {
        padding: 22px 20px 24px;
        border-radius: 20px;
        margin-bottom: 44px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .vina-doctors-hero__content-glass__tint {
        background: rgba(33, 53, 85, 0.5);
    }

    .vina-doctors-hero__badge {
        margin-bottom: 12px;
    }

    .vina-doctors-hero__name {
        font-size: clamp(1.7rem, 7.5vw, 2.2rem);
        margin-bottom: 8px;
    }

    .vina-doctors-hero__specialty {
        margin-bottom: 10px;
        font-size: 0.92rem;
    }

    .vina-doctors-hero__quote {
        margin-bottom: 18px;
        font-size: 0.84rem;
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .vina-doctors-hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .vina-doctors-hero__btn {
        width: 100%;
        padding: 13px 16px;
        font-size: 0.83rem;
    }

    .vina-doctors-hero__arrow {
        display: none;
    }

    .vina-doctors-hero__pagination {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vina-doctors-hero--ken-burns .swiper-slide-active .vina-doctors-hero__bg--sharp {
        animation: none;
    }

    .vina-doctors-hero--animate .vina-doctors-hero__reveal > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
