/* ============== Medical Devices & Biopharma Solution Page (NEXSPC 4.0) ============== */
:root {
    --mb-primary: #29b6f6;
    --mb-purple: #b388ff;
    --mb-amber: #ffc107;
    --mb-deep: #04205F;
    --mb-bg: #f8f9fa;
}

.mb-hero {
    position: relative;
    color: #fff;
    padding: 120px 0 90px;
    background-image: url('/static/images/header4.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.mb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 58, 0.86);
}

.mb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 70% 24%, rgba(179, 136, 255, 0.26), rgba(0, 0, 0, 0)),
        radial-gradient(820px 380px at 22% 18%, rgba(41, 182, 246, 0.22), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.mb-hero .container {
    position: relative;
    z-index: 2;
}

.mb-hero h1 {
    font-size: 3.05rem;
    font-weight: 950;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.mb-hero .subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 820px;
}

.mb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

.mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.mb-badge i.material-symbols-outlined {
    font-size: 18px;
    color: var(--mb-primary);
}

.mb-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.mb-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--mb-primary);
    color: #fff !important;
    font-weight: 950;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 0;
}

.mb-cta-primary:hover {
    background: #039be5;
    transform: translateY(-2px);
    color: #fff !important;
}

.mb-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    font-weight: 850;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mb-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    color: #fff !important;
}

.mb-hero-note {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.mb-hero-ui {
    position: relative;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.40);
    overflow: hidden;
    cursor: zoom-in;
}

.mb-hero-ui img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.mb-hero-ui .mb-ui-label {
    position: absolute;
    left: 18px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.mb-hero-ui .mb-ui-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #81c784;
    box-shadow: 0 0 0 6px rgba(129, 199, 132, 0.20);
}

/* e-signature badge overlay */
.mb-esign {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.90);
    color: var(--mb-deep);
    border: 1px solid rgba(4, 32, 95, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    font-weight: 950;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mb-esign .seal {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.18);
    border: 1px solid rgba(255, 193, 7, 0.35);
    position: relative;
}

.mb-esign .seal::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--mb-amber);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.16);
}

/* Section heading */
.mb-section-title { margin-bottom: 18px; }
.mb-section-title h2 {
    color: var(--mb-deep);
    font-weight: 950;
    margin-bottom: 10px;
}
.mb-section-title p {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Pain points */
.mb-pain {
    background: var(--mb-bg);
    padding: 60px 0;
}
.mb-pain-question {
    font-size: 1.15rem;
    font-weight: 950;
    color: #2d3a4b;
    margin: 0 0 22px 0;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.mb-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.mb-pain-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f4;
    padding: 22px 22px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.mb-pain-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.9), rgba(179, 136, 255, 0.9));
    opacity: 0.65;
}
.mb-pain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(4, 32, 95, 0.25);
}
.mb-pain-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mb-pain-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 193, 7, 0.22);
}
.mb-pain-icon i.material-symbols-outlined {
    font-size: 24px;
    color: #b07a00;
}
.mb-pain-card h3 {
    font-size: 1.22rem;
    font-weight: 950;
    color: var(--mb-deep);
    margin: 0;
    line-height: 1.3;
}
.mb-pain-card p {
    color: #444;
    line-height: 1.85;
    margin: 0;
    font-size: 1rem;
}

/* Solutions */
.mb-solution { padding: 60px 0 20px; }
.mb-scenario { padding-top: 36px; padding-bottom: 36px; }
.mb-scenario h3 {
    font-size: 1.9rem;
    font-weight: 950;
    color: var(--mb-deep);
    margin-bottom: 10px;
}
.mb-scenario .en-title {
    margin-top: 0;
    color: #6a7b90;
    letter-spacing: 0.4px;
    font-weight: 850;
}
.mb-scenario .intro-text {
    font-size: 1.08rem;
    line-height: 2;
    color: #555;
    text-align: justify;
}
.mb-checklist {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0;
}
.mb-checklist li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
    color: #444;
    line-height: 1.8;
}
.mb-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mb-primary);
    font-weight: 900;
}
.mb-value {
    font-size: 1rem;
    margin-top: 14px;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(179, 136, 255, 0.10);
    border: 1px solid rgba(179, 136, 255, 0.20);
    color: #3a2b66;
    font-weight: 900;
    line-height: 1.8;
}
.mb-shot {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
    background: #fff;
    cursor: zoom-in;
}
.mb-shot img { width: 100%; height: auto; display: block; }
.mb-shot-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 950;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    user-select: none;
}
.mb-shot-badge.badge-part11 {
    background: rgba(176, 122, 0, 0.55);
    border-color: rgba(255, 193, 7, 0.25);
}

/* Compare */
.mb-compare { background: var(--mb-bg); padding: 60px 0; }
.mb-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f4;
}
.mb-compare-table thead th {
    background: #C6E6FC;
    padding: 18px 18px;
    text-align: left;
    font-weight: 950;
    font-size: 1.05rem;
    color: #04205F; 
}
.mb-compare-table tbody td {
    padding: 18px 18px;
    border-bottom: 1px solid #eef1f4;
    color: #444;
    line-height: 1.9;
    vertical-align: top;
}
.mb-compare-table tbody tr:last-child td { border-bottom: none; }
.mb-compare-table .old { color: #6c757d; }
.mb-compare-table .new {
    background: rgba(255, 193, 7, 0.08);
    border-left: 4px solid rgba(255, 193, 7, 0.70);
    font-weight: 850;
    color: #5a3c00;
}

/* CTA */
.mb-cta { padding: 70px 0 90px; background: linear-gradient(180deg, rgba(255, 193, 7, 0.06), rgba(4, 32, 95, 0.00)); }
.mb-cta-box {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f4;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.10);
    padding: 28px;
    overflow: hidden;
}

/* TOC */
.mb-toc {
    position: fixed;
    right: 18px;
    top: 140px;
    z-index: 50;
    width: 230px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(4, 32, 95, 0.10);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    backdrop-filter: blur(10px);
}
.mb-toc .title {
    font-weight: 950;
    color: var(--mb-deep);
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}
.mb-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3a4b;
    font-weight: 850;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mb-toc a:hover {
    background: rgba(255, 193, 7, 0.10);
    transform: translateY(-1px);
    color: var(--mb-deep);
}
.mb-toc a.active {
    background: rgba(255, 193, 7, 0.14);
    color: var(--mb-deep);
    border: 1px solid rgba(255, 193, 7, 0.24);
}
.mb-toc .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(4, 32, 95, 0.25);
    flex: 0 0 auto;
}
.mb-toc a.active .dot {
    background: var(--mb-amber);
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.18);
}

/* Lightbox */
.mb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.mb-lightbox.open { display: flex; }
.mb-lightbox-inner {
    max-width: 1100px;
    width: 100%;
    max-height: 86vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.40);
    position: relative;
    display: flex;
    flex-direction: column;
}
.mb-lightbox-bar {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(4, 32, 95, 0.92), rgba(179, 136, 255, 0.92));
    color: #fff;
}
.mb-lightbox-bar .cap {
    font-weight: 950;
    font-size: 13px;
    letter-spacing: 0.2px;
    opacity: 0.95;
}
.mb-lightbox-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 950;
    cursor: pointer;
}
.mb-lightbox-body {
    padding: 14px;
    overflow: auto;
    background: #f6f7f9;
}
.mb-lightbox-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* Mobile sticky CTA */
.mb-mobile-cta {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(4, 32, 95, 0.10);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
.mb-mobile-cta .text {
    font-size: 12px;
    color: #2d3a4b;
    font-weight: 950;
    line-height: 1.3;
}
.mb-mobile-cta .btn {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--mb-amber);
    color: #2b1800 !important;
    font-weight: 950;
    text-decoration: none;
    border: 0;
}

@media (max-width: 992px) {
    .mb-hero h1 { font-size: 2.25rem; }
    .mb-hero { padding: 105px 0 70px; }
    .mb-pain-grid { grid-template-columns: 1fr; }
    .mb-toc { display: none; }
}
@media (max-width: 768px) {
    .mb-hero { padding: 96px 0 56px; }
    .mb-hero .subtitle { font-size: 1.05rem; }
    .mb-mobile-cta { display: flex; }
    body { padding-bottom: 86px; }
    .mb-compare-table,
    .mb-compare-table thead,
    .mb-compare-table tbody,
    .mb-compare-table th,
    .mb-compare-table td,
    .mb-compare-table tr { display: block; width: 100%; }
    .mb-compare-table thead { display: none; }
    .mb-compare-table tbody tr { border-bottom: 1px solid #eef1f4; }
    .mb-compare-table tbody td { border-bottom: none; padding: 14px 16px; }
    .mb-compare-table tbody td:first-child {
        font-weight: 950;
        color: var(--mb-deep);
        padding-top: 16px;
    }
    .mb-compare-table .new {
        border-left: 0;
        border-top: 3px solid rgba(255, 193, 7, 0.80);
    }
}