.news {
    .news-list {
        display: flex;
        flex-direction: column;
        gap: 12px;

        .news-card {
            position: relative;
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            flex-direction: column;

            .news-picture {
                width: 100%;
                height: 200px;
                object-fit: cover;
                transition: all 0.5s;
            }

            .news-details {
                display: block;
            }

            .news-tag {
                position: absolute;
                top: 16px;
                left: 16px;
                padding: 4px 8px;
                box-sizing: border-box;
                line-height: 100%;

                font-size: 0.7em;
                font-weight: bold;
                color: #fff;
                background-color: var(--wp--preset--color--light-blue);
                text-decoration: none;
                text-transform: uppercase;

                &.student-life {
                    background-color: var(--wp--preset--color--light-blue);
                }
                &.research {
                    background-color: var(--wp--preset--color--fushia);
                }
                &.international {
                    background-color: var(--wp--preset--color--orange);
                }
            }

            .news-title {
                font-size: 1em;
                padding: 8px 32px;
                margin: 0;
                color: var(--wp--preset--color--dark-blue);
                text-decoration: none;
            }

            .news-description {
                padding: 0 32px 8px 32px;
                margin: 0;
                font-size: 0.8em;
                color: var(--wp--preset--color--dark-grey);
            }

            .news-more {
                a {
                    display: flex;
                    align-items: center;
                    color: red;
                    text-decoration: none;
                    font-weight: bold;
                    text-transform: uppercase;
                    padding: 0 32px 8px 32px;

                    &::after {
                        content: "";
                        display: inline-block;
                        width: 24px;
                        height: 20px;
                        margin-left: 8px;
                        background-image: url(./assets/goto.svg);
                        background-repeat: no-repeat;
                        background-size: contain;
                        background-position: center;
                    }
                }
            }

            &.collapsed {
                display: flex;
                align-items: center;
                gap: 8px;
                background-color: transparent;
                border-radius: 0;
                cursor: pointer;

                .news-details {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    width: 100%;
                }

                .news-tag {
                    top: 0;
                    left: 0;
                    position: relative;
                    box-shadow: none;
                    white-space: nowrap;
                }

                .news-title {
                    font-size: 1em;
                    font-weight: normal;
                    padding: 0;
                    margin: 0;
                    color: #fff;
                }

                .news-picture {
                    height: 0;
                }

                .news-description,
                .news-more {
                    display: none;
                }
            }
        }

        .news-separator {
            height: 1px;
            background-color: rgba(255, 255, 255, 0.2);
            margin: 0 8px;
        }
    }

    .news-all {
        margin-top: 32px;
    }
}

@media screen and (max-width: 1200px) {
    .news {
        .news-list {
            .news-card {
                &.collapsed {
                    .news-details {
                        align-items: flex-start;
                    }

                    .news-title {
                        line-height: 110%;
                    }
                }
            }
        }
    }
}
