/**
 * Component: Image and Text Marquee
 * 
 * Styles for the Image and Text Marquee component.
 *
 * @package SCDA-2025
 */

/* Basic component styling */
.image-and-text-marquee {
    &.bg-texture {
        position: relative;
        z-index: 2;
        background-image: url('../../../assets/images/patterns/white-cloth.jpg');
        background-repeat: repeat;
        margin: 39px 0;

        @media screen and (max-width: 768px) {
            margin: 30px 0;
        }
        &:before {
            content: '';
            display: block;
            position: absolute;
            top: -39px;
            left: 0;
            width: 100%;
            height: 39px;
            background-image: url('../../../assets/images/patterns/white-cloth-top-edge.png');
            background-repeat: repeat-x;
            z-index: 1;
        }
        &:after {
            content: '';
            display: block;
            position: absolute;
            bottom: -39px;
            left: 0;
            width: 100%;
            height: 39px;
            background-image: url('../../../assets/images/patterns/white-cloth-bottom-edge.png');
            background-repeat: repeat-x;
            z-index: 1;
        }
    }
    .marquee-container {
        margin-bottom: var(--spacing-xxl);

        @media screen and (max-width: 768px) {
            margin-bottom: var(--spacing-xl);
        }
        @media screen and (max-width: 576px) {
            margin-bottom: var(--spacing-lg);
        }
        &:last-of-type {
            margin-bottom: 0;
        }
        .marquee-heading {
            color: var(--color-scda-brown);
            text-align: center;
            margin-bottom: var(--spacing-xs);
        }
        .source-text {
            width: 100%;
            max-width: 1060px;
            margin: var(--spacing-xs) auto 0;
            color: var(--color-scda-black);
            text-align: center;
            font-size: 1rem;
            line-height: 1.4;
            letter-spacing: .8px;

            @media screen and (max-width: 576px) {
                font-size: .85rem;
                letter-spacing: .105px;
            }
        }
    }
    .marquee, .marquee * {
        -webkit-overflow-scrolling: touch;
        overflow: hidden;

        .marquee-slider {
            width: 100%;
            overflow: hidden;

            &.pure-marquee {
                display: flex;
                width: fit-content;
                
                &.animate-left {
                    animation: pure-marquee-scroll 30s linear infinite;
                }
                &.animate-right {
                    animation: pure-marquee-scroll-reverse 30s linear infinite;
                }
            }
            .slide {
                width: 290px;
                margin: 0 20px;

                @media screen and (max-width: 768px) {
                    width: 240px;
                    margin: 0 15px;
                }
                @media screen and (max-width: 576px) {
                    width: 200px;
                    margin: 0 8px;
                }
                .marquee-image {
                    width: 100%;
                    height: 140px;
                    display: flex;
                    justify-content: center;
                    align-items: flex-end;
                    margin-bottom: 8px;

                    @media screen and (max-width: 768px) {
                        height: 120px;
                    }
                    @media screen and (max-width: 576px) {
                        height: 95px;
                    }
                    img {
                        width: auto;
                        height: auto;
                        max-width: 100%;
                        max-height: 100%;
                    }
                }
                .marquee-item-heading {
                    font-size: 3rem;
                    font-weight: bold;
                    line-height: 1.5;
                    letter-spacing: 2.4px;
                    color: var(--color-scda-blue);
                    text-align: center;
                    margin: 0;

                    @media screen and (max-width: 991px) {
                        font-size: 2.5rem;
                        letter-spacing: 1px;
                    }
                    @media screen and (max-width: 576px) {
                        font-size: 2rem;
                        letter-spacing: 0;
                    }
                }
                .marquee-item-subheading {
                    font-size: 2.25rem;
                    font-weight: 500;
                    line-height: 1.4;
                    letter-spacing: 1.8px;
                    color: var(--color-scda-brown);
                    text-align: center;
                    margin: 0;

                    @media screen and (max-width: 991px) {
                        font-size: 1.85rem;
                        letter-spacing: .8px;
                    }
                    @media screen and (max-width: 576px) {
                        font-size: 1.5rem;
                        letter-spacing: 0;
                    }
                }
            }
        }
    }
}
@keyframes pure-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}
@keyframes pure-marquee-scroll-reverse {
    0% {
        transform: translateX(-66.666%);
    }
    100% {
        transform: translateX(-33.333%);
    }
}