/*--------------------------------------------------------------
# Pasek z najnowszymi aktualnościami (pod HERO)
--------------------------------------------------------------*/
.news-ticker {
    position: relative;
    display: flex;
    align-items: stretch;
    background-color: var(--sopot-black);
    overflow: hidden;
    z-index: 2;
}

.news-ticker__label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background-color: var(--sopot-base);
    position: relative;
    z-index: 2;
}

.news-ticker__label a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    color: var(--sopot-white);
    font-family: var(--sopot-font-two);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker__label a:hover {
    color: var(--sopot-white);
    text-decoration: underline;
}

.news-ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.news-ticker__track {
    display: flex;
    width: max-content;
    animation: news-ticker-scroll var(--ticker-duration, 60s) linear infinite;
}

/* zatrzymanie po najechaniu myszą lub fokusie klawiatury */
.news-ticker__viewport:hover .news-ticker__track,
.news-ticker__viewport:focus-within .news-ticker__track {
    animation-play-state: paused;
}

.news-ticker__list {
    display: flex;
    margin: 0;
    padding: 0;
}

.news-ticker__item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-ticker__item::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: 0 28px;
    border-radius: 50%;
    background-color: var(--sopot-base);
}

.news-ticker__item a {
    display: inline-block;
    padding: 14px 0;
    color: var(--sopot-white);
    font-size: 15px;
    line-height: 1.2;
    transition: color .25s ease;
}

.news-ticker__item a:hover,
.news-ticker__item a:focus-visible {
    color: #c7ad89;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-ticker__date {
    margin-right: 8px;
    color: rgba(var(--sopot-white-rgb), .55);
    font-size: 13px;
}

@keyframes news-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* bez animacji dla osób, które ją wyłączyły w systemie - pasek przewijany ręcznie */
@media (prefers-reduced-motion: reduce) {
    .news-ticker__viewport {
        overflow-x: auto;
    }
    .news-ticker__track {
        animation: none;
    }
    .news-ticker__list[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 575px) {
    .news-ticker__label a {
        padding: 12px 14px;
        font-size: 12px;
    }
    .news-ticker__item a {
        padding: 12px 0;
        font-size: 14px;
    }
    .news-ticker__date { display: none; }
}


/*--------------------------------------------------------------
# Ostatnie aktualności na stronie głównej
--------------------------------------------------------------*/
.news-home {
    position: relative;
    display: block;
    padding: 100px 0 90px;
    background-color: #f5f7fa;
}

.news-home .section-title {
    margin-bottom: 50px;
}

.news-home__card {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    background-color: var(--sopot-white);
    box-shadow: 0 5px 13px rgba(0, 0, 0, .08);
    transition: box-shadow .35s ease, transform .35s ease;
}

.news-home__card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
    transform: translateY(-4px);
}

.news-home__img {
    position: relative;
    display: block;
    aspect-ratio: 53 / 30;
    overflow: hidden;
    background-color: #e9eef4;
}

.news-home__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-home__card:hover .news-home__img img {
    transform: scale(1.05);
}

.news-home__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20%;
}

.news-home__img-placeholder img {
    width: auto;
    max-width: 100%;
    height: auto;
    opacity: .5;
}

.news-home__card:hover .news-home__img-placeholder img {
    transform: none;
}

.news-home__content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 26px 28px 28px;
}

.news-home__content::before {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    content: "";
    background-color: var(--sopot-base);
    transform: scale(0, 1);
    transform-origin: left center;
    transition: transform .5s ease;
}

.news-home__card:hover .news-home__content::before {
    transform: scale(1, 1);
}

.news-home__date {
    display: block;
    color: var(--sopot-base);
    font-size: 14px;
    line-height: 1;
}

.news-home__date .far {
    margin-right: 4px;
}

.news-home__title {
    margin: 14px 0 10px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.news-home__title a {
    color: var(--sopot-black);
    transition: color .35s ease;
}

.news-home__title a:hover,
.news-home__card:hover .news-home__title a {
    color: var(--sopot-base);
}

.news-home__excerpt {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
}

.news-home__more {
    margin-top: auto;
    color: var(--sopot-black);
    font-size: 14px;
    font-weight: 500;
}

.news-home__more .fas {
    margin-left: 6px;
    font-size: 12px;
    transition: transform .25s ease;
}

.news-home__more:hover {
    color: var(--sopot-base);
}

.news-home__more:hover .fas {
    transform: translateX(4px);
}

.news-home__all {
    margin-top: 20px;
    text-align: center;
}

.news-home__all .thm-btn {
    text-transform: none;
}

@media (max-width: 767px) {
    .news-home {
        padding: 70px 0 60px;
    }
}
