/* Filter Wrapper */
.filter-wrapper {
    margin-bottom: 20px;
}

.filter-button {
    text-align: center;
    display: flex;
    flex-direction: row-reverse;
}

.filter {
    width: 80px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.192);
    cursor: pointer;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.021);
    transition: all 0.3s;
    background: #b68c5a;
}

.filter svg {
    height: 16px;
    fill: white;
    transition: all 0.3s;
}

.filter:hover {
    box-shadow: 0px 10px 10px #b68c5a;
    background-color: #b68c5a;
}

.filter:hover svg {
    fill: white;
}

/* Filter Container */
.filter-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideFade 0.8s ease-out;
    display: none;
    /* Initially hidden */
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-options select:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.filter-options select:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.filter-options select:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.filter-options select:nth-child(4) {
    grid-column: 4;
    grid-row: 1;
}

.filter-options select:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
}

.filter-options select:nth-child(6) {
    grid-column: 2;
    grid-row: 2;
}

.filter-options select:nth-child(7) {
    grid-column: 3;
    grid-row: 2;
}

.filter-options select {
    width: 100%;
    height: 40px;
    padding: 8px 15px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    border: 2px solid var(--theme-color);
    border-radius: 8px;
    background: transparent;
    color: #1e2a44;
    transition: all 0.4s ease;
}

.filter-options .select2-searchable {
    height: 40px;
}

.select2-container--default .select2-selection--single {
    border: 2px solid var(--theme-color);
    border-radius: 8px;
    height: 40px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection__rendered {
    color: #1e2a44;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 36px;
}

.select2-container--default .select2-selection__arrow {
    height: 36px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-color);
}

/* CTA Buttons */
.cta {
    text-align: center;
    margin-top: 15px;
}

.cta .button {
    width: 100%;
    max-width: 220px;
    padding: 12px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta .button-primary {
    background: var(--theme-color);
    color: #fff;
    border: none;
}

.cta .button-primary:hover {
    background: var(--theme-color2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--theme-color);
}

.cta .button-default {
    background: var(--theme-color2);
    color: white;
    /* border: 2px solid var(--theme-color); */
}

.cta .button-default:hover {
    background: var(--theme-color);
    color: #fff;
    transform: translateY(-2px);
}

.cta .icon-arrow {
    margin-left: 8px;
}

/* Desktop and Mobile View Toggle */
.mobile_card {
    display: none;
}

@media screen and (max-width: 768px) {
    .Desktop_card {
        display: none;
    }

    .mobile_card {
        display: block;
    }

    .filter-options {
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
}

/* Like & Dislike Button Styling */
.like-dislike-container {
    position: relative;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    cursor: default;
    color: var(--dark-grey);
    opacity: 0.9;
    margin: auto;
    padding: 0.5rem;
    font-weight: 600;
    background: var(--lightest-grey);
    max-width: max-content;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: 0.2s ease all;
}

.like-dislike-container:hover {
    box-shadow: var(--shadow-active);
}

.like-dislike-container .icons-box {
    display: flex;
}

.like-dislike-container .icons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.5rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--middle-grey);
    border-radius: 50px;
    transition: 0.2s ease all;
    padding: 15px;
}

.like-dislike-container .icons i {
    font-size: 25px;
}

.like-dislike-container .icons:hover {
    opacity: 0.9;
    box-shadow: var(--shadow);
}

.like-dislike-container .icons:active {
    opacity: 0.9;
    box-shadow: var(--shadow-active);
}

.like-dislike-container .icons.icon-active {
    color: #4caf50;
    /* Green for like */
}

.like-dislike-container .icons.dislike.icon-active {
    color: #f44336;
    /* Red for dislike */
}

/* Desktop Cards */
/* .Desktop_card .team-card.style-2 {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} */

.Desktop_card .team-card.style-2:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Cards */
.attorneys-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 0;
}

@media (max-width: 768px) {
    .attorneys-wrapper {
        display: block;
        position: relative;
        height: 450px;
        max-width: 300px;
        margin: 0 auto;
    }

    .team-card {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        max-width: 300px;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .team-card.swipe-left-card {
        transform: translateX(-150%) rotate(-10deg);
        opacity: 0;
    }

    .team-card.swipe-right-card {
        transform: translateX(150%) rotate(10deg);
        opacity: 0;
    }

    .direction-indicator {
        position: absolute;
        top: 50%;
        font-size: 40px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
    }

    .left-indicator {
        left: 10px;
        color: #f44336;
    }

    .right-indicator {
        right: 10px;
        color: #4CAF50;
    }
}

.team-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-content {
    padding: 20px;
    text-align: center;
}

.box-title {
    margin-bottom: 5px;
    font-size: 18px;
}

.box-title a {
    text-decoration: none;
    color: #333;
}

.team-desig {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.progress-indicator {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    color: #555;
}

/* Pagination */
.pagination-controls {
    margin-top: 30px;
    text-align: center;
}

.pagination-controls .auth-button {
    padding: 10px 20px;
    font-size: 14px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background: var(--theme-color);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination-controls .auth-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination-controls .auth-button:hover:not(:disabled) {
    background: var(--theme-color2);
}

.pagination-controls .page-info {
    font-size: 16px;
    color: #1e2a44;
    padding: 0 15px;
    vertical-align: middle;
}

/* Animation */
@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 /* Like & Dislike Button Styling */
 .like-dislike-container {
    --dark-grey: #353535;
    --middle-grey: #767676;
    --lightest-grey: linear-gradient(#fafafa, #ebebeb);
    --shadow: 0 5px 15px 0 #00000026;
    --shadow-active: 0 5px 5px 0 #00000026;
    --border-radius-main: 10px;
    --border-radius-icon: 50px;
    position: relative;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    cursor: default;
    color: var(--dark-grey);
    opacity: 0.9;
    margin: auto;
    padding: 0.5rem;
    font-weight: 600;
    background: var(--lightest-grey);
    max-width: max-content;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow);
    transition: 0.2s ease all;
}

.like-dislike-container:hover {
    box-shadow: var(--shadow-active);
}

.like-dislike-container .icons-box {
    display: flex;
}

.like-dislike-container .icons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* opacity: 0.6; */
    margin: 0 0.5rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--middle-grey);
    border-radius: var(--border-radius-icon);
    transition: 0.2s ease all;
    padding: 15px;
}

.like-dislike-container .icons i {
    font-size: 25px;
}

.like-dislike-container .icons:hover {
    opacity: 0.9;
    box-shadow: var(--shadow);
}

.like-dislike-container .icons:active {
    opacity: 0.9;
    box-shadow: var(--shadow-active);
}

.like-dislike-container .icons .svgs {
    width: 1.3rem;
    fill: #000000;
    box-sizing: content-box;
    transition: 0.2s ease all;
}

.like-dislike-container .icons.active {
    /* background-color: #4caf50; */
    color: #4caf50;
}

.like-dislike-container .icons.disliked {
    /* background-color: #f44336; */
    color: #f44336;
}

.mobile_card {
    display: none;
}

@media screen and (max-width: 768px) {
    .Desktop_card {
        display: none;
    }

    .mobile_card {
        display: block;
    }

}

/* Mobile cards */
.attorneys-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 0;
}

/* Team card styles */
.team-card {
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Style for swipeable cards on small screens */
@media (max-width: 768px) {
    .attorneys-wrapper {
        display: block;
        position: relative;
        height: 600px;
        max-width: 300px;
        margin: 0 auto;
    }

    .team-card {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        max-width: 300px;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .team-card.swipe-left-card {
        transform: translateX(-150%) rotate(-10deg);
        opacity: 0;
    }

    .team-card.swipe-right-card {
        transform: translateX(150%) rotate(10deg);
        opacity: 0;
    }

    .direction-indicator {
        position: absolute;
        top: 50%;
        font-size: 40px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
    }

    .left-indicator {
        left: 10px;
        color: #f44336;
    }

    .right-indicator {
        right: 10px;
        color: #4CAF50;
    }
}

.team-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-content {
    padding: 20px;
    text-align: center;
}

.box-title {
    margin-bottom: 5px;
    font-size: 18px;
}

.box-title a {
    text-decoration: none;
    color: #333;
}

.team-desig {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Like/Dislike button styles */
.like-dislike-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.icons-box {
    display: flex;
    gap: 15px;
}

.icons {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f5f5f5;
}

.icons.like {
    color: #4CAF50;
}

.icons.dislike {
    color: #f44336;
}

.icons.icon-active {
    transform: scale(1.2);
    background-color: #eee;
}

.icons i {
    font-size: 20px;
}

/* Indicator for swipe count */
.progress-indicator {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    color: #555;
}

#mobileAttorneyCards {
    position: relative;
    overflow: hidden;
}
.team-card.style-2 {
    transition: transform 0.5s ease, opacity 0.5s ease;
}