.news-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.img-row>.text-row {
    margin-top: 2rem;
    font-family: kanit;
}

.img-wrapper {
    height: 500px;
    background-color: rgb(243, 243, 243);
    overflow: hidden;
}

@media (max-width: 950px) {
    .img-wrapper {
        height: 300px;
    }
}

.img-wrapper>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-wrapper {
    overflow-wrap: break-word;
    word-break: break-word;
}

.text-wrapper>h5 {
    margin-top: 1rem;
}

.originate-date>* {
    color: gray;
}

.originate {
    margin-left: 10px;
}

.date {
    margin-left: 20px;
}

.sub-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}



/*----- card --------*/

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 400px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*------------- prev-next button ---------------------*/
.prev-next-row {
    display: flex;
    justify-content: center;
    align-items: top;
    margin-bottom: 2rem;
}

.prev-next-row>* {
    display: flex;
    overflow-wrap: break-word;
    word-break: break-word;

}

.prev-next-container a {
    text-decoration: none;
    padding: 10px 15px 0 15px;
    color: inherit;
}


.nav-text {
  display: block;
  width: 100%;
}



#previous {
    display: flex;
    justify-content: flex-start;
    text-align: start;
}

#next {
    display: flex;
    justify-content: flex-end;
    text-align: end;
}

#middle-line {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-divider {
    width: 1px;
    height: 50px;
    background-color: #cbced1;
}

.nav-text:hover {
    color: rgb(102, 6, 228);
}