body {
    background-color: var(--background-color);
}

.news-room-caption {
    text-align: left;
    padding: 64px;
    height: 90%;
}

.news-room_h1_extra{
    text-align: left;
    padding-left: 9%;
}

.news-new_style{
    text-align: left;
    padding-left: 9%;
}

.news-room-caption h3 {
    color: var(--color-secondary);
    font-weight: 700;
    padding-bottom: 60px;
    font-size: 36px;
    text-align: left; /*new additions*/
    padding-left: 9%; /*new additions*/
}

.news-room-caption span {
    padding: 8px;
    background-color: var(--color-primary);
}

.news-room-caption h1 {
    padding-top: 16px;
    width: 60%;
    font-weight: 500;
}

.news-room-caption h1 span {
    font-size: 30px;
    font-weight: 700;
}

.slider {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 20px;
    
}

.slider .scroll-slider-content {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    /* height: 100px; */
    position: relative;
    display: inline-flex;
}

.slider i {
    font-size: 60px;
    padding: 0px 20px;
    color: var(--color-primary);
}

.scroll-slider-content .slider-item {
    display: flex;
    height: 100%;
    align-items: flex-end;
    flex-grow: 1;
    border-left: 1px solid black;
    position: relative;
    min-width: 200px;
}

::-webkit-scrollbar {
    display: none;
}

.slider-item span {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
}

.slider-item .rect {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    background-color: var(--color-secondary);
}

.news-post {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-post .news-post-item {
    margin-top: 20px;
    /* max-height: 500px;
    height: 500px; */
}

.news-card-container {
    padding: 0px 16px;
}

.news-card {
    position: relative;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
    /* padding: 16px; */
}

.news-card img {
    width: 100%;
    max-height: 500px;
}

.news-card .card-content-container {
    position: absolute;
    bottom: 0;
    height: fit-content;
    padding: 16px;
}

.news-card .card-content {
    padding: 20px;
    background-color: white;
    color: black;
    width: 100%;
}

.card-content .desc {
    font-size: 14px;
    padding-top: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
   -webkit-box-orient: vertical;
}

@media screen and (max-width: 600px) {
    .slider-caption h1 {
        width: 95%;
        font-size: 30px;
    }

    .news-room-caption {
        padding: 16px;
        height: 60%;
    }

    .card-content h5 {
        font-size: 20px;
    }

    .card-content .desc {
        font-size: 14px;
    }

    .news-card img {
        max-height: 560px;
    }
}