.agent-tabs {
    display: flex;
    flex-direction: column;
}

.agent-tab-titles {
    display: flex;
    border-bottom: 1px solid #EFEFEF;
    margin-bottom: 30px;
}

.agent-tab-title {
    padding: 10px;
    margin: 2px;
    cursor: pointer;
    color: #1C1C1E;
    font-size: 18px;
    font-weight: 600;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    padding: 0;
    border: none;
    padding-bottom: 13px;
    border-bottom: 2px solid transparent;
    margin: 0;
    margin-bottom: -1px;
    margin-right: 12px;
    padding-right: 8px;
}

.tab button.active {
    background-color: #ccc;
}

.agent-tab-title:hover {
    color: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
}

.agent-tab-title.active {
    color: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
}

.agent-tab-content .agent-tab {
    display: none;
}

.agent-tab-content .agent-tab.active {
    display: block;
}

.agent-inner.sidebar-left{
    order: 1;
}

.agency-wrapper {
    position: relative;
}

.user-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-description {
    font-size: 18px;
}

.cover-photo {
    height: 100%;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-contact-information {
    margin-top: 5%
}

.agency-view-grid-list.active{
    color: black;
}
.card {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.thumbnail {
    flex: 0 0 150px;
}

.thumbnail img {
    width: 100%;
    height: auto;
}

.agency-avatar img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: center;
}


.single-agent-all-listing .button-wrap {
    border-top: 1px solid #EFEFEF;
    padding-top: 30px;
    margin-top: 30px;
}

.single-agent-all-listing .button {
    padding: 18px 32px;
    display: inline-block;
    background: var(--theme-primary-color);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
}

.single-agent-all-listing .button i {
    margin-left: 8px;
    vertical-align: middle;
}

.single-agent-all-listing .button:hover {
    background: #161E2D;
    color: #fff;
}

.single-agent-element .agent-author,
.single-agent-element .agent-description {
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.08);
    padding: 20px 20px 20px 20px;
    margin-bottom: 30px;
}

.single-agent-element .agent-description p {
    font-family: 'Manrope';
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #5C6368;
}

.single-agent-element .agent-author .agent-avatar img {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.single-agent-element .agent-author .agent-avatar {
    margin-right: 30px;
}

.single-agent-element .agent-author .agent-title {
    font-size: 22px;
    margin-bottom: 5px;
}

.single-agent-element .agent-author .agent-content-company {
    margin-bottom: 21px;
}

.single-agent-element .agent-author .agent-company {
    color: #5C6368;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
}

.single-agent-element .agent-author .agent-company b {
    color: #1C1C1E;
}

.single-agent-element .agent-author .agent-content-phone,
.single-agent-element .agent-author .agent-content-email {
    margin-bottom: 6px;
}

.single-agent-element .agent-author .agent-content-phone i,
.single-agent-element .agent-author .agent-content-email i,
.single-agent-element .agent-author .agent-content-address i {
    color: #8E8E93;
    margin-right: 5px;
}

.single-agent-element .agent-author .agent-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
    color: #1C1C1E;
}

.single-agent-element .agent-author .agent-social {
    border-top: 1px solid #EFEFEF;
    padding-top: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.single-agent-element .agent-author .agent-social .item {
    width: 20px;
    height: 20px;
    display: grid;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    margin-bottom: 10px;
}

.single-agent-element .agent-author .agent-social .item:last-child {
    margin-right: 0;
}

.single-agent-element .agent-author .agent-social .item a {
    color: #8E8E93;
    font-size: 18px;
}

.single-agent-element .agent-author .agent-social .item a:hover {
    color: var(--theme-primary-color);
}

.single-agent-element .agent-author {
    display: flex;
    align-items: center;
}

.list-item-agent {
    margin-top: 30px;
}

.list-item-agent .infor-agent {
    display: flex;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.list-item-agent .infor-agent .agent-avatar img {
    border-radius: 10px;
}

.list-item-agent .infor-agent .agent-avatar {
    margin-right: 30px;
    position: relative;
}

.list-item-agent .agent-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.list-item-agent .agent-position {
    color: #5C6368;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
    margin-bottom: 21px;
}

.list-item-agent .agent-phone,
.list-item-agent .agent-email {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
    color: #1C1C1E;
}

.list-item-agent .agent-content-phone i ,
.list-item-agent  .agent-content-email i {
    color: #A3ABB0;
    font-size: 17px;
    margin-right: 5px;
}

.list-item-agent .agent-content-phone {
    margin-bottom: 6px;
}

.list-item-agent .agent-content-phone,
.list-item-agent .agent-content-email {
    display: flex;
    align-items: center;
}

.list-item-agent .agent-wrapper.grid .inner {
    margin-bottom: 40px;
}

.list-item-agent .agent-wrapper.grid .agent-image {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    margin-bottom: 15px;
}

.list-item-agent .agent-wrapper.grid .agent-image img {
    border-radius: unset;
    height: 320px;
    object-fit: cover;
    width: 100%;
}

.list-item-agent .paging-navigation {
    justify-content: center;
}

.agent-wrapper .agent-image .agent-social,
.infor-agent.list .agent-avatar .agent-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    width: max-content;
}

.agent-wrapper:hover .agent-image .agent-social,
.infor-agent.list:hover .agent-avatar .agent-social {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.agent-wrapper .agent-social a,
.infor-agent.list .agent-avatar .agent-social a {
    color: #A3ABB0 !important;
    padding: 0 19px;
    border-right: 1px solid #E4E4E4 !important;
    font-size: 20px;
    margin: 0 !important;
}

.agent-wrapper .agent-social a:last-child,
.infor-agent.list .agent-avatar .agent-social a:last-child {
    border-right: unset !important;
}

.agent-wrapper .agent-social a:hover,
.infor-agent.list .agent-avatar .agent-social a:hover {
    color: var(--theme-primary-color) !important;
}

.infor-agent.list .agent-content {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media only screen and (max-width: 991px) {
    .single-agent-element .agent-author,
    .infor-agent.list {
        display: block;
    }
    .single-agent-element .agent-author .agent-avatar,
    .infor-agent.list .agent-avatar {
        margin-right: 0px;
        margin-left: 0;
        margin-bottom: 20px;
    }
    .single-agent-element .agent-author .agent-avatar img,
    .infor-agent.list .agent-avatar img {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .list-item-agent .infor-agent .agent-avatar img {
        height: 100%;
        object-fit: cover;
    }
    .single-agent-element .agent-author { 
        display: block;
    }
    .single-agent-element .agent-author .agent-avatar {
        margin-right: 0px;
    }
    .single-agent-element .agent-author .agent-content { 
        padding-bottom: 0;
    }
    .single-agent-all-listing  {
        margin-bottom: 80px;
    }
}