/* Sekcja: news_carousel - pełny CSS sekcji (zapis zagnieżdżony). */

.newsy-carousel {
    padding: 0px 120px;

    .container {
        max-width: 1700px;
    }

    .foto {
        img {
            height: 21vw;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            border-radius: var(--image-border-radius);
        }
    }

    .text {
        display: flex;
        width: 100%;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .text-inner {
        flex: 1 1 50%;
        padding: 30px 25px;
        background-color: var(--element1-content-bg);

        &:after {
            display: block;
            content: "";
            background-image: url('/img/arrow-icon.png?ver=0.1');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            width: 35px;
            height: 35px;
            min-height: 35px;
            margin-left: auto;
            margin-right: 10px;
        }
    }

    .date {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 85px;
        padding: 0 3px;

        span {
            font-size: 1.25rem;
            letter-spacing: 0.1875rem;
            color: var(--secondary-text);
            display: block;
            text-align: center;
        }

        strong {
            font-size: 1.5625rem;
            letter-spacing: 0;
            padding-bottom: 10px;
            display: flex;
        }
    }

    h2 {
        font-weight: 700;
        font-size: 2.9375rem;
        text-align: center;
        margin-bottom: 60px;
    }

    h3 {
        color: var(--element1-title);
        font-size: 1.5625rem;
        margin-bottom: 15px;
    }

    p {
        font-size: 1.125rem;
        color: var(--element1-text);
        text-align: left;
    }

    .one-news {
        border-radius: 8px;
        filter: drop-shadow(0 0 6.5px rgba(0, 0, 0, 0.1));
        background-color: var(--element1-bg);

        &:hover {
            box-shadow: 0 0 10px 2px var(--transparent-color1);
        }
    }

    .owl-item {
        padding: 10px;
    }
}

@media (max-width: 575.5px) {
    .newsy-carousel {
        padding: 10px 15px;

        .owl-nav {
            display: none;
        }

        .date {
            min-width: 65px;

            span {
                font-size: 1.125rem;
                letter-spacing: 0.0625rem;
            }

            strong {
                font-size: 1.4375rem;
                padding-bottom: 5px;
            }
        }

        h3 {
            margin-top: 0;
            margin-bottom: 10px;
        }

        .text-inner {
            padding: 15px;
        }

        .foto {
            img {
                height: 50vw;
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {
    .newsy-carousel {
        padding: 20px 60px;

        .date {
            min-width: 70px;

            span {
                font-size: 1.125rem;
                letter-spacing: 0.125rem;
            }

            strong {
                font-size: 1.4375rem;
                padding-bottom: 5px;
            }
        }

        h3 {
            margin-top: 0;
            margin-bottom: 10px;
        }

        .text-inner {
            padding: 15px;
        }

        .foto {
            img {
                height: 45vw;
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 991.5px) {
    .newsy-carousel {
        padding: 20px 50px;

        .date {
            min-width: 70px;

            span {
                font-size: 1.125rem;
                letter-spacing: 0.125rem;
            }

            strong {
                font-size: 1.4375rem;
                padding-bottom: 5px;
            }
        }

        h3 {
            margin-top: 0;
            margin-bottom: 10px;
        }

        .text-inner {
            padding: 15px;
        }

        .foto {
            img {
                height: 26vw;
            }
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .newsy-carousel {
        padding: 20px 50px;

        .text-inner {
            padding: 15px 25px;
        }

        .foto {
            img {
                height: 26vw;
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .newsy-carousel {
        padding: 60px;

        .foto {
            img {
                height: 18vw;
            }
        }
    }
}
