/* Marquee Section */
.h5-marquee-section {
    padding: 120px 0;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.h5-marquee-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 80px 0;
}

.marquee-ribbon {
    width: 140%;
    margin-left: -20%;
    padding: 30px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.ribbon-top {
    background: #fff;
    transform: rotate(3deg);
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.ribbon-bottom {
    background: var(--tj-color-theme-primary);
    transform: rotate(-4deg);
    margin-top: -85px;
    /* Overlap value */
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Marquee Box Items */
.marquee-box {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 40px;
}

.marquee-icon i {
    font-size: 28px;
    line-height: 1;
}

.marquee-title .title {
    font-size: 52px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    letter-spacing: -1px;
}

/* Colors for ribbons */
.ribbon-top .marquee-icon i,
.ribbon-top .title {
    color: var(--tj-color-theme-primary);
}

.ribbon-bottom .marquee-icon i,
.ribbon-bottom .title {
    color: #fff;
}

/* Splide Overrides for Marquee */
.h5-marquee-slider .splide__track {
    overflow: visible;
}

/* Star icon fallback if font fails */
.tji-star::before {
    content: "★";
    font-style: normal;
}

/* Responsive */
@media (max-width: 1200px) {
    .marquee-title .title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .h5-marquee-section {
        padding: 80px 0;
    }

    .marquee-title .title {
        font-size: 32px;
    }

    .marquee-ribbon {
        padding: 20px 0;
    }

    .ribbon-bottom {
        margin-top: -65px;
    }
}

@media (max-width: 768px) {
    .h5-marquee-section {
        padding: 60px 0;
    }

    .marquee-title .title {
        font-size: 24px;
    }

    .marquee-box {
        gap: 15px;
        padding: 0 20px;
    }

    .ribbon-bottom {
        margin-top: -50px;
    }
}