/* Editor Styles */
:is(body.elementor-editor-active) .ts-box,
:is(body.elementor-editor-preview) .ts-box {
    visibility: visible;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

:is(body.elementor-editor-active)
  h1.ts-ribbon:nth-child(5)
  .ts-texts
  .ts-text.ts-text--second,
:is(body.elementor-editor-preview)
  h1.ts-ribbon:nth-child(5)
  .ts-texts
  .ts-text.ts-text--second {
  display: none;
}

.elementor-widget-slider_text_widget {
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.ts-container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ts-box {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-width: 100vh;
    width: 1200px;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    visibility: hidden;
    will-change: transform;
}

.ts-box-ribbon {
    position: absolute;
    width: 120vw;
    height: 120%;
    left: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.ts-ribbon {
    position: relative;
    margin: 0;
    height: 112px;
    font-weight: 600;
    font-size: 135px;
    letter-spacing: 0;
    line-height: 0.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ts-texts {
    display: block;
    position: relative;
    width: 150vw;
    height: 135px;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.ts-text {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.ts-text--second {
    color: #019ac5;
    position: absolute;
    top: 0;
}

/* Media Queries */
@media only screen and (max-width: 1024px) {
    .ts-container {
        height: 100vh;
        -webkit-overflow-scrolling: touch;
    }

    .ts-box {
        min-width: 716px;
        width: 716px;
        height: 1500px;
    }

    .ts-box-ribbon {
        width: 120%;
        top: 0;
        left: 0;
    }

    .ts-texts {
        width: 150%;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ts-box {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ts-box,
    .ts-text {
        -webkit-transition: none !important;
        transition: none !important;
    }
}

/* Update media query for mobile */
@media only screen and (max-width: 767px) {
    .ts-container {
        min-height: auto; /* Override previous min-height: 100vh */
        -webkit-overflow-scrolling: touch;
    }

    .ts-box {
        min-width: auto;
        width: 100%;
    }

    .ts-box-ribbon {
        width: 120%;
        top: 0;
        left: 0;
    }

    .ts-texts {
        width: 150%;
    }
}
