.news-details-main,
.news-main {
    background: #fafafa;
}

.news-category-section {
    margin-top: 35px;
}

.news-category-section .news-category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0 74px;
}

.news-category-section .news-category-container .news-category-link {
    position: relative;
    font-size: 24px;
    color: rgba(34, 34, 34, 1);
    line-height: 1;
    padding-bottom: 22px;
    transition: all 0.3s;
}

.news-category-section .news-category-container .news-category-link:hover,
.news-category-section .news-category-container .news-category-link.active {
    color: rgba(22, 65, 148, 1);
}

.news-category-section .news-category-container .news-category-link::before {
    position: absolute;
    content: "";
    bottom: 0;
    width: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background-color: rgba(22, 65, 148, 1);
    transition: all 0.3s ease-in-out;
}

.news-category-section .news-category-container .news-category-link.active::before {
    width: 100%;
}

.media-cards-section {
    margin-top: 74px;
}

.media-cards-section .media-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 98px 25px;
}

.media-cards-section .pagination {
    margin-top: 83px;
}

.news-details-main {
    /* padding-top: 20px; */
}

.news-details-content {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.news-details-content .news-main-content {
    width: 64.28%;
    padding: 30px 38px 78px;
    background: #FFFFFF;
    border-radius: 10px;
}

.news-details-content .news-main-content .news-title {
    font-weight: 400;
    color: #164194;
    line-height: 1.6;
}

.news-details-content .news-main-content .news-date {
    font-size: 18px;
    color: #999999;
    line-height: 1;
    margin-top: 1em;
}

.news-details-content .news-main-content .news-body {
    font-size: 20px;
    color: #666666;
    line-height: 1.5;
    margin-top: 1.75em;
}

.news-details-content .news-main-content .news-body img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.news-details-content .news-main-content .news-navigation {
    margin-top: 30px;
}

.news-details-content .news-main-content .news-navigation a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 68px;
    padding: 0 28px;
    font-weight: 400;
    font-size: 18px;
    color: #222222;
    border-radius: 5px;
    border: 1px solid #DEDEDE;
    transition: all .3s;
}
.news-details-content .news-main-content .news-navigation a:hover{
    background-color: #164194;
    color: #fff;
}
.news-details-content .news-main-content .news-navigation a:not(:last-child){
    margin-bottom: 10px;
}
.news-details-content .news-sidebar{
    position: sticky;
    width: 32.14%;
    top: 141px;
}
.news-details-content .news-sidebar .media-card{
    margin-bottom: 40px;
}
.inner-page{
    background-color: #fafafa;
}
@media (max-width:1199px) {
    .media-cards-section{
        margin-top: 70px;
    }
    .media-cards-section .pagination{
        margin-top: 45px;
    }
    .media-cards-section .media-cards-container{
        gap: 60px 25px;
    }
    .news-category-section .news-category-container .news-category-link{
        font-size: 20px;
        padding-bottom: 15px;
    }
    .news-category-section .news-category-container .news-category-link::before{
        height: 2px;
    }
    .news-details-content .news-sidebar{
        display: none;
    }
    .news-details-content .news-main-content{
        width: 100%;
    }
}
@media (max-width: 1024px) {
    .media-cards-section .media-cards-container{
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 25px;
    }
    .media-cards-section{
        margin-top: 60px;
    }
    .media-cards-section .pagination{
        margin-top: 40px;
    }
    .news-category-section{
        margin-top: 30px;
    }
    .news-category-section .news-category-container{
        gap: 0 30px;
    }
    .news-details-content .news-main-content .news-navigation a{
        line-height: 58px;
    }
    .news-details-content .news-main-content{
        padding-bottom: 50px;
    }
}
@media (max-width: 768px) {
    .media-cards-section{
        margin-top: 50px;
    }
    .media-cards-section .pagination{
        margin-top: 30px;
    }
    .news-details-content .news-main-content{
        padding: 30px 30px 50px;
    }
    .news-details-content .news-main-content .news-date{
        font-size: 16px;
    }
    .news-details-content{
        margin-top: 30px;
    }
    .news-details-content .news-main-content .news-body{
        font-size: 18px;
        margin-top: 1.25em;
    }
    .news-details-content .news-main-content .news-navigation a{
        padding: 0 20px;
        font-size: 16px;
        line-height: 50px;
    }
    .news-category-section .news-category-container .news-category-link{
        font-size: 18px;
        padding-bottom: 13px;
    }
    .news-category-section{
        margin-top: 25px;
    }
}
@media (max-width: 500px) {
    .news-category-section{
        margin-top: 20px;
    }
    .news-category-section .news-category-container{
        gap: 15px 16px;
    }
    .news-category-section .news-category-container .news-category-link{
        font-size: 16px;
    }
    .media-cards-section .media-cards-container{
        grid-template-columns: repeat(1, 1fr);
        gap: 30px 20px;
    }
    .media-cards-section{
        margin-top: 40px;
    }
    .media-cards-section .pagination{
        margin-top: 25px;
    }
    .news-details-content{
        margin-top: 25px;
    }
    .news-details-content .news-main-content .news-title{
        line-height: 1.4;
    }
    .news-details-content .news-main-content{
        padding: 25px 25px 40px;
    }
    .news-details-content .news-main-content .news-body{
        font-size: 16px;
    }
    .news-details-content .news-main-content .news-navigation a{
        line-height: 44px;
    }
}