/* WP-DocBot Premium Frontend Styles - Namespaced & Bulletproof */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Focused Reset for namespaced container */
.wpdb-f-container, .wpdb-f-container * {
    box-sizing: border-box !important;
}

.wpdb-f-container {
    max-width: 900px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #1a202c !important;
    line-height: 1.5 !important;
}

.wpdb-f-card {
    background: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: block !important;
}

.wpdb-f-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.wpdb-f-main {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .wpdb-f-main {
        flex-direction: column !important;
    }
}

/* Image Column */
.wpdb-f-img-wrap {
    width: 240px !important;
    min-width: 240px !important;
    height: 300px !important;
    background: #f7fafc !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .wpdb-f-img-wrap {
        width: 100% !important;
        height: 300px !important;
    }
}

.wpdb-f-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.wpdb-f-img-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #cbd5e0 !important;
    background: #f7fafc !important;
}

.wpdb-f-img-placeholder svg {
    width: 64px !important;
    height: 64px !important;
    fill: currentColor !important;
}

/* Info Column */
.wpdb-f-content {
    flex: 1 !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
}

.wpdb-f-location-tag {
    display: inline-flex !important;
    align-items: center !important;
    background: #ebf8ff !important;
    color: #2b6cb0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 100px !important;
    margin-bottom: 12px !important;
    align-self: flex-start !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
}

.wpdb-f-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
}

.wpdb-f-location-full {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    color: #718096 !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
}

.wpdb-f-location-full svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    fill: none !important;
    stroke: #4a5568 !important;
    stroke-width: 2 !important;
}

.wpdb-f-bio-snippet {
    color: #4a5568 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
}

/* Toggle Button */
.wpdb-f-toggle-btn {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #2d3748 !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    width: fit-content !important;
    margin-top: auto !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.wpdb-f-toggle-btn:hover {
    background: #f7fafc !important;
    border-color: #cbd5e0 !important;
    color: #1a202c !important;
}

.wpdb-f-toggle-btn.is-active {
    background: #2b6cb0 !important;
    color: #ffffff !important;
    border-color: #2b6cb0 !important;
}

.wpdb-f-toggle-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    stroke-width: 3 !important;
    fill: none !important;
    transition: transform 0.3s ease !important;
}

.wpdb-f-toggle-btn.is-active svg {
    transform: rotate(180deg) !important;
}

/* Expanded Details */
.wpdb-f-details {
    display: none;
    background: #fcfdfe !important;
    border-top: 1px solid #edf2f7 !important;
    padding: 30px !important;
}

.wpdb-f-section {
    margin-bottom: 25px !important;
}

.wpdb-f-section:last-child {
    margin-bottom: 0 !important;
}

.wpdb-f-section h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
}

.wpdb-f-section h4::before {
    content: '' !important;
    display: block !important;
    width: 4px !important;
    height: 16px !important;
    background: #2b6cb0 !important;
    border-radius: 100px !important;
}

.wpdb-f-section p {
    margin: 0 0 10px 0 !important;
    color: #4a5568 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.wpdb-f-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpdb-f-list-item {
    padding: 12px 15px !important;
    background: #ffffff !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    color: #4a5568 !important;
}

.wpdb-f-list-item strong {
    display: block !important;
    color: #2d3748 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
}

.wpdb-f-period {
    font-size: 11px !important;
    color: #2b6cb0 !important;
    font-weight: 700 !important;
    margin-top: 4px !important;
}

.wpdb-f-interests-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.wpdb-f-interest-tag {
    background: #f7fafc !important;
    border: 1px solid #edf2f7 !important;
    color: #4a5568 !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.wpdb-f-address-card {
    background: #ebf8ff !important;
    padding: 20px !important;
    border-radius: 14px !important;
    border: 1px solid #bee3f8 !important;
    margin-top: 15px !important;
}

.wpdb-f-address-card strong {
    display: block !important;
    color: #2c5282 !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
}

.wpdb-f-address-card p {
    margin: 0 !important;
    color: #2a4365 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Certificates Grid */
.wpdb-f-certs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 5px !important;
}

.wpdb-f-cert-item {
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #edf2f7 !important;
    background: #fff !important;
    cursor: default !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.wpdb-f-cert-item:hover {
    transform: scale(1.05) !important;
    border-color: #2b6cb0 !important;
}

.wpdb-f-cert-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
