/* Container and Filters */
.wpdd-directory-container { font-family: system-ui, -apple-system, sans-serif; color: #333; max-width: 1200px; margin: 0 auto; padding: 20px; }
.wpdd-search-section { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 15px; margin-bottom: 40px; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.wpdd-search-section input, .wpdd-search-section select { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; background-color: #fff; }

/* Grid Layout */
.wpdd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.wpdd-card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 24px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.wpdd-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.wpdd-card-avatar { width: 80px; height: 80px; margin: 0 auto 15px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wpdd-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wpdd-card-avatar .dashicons { font-size: 40px; width: 40px; height: 40px; color: #94a3b8; }
.wpdd-card h3 { margin: 10px 0 5px; font-size: 18px; color: #1e293b; }
.wpdd-specialty { font-weight: 600; color: #2563eb; margin-bottom: 5px; font-size: 14px; }
.wpdd-city { color: #64748b; font-size: 13px; margin-bottom: 20px; }
.wpdd-view-btn { display: inline-block; width: 100%; padding: 10px; background: #2563eb; color: #fff !important; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 14px; }
.wpdd-view-btn:hover { background: #1d4ed8; }

/* Details Page */
.wpdd-details-wrapper { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px; max-width: 900px; margin: 30px auto; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.wpdd-details-header { display: flex; gap: 30px; align-items: center; }
.wpdd-details-img { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.wpdd-details-img .dashicons { font-size: 60px; width: 60px; height: 60px; color: #94a3b8; }
.wpdd-details-img img { width: 100%; height: 100%; object-fit: cover; }
.wpdd-details-title-box h1 { margin: 0 0 10px; font-size: 32px; color: #1e293b; }
.wpdd-badge { display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 9999px; margin-right: 8px; }
.spec-badge { background: #dbeafe; color: #1e40af; }
.sector-badge { background: #fef3c7; color: #92400e; }
.city-badge { background: #e2e8f0; color: #334155; }
.wpdd-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 30px 0; }
.wpdd-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.wpdd-details-card { background: #f8fafc; border-radius: 12px; padding: 24px; border: 1px solid #edf2f7; }
.wpdd-details-card h3 { margin-top: 0; margin-bottom: 15px; font-size: 18px; color: #0f172a; }
.wpdd-social-links { display: flex; flex-direction: column; gap: 10px; }
.wpdd-social-btn { display: block; padding: 10px; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; text-align: center; text-decoration: none; color: #334155 !important; font-weight: 500; }
.wpdd-social-btn:hover { background: #f1f5f9; }
.wpdd-bio-section h3 { font-size: 20px; color: #0f172a; }
/* Styling layout for the Clear Filter button inside the grid form row */
.wpdd-clear-btn {
    background-color: #ef4444;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.wpdd-clear-btn:hover {
    background-color: #dc2626;
}

/* Updated Responsive adaptation for handling 5 row elements nicely */
@media(min-width: 769px) {
    .wpdd-search-section {
        grid-template-columns: 2fr repeat(3, 1.2fr) 1fr;
        align-items: center;
    }
}

/* Pagination Row Styling Container */
.wpdd-pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.wpdd-pagination a, .wpdd-pagination .current {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.2s;
}
.wpdd-pagination a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #2563eb;
}
.wpdd-pagination .current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}
/* Responsive layout adjustments */
@media(max-width: 768px) {
    .wpdd-search-section { grid-template-columns: 1fr; }
    .wpdd-details-header { flex-direction: column; text-align: center; }
    .wpdd-details-grid { grid-template-columns: 1fr; }
}