/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(10%);
    }

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

/*---------arrow-------------*/



/* Container for title and arrow (entire container is clickable) */
.title-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit; 
    transition: transform 0.3s ease; 
    cursor: pointer;
}

.title-container:hover {
    transform: scale(1.05); 
}

/* Title styling */
.cards__item__title-marquee {
    margin: 0;
    font-size: 1rem; 
    font-weight: 600;
}

/* Arrow link styling */
.continue-arrow {
    margin-left: 8px; 
    width: 16px; 
    height: 16px;
    transition: transform 0.3s ease;
    top: -4px;
}

/* Arrow move on title-container hover */
.title-container:hover .continue-arrow {
    transform: translateX(4px);
}
/*-----------------*/

/* Logo container */
.cards__item__image-container-marquee {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Image inside container */
.cards__item__image-marquee {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keeps image aspect ratio within container */
}

.cards__item__title-marquee {
    font-family: Onest, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}



.cards__items-marquee {
    padding-block: 2rem;
    background: var(--background-elevated);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cards__items__wrapper-marquee {
    display: flex;
    gap: 1.5rem;
    /* Space between cards */
    white-space: nowrap;
      animation: marquee 80s linear infinite;
    transition: animation-play-state 0.3s ease;
    /* Smooth transition */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cards__items__wrapper-marquee:hover {
    animation-play-state: paused;
    /* Pauses the animation on hover */
}



/* Styling each individual card */
.cards__item-marquee {
    flex: 0 0 auto;
    width: 300px;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards__item__title-marquee {
    font-family: Onest, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #031732;
    white-space: normal;
    text-align: center;
}

.cards__item__body-marquee {
    color: #555;
    font-family: Onest, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    white-space: normal;
}



.cards__item__title.marquee-title,
.cards__item__body.marquee-body {
    overflow: hidden;
    display: inline-block;
    animation: marquee 10s linear infinite;
}


@media (max-width: 768px) {
    .cards__items__wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}


.cards__item__link {
    text-align: left;
}

.cards__item__number {
    border-radius: 999rem;
    background: #fff;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
}


@media (max-width: 768px) {
    .cards__items__wrapper-marquee {
        display: flex;
        flex-direction: column;
        animation: none;
        /* Disables the marquee animation */
        white-space: normal;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .cards__item {
        width: 300px;
        max-width: 100%;
    }
}




   /* Hide duplicate items on mobile */
@media (max-width: 768px) {
    .cards__items__wrapper-marquee {
        animation: none; /* Disable animation on mobile */
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-hidden {
        display: none !important;
    }

}

