/* Lawyers Page Styling */


/* Lawyers Count Display Styling */

.lawyers-section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title span {
    color: #b99226;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.lawyers-filters {
    margin-bottom: 30px;
}


/* New Profile Card Styles */

.profile-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    height: 100%;
    padding: 1px;
    border: 1px solid transparent;
}

.profile-card .profile-content {
    background-color: #f7f7f7;
    position: relative;
    border-radius: 15px;
}

.profile-card:hover {
    border-color: #9c7a41;
}

.profile-header {
    background-color: #6a5024;
    color: white;
    padding: 15px 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, rgb(156 122 65) -88%, rgb(83 61 23) 62%);
}

.profile-header h4 {
    margin: 0;
    font-size: 14px;
    color: white;
    font-weight: 400;
}

.menu-dots {
    cursor: pointer;
}

.profile-content {
    padding: 20px;
}

.profile-image-container {
    margin-bottom: 15px;
}

.profile-image {
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
}

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

.profile-info {
    padding: 10px;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.profile-job {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin: 5px 0 0;
}

.profile-button {
    display: inline-block;
    background-color: #7986cb;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.profile-button:hover {
    background-color: #5c6bc0;
    color: white;
    text-decoration: none;
}

.lawyers-count-display {
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.featured-count {
    font-size: 11px;
    color: #2c1b00;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.count-label {
    color: #8b8b8b;
}

.count-number {
    color: #9c7a41;
    font-size: 11px;
    font-weight: 700;
    position: relative;
    min-width: 50px;
}

.count-number::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #9c7a41, transparent);
}

.count-number.animate {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(156, 122, 65, 0.1);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 3px 6px rgba(156, 122, 65, 0.2);
    }
}


/* Minimal Filter Section Styling */

.minimal-filter-container {
    width: 100%;
    margin: 0 auto;
    padding: 8px 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}


/* Minimal Search Bar Styling */

.minimal-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 10px;
    color: #9c7a41;
    font-size: 16px;
}

.minimal-search-input {
    width: 100%;
    padding: 8px 35px 8px 10px;
    border: none;
    font-size: 13px;
    color: #2c1b00;
    background-color: transparent;
}

.minimal-search-input:focus {
    outline: none;
}

.minimal-search-input::placeholder {
    color: #a0a0a0;
}

.minimal-controls {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-left: 5px;
}

.minimal-select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    color: #687693;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%239c7a41" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: left 5px center;
    background-size: 12px;
    padding-left: 22px;
    height: 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.minimal-select:focus {
    outline: none;
    border-color: #9c7a41;
    box-shadow: 0 1px 5px rgba(156, 122, 65, 0.2);
}

.minimal-select:hover {
    border-color: #9c7a41;
}

.minimal-filter-btn {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    color: #8f8f8f;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.minimal-filter-btn:hover {
    border-color: #9c7a41;
    box-shadow: 0 1px 5px rgba(156, 122, 65, 0.2);
}


/* View Switching Button Styles */

.minimal-filter-btn.active {
    background-color: #9c7a41;
    color: #ffffff;
    border-color: #9c7a41;
    box-shadow: 0 1px 5px rgba(156, 122, 65, 0.3);
}


/* Transition for smooth view switching */

.lawyer-card {
    transition: all 0.3s ease;
}

.profile-content {
    transition: all 0.3s ease;
}


/* List view specific styles */

.lawyer-card.col-12 .profile-card {
    height: auto;
}

.lawyer-card.col-12 .profile-content {
    padding: 15px;
}

.filter-title {
    color: #2c1b00;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.filter-box {
    background-color: #fff;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.filter-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, transparent 50%, rgba(156, 122, 65, 0.05) 50%);
    border-radius: 0 0 0 150px;
    z-index: 0;
}

.filter-item {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.filter-item:hover {
    transform: translateY(-2px);
}

.filter-item-title {
    font-size: 14px;
    color: #2c1b00;
    margin-bottom: 8px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    padding-right: 12px;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    font-size: 13px;
    border: 1px solid #e6e6e6;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFF;
}

.custom-select:focus {
    outline: none;
    border-color: #9c7a41;
    box-shadow: 0 3px 15px rgba(156, 122, 65, 0.1);
}

.custom-select:hover {
    border-color: #9c7a41;
}

.select-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9c7a41;
    font-size: 12px;
}


/* Filter Buttons */

#apply-filter-button,
#reset-filter-button {
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#toggle-filter-button {
    outline: none!important;
}

.theme-btn {
    cursor: pointer;
}

.theme-btn-secondary {
    background: transparent !important;
    border: 1px solid #9c7a41 !important;
    color: #9c7a41 !important;
}

.theme-btn-secondary::before {
    background: linear-gradient(45deg, #9c7a41 0%, #412e0d 100%) !important;
}


/* Filter content animation */

#filter-content {
   /* transition: all 0.3s ease-in-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;*/
}

#filter-content.show {
    opacity: 1;
    max-height: 1000px;
    display: block !important;
    background: #f7f7f7;
    border-radius: 10px;
    margin: 7px 0;
}


/* Responsive Styles */

@media (max-width: 767px) {
    .filter-box {
        padding: 20px 15px;
    }
    .custom-select {
        padding: 10px 15px;
    }
    .filter-item-title {
        font-size: 14px;
    }
}


/* Lawyer Cards Styling Enhancement */

.lawyer-card {
    transition: all 0.3s ease;
}

.lawyer-card:hover {
    transform: translateY(-5px);
}

.profile-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #f7f7f7;
    position: relative;
}


/* New Lawyer Card Design */

.lawyer-modern-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.lawyer-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.lawyer-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.lawyer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lawyer-modern-card:hover .lawyer-card-image img {
    transform: scale(1.05);
}

.lawyer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #333;
}

.lawyer-title {
    font-size: 13px;
    color: #9c7a41;
    margin-bottom: 0px;
    font-weight: 500;
}

.lawyer-practice-area {
    font-size: 14px;
    color: #666;
}

.lawyer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    font-size: 13px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 13px;
}

.lawyer-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}


/* Animation for filter items */

.filter-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.filter-item:nth-child(1) {
    animation-delay: 0.1s;
}

.filter-item:nth-child(2) {
    animation-delay: 0.2s;
}

.filter-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Pagination Styling */

.lawyers-pagination {
    margin-top: 50px;
}


/* Lawyer CTA Section Styling */

.lawyer-cta-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    background-image: url(https://alrefaeilawfirm.sa/uploads/images/background_footer.jpg);
    background-attachment: fixed;
    background-size: cover;
}

.lawyer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, transparent 50%, rgba(156, 122, 65, 0.05) 50%);
    border-radius: 0 0 0 300px;
    z-index: 0;
}

.lawyer-cta-wrapper {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.cta-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.join-lawyer-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}


/* Custom Slide-in Modal Styling */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    position: fixed;
    top: 0;
    right: -500px;
    /* Start off-screen */
    width: 500px;
    max-width: 90%;
       height: calc(100% - 20px);
    background-color: #fff;
    z-index: 1060;
    overflow-y: auto;
    transition: right 0.4s ease-out;
    margin: 10px;
    border-radius: 15px;
}

.custom-modal.active {
    right: 0;
    /* Slide in from right */
}

.custom-modal-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(45deg, #9c7a41 0%, #b99226 100%);
    color: white;
}

.custom-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.custom-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.custom-close-btn:hover {
    transform: scale(1.1);
}

.custom-modal-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.custom-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f9f9f9;
}

.custom-btn-secondary {
    padding: 8px 20px;
    background-color: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-btn-secondary:hover {
    background-color: #d0d0d0;
    color: #333;
}


/* Make the form look better in the slide-in panel */

.custom-modal .form-group {
    margin-bottom: 20px;
}


/* Responsive adjustments */

@media (max-width: 576px) {
    .custom-modal {
        width: 100%;
        right: -100%;
    }
    .custom-modal-header,
    .custom-modal-body,
    .custom-modal-footer {
        padding: 15px;
    }
}

.form-group label {
    font-weight: 600;
        color: #5f5f5f;
    margin-bottom: 4px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #9c7a41;
    box-shadow: 0 0 0 0.2rem rgba(156, 122, 65, 0.25);
}

.custom-file-label {
    border-radius: 8px;
    padding: 10px 15px;
    height: auto;
}

.custom-file-input:focus~.custom-file-label {
    border-color: #9c7a41;
    box-shadow: 0 0 0 0.2rem rgba(156, 122, 65, 0.25);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #666;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
    color: #333;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #8b8b8b;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #9c7a41;
    text-decoration: none;
    background-color: rgba(156, 122, 65, 0.05);
    border-color: #9c7a41;
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: linear-gradient(45deg, #9c7a41 0%, #b99226 100%);
    border-color: #9c7a41;
    box-shadow: 0 2px 5px rgba(156, 122, 65, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #d0d0d0;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #e0e0e0;
}
.pagination .page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(156, 122, 65, 0.25);
}

.select2-container .select2-selection__choice {
    border: none !important;
    border-radius: 0.25rem;
    background: #ffde99;
}

.select2-container  .select2-selection__rendered {
  line-height: 26px;
  color: #495057;
}

.select2-container .select2-selection__choice .select2-selection__arrow {
  height: 36px;
  top: 2px;
  right: 10px;
}
.select2-results__option {
  
    font-size: 13px!important;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    left: 3px!important;right:auto!important;
}

.tags-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}

.tags-list {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-list li {
  background-color: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 14px;
  flex-shrink: 0;
}
