@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

:root {
    --black-color: #000;
    --dark-green-color: #1a706c;
    --grey-color: #707070;
    --orange-color: #f2a658;
    --placeholder-color: #a3a3b1;
    --shadow-color: #00000029;
    --white-color: #fff;
}

* {
    border: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
}

body, button, input {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-size: 16px;
    font-style: normal;
}

button {
    background-color: transparent;
    cursor: pointer;
}

h2 {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 20px;
}

h3 {
    font-size: 30px;
    line-height: 1.23;
    margin-bottom: 30px;
}

.white {
    color: var(--white-color);
}

.dark-green-bg {
    background-color: var(--dark-green-color);
}

.shadow {
    box-shadow: 0 3px 6px var(--shadow-color);
}

.full-link {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

#header-bg {
    width: 100%;
    height: 225px;
    background-image: url("../images/header-bg-mobile.svg");
    background-size: 1px 225px;
    mix-blend-mode: multiply;
    opacity: 0.7;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.top-content-wrapper {
    padding: 60px 0;
}

.content-inner-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 35px;
}

.padding-vertical {
    padding-top: 50px;
    padding-bottom: 50px;
}

#footer {
    background-color: var(--dark-green-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 300;
    padding: 30px 0;
    text-align: center;
}

#footer a {
    color: var(--white-color);
    display: inline-block;
    font-weight: 700;
    margin-bottom: 3px;
    text-decoration: none;
}

#news-top-wrapper {
    display: flex;
    flex-direction: column;
    gap: 35px;
    position: relative;
    z-index: 1;
}

#news-top-wrapper img {
    width: 100%;
    max-width: 330px;
}

#news-top-wrapper h2 {
    color: var(--white-color);
    margin-bottom: 0;
}

#news-top-bar-holder {
    border-bottom: 1px solid var(--dark-green-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
    padding: 40px 0;
}

#news-top-bar-holder > div {
    align-items: center;
    display: flex;
    gap: 26px;
}

#news-filter-button-wrapper {
    position: relative;
}

#news-filter-button, .news-filter-button {
    height: 64px;
    align-items: center;
    color: var(--dark-green-color);
    display: inline-flex;
    font-size: 20px;
    font-weight: 700;
    gap: 30px;
    white-space: nowrap;
}

#news-filter-button::after {
    width: 24px;
    height: 24px;
    background-image: url("../images/chevron-down.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    content: "";
    display: block;
}

#news-filter-button-wrapper.active #news-filter-button::after {
    transform: rotate(180deg);
}

#news-filter-button-holder {
    background-color: var(--white-color);
    border-top: 1px solid var(--dark-green-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: none;
    flex-direction: column;
    padding: 0 30px;
    position: absolute;
    left: 0;
    top: 64px;
    z-index: 2;
}

#news-filter-button-wrapper.active #news-filter-button-holder {
    display: flex;
}

#news-sort-button {
    width: 50px;
    height: 50px;
    background-image: url("../images/sort.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50px 50px;
}

#news-sort-button.active {
    transform: rotate(180deg);
}

#news-search-field-wrapper {
    width: 100%;
    max-width: 370px;
    height: 50px;
    position: relative;
}

#news-search-field-wrapper::after {
    width: 30px;
    height: 30px;
    background-image: url("../images/search.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    content: "";
    display: block;
    pointer-events: none;
    position: absolute;
    top: 10px;
    right: 20px;
}

#news-search-field {
    width: 100%;
    height: 100%;
    border: 1px solid var(--grey-color);
    color: var(--dark-green-color);
    font-size: 25px;
    padding-left: 20px;
    padding-right: 70px;
}

#news-search-button {
    width: 177px;
    height: 64px;
    align-items: center;
    background-color: var(--dark-green-color);
    border-radius: 18px;
    color: var(--white-color);
    display: none;
    font-size: 22px;
    font-weight: 500;
    justify-content: center;
}

.news-message-outer-holder {
    width: 100%;
}

.news-message-holder {
    width: 100%;
    border-radius: 21px;
    overflow: hidden;
    position: relative;
}

.news-image-background {
    width: 100%;
    padding-top: 83.95%;
    background-position: center;
    background-size: cover;
}

.news-message-bottom-holder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 28%, var(--black-color));
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 300;
    gap: 10px;
    justify-content: end;
    padding: 0 20px 30px 30px;
    position: absolute;
    left: 0;
    bottom: 0;
}

.news-message-bottom-holder h4 {
    align-items: center;
    display: flex;
    font-size: 20px;
    font-weight: 500;
    gap: 20px;
    justify-content: space-between;
}

.news-message-bottom-holder h4::after {
    width: 16px;
    height: 30px;
    background-image: url("../images/arrow-forward.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 30px;
    content: "";
    display: block;
    flex-shrink: 0;
}

#news-messages-holder {
    display: grid;
    gap: 60px;
    grid-template-columns: 1fr;
    justify-content: space-between;
}

#news-pagination-wrapper {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 60px 0;
}

#news-pagination-wrapper .page-numbers {
    width: 48px;
    height: 48px;
    align-items: center;
    border: 1px solid var(--dark-green-color);
    border-radius: 18px;
    color: var(--dark-green-color);
    display: inline-flex;
    font-size: 20px;
    font-weight: 500;
    justify-content: center;
    text-decoration: none;
}

#news-pagination-wrapper .page-numbers.current {
    background-color: var(--dark-green-color);
    color: var(--white-color);
}

#news-pagination-wrapper .page-numbers.prev, #news-pagination-wrapper .page-numbers.next {
    display: none;
}

#single-news-top-holder {
    margin-bottom: 65px;
}

#single-news-top-holder a {
    height: 50px;
    align-items: center;
    background-color: var(--dark-green-color);
    border-radius: 18px;
    color: var(--white-color);
    display: inline-flex;
    font-size: 18px;
    font-weight: 500;
    padding: 0 25px;
    text-decoration: none;
}

#single-news-content-holder {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#single-news-text-holder {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.08;
}

#single-news-text-holder h4 {
    color: var(--black-color);
    font-size: 35px;
    font-weight: 500;
    line-height: 1.16;
    margin-bottom: 15px;
}

#single-news-text-holder img {
    border: 1px solid var(--black-color);
}

#single-news-text-holder img.no-stroke {
    border: none;
}

#single-news-date-holder {
    color: var(--orange-color);
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

#single-news-image-holder {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

#single-news-image-holder img {
    width: 100%;
    height: auto;
}

@media (min-width: 992px) {
    #header-bg {
        height: 304px;
        background-image: url("../images/header-bg.svg");
        background-size: 1px 304px;
    }

    .top-content-wrapper {
        padding-top: 140px;
        padding-bottom: 90px
    }

    #footer {
        font-size: 20px;
    }

    #news-top-wrapper {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    #news-top-bar-holder {
        align-items: center;
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }

    #news-filter-button, .news-filter-button {
        font-size: 25px;
    }

    #news-filter-button::after {
        width: 34px;
        height: 34px;
        background-size: 34px 34px;
    }

    #news-search-field-wrapper {
        height: 64px;
    }

    #news-search-field-wrapper::after {
        width: 36px;
        height: 36px;
        background-size: 36px 36px;
        top: 12px;
    }

    #news-search-button {
        display: inline-flex;
    }

    #news-messages-holder {
        gap: 60px 70px;
        grid-template-columns: 1fr 1fr;
    }

    .news-message-bottom-holder {
        font-size: 20px;
    }

    .news-message-bottom-holder h4 {
        font-size: 25px;
    }

    #single-news-content-holder {
        gap: 60px;
    }

    #single-news-text-holder {
        font-size: 25px;
    }

    #single-news-text-holder h4 {
        font-size: 45px;
    }

    #single-news-date-holder {
        font-size: 25px;
    }
}

@media (min-width: 1200px) {
    h2 {
        font-size: 70px;
    }

    h3 {
        font-size: 50px;
    }

    #news-messages-holder {
        grid-template-columns: 1fr 1fr 1fr;
    }

    #single-news-top-holder a {
        height: 64px;
        font-size: 22px;
    }

    #single-news-content-holder {
        display: block;
    }

    #single-news-image-holder {
        width: 50%;
        float: right;
        margin-left: 40px;
        margin-bottom: 40px;
    }

    #single-news-text-holder {
        line-height: 1.23;
    }
}

@media (min-width: 1510px) {
    h2 {
        font-size: 90px;
        margin-bottom: 40px;
    }

    #news-messages-holder {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1670px) {
    .content-inner-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}
