
/* News section */
.news-section {
    background: var(--bg2);
    padding: 60px 0;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border: 1px solid #b0b0b0;
    padding: 40px;
    display: flex;
    border: solid;
}

.news-section .title-group {
    display: block;
    gap: 10px;
    margin-bottom: 30px;
}

.news-header {
    display: block;
    width: 25%;
    justify-content: space-between;
    align-items: flex-start;
}

.news-list {
    width: 516px;
    margin-left: auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #d9d9d9;
}

.news-item button{
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.news-item .info-area {
    display: flex;
    justify-content: center;
    width: 100%;
}

.news-date {
    color: #555555;
    font-size: 18px;
    margin-bottom: 6px;
}

.news-title {
    font-size: 20px;
    margin-right: 20px;
    line-height: 1.7;
    padding-bottom: 12px;
}

.news-arrow{
    font-size: 16px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin: auto;
    display: block;
    font-weight: bold;
    margin-right: 0;
}



.news-window{
    /*background-image: url(../images/white_bg.jpg);*/
    background-color: ghostwhite;
    position: fixed;
    z-index: 99999;
    width: 90vw;
    max-height: 90vh;
    padding: 24px 36px;
    height: fit-content;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    box-shadow: 2px 3px 2px #666;
    border: solid 10px #345;

    max-width: 900px;
    overflow-y: scroll;
}
.news-window::before {
    content: "";
    inset: 0;
    /*background-color: ghostwhite;*/
    background-image: repeating-linear-gradient(0deg, transparent 0 23px, var(--grid) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, var(--grid) 23px 24px);
    pointer-events: none;
    z-index: -1;
}

.news-window .scroll-area{
    overflow-y: scroll;
    overflow-x: clip;
    max-height: 65vh;
}
.news-window p{
    color: black;
}
.news-window .news-title{
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 1px solid #978477;
}
.news-window .news-date{
    padding: 12px;
    padding-right: 36px;
    text-align: right;
}
.news-window .news-detail{
    padding-bottom: 40px;
}
.news-window button{
    padding: 12px 48px;
    border-radius: 100px;
    border: solid 1px #333;
    width: fit-content;
    margin: auto;
    display: block;
    background-color: ghostwhite;
    color: black;
}


@media (max-width: 900px) {
    .news-container {
        display: block;
        max-width: 90vw;
        padding: 40px 20px;
    }
    
    .news-header {
        width: 100%;
        text-align: center;
    }

    .news-list {
        width: 100%
    }
    .news-title {
        font-size: 18px;
        margin-right: 18px;
        padding-bottom: 12px;
    }
    .news-section .title-group {
        margin-bottom: 0;
    }


    .news-window{
        background-color: ghostwhite;
        position: fixed;
        z-index: 99999;
        width: 100vw;
        max-height: 90vh;
        padding: 24px 16px;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        box-shadow: 2px 3px 2px #666;
        border: solid 10px #345;
    }
    .news-window p{
        color: black;
    }
    .news-window .news-title{
        text-align: left;
        font-weight: bold;
        font-size: 20px;
        margin: auto;
        border-bottom: 1px solid #978477;
    }
    .news-window .news-date{
        padding: 0;
        text-align: right;
        font-size: 16px;
    }
    .news-window .news-detail{
        padding-bottom: 60px;
    }
    .news-window button{
        padding: 12px 36px;
        border-radius: 100px;
        border: solid 1px #444;
        width: fit-content;
        margin: auto;
        display: block;
        background-color: transparent;
        color: #444;
        font-size: 16px;
    }
}