/* Qthemy Slider Builder Pro - front-end styles. */

/* Containers */

/* Icon element */
.ps-f-icon { display: flex; align-items: center; justify-content: center; }
.ps-f-icon > span { display: block; }
.ps-f-icon svg { display: block; width: 100%; height: 100%; }

/* Social media element */
.ps-f-social { display: flex; align-items: center; justify-content: center; }
.ps-f-social > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    line-height: 1;
    text-decoration: none;
}
.ps-f-social > a > svg { display: block; fill: currentColor; }

/* Video backgrounds */
.ps-f-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ps-f-bg-youtube {
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 0;
}

/* Autoplay progress inside the navigation dots */
.qthemy-sb-autoplay .ps-ctrl-dot.is-active { background: var(--qsb-dot-color, rgba(255, 255, 255, .3)); }
.ps-ctrl-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--qsb-dot-active-color, #fff);
    border-radius: 3px;
}
.ps-ctrl-progress.is-running { animation: qthemy-sb-progress var(--qsb-progress-duration, 5000ms) linear forwards; }
.ps-ctrl-progress.is-paused { animation-play-state: paused; }
@keyframes qthemy-sb-progress { from { width: 0%; } to { width: 100%; } }

/* Play / pause button */
.ps-ctrl-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, .25); flex-shrink: 0; }
.ps-ctrl-play {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.ps-ctrl-play:hover { background: rgba(255, 255, 255, .15); }
.ps-ctrl-play svg { width: 14px; height: 14px; fill: currentColor; }
.ps-ctrl-play .icon-play { display: none; }
.ps-ctrl-play.is-paused .icon-pause { display: none; }
.ps-ctrl-play.is-paused .icon-play { display: flex; }

/* ==========================================================================
   Countdown, animated text, list, badge, video (Pro elements)
   ========================================================================== */
.ps-f-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3em;
    width: 100%;
    direction: ltr;
}

.ps-f-cd-box {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: .28em .2em .32em;
    box-sizing: border-box;
}

.ps-f-cd-num {
    font-size: 1em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ps-f-cd-label {
    margin-top: .25em;
    font-size: .36em;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.ps-f-cd-message {
    text-align: center;
    line-height: 1.3;
}

.ps-f-animtext .ps-f-at-words {
    display: inline-block;
    transition: opacity .35s ease, transform .35s ease;
}

.ps-f-at-fade.is-out,
.ps-f-at-slide.is-out {
    opacity: 0;
}

.ps-f-at-slide.is-out {
    transform: translateY(-.45em);
}

.ps-f-at-slide.is-in {
    opacity: 0;
    transform: translateY(.45em);
    transition: none;
}

.ps-f-at-caret {
    display: inline-block;
    margin-inline-start: .04em;
    font-weight: 300;
    animation: ps-f-caret 1s steps(1) infinite;
}

@keyframes ps-f-caret { 50% { opacity: 0; } }

ul.ps-f-list,
ol.ps-f-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-f-list > li {
    display: flex;
    align-items: flex-start;
    gap: .55em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-f-list > li::before,
.ps-f-list > li::marker {
    content: none;
}

.ps-f-list-icon {
    display: block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    margin-top: .2em;
}

.ps-f-list-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ps-f-list-num {
    flex: 0 0 auto;
    min-width: 1.2em;
    font-variant-numeric: tabular-nums;
}

.ps-f-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 1.9em;
    padding: .3em .9em;
    box-sizing: border-box;
    line-height: 1.1;
    white-space: nowrap;
}
/* List text follows the layer's font and color, not the theme's list styles. */
.qthemy-sb-wrap .ps-f-list,
.qthemy-sb-wrap .ps-f-list > li {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    list-style: none;
}

/* ---------- Ken Burns image motion ---------- */
.ps-slide.ps-f-has-kenburns {
    overflow: hidden;
}

.ps-f-kenburns {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    pointer-events: none;
}
/* ---------- Counter ---------- */
.ps-f-counter-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ps-f-counter-label {
    margin-top: .2em;
    font-size: .36em;
    font-weight: 500;
    line-height: 1.3;
}

/* ---------- Before / after ---------- */
.ps-f-ba {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    direction: ltr;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ps-f-ba-img,
.ps-f-ba-before {
    position: absolute;
    inset: 0;
}

.ps-f-ba-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.ps-f-ba-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    color: #cbd5e1;
    font-size: 13px;
}

.ps-f-ba-empty.is-before {
    background: #1e293b;
}

.ps-f-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: var(--qsb-ba-color, #fff);
    pointer-events: none;
}

.ps-f-ba-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: var(--qsb-ba-color, #fff);
    color: #111827;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.ps-f-ba-knob svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-f-ba-label {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}

.ps-f-ba-label.is-before { left: 12px; }
.ps-f-ba-label.is-after { right: 12px; }
.ps-f-ba-knob:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Circle badge: as tall as it is wide. */
.ps-f-badge.is-circle {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: .4em;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
}
