/**
 * News Template Styles
 */

.page-template-template-news {
    .news-wrapper {
        gap: var(--spacing-lg);

        @media (max-width: 992px) {
            gap: 0;
        }
        .news-text {
            width: calc(50% - (var(--spacing-lg) / 2));

            @media (max-width: 992px) {
                width: 100%;
            }
            p {
                max-width: 480px;
            }
        }
        .news-posts {
            width: calc(50% - (var(--spacing-lg) / 2));

            @media (max-width: 992px) {
                width: 100%;
                padding-top: var(--spacing-md);
            }
            .news-post {
                margin-bottom: var(--spacing-md);
                
                &:last-of-type {
                    margin-bottom: 0;
                }
                a {
                    position: relative;
                    display: block;
                    padding: 2.2rem 4.5rem 2.2rem 2.2rem;
                    background: linear-gradient(to bottom, #000000 0%, #181818 100%);
                    border: 1px solid rgba(255, 255, 255, .5);
                    border-radius: var(--border-radius-secondary);
                    transition: .3s ease-in-out;

                    @media (max-width: 768px) {
                        padding: 1.5rem 3.5rem 1.5rem 1.5rem;
                    }
                    &:hover, &:focus-visible {
                        text-decoration: none !important;
                        border: 1px solid rgba(var(--color-yellow-rgb), .5);
                        box-shadow: 0px 0px 20px rgba(var(--color-yellow-rgb), .5);

                        .news-post-icon {
                            transform: scale(1.2);
                        }
                    }
                }
                h3 {
                    font-size: 1.5rem;
                    line-height: 1.2;

                    @media (max-width: 768px) {
                        font-size: 1.3rem;
                    }
                }
                .news-post-icon {
                    position: absolute;
                    bottom: 2.2rem;
                    right: 2.2rem;
                    height: 30px;
                    transition: .3s ease-in-out;

                    @media (max-width: 768px) {
                        bottom: 1.5rem;
                        right: 1.5rem;
                    }
                }
            }
        }
        .pagination {
            margin-top: 40px;

            @media (max-width: 768px) {
                margin-top: 30px;
            }
            .page-numbers {
                color: white;
                padding: 6px 8px;

                &:hover, &:focus-visible {
                    color: var(--color-yellow);
                    text-decoration: none;
                }
                &.current {
                    background-color: var(--color-yellow);
                    color: black;
                    font-weight: 700;
                }
                &.prev, &.next {
                    display: inline-block;
                    font-size: 0px;
                    width: 19px;
                    height: 15px;
                    position: relative;
                    top: -13px;
                    padding: 0px;

                    &:after {
                        content: '';
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        width: 19px;
                        height: 15px;
                        background-image: url('../../svg/yellow-arrow.svg');
                        background-size: contain;
                        background-repeat: no-repeat;
                    }
                }
                &.prev {
                    margin-right: 5px;

                    &:after {
                        transform: translate(-50%, -50%) scale(-1, 1);
                    }
                }
                &.next {     
                    margin-left: 5px;
                }
            }
        }
    }
}