/** News Component Styles **/
/* Allow overflow beyond the visible area */
.custom-splide {
    position: relative;
    overflow: visible;
}

/* Optional: fade overlay on right side */
.custom-splide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.custom-splide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Optional: fade overlay on right side */
.custom-splide-yellow::after {
    background: linear-gradient(to left, rgba(255, 193, 54, 1), transparent);
}

.custom-splide-yellow::before {
    background: linear-gradient(to right, rgba(255, 193, 54, 1), transparent);
}

/* Optional: give a fixed width to slides to control peek */
.custom-splide-news .splide__slide {
    width: 80%;
    /* Less than 100% to show next slide peeking */
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.splide-arrows-vertical-custom-news {
    top: 32.5% !important;
}

.splide-left-custom-news {
    left: -5% !important;
}

.splide-right-custom-news {
    right: -5% !important;
}

.splide__slide.is-active .news-card-title {
    text-decoration: underline;
    text-decoration-color: var(--color-cg-orange);
    text-decoration-thickness: 2px;
}

.splide__slide.is-active .news-card-link-content {
    text-decoration: underline;
    text-decoration-color: var(--color-cg-orange);
    text-decoration-thickness: 2px;
}

.splide__slide.is-active .view-all {
    color: var(--color-cg-orange);
}

.splide__slide.is-active .view-all-icon{
    color: var(--color-cg-orange);
}


@-webkit-keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes ticker {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

.ticker {
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;

    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-name: ticker;
    animation-name: ticker;
    -webkit-animation-duration: 60s;
    animation-duration: 60s;
}

.ticker-item:not(:last-child)::after{
    content: '|';
    padding-left: 2rem;
    padding-right: 2rem;
    color: black;
}

@media (prefers-reduced-motion: reduce) {
  .ticker{
    -webkit-animation-duration: 120s;
    animation-duration: 120s;
  }
}