body.rtl .repro-doctors-grid-wrapper,
body.rtl input,
body.rtl select,
body.rtl button {
    font-family: tajawal, sans-serif !important;
}

.repro-doctors-grid-wrapper {
    font-family: outfit, sans-serif;
}

/* Layout */
.repro-doctors-grid-wrapper {
    width: 100%;
    margin: 40px auto;
    position: relative;
}

.repro-doctors-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .repro-doctors-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.repro-doctors-sidebar {
    background: #f7f8fb;
    border-radius: 8px;
    padding: 20px 22px;
    border: 1px solid #e1e4f0;
}

.repro-doctors-filters h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
}

.repro-filter-block {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.repro-filter-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Inputs */
.repro-filter-search {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #d2d7e5;
    font-size: 13px;
}

.repro-filter-select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid #d2d7e5;
    font-size: 13px;
    background-color: #fff;
}

.repro-filter-check,
.repro-filter-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.repro-filter-check input,
.repro-filter-radio input {
    accent-color: #2e3094; /* Repro color */
}

/* Buttons */
.repro-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.repro-filter-apply,
.repro-filter-reset {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}

.repro-filter-apply {
    background: #2e3094;
    color: #fff;
    border-color: #2e3094;
}

.repro-filter-apply:hover {
    background: #242674;
    border-color: #242674;
}

.repro-filter-reset {
    background: #fff;
    color: #666;
    border-color: #ccd0e0;
}

.repro-filter-reset:hover {
    background: #f1f2f7;
}

/* Loading overlay */
.repro-doctors-grid-wrapper.repro-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.6);
    z-index: 3;
    pointer-events: none;
}

/* Cards grid */
.repro-doctors-results {
    position: relative;
    min-height: 80px;
}

.repro-doctor-grid {
    display: grid;
    gap: 25px;
}

/* columns helper – adjust as needed */
.repro-doctor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.repro-doctor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.repro-doctor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991px) {
    .repro-doctor-grid--cols-3,
    .repro-doctor-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .repro-doctor-grid { grid-template-columns: 1fr; }
}

/* Card */
.repro-doctor-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.repro-doctor-card_inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.repro-doctor-card_photo img {
    width: 100%;
    display: block;
}

.repro-doctor-card_body {
    padding: 14px 16px 16px;
}

.repro-doctor-card_name {
    font-size: 16px;
    margin: 0 0 6px;
    color: #222;
}

.repro-doctor-card_spec {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
}

.repro-doctor-card_location,
.repro-doctor-card_years {
    font-size: 12px;
    color: #777;
    margin: 0 0 3px;
}

.repro-doctor-card_rating {
    margin-top: 6px;
    font-size: 13px;
    color: #f2b01e;
}

.repro-doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

/* Empty state */
.repro-doctors-empty {
    text-align: center;
    padding: 40px 10px;
    color: #888;
    font-size: 14px;
}

/* ================================
   REPRO DOCTORS - PAGINATION STYLE
================================ */

.repro-doctors-pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.repro-doctors-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;          /* ✅ THIS is the missing fix */
    gap: 10px;
    justify-content: center; /* ✅ prevents left overflow */
}

.repro-doctors-pagination li {
    display: inline-flex;
}

.repro-doctors-pagination li a {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f2f2f2;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* Hover */
.repro-doctors-pagination li a:hover {
    background: #8cc542;
    color: #fff;
}

/* Active Page */
.repro-doctors-pagination li.active a {
    background: #2e3094;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Prev / Next */
.repro-doctors-pagination li.prev a,
.repro-doctors-pagination li.next a {
    font-size: 18px;
    padding: 0 16px;
}

/* ================================
   REPRO DOCTORS GRID COLUMNS
================================ */

.repro-doctor-grid {
    display: grid;
    gap: 25px;
}

/* Dynamic columns */
.repro-doctor-grid--cols-1 { grid-template-columns: repeat(1, 1fr); }
.repro-doctor-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.repro-doctor-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.repro-doctor-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 992px) {
    .repro-doctor-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 576px) {
    .repro-doctor-grid { grid-template-columns: repeat(1, 1fr) !important; }
}