/* ===================================
   DOCTORS PAGE
=================================== */

.doctors-page {
    padding: 60px 0 100px;
}

/*
   فقط برای وسط‌چین شدن محتوای همین صفحه.
   این بخش با .container عمومی قالب تداخل ندارد.
*/
.doctors-page .container {
    width: min(100% - 40px, 1320px);
    margin-right: auto;
    margin-left: auto;
}

/* HEADER */

.doctors-header {
    text-align: center;
    margin-bottom: 45px;
}

.header-badge {
    display: inline-flex;
    padding: 7px 18px;
    border-radius: 50px;
    background: #eaf4ff;
    color: #0b3a5a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.doctors-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--color-primary);
}

.doctors-header p {
    color: #64748b;
    font-size: 16px;
}

/* ===================================
   FILTER
=================================== */

.doctor-filter {
    background: white;
    padding: 22px;
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.filter-wrapper {
    display: grid;
    grid-template-columns: 1fr 260px 120px;
    gap: 15px;
}

.search-input,
.specialty-select {
    height: 52px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.search-input span {
    padding: 0 15px;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.search-input input,
.specialty-select select {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
}

.specialty-select select {
    padding: 0 15px;
    cursor: pointer;
}

.filter-btn {
    border: none;
    border-radius: 15px;
    background: #0b3a5a;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    background: #0f6cbd;
}

/* ===================================
   DOCTORS GRID & CARD STYLES
=================================== */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.doctor-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.doctor-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.doctor-image {
    height: 280px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #94a3b8;
    background: #f8fafc;
}

.doctor-content {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-content h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 10px;
    color: #0f172a;
    line-height: 1.5;
}

.specialty-wrapper {
    margin-bottom: 12px;
}

.doctor-specialty {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 50px;
    background: #eaf4ff;
    color: #0b3a5a;
    font-size: 13px;
    font-weight: 700;
}

.doctor-meta-list {
    margin-bottom: 20px;
}

.doctor-meta {
    margin-top: 10px;
    font-size: 13.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.doctor-meta i {
    color: #0f6cbd;
}

.doctor-meta .fa-star {
    color: #f59e0b;
}

.profile-link {
    margin-top: auto;
    padding-top: 15px;
    color: #0f6cbd;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: gap 0.2s;
}

.doctor-card:hover .profile-link {
    gap: 10px;
}

.empty-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 25px;
    color: #64748b;
    font-weight: 700;
}

/* ===================================
   PAGINATION
=================================== */

.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
}

.pagination-box a {
    padding: 12px 22px;
    border-radius: 50px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #0b3a5a;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.pagination-box a:hover {
    background: #0b3a5a;
    color: white;
    border-color: #0b3a5a;
}

.pagination-box span {
    font-weight: 700;
    color: #1e293b;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .filter-wrapper {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        height: 52px;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .doctors-page {
        padding-top: 35px;
    }

    .doctors-page .container {
        width: min(100% - 30px, 1320px);
    }

    .doctors-header h1 {
        font-size: 28px;
    }

    .doctor-filter {
        padding: 15px;
        border-radius: 20px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-card:hover {
        transform: none;
    }

    .doctor-image {
        height: 260px;
    }

    .pagination-box {
        justify-content: space-between;
    }

    .pagination-box a {
        padding: 10px 18px;
    }
}
