.resources_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.category_heading {
    margin-top: 20px;
    margin-bottom: 20px;
}

#initial_resource_display h2 {
    margin-bottom: 20px;
}

.resource_card {
    width: calc((100% - 90px) / 3);
    background-color: var(--white);
    box-shadow: 0px 5px 10px #00000014;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    margin-right: 45px;
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.resource_card:nth-of-type(3n) {
    margin-right: 0;
}

.resource_card .resource_image {
    height: 250px;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.resource_card .resource_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 5px;
}

.resource_card .resource_info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 250px);
    width: 100%;
    margin-top: 20px;
}

.resource_info h3 {
    margin-top: -5px;
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--black);
}

.resource_info h4 {
    margin: 0;
    color: var(--bronze);
    font-size: 18px;
}

.resource_info h4 i {
    width: 30px;
}

.resource_date .fa-clock {
    margin-left: 1px;
    margin-right: -1px;
}

.resource_date .fa-bookmark {
    margin-left: 3px;
    margin-right: -3px;
}

.resource_info .description {
    margin-top: 5px;
}

.resource_info .button {
    float: left;
}

.empty_state {
    text-align: center;
    display: none;
    margin-top: 50px;
}

#load_more {
    display: none;
}

.view_more_button {
    margin-top: 50px;
}

.view_more {
    margin-left: auto;
}

.list_dummy_card {
    height: 0px !important;
    padding-top: 0px !important;
    margin-top: 0px !important;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    z-index: 3;
}

.tags .tag {
    padding: 5px 10px;
    background-color: var(--light-grey);
    border-radius: 5px;
    color: var(--form-grey);
    margin-right: 15px;
    margin-top: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s all ease-in-out;
}

.tag:hover {
    background-color: var(--green);
    color: var(--white);
    transition: 0.2s all ease-in-out;
}

.tags .tag:last-of-type {
    margin-right: 0;
}

.tags .fa-ellipsis-h {
    margin-top: 15px;
    margin-left: auto;
}

/************************ Archive ***************************/
.archive_item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background-color: var(--white);
    box-shadow: 0px 5px 10px #00000014;
    border-radius: 10px;
    margin-top: 45px;
}

.archive_item h3 {
    margin: 0;
    padding-top: 3px;
}

@media (max-width: 1300px) {
    .resource_card,
    .resource_card:nth-of-type(3n) {
        width: calc((100% - 45px) / 2);
        margin-right: 45px;
        margin-bottom: 45px;
    }
    
    .resource_card:nth-of-type(2n) {
        margin-right: 0;
    }

    .view_more {
        margin-left: 0;
    }
}

@media (max-width: 950px) {
    .resource_card,
    .resource_card:nth-of-type(3n) {
        width: calc((100% - 30px) / 2);
        margin-right: 30px;
        margin-bottom: 30px;
    }

    .resource_card:nth-of-type(2n) {
        width: calc((100% - 30px) / 2);
        margin-right: 0;
    }
}

@media (max-width: 750px) {
    .resource_card,
    .resource_card:nth-of-type(2n),
    .resource_card:nth-of-type(3n) {
        width: 100%;
        margin-right: 0;
    }

    .category_heading,
    #initial_resource_display h2 {
        text-align: center;
    }

    .view_more {
        margin: 0 auto !important;
    }
}

@media (max-width: 600px) {
    .resource_card .resource_info {
        height: calc(100% - 200px);
    }

    .resource_info .button,
    .view_more_button,
    .view_more {
        width: 100%;
    }

    .view_more {
        margin-top: 45px !important;
    }

    .resource_card .resource_image {
        height: 200px;
    }

    .resource_card:last-of-type {
        margin-bottom: 0;
    }

    .category_heading {
        margin-top: 60px;
    }
}