
    :root {
        --brand-primary: #1d4ed8;
        --text-dark: #0f172a;
        --text-muted: #64748b;
        --bg-page: #f1f5f9;
        --card-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
        --border-soft: #e2e8f0;
        --font-main: 'Inter', sans-serif;
        --font-heading: 'Playfair Display', serif;
    }

    body {
        background-color: var(--bg-page);
        font-family: var(--font-main);
        color: var(--text-dark);
    }


    .profile-header-bg {
        position: relative;
        width: 100%;
        display: block;
        background-color: #1e293b;
        <?php else: ?> background-color: #1e293b;
        <?php endif;
        ?>background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        /* Desktop */
        height: 420px;
    }

    /* Tablet */
    @media (max-width: 991px) {
        .profile-header-bg {
            height: 320px;
        }
    }


    @media (max-width: 767px) {
        .profile-header-bg {

            height: auto;
            aspect-ratio: 16 / 9;
            background-size: contain;
            background-position: center center;
            background-color: #1e293b;
        }
    }


    .breadcrumb-strip {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 10 !important;
        background: #ffffff;
        border-bottom: 1px solid var(--border-soft);
        padding: 10px 0;
    }

    /* ── Master Profile Card ── */
    .master-profile-wrap {
        position: relative;
        z-index: 5;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .master-profile-card {
        background: #ffffff;
        border-radius: 20px;
        box-shadow: var(--card-shadow);
        padding: 30px;
        display: flex;
        gap: 30px;
        align-items: center;
    }


    @media (max-width: 767px) {
        .master-profile-card {
            flex-direction: column;
            text-align: center;
            gap: 18px;
            padding: 20px 16px;
            border-radius: 16px;
        }
    }

    /* Avatar */
    .mp-avatar-wrap {
        flex-shrink: 0;
        position: relative;
        display: flex;
        align-items: center;
    }

    .mp-avatar {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 16px;
        border: 4px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: #f8fafc;
    }

    @media (max-width: 767px) {
        .mp-avatar {
            width: 110px;
            height: 110px;
        }
    }

    .mp-verified {
        position: absolute;
        bottom: -4px;
        right: -4px;
        background: #10b981;
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        border: 3px solid #fff;
    }

    /* Info */
    .mp-info {
        flex-grow: 1;
    }

    .mp-info h1 {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        margin: 0 0 4px;
        color: #0f172a;
        font-weight: 800;
    }

    @media (max-width: 767px) {
        .mp-info h1 {
            font-size: 1.5rem;
        }
    }

    .mp-info .designation {
        font-size: 1.05rem;
        color: #2563eb;
        font-weight: 500;
        margin-bottom: 16px;
    }

    @media (max-width: 767px) {
        .mp-info .designation {
            font-size: 0.95rem;
            margin-bottom: 12px;
        }
    }

    .mp-tags {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    @media (max-width: 767px) {
        .mp-tags {
            justify-content: center;
        }
    }

    .mp-tag {
        padding: 6px 14px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .mp-tag.specialty {
        background: #eff6ff;
        color: #2563eb;
    }

    .mp-tag.location {
        background: #f1f5f9;
        color: #475569;
    }

    /* Stats */
    .mp-stats {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #e2e8f0;
        padding-left: 40px;
        padding-right: 20px;
        flex-shrink: 0;
    }

    @media (max-width: 767px) {
        .mp-stats {
            border-left: none;
            border-top: 1px solid var(--border-soft);
            padding-left: 0;
            padding-right: 0;
            padding-top: 16px;
            width: 100%;
            flex-direction: row;
            gap: 30px;
            justify-content: center;
        }
    }

    .stat-block {
        text-align: center;
    }


    .stat-num {
        font-size: 1.7rem;
        font-weight: 800;
        margin: 0 0 2px;
        color: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .stat-num i {
        color: #f59e0b;
        font-size: 1.1rem;
    }

    .stat-block p {
        font-size: 10px;
        color: #64748b;
        margin: 0;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* ── Cards ── */
    .doc-card {
        background: #fff;
        border-radius: 16px;
        padding: 30px;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
        border: 1px solid #e2e8f0;
        margin-bottom: 24px;
    }

    @media (max-width: 767px) {
        .doc-card {
            padding: 20px 16px;
            border-radius: 12px;
            margin-bottom: 16px;
        }
    }

    .doc-card-title {
        font-family: var(--font-heading);
        font-size: 1.4rem;
        color: var(--text-dark);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-soft);
    }

    @media (max-width: 767px) {
        .doc-card-title {
            font-size: 1.2rem;
        }
    }

    .doc-card-title .icon-box {
        background: #eff6ff;
        color: var(--brand-primary);
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    /* ── Timeline ── */
    .modern-timeline {
        position: relative;
        padding-left: 25px;
    }

    .modern-timeline::before {
        content: '';
        position: absolute;
        left: 5px;
        top: 0;
        bottom: 0;
        width: 2px;
        border-left: 2px dashed #cbd5e1;
    }

    .mt-item {
        position: relative;
        margin-bottom: 25px;
    }

    .mt-item:last-child {
        margin-bottom: 0;
    }

    .mt-dot {
        position: absolute;
        left: -25px;
        top: 4px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid var(--brand-primary);
        box-shadow: 0 0 0 4px #fff;
    }

    .mt-content h3 {
        font-size: 1.05rem;
        font-weight: 600;
        margin: 0 0 4px;
        color: var(--text-dark);
    }

    @media (max-width: 767px) {
        .mt-content h3 {
            font-size: 0.95rem;
        }
    }

    .mt-content .highlight {
        display: inline-block;
        background: #eff6ff;
        color: var(--brand-primary);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .mt-content .date {
        font-size: 13px;
        color: var(--text-muted);
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* ── Sidebar Info ── */
    .info-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .info-list li {
        display: flex;
        gap: 15px;
        margin-bottom: 18px;
        align-items: flex-start;
    }

    .info-list li:last-child {
        margin-bottom: 0;
    }

    .info-list i {
        font-size: 18px;
        color: var(--brand-primary);
        margin-top: 3px;
        flex-shrink: 0;
    }

    .info-list .info-label {
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 500;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .info-list .info-val {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-dark);
    }


    .sticky-sidebar {
        position: static;
    }

    /* ── CTA Buttons ── */
    .btn-book-appointment {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--brand-primary);
        color: #fff !important;
        border: none;
        padding: 13px 20px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none !important;
        width: 100%;
        margin-top: 20px;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .btn-book-appointment:hover {
        background: #1e40af;
        transform: translateY(-2px);
        color: #fff !important;
    }

    .btn-call-now {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #fff;
        color: var(--brand-primary) !important;
        border: 2px solid var(--brand-primary);
        padding: 11px 20px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none !important;
        width: 100%;
        margin-top: 10px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .btn-call-now:hover {
        background: var(--brand-primary);
        color: #fff !important;
    }

    /* ── Specializations tags mobile ── */
    @media (max-width: 767px) {
        .specs-wrap {
            gap: 8px !important;
        }

        .spec-tag {
            font-size: 12px !important;
            padding: 6px 10px !important;
        }
    }

    /* ── Map iframe responsive ── */
    .map-container {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--border-soft);
    }

    .map-container iframe {
        width: 100% !important;
        height: 200px;
        border: 0;
        display: block;
    }

    /* ── Bio text ── */
    .bio-para {
        font-size: 1rem;
        line-height: 1.8;
        color: var(--text-muted);
        margin: 0 0 16px 0;
        text-align: justify;
    }

    @media (max-width: 767px) {
        .bio-para {
            font-size: 0.92rem;
            line-height: 1.7;
            text-align: left;
        }
    }

    /* ── E-E-A-T Trust Section ── */
    .eeat-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .eeat-item {
        display: flex;
        gap: 16px;
        align-items: flex-start;
        padding: 16px;
        background: #f8fafc;
        border-radius: 10px;
        border: 1px solid var(--border-soft);
    }

    .eeat-icon {
        background: #eff6ff;
        color: var(--brand-primary);
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        flex-shrink: 0;
    }

    /* ✅ SEO: H3 under H2 — proper hierarchy, keyword-rich */
    .eeat-item h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 6px;
    }

    .eeat-item p {
        font-size: 13.5px;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.6;
    }

    @media (max-width: 767px) {
        .eeat-item {
            padding: 14px 12px;
            gap: 12px;
        }

        .eeat-icon {
            width: 34px;
            height: 34px;
            font-size: 14px;
        }

        .eeat-item h3 {
            font-size: 0.88rem;
        }
    }

    /* ── E-E-A-T Stats Strip (1000+ surgeries etc) ── */
    .stats-strip {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #fecdd3;
        padding: 20px 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    .stats-strip-item {
        text-align: center;
        flex: 1;
        min-width: 120px;
        padding: 10px 20px;
        border-right: 1px solid #e2e8f0;
    }

    .stats-strip-item:last-child {
        border-right: none;
    }

    .stats-strip-num {
        font-size: 1.8rem;
        font-weight: 800;
        color: #dc2626;
        line-height: 1;
        margin-bottom: 6px;
    }

    .stats-strip-num i {
        color: #dc2626;
        font-size: 1.4rem;
    }

    .stats-strip-label {
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
    }

    @media (max-width: 767px) {
        .stats-strip {
            padding: 16px 10px;
            gap: 0;
            border-radius: 12px;
        }

        .stats-strip-item {
            min-width: 80px;
            padding: 8px 10px;
        }

        .stats-strip-num {
            font-size: 1.3rem;
        }

        .stats-strip-label {
            font-size: 10px;
        }
    }

    /* ── Keyword Tags (hidden visually but SEO value) ── */
    .keyword-section {
        background: #f8fafc;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .keyword-section-title {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 10px;
    }

    .keyword-tags-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .keyword-tag {
        font-size: 12px;
        color: var(--brand-primary);
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 500;
    }

    @media (max-width: 767px) {
        .keyword-section {
            padding: 14px 14px;
        }

        .keyword-tag {
            font-size: 11px;
            padding: 4px 10px;
        }
    }

    /* ── Explore links ── */
    .explore-link {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        color: var(--brand-primary);
        font-weight: 500;
        text-decoration: none;
    }

    .explore-link:hover {
        text-decoration: underline;
        color: #1e40af;
    }

    @media (max-width: 767px) {
        .explore-link {
            font-size: 13px;
        }
    }
 