﻿.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.padding-x-0 {
    padding-left: 0;
    padding-right: 0;
}

.page-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.resources-pagination {
    width: 100%;
}

.display-count {
    margin-right: 5px;
    padding: 1px 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    color: #fff;
    background-color: #ca39a8;
    border-radius: 0.25rem;
}

.resTags {
    font-size: 0.8rem;
    color: #767676;
}

.fTag {
    cursor: pointer;
    /*border-bottom: 1px solid #767676;*/
}

.fTag:hover {
    border-bottom: 1px solid #767676;
}

.tags-and-date .fTag:hover {
    border-bottom: 1px solid #000;
}

.tags-container {
    padding: 0;
    margin-bottom: 0;
}

    .tags-container li {
        list-style-type: none;
    }

.mega-menu-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.section-wrapper-grid {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.filtering-section {
    display: flex;
    justify-content: flex-end;
}

#search-resources-btn,
#search-resources,
.btn-search-resources {
    border: 0;
}

#search-resources-btn,
.btn-search-resources {
    color: #004f9a;
}

.search-general-resources {
    display: block;
}

    .search-general-resources .input-group {
        padding-top: 1.5rem;
    }

        .search-general-resources .input-group .form-control {
            padding: 0.75rem;
            font-size: 0.875rem;
            color: #000;
            background-color: #f5f5f5;
            border: 0;
        }

/* Legacy figure layout */
.resources-container .col-md-6 figure {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    color: #767676;
    border-bottom: 1px solid #ced4da;
}

    .resources-container .col-md-6 figure h3 {
        color: #2376d8;
    }

    .resources-container .col-md-6 figure .res-img-container {
        display: flex;
        justify-content: center;
        padding-bottom: 1rem;
    }

        .resources-container .col-md-6 figure .res-img-container:hover,
        .resources-container .col-md-6 figure .title:hover {
            border-bottom: 0;
        }

    .resources-container .col-md-6 figure .pub-img {
        width: fit-content;
        max-height: 280px;
        align-self: center;
        border: 1px solid #ced4da;
    }

    .resources-container .col-md-6 figure .tags-and-date {
        margin-top: auto;
        flex-basis: 15%;
    }

        .resources-container .col-md-6 figure .tags-and-date p:last-of-type {
            margin-bottom: 0;
        }

/* Card layout */
.row.resources-container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.resources-container {
    gap: 35px;
}

    .resources-container .card.hidden {
        display: none;
    }

    .resources-container .card {
        width: 100%;
        padding: 19.2px;
        margin-bottom: 0 !important;
        border: 1px solid #ced4da;
        border-radius: 10px;
    }

        .resources-container .card a {
            padding: 0;
            color: #767676;
            text-decoration: none !important;
        }

            .resources-container .card a:hover {
                color: #727272;
                text-decoration: none !important;
                border-bottom: none;
            }

                .resources-container .card a:hover .resTags {
                    color: #727272;
                }

    .resources-container .card-title {
        display: block;
        margin-bottom: 1.2rem;
        font-size: 24px;
        line-height: 31.2px;
        font-weight: 700;
        color: #2376d8;
        text-decoration: none;
        cursor: pointer;
    }

        .resources-container .card-title:hover {
            color: #004f9a;
            text-decoration: none;
            border-bottom: unset;
        }

    .resources-container .card .img-place-holder {
        position: relative;
        margin: 0 auto;
        border: 1px solid #C3CAD5;
    }

        .resources-container .card .img-place-holder > a {
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .resources-container .card .img-place-holder > a:hover {
                text-decoration: none;
                border-bottom: unset;
            }

        .resources-container .card .img-place-holder img {
            width: 100%;
            height: 358px;
            object-fit: contain;
        }

    .resources-container .card .img-place-holder__wrapper {
        padding-bottom: 1.5rem;
    }

    .resources-container .card .res-desc {
        padding-bottom: 2.25rem;
    }

    .resources-container .card .res-desc p{
        /*padding-bottom: 1rem;*/
        /*display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;*/
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0;

    }

    .resources-container .curated-tags {
        padding-top: 1rem;
        line-height: initial;
        font-weight: 400;
        border-top: 1px solid #ced4da;
        position: relative;
        z-index: 1000;
        /*background-color: whitesmoke;*/
    }
    
    .resources-container .card .external-icons {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        background: #fff;
        border-radius: 100%;
    }

        .resources-container .card .external-icons::before {
            content: "";
            display: block;
            width: 20px;
            height: 21px;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='13' viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4544 0H7.09059C6.78934 0 6.54511 0.259273 6.54511 0.579085C6.54511 0.898897 6.78934 1.15817 7.09059 1.15817H10.1375L4.52302 7.11857C4.31004 7.34467 4.31004 7.71134 4.52302 7.93749C4.6295 8.05053 4.7691 8.10709 4.9087 8.10709C5.04829 8.10709 5.18792 8.05053 5.29437 7.93747L10.9089 1.9771V5.21172C10.9089 5.53153 11.1531 5.7908 11.4544 5.7908C11.7557 5.7908 11.9999 5.53153 11.9999 5.21172V0.579085C11.9999 0.259273 11.7556 0 11.4544 0Z' fill='%233A3182'/%3E%3Cpath d='M9.27303 5.79062C8.97178 5.79062 8.72755 6.0499 8.72755 6.36971V11.5814H1.09093V3.47431H6.0002C6.30145 3.47431 6.54568 3.21503 6.54568 2.89522C6.54568 2.57541 6.30145 2.31616 6.0002 2.31616H0.545479C0.244227 2.31616 0 2.57544 0 2.89525V12.1605C0 12.4803 0.244227 12.7396 0.545479 12.7396H9.27305C9.5743 12.7396 9.81853 12.4803 9.81853 12.1605V6.36971C9.81851 6.0499 9.57428 5.79062 9.27303 5.79062Z' fill='%233A3182'/%3E%3C/svg%3E%0A");
            background-repeat: no-repeat;
            background-position: 0 0;
            background-size: cover;
        }

.sub-title-label {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 13px;
    font-weight: 700;
    color: #4a4a4a;
}

.section-grid .events-filter-container .custom-control.d-flex {
    align-items: flex-start;
}

@media (min-width: 768px) {
    .page-link {
        width: 40px;
        height: 40px;
    }

    #search-resources-d {
        border-right: transparent;
    }

    #search-resources-btn-d {
        padding-left: 10px !important;
        border: 1px solid #dee2e6;
        border-left: 1px solid transparent;
        border-radius: 6px;
        border-top-left-radius: unset;
        border-bottom-left-radius: unset;
    }

    .resources-container .col-md-6 figure {
        border: 1px solid #ced4da;
        border-radius: 10px;
    }

        .resources-container .col-md-6 figure:hover {
            border: 1px solid #5041cd;
        }

        .resources-container .col-md-6 figure h3:hover {
            color: #004f9a;
        }

        .resources-container .col-md-6 figure a:hover {
            color: #004f9a;
            text-decoration: none;
            border-bottom: 0;
        }

        .resources-container .col-md-6 figure .res-desc {
            display: -webkit-box;
            overflow: hidden;
            line-height: 1.4;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 5;
            padding-bottom: 4px;
        }

        .resources-container .col-md-6 figure .tags-and-date {
            min-height: 160px;
            padding-top: 1rem;
            border-top: 1px solid #ced4da;
        }

        .resources-container .col-md-6 figure .title {
            min-height: 45px;
        }
}

.resources-container .card-title-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 992px) {
    .row.resources-container {
        padding-left: 0;
        padding-right: 0;
    }

    .resources-container .card {
        width: 31.2%;
    }

    .resources-container .card-title {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    

        .resources-container .card-title-wrapper.is-truncated:hover {
            height: auto !important;
        }

            .resources-container .card-title-wrapper.is-truncated:hover > .card-title {
                display: -webkit-box;
                overflow: unset;
                text-overflow: unset;
                line-clamp: unset;
                -webkit-box-orient: unset;
                -webkit-line-clamp: unset;
            }

    .resources-container .col-md-6 figure .title {
        min-height: 60px;
    }

    .search-general-resources {
        display: none;
    }

    .sub-title-label {
        margin-top: 0;
        margin-bottom: 0;
        font-size: 0.875rem;
        color: #000;
        padding: 0.5rem 0;
        display: inline-block;
    }
}

@media (max-width: 992px) {
    .events-filter-container {
        display: none;
    }
}

.resources-container .card {
    width: 100%;
}

.resources-container {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.resources-pagination {
    padding-top: 35px;
}

.advance-filter-content section {
    padding-bottom: 0;
}

@media screen and (min-width: 992px) {
    .resources-pagination {
        padding-top: 0;
    }

    .resources-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
        padding-left: unset;
        padding-right: unset;
    }
}