.fog-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 60%;
    /* 15% szerokości kontenera */
    height: 60%;
    /* proporcjonalnie */
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(28, 255, 20, 0.1) 0%,
            rgba(0, 255, 162, 0) 100%,
            transparent 100%);
    filter: blur(300px);
    z-index: 10;
    opacity: 0.9;
}

.fog:nth-child(1) {
    top: -30%;
    left: 0%;
}

.fog:nth-child(2) {
    top: 20%;
    left: 20%;

}

.fog:nth-child(3) {
    left: 70%;
    top: -10%;
}

.fog:nth-child(4) {
    top: 60%;
    left: 60%;
}

#news-section .section-header {
    text-align: left;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

#news-section .section-header:first-child>h3 {
    color: #d1d5db;
}

#news-section {
    width: 100%;
}

#news-container {
    display: none;
}

#news-carousel {
    width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;
    display: flex;
}

.news-track {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.news-track::-webkit-scrollbar {
    display: none;
    /* hides scrollbar for a cleaner look */
}

.news-item {
    flex: 0 0 auto;
    margin-left: 2rem;
    opacity: 0.6;
    width: 60vw;
    scroll-snap-align: center;
    transition: opacity 0.5s ease, flex 0.5s ease, font-size 0.5s ease, width 0.5s ease;
}

.news-item>a {
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
    /* prevent items from shrinking */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    gap: 1rem;
    /* match your flex-basis */
}

.news-item:first-child {
    opacity: 0.2;
    filter: blur(5px);
}

.news-item:last-child {
    margin-right: 2rem;
    opacity: 0.2;
    filter: blur(5px);
}

.news-item-active {
    opacity: 1;
    width: 70vw;
    font-size: 1rem;
}

.news-item img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 9px;
}

.news-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.news-item span {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.85rem;
}

.news-item-b span p {
    color: #999999;
}

.news-item div h5:nth-child(2) {
    color: #d1d5db;
    font-size: 0.85rem;
}

#best-of-posts {
    width: 100%;

}

#posts-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

#slider-track {
    overflow: hidden;
    height: 512px;
}

#slider {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation-name: infinity-slide;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 16s;
    min-height: fit-content;
    justify-content: center;
    align-items: center;
}

@keyframes infinity-slide {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.slider-item {
    width: 100%;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slider-item:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slider-item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
    text-decoration: none;
    color: inherit;
}

.slider-item:first-child>a {
    margin-top: 0;
}

.slider-item img {
    width: 7rem;
    aspect-ratio: 1/1;
    border-radius: 9px;
}

.slider-item h5 {
    font-size: 0.85rem;
    color: #BABABA;
}

.slider-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.slider-item div>span {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0.25rem;
}

.slider-item div>span>p {
    color: #999999;
    font-size: 0.85rem;
}

a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.section-header h3 {
    color: #999999;
}

#posts-slider-header h3 {
    color: #999999;
}

a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
    /* żadnych podkreśleń */
    color: inherit;
    /* brak zmiany koloru */
    outline: none;
    /* opcjonalnie, jeśli nie chcesz obramowania focus */
}

.section-header h3:hover,
.section-header h3:focus,
.section-header h3:active {
    color: white;
}


#posts-slider-header h3:hover,
#posts-slider-header h3:focus,
#posts-slider-header h3:active {
    color: white;
}

/* 
.slider-item:nth-child(1) {
    opacity: 0.8;
}

.slider-item:nth-child(2) {
    opacity: 1;
}

.slider-item:nth-child(3) {
    opacity: 0.6;
}

.slider-item:nth-child(4) {
    opacity: 0.4;
} */

@media screen and (min-width: 540px) {

    .news-item {
        flex: 0 0 40%;
    }

    .news-item-active {
        flex: 0 0 50%;
    }
}

@media screen and (min-width: 750px) {

    .news-item {
        flex: 0 0 30%;
    }

    .news-item-active {
        flex: 0 0 40%;
    }


}

@media screen and (min-width: 900px) {

    .news-item {
        flex: 0 0 30%;
    }

    .news-item-active {
        flex: 0 0 40%;
    }
}

@media screen and (min-width: 600px) {
    .fog {
        opacity: 0.7;
    }

    .fog:nth-child(1) {
        top: -30%;
        left: 30%;
    }

    .fog:nth-child(2) {
        top: 20%;
        left: 40%;

    }

    .fog:nth-child(3) {
        left: 70%;
        top: -10%;
    }

    .fog:nth-child(4) {
        top: 60%;
        left: 60%;
    }

    .fog-bg {
        margin-left: 80vw;
    }

    #slider-track {
        height: auto
    }

    #slider {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: max-content;
    }

    .slider-item {
        opacity: 1;
    }

    .slider-item>a {
        margin-left: 2rem;
        margin-top: 0;
        min-width: fit-content;
        max-width: auto;
    }

    .slider-item div>span {
        justify-content: flex-start;
        gap: 1rem;
    }

    @keyframes infinity-slide {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

@media screen and (min-width: 1000px) {
    #news-section .section-header {
        justify-content: flex-start;
        gap: 1rem;
    }

    #news-carousel {
        display: none;
    }


    .slider-item {
        opacity: 0.9;
    }

    #news-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }

    .news-item-b {
        transition: opacity 0.3s ease;
    }

    .news-item-b>a {
        display: flex;
        gap: 1rem;
        text-decoration: none;
        color: inherit;
    }


    .news-item-b img {
        height: 124.8335px;
        width: 130px;
        object-fit: cover;
        border-radius: 9px;
    }

    .news-item-b h4:nth-child(2) {
        color: #d1d5db;
        font-size: 0.85rem;
    }

    .news-item-b span {
        display: flex;
        justify-content: flex-start;
        gap: 1rem;
        width: 100%;
        font-size: 0.85rem;
    }

    #news-container-upper {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        gap: 2rem;

    }

    #news-container-upper>.news-item-b img {
        width: 400px;
        height: 281.667px;
    }

    #news-container-upper-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
        width: 100%;
    }

    #news-container-upper-inner .news-item-b {
        flex-direction: row;
        justify-content: center;
        opacity: 0.5;
    }


    #news-container-upper-inner .news-item-b div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        gap: 0.5rem;
    }

    #news-container-lower>a {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
        text-decoration: none;
        color: inherit;
        width: fit-content;
    }

    #news-container-lower h4:nth-child(2) {
        color: #d1d5db;
    }

    #news-container-lower span {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        max-width: 350px;
    }
}

@media screen and (min-width: 1200px) {
    .news-item-b img {
        width: 200px;
    }

    #news-container-upper>.news-item-b img {
        width: 500px
    }

    #news-container-lower span {
        max-width: 500px;
    }
}