.newsContainer .card:first-child .newsCardImageContainer, .newsContainer .card:nth-child(6n) .newsCardImageContainer {
    max-height: 220px;
    min-width: 200px;
}

.newsCardImageContainer {
    position: relative;
    min-height: 140px;
    min-width: 213px;
}

.newsCardImage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.news {
    padding-top: 60px;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    background-color: #f7f7f8;
}

.newsHeader {
    text-align: left;
    font-size: 28px;
    font-weight: 700;
    line-height: 39px;
    letter-spacing: -0.02em;
    display: flex;
    gap: 41px;
    align-items: center;
}

.newsCard {
    display: flex;
    padding: 24px 37px 24px 24px;
    justify-content: space-between;
    /*grid-column-start: 1;*/
    /*grid-column-end: 2;*/
    /*grid-row-start: 1;*/
    /*grid-row-end: 1;*/
}

.newsCardContent {
    padding-top: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    height: -moz-available; /* WebKit-based browsers will ignore this. */
    height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
    height: fill-available;
}

.newsCardHeader {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.02em;
    text-align: left;
}

.newsCardText {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.02em;
    text-align: left;
    width: 248px;
    padding-top: 16px;
    padding-bottom: 20px;
}

.newsContainer {
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 261px);
    grid-auto-rows: 295px;
    grid-gap: 24px;
}

.newsContainer .card:first-child {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 1;
}

.newsContainer .card:nth-child(6n) {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 2;
    grid-row-end: 2;
}

.newsCardSm {
    padding: 24px;
    display: flex;
    flex-direction: column;
    max-width: 261px;
    justify-content: space-between;
}
.newsCardContent .linkButton{
    min-width: 214px;
    text-align: center;
}
.newsCardHeaderSm {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.02em;
    text-align: left;
}
.newsContainer .card{
    height: 100%;
}
@media (max-width: 1081px) {

    .newsCardHeaderSm {
        font-size: 14px;
        font-weight: 700;
        line-height: 18px;
        letter-spacing: -0.02em;
    }

    .news {
        padding: 34px 20px 50px;
    }

    .newsHeader {
        font-size: 24px;
        font-weight: 700;
        line-height: 34px;
        letter-spacing: -0.02em;
    }

    .newsContainer {
        grid-auto-rows: 280px;
        grid-template-columns: repeat(3, 227px);
        justify-content: center;
        align-items: center;
    }

    .newsContainer .card:first-child .newsCardImageContainer, .newsContainer .card:nth-child(6n) .newsCardImageContainer, .newsCardImageContainer {
        max-height: 164px;
        min-width: 163px;
    }

    .newsContainer .card:first-child {
        grid-column-start: 1;
        grid-column-end: 1;
        grid-row-start: 1;
        grid-row-end: 1;
    }

    .newsContainer .card:nth-child(6n) {
        grid-column-start: 3;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 2;
    }

    .newsCardHeader {
        font-size: 14px;
        font-weight: 700;
        line-height: 18px;
        letter-spacing: -0.02em;
    }

    .newsContainer .card {
        display: flex;
        flex-direction: column;
        padding: 16px;
        justify-content: space-between;
        height: 100%;
    }

    .newsCardSm {
        padding: 16px;
    }

    .newsCardText {
        display: none;
    }

    .newsCardContent {
        gap: 12px;
    }

    .newsCardContent .linkButton {
        width: 100%;
        text-align: center;
    }
    .newsCardContent .linkButton{
        min-width: initial;
    }
}
@media (max-width: 768px) {

}
@media (max-width: 428px) {
    .newsContainer:nth-child(n+1){
        padding-top: 12px;
    }
    .newsCardHeaderSm {
        font-size: 12px;
        font-weight: 700;
        line-height: 16px;
        letter-spacing: -0.02em;
    }
    .newsContainer {
        grid-template-columns: repeat(2, 190px);
        grid-auto-rows: 190px;
        justify-content: center;
        grid-gap: 8px;
    }

    .newsContainer .card:first-child {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    .newsContainer .card:nth-child(6n) {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 4;
        grid-row-end: 4;
    }
    .newsContainer .card:first-child .newsCardImageContainer, .newsContainer .card:nth-child(6n) .newsCardImageContainer{
        min-width: 140px;
        max-height: 172px;
    }
    .newsCardImageContainer {
        min-height: 84px;
        min-width: 136px;
    }
    .newsContainer .card:first-child, .newsContainer .card:nth-child(6n){
        display: flex;
        flex-flow: row nowrap;
    }
    .newsContainer .card:first-child .newsCardContent, .newsContainer .card:nth-child(6n) .newsCardContent{
        padding-left: 24px;
    }
    .newsContainer .card {
        padding: 12px;
        max-height: 200px;
        gap: 0;
    }
    .newsCardHeader{
        font-size: 12px;
    }
    .newsCardText{
        display: block;
    }
    .newsCardText{
        font-size: 11px;
        width: auto;
        padding-top: 0;
        padding-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow-y: hidden;
        line-height: 15.4px;
    }
    .newsCardContent{
        gap: 0;
    }
    .newsCardContent .linkButton{
        font-size: 10px;
        padding: 6px 25px;
    }
}
@media (max-width: 375px) {
    .newsHeader{
        gap: 24px;
        padding: 0px 19px;
    }
    .news{
        padding:34px 0;
    }
    .newsContainer {
        grid-template-columns: repeat(2, 160px);
        justify-content: center;
        grid-gap: 8px;
    }

    .newsContainer .card:first-child {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    .newsContainer .card:nth-child(6n) {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 4;
        grid-row-end: 4;
    }
    .newsContainer .card:first-child .newsCardImageContainer, .newsContainer .card:nth-child(6n) .newsCardImageContainer{
        min-width: 140px;
        max-height: 172px;
    }
    .newsCardImageContainer {
        min-height: 84px;
        min-width: 136px;
    }
    .newsContainer .card:first-child, .newsContainer .card:nth-child(6n){
        display: flex;
        flex-flow: row nowrap;
    }
    .newsContainer .card:first-child .newsCardContent, .newsContainer .card:nth-child(6n) .newsCardContent{
        padding-left: 24px;
    }
    .newsContainer .card {
        padding: 12px;
        max-height: 200px;
        gap: 0;
    }
    .newsCardHeader{
        margin-top: 0;
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow-y: hidden;
    }
    .newsCardHeaderSm{
        /*margin-top: 0;*/
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow-y: hidden;
    }
    .newsCardText{
        display: block;
    }
    .newsCardText{
        font-size: 11px;
        width: auto;
        padding-top: 0;
        padding-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow-y: hidden;
        line-height: 15.4px;
    }
    .newsCardContent{
        gap: 0;
    }
    .newsCardContent .linkButton{
        font-size: 10px;
        padding: 6px;
    }
}
@media (max-width: 320px) {
    .newsContainer {
        grid-template-columns: repeat(2, 150px);
        justify-content: center;
        grid-gap: 8px;
    }
}
