/* ==========================================================================
   Doctor Details Profile Stylesheet
   ========================================================================== */

.doctor-name-title {
    color: #333 !important;
    font-weight: 700 !important;
    text-align: center;
}
.verified-icon-badge {
    color: #16c79a;
    margin-left: 5px;
}
.specialty-value-h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #4b5563;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    display: inline;
    word-break: break-word;
}

/* ================= Capture Template (Card Download) ================= */
.capture-card-container {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 650px;
    background: #ffffff;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}
.capture-stethoscope-icon {
    position: absolute;
    right: 20px;
    bottom: 40px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.capture-watermark {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    width: 180px;
    height: 180px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.capture-watermark-img {
    width: 100%;
    height: auto;
}
.capture-header-top {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(248,250,252,0.65) 100%);
    border-bottom: 2px solid #1e40af;
    padding: 20px 25px 12px 25px;
    position: relative;
    z-index: 1;
}
.capture-info-col {
    flex: 1;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.capture-doc-name {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.capture-reg-no {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.capture-details-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.capture-specialty {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
}
.capture-qualification {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}
.capture-designation {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}
.capture-qr-col {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.capture-qr-box {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.capture-verified-badge {
    margin-top: 8px;
    background: transparent;
    border: 1.5px solid #1e3a8a;
    border-radius: 4px;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.capture-verified-icon {
    display: inline-block;
    background: #1877f2;
    color: #ffffff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    font-size: 8px;
    vertical-align: middle;
}
.capture-verified-text {
    color: #1e3a8a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.capture-photo-col {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.capture-photo-bg-slant {
    position: absolute;
    right: -25px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: #1e3a8a;
    opacity: 0.05;
    transform: skewX(-15deg);
}
.capture-photo-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #1e3a8a;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.1);
    position: relative;
    z-index: 2;
}
.capture-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.capture-chamber-section {
    padding: 10px 25px 8px 25px;
    background: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}
.capture-chamber-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.capture-title-bar {
    width: 18px;
    height: 3px;
    background: #1e3a8a;
}
.capture-chamber-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.capture-chamber-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    word-break: break-word;
}
.capture-chamber-row {
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.capture-label {
    font-weight: 700;
    color: #475569;
}
.capture-val-primary {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}
.capture-val {
    font-weight: 600;
    color: #1e293b;
}
.capture-val-subtle {
    color: #334155;
}
.capture-appointment-row {
    color: #1e40af;
}
.capture-val-bold {
    font-weight: 800;
}
.capture-time-row {
    margin-top: 5px;
    color: #059669;
}
.capture-val-green {
    font-weight: 700;
}
.capture-footer {
    background: #1e3a8a;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.capture-site-name {
    letter-spacing: 0.5px;
}

/* ================= Header Card ================= */
.doctor-details-header.redesigned-card{
    display:flex;
    flex-direction: row; /* Desktop: side by side */
    gap:30px;
    align-items: flex-start; /* Align to top for balance */
    text-align: left;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    padding:25px;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    transition:all .35s ease;
    position:relative;
}
.doctor-details-header.redesigned-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(15,23,42,.12);
    border-color:#cbd5e1;
}
/* remove theme ::before color layer */
.doctor-details-header::before{display:none!important;content:none!important}

.doctor-main-info {
    width: 240px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and name vertically on desktop */
}

.doctor-thumb-frame{
    width: 100% !important;
    max-width: 220px;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px;
    background: transparent !important; 
    display: block !important;
    margin: 0 auto !important; 
    padding: 0 !important;
    position: relative !important;
}

.doctor-thumb-img{
    width: 100% !important;
    height: auto !important; 
    max-height: 260px;
    object-fit: cover !important; 
    display: block !important;
    border-radius: 12px;
}

.name-under-photo {
    margin-top: 12px !important; 
    text-align: center !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
    clear: both !important;
}

.about-doctor-inline {
    text-align: left;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.doctor-overview-wrapper {
    flex: 1;
    min-width: 0;
    padding-top: 0;
}

/* About clamp */
.line-clamp-2{
    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.read-more-btn{font-weight:600}

/* Generic hover card */
.hover-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:12px;
    transition:all .35s ease;
}
@media (max-width: 575px) {
    .hover-box {
        padding: 10px;
    }
}
.hover-box:hover{
    transform:translateY(-5px);
    box-shadow:0 16px 32px rgba(0,0,0,.10);
    border-color:#cbd5e1;
}

/* Chamber */
.chamber-box{
    background:#f8fbff;
    border-color:#dbeafe;
}
.chamber-title{
    font-weight:700;
    margin-bottom:8px;
    color:#1d4ed8;
    background:#eff6ff;
    border-left:4px solid #1877f2;
    padding:6px 10px;
    border-radius:8px;
}
.doctor-overview-list {
    display: block;
    width: 100%;
}
.overview-item {
    display: block;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
    margin: 0;
    text-align: left !important;
}
.overview-item:last-child {
    border-bottom: none;
}
.overview-item .label,
.overview-item h2.label {
    font-weight: 700;
    color: #475569;
    display: inline;
    margin-right: 4px;
    font-size: inherit; /* Ensure h2 matches span font size */
    padding: 0;
}
.overview-item .value {
    color: #1e293b;
    display: inline;
    word-break: break-word;
}
.tel-link{font-weight:800;text-decoration:none}
.tel-link:hover{text-decoration:underline}

/* ================= Share (single) ================= */
.share-wrapper{
    padding:12px 14px;
}
.share-title{
    font-weight:700;
    margin-bottom:10px;
}
.share-box{
    display:flex;
    gap:12px;
    justify-content:flex-end;
    align-items:center;
    flex-wrap:wrap;
}
.share-btn{
    width:44px;
    height:44px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:18px;
    border:none;
    cursor:pointer;
    transition:transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.share-btn:hover{
    transform:translateY(-3px) scale(1.08);
    box-shadow:0 14px 24px rgba(0,0,0,.14);
    filter:saturate(1.1);
}
.share-btn:active{transform:translateY(-1px) scale(1.04)}
.share-btn.fb{background:#1877f2}
.share-btn.messenger{background:#0084ff}
.share-btn.whatsapp{background:#25d366}
.share-btn.copy{background:#64748b}
.share-btn.report{background:#dc2626}
.share-btn.download{background:#059669}

.copy-hint{
    font-weight:700;
    color:#16a34a;
}

/* Ads */
.ad-slot{
    width:100%;
}
.ad-slot img{
    width:100%;
    height:auto;
    display:block;
}
.ad-script{
    width:100%;
}
.ad-slot--sticky{
    position:sticky;
    top:120px;
}

/* ================= Related Doctors ================= */
.badge-related{
    background:#eef2ff;
    border:1px solid #c7d2fe;
    color:#3730a3;
    padding:6px 10px;
    border-radius:999px;
    font-weight:700;
    font-size:12px;
}

/* Verified badge beside doctor name */
.verified-text{
    font-weight:600;
    color:#1877f2;
}

/* Sticky ads */
.sticky-ads{
    position:sticky;
    top:120px;
}

/* Related Doctors Global Styles (All Devices) */
.related-doctors .doctor-card-mini,
.related-doctors .native-doctor-card {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 5px; /* Reduced from 10px */
}

.related-doctors .doctor-mini-thumb {
    width: 85%; /* Slightly larger */
    margin: 5px auto 0 auto; /* Reduced from 10px */
}

.related-doctors .doctor-mini-body {
    margin-top: 2px !important; /* Reduced from default 4px */
}

.related-doctors .doctor-mini-body .d-flex {
    justify-content: center;
}

/* Mobile */
@media(max-width:575px){
    .doctor-details-header.redesigned-card{
        display: block !important; 
        padding: 15px !important; 
        height: auto !important; 
        text-align: center !important;
    }
    .doctor-main-info { 
        display: block !important;
        width: 100% !important; 
        margin-bottom: 15px !important;
    }
    .doctor-thumb-frame{
        width: 170px !important; 
        max-height: 200px !important;
        margin: 0 auto 8px auto !important; 
        display: block !important;
    }
    .doctor-thumb-img {
        max-height: 200px !important;
        object-fit: cover !important;
    }
    .name-under-photo { 
        display: block !important;
        margin-top: 8px !important;
        width: 100% !important; 
        position: relative !important;
    }
    .doctor-overview-wrapper { 
        display: block !important;
        width: 100% !important; 
        margin-top: 10px !important;
    }
    
    .about-doctor-inline {
        margin-bottom: 15px !important;
    }

    .chamber-table th{width:150px}
    .share-box{justify-content:center}
    .ad-slot--sticky{position:static}
    
    .doctor-details-header .content h1 {
        font-size: 1.15rem;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
        justify-content: center !important;
    }
}

@media(max-width:991px) and (min-width:576px){
    .doctor-details-header.redesigned-card{
        display: block !important; 
        padding: 20px !important; 
        height: auto !important;
    }
    .doctor-main-info { 
        display: block !important;
        width: 100% !important; 
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    .doctor-thumb-frame{
        width: 220px !important; 
        max-height: 250px !important;
        margin: 0 auto 10px auto !important; 
        display: block !important;
    }
    .doctor-thumb-img {
        max-height: 250px !important;
        object-fit: cover !important;
    }
    .name-under-photo { 
        display: block !important;
        margin-top: 10px !important; 
        width: 100% !important; 
    }
    .doctor-overview-wrapper { 
        display: block !important;
        width: 100% !important; 
    }
}

@media(min-width:992px){
    .main-content-section {
        padding-top: 10px !important;
    }
}

.capture-overview-grid{
    display:grid;
    gap:6px 14px;
}
.capture-overview-cols-1{
    grid-template-columns:minmax(0,1fr);
}
.capture-overview-cols-2{
    grid-template-columns:repeat(2, minmax(0,1fr));
}

.capture-chambers-grid{
    display:grid;
    gap:8px;
}
.capture-chambers-cols-1{
    grid-template-columns:minmax(0,1fr);
}
.capture-chambers-cols-2{
    grid-template-columns:repeat(2, minmax(0,1fr));
}
.capture-chambers-cols-3{
    grid-template-columns:repeat(3, minmax(0,1fr));
}

.ad-text {
    padding: 20px;
    text-align: center;
    word-wrap: break-word;
}
