
/* Before/After Slider */
.ba-slider { position: relative; width: 100%; height: 0; padding-bottom: 80.3278%; overflow: hidden; border-radius: 12px; }
.ba-slider img { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider img.after { z-index: 1; }
.ba-slider img.before { clip-path: inset(0 50% 0 0); z-index: 2; }
.ba-slider .divider-line { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background: rgba(255,255,255,0.9); z-index: 3; transform: translateX(-50%); }
.ba-slider .handle { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.85); border: 2px solid #333; transform: translate(-50%,-50%); cursor: ew-resize; z-index: 4; display: flex; align-items: center; justify-content: center; }
.ba-slider .handle::before, .ba-slider .handle::after { content: ""; display: block; width: 0; height: 0; border-style: solid; position: absolute; top: 50%; transform: translateY(-50%); }
.ba-slider .handle::before { border-width: 6px 8px 6px 0; border-color: transparent #333 transparent transparent; left: 8px; }
.ba-slider .handle::after { border-width: 6px 0 6px 8px; border-color: transparent transparent transparent #333; right: 8px; }
/* Before / After labels */
.ba-slider .before-label,
.ba-slider .after-label {
    position: absolute;
    bottom: 10px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;

    opacity: 1;
    transition: opacity 0.25s ease;
}

.ba-slider .before-label {
    left: 10px;
    z-index: 5;
}

.ba-slider .after-label {
    right: 10px;
    left: auto;
    z-index: 3;
}

/* 🔥 ONLY when mouse is over slider */
.ba-slider:hover .before-label,
.ba-slider:hover .after-label {
    opacity: 0;
}


/* Video */
.video-container { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; }
.video-container video { width: 100%; height: 100%; position: absolute; top: 0; left: 0; object-fit: cover; }
.play-button {
    position: absolute;

    bottom: 4px; /* This is equivalent to a 'bottom-8' class (32px) in Tailwind */
    left: 50%;
    transform: translateX(-50%);
    width: 56px; /* w-14 */
    height: 56px; /* h-14 */
    border-radius: 50%; /* rounded-full */
    background-color: rgba(17, 24, 39, 0.6); /* bg-gray-900/60 */
    display: flex; /* flex */
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    transition: all 0.2s ease-in-out; /* transition */
    z-index: 10;
}

/* Style for the SVG inside the button */
.play-button svg {
    width: 24px; /* w-6 */
    height: 24px; /* h-6 */
    fill: currentColor;
    color: white; /* text-white */
}

/* Hover effect */
.play-button:hover {
    background-color: rgba(17, 24, 39, 0.8); /* hover:bg-gray-900/80 */
}

/* For a larger button/icon on medium screens (md:w-12, md:h-12, md:bottom-8) */
@media (min-width: 768px) {
    .play-button {
        bottom: 4px; /* md:bottom-8 (same as above, ensuring it overrides any smaller value) */
    }
    
    .play-button svg {
        width: 48px; /* md:w-12 */
        height: 48px; /* md:h-12 */
    }
}

/* Reviews */
.review-card { transition: transform 0.2s ease-in-out; }
.review-card:hover { transform: translateY(-5px); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; }
.review-avatar.red { background-color: #ef4444; }
.review-avatar.green { background-color: #22c55e; }
.review-avatar.blue { background-color: #3b82f6; }


.hero-slide-wrapper{flex:0 0 100%;max-width:100%;position:relative;overflow:hidden}
.hero-slide-img{width:100%;height:auto;object-fit:cover;object-position:center;display:block}


@keyframes borderMove{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.animate-borderMove{background-size:200% 200%;animation:borderMove 6s ease infinite}