@font-face {
    font-family: "Yati Sans";
    src: url("../fonts/YatiSansVariation.ttf") format("truetype");
    font-style: normal;
}
#news-page {
    width: 100%;
    position: relative;
    margin-top: 60px;
    font-size: 1rem;
}
#news-page #filter-box {
    display: none;
}
/* #news-page .mobile-filter-box {
    background-color: #dedede;
    margin-top: -38px;
    border-radius: 8px;
    margin-bottom: 20px;
} */
#news-page .mobile-filter-box .filter-group-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow: scroll;
    padding: 10px 32px;
    border-bottom: 1px solid #dedede;
}
#news-page .wrapper {
    display: flex;
    gap: 1.8em;
    margin-bottom: 6em;
}

#news-page .left-container {
    width: 70%;
}

#news-page .left-container .search-filter-wrapper {
    display: none;
    gap: 8px;
    position: relative;
    width: 100%;
    justify-content: space-between;
}

#news-page .left-container .search-filter-wrapper .filter-btn {
    display: flex;
    position: relative;
    border: 2.5px solid transparent;
    border-radius: 8px;
    background: linear-gradient(white, white);
    background-clip: padding-box;
    gap: 14px;
    /* height: 53px; */
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

#news-page .left-container .search-filter-wrapper .filter-btn span {
    font-family: "Yati Sans";
    color: var(--primary-color);
}

#news-page .left-container .search-filter-wrapper .filter-btn::after {
    position: absolute;
    top: -2.5px;
    bottom: -2.5px;
    left: -2.5px;
    right: -2.5px;
    background: linear-gradient(
        90deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%
    );
    content: "";
    z-index: -1;
    border-radius: 8px;
}

#news-page .wrapper .left-container .title {
    font-family: "Yati Sans";
    margin-bottom: 48px;
    font-size: 2.16666667rem;
    font-weight: 400;
    line-height: 1.2;
}

#news-page .news-cards-wrapper {
    margin-top: 72px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8em;
}

#news-page .news-cards-wrapper .news-card-wrapper {
    max-width: 100%;
    width: 100%;
}

#news-page .mySwiper {
    position: relative;
    max-height: 650px;
}

#news-page .navigation-wrapper {
    position: absolute;
    top: 0;
    z-index: 99;
    display: flex;
}

#news-page .prev-arrow {
    padding: 18px;
    background: #ffffff;
}

#news-page .next-arrow {
    padding: 18px;
    background: var(--ct-background);
}
#news-page .prev-arrow img,
#news-page .next-arrow img {
    width: 28px;
    height: 28px;
}

#news-page .right-container {
    width: 30%;
    background: #f6f6f6;
    max-height: 36.25em;
}

#news-page .right-container .search-box-wrapper {
    border-bottom: 1px solid #dedede;
    padding: 30px 32px;
}

#news-page .right-container .filter-group-wrapper,
#news-page #mobile-filter-box.modal .filter-group-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 14.375rem;
    overflow: hidden auto;
    padding: 1.25rem 1.33333333rem;
    border-bottom: 1px solid #dedede;
}

#news-page .right-container .filter-group-wrapper:last-child,
#news-page #mobile-filter-box.modal .filter-group-wrapper:last-child {
    border-bottom: none;
}

#news-page #mobile-filter-box.modal {
    background: rgba(0, 0, 0, 0.5);
}

/* large screen */
@media (min-width: 1024px) {
    .news-cards-wrapper {
        margin-top: 20px !important;
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1360px) {
    #news-page .news-cards-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    #news-page .news-card img {
        height: 200px;
    }
    #news-page .right-container .search-box-wrapper {
        padding: 10px 10px;
    }
    #news-page .right-container .search-box-wrapper input {
        width: 60%;
    }
    #news-page .right-container .search-box-wrapper button {
        width: 40%;
        opacity: 1;
        transition: opacity 1s ease-in-out;
    }
    #news-page .right-container .search-box-wrapper button:hover {
        opacity: 0.9;
    }
}
@media (max-width: 1400px) {
    #news-page .news-cards-wrapper .news-card-wrapper {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    #news-page {
        margin-top: 30px;
    }
    #news-page .left-container {
        width: 100%;
    }
    #news-page .wrapper .left-container .title {
        text-align: center;
    }
    #news-page .right-container {
        display: none;
    }
    #news-page .prev-arrow img,
    #news-page .next-arrow img {
        width: 12px;
        height: 12px;
    }
    #news-page .prev-arrow,
    #news-page .next-arrow {
        width: 27px;
        height: 27px;
        box-sizing: border-box;
        padding: 8px;
        display: flex;
        align-items: center;
    }
    #news-page .left-container .search-filter-wrapper {
        display: flex;
        margin-bottom: 40px;
    }
    #news-page .news-cards-wrapper {
        display: flex !important;
        flex-wrap: wrap;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
    }
    #news-page .news-card img {
        max-height: 220px;
    }
    #news-page #mobile-filter-box.modal .modal-dialog {
        --bs-modal-margin: 0.5rem 0;
        min-height: 100%;
        --bs-modal-border-radius: 0;
    }
    #news-page #mobile-filter-box.modal .modal-content {
        padding: 2rem 1.875rem 2.063rem;
    }
    #news-page #mobile-filter-box.modal .btnBack {
        padding: 0;
        margin: 0;
    }
    #news-page #mobile-filter-box.modal .modal-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2.438rem;
    }

    #news-page #mobile-filter-box.modal .btnBack {
        width: auto;
    }

    #news-page #mobile-filter-box.modal .btnBack .icon {
        width: 1.188rem;
        height: 1.188rem;
    }
    #news-page #mobile-filter-box.modal h2.title {
        width: 95%;
        font-family: "Yati Sans";
        font-size: 1.923076923rem;
        font-weight: 400;
        line-height: 30px;
        text-align: center;
        margin-bottom: 0;
    }

    #news-page #mobile-filter-box.modal .filter-group-wrapper {
        padding-left: 0;
        padding-right: 0;
        max-height: 14.688rem;
    }

    #news-page #mobile-filter-box.modal .filter-group-wrapper .title {
        font-family: "Yati Sans";
        font-size: 1.538461538rem;
        font-weight: 500;
        line-height: 2rem;
        text-align: left;
        margin-bottom: 1.563rem;
    }

    #news-page #mobile-filter-box.modal .achieve-group-wrapper {
        padding-bottom: 2.688rem;
        border-bottom: 1px solid #dedede;
    }

    #news-page #mobile-filter-box.modal .tag-group-wrapper {
        margin-top: 2.375rem;
    }

    #news-page #mobile-filter-box.modal .filter-group .filter-items p {
        font-family: "Yati Sans";
        font-size: 1.384615384615385rem;
        font-weight: 400;
        text-align: left;
    }
}

/* Styles for scrollbar design */
.filter-group-wrapper::-webkit-scrollbar {
    width: 10px;
}

.filter-group-wrapper::-webkit-scrollbar-track {
    background-color: #ecf5f2;
    border-radius: 13px;
}

.filter-group-wrapper::-webkit-scrollbar-thumb {
    background-color: #c8c8c8;
    border-radius: 13px;
    opacity: 1;
    padding: 50px;
    height: 10px;
}

.filter-group-wrapper::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}

.filter-group-wrapper::-webkit-scrollbar-button:single-button {
    background-color: transparent;
    display: block;
    background-size: 16px;
    background-repeat: no-repeat;
}

.filter-group-wrapper::-webkit-scrollbar-button:single-button:vertical:decrement {
    height: 11px;
    width: 17px;
    background-position: center 1px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(200, 200, 200)'><polygon points='50,00 0,50 100,50'/></svg>");
}

.filter-group-wrapper::-webkit-scrollbar-button:single-button:vertical:decrement:active {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(128, 128, 128)'><polygon points='50,00 0,50 100,50'/></svg>");
}

.filter-group-wrapper::-webkit-scrollbar-button:single-button:vertical:increment {
    height: 11px;
    width: 17px;
    background-position: center 0px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(200, 200, 200)'><polygon points='0,0 100,0 50,50'/></svg>");
}

.filter-group-wrapper::-webkit-scrollbar-button:single-button:vertical:increment:active {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(128, 128, 128)'><polygon points='0,0 100,0 50,50'/></svg>");
}
