.profile-container {
    margin-left: 15px;
    margin-right: 15px;
}

.profile-container #announcement-container-outer {
    width: calc(100% + 30px);
    margin-left: -15px;
}

.profile-content-left {
    flex-grow: 1;
    max-width: calc(100% - 325px);
}

.profile-content-right {
    min-width: max(calc(25% - 15px), 310px);
}

@media screen and (max-width: 950px) {
    .profile-content-left {
        min-width: 100%;
        max-width: 100%;
    }

    .profile-content-right {
        flex-direction: row;
        justify-content: space-between;
        min-width: 100%;
        max-width: 100%;
        min-height: unset;
    }

    .profile-content-right .profile-block {
        flex-grow: 1;
    }
}

@media screen and (max-width: 670px) {
    .profile-content-right {
        flex-wrap: wrap;
    }
}

.profile-header {
    position: relative;
    width: 100%;
    height: 100px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.profile-header > img {
    position: absolute;
    right: max(20px, 5%);
    height: 100%;
    max-height: 100%;
    opacity: 0.7;
}

.profile-header .profile-avatar-container {
    position: absolute;
    left: 30px;
    bottom: -30px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.profile-header .social-container {
    position: absolute;
    left: 155px;
    bottom: 8px;
}

.profile-header .social-container .social-link {
    width: 26px;
    height: 26px;
}

.profile-header .social-container .social-link:hover {
    opacity: 0.8;
}

.profile-header .profile-avatar-container img {
    width: 90%;
    height: 90%;
    margin-left: 5%;
    margin-top: 5%;
    border-radius: 50%;
}

.profile-header.standard-user,
.profile-header.standard-user .profile-avatar-container {
    background-image: linear-gradient(to right, #303A5B, #5AA3AA 90%);
    background-attachment: fixed;
}

.profile-header.core-user,
.profile-header.core-user .profile-avatar-container {
    background-image: linear-gradient(to right, #733E95, #303A5B 60%);
    background-attachment: fixed;
}

.profile-block {
    padding: 15px;
    border: 1px solid var(--brand-border-color);
    border-radius: 8px;
    width: 100%;
    min-height: 150px;
    background-color: white;
}

.expertise-row:hover {
    background-color: #e5e3e3;
}

.expertise-anchor,
.expertise-anchor:hover {
    text-decoration: none;
    color: inherit;
}

.expertise-row img {
    filter: brightness(0%);
}

.profile-info-container {
    background-color: white;
}

.profile-info-content {
    margin-top: 25px;
}

@media screen and (max-width: 450px) {
    .profile-info-content .flex-row {
        flex-wrap: wrap;
    }

    .profile-info-content .flex-row > :first-child {
        width: 100%;
        margin-bottom: 10px;
    }

    .profile-info-content .flex-row > :last-child {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
}

.md-resource-block.refcard,
.md-resource-block.trendreport {
    position: relative;
    min-width: 48%;
    max-width: 48%;
}

@media screen and (max-width: 974px) {
    #trend-reports .md-resource-block.trendreport {
        min-width: 100%;
        max-width: 100%;
    }

    #trend-reports .md-resource-block.trendreport .md-resource-details {
        flex-grow: 1;
        min-width: unset;
        max-width: unset;
    }

    #trend-reports .md-resource-block.trendreport > img {
        max-height: 200px;
    }
}

@media screen and (min-width: 975px) {
    .md-resource-block.trendreport > img {
        max-width: min(250px, 45%) !important;
    }

    #trend-reports .middle-container .flex-row {
        position: relative;
    }
}

.md-resource-block.trendreport .md-resource-details {
    padding-right: 0;
    min-width: 230px;
    max-width: 230px;
}

@media screen and (max-width: 550px) {
    #trend-reports .md-resource-block.trendreport .md-resource-details {
        min-width: 100%;
    }
}

@media screen and (min-width: 975px) {
    .md-resource-block.trendreport:nth-child(odd):not(:nth-last-child(-n + 2)):after {
        position: absolute;
        content: '';
        border-bottom: 1px dashed var(--brand-border-color);
        bottom: -13px;
        width: calc(200% + 30px);
    }

    #trend-reports .md-resource-block.trendreport:nth-child(odd):before {
        position: absolute;
        content: '';
        border-left: 1px dashed var(--brand-border-color);
        top: -20px;
        right: -13px;
        height: calc(100% + 32px);
    }
}

@media screen and (max-width: 974px) {
    .md-resource-block.trendreport:not(:last-child):after {
        position: absolute;
        content: '';
        border-bottom: 1px dashed var(--brand-border-color);
        bottom: -13px;
        width: 100%;
    }
}

@media screen and (min-width: 920px) {
    .md-resource-block.refcard:nth-child(odd):not(:nth-last-child(-n + 2)):after {
        position: absolute;
        content: '';
        border-bottom: 1px dashed var(--brand-border-color);
        bottom: -13px;
        width: calc(200% + 30px);
    }

    #refcards .middle-container {
        position: relative;
    }

    #refcards .middle-container:after {
        position: absolute;
        content: '';
        border-left: 1px dashed var(--brand-border-color);
        top: -5px;
        left: 50%;
        height: 100%;
    }
}

@media screen and (max-width: 919px) {
    .md-resource-block.refcard:after:not(:last-child) {
        position: absolute;
        content: '';
        border-bottom: 1px dashed var(--brand-border-color);
        bottom: -13px;
        width: 100%;
    }
    #refcards .middle-container > .flex-row {
        justify-content: space-around;
    }
    #refcards .middle-container > .flex-row .md-resource-details {
        height: unset !important;
    }
}

@media screen and (max-width: 1023px) {
    #ftl-tagging .article-block .media {
        width: calc(100vw - 123px) !important;
    }
}

#ftl-video-library .event-tab-listing {
    min-width: unset !important;
    max-width: unset !important;
}

.on-demand-presenter {
    color: var(--brand-dark-text) !important;
}

.on-demand-item:hover .on-demand-presenter {
    color: white !important;
}

#ftl-video-library .event-tab-listing .event-item .on-demand-item:hover {
    background-color: var(--brand-primary-color-1) !important;
    opacity: 1 !important;
}

@media screen and (max-width: 589px) {
    #ftl-video-library .event-tab-listing .event-item .on-demand-item,
    #ftl-video-library .event-tab-listing .event-item .on-demand-title,
    #ftl-video-library .event-tab-listing .event-item .on-demand-presenter {
        min-width: 80vw !important;
        max-width: 80vw !important;
    }

    #ftl-video-library .event-tab-listing .event-item .on-demand-thumbnail,
    #ftl-video-library .event-tab-listing .event-item .on-demand-thumbnail img {
        min-width: 80vw !important;
        max-width: 80vw !important;
        min-height: 42vw !important;
        max-height: 42vw !important;
    }
}

#comments .comment,
#saved-content .saved-item {
    position: relative;
}

#comments .comment:not(:last-child):after,
#saved-content .saved-item:not(:last-child):after {
    position: absolute;
    content: '';
    border-bottom: 1px dashed var(--brand-border-color);
    bottom: 0;
    width: 100%;
}

#comments .article-title,
#saved-content .saved-item-title {
    margin-right: auto;
}

#comments .comment-text,
#saved-content .saved-text {
    max-width: 95%;
}

#comments .comment-text i:first-of-type {
    position: absolute;
    color: var(--brand-gray-text);
}

#comments .comment-text div:first-of-type {
    margin-left: 25px;
}

#comments .comment-text div:first-of-type,
#saved-content .saved-text {
    word-break: break-word;
}

.dropdown-menu > li > a {
    user-select: none;
}

.badge-list {
    margin-top: 3px;
}

.badge-list > .badge-staff {
    width: 50px;
    color: #f4bd25;
}
.badge-list > .badge-mvb {
    width: 38px;
    color: #1bd281;
}
.badge-list > .badge-core {
    width: 60px;
    font-weight: bold;
    color: #009ddc;
    letter-spacing: -1px;
    font-size: 13px;
    user-select: none;
}
.suspend-text {
    margin-left: 5px;
    margin-top: -3px;
}