
.news {
    .news__featured__title {
        font-weight: 500;
    }

    .news__list {
    
        .news__list__title {
            margin: 2.5rem 0 1.5rem 0;
            font-size: 1.125rem;
            font-weight: 500;
        }

        .card, .card_type-2 {
            border: none;

            img {
                border-radius: 0 !important;
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }

            .card-body {
                padding-top: 0;
                padding-bottom: 0;

                .card-title {
                    font-size: 1rem;
                    font-weight: 500;
                    line-height: 1.5rem;
                }
    
                .card-text {
                    font-size: 14px;
                }

                .card__read-more {
                    font-size: 14px;
                }
            }
        }

        @media (max-width: 575.98px) {
            .card {
                margin-bottom: 0 !important;

                .card-body {
                    padding: 1rem 0;

                    .card-title {
                        font-weight: 600;
                    }

                    .card-text { 
                        font-size: 1rem;
                    }

                    .card__read-more {
                        width: 100%;
                    }
                }
            }
        }
    } 
}

.featured-news {

    height: 600px;
    margin-top: 1rem;

    .featured-news__item:only-child {
        width: 100%;
    }

    .fn-grid{
        display: grid;
        grid-template-columns: calc(50% - 8px) calc(50% - 8px);
        grid-template-rows: calc(50% - 8px) calc(50% - 8px);
        grid-gap: 16px;
        height: 600px;

        .featured-news__item {
            width: auto !important;

            .featured-news__gradiant {
                left: 0;
                right: 0;
            }

            &:nth-child(n + 2){
                .featured-news__title {
                    font-size: 1.5rem;
                    line-height: 2rem;
                }

                .featured-news__summary{ 
                    width: calc(100% - 5px);
                    font-size: 14px !important;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }

        .featured-news__item:first-child {
            grid-column-start: 1;
            grid-column-end: 1;
            grid-row-start: 1;
            grid-row-end: 3;
        }

        .featured-news__item:nth-child(2){
            grid-column-start: 2;
            grid-column-end: 2;
            grid-row-start: 1;
            grid-row-end: 2;
        }

        .featured-news__item:nth-child(3) {
            grid-column-start: 2;
            grid-column-end: 2;
            grid-row-start: 2;
            grid-row-end: 3;
        }
    }

    .featured-news__item {
        position: relative;
        height: 100% !important;
        width: 50%;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .featured-news__gradiant {
            height: 100%;
            background-image: linear-gradient(to bottom, rgba(0,0,0,0), 75%, rgb(0, 86, 104));
            position: absolute;
            top: 0;
            bottom: 0;
            left: calc(var(--bs-gutter-x) * .5);
            right: calc(var(--bs-gutter-x) * .5);
        }

        .featured-news__category {
            position: absolute;
            right: 2rem;
            top: 1rem;
            padding: .25rem 1rem;
            border-radius: 50px;
            color: white;
            background-color: black;
            font-size: 14px;
        }

        .featured-news__content {
            position: absolute;
            bottom: 2rem;
            padding: 0 2rem;
            width: 100%;
            margin-right: 1rem;

            .featured-news__title {
                color: white !important;
                text-decoration: none;
                font-size: 2rem;
                font-weight: 600;

                a {
                    color: white !important;
                    text-decoration: none;
                } 

                &:hover {
                    text-decoration: underline;
                }
            }

            .featured-news__summary{
                margin-bottom: 0;
                color: white;
                font-size: 1rem;
                font-weight: 400;
            }
        }
    }
}

.template__single-post {
    .single-post__image {
        img {
            width: 100%;
            height: 600px;
            object-fit: cover;
            object-position: center;
        }

        label {
            position: absolute;
            top: 2rem;
            right: 2rem;
            padding: .25rem 1rem;
            border-radius: 50px;
            background-color: black;
            color: white;
            font-size: 14px;
        }
    }

    .single-post__meta {
        margin: 1rem 0 .5rem 0;
        color: #A5A5A5;
        font-size: 14px;

        .single-post__meta-readingtime {
            margin-left: .75rem;
        }

        .single-post__meta-readingtime::before {
            content: "/";
            padding-right: .75rem;
        }
    }

    .single-post__container {
        max-width: 768px;

        .single-post__content {
            font-size: 1rem;
    
            h1 {
                font-size: 1.5rem;
                font-weight: 600;
                margin-bottom: 1.5rem;
            }
        }
    }
}

.related-news {
    .related-news__title {
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .splide__pagination {
        bottom: 0 !important;
    }
}



@media (max-width: 575.98px) {
    .news {
        .page__content  {
            .container-fluid {
                .container {
                    padding-left: 0;
                    padding-right: 0;
                    position: relative;

                    .page__title  {
                        position: absolute;
                        top: 2rem;
                        left: 2rem;
                        z-index: 1;
                        color: white;
                        font-size: 1.5rem;
                    }

                    .news__featured__title{
                        position: absolute;
                        top: 4rem;
                        left: 2rem;
                        font-size: 1rem;
                        color: white;
                        z-index: 1;
                    }

                }
            }
        }
    }

    .featured-news {
        height: calc(100vh - 102px);
        margin-top: 0 !important;
        
        .featured-news__desktop {
            display: none !important;
        }

        .featured-news__carousel {
            .splide__list{
                height: 100% !important;
            }

            .featured-news__item {
                width: 100%;
                height: 100%;

                .featured-news__gradiant { 
                    background-image: linear-gradient(to bottom, rgba(0,0,0,0), 60%, rgb(0, 86, 104));
                    left: 0 !important;
                    right: 0 !important;
                }

                .featured-news__category {
                    display: none;
                }

                .featured-news__content {

                    bottom: 4rem;

                    .featured-news__title {
                        font-size: 1.5rem;
                    }

                    .featured-news__summary {
                        font-size: 14px;
                    }
                }

                
            }

            .splide__pagination {
                bottom: 1.5rem !important;
            }
        }
    }
}

