@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.news-header-container {
    padding-top: 56px;

    @media screen and (min-width: 993px) {
        padding-top: 80px;
    }

    .news-header {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;

        &:has(h2) {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }

        h1 {
            font-size: 2rem;
            text-align: start;
            color: var(--text-secondary);
            text-transform: none;

            @media screen and (min-width: 768px) {
                font-size: 2.5rem;
            }
        }

        h2 {
            font-size: 0.75rem;

            @media screen and (min-width: 768px) {
                font-size: 1rem;
            }

        }

        @media screen and (min-width: 768px) {
            padding-top: 2.5rem;
            padding-bottom: 2.5rem;
        }
    }
}

.news-container {

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fill, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 2rem;

    padding-bottom: 2rem;

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(auto-fill, 1fr);
        grid-column-gap: 2rem;
    }


    .single-new {
        .new-image {
            width: 100%;
            height: 18.75rem;
            object-fit: cover;
            border-radius: 1.25rem;
            margin-bottom: 1rem;
            background: #FDFDFD;
        }

        .new-date {
            font-size: 0.75rem;
            line-height: normal;
            margin-bottom: 0.5rem;
            color: #5c6263;
        }

        h2 {
            font-size: 1.25rem;
            line-height: 1.875rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            @media screen and (min-width: 768px) {
                font-size: 1.5rem;
            }
        }


        .read-more {
            margin-top: auto;
            color: var(--text-secondary);
        }
    }
}

.news-content-container {
    .pagination {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .pagination-text {
            margin-bottom: 0.25rem;
        }
        margin-bottom: 1rem;
    }
}

.open-news {
    padding-bottom: 2rem;
    h1 {
        font-size: 2rem;
        text-align: start;
        color: var(--text-secondary);
        text-transform: none;

        @media screen and (min-width: 768px) {
            font-size: 2.5rem;
        }
    }

    .date-and-share-buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;

        .new-date {
            line-height: unset;
            font-size: 0.75rem;
            margin: 0;
            color: #5c6263;
        }

        .share-links {
            display: flex;
            gap: 0.5rem;
            align-items: center;

            svg:hover path {
                fill: var(--text-secondary);
            }

            .copy-content {
                background: #5c6263;
                color: var(--text-primary);
                border-radius: 12px;
                padding: 0.25rem;
                text-align: center;
                min-width: fit-content;
                width: fit-content;
                bottom: 20px;
                right: 0;
                opacity: 0;



                &.fade-in {
                    animation: fadeIn 0.5s;
                }



                &.fade-out {
                    animation: fadeOut 1.5s;
                }


            }
        }
    }

    img {
        max-width: 100%;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }

    .new-content {
        .ql-video {
            width: 100%;
            min-height: 220px;
            border-radius: 20px;

            @media screen and (min-width: 768px) {
                min-height: 500px;
            }
        }
        p {
            font-size: 1rem;
            margin-bottom: 1rem;
            span {
                line-height: normal;
            }
        };
    }
}