/*
==========================================================================
## Homepage Hero Slider
==========================================================================
*/

#homepage-hero-slider {
    background-color: var(--clr-gray-300);
}

/*
==========================================================================
## 1. Individual Slide Layout
==========================================================================
*/
.splide__slide {
    position: relative;
    overflow: hidden;
}

.slide-image-container {
    line-height: 0;
}

.splide__slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
}

/*
==========================================================================
## 2. Text and Button Overlay
==========================================================================
*/

/* --- new placement rules --- */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    padding: var(--space-6);
    color: var(--clr-white);
}

.slide-headline {
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--clr-white);
    margin-top: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: var(--fw-thin);
    margin-bottom: var(--space-2);
}

.slide-button {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: var(--fw-light);
    letter-spacing: 2px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
}

.slide-button:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    text-decoration: none;
}

/*
==========================================================================
## 3. Slider Controls (Arrows & Dots)
==========================================================================
*/

.splide__arrow {
    background: rgba(0, 45, 143, 0.5);
    width: 4rem;
    height: 4rem;
    opacity: 0.8;
    transition: all var(--transition-speed);
}

.splide__arrow:hover {
    background: var(--clr-primary);
    opacity: 1;
}

.splide__arrow svg {
    fill: var(--clr-white);
    width: 1.5rem;
    height: 1.5rem;
}



/* .splide__pagination {
    bottom: var(--space-4);
    left: var(--space-6);
    right: auto;
    justify-content: flex-start;
}

.splide__pagination__page {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 0 6px;
    opacity: 1;
    transition: all var(--transition-speed);
}

.splide__pagination__page.is-active {
    background: var(--clr-white);
    transform: scale(1.2);
    border: 2px solid var(--clr-secondary);
} */

/*
==========================================================================
## 4. Mobile Responsive Styles
==========================================================================
*/
@media (max-width: 768px) {
    .splide__slide img {
        height:650px;
        max-height: 700px;
    }

    /* --- NEW: Override alignment for mobile --- */
    .slide-content {
        /* Horizontally center the content */
        align-items: center;
        text-align: center;
        padding: var(--space-5);
    }

    .slide-headline {
        font-size: .9rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: var(--space-1);
        font-family: var(--font-primary);
    }

    /* Arrow positioning on mobile (Unchanged) */
    .splide__arrows {
        transform: none;
        top: auto;
        bottom: var(--space-3);
        left: 0;
        right: 0;
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        gap: 80%;
    }

    .splide__arrow {
        position: static;
        transform: none;
    }

    /* Pagination positioning on mobile */
    .splide__pagination {
        left: 0;
        right: 0;
        bottom: var(--space-2);
        justify-content: center;
    }
}






/*
==========================================================================
## Ticker Ribbon
==========================================================================
*/

.ticker-ribbon {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: var(--space-2) 0;
    overflow: hidden;
    /* Crucial for hiding the overflowing content */
    white-space: nowrap;
    /* Prevents content from wrapping */
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ticker-ribbon__track {
    display: flex;
    /* Animate the track using a keyframe animation */
    animation: ticker-scroll 30s linear infinite;
}

.ticker-ribbon__content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Prevents the content from shrinking */
}

.ticker-ribbon__content span {
    letter-spacing: 2px;
    padding: var(--space-2);
}

.ticker-separator {
    color: var(--clr-secondary);
    font-weight: var(--fw-bold);
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        /* Move the track to the left by the width of one content block */
        transform: translateX(-50%);
    }
}
