:root {
    --primary-dark: #2C2C4B;
    --bg-light: #E9EBF1;
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
}

/* Page specific styles */
.page {
    padding: 60px 10%;
}

.page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.page-title p {
    color: #666;
    font-size: 0.95rem;
    max-width: 560px;
}

.controls {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 15px;
    margin-bottom: 25px;
}

.input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border-radius: 14px;
    padding: 12px 14px;
}

.input i {
    color: var(--primary-dark);
    opacity: 0.85;
}

.input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.control-select select {
    width: 100%;
    border: none;
    outline: none;
    background: var(--bg-light);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.btn-reset {
    border: none;
    cursor: pointer;
    background: var(--primary-dark);
    color: white;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.95rem;
}

.summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
}

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

@media (max-width: 768px) {
    .lawyers-grid {
        grid-template-columns: 1fr;
    }
}

.lawyer-card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.lawyer-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-dark);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid var(--bg-light);
}

.lawyer-name {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.lawyer-license {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.lawyer-specialty {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.lawyer-experience {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.lawyer-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.lawyer-rating .stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.lawyer-rating .rating-text {
    font-size: 0.85rem;
    color: #666;
    margin-left: 5px;
}

.lawyer-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 45px;
}

.btn-view {
    background-color: var(--primary-dark);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-view:hover {
    background-color: #1a1a35;
}

.empty-state {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
    color: #666;
}

.empty-state i {
    font-size: 2rem;
    color: var(--primary-dark);
    opacity: 0.8;
    margin-bottom: 10px;
}

.pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    border: none;
    cursor: pointer;
    background: white;
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    min-width: 44px;
}

.page-btn.active {
    background: var(--primary-dark);
    color: white;
}

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

@media (max-width: 992px) {
    .page {
        padding: 40px 5%;
    }

    .controls {
        grid-template-columns: 1fr;
    }
}