/* Doctor.bd hospital profile: premium three-column sticky layout v14 */
.hospital-profile-page {
    --hospital-blue: #0866ff;
    --hospital-blue-dark: #0757d7;
    --hospital-ink: #101828;
    --hospital-muted: #667085;
    --hospital-border: #e4eaf2;
    --hospital-surface: #ffffff;
    --hospital-soft: #f6f9fe;
    --hospital-sticky-top: calc(var(--db-header-height, 74px) + 16px);
    background:
        radial-gradient(circle at 12% 0%, rgba(8, 102, 255, .045), transparent 26rem),
        #f5f8fc;
    min-height: 100vh;
    color: var(--hospital-ink);
}

.hospital-profile-page,
.hospital-profile-page .btn,
.hospital-profile-page .badge,
.hospital-profile-page .nav-link,
.hospital-profile-page strong,
.hospital-profile-page h1,
.hospital-profile-page h2,
.hospital-profile-page h3,
.hospital-profile-page h4,
.hospital-profile-page h5,
.hospital-profile-page h6 {
    font-weight: 500;
}

.hospital-profile-shell {
    width: 100%;
    max-width: 1420px !important;
}

.hospital-profile-page .min-w-0 {
    min-width: 0;
}

.hospital-profile-layout {
    align-items: start !important;
}

.hospital-profile-card {
    border: 1px solid var(--hospital-border) !important;
    border-radius: 12px !important;
    background: var(--hospital-surface);
    box-shadow: 0 8px 28px rgba(16, 24, 40, .055) !important;
}

.hospital-profile-breadcrumb {
    margin-bottom: 14px;
}

.hospital-profile-breadcrumb .breadcrumb {
    gap: 3px;
    margin-bottom: 0;
    font-size: .82rem;
}

.hospital-profile-breadcrumb .breadcrumb-item,
.hospital-profile-breadcrumb .breadcrumb-item a {
    color: #475467;
}

.hospital-profile-breadcrumb .breadcrumb-item.active {
    color: var(--hospital-ink);
}

/* Sticky rails */
.hospital-profile-side-stack {
    gap: 14px !important;
}

.hospital-profile-left-sticky,
.hospital-profile-right-sticky {
    padding-right: 2px;
}

.hospital-profile-center-nav {
    position: sticky;
    top: var(--db-header-height, 74px);
    z-index: 120;
}

/* Left identity card */
.hospital-profile-identity-card {
    overflow: hidden;
}

.hospital-profile-cover {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: linear-gradient(135deg, #cfe2ff, #edf5ff);
}

.hospital-profile-cover::after {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    content: "";
    background: linear-gradient(to top, rgba(3, 20, 46, .22), transparent);
    pointer-events: none;
}

.hospital-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-profile-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(8, 102, 255, .78);
    font-size: 4rem;
    background:
        linear-gradient(135deg, rgba(8, 102, 255, .12), rgba(68, 183, 255, .05)),
        #eef6ff;
}

.hospital-profile-identity-body {
    position: relative;
}

.hospital-profile-logo-wrap {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -42px;
    position: relative;
    z-index: 3;
}

.hospital-profile-logo,
.hospital-profile-logo-placeholder {
    width: 84px;
    height: 84px;
    border: 4px solid #ffffff;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .16);
}

.hospital-profile-logo {
    padding: 7px;
    object-fit: contain;
}

.hospital-profile-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hospital-blue);
    font-size: 2rem;
}

.hospital-profile-title {
    max-width: 100%;
    color: var(--hospital-ink);
    font-size: 1.26rem;
    line-height: 1.28;
    letter-spacing: -.02em;
}

.hospital-profile-verified-pill {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #087443;
    border: 1px solid #b8ebcf;
    border-radius: 999px;
    background: #eafbf1;
    font-size: .67rem;
}

.hospital-profile-featured-pill {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #9a6700;
    border: 1px solid #f4d68b;
    border-radius: 999px;
    background: #fff8e5;
    font-size: .67rem;
}

.hospital-profile-identity-type {
    color: #475467;
    font-size: .83rem;
}

.hospital-profile-followers {
    color: #667085;
    font-size: .78rem;
}

.hospital-profile-address {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    color: #667085;
    font-size: .76rem;
    line-height: 1.55;
}

.hospital-profile-address .bi {
    margin-top: 2px;
}

.hospital-profile-action-button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: .83rem;
}

.hospital-profile-action-button.is-following {
    color: var(--hospital-blue);
    background: #eef5ff;
}

/* Quick summary */
.hospital-profile-sidebar-card .card-body {
    padding: 20px;
}

.hospital-profile-sidebar-title {
    margin-bottom: 16px;
    color: var(--hospital-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.hospital-profile-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hospital-profile-summary-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--hospital-blue);
    background: #edf4ff;
    font-size: .95rem;
}

.hospital-profile-summary-row strong,
.hospital-profile-summary-row small {
    display: block;
}

.hospital-profile-summary-row strong {
    color: var(--hospital-ink);
    font-size: .92rem;
    line-height: 1.25;
}

.hospital-profile-summary-row small {
    margin-top: 2px;
    color: var(--hospital-muted);
    font-size: .73rem;
}

.hospital-profile-summary-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--hospital-muted);
    font-size: .74rem;
}

.hospital-profile-summary-category strong {
    color: #344054;
    text-align: right;
}

/* Centre navigation */
.hospital-profile-menu-card {
    border-radius: 12px !important;
    box-shadow: 0 7px 22px rgba(16, 24, 40, .045) !important;
}

.hospital-profile-tabs {
    width: 100%;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
}

.hospital-profile-tabs .nav {
    min-height: 58px;
    padding: 0 12px;
    scrollbar-width: none;
}

.hospital-profile-tabs .nav::-webkit-scrollbar {
    display: none;
}

.hospital-profile-tabs .nav-link {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 20px;
    color: #344054;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: .82rem;
    white-space: nowrap;
}

.hospital-profile-tabs .nav-link:hover,
.hospital-profile-tabs .nav-link:focus,
.hospital-profile-tabs .nav-link.active {
    color: var(--hospital-blue);
    border-bottom-color: var(--hospital-blue);
    background: transparent;
}

/* Centre content */
.hospital-profile-section {
    scroll-margin-top: calc(var(--db-header-height, 74px) + 84px);
}

.hospital-profile-section .card-body {
    padding: 24px;
}

.hospital-profile-section-title {
    color: var(--hospital-ink);
    font-size: 1.22rem;
    line-height: 1.35;
    letter-spacing: -.015em;
}

.hospital-profile-section-copy {
    color: #475467;
    font-size: .86rem;
    line-height: 1.82;
}

.hospital-profile-overview-illustration {
    width: 100%;
    max-width: 190px;
    max-height: 126px;
    object-fit: contain;
}

.hospital-profile-overview-toggle {
    color: var(--hospital-blue);
    font-size: .8rem;
    text-decoration: none;
}

.hospital-profile-overview-toggle:hover {
    color: var(--hospital-blue-dark);
}

.hospital-profile-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e6ecf4;
    border-radius: 10px;
    background: #ffffff;
}

.hospital-profile-fact-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border-right: 1px solid #edf1f6;
}

.hospital-profile-fact-item:last-child {
    border-right: 0;
}

.hospital-profile-fact-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--hospital-blue);
    background: #edf4ff;
}

.hospital-profile-fact-item small,
.hospital-profile-fact-item strong {
    display: block;
    min-width: 0;
}

.hospital-profile-fact-item small {
    margin-bottom: 3px;
    color: #667085;
    font-size: .66rem;
    line-height: 1.25;
}

.hospital-profile-fact-item strong {
    overflow: hidden;
    color: #1d2939;
    font-size: .76rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.hospital-profile-count-badge {
    min-width: 26px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #667085;
    background: #f2f4f7;
    font-size: .7rem;
}

.hospital-profile-list-card {
    min-height: 88px;
    border: 1px solid #e4eaf2;
    border-radius: 9px;
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hospital-profile-list-card:hover {
    border-color: #bdd4ff;
    box-shadow: 0 8px 18px rgba(8, 102, 255, .075);
    transform: translateY(-1px);
}

.hospital-profile-icon-box {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #1457bd;
    background: #edf4ff;
    font-size: 1.15rem;
}

.hospital-profile-service-icon {
    color: #087443;
    background: #eafbf1;
}

.hospital-profile-item-title {
    color: #1d2939;
    font-size: .86rem;
    line-height: 1.35;
}

.hospital-profile-item-meta {
    color: #667085;
    font-size: .7rem;
    line-height: 1.35;
}

/* Doctor list refinements */
.hospital-profile-page #doctors article {
    border-color: #e4eaf2 !important;
    border-radius: 10px !important;
    background: #ffffff;
}

.hospital-profile-page #doctors article:hover {
    border-color: #c7d9f7 !important;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .05);
}

.hospital-profile-doctor-photo,
.hospital-profile-doctor-placeholder {
    width: 72px;
    height: 78px;
    border-radius: 10px;
}

.hospital-profile-doctor-photo {
    object-fit: cover;
}

.hospital-profile-doctor-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hospital-blue);
    background: #edf4ff;
}

/* Right contact card */
.hospital-profile-contact-list {
    margin-bottom: -4px;
}

.hospital-profile-contact-row {
    padding: 12px 0;
    color: #1d2939;
    border-bottom: 1px solid #edf1f6;
    text-decoration: none;
}

.hospital-profile-contact-row:last-child {
    border-bottom: 0;
}

.hospital-profile-contact-row:hover {
    color: var(--hospital-blue);
}

.hospital-profile-contact-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--hospital-blue);
    background: #edf4ff;
}

.hospital-profile-contact-row small,
.hospital-profile-contact-row strong {
    display: block;
}

.hospital-profile-contact-row small {
    margin-bottom: 3px;
    color: #667085;
    font-size: .68rem;
}

.hospital-profile-contact-row strong {
    color: #1d2939;
    font-size: .75rem;
    line-height: 1.45;
}

.hospital-profile-contact-danger .hospital-profile-contact-icon {
    color: #d92d20;
    background: #fff0ef;
}

.hospital-profile-contact-danger strong {
    color: #d92d20;
}

.hospital-profile-contact-whatsapp .hospital-profile-contact-icon {
    color: #087443;
    background: #eafbf1;
}

/* Related hospitals */
.hospital-related-list {
    padding: 0 18px;
}

.hospital-related-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf1f6;
}

.hospital-related-item:last-child {
    border-bottom: 0;
}

.hospital-related-logo,
.hospital-related-placeholder {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.hospital-related-logo {
    padding: 2px;
    object-fit: cover;
}

.hospital-related-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hospital-blue);
    background: #edf4ff;
}

.hospital-related-name {
    color: #1d2939;
    font-size: .72rem;
    line-height: 1.35;
}

.hospital-related-meta {
    color: #667085;
    font-size: .64rem;
    line-height: 1.35;
}

.hospital-related-view-button {
    min-height: 28px;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: .64rem;
}

.hospital-profile-card-footer-link {
    display: block;
    padding: 13px 18px;
    color: var(--hospital-blue);
    border-top: 1px solid #edf1f6;
    background: #ffffff;
    font-size: .75rem;
    text-align: center;
    text-decoration: none;
}

.hospital-profile-card-footer-link:hover {
    color: var(--hospital-blue-dark);
    background: #f8fbff;
}

/* Tablet-only right-rail content */
.hospital-profile-tablet-sidebar .hospital-related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

/* Desktop three columns */
@media (min-width: 1200px) {
    .hospital-profile-page .hospital-profile-layout {
        display: grid !important;
        grid-template-columns: 260px minmax(0, 1fr) 286px !important;
        grid-template-areas: "left main right" !important;
        gap: 18px !important;
    }

    .hospital-profile-page .hospital-profile-left-rail {
        grid-area: left;
    }

    .hospital-profile-page .hospital-profile-main-column {
        grid-area: main;
    }

    .hospital-profile-page .hospital-profile-right-rail {
        grid-area: right;
        display: block !important;
    }
}

@media (min-width: 1400px) {
    .hospital-profile-page .hospital-profile-layout {
        grid-template-columns: 270px minmax(0, 1fr) 300px !important;
        gap: 20px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hospital-profile-page {
        --db-sidebar-size: 258px;
    }

    .hospital-profile-page .hospital-profile-layout {
        grid-template-columns: 258px minmax(0, 1fr) !important;
        grid-template-areas: "left main" !important;
    }

    .hospital-profile-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hospital-profile-fact-item:nth-child(2) {
        border-right: 0;
    }

    .hospital-profile-fact-item:nth-child(-n+2) {
        border-bottom: 1px solid #edf1f6;
    }
}

@media (max-width: 1199.98px) {
    .hospital-profile-title {
        font-size: 1.16rem;
    }

    .hospital-profile-tabs .nav-link {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 991.98px) {
    .hospital-profile-page {
        padding-top: 12px !important;
    }

    .hospital-profile-layout {
        display: flex !important;
        flex-direction: column;
        gap: 14px !important;
    }

    .hospital-profile-left-rail,
    .hospital-profile-main-column,
    .hospital-profile-right-rail {
        width: 100%;
    }

    .hospital-profile-main-column {
        order: 2;
    }

    .hospital-profile-left-rail {
        order: 1;
    }

    .hospital-profile-right-rail {
        order: 3;
    }

    .hospital-profile-center-nav {
        top: var(--db-header-height, 64px);
    }

    .hospital-profile-left-sticky,
    .hospital-profile-right-sticky {
        max-height: none !important;
        overflow: visible !important;
    }

    .hospital-profile-identity-card {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .hospital-profile-cover {
        height: 100%;
        min-height: 310px;
    }

    .hospital-profile-logo-wrap {
        margin-top: 20px;
    }

    .hospital-profile-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hospital-profile-fact-item:nth-child(2) {
        border-right: 0;
    }

    .hospital-profile-fact-item:nth-child(-n+2) {
        border-bottom: 1px solid #edf1f6;
    }
}

@media (max-width: 767.98px) {
    .hospital-profile-shell {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .hospital-profile-identity-card {
        display: block;
    }

    .hospital-profile-cover {
        height: 170px;
        min-height: 0;
    }

    .hospital-profile-logo-wrap {
        margin-top: -42px;
    }

    .hospital-profile-section .card-body,
    .hospital-profile-sidebar-card .card-body {
        padding: 20px;
    }

    .hospital-profile-overview-card .row {
        --bs-gutter-y: 0;
    }

    .hospital-profile-tabs .nav {
        min-height: 54px;
        padding: 0 6px;
    }

    .hospital-profile-tabs .nav-link {
        min-height: 54px;
        padding-right: 14px;
        padding-left: 14px;
        font-size: .78rem;
    }

    .hospital-profile-tablet-sidebar .hospital-related-list {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .hospital-profile-page {
        padding-top: 8px !important;
    }

    .hospital-profile-breadcrumb {
        padding: 0 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hospital-profile-breadcrumb .breadcrumb {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .hospital-profile-card {
        border-radius: 10px !important;
    }

    .hospital-profile-cover {
        height: 145px;
    }

    .hospital-profile-section .card-body,
    .hospital-profile-sidebar-card .card-body {
        padding: 17px 15px;
    }

    .hospital-profile-facts-grid {
        grid-template-columns: 1fr;
    }

    .hospital-profile-fact-item,
    .hospital-profile-fact-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #edf1f6;
    }

    .hospital-profile-fact-item:last-child {
        border-bottom: 0;
    }

    .hospital-profile-list-card {
        min-height: 78px;
    }

    .hospital-profile-section-title {
        font-size: 1.08rem;
    }

    .hospital-profile-center-nav {
        margin-right: -2px;
        margin-left: -2px;
    }
}

/* Override legacy profile rules compiled in resources/css/app.css. */
.hospital-profile-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(8, 102, 255, .045), transparent 26rem),
        #f5f8fc !important;
}

.hospital-profile-page .hospital-profile-card,
.hospital-profile-page article.hospital-profile-card,
.hospital-profile-page section.hospital-profile-card {
    border: 1px solid var(--hospital-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .055) !important;
}

.hospital-profile-page .hospital-profile-cover {
    height: 165px !important;
    background: linear-gradient(135deg, #cfe2ff, #edf5ff) !important;
}

.hospital-profile-page .hospital-profile-logo,
.hospital-profile-page .hospital-profile-logo-placeholder {
    width: 84px !important;
    height: 84px !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .16) !important;
}

.hospital-profile-page .hospital-profile-title {
    font-size: 1.26rem !important;
    letter-spacing: -.02em !important;
}

.hospital-profile-page .hospital-profile-tabs {
    position: relative !important;
    top: auto !important;
    border-top: 0 !important;
}

.hospital-profile-page .hospital-profile-tabs .nav-link {
    color: #344054 !important;
}

.hospital-profile-page .hospital-profile-tabs .nav-link:hover,
.hospital-profile-page .hospital-profile-tabs .nav-link:focus,
.hospital-profile-page .hospital-profile-tabs .nav-link.active {
    color: var(--hospital-blue) !important;
}

.hospital-profile-page .hospital-profile-section .card-body {
    padding: 24px !important;
}

.hospital-profile-page .hospital-profile-sidebar-card .card-body {
    padding: 20px !important;
}

@media (max-width: 1199.98px) {
    .hospital-profile-page .hospital-profile-title {
        font-size: 1.16rem !important;
    }
}

@media (max-width: 991.98px) {
    .hospital-profile-page .hospital-profile-cover {
        height: 100% !important;
        min-height: 310px;
    }

    .hospital-profile-page .hospital-profile-logo,
    .hospital-profile-page .hospital-profile-logo-placeholder {
        width: 84px !important;
        height: 84px !important;
    }
}

@media (max-width: 767.98px) {
    .hospital-profile-page .hospital-profile-cover {
        height: 170px !important;
        min-height: 0;
    }

    .hospital-profile-page .hospital-profile-section .card-body,
    .hospital-profile-page .hospital-profile-sidebar-card .card-body {
        padding: 20px !important;
    }
}

@media (max-width: 575.98px) {
    .hospital-profile-page .hospital-profile-card,
    .hospital-profile-page article.hospital-profile-card,
    .hospital-profile-page section.hospital-profile-card {
        border-radius: 10px !important;
    }

    .hospital-profile-page .hospital-profile-cover {
        height: 145px !important;
    }

    .hospital-profile-page .hospital-profile-section .card-body,
    .hospital-profile-page .hospital-profile-sidebar-card .card-body {
        padding: 17px 15px !important;
    }
}
