
        /* WordPress Block Pattern Styles */
        .wp-block-dental-before-after {
            max-width: 800px;
            margin: 2rem auto;
            padding: 2rem;
            background: #f8f9fa;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .dental-slider-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            background: white;
        }

        .dental-slider-wrapper {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
        }

        .before-image, .after-image {
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .before-image {
            left: 0;
            clip-path: inset(0 50% 0 0);
        }

        .after-image {
            right: 0;
            clip-path: inset(0 0 0 50%);
        }

        .slider-control {
            position: absolute;
            top: 0;
            left: 50%;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #2c5aa0, #1e3d72);
            cursor: ew-resize;
            transform: translateX(-50%);
            z-index: 10;
            transition: all 0.2s ease;
        }

        .slider-control:hover {
            width: 6px;
            background: linear-gradient(180deg, #3a6bb8, #2547a0);
        }

        .slider-handle {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 40px;
            height: 40px;
            background: white;
            border: 3px solid #2c5aa0;
            border-radius: 50%;
            cursor: ew-resize;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .slider-handle:hover {
            background: #2c5aa0;
            transform: translate(-50%, -50%) scale(1.1);
        }

        .slider-handle::before {
            content: '⟷';
            font-size: 18px;
            color: #2c5aa0;
            font-weight: bold;
            transition: color 0.2s ease;
        }

        .slider-handle:hover::before {
            color: white;
        }

        .before-label, .after-label {
            position: absolute;
            top: 20px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.95);
            color: #2c5aa0;
            font-weight: bold;
            font-size: 14px;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 5;
            backdrop-filter: blur(10px);
        }

        .before-label {
            left: 20px;
        }

        .after-label {
            right: 20px;
        }

        .dental-slider-title {
            text-align: center;
            margin-bottom: 1.5rem;
            color: #2c5aa0;
            font-size: 2rem;
            font-weight: bold;
        }

        .dental-slider-description {
            text-align: center;
            margin-top: 1.5rem;
            color: #666;
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .wp-block-dental-before-after {
                margin: 1rem;
                padding: 1.5rem;
            }

            .dental-slider-wrapper {
                height: 300px;
            }

            .dental-slider-title {
                font-size: 1.5rem;
            }

            .before-label, .after-label {
                font-size: 12px;
                padding: 6px 12px;
                top: 15px;
            }

            .before-label {
                left: 15px;
            }

            .after-label {
                right: 15px;
            }
        }

        /* WordPress Block Editor Styles */
        .editor-styles-wrapper .wp-block-dental-before-after {
            max-width: none;
        }

        /* Animation for initial load */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dental-slider-container {
            animation: slideIn 0.6s ease-out;
        }
    