#top {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("/wp-content/themes/sunartha/assets/images/appointments/appointments-hero.jpg");
}

#top .container {
    text-align: center;
}

/* ── Listing section ───────────────────────────────────────────── */

.appointments-list {
    padding: 3.5rem 0 5rem;
}

.appointments-section-header {
    margin-bottom: 2.5rem;
}

.appointments-section-title {
    margin-bottom: 1.75rem;
    text-align: center;
}

.appointments-section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.appointments-section-title h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #57ba47;
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

.appointments-section-title p {
    color: #555;
    margin: 0;
    font-size: 0.9375rem;
}

/* ── Filter bar ────────────────────────────────────────────────── */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover {
    border-color: #0e4d9e;
    color: #0e4d9e;
}

.filter-btn.active {
    background: #0e4d9e;
    border-color: #0e4d9e;
    color: #fff;
}

/* ── Consultant grid ───────────────────────────────────────────── */

.consultant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    gap: 1.5rem;
    justify-content: center;
    min-height: 200px;
}

.no-consultants {
    color: #888;
    font-style: italic;
}

/* ── Pagination ────────────────────────────────────────────────── */

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-bar:empty {
    display: none;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.625rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: #0e4d9e;
    color: #0e4d9e;
}

.page-btn.active {
    background: #0e4d9e;
    border-color: #0e4d9e;
    color: #fff;
    cursor: default;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .filter-bar { gap: 0.375rem; }
    .filter-btn { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
    .appointments-section-title h2 { font-size: 1.375rem; }
}
