/************************ News List ***************************/
.news_opening_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.news_opening {
    width: calc((100% - 80px) / 3);
    text-align: left;
}

.news_opening p {
    margin: 0;
}

.large_opening_title {
    font-size: 100px;
    text-align: center;
    margin: 120px auto 50px;
}

.news_padding {
    padding-bottom: 155px;
}

.news_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 1;
}

/*********************** News ************************/
.news_cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.news_card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 80px) / 3);
    margin-right: 40px;
    box-sizing: border-box;
    margin-top: 80px;
    transition: 0.2s all ease-in-out;
    cursor: pointer;
    color: var(--white);
}

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

.news_card .news_image {
    aspect-ratio: 1;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: 0.2s all ease-in-out;
    opacity: 0.86;
}

.news_card .square_button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 5px;
    background-color: var(--beaver);
    color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.15s all ease-in-out;
}

.news_card .square_button:hover {
    background-color: #B29D89;
    transition: 0.15s all ease-in-out;
}

.news_card h3,
.news_card p {
    margin: 0;
    color: var(--white);
    transition: 0.2s all ease-in-out;
}

.news_card h3 {
    font-size: 36px;
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--white);
}

.news_opening .button {
    width: max-content;
    margin: 0 auto;
}

.news_details {
    display: flex;
    align-items: center;
}

.news_info i {
    margin-right: 8px;
}

.news_info p {
    border-radius: 5px;
    font-weight: 500;
    width: max-content;
    box-sizing: border-box;
    padding: 8px 14px;
    margin-top: 30px;
}

.news_info .news_category {
    color: var(--black);
    background-color: var(--beaver);
}

.news_info .news_date {
    color: var(--white);
    background-color: var(--trans-white);
    border: 2px solid var(--white);
    margin-left: 20px;
    padding: 6px 14px;
}

.news_card:hover {
    transition: 0.2s all ease-in-out;
}

.news_card:hover .news_image img {
    transform: scale(1.06);
    opacity: 1;
    transition: 0.2s all ease-in-out;
}

/************************ Tags ***************************/
#selected_tag_text {
    margin: 80px auto 0;
    width: max-content;
    display: none;
    align-items: center;
}

#selected_tag_text h4 {
    width: max-content;
    margin: 0
}

#selected_tag {
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    height: 46px !important;
    background-color: var(--brown);
    text-align: center;
    color: var(--white);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px;
    text-decoration: none;
    border: none;
    outline: none;
    margin-left: 30px;
}

#selected_tag_text .button {
    margin-left: 25px;
}

@media (max-width: 1050px) {
    #selected_tag_text {
        flex-direction: column;
        margin-bottom: 40px;
    }

    #selected_tag_text,
    #selected_tag_text h4 {
        width: 100%;
        text-align: center;
    }

    #selected_tag {
        margin-left: 0;
        margin-top: 20px;
    }

    #selected_tag_text .button_2 {
        margin-left: 0;
        margin-top: 25px;
    }
}

.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    z-index: 3;
    position: absolute;
    top: 5px;
    left: 20px;
    margin-right: 20px;
}

.tags .tag {
    padding: 5px 10px;
    background-color: var(--brown);
    color: var(--white);
    border-radius: 5px;
    margin-right: 15px;
    margin-top: 15px;
    transition: 0.2s all ease-in-out;
    box-shadow: 0px 3px 8px #0000001A;
}

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

.news_card .disabled {
    opacity: 1 !important;
}

.disabled:hover {
    background-color: var(--brown);
    transition: 0.2s all ease-in-out;
}

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

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

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

#load_more {
    width: 100%;
    margin-top: 120px;
    text-align: center;
    padding: 100px 20px;
    box-sizing: border-box;
    border: 2px solid var(--white);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#load_more h2 {
    margin: -10px 0 0;
}

.view_more_button {
    margin-top: 20px;
}

@media (max-width: 1350px) {
    .news_opening_wrapper {
        flex-direction: column;
    }

    .news_opening,
    .news_opening h2 {
        width: 100%;
        text-align: center;
    }

    .news_card,
    .news_card:nth-of-type(3n) {
        width: calc((100% - 40px) / 2);
        margin-right: 40px;
    }
    
    .news_card:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media (max-width: 910px) {
    .large_opening_title {
        font-size: 60px;
        width: 80%;
    }

    .news_card,
    .news_card:nth-of-type(3n) {
        width: calc((100% - 20px) / 2);
        margin-right: 20px;
    }
    
    .news_card:nth-of-type(2n) {
        margin-right: 0;
    }
    
    #load_more h2 {
        font-size: 36px;
    }
}

@media (max-width: 750px) {
    .news_cards {
        flex-direction: column;
    }

    .news_card,
    .news_card:nth-of-type(3n) {
        width: 100%;
        margin-right: 0 !important;
    }
}

@media (max-width: 600px) {
    .news_opening .button {
        width: 100%;
    }

    .large_opening_title {
        font-size: 48px;
        width: 100%;
        margin: 80px auto 30px;
    }

    .news_card {
        margin-top: 40px;
    }

    .news_card h3 {
        font-size: 24px;
    }

    .news_info p {
        margin-top: 20px;
    }

    .news_padding,
    .news_archive {
        padding-bottom: 100px !important;
    }

    #load_more {
        margin-top: 80px;
        padding: 80px 20px;
    }
}

@media (max-width: 380px) {
    .news_details {
        flex-direction: column;
        align-items: flex-start;
    }

    .news_details .news_date {
        margin-left: 0;
    }
}

/************************ Archive ***************************/
.news_archive {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    padding-bottom: 160px;
}

.news_archive .large_opening_title {
    color: var(--black);
}

.archive_item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    margin-top: 40px;
}

.archive_item h3 {
    padding-top: 5px;
    margin: -10px 0;
    color: var(--black);
}

.archive_item .button {
    width: max-content !important;
}