/* Before After Slider Styles */
.standalone-cleaning-content-block {
    background-color: #fff;
    padding: 100px 0;
}

.standalone-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
}

.standalone-section-title {
    margin-bottom: 50px;
    text-align: center;
}

.standalone-section-title h2 {
    color: #252525;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.standalone-section-title p {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.before-after-item {
    text-align: center;
}

.slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: ew-resize;
    background-color: #ddd;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.before-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background-color: #fbbf24;
    transform: translateX(-50%);
    transition: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slider-button span {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}

.label {
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.before-label {
    top: 10px;
    left: 10px;
}

.after-label {
    top: 10px;
    right: 10px;
}

.before-after-item h3 {
    color: #252525;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.before-after-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Responsive Design */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .standalone-cleaning-content-block {
        padding: 80px 0;
    }

    .standalone-section-title {
        margin-bottom: 40px;
    }

    .standalone-section-title h2 {
        font-size: 30px;
    }

    .before-after-grid {
        gap: 30px;
    }

    .slider-button {
        width: 45px;
        height: 45px;
    }

    .slider-button span {
        font-size: 18px;
    }
}

/* Medium devices */
@media (max-width: 768px) {
    .standalone-container {
        max-width: 720px;
    }

    .standalone-cleaning-content-block {
        padding: 60px 0;
    }

    .standalone-section-title {
        margin-bottom: 35px;
    }

    .standalone-section-title h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .standalone-section-title p {
        font-size: 15px;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .before-after-item {
        margin-bottom: 10px;
    }

    .slider-container {
        margin-bottom: 15px;
    }

    .slider-button {
        width: 40px;
        height: 40px;
    }

    .slider-button span {
        font-size: 16px;
    }

    .label {
        padding: 5px 10px;
        font-size: 11px;
    }

    .before-after-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .before-after-item p {
        font-size: 13px;
    }
}

/* Small devices */
@media (max-width: 576px) {
    .standalone-container {
        max-width: 540px;
    }

    .standalone-cleaning-content-block {
        padding: 50px 0;
    }

    .standalone-section-title {
        margin-bottom: 30px;
    }

    .standalone-section-title h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .standalone-section-title p {
        font-size: 14px;
    }

    .before-after-grid {
        gap: 20px;
    }

    .slider-container {
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .slider-button {
        width: 35px;
        height: 35px;
    }

    .slider-button span {
        font-size: 14px;
    }

    .slider-handle {
        width: 3px;
    }

    .label {
        padding: 4px 8px;
        font-size: 10px;
        top: 8px;
    }

    .before-label {
        left: 8px;
    }

    .after-label {
        right: 8px;
    }

    .before-after-item h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .before-after-item p {
        font-size: 12px;
    }
}

/* Extra small devices */
@media (max-width: 420px) {
    .standalone-container {
        max-width: 100%;
    }

    .standalone-section-title h2 {
        font-size: 20px;
    }

    .standalone-section-title p {
        font-size: 13px;
    }

    .before-after-grid {
        gap: 15px;
    }

    .slider-button {
        width: 32px;
        height: 32px;
    }

    .slider-button span {
        font-size: 12px;
    }

    .label {
        padding: 3px 6px;
        font-size: 9px;
    }

    .before-after-item h3 {
        font-size: 14px;
    }

    .before-after-item p {
        font-size: 11px;
    }
}