/*********************** Item Panels ************************/
.item_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 46px;
}

.panel {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: calc((100% - 92px) / 3);
    margin-right: 46px;
    background-color: var(--white);
    box-sizing: border-box;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 46px;
    overflow: hidden;
    box-shadow: 0px 3px 19px #0000000D;
}

.intervention_panel {
    background-color: var(--hour7-light-blue);
    color: var(--white);
}

.outcome_panel {
    background-color: var(--hour7-gold);
    color: var(--hour7-blue);
}

.article_panel {
    background-color: var(--hour7-grey);
    color: var(--hour7-blue);
}

.case_study_panel {
    background-color: var(--hour7-dark-grey);
    color: var(--white);
}

.panel .button {
    position: relative;
    z-index: 4;
}

.outcome_panel .button,
.case_study_panel .button {
    background-color: var(--hour7-light-blue);
    color: var(--white);
}

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

.item_icon {
    position: absolute;
    bottom: -25px;
    right: -25px;
    font-size: 200px;
    z-index: 0;
    opacity: 0.1;
    color: var(--white);
}

.outcome_icon,
.article_icon,
.outcome_panel .panel_heading h3,
.article_panel .panel_heading h3 {
    color: var(--hour7-blue); 
}

.panel_heading h3 {
    margin: -10px 0 0;
    font-size: 37px;
    line-height: 1.2;
    color: var(--white);
    font-weight: 400;
    z-index: 2;
}

.panel_heading p {
    margin: 5px 0 0;
    opacity: 0.7;
}

.panel_heading .item_summary {
    margin: 15px 0 25px;
    opacity: 1;
}

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

.item_relations_wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 4;
}

.item_relations_wrapper .fa-chevron-circle-down {
    position: relative;
    color: var(--white);
    transition: 0.1s all ease-in-out;
    cursor: pointer;
    z-index: 4;
}

.outcome_panel .item_relations_wrapper .fa-chevron-circle-down,
.article_panel .item_relations_wrapper .fa-chevron-circle-down {
    color: var(--hour7-blue);
}

.item_relations_wrapper .fa-chevron-circle-down:hover {
    color: var(--hour7-gold);
    transition: 0.1s all ease-in-out;
}

.outcome_panel .item_relations_wrapper .fa-chevron-circle-down:hover,
.article_panel .item_relations_wrapper .fa-chevron-circle-down:hover {
    color: var(--hour7-light-blue);
}

.item_relations {
    width: calc(100% - 20px);
    margin-bottom: 20px;
}

.related_interventions,
.related_outcomes,
.related_categories {
    display: flex;
    flex-wrap: wrap;
}

.item_relations a {
    transition: 0.1s all ease-in-out;
    cursor: pointer;
}

.item_relations a:hover {
    transition: 0.1s all ease-in-out;
    opacity: 0.8;
}

.item_visible {
    margin-bottom: 10px;
}

.int_type,
.outcome_type,
.panel_category {
    width: 15px;
    height: 15px;
    border-radius: 15px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.intervention_panel .int_type,
.case_study_panel .panel_category {
    border: 2px solid var(--white);
    width: 11px;
    height: 11px;
}

.outcome_panel .outcome_type,
.article_panel .panel_category {
    border: 2px solid var(--hour7-blue);
    width: 11px;
    height: 11px;
}

.int_type span,
.outcome_type span,
.panel_category span {
    display: none;
}

.item_visible .int_type,
.item_visible .outcome_type,
.item_visible .panel_category {
    width: max-content;
    height: unset;
    display: inline-block;
    padding: 5px 15px;
    color: var(--white);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px !important;
}

.item_visible .int_type span,
.item_visible .outcome_type span,
.item_visible .panel_category span {
    display: block;
}

.int_type {
    background-color: var(--hour7-light-blue);
}

.outcome_type,
.item_visible .outcome_type { 
    background-color: var(--hour7-gold);
    color: var(--black); 
}

.panel_category,
.item_visible .panel_category { 
    background-color: var(--hour7-grey);
    color: var(--black); 
}

.case_study_category,
.item_visible .case_study_category { 
    background-color: var(--hour7-dark-grey);
    color: var(--white); 
}

.tags {
    display: none;
    flex-wrap: wrap;
}

.item_visible .tags {
    display: flex;
}

.tags .tag {
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 3px;
}

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

@media (max-width: 1200px) {
    .panel,
    .panel:nth-of-type(3n) {
        width: calc((100% - 46px) / 2);
        margin-right: 46px;
    }
    
    .panel:nth-of-type(2n) {
        margin-right: 0;
    }
}

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

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

/*********************** Heading Banner ************************/
.heading_banner {
    width: 100%;
    margin: 35px 0 46px;
}

.category_wrapper {
    margin-top: 100px;
}

.type_wrapper {
    margin-bottom: 54px;
}

.all_items {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 100px;
}

@media (max-width: 900px) {
    .type_wrapper {
        margin-bottom: 80px;
    }
}