/* Homepage hero and the doctor profile immediately below it.
   Existing global website styles and all later homepage sections remain unchanged. */
.homepage-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(650px, calc(100vh - 86px), 900px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #dff7f6;
}

.homepage-hero__slides,
.homepage-hero__slide,
.homepage-hero__overlay {
    position: absolute;
    inset: 0;
}

.homepage-hero__slides {
    z-index: -3;
    overflow: hidden;
}

.homepage-hero__slide {
    opacity: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.015);
    transition: opacity .75s ease, transform 6.5s ease;
    will-change: opacity, transform;
}

.homepage-hero__slide--teal {
    background-image:
        radial-gradient(circle at 82% 26%, rgba(255,255,255,.88) 0 9%, transparent 10%),
        radial-gradient(circle at 88% 78%, rgba(125,211,252,.58) 0 18%, transparent 19%),
        linear-gradient(120deg, #e9fffe 0%, #c8f5ec 48%, #b9e9ff 100%);
}

.homepage-hero__slide--blue {
    background-image:
        radial-gradient(circle at 82% 20%, rgba(255,255,255,.78) 0 12%, transparent 13%),
        radial-gradient(circle at 91% 81%, rgba(110,231,183,.62) 0 21%, transparent 22%),
        linear-gradient(125deg, #eefcf9 0%, #d3e9ff 54%, #b8d8ff 100%);
}

.homepage-hero__slide--mint {
    background-image:
        radial-gradient(circle at 75% 31%, rgba(255,255,255,.82) 0 11%, transparent 12%),
        radial-gradient(circle at 94% 74%, rgba(103,232,249,.52) 0 19%, transparent 20%),
        linear-gradient(120deg, #f7fbfc 0%, #c9f5df 50%, #c6f4fa 100%);
}

.homepage-hero__slide.is-active {
    opacity: 1;
    transform: scale(1.085);
}

/* The image remains visible. The gradient is strongest only behind the text. */
.homepage-hero__overlay {
    z-index: -2;
    background: linear-gradient(
        90deg,
        rgba(240,252,252,.94) 0%,
        rgba(240,252,252,.82) 38%,
        rgba(240,252,252,.34) 68%,
        rgba(240,252,252,.06) 100%
    );
}

.homepage-hero--has-image .homepage-hero__overlay {
    background: linear-gradient(
        90deg,
        rgba(7,27,40,.58) 0%,
        rgba(7,27,40,.42) 38%,
        rgba(7,27,40,.14) 68%,
        rgba(7,27,40,.02) 100%
    );
}

.homepage-hero__container {
    position: relative;
    width: 100%;
    padding-top: 88px;
    padding-bottom: 88px;
}

.homepage-hero__content {
    width: min(100%, 810px);
    padding: 38px 40px;
    border: 1px solid rgba(13,148,136,.14);
    border-radius: 26px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 24px 65px rgba(15,76,92,.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.homepage-hero--has-image .homepage-hero__content {
    border-color: rgba(255,255,255,.25);
    background: rgba(7,27,40,.34);
    box-shadow: 0 26px 70px rgba(0,0,0,.19);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.homepage-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 9px 14px;
    border: 1px solid rgba(13,148,136,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #0f766e;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(15,118,110,.08);
}

.homepage-hero--has-image .homepage-hero__eyebrow {
    border-color: rgba(255,255,255,.34);
    background: rgba(255,255,255,.91);
}

.homepage-hero__title {
    max-width: 760px;
    margin: 23px 0 0;
    color: #102a43;
    font-size: clamp(2.45rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.locale-bn .homepage-hero__title,
.locale-ja .homepage-hero__title {
    letter-spacing: 0;
    line-height: 1.18;
}

.homepage-hero--has-image .homepage-hero__title {
    color: #fff;
    text-shadow: 0 3px 20px rgba(0,0,0,.24);
}

.homepage-hero__description {
    max-width: 700px;
    margin: 21px 0 0;
    color: #506477;
    font-size: 1.07rem;
    line-height: 1.8;
}

.homepage-hero--has-image .homepage-hero__description {
    color: rgba(255,255,255,.94);
    text-shadow: 0 2px 14px rgba(0,0,0,.24);
}

.homepage-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.homepage-hero__actions .btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 25px;
    padding-right: 25px;
    font-weight: 700;
}

.homepage-hero:not(.homepage-hero--has-image) .homepage-hero__actions .btn-light {
    border: 1px solid rgba(13,148,136,.34);
    color: #0f766e;
}

.homepage-hero__appointment-btn {
    box-shadow: 0 14px 30px rgba(13,148,136,.25);
}

.homepage-hero__contact-menu {
    min-width: 255px;
}

.homepage-hero__contact-menu .dropdown-item {
    white-space: normal;
    padding: .72rem .92rem;
}

.homepage-hero__trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 25px;
    color: #536779;
    font-size: .79rem;
    font-weight: 650;
}

.homepage-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.homepage-hero__trust i {
    color: #0d9488;
}

.homepage-hero--has-image .homepage-hero__trust {
    color: rgba(255,255,255,.94);
}

.homepage-hero--has-image .homepage-hero__trust i {
    color: #5eead4;
}

.homepage-hero__navigation {
    position: absolute;
    left: 12px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.homepage-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    background: rgba(15,118,110,.35);
    transition: width .25s ease, background-color .25s ease;
}

.homepage-hero__dot.is-active {
    width: 34px;
    background: #0d9488;
}

.homepage-hero--has-image .homepage-hero__dot {
    background: rgba(255,255,255,.52);
}

.homepage-hero--has-image .homepage-hero__dot.is-active {
    background: #fff;
}

/* Doctor image and name are intentionally placed below the hero. */
.homepage-doctor-section {
    background: #fff;
}

.homepage-doctor-profile {
    overflow: hidden;
    border: 1px solid rgba(13,148,136,.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15,76,92,.12);
}

.homepage-doctor-profile__image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 4.4;
    background: linear-gradient(145deg, #dff7f4, #e6f3ff);
}

.homepage-doctor-profile__image-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(7,27,40,.16));
    pointer-events: none;
}

.homepage-doctor-profile__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.homepage-doctor-profile__identity {
    padding: 22px 22px 24px;
    text-align: center;
}

.homepage-doctor-profile__identity h2 {
    margin: 0;
    color: #102a43;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
}

.homepage-doctor-profile__identity p {
    margin: 8px 0 4px;
    color: #0d9488;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.45;
}

.homepage-doctor-profile__identity span {
    display: block;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.55;
}

@media (max-width: 1199.98px) {
    .homepage-hero {
        min-height: 700px;
    }

    .homepage-hero__title {
        font-size: clamp(2.3rem, 5.2vw, 4rem);
    }
}

@media (max-width: 991.98px) {
    .homepage-hero {
        min-height: 680px;
    }

    .homepage-hero__container {
        padding-top: 70px;
        padding-bottom: 78px;
    }

    .homepage-hero__overlay,
    .homepage-hero--has-image .homepage-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(7,27,40,.42) 0%,
            rgba(7,27,40,.24) 60%,
            rgba(7,27,40,.08) 100%
        );
    }

    .homepage-hero:not(.homepage-hero--has-image) .homepage-hero__overlay {
        background: rgba(240,252,252,.72);
    }

    .homepage-hero__content {
        margin: 0 auto;
    }

    .homepage-hero__navigation {
        left: 50%;
        transform: translateX(-50%);
    }

    .homepage-doctor-profile {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .homepage-hero {
        min-height: 650px;
        align-items: flex-end;
    }

    .homepage-hero__slide {
        background-position: center center;
    }

    .homepage-hero__container {
        padding-top: 46px;
        padding-bottom: 68px;
    }

    .homepage-hero__content {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .homepage-hero__title {
        margin-top: 18px;
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.12;
    }

    .homepage-hero__description {
        margin-top: 16px;
        font-size: .92rem;
        line-height: 1.68;
    }

    .homepage-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 23px;
    }

    .homepage-hero__actions > *,
    .homepage-hero__actions .btn {
        width: 100%;
    }

    .homepage-hero__contact-menu {
        width: 100%;
    }

    .homepage-hero__trust {
        gap: 9px 13px;
        font-size: .71rem;
    }

    .homepage-doctor-profile__identity {
        padding: 19px 17px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-hero__slide {
        animation: none !important;
        transition-duration: .2s !important;
    }

    .homepage-hero__slide.is-active {
        transform: none;
    }
}

/* Responsive hero media refinements. */
.homepage-hero__slides,
.homepage-hero__slide {
    width: 100%;
    max-width: 100%;
}

.homepage-hero__slide {
    background-size: cover;
    background-position: center center;
}

@supports (height: 100svh) {
    .homepage-hero {
        min-height: clamp(650px, calc(100svh - 72px), 900px);
    }
}

@media (max-width: 991.98px) {
    .homepage-hero__slide {
        background-position: center center;
    }
}

@media (max-width: 575.98px) {
    .homepage-hero {
        min-height: max(620px, calc(100svh - 64px));
    }

    .homepage-hero__slide {
        /* Keeps portrait subjects and upper image details visible on narrow screens. */
        background-position: center top;
    }
}

@media (max-width: 767.98px) and (orientation: landscape) {
    .homepage-hero {
        min-height: 560px;
    }

    .homepage-hero__container {
        padding-top: 42px;
        padding-bottom: 58px;
    }
}

/*
 * Tablet and mobile hero image preservation.
 * The complete uploaded image stays visible; no cover-cropping or zoom-cropping.
 */
@media (max-width: 991.98px) {
    .homepage-hero__slides {
        background: #0b1f2a;
    }

    .homepage-hero__slide {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        transform: none !important;
        transition: opacity .75s ease !important;
    }

    .homepage-hero__slide.is-active {
        transform: none !important;
    }
}

@media (max-width: 575.98px) {
    .homepage-hero__slide {
        background-size: contain !important;
        background-position: center center !important;
    }
}
