/*
 * Doctor.bd home premium layout v10
 * Presentation-only update: all routes, forms, queries and Blade data logic remain unchanged.
 */

body.home-premium-page {
    --home-premium-left-rail: 270px;
    --home-premium-right-rail: 282px;
    --home-premium-gap: 22px;
    --home-premium-radius: 16px;
    --home-premium-border: #dce4ee;
    --home-premium-shadow: 0 10px 30px rgba(16, 40, 76, 0.065), 0 2px 8px rgba(16, 40, 76, 0.04);
    --home-premium-shadow-hover: 0 16px 38px rgba(16, 69, 131, 0.11), 0 3px 10px rgba(16, 40, 76, 0.05);
    background:
        radial-gradient(circle at 12% 0%, rgba(14, 111, 224, 0.055), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(54, 145, 255, 0.05), transparent 28rem),
        #f7f9fc;
}

body.home-premium-page .doctorbd-main {
    background: transparent;
}

body.home-premium-page .home-linkedin-shell,
body.home-premium-page .home-linkedin-shell > .container-xl,
body.home-premium-page .home-linkedin-grid {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
}

body.home-premium-page .home-linkedin-shell > .container-xl {
    width: min(100% - 28px, 1480px);
    max-width: 1480px !important;
    padding-inline: 0;
}

body.home-premium-page .home-linkedin-grid {
    gap: var(--home-premium-gap) !important;
}

body.home-premium-page .home-main-feed {
    min-width: 0;
    position: relative !important;
    z-index: 1 !important;
}

body.home-premium-page .home-main-feed > .db-card,
body.home-premium-page .home-side-rail .db-card {
    border: 1px solid var(--home-premium-border) !important;
    border-radius: var(--home-premium-radius) !important;
    box-shadow: var(--home-premium-shadow) !important;
}

body.home-premium-page .home-main-feed > .db-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
}

body.home-premium-page .home-main-feed > .db-card.mt-3 {
    margin-top: 16px !important;
}

body.home-premium-page .db-card-header {
    min-height: 58px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #ffffff, #fcfdff);
}

body.home-premium-page .db-card-header .h5,
body.home-premium-page .db-card-header .h6,
body.home-premium-page .home-search-title,
body.home-premium-page .home-profile-name,
body.home-premium-page .home-org-card h3,
body.home-premium-page .home-article-card h3 {
    font-weight: 500;
}

/* Left healthcare network hero */
body.home-premium-page .home-premium-network-card {
    overflow: hidden;
}

body.home-premium-page .home-premium-network-hero {
    position: relative;
    min-height: 252px;
    overflow: hidden;
    padding: 22px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.18), transparent 9rem),
        linear-gradient(145deg, #064bb1 0%, #0877e8 58%, #3ba5f4 100%);
}

body.home-premium-page .home-premium-network-hero::before,
body.home-premium-page .home-premium-network-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

body.home-premium-page .home-premium-network-hero::before {
    width: 170px;
    height: 170px;
    right: -92px;
    top: -72px;
}

body.home-premium-page .home-premium-network-hero::after {
    width: 110px;
    height: 110px;
    left: -62px;
    bottom: -55px;
}

body.home-premium-page .home-premium-network-copy {
    position: relative;
    z-index: 2;
    max-width: 205px;
}

body.home-premium-page .home-premium-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.69rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.home-premium-page .home-premium-brand {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

body.home-premium-page .home-premium-brand span {
    color: #9fdcff;
}

body.home-premium-page .home-premium-network-copy h2 {
    max-width: 178px;
    margin: 0 0 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

body.home-premium-page .home-premium-network-copy p {
    max-width: 178px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    line-height: 1.55;
}

body.home-premium-page .home-premium-shield-art {
    position: absolute;
    z-index: 1;
    right: 17px;
    bottom: 20px;
    width: 104px;
    height: 104px;
}

body.home-premium-page .home-premium-shield-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 35px rgba(0, 39, 109, 0.28);
    backdrop-filter: blur(5px);
}

body.home-premium-page .home-premium-shield-icon {
    position: absolute;
    inset: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    font-size: 2.85rem;
    transform: rotate(-5deg);
}

body.home-premium-page .home-premium-pulse-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #bceaff;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

body.home-premium-page .home-premium-pulse-dot.dot-one {
    top: 2px;
    right: 8px;
}

body.home-premium-page .home-premium-pulse-dot.dot-two {
    left: 0;
    bottom: 17px;
    width: 7px;
    height: 7px;
}

body.home-premium-page .home-premium-stat-list {
    padding: 8px 0;
    background: #fff;
}

body.home-premium-page .home-stat-row {
    min-height: 43px;
    padding: 8px 16px;
    font-size: 0.82rem;
}

body.home-premium-page .home-stat-row + .home-stat-row {
    border-top: 1px solid #edf1f5;
}

body.home-premium-page .home-stat-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #34445a;
}

body.home-premium-page .home-stat-row span i {
    width: 24px;
    color: #1670d8;
    text-align: center;
}

body.home-premium-page .home-stat-row strong {
    min-width: 38px;
    padding: 3px 8px;
    color: #075fc6;
    background: #eef6ff;
    border-radius: 999px;
    text-align: center;
}

body.home-premium-page .home-premium-quick-card .db-card-header {
    border-bottom: 0;
}

body.home-premium-page .home-premium-quick-card .db-list-link {
    min-height: 48px;
    margin: 0 10px 5px;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.home-premium-page .home-premium-quick-card .db-list-link:last-child {
    margin-bottom: 10px;
}

body.home-premium-page .home-premium-quick-card .db-list-link:hover {
    color: #075fc6;
    background: #f1f7ff;
    border-color: #d7e8fc;
    transform: translateX(2px);
}

/* Premium centre search card */
body.home-premium-page .home-search-card {
    position: relative;
    isolation: isolate;
}

body.home-premium-page .home-search-card .db-card-body {
    padding: 20px;
}

body.home-premium-page .home-premium-search-intro {
    position: relative;
    min-height: 92px;
    margin: -20px -20px 18px;
    overflow: hidden;
    padding: 22px 20px 16px;
    background:
        linear-gradient(100deg, rgba(244, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 63%, rgba(237, 246, 255, 0.9) 100%);
    border-bottom: 1px solid #e4edf7;
}

body.home-premium-page .home-premium-search-intro::before {
    position: absolute;
    content: "";
    width: 240px;
    height: 240px;
    right: -80px;
    top: -150px;
    background: radial-gradient(circle, rgba(31, 122, 230, 0.13), transparent 68%);
    border-radius: 50%;
}

body.home-premium-page .home-premium-search-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    color: #0868d2;
    background: linear-gradient(145deg, #ffffff, #e8f3ff);
    border: 1px solid #d3e5fa;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(24, 104, 197, 0.09);
}

body.home-premium-page .home-search-title {
    margin-top: 3px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;
}

body.home-premium-page .home-premium-search-art {
    position: absolute;
    right: 28px;
    bottom: 0;
    width: 210px;
    height: 92px;
    color: #a8cdf7;
    pointer-events: none;
}

body.home-premium-page .home-premium-search-art .art-hospital {
    position: absolute;
    right: 45px;
    bottom: -12px;
    font-size: 6.2rem;
    line-height: 1;
    opacity: 0.34;
}

body.home-premium-page .home-premium-search-art .art-cross {
    position: absolute;
    right: 94px;
    bottom: 31px;
    color: #77b3f0;
    font-size: 1.65rem;
    opacity: 0.62;
}

body.home-premium-page .home-premium-search-art .art-heart {
    position: absolute;
    right: 15px;
    bottom: 18px;
    color: #64a9ee;
    font-size: 1.35rem;
    opacity: 0.45;
}

body.home-premium-page .home-premium-search-art .art-cloud {
    position: absolute;
    width: 48px;
    height: 15px;
    background: rgba(162, 204, 246, 0.22);
    border-radius: 999px;
}

body.home-premium-page .home-premium-search-art .art-cloud::before,
body.home-premium-page .home-premium-search-art .art-cloud::after {
    position: absolute;
    content: "";
    bottom: 0;
    background: inherit;
    border-radius: 50%;
}

body.home-premium-page .home-premium-search-art .art-cloud::before {
    width: 21px;
    height: 21px;
    left: 8px;
}

body.home-premium-page .home-premium-search-art .art-cloud::after {
    width: 27px;
    height: 27px;
    right: 5px;
}

body.home-premium-page .home-premium-search-art .art-cloud-one {
    top: 13px;
    right: 5px;
}

body.home-premium-page .home-premium-search-art .art-cloud-two {
    top: 29px;
    left: 5px;
    transform: scale(0.72);
}

body.home-premium-page .home-search-form .form-label {
    margin-bottom: 7px;
    color: #243349;
    font-size: 0.78rem;
    font-weight: 500;
}

body.home-premium-page .home-search-form .input-group,
body.home-premium-page .home-search-form .form-select {
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(16, 40, 76, 0.03);
}

body.home-premium-page .home-search-form .form-control,
body.home-premium-page .home-search-form .form-select,
body.home-premium-page .home-search-form .input-group-text {
    min-height: 48px;
    border-color: #d5dfeb;
}

body.home-premium-page .home-search-form .input-group-text {
    color: #63758a;
    border-radius: 11px 0 0 11px;
}

body.home-premium-page .home-search-form .form-control {
    border-radius: 0 11px 11px 0;
}

body.home-premium-page .home-search-form .form-select {
    border-radius: 11px;
}

body.home-premium-page .home-search-form .form-control:focus,
body.home-premium-page .home-search-form .form-select:focus {
    border-color: #78aee8;
    box-shadow: 0 0 0 4px rgba(13, 110, 224, 0.1);
}

body.home-premium-page .home-premium-search-button {
    min-height: 48px;
    width: 100%;
    padding-inline: 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #075fc9, #0b78ed);
    box-shadow: 0 8px 18px rgba(8, 104, 216, 0.18);
}

body.home-premium-page .home-premium-search-button:hover,
body.home-premium-page .home-premium-search-button:focus {
    background: linear-gradient(135deg, #064fa8, #0869d3);
    box-shadow: 0 10px 22px rgba(8, 104, 216, 0.25);
    transform: translateY(-1px);
}

body.home-premium-page .home-premium-clear-link {
    margin-top: 7px;
    color: #617188;
    font-size: 0.75rem;
    text-align: center;
}

/* Centre directory content */
body.home-premium-page .home-chip-grid {
    gap: 10px;
}

body.home-premium-page .home-specialty-chip {
    min-height: 70px;
    padding: 12px;
    border-color: #dfe7f0;
    border-radius: 13px;
    box-shadow: 0 2px 7px rgba(17, 52, 94, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

body.home-premium-page .home-specialty-chip:hover {
    background: #f8fbff;
    border-color: #a9ccef;
    box-shadow: 0 9px 22px rgba(24, 104, 197, 0.09);
    transform: translateY(-2px);
}

body.home-premium-page .home-specialty-chip .db-icon-box {
    border-radius: 12px;
}

body.home-premium-page .home-feed-item,
body.home-premium-page .home-org-card,
body.home-premium-page .home-article-card {
    transition: background 0.18s ease, transform 0.18s ease;
}

body.home-premium-page .home-feed-item:hover,
body.home-premium-page .home-org-card:hover,
body.home-premium-page .home-article-card:hover {
    background: #fbfdff;
}

body.home-premium-page .home-feed-item {
    padding: 18px;
}

body.home-premium-page .home-profile-row > .db-avatar,
body.home-premium-page .home-org-logo,
body.home-premium-page .home-article-image {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(22, 55, 94, 0.08);
}

body.home-premium-page .home-profile-actions .btn,
body.home-premium-page .home-org-card .btn {
    border-radius: 9px;
}

/* Right rail */
body.home-premium-page .home-premium-blood-card {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18), transparent 7rem),
        linear-gradient(145deg, #c60920 0%, #e3162c 58%, #ef3346 100%);
    box-shadow: 0 14px 30px rgba(197, 12, 34, 0.18) !important;
}

body.home-premium-page .home-premium-blood-card::after {
    position: absolute;
    content: "";
    width: 132px;
    height: 132px;
    right: -72px;
    bottom: -70px;
    border: 20px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

body.home-premium-page .home-premium-blood-card .db-card-body {
    position: relative;
    z-index: 1;
    padding: 20px;
}

body.home-premium-page .home-premium-blood-card .btn-light {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 7px 16px rgba(118, 0, 17, 0.16);
}

body.home-premium-page .home-premium-how-card .home-step-number {
    box-shadow: 0 5px 12px rgba(7, 95, 201, 0.2);
}

body.home-premium-page .home-premium-account-card .db-icon-box {
    border-radius: 12px;
}

body.home-premium-page .home-premium-account-card .btn,
body.home-premium-page .home-premium-help-card a {
    border-radius: 9px;
}

body.home-premium-page .home-premium-help-card {
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

/*
 * Sticky architecture
 * The grid row stretches to the height of the centre feed. Each inner rail then
 * sticks inside that tall containing block. This is more reliable than making
 * the short aside itself sticky and prevents the footer from being covered.
 */
@media (min-width: 1200px) {
    body.home-premium-page .home-linkedin-grid {
        grid-template-columns:
            var(--home-premium-left-rail)
            minmax(0, 1fr)
            var(--home-premium-right-rail) !important;
        align-items: stretch !important;
    }

    body.home-premium-page .home-side-rail {
        display: block !important;
        position: relative !important;
        top: auto !important;
        align-self: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    body.home-premium-page .home-side-rail > .db-sticky {
        position: sticky !important;
        top: calc(var(--db-header-height) + 16px) !important;
        width: 100% !important;
        height: fit-content;
        max-height: calc(100vh - var(--db-header-height) - 32px) !important;
        max-height: calc(100dvh - var(--db-header-height) - 32px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
        z-index: 12 !important;
        padding: 0 3px 4px 0 !important;
    }

    body.home-premium-page .home-side-rail > .db-sticky:hover,
    body.home-premium-page .home-side-rail > .db-sticky:focus-within {
        scrollbar-color: #b6c1ce transparent;
    }

    body.home-premium-page .home-side-rail > .db-sticky::-webkit-scrollbar {
        width: 5px;
    }

    body.home-premium-page .home-side-rail > .db-sticky::-webkit-scrollbar-track {
        background: transparent;
    }

    body.home-premium-page .home-side-rail > .db-sticky::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    body.home-premium-page .home-side-rail > .db-sticky:hover::-webkit-scrollbar-thumb,
    body.home-premium-page .home-side-rail > .db-sticky:focus-within::-webkit-scrollbar-thumb {
        background: #b6c1ce;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.home-premium-page .home-linkedin-grid {
        grid-template-columns: 235px minmax(0, 1fr) !important;
        align-items: stretch !important;
    }

    body.home-premium-page .home-left-rail {
        position: relative !important;
        top: auto !important;
        align-self: stretch !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    body.home-premium-page .home-left-rail > .db-sticky {
        position: sticky !important;
        top: calc(var(--db-header-height) + 16px) !important;
        height: fit-content;
        max-height: calc(100dvh - var(--db-header-height) - 32px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-right: 3px !important;
    }
}

@media (max-width: 1199.98px) {
    body.home-premium-page .home-right-rail {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.home-premium-page .home-linkedin-shell > .container-xl {
        width: 100%;
        padding-inline: 12px;
    }

    body.home-premium-page .home-linkedin-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 14px !important;
    }

    body.home-premium-page .home-side-rail,
    body.home-premium-page .home-side-rail > .db-sticky {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    body.home-premium-page .home-left-rail {
        display: none !important;
    }

    body.home-premium-page .home-main-feed {
        order: 1;
    }

    body.home-premium-page .home-premium-network-card {
        display: none;
    }

    body.home-premium-page .home-premium-search-art {
        opacity: 0.5;
    }
}

@media (max-width: 767.98px) {
    body.home-premium-page .home-linkedin-shell > .container-xl {
        padding-inline: 0;
    }

    body.home-premium-page .home-main-feed > .db-card,
    body.home-premium-page .home-side-rail .db-card {
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.home-premium-page .home-search-card .db-card-body {
        padding: 16px 14px;
    }

    body.home-premium-page .home-premium-search-intro {
        margin: -16px -14px 16px;
        padding: 18px 14px;
    }

    body.home-premium-page .home-premium-search-art {
        display: none;
    }

    body.home-premium-page .home-chip-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-premium-page .home-specialty-chip,
    body.home-premium-page .home-premium-search-button,
    body.home-premium-page .home-premium-quick-card .db-list-link {
        transition: none;
    }
}
