/* ==========================================================================
   Doctor & Legal Expert Dedicated Profile Page Stylesheet (css/doctor-details.css)
   Theme: Luxury Ivory, Royal Purple (#1e1b4b, #2d1060), and Vivid Pink Accent (#e01e5a, #ff528f)
   Optimized for compact vertical rhythm, crisp typography, and zero clutter.
   ========================================================================== */

/* ── 1. Hero Section (Compact & Balanced) ── */
.doctor-hero-section {
    position: relative;
    padding: 24px 0 32px 0;
    background: linear-gradient(135deg, #fff3f7 0%, #ffffff 50%, #f6effd 100%);
    overflow: hidden;
    border-bottom: 1px solid #fce7f0;
}

.doctor-hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 82, 143, 0.12) 0%, rgba(144, 53, 234, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.doctor-hero-breadcrumbs {
    margin-bottom: 16px;
}

.doctor-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
}

.doctor-breadcrumb-list li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.doctor-breadcrumb-list li a:hover {
    color: #e01e5a;
}

.doctor-breadcrumb-list li .active {
    color: #e01e5a;
    font-weight: 600;
}

/* Compact Portrait in Hero */
.doctor-hero-photo-card {
    display: inline-block;
    max-width: 100%;
    text-align: center;
}

.doctor-hero-photo-wrapper {
    position: relative;
    width: 220px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(30, 27, 75, 0.12);
    border: 4px solid #ffffff;
    margin: 0 auto;
}

.doctor-hero-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.doctor-hero-photo-wrapper:hover img {
    transform: scale(1.04);
}

.doctor-hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1e1b4b;
    margin-top: 10px;
}

/* Hero Right Column Content */
.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid rgba(255, 82, 143, 0.35);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #e01e5a;
    box-shadow: 0 2px 8px rgba(224, 30, 90, 0.08);
}

.doctor-hero-name {
    font-size: 32px;
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.doctor-hero-role {
    font-size: 15.5px;
    font-weight: 600;
    color: #e01e5a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.doctor-hero-lead {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.65;
    max-width: 660px;
}

/* Hero Pills */
.doctor-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doctor-hero-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.doctor-hero-pill-item i {
    color: #e01e5a;
    font-size: 12px;
}

/* Hero Action Buttons */
.doctor-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-hero-consult {
    background: linear-gradient(135deg, #e01e5a 0%, #9035ea 100%);
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    box-shadow: 0 4px 16px rgba(224, 30, 90, 0.28);
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.btn-hero-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(224, 30, 90, 0.4);
}

.btn-hero-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13.5px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.btn-hero-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.38);
}

/* ── 2. Main Profile Layout ── */
.doctor-main-section {
    padding: 40px 0 60px 0;
    background: #fdfcfe;
}

.doctor-content-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 3px 18px rgba(30, 27, 75, 0.04);
    padding: 28px 26px;
    margin-bottom: 24px;
}

.doctor-card-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctor-card-heading i {
    color: #e01e5a;
    font-size: 18px;
}

/* Credentials Strip in Card 1 */
.credentials-badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.credential-pill {
    background: #fdf2f7;
    border: 1px solid #fbcfe8;
    color: #1e1b4b;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.credential-pill strong {
    color: #e01e5a;
    margin-right: 4px;
}

.doctor-bio-paragraphs p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 14px;
}

.doctor-bio-paragraphs p:last-child {
    margin-bottom: 0;
}

/* Practice Areas Grid */
.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.practice-area-item {
    background: #fdfafd;
    border: 1px solid #f9e2ed;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.practice-area-item:hover {
    background: #ffffff;
    border-color: #ff528f;
    box-shadow: 0 4px 14px rgba(224, 30, 90, 0.08);
    transform: translateY(-2px);
}

.practice-area-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(224, 30, 90, 0.1);
    color: #e01e5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.practice-area-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0;
}

/* Chamber & Office Card */
.chamber-card {
    background: linear-gradient(135deg, #2d1060 0%, #1e1b4b 100%);
    border-radius: 18px;
    padding: 26px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.18);
    position: relative;
    overflow: hidden;
}

.chamber-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 82, 143, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.chamber-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chamber-title i {
    color: #ff528f;
}

.chamber-address-text {
    font-size: 14.5px;
    color: #e2e8f0;
    line-height: 1.65;
    margin-bottom: 14px;
}

.chamber-landmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12.5px;
    color: #ffb8d2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Trust Guarantees Grid */
.trust-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.trust-guarantee-box {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 18px 16px;
    transition: all 0.25s ease;
}

.trust-guarantee-box:hover {
    border-color: rgba(224, 30, 90, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.trust-guarantee-box i {
    font-size: 20px;
    color: #e01e5a;
    margin-bottom: 8px;
    display: block;
}

.trust-guarantee-box h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.trust-guarantee-box p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ── 3. Sidebar Area ── */
.doctor-sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-consult-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #fce4ec;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.06);
    padding: 24px 20px;
    margin-bottom: 20px;
}

.sidebar-consult-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 3px;
}

.sidebar-consult-card .card-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 16px;
}

.sidebar-quick-facts {
    background: #fafafc;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    padding: 16px;
    margin-bottom: 20px;
}

.quick-fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
}

.quick-fact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-fact-label {
    color: #64748b;
    font-weight: 500;
}

.quick-fact-value {
    color: #1e1b4b;
    font-weight: 600;
    text-align: right;
}

/* Other Panel Members */
.sidebar-panel-list {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.panel-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.panel-member-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panel-member-item:hover {
    transform: translateX(3px);
}

.panel-member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e01e5a;
    flex-shrink: 0;
}

.panel-member-info h6 {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0 0 1px 0;
}

.panel-member-info span {
    font-size: 11.5px;
    color: #e01e5a;
    font-weight: 500;
    display: block;
}

/* ── 4. Responsive Queries ── */
@media (max-width: 991.98px) {
    .doctor-hero-photo-wrapper {
        width: 180px;
        height: 210px;
    }
    .doctor-hero-name {
        font-size: 26px;
    }
    .doctor-sidebar-sticky {
        position: static;
        margin-top: 24px;
    }
    .doctor-content-card {
        padding: 20px 18px;
    }
}
