.tab-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-int-label {
    align-self: flex-start;
    font: 1.4rem "Nunito", sans-serif;
    font-weight: 700;
    color: black;
}

.tab-int {
    border: 1px solid transparent;
    border-radius: 3px;
}

.nav-link {
    color: #000;
}

.nav-link:hover {
    color: #dabd40;
}

.nav-link.active {
    color: #dabd40 !important;
}

.res-list-item {
    display: flex;
    justify-content: space-between;
    border: 1px solid transparent;
    margin: 1rem 0 0 0;
    max-height: 20vh;
    transition: all 0.5s;
}

.res-list-item:hover {
    border: 1px solid #ded197;
    box-shadow: -2.5px 5px 5px -3px #ded197;
    transform: translate(2.5px, -5px);
}

.res-list-item:nth-child(even) {
    background-color: lightyellow;
}

.res-list-item:last-child {
    margin-bottom: 0;
}

.res-list-item-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-direction: column;
    flex: 1;
    margin-left: 0.75rem;
    line-height: normal;
    padding: 0 20px;
}

.img-container {
    flex: 0 1 30%;
    width: 270px;
    height: 110;
    overflow: hidden;
}

.res-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #cbd1d1;
}

.res-title {
    display: block;
    font-size: 1.25rem;
    color: black;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 500;
}

.badge {
    margin: 0px;
    color: #868894;
}

.res-desc {
    font-size: 0.8rem;
}

.res-tags {
    display: flex;
}

.res-button {
    padding: 0 0.5rem;
}

.res-buttons {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    flex: 0 1 15%;
    gap: 0.2rem;
    background: #eeeeee;
    padding: 0 0.2rem;
}

.res-photo,
.res-video,
.res-doc {
    margin: 1rem;
}

#search-section {
    padding-top: 0;
}

.search-label {
    width: 60%;
    font: 1.4rem "Nunito", sans-serif;
    font-weight: 700;
    color: black;
}

.search {
    display: flex;
}

.search-form-container {
    width: 40%;
}

.mult-dropdowns {
    display: flex;
    justify-content: start;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.search-dd {
    flex: 1;
}

.search-dates {
    display: flex;
    gap: 0.2rem;
}

.s-date {
    flex: 1;
}

input,
input.form-control {
    padding: 0 1rem;
    margin-bottom: 0;
    height: 50px;
    border-radius: 12px;
}

.search-item {
    display: flex;
}

.search-item:hover {
    cursor: pointer;
}

.s-res-title {
    font-size: 1rem;
    font-weight: 500;
}

.s-res-type {
    margin-left: 0.4rem;
}

.unit-popup {
    display: flex;
    justify-content: space-between;
}

.search-page-links {
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
}

.menu-mobile-collapse-trigger:hover {
    background-color: transparent !important;
}

.menu-mobile-collapse-trigger {
    background-color: transparent !important;
}

.tab-btn {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    background: #5abfbb !important;
    color: #fff;
    border: 1px solid #3da6a2 !important;
    font-size: 10px;
    width: 85px;
    padding: 0;
    height: 50px;
}

.tab-btn.active {
    color: #ffffff !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: #3da6a2 !important;
    font-size: 14px;
    border: 1px solid #078b85 !important;
    width: 120px;
}

.resource-search {
    padding: 0 50px;
}

.resources .dropdown-menu {
    border-radius: 23px;
}

.bottom-link {
    background: #eeeeee;
}

.border-sides {
    border-bottom: 1px solid #eeeeee;
    border-left: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    box-shadow: 1px 2px 3px #d1d1d1;
}

.res-see-more {
    color: #3da6a2;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    padding-right: 1rem;
}

.search-btn {
    color: #ffffff;
    background: #3da6a2;
    border-radius: 12px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.search-container input::placeholder {
    font-weight: 700;
    font-size: 16px;
}

.view-more-btn {
    border-radius: 10px !important;
}

.p-red {
    color: #bf2e4d;
}

.res-list {
    border-bottom: 2px solid #3da6a2;
}

.resource-filter input[type="checkbox"] {
    display: none;
}

.resource-filter input[type="checkbox"] + span {
    display: inline-block;
    position: relative;
    margin-left: 21px;
}

.resource-filter input[type="checkbox"] + span:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #f5f5f6;
    left: -20px;
    top: 50%;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 3px 5px #2e2e4226;
}

.resource-filter input[type="checkbox"]:checked + span:before {
    border: 2px solid #379e9a;
}

.resource-filter input[type="checkbox"]:checked + span:after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: transparent;
    left: -18px;
    top: 3px;
}

.s-date label {
    font-size: 18px;
    font-style: normal;
    line-height: 30px;
    font-weight: bold;
}

.advance-search-btn {
    border-radius: 40px;
    color: #000;
    background-color: transparent;
    border: 2px solid #000;
}

.resource-img {
    object-fit: cover;
    border-radius: 50px;
    width: 100%;
    height: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: 18vw auto 18vw;
    grid-template-rows: 18vw 18vw 18vw;
    grid-auto-flow: row;
    height: auto;
    gap: 40px;
}

.grid-item {
    border-radius: 50px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 25%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.grid-item .resources-content {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    padding: 2rem;
    background: linear-gradient(
        to bottom,
        rgba(30, 87, 153, 0) 0%,
        rgba(222, 59, 93, 0.78) 50%,
        rgba(222, 59, 93, 0.8) 51%,
        rgba(222, 59, 93, 1) 100%
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.7s;
}

.grid-item:hover .resources-content {
    opacity: 1;
}

.grid-item .resources-content p {
    line-height: 1.2;
}

.grid-item .resources-content h5 {
    color: #fff;
    line-height: 1;
}

.grid-item .resources-content .tags-posted {
    color: #fffc58;
}

.grid-container .item-0 {
    grid-column: 1;
    grid-row: 1 / 2;
}

.grid-container .item-1 {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.grid-container .item-2 {
    grid-column: 1 / 3;
    grid-row: 2 / 4;
}

.grid-container .item-3 {
    grid-column: 3 / 4;
    grid-row: -3 / -2;
}

.grid-container .item-4 {
    grid-column: -2 / -1;
    grid-row: -2 / -1;
}

@media (max-width: 991.98px) {
    iframe {
        max-width: 100%;
        max-height: 100%;
    }

    .search {
        flex-direction: column;
    }

    .search-form-container {
        width: 100%;
    }

    .search-label {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .tab-int {
        width: 100%;
    }

    .res-list-item {
        aspect-ratio: 4 / 1;
    }

    .res-img {
        aspect-ratio: 4 / 1;
    }

    .res-title {
        font-size: 0.7rem;
    }

    .badge {
        padding: 3px 6px;
    }

    .res-desc {
        display: none;
    }

    .res-date {
        display: none;
    }

    .res-button {
        font-size: 0.8rem;
    }

    .search-dates {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    ul.pagination {
        display: flex;
        gap: 0.5rem;
        justify-content: space-evenly;
    }

    .page-link {
        margin: 0 !important;
    }
}

.search-container {
    position: relative;
}

.search-container button {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    height: 2.8rem;
    background: none;
    width: 3rem;
    outline: none;
    color: gray;
}

.search-filters {
    display: flex;
    flex-direction: row;
    font-weight: bold;
}

.filter-item {
    border-radius: 2rem;
    background-color: #595959;
    padding: 0rem 0.8rem;
    margin: 0 0.5rem;
    color: white;
}

.filter-item-text {
    border-radius: 2rem;
    background-color: rgb(100, 100, 100);
    padding: 0rem 0.8rem;
    margin: 0 0.5rem;
    color: white;
}

.filter-item-type {
    border-radius: 2rem;
    background-color: #ebebf0;
    padding: 0rem 0.8rem;
    margin: 0 0.5rem;
    color: #000;
}

.search-filters button {
    border: none;
    background: none;
    color: white;
    transition: color 0.1s;
}

.filter-item-type button {
    border: none;
    background: none;
    color: #000;
    transition: color 0.1s;
}

.search-filters button:hover {
    cursor: pointer;
    color: black;
    font-weight: 100;
}

.result-container {
    background-color: #f2f2f2;
    border-radius: 50px;
    padding: 2.5rem;
    margin: 2rem 0;
}

.result-container figure img {
    border-radius: 50px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 25%);
    object-fit: cover;
}

.result-container .job-time {
    color: #379e9a;
}

.result-container .read-more-btn {
    border-radius: 8px;
    background-color: #379e9a;
    color: #fff;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.result-container .original-url-btn {
    border-radius: 8px;
    background-color: #de3b5d;
    color: #fff;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

@media only screen and (max-width: 1280px) {
    .grid-container {
        grid-template-columns: 28vw auto 28vw;
        grid-template-rows: 28vw 28vw 28vw;
        gap: 20px;
    }
}

@media only screen and (max-width: 912px) {
    .grid-item,
    .resource-img,
    .grid-item .resources-content {
        border-radius: 20px;
    }

    .grid-container {
        grid-template-columns: 50% 50%;
        grid-template-rows: 50vw 50vw 50vw;
        gap: 15px;
    }

    .grid-container .item-1 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .grid-container .item-2 {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .grid-container .item-3 {
        grid-column: -3 / -2;
        grid-row: 3 / 4;
    }

    .grid-item .resources-content .tags-posted {
        display: flex;
        flex-direction: column;
    }

    .resources-content h5 {
        font-size: 19px;
    }

    .grid-item .resources-content {
        padding: 1rem;
    }

    .grid-item .resources-content p {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 480px) {
    .grid-container {
        display: block;
    }

    .grid-item {
        width: 80%;
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
    }

    .result-container .cta {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .result-container {
        padding: 2.5rem 1rem;
    }
}
