.top-section {
    display: flex;
    align-items: self-end;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin-bottom: 40px;
    justify-content: space-between;
}
h1.section-title{
    max-width: 500px;
}
.news-container {
    margin-top: 80px;
}
.header-section .container{
    margin-top:0;
}
.filter-box {
    width: 100%;
    max-width: 24.5%;
    height: 100%;
    background: #fff;
    border: none;
    font-size: 14px;
    position: relative;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.filter-header {
    padding: 27.5px 20px;
    background: #F8F8F8;
    cursor: pointer;
    position: relative;
    font-weight: 400;
    font-size: 18px;
    border: 1px solid #F8F8F8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header::after {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url(../images/down_arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: auto;
    transition: transform 0.2s ease;
    -webkit-transition: transform 0.2s ease;
    -moz-transition: transform 0.2s ease;
    -ms-transition: transform 0.2s ease;
    -o-transition: transform 0.2s ease;
}

.filter-box.open .filter-header::after {
    transform: rotate(180deg);
}

.filter-count {
    background: #00a9c7;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 8px;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-content {
    display: none;
    padding: 0;
    background: #fff;
    border-top: 1px solid #00BBD4;
    /* max-height: 300px; */
    overflow: hidden;
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: scroll;
}

.filter-content label {
    display: flex;
    /* margin-bottom: 8px; */
    font-size: 14px;
    color: #222;
    padding: 10px 16px;
    align-items: center;
}

.filter-content label.child-checkbox {
    padding-left: 51px;
}

.clear-selection {
    background: #00a9c7;
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px 0;
    margin-top: 10px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    border-radius: 2px;
    font-family: Open sans;
}

.filter-submit {
    display: none;;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    border: none;
    margin-top: auto;
    cursor: pointer;
    font-weight: bold;
    height: fit-content;
    align-self: flex-end;
}


.news-grid {
    display: grid;
    grid-template-columns:  repeat(3, 1fr);
    row-gap: 60px;
}

.news-item {
    background: #fff;
    transition: box-shadow 0.3s ease;
    padding: 30px;
    border-right: 1px solid #ddd;
}

.news-item:hover {background: rgba(217, 217, 217, 0.1);}

.news-item img {
    width: 100%;
    object-fit: cover;
    height: 256px;
}

.news-item h3 {
    font-size: 18px;
    margin-top: 13px;
    color: #0D1416;
    font-weight: 700;
    line-height: 25px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;      
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item .date {
    display: block;
    font-size: 16px;
    color: #0D1416;
    font-weight: 400;
}

.news-item a {
    display: block;
}

.filter-content input.people-search-input {
    border-bottom: 1px solid #DDDDD8;
    padding: 20px;
    width: 100%;
    font-size: 18px;
    font-family: 'Open Sans';
    font-weight: 400;
}

.filter-content input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 23px;
    height: 23px;
    border: 1px solid #00BBD4; /* Cyan */
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-bottom: 0;
    margin-right: 15px;
}
.filter-content  input[type="checkbox"]:checked {
    background-color: #00BCD4;
    border-color: #00BCD4;
}

.filter-content input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 6px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.selected-filters {
    margin-bottom: 20px;
}
.selected-filter-tag {
    display: inline-block;
    background: #F0F3F8;
    padding: 6px 16px;
    color: #0D1416;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}
.selected-filter-tag a {
    color: #888;
    margin-left: 6px;
    text-decoration: none;
    font-weight: bold;
}
.clear-all-filters {
    margin-left: 16px;
    color: #0D1416;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.site-footer{
    margin-top:272px;
}
.custom-pagination {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin: 24px auto 0;
    justify-content: end;
    color:#0D1416;
}
.custom-pagination__info {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    min-width: 70px;
    justify-content: center;
}
.custom-pagination__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}
a.next-button.custom-pagination__btn {
    background-image: url(../images/icon-right.svg);
}
.custom-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #F0F0F0;
    color: #4F4D51;
    none;
    font-size: 0;
    background-color: #F0F0F0;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
    transition: all 0.3s;
}
.custom-pagination__btn.next-button:not(.disabled):hover {
    background-position: right 11px center;
}
.custom-pagination__btn.prev-button:not(.disabled):hover {
    background-position: left 11px center;
}
.custom-pagination__btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}
a.prev-button.custom-pagination__btn {
    background-image: url(../images/icon-left.svg);
}
.filter-box.open .filter-header {
    background: #F0F3F8;
}
.custom-pagination__info span {
    padding: 0 12px;
}
h2.no-posts-title {
    font-family: 'Open Sans';
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
}

.news-grid p {
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 16px;
}
@media (max-width: 1280px) {
    .filters {
        flex-direction: column;
        margin-left: -16px;
        margin-right: -16px;
    }
    .filter-content {
        position: relative;
    }
    .filter-box {
        width: 100%;
        max-width: 100%;
    }
    .news-grid {
        grid-template-columns:  repeat(2, 1fr);    
    }
    
    .news-item:nth-child(2n) {
        border-right: none; 
    }
   
    .filter-count{
        width: 16px;
        height: 16px;
    }
}
@media (max-width: 767.98px) {
    .news-grid {
        grid-template-columns: auto;
        row-gap: 0;
    }
    .news-item{
        border-right: none;
    }
}
@media (min-width: 1281px) {
    .news-item:nth-child(3n) {
        border-right: none;
    }
}