.doctor-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(280px, 38vw, 420px);
    display: flex;
    align-items: flex-end;
    background-image: url('../images/backgrounds/doctors.jpg');
    background-size: cover;
    background-position: center 36%;
    color: #fff;
}

.doctor-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 16%, rgba(93, 169, 214, 0.26), transparent 34%),
        linear-gradient(128deg, rgba(14, 74, 41, 0.88) 0%, rgba(20, 90, 50, 0.8) 52%, rgba(50, 82, 161, 0.72) 100%);
}

.doctor-hero .container {
    position: relative;
    z-index: 1;
}

.doctor-hero-content .hero-chip,
.doctor-hero-content .hero-title,
.doctor-hero-content .hero-copy {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.doctor-hero.reveal.active .doctor-hero-content .hero-chip,
.doctor-hero.reveal.active .doctor-hero-content .hero-title,
.doctor-hero.reveal.active .doctor-hero-content .hero-copy {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.doctor-hero.reveal.active .doctor-hero-content .hero-chip {
    transition-delay: 110ms;
}

.doctor-hero.reveal.active .doctor-hero-content .hero-title {
    transition-delay: 190ms;
}

.doctor-hero.reveal.active .doctor-hero-content .hero-copy {
    transition-delay: 270ms;
}

.hero-chip {
    display: inline-block;
    background: rgba(212, 160, 23, 0.24);
    border: 1px solid rgba(212, 160, 23, 0.56);
    color: #fff2cc;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.hero-copy {
    max-width: 62ch;
    opacity: 0.98;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.doctor-search {
    margin-top: 0;
    padding-top: 1.25rem;
}

.search-panel {
    background: #fff;
    border: 1px solid #d8e7df;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 36px rgba(27, 115, 64, 0.1);
}

.search-panel .form-control,
.search-panel .form-select {
    border-color: #c8dbcf;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.search-panel .form-control:focus,
.search-panel .form-select:focus {
    border-color: var(--sjhi-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(93, 169, 214, 0.2);
}

.result-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--sjhi-primary-green);
}

.result-meta p {
    color: var(--sjhi-medical-blue);
    font-weight: 600;
}

.doctor-card {
    background: #fff;
    border: 1px solid #d8e7df;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 28px rgba(15, 64, 36, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(15, 64, 36, 0.12);
}

.doctor-card.reveal,
.col-md-6.col-xl-3.reveal .doctor-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.doctor-photo-wrap {
    background: linear-gradient(165deg, #f0f8f4 0%, #e2f0f8 100%);
    padding: 0.85rem;
    aspect-ratio: 3 / 4;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

.doctor-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--sjhi-medical-blue);
    font-weight: 700;
    background: linear-gradient(160deg, #eef5ff 0%, #e7fff3 100%);
}

.doctor-body {
    padding: 1rem;
}

.doctor-name {
    font-size: 1.1rem;
    color: var(--sjhi-medical-blue);
    margin-bottom: 0.65rem;
}

.doctor-item {
    margin-bottom: 0.45rem;
    color: #1f2e27;
    line-height: 1.45;
}

.doctor-item strong {
    color: var(--sjhi-green-hover);
}

.sub-spec {
    color: var(--sjhi-accent-gold);
    font-weight: 700;
}

.empty-state {
    border: 1px dashed #b7ccbf;
    border-radius: 14px;
    background: #f7fbf9;
    padding: 1rem;
    color: #355445;
}

@media (max-width: 991px) {
    .doctor-hero {
        min-height: 250px;
        background-position: center 30%;
    }

    .doctor-search {
        margin-top: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 767px) {
    .search-panel {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .hero-copy {
        font-size: 0.95rem;
    }

    .doctor-body {
        padding: 0.85rem;
    }
}

@media (max-width: 575px) {
    .doctor-hero {
        min-height: 220px;
        background-position: center 24%;
    }

    .hero-chip {
        font-size: 0.74rem;
        padding: 0.28rem 0.58rem;
    }

    .hero-title {
        font-size: clamp(1.45rem, 8vw, 1.95rem);
    }

    .doctor-item {
        font-size: 0.9rem;
    }
}
