.GroupDirectoryPage {
    --group-directory-border: #e3e8ee;
    --group-directory-muted: #667085;
    --group-directory-text: #1d2939;
    --group-directory-surface: #fff;
}

.GroupDirectoryPage .GroupListContainer {
    width: 100%;
}

.GroupDirectoryPage .page-menu-section {
    margin-bottom: 20px;
}

.GroupDirectoryPage .page-menu {
    align-items: center;
    display: flex;
    min-height: 58px;
}

.GroupDirectoryPage .page-name {
    align-items: center;
    display: flex;
    gap: 9px;
}

.GroupDirectoryPage .GroupDirectoryCount {
    align-items: center;
    background: #eef2f6;
    border-radius: 999px;
    color: var(--group-directory-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 8px;
}

.GroupDirectoryPage .GroupDirectoryAddButton {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.GroupDirectoryPage .GroupDirectoryAddButton > i,
.GroupDirectoryPage .GroupDirectoryAddButton > span {
    color: inherit !important;
}

.GroupDirectoryPage .GroupDirectoryAddButton:hover,
.GroupDirectoryPage .GroupDirectoryAddButton:focus {
    filter: brightness(.94);
}

.GroupDirectoryPage .NoGroupMode {
    align-items: flex-start;
    background: #f7f9fb;
    border: 1px solid var(--group-directory-border);
    border-radius: 8px;
    color: var(--group-directory-text);
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.GroupDirectoryPage .NoGroupMode > i {
    color: var(--TenantMainColor, #52708f);
    font-size: 22px;
    line-height: 1;
}

.GroupDirectoryPage .NoGroupMode p {
    color: var(--group-directory-muted);
    margin: 3px 0 0;
}

.GroupDirectoryPage .GroupDirectoryRecent {
    margin: 0 0 14px;
}

.GroupDirectoryPage .GroupDirectoryRecentHeader {
    align-items: center;
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.GroupDirectoryPage .GroupDirectoryRecent h2 {
    color: var(--group-directory-text);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.GroupDirectoryPage .GroupDirectoryRecentToggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #7a8699;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    padding: 0;
    width: 24px;
}

.GroupDirectoryPage .GroupDirectoryRecentToggle:hover,
.GroupDirectoryPage .GroupDirectoryRecentToggle:focus {
    background: #eef2f6;
    color: var(--group-directory-text);
    outline: none;
}

.GroupDirectoryPage .GroupDirectoryRecent.is-collapsed {
    margin-bottom: 10px;
}

.GroupDirectoryPage .GroupDirectoryRecent.is-collapsed .GroupDirectoryRecentGroups {
    display: none;
}

.GroupDirectoryPage .GroupDirectoryRecent .group-recent-searches-container {
    padding-bottom: 2px;
}

.GroupDirectoryPage .GroupDirectoryRecent ul.Groups {
    gap: 8px;
    margin: 0;
    padding: 0;
}

.GroupDirectoryPage .GroupDirectoryRecent ul.Groups > a {
    background: #fff;
    border: 1px solid var(--group-directory-border);
    border-radius: 999px;
    flex: 0 0 210px;
    height: 44px;
    overflow: hidden;
}

.GroupDirectoryPage .GroupDirectoryRecent ul.Groups li {
    align-items: center;
    box-sizing: border-box;
    height: 42px;
    min-height: 0;
    padding: 5px 9px;
}

.GroupDirectoryPage .GroupDirectoryRecent ul.Groups > a:hover,
.GroupDirectoryPage .GroupDirectoryRecent ul.Groups > a:focus {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(16, 24, 40, .08);
    outline: none;
}

.GroupDirectoryPage .GroupDirectoryRecent .avatar-image img {
    border-radius: 50%;
    height: 32px;
    object-fit: cover;
    width: 32px;
}

.GroupDirectoryPage .GroupDirectoryRecent .group-details-container {
    min-width: 0;
    width: auto;
}

.GroupDirectoryPage .GroupDirectoryRecent .GroupRecentName {
    color: var(--group-directory-text);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.GroupDirectoryPage .GroupDirectoryRecent .Touched {
    display: none;
}

.GroupDirectoryPage .GroupDirectoryFilterBar {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.GroupDirectoryPage .GroupDirectoryCategories {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    min-width: 0;
    overflow-x: auto;
    padding: 32px 2px 3px;
}

.GroupDirectoryPage .GroupDirectoryCategoryPill {
    background: linear-gradient(to bottom,#fff 0,#f1f1f1 100%);
    border: 1px solid #cfd3d7;
    border-radius: 999px;
    color: #3d4248;
    font-size: 13px;
    font-weight: 400;
    flex: 0 0 auto;
    line-height: 1;
    min-height: 28px;
    padding: 6px 15px;
}

.GroupDirectoryPage .GroupDirectoryCategoryPill:hover,
.GroupDirectoryPage .GroupDirectoryCategoryPill:focus {
    background: #eceff2;
    border-color: #b9c0c7;
    outline: none;
}

.GroupDirectoryPage .GroupDirectoryCategoryPill:focus-visible {
    box-shadow: 0 0 0 2px rgba(82,112,143,.22);
}

.GroupDirectoryPage .GroupDirectoryCategoryPill.selected {
    background: #e58b00;
    border-color: #e58b00;
    color: #fff;
}

.GroupDirectoryPage .GroupDirectorySearch {
    flex: 0 1 45%;
    margin: 0;
    max-width: 45%;
    min-width: 320px;
}

.GroupDirectoryPage .GroupDirectorySearch label {
    color: var(--group-directory-text);
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.GroupDirectoryPage .GroupDirectorySearchControl {
    position: relative;
}

.GroupDirectoryPage .GroupDirectorySearchControl > i {
    color: #7a8699;
    font-size: 17px;
    left: 13px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.GroupDirectoryPage #GroupNameSearch {
    border-color: #cfd6df;
    border-radius: 7px;
    box-sizing: border-box;
    box-shadow: none;
    height: 42px;
    padding: 8px 42px 8px 40px;
    width: 100%;
}

.GroupDirectoryPage #GroupNameSearch:focus {
    border-color: var(--TenantMainColor, #52708f);
    box-shadow: 0 0 0 3px rgba(82, 112, 143, .14);
}

.GroupDirectoryPage .GroupDirectorySearchClear {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #667085;
    display: flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 30px;
}

.GroupDirectoryPage .GroupDirectorySearchClear:hover,
.GroupDirectoryPage .GroupDirectorySearchClear:focus {
    background: #eef2f6;
    color: var(--group-directory-text);
    outline: none;
}

.GroupDirectoryPage .GroupDirectorySearchStatus {
    color: var(--group-directory-muted);
    font-size: 12px;
    margin-top: 7px;
}

.GroupDirectoryPage #FullGroupList,
.GroupDirectoryPage #FullGroupList.no-lazy-load {
    margin: 0;
}

.GroupDirectoryPage ul.FullGroupList,
.GroupDirectoryPage ul.FullGroupList .jscroll-inner,
.GroupDirectoryPage ul.FullGroupList .jscroll-added,
.GroupDirectoryPage #FullGroupList.no-lazy-load ul.FullGroupList {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.GroupDirectoryPage #FullGroupList.lazy-load > ul.FullGroupList {
    display: block;
}

.GroupDirectoryPage #FullGroupList.lazy-load > ul.FullGroupList > .jscroll-inner {
    display: grid;
    width: 100%;
}

.GroupDirectoryPage .FullGroupList .group-list-row {
    background: var(--group-directory-surface);
    border: 1px solid var(--group-directory-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    display: flex;
    float: none;
    min-height: 0;
    overflow: hidden;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: auto;
}

.GroupDirectoryPage #FullGroupList ul.FullGroupList > .jscroll-inner > .group-list-row,
.GroupDirectoryPage #FullGroupList ul.FullGroupList > .jscroll-added > .group-list-row,
.GroupDirectoryPage #FullGroupList.no-lazy-load > ul.FullGroupList > .group-list-row {
    width: 100% !important;
}

.GroupDirectoryPage .FullGroupList .group-list-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .10);
    transform: translateY(-2px);
}

.GroupDirectoryPage .FullGroupList .group-list-row.GroupNameSearchHidden {
    display: none !important;
}

.GroupDirectoryPage .FullGroupList .GroupDirectoryCard {
    background: #fff;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.GroupDirectoryPage .FullGroupList .GroupDirectoryCardMedia {
    aspect-ratio: 16 / 9;
    background-color: #eef2f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.GroupDirectoryPage .FullGroupList .GroupDetails {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    position: static;
}

.GroupDirectoryPage .FullGroupList .GroupClickArea {
    cursor: pointer;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    outline: none;
}

.GroupDirectoryPage .FullGroupList .GroupClickArea:focus-visible {
    box-shadow: inset 0 0 0 3px var(--TenantMainColor, #52708f);
}

.GroupDirectoryPage .FullGroupList .GroupDirectoryCardContent {
    background: #fff;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 14px 16px 16px;
}

.GroupDirectoryPage .FullGroupList .Photos {
    bottom: 12px;
    left: 16px;
    position: absolute;
    top: auto;
    z-index: 2;
}

.GroupDirectoryPage .FullGroupList img.SMAvatar {
    background: #fff;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .18);
    height: 54px;
    object-fit: cover;
    width: 54px;
}

.GroupDirectoryPage .FullGroupList .Name {
    color: var(--group-directory-text);
    display: block;
    font-size: 15px;
    font-weight: 600;
    left: auto;
    line-height: 1.35;
    margin: 0;
    max-width: none;
    overflow-wrap: anywhere;
    padding: 0;
    position: static;
    top: auto;
}

.GroupDirectoryPage .FullGroupList .Name > .adv-badge {
    color: #b7791f;
    display: inline;
    margin-left: 4px;
    position: static;
}

.GroupDirectoryPage .GroupListContainer.thumbnails .FullGroupList .GroupClickArea .Description {
    background: #fff;
    color: #5f656b;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    margin: 7px 0 0;
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    padding: 0;
    position: static;
}

.GroupDirectoryPage .GroupListContainer.thumbnails .FullGroupList .GroupClickArea .Description * {
    margin-top: 0;
}

.GroupDirectoryPage .FullGroupList .tagsList {
    display: none;
}

.GroupDirectoryPage .FullGroupList .Follows.badge {
    background: rgba(17, 24, 39, .72);
    border-radius: 999px;
    font-size: 11px;
    right: 10px;
    top: 10px;
}

.GroupDirectoryPage .FullGroupList .UserActions {
    align-items: center;
    background: #fff;
    border-top: 1px solid #edf0f3;
    display: flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: flex-end;
    margin-top: auto;
    padding: 6px 10px;
    position: static;
    width: 100%;
}

.GroupDirectoryPage .FullGroupList .UserActions > div {
    align-items: center;
    display: flex;
    float: none;
    height: 30px;
    justify-content: center;
    margin: 0 0 0 3px;
    min-width: 30px;
}

.GroupDirectoryPage .FullGroupList .GroupCardIconAction {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #7a8699;
    display: flex;
    height: 30px;
    justify-content: center;
    margin: 0 0 0 3px;
    padding: 0;
    width: 30px;
}

.GroupDirectoryPage .FullGroupList .GroupCardIconAction:hover,
.GroupDirectoryPage .FullGroupList .GroupCardIconAction:focus {
    background: #eef2f6;
    color: var(--group-directory-text);
    outline: none;
}

.GroupDirectoryPage .FullGroupList .GroupCardIconAction:focus-visible {
    box-shadow: 0 0 0 2px var(--TenantMainColor, #52708f);
}

.GroupDirectoryPage .FullGroupList .GroupCardIconAction > i {
    color: inherit;
    font-size: 16px;
}

.GroupDirectoryPage .FullGroupList .UserActions > div > i {
    color: #7a8699;
}

.GroupDirectoryPage .FullGroupList .UserActions > div > i:hover {
    color: var(--group-directory-text);
}

.GroupDirectoryPage .FullGroupList .FollowAction {
    height: 26px;
    min-width: 70px;
}

.GroupDirectoryPage .GroupListContainer.thumbnails .FullGroupList .fi-lock {
    bottom: auto;
    color: #999;
    left: auto;
    margin-left: 4px;
    position: static;
    text-shadow: none;
    transition: color 140ms ease;
}

.GroupDirectoryPage .GroupListContainer.thumbnails .FullGroupList .fi-lock:hover {
    color: #333;
}

.GroupDirectoryPage .GroupDirectoryEmpty {
    align-items: center;
    border: 1px dashed #cfd6df;
    border-radius: 10px;
    color: var(--group-directory-muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    padding: 46px 20px;
    text-align: center;
}

.GroupDirectoryPage .GroupDirectoryEmpty > i {
    color: #98a2b3;
    font-size: 28px;
    margin-bottom: 3px;
}

.GroupDirectoryPage .GroupDirectoryEmpty strong {
    color: var(--group-directory-text);
    font-size: 15px;
}

.GroupDirectoryPage .GroupDirectoryEmpty .btn {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .GroupDirectoryPage ul.FullGroupList,
    .GroupDirectoryPage ul.FullGroupList .jscroll-inner,
    .GroupDirectoryPage ul.FullGroupList .jscroll-added,
    .GroupDirectoryPage #FullGroupList.no-lazy-load ul.FullGroupList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .GroupDirectoryPage .GroupDirectoryFilterBar {
        flex-direction: column;
        gap: 8px;
    }

    .GroupDirectoryPage .GroupDirectorySearch {
        flex-basis: auto;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .GroupDirectoryPage .GroupDirectoryCategories {
        padding: 0 0 3px;
        width: 100%;
    }

    .GroupDirectoryPage ul.FullGroupList,
    .GroupDirectoryPage ul.FullGroupList .jscroll-inner,
    .GroupDirectoryPage ul.FullGroupList .jscroll-added,
    .GroupDirectoryPage #FullGroupList.no-lazy-load ul.FullGroupList {
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .GroupDirectoryPage .page-menu {
        align-items: center;
    }

    .GroupDirectoryPage ul.FullGroupList,
    .GroupDirectoryPage ul.FullGroupList .jscroll-inner,
    .GroupDirectoryPage ul.FullGroupList .jscroll-added,
    .GroupDirectoryPage #FullGroupList.no-lazy-load ul.FullGroupList {
        grid-template-columns: 1fr;
    }
}
