.agency-profiles-container {
    display: flex;
    padding: 80px 0;
    flex-direction: column;
    gap: 80px;
}

.agency-profiles-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.agency-profiles-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.agency-profiles-header h1 {
    color: #18181B;
    font-size: 28px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: -0.28px;
    text-align: center;
}

.agency-profiles-header p {
    color: #71717A;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.agency-profiles-list-section {
    display: flex;
    flex-direction: column;
    padding: 10px 0 0;
    margin-top: -40px;
}

.category-rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #71717A;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0.06px;
    padding: 20px;
}

.category-rating-container span {
    color: #3F3F46;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0.06px;
}

.agency-profiles-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.agency-profile-item {
    display: flex;
    padding: 20px 0px;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    border-top: 1px solid var(--Zinc-200, #E4E4E7);
    cursor: pointer;
}

.agency-profile-item:hover {
    border-top: 1px solid #B7EFC5;
    background: linear-gradient(180deg, rgba(230, 250, 235, 0.20) 0%, rgba(230, 250, 235, 0.00) 100%);
}

.agency-profile-item:hover .profile-action-btn {
    background: #E6FAEB;
}

.agency-profile {
    position: relative;
}

.agency-profile .profile-image-container {
    border-radius: 50%;
    place-content: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    margin: 0;
    border: 2px solid transparent;
}

.agency-profile-list {
    border: 2px solid #A1A1AA !important;
}

.agency-profile .verified {
    border-color: #2DC653 !important;
}

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

.profile-verify-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
}

.agency-profile-information {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agency-profile-information .profile-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-info h2 {
    color: #18181B;
    font-size: 18px;
    font-weight: 500;
    line-height: 25px;
    overflow: hidden;
    max-width: 240px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-skills {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-skills li {
    padding: 2px 5px;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    background: #E4E4E7;
    color: #3F3F46;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100px;
}

.additional-info {
    min-width: 300px;
}

.additional-info span {
    color: #71717A;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0.06px;
}

.additional-info .profile-indicator {
    display: flex;
    padding: 4px;
    align-items: center;
    gap: 8px;

}

.additional-info img {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}


.profile-indicator p {
    width: 4px;
    height: 4px;
    border-radius: 50px;
    background: var(--Zinc-300, #D4D4D8);
}

.profile-additional-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 70px;
    padding: 10px;
}

.profile-additional-info span {
    color: #71717A;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0.06px;
}

.profile-additional-info p {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3F3F46;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.032px;
}

.profile-action-btn {
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 5px;
}

.profile-action-btn span {
    color: #155D27;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.07px;
}

.reference-link-container {
    display: flex;
    padding: 10px 10px 40px 10px;
    flex-direction: column;
    gap: 40px;
}

.reference-link-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reference-link-section .reference-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reference-header-info h3 {
    color: var(--Zinc-900, #18181B);
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
}

.reference-link-section .divider {
    width: 100%;
    height: 1px;
    background: #E4E4E7;
}

.reference-link-section ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.reference-link-section ul li a {
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    background: #FFF;
    color: #18181B;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.reference-link-section ul li a:hover {
    color: #2DC653;
    background: #F2FCF5;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.view-all-link img {
    width: 16px;
    height: 16px;
}

.view-all-link a {
    color: #71717A;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration-line: underline;
}


.agency-list-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #E4E4E7;
}

.arrow-pagination-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-arrow {
    display: flex;
    margin: 8px;
    align-items: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.left-pagination-section .pagination-arrow {
    transform: rotate(180deg);
}


.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-numbers span {
    display: flex;
    width: 32px;
    height: 32px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #71717A;
    font-size: 16px;
    line-height: 25px;
    font-weight: 400;
    letter-spacing: 0.032px;
    cursor: pointer;
}

.pagination-numbers .active {
    color: #2DC653;
    font-weight: 600;
}

.arrow-pagination-section .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mobile-agency-profile-item {
    display: none;
}

.profile-verify-icon-container {
    position: absolute;
    bottom: -14px;
    right: 0;
    width: 24px;
    height: 24px;
}

.agency-pro-badge {
    display: grid;
    place-content: center;
    color: var(--White, #FFF);
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.05px;
    border-radius: 1000px;
    background: var(--Gradient-Fuchsia-180-deg, linear-gradient(180deg, #C026D3 0%, #E879F9 100%));
    padding: 1px 5px;
}

.tooltip-container {
    display: flex !important;
}

@media screen and (max-width: 400px) {
    .agency-profiles-header h1 {
        font-size: 24px;
        line-height: 35px;
        text-align: center;
    }

    .agency-profiles-header a {
        font-size: 12px !important;
        padding: 7.5px !important;
        line-height: 15px !important;
    }
}


@media screen and (max-width: 680px) {

    .agency-profile-item {
        display: none;
    }

    .agency-profiles-container {
        padding: 40px 20px;
    }

    .agency-profiles-section {
        gap: 40px;
    }

    .category-rating-container {
        flex-wrap: wrap;
    }

    .mobile-agency-profile-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-agency-profile {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .mobile-agency-profile .profile-image-container {
        width: 60px;
        height: 60px;
    }

    .agency-profile .profile-verify-icon {
        width: 20px;
        height: 20px;
    }

    .profile-info h2 {
        font-size: 16px;
        line-height: 20px;
        max-width: 180px;
    }

    .profile-skills li {
        font-size: 12px;
        line-height: 15px;
        max-width: 80px;
    }

    .mobile-additional-info-container {
        display: flex;
        gap: 10px;
    }

    .profile-additional-info {
        padding: 5px;
    }

    .profile-additional-info p {
        font-size: 12px;
        line-height: 15px;
    }

    .profile-action-btn {
        margin: auto;
        border-radius: 3px;
        background: #E6FAEB;
        padding: 7.5px;
    }

    .profile-action-btn span {
        font-size: 12px !important;
    }

    .reference-link-section {
        gap: 15px;
    }

    .reference-header-info h3 {
        font-size: 16px;
        line-height: 25px;
    }

    .reference-header-info img {
        width: 16px;
        height: 16px;
    }

    .reference-link-section ul li a {
        font-size: 12px;
        line-height: 15px;
        padding: 7.5px 15px;
    }

    .profile-location-mobile {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .profile-location-mobile img {
        width: 12px;
        height: 12px;
    }

    .additional-info span {
        font-size: 10px;
    }

    .frequently-asked-question-container {
        gap: 20px;
    }

    .question-accordion-header {
        gap: 5px;
        align-items: flex-start;
    }

    .question-accordion-header h3 {
        font-size: 14px;
        line-height: 20px;
    }

    .frequently-accordion-content p {
        font-size: 12px;
        line-height: 15px;
        margin-top: 0;
    }

    .agency-profiles-header p {
        width: 100%;
        font-size: 12px;
    }
}