/* ==========================================================================
   SEKCJA: NEWS CAROUSEL -> CZYSTY STYL "EVENTS" NOCTURNE
   ========================================================================== */

.news-carousel-group {
    background-color: #ffffff;
    padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
    /*     padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px); */
    * {
        box-sizing: border-box;
    }

    .file_module-wrapper {
        max-width: 1761px;
        margin: 0 auto;
    }
}

.newsy-carousel {
    margin: 0 0 64px 0;
    padding: 0;

    &:last-child {
        margin-bottom: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* --- NAGŁÓWEK SEKCJ --- */
    h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: "Inter", system-ui, sans-serif;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #9397ab;
        margin: 0 0 clamp(28px, 4vw, 44px) 0;

        &::before {
            content: "";
            display: block;
            width: 28px;
            height: 2px;
            background-color: #9397ab;
        }
    }

    /* --- TWARDE NADPISANIE BIBLIOTEKI OWL CAROUSEL --- */
    .owl-carousel {
        display: block;
        width: 100%;

        .owl-item {
            padding: 0;
        }

        .owl-dots {
            display: none !important;
        }

        .nav-wrapper {
            display: none !important;
        }

        .owl-nav {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: clamp(28px, 4vw, 40px) !important;
            width: 100%;

            button.owl-prev,
            button.owl-next {
                position: static !important;
                transform: none !important;
                width: 36px !important;
                height: 36px !important;
                border-radius: 50% !important;
                border: 1px solid #b2b6ca !important;
                background: transparent !important;
                color: #292b31 !important;
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                transition: all 0.2s ease !important;
                margin: 0 !important;

                img { display: none !important; }

                &::before {
                    font-family: monospace;
                    font-size: 16px;
                }

                &:hover:not(.disabled) {
                    border-color: #9184d9 !important;
                    color: #9184d9 !important;
                }

                &.disabled {
                    opacity: 0.4 !important;
                    cursor: not-allowed;
                }
            }
            
            button.owl-prev::before { content: "\2190"; } 
            button.owl-next::before { content: "\2192"; }
        }
    }

    /* --- KARTA WYDARZENIA --- */
    .one-news {
        display: block;
        text-decoration: none;
        color: inherit;
        border-radius: 8px;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        background: transparent;
        box-shadow: none;

        &:hover {
            transform: translateY(-4px);

            .foto {
                img {
                    transform: scale(1.07) rotate(2.5deg);
                }
                &::before {
                    opacity: 1;
                }
                &::after {
                    opacity: 1; 
                    transform: translateY(0);
                }
            }
        }
    }

    /* --- ZDJĘCIE --- */
    .foto {
        position: relative;
        width: 100%;
        height: auto; 
        aspect-ratio: 558 / 371;
        border-radius: 0;
        overflow: hidden;
        border: 1px solid #cfd3e5;
        background-color: #f3f4f8;
        margin: 0 0 14px 0;

        figure {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;

            img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
                border-radius: 0 !important;
            }

            figcaption {
                display: none !important;
            }
        }

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(255, 0, 0, 0.5) 20%, transparent 50%);
            opacity: 0;
            transition: opacity 0.45s ease;
            z-index: 1;
            pointer-events: none;
        }

        &::after {
            content: "Tickets \2192";
            position: absolute;
            left: 16px;
            bottom: 14px;
            font-family: 'Chivo Mono', monospace;
            font-weight: 500;
            font-size: 12px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #f5f4ff;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.4s ease 0.1s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
            z-index: 2;
            pointer-events: none;
        }
    }

    /* --- BLOK TEKSTOWY --- */
    .wrapper {
        display: block;
        margin: 0;
        padding: 0;
    }

    .text {
        height: auto !important; 
        min-height: 0 !important;
        
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;

        .text-inner {
            display: contents; 

            &::after { display: none; }
        }

        h3 {
            font-size: 16px;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            line-height: 1.12;
            font-family: 'Chivo Mono', monospace;
            font-weight: 500;
            margin-top:0;
            margin-bottom:0;
        }

        .date {
            order: 2;
            display: flex;
            align-items: baseline;
            gap: 4px;
            margin: 6px 0 0 0;
            padding: 0;

            span, strong {
                font-family: "Inter", system-ui, sans-serif;
                font-size: 13px;
                font-weight: 400;
                color: #75798c;
                letter-spacing: 0;
                text-align: left;
                display: inline;
            }

            strong {
                font-weight: 600;
            }
        }

        p,span {
            order: 3;
            margin: 6px 0px 0px;
            font-size: 13px;
            font-feature-settings: "tnum";
            font-family: 'Chivo Mono';
            line-height: 1.55;
            font-weight: 400;
            color: #75798c;
        }
    }
}