<?php
$pt_supports = ['post','portfolio','service'];
pxl_add_custom_widget(
    array(
        'name' => 'pxl_post_grid',
        'title' => esc_html__('Case Post Grid', 'solarva' ),
        'icon' => 'eicon-posts-grid',
        'categories' => array('pxltheme-core'),
        'scripts' => [
            'imagesloaded',
            'isotope',
            'pxl-post-grid',
        ],
        'params' => array(
            'sections' => array(
                array(
                    'name'     => 'tab_layout',
                    'label'    => esc_html__( 'Layout', 'solarva' ),
                    'tab'      => 'layout',
                    'controls' => array_merge(
                        array(
                            array(
                                'name'     => 'post_type',
                                'label'    => esc_html__( 'Select Post Type', 'solarva' ),
                                'type'     => 'select',
                                'multiple' => true,
                                'options'  => solarva_get_post_type_options($pt_supports),
                                'default'  => 'post'
                            ) 
                        ),
                        solarva_get_post_grid_layout($pt_supports)
                    ),
                ),
                array(
                    'name' => 'tab_source',
                    'label' => esc_html__('Source', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_SETTINGS,
                    'controls' => array_merge(
                        array(
                            array(
                                'name'     => 'select_post_by',
                                'label'    => esc_html__( 'Select posts by', 'solarva' ),
                                'type'     => 'select',
                                'multiple' => true,
                                'options'  => [
                                    'term_selected' => esc_html__( 'Terms selected', 'solarva' ),
                                    'post_selected' => esc_html__( 'Posts selected ', 'solarva' ),
                                ],
                                'default'  => 'term_selected'
                            ) 
                        ),
                        solarva_get_grid_term_by_post_type($pt_supports, [
                            'custom_condition' => [
                                'select_post_by' => 'term_selected',
                            ],
                        ]),
                        solarva_get_grid_ids_by_post_type($pt_supports, [
                            'custom_condition' => [
                                'select_post_by' => 'post_selected',
                            ],
                        ]),
                        array(
                            array(
                                'name' => 'orderby',
                                'label' => esc_html__('Order By', 'solarva' ),
                                'type' => \Elementor\Controls_Manager::SELECT,
                                'default' => 'date',
                                'options' => [
                                    'date' => esc_html__('Date', 'solarva' ),
                                    'ID' => esc_html__('ID', 'solarva' ),
                                    'author' => esc_html__('Author', 'solarva' ),
                                    'title' => esc_html__('Title', 'solarva' ),
                                    'rand' => esc_html__('Random', 'solarva' ),
                                ],
                            ),
                            array(
                                'name' => 'order',
                                'label' => esc_html__('Sort Order', 'solarva' ),
                                'type' => \Elementor\Controls_Manager::SELECT,
                                'default' => 'desc',
                                'options' => [
                                    'desc' => esc_html__('Descending', 'solarva' ),
                                    'asc' => esc_html__('Ascending', 'solarva' ),
                                ],
                            ),
                            array(
                                'name' => 'limit',
                                'label' => esc_html__('Total items', 'solarva' ),
                                'type' => \Elementor\Controls_Manager::NUMBER,
                                'default' => '6',
                            ),

                        )
                    ),
                ),
                array(
                    'name' => 'tab_filter',
                    'label' => esc_html__('Filter', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_SETTINGS,
                    'condition' => [
                        'select_post_by' => 'term_selected',
                    ],
                    'controls' => array(
                        array(
                            'name' => 'filter',
                            'label' => esc_html__('Filter', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SELECT,
                            'default' => 'false',
                            'options' => [
                                'true' => esc_html__('Enable', 'solarva' ),
                                'false' => esc_html__('Disable', 'solarva' ),
                            ],
                        ),
                        array(
                            'name'    => 'filter_type',
                            'label'   => esc_html__('Filter Type', 'solarva' ),
                            'type'    => \Elementor\Controls_Manager::SELECT,
                            'default' => 'normal',
                            'options' => [
                                'normal'  => esc_html__('Normal', 'solarva' ),
                                'ajax' => esc_html__('Ajax', 'solarva' ),
                            ],
                            'condition' => [
                                'filter' => 'true',
                            ],
                        ),
                        array(
                            'name' => 'filter_default_title',
                            'label' => esc_html__('Filter Default Title', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::TEXT,
                            'default' => esc_html__('All', 'solarva' ),
                            'condition' => [
                                'filter' => 'true',
                            ],
                        ),
                    ),
                ),

                solarva_grid_settings(),
                array(
                    'name' => 'tab_display',
                    'label' => esc_html__('Display', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_SETTINGS,
                    'controls' => array(
                        array(
                            'name' => 'img_size',
                            'label' => esc_html__('Image Size', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::TEXT,
                            'placeholder' => 'Ex: "thumbnail", "full" or 370x300 v.v).',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']]
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1', 'portfolio-2', 'portfolio-3']]
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-4', 'service-5']]
                                        ],
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'show_features_list',
                            'label' => esc_html__('Show Features List', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']]
                                        ]
                                    ]
                                ],
                            ]
                        ),
                        array(
                            'name' => 'show_author',
                            'label' => esc_html__('Show Author', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']]
                                        ]
                                    ]
                                ],
                            ]
                        ),
                        array(
                            'name' => 'show_icon',
                            'label' => esc_html__('Show Icon', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                        ]
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'show_date',
                            'label' => esc_html__('Show Date', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']]
                                        ]
                                    ]
                                ],
                            ]
                        ),
                        array(
                            'name' => 'show_category',
                            'label' => esc_html__('Show Category', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1', 'portfolio-2', 'portfolio-3']],
                                        ],
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'num_categories',
                            'label' => esc_html__('Show Number of Categories', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::NUMBER,
                            'description' => 'Leave blank to show all categories.',
                            'min' => 1,
                            'conditions' => [
                                'relation' => 'and',
                                'terms' => [
                                    ['name' => 'show_category', 'operator' => '!==', 'value' => ''],
                                    [
                                        'relation' => 'or',
                                        'terms' => [
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                                    ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']],
                                                ],
                                            ],
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                                    ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1', 'portfolio-2', 'portfolio-3']],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'show_button',
                            'label' => esc_html__('Show Button', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']],
                                        ]
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-5']]
                                        ]
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'button_text',
                            'label' => esc_html__('Button Text', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::TEXT,
                            'plcaeholder' => 'Read More...',
                            'conditions' => [
                                'relation' => 'and',
                                'terms' => [
                                    ['name' => 'show_button', 'operator' => '!==', 'value' => ''],
                                    [
                                        'relation' => 'or',
                                        'terms' => [
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                                    ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']],
                                                ]
                                            ],
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                                    ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                                ],
                                            ],
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                                    ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-5']]
                                                ]
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'show_excerpt',
                            'label' => esc_html__('Show Excerpt', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SWITCHER,
                            'default' => 'true',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-4', 'service-5']]
                                        ]
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'num_words',
                            'label' => esc_html__('Number of Words', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::NUMBER,
                            'conditions' => [
                                'relation' => 'and',
                                'terms' => [
                                    ['name' => 'show_excerpt', 'operator' => '!==', 'value' => ''],
                                    [
                                        'relation' => 'or',
                                        'terms' => [
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                                    ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']],
                                                ],
                                            ],
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                                    ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                                ],
                                            ],
                                            [
                                                'terms' => [
                                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                                    ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-4', 'service-5']]
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style',
                    'label' => esc_html__('General', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name' => 'service2_style',
                            'label' => esc_html__('Layout Style', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SELECT,
                            'default' => 'default',
                            'options' => array(
                                'default' => esc_html__('Default', 'solarva'),
                                'style1' => esc_html__('Style 1', 'solarva'),
                            ),
                            'prefix' => 'pxl-service-',
                            'conditions' => [
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-2']]
                                        ]
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'service4_style',
                            'label' => esc_html__('Layout Style', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SELECT,
                            'default' => 'pxl-service4-default',
                            'options' => array(
                                'pxl-service4-default' => esc_html__('Default', 'solarva'),
                                'pxl-service4-1' => esc_html__('Style 1', 'solarva')
                            ),
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-4']]
                                        ]
                                    ],
                                ],
                            ]
                        ),
                        array(
                            'name' => 'item_spacing_column',
                            'label' => esc_html__('Spacing Column', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'placeholder' => 'Ex: 15',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-grid .pxl-grid-inner .pxl-grid-item' => 'padding-inline: {{SIZE}}{{UNIT}};',
                                '{{WRAPPER}} .pxl-grid .pxl-grid-inner' => 'margin-inline: -{{SIZE}}{{UNIT}}',
                            ],
                        ),
                        array(
                            'name' => 'item_spacing_row',
                            'label' => esc_html__('Spacing Row', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'placeholder' => 'Ex: 15',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-grid .pxl-grid-inner .pxl-grid-item' => 'padding-block: {{SIZE}}{{UNIT}};',
                                '{{WRAPPER}} .pxl-grid .pxl-grid-inner' => 'margin-block: -{{SIZE}}{{UNIT}}',
                            ],
                        ),
                        array(
                            'name' => 'item_bg_color',
                            'label' => esc_html__('Background Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid .pxl-post--inner, 
                                {{WRAPPER}} .pxl-case-studies-grid .pxl-post--inner, 
                                {{WRAPPER}} .pxl-service-grid1 .pxl-post--inner, 
                                {{WRAPPER}} .pxl-service-grid2 .pxl-post--inner,
                                {{WRAPPER}} .pxl-service-grid3 .pxl-post--inner::after, 
                                {{WRAPPER}} .pxl-service-grid5 .pxl-post--inner' => 'background-color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-5']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        
                        array(
                            'name' => 'item_bg_color_hover',
                            'label' => esc_html__('Background Color Hover', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                ' {{WRAPPER}} .pxl-case-studies-grid1 .pxl-post--content, 
                                {{WRAPPER}} .pxl-service-grid2 .pxl-post--inner:hover, 
                                {{WRAPPER}} .pxl-service-grid3 .pxl-post--inner::before' => 'background-color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-2', 'service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'divider_blog_color',
                            'label' => esc_html__('Divider Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--divider' => 'background-color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-service-grid2 .pxl-post--title' => 'border-color: {{VALUE}}',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-2']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'divider_blog_color_hover',
                            'label' => esc_html__('Divider Color Hover', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner:hover .pxl-post--divider' => 'background-color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-service-grid2 .pxl-post--inner:hover .pxl-post--title' => 'border-color: {{VALUE}}',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-2']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'frame_color',
                            'label' => esc_html__('Frame Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-item--frame path' => 'fill: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'item_border',
                            'label' => esc_html__('Border', 'solarva'),
                            'type' => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .pxl-post-grid .pxl-post--inner',
                            // 'conditions' => [
                            //     'relation' => 'or',
                            //     'terms' => [
                            //         [
                            //             'terms' => [
                            //                 ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                            //                 ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1']],
                            //             ],
                            //         ],
                            //     ],
                            // ],
                        ),
                        array(
                            'name' => 'max_width',
                            'label' => esc_html__('Max Width', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--inner' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-4', 'service-5']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'item_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner, 
                                {{WRAPPER}} .pxl-case-studies-grid .pxl-post--inner, 
                                {{WRAPPER}} .pxl-service-grid .pxl-post--inner' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => '!in', 'value' => ['service-4']],
                                        ],
                                    ],
                                    
                                ],
                            ],
                        ),
                        array(
                            'name' => 'item_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--inner, 
                                {{WRAPPER}} .pxl-service-grid3 .pxl-post--inner,
                                {{WRAPPER}} .pxl-service-grid5 .pxl-post--inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                        ],
                                    ],
                                ],
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3', 'service-5']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'filter_style_tabs',
                    'label' => esc_html__('Filter', 'solarva'),
                    'tab' => Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'filter' => 'true',
                    ],
                    'controls' => [
                        array(
                            'name' => 'filter_justify_content',
                            'label' => esc_html__('Justify Content', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::CHOOSE,
                            'control_type' => 'responsive',
                            'default' => '',
                            'options' => [
                                'start' =>  [
                                    'title' => esc_html__('Start', 'solarva'),
                                    'icon' => 'eicon-justify-start-h',
                                ],
                                'center' =>  [
                                    'title' => esc_html__('Center', 'solarva'),
                                    'icon' => 'eicon-justify-center-h',
                                ],
                                'end' =>  [
                                    'title' => esc_html__('End', 'solarva'),
                                    'icon' => 'eicon-justify-end-h',
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-grid-filter' => 'justify-content: {{VALUE}}'
                            ],
                        ),
                        [
                            'name' => 'filter_item_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-filter-inner .filter-item' => 'color: {{VALUE}};',
                            ],
                        ],
                        [
                            'name' => 'filter_divider_color',
                            'label' => esc_html__('Divider Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-filter-inner' => 'border-color: {{VALUE}};',
                            ],
                        ],
                        [
                            'name' => 'filter_item_color_hover',
                            'label' => esc_html__('Color Hover/Active', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-filter-inner .filter-item:hover, {{WRAPPER}} .pxl-filter-inner .filter-item.active' => 'color: {{VALUE}};',
                            ],
                        ],
                        
                        array(
                            'name' => 'filter_gap',
                            'label' => esc_html__('Gap', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'placeholder' => 'Ex: 15',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-filter-inner' => 'gap: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'filter_spacing_bottom',
                            'label' => esc_html__('Spacing Bottom', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'placeholder' => 'Ex: 15',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-grid-filter' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ]
                ),
                array(
                    'name' => 'tab_block_style',
                    'label' => esc_html__('Content', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'or',
                        'terms' => [
                            [
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                    ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                ],
                            ],
                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                            [
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                    ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2']],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'block_bg_color',
                            'label' => esc_html__('Background Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--content, 
                                {{WRAPPER}} .pxl-news-grid .pxl-post--content, 
                                {{WRAPPER}} .pxl-service-grid .pxl-post--content' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'block_box_shadow',
                            'label' => esc_html__('Bow Shadow', 'solarva' ),
                            'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--content',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name'         => 'block_border',
                            'label' => esc_html__( 'Border', 'solarva' ),
                            'type'         => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector'     => '{{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--content, 
                            {{WRAPPER}} .pxl-news-grid .pxl-post--content, {{WRAPPER}} .pxl-service-grid .pxl-post--content',
                        ),
                        array(
                            'name' => 'block_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--content, 
                                {{WRAPPER}} .pxl-news-grid .pxl-post--content, 
                                {{WRAPPER}} .pxl-service-grid .pxl-post--content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'block_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--content, 
                                {{WRAPPER}} .pxl-news-grid .pxl-post--content, 
                                {{WRAPPER}} .pxl-service-grid .pxl-post--content' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_featured',
                    'label' => esc_html__('Featured Image', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'or',
                        'terms' => [
                            [
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                    ['name' => 'layout_portfolio', 'operator' => '!in', 'value' => ['portfolio-1']],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'featured_spacing_b',
                            'label' => esc_html__('Spacing Bottom', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--featured' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => '!in', 'value' => ['portfolio-1', 'portfolio-2', 'portfolio-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'featured_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--featured' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'featured_min_height',
                            'label' => esc_html__('Min Height', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--featured img' => 'min-height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'tab_style_icon',
                    'label' => esc_html__('Icon', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'and',
                        'terms' => [
                            ['name' => 'show_icon', 'operator' => '!==', 'value' => ''],
                            [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                        ]
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array(   
                        array(
                            'name' => 'icon_normal_options',
                            'label' => esc_html__( 'NORMAL', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),    
                        array(
                            'name' => 'icon_color',
                            'label' => esc_html__( 'Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon' => 'color: {{VALUE}}',
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon svg path' => 'fill: {{VALUE}}',
                            ],
                        ),
                        array(
                            'name' => 'icon_bg_color',
                            'label' => esc_html__( 'Background Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid:not(.pxl-service-grid4) .pxl-post--icon, 
                                {{WRAPPER}} .pxl-service-grid4 .pxl-post--icon .pxl-icon--inner' => 'background-color: {{VALUE}}',
                            ],
                        ),
                        array(
                            'name' => 'icon_box_border',
                            'label' => esc_html__('Border', 'solarva'),
                            'type' => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .pxl-service-grid:not(.pxl-service-grid4) .pxl-post--icon, {{WRAPPER}} .pxl-service-grid4 .pxl-post--icon .pxl-icon--inner',
                        ),
                        array(
                            'name' => 'icon_size',
                            'label' => esc_html__('Font Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon' => 'font-size: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'icon_box_size',
                            'label' => esc_html__('Box Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon, 
                                {{WRAPPER}}  .pxl-service-grid4 .pxl-post--icon .pxl-icon--inner' => '--size: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'icon_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid:not(.pxl-service-grid4) .pxl-post--icon, 
                                {{WRAPPER}}  .pxl-service-grid4 .pxl-post--icon .pxl-icon--inner' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'icon_spacing_bottom',
                            'label' => esc_html__('Spacing Bottom', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-4']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'divider4',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                        ),
                        array(
                            'name' => 'svg_options',
                            'label' => esc_html__( 'SVG', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'svg_width',
                            'label' => esc_html__('Width', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon svg' => 'width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'svg_height',
                            'label' => esc_html__('Height', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--icon svg' => 'height: {{SIZE}}{{UNIT}};',
                            ],
                        ),

                        array(
                            'name' => 'divider3',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => '!in', 'value' => ['service-3', 'service-4']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'post_icon_hover',
                            'label' => esc_html__('HOVER', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after', 
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => '!in', 'value' => ['service-3', 'service-4']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'icon_hover_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid1 .pxl-post--inner:hover .pxl-post--icon' => 'color: {{VALUE}}',
                                '{{WRAPPER}} .pxl-service-grid1 .pxl-post--inner:hover .pxl-post--icon path' => 'fill: {{VALUE}}',
                                '{{WRAPPER}} .pxl-service-grid2 .pxl-post--inner:hover .pxl-post--icon' => 'color: {{VALUE}}',
                                '{{WRAPPER}} .pxl-service-grid2 .pxl-post--inner:hover .pxl-post--icon path' => 'fill: {{VALUE}}',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => '!in', 'value' => ['service-3', 'service-4']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'icon_hover_bg_color',
                            'label' => esc_html__('Background Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-post--inner:hover .pxl-post--icon' => 'background-color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => '!in', 'value' => ['service-3', 'service-4']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'tab_style_author',
                    'label' => esc_html__('Author', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'and',
                        'terms' => [
                            ['name' => 'show_author', 'operator' => '!==', 'value' => ''],
                            [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']],
                                        ],
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'author_avatar_opts',
                            'label' => esc_html__('AVATAR', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),

                        array(
                            'name' => 'author_avt_size',
                            'label' => esc_html__('Box Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--avatar img' => '--size: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name'         => 'author_avt_border',
                            'label' => esc_html__( 'Border', 'solarva' ),
                            'type'         => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector'     => '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--avatar img',
                        ),
                        array(
                            'name' => 'author_avt_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--avatar img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),

                        array(
                            'name' => 'name_divider',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                        ),
                        array(
                            'name' => 'author_name_opts',
                            'label' => esc_html__('NAME', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'author_name_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--name',
                        ),
                        array(
                            'name' => 'author_name_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--name' => 'color: {{VALUE}};',
                            ]
                        ),

                        array(
                            'name' => 'author_position_divider',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                        ),
                        array(
                            'name' => 'author_position_opts',
                            'label' => esc_html__('POSITION', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'author_postion_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--position',
                        ),
                        array(
                            'name' => 'author_postion_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--author .pxl-author--position' => 'color: {{VALUE}};',
                            ]
                        ),
                    ),
                ),

                array(
                    'name' => 'section_style_category',
                    'label' => esc_html__('Category', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'and',
                        'terms' => [
                            ['name' => 'show_category', 'operator' => '!==', 'value' => ''],
                            [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-1', 'post-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-1', 'portfolio-2', 'portfolio-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'category_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a' => 'color: {{VALUE}};',
                            ]
                        ),
                        array(
                            'name' => 'category_color_hover',
                            'label' => esc_html__('Color Hover', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a:hover' => 'color: {{VALUE}};',
                            ]
                        ),
                        array(
                            'name' => 'category_bg_color',
                            'label' => esc_html__('Background Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'category_bg_color_hover',
                            'label' => esc_html__('Background Color Hover', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a:hover' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        
                        array(
                            'name' => 'category_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a',
                        ),
                        array(
                            'name' => 'category_spacing_b',
                            'label' => esc_html__('Spacing Bottom', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'category_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'category_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--category a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_date',
                    'label' => esc_html__('Date', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'and',
                        'terms' => [
                            ['name' => 'show_date', 'operator' => '!==', 'value' => ''],
                            [
                                'relation' => 'or',
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'date_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--date',
                        ),
                        array(
                            'name' => 'date_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--date' => 'color: {{VALUE}};',
                            ]
                        ),
                        array(
                            'name' => 'date_spacing_b',
                            'label' => esc_html__('Spacing Bottom', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--date' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),

                array(
                    'name' => 'section_style_title',
                    'label' => esc_html__('Title', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array( 
                        array(
                            'name' => 'title_normal',
                            'label' => esc_html__('NORMAL', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'title_typography',
                            'label' => esc_html__('Typography', 'solarva'),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title',
                        ),
                        array(
                            'name' => 'title_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title' => 'color: {{VALUE}};',
                            ]
                        ),
                        array(
                            'name' => 'title_bg_color',
                            'label' => esc_html__('Background Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title' => 'background-color: {{VALUE}};',
                            ]
                        ),
                        array(
                            'name' => 'title_spacing_b',
                            'label' => esc_html__('Spacing Bottom', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'title_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'title_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'divider99',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                        ),
                        array(
                            'name' => 'title_hover',
                            'label' => esc_html__('HOVER','solarva'),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'title_hover_style',
                            'label' => esc_html__( 'Style', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SELECT,
                            'default' => '',
                            'options' => [
                                '' => esc_html__( 'Default', 'solarva' ),
                                'pxl-hover-underline' => esc_html__('Underline', 'solarva' ),
                            ],

                        ),
                        array(
                            'name' => 'title_hover_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--title:hover,
                                {{WRAPPER}} .pxl-post-grid.pxl-service-grid2 .pxl-post--inner:hover .pxl-post--title, 
                                {{WRAPPER}} .pxl-post-grid.pxl-service-grid3 .pxl-post--inner:hover .pxl-post--title' => 'color: {{VALUE}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_excerpt',
                    'label' => esc_html__('Excerpt', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'and',
                        'terms' => [
                            ['name' => 'show_excerpt', 'operator' => '!==', 'value' => ''],
                            [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                            ['name' => 'layout_post', 'operator' => 'in', 'value' => ['post-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-4', 'service-5']]
                                        ]
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'excerpt_typography',
                            'label' => esc_html__('Typography', 'solarva'),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--excerpt',
                        ),
                        array(
                            'name' => 'excerpt_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--excerpt' => 'color: {{VALUE}};',
                            ]
                        ),
                        array(
                            'name' => 'excerpt_color_hover',
                            'label' => esc_html__('Color Hover', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner:hover .pxl-post--excerpt' => 'color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => '!in', 'value' => ['service-4', 'service-5']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'excerpt_spacing_b',
                            'label' => esc_html__('Spacing Bottom', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--excerpt' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),

                array(
                    'name' => 'tab_features_list_style',
                    'label' => esc_html__('Features List', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'or',
                        'terms' => [
                            [
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                    ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'features_list_opts',
                            'label' => esc_html__('NORMAL', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'feature_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-feature--list .pxl-feature--single' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'feature_icon_color',
                            'label' => esc_html__('Icon Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-feature--list .pxl-feature--single svg path' => 'fill: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'feature_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-service-grid3 .pxl-feature--list .pxl-feature--single',
                        ),
                        array(
                            'name' => 'feature_icon_size',
                            'label' => esc_html__('Icon Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-feature--list .pxl-feature--single svg' => 'width: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'feature_item_spacing',
                            'label' => esc_html__('Item Spacing', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-feature--list .pxl-feature--single + .pxl-feature--single' => 'margin-top: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'feature_spacing_bottom',
                            'label' => esc_html__('Spacing Bottom', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-feature--list' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => '4',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                        ),
                        array(
                            'name' => 'features_list_hover_opts',
                            'label' => esc_html__('HOVER','solarva'),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),

                        array(
                            'name' => 'feature_color_hover',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-post--inner:hover .pxl-feature--list .pxl-feature--single' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'feature_icon_color_hover',
                            'label' => esc_html__('Icon Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-post--inner:hover .pxl-feature--list .pxl-feature--single svg path' => 'fill: {{VALUE}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_style_btn',
                    'label' => esc_html__('Button', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'and',
                        'terms' => [
                            ['name' => 'show_button', 'operator' => '!==', 'value' => ''],
                            [
                                'relation' => 'or',
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'post'],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'portfolio'],
                                            ['name' => 'layout_portfolio', 'operator' => 'in', 'value' => ['portfolio-2']],
                                        ],
                                    ],
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-2', 'service-3', 'service-5']],
                                        ],
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'btn_normal',
                            'label' => esc_html__('NORMAL', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'btn_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--btn' => 'color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--btn svg path.pxl-icon--main,
                                {{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--btn svg path, 
                                {{WRAPPER}} .pxl-service-grid1 .pxl-post--btn svg path' => 'fill: {{VALUE}};',
                                '{{WRAPPER}} .pxl-service-grid5 .pxl-post--btn svg path' => 'stroke: {{VALUE}}',
                            ],
                        ),
                        array(
                            'name' => 'btn_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--btn',
                        ),
                        array(
                            'name' => 'btn_icon_color',
                            'label' => esc_html__('Icon Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--btn .pxl-btn--icon' => 'color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--btn svg path' => 'stroke: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_icon_bg_color',
                            'label' => esc_html__('Icon Box Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--btn .pxl-btn--icon' => 'background-color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_icon_box_size',
                            'label' => esc_html__('Icon Box Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--btn .pxl-btn--icon' => '--size: {{SIZE}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),

                        array(
                            'name' => 'btn_border',
                            'label' => esc_html__('Border', 'solarva'),
                            'type' => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .pxl-service-grid1 .pxl-post--btn, {{WRAPPER}} .pxl-service-grid3 .pxl-post--btn',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid2 .pxl-post--btn, 
                                {{WRAPPER}} .pxl-service-grid3 .pxl-post--btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_icon_border_radius',
                            'label' => esc_html__( 'Icon Box Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--btn .pxl-btn--icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid3 .pxl-post--btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => '3',
                            'type' => \Elementor\Controls_Manager::DIVIDER,
                        ),
                        array(
                            'name' => 'btn_hover',
                            'label' => esc_html__('HOVER','solarva'),
                            'type' => \Elementor\Controls_Manager::HEADING,
                            'separator' => 'after',
                        ),
                        array(
                            'name' => 'btn_hover_color',
                            'label' => esc_html__('Color', 'solarva'),
                            'type' => Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-post-grid .pxl-post--inner .pxl-post--btn:hover, 
                                {{WRAPPER}} .pxl-service-grid2 .pxl-post--inner:hover .pxl-post--btn, 
                                {{WRAPPER}} .pxl-service-grid3 .pxl-post--inner:hover .pxl-post--btn, 
                                {{WRAPPER}} .pxl-service-grid5 .pxl-post--inner .pxl-post--btn:hover' => 'color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-news-grid2 .pxl-post--inner .pxl-post--btn svg path.pxl-icon--copy,
                                {{WRAPPER}} .pxl-case-studies-grid2 .pxl-post--btn:hover svg path, 
                                {{WRAPPER}} .pxl-service-grid1 .pxl-post--inner:hover .pxl-post--btn svg path,
                                {{WRAPPER}} .pxl-service-grid2 .pxl-post--inner:hover .pxl-post--btn svg path' => 'fill: {{VALUE}};',
                                '{{WRAPPER}} .pxl-service-grid5 .pxl-post--inner .pxl-post--btn:hover svg path' => 'stroke: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'btn_hover_bg_color',
                            'label' => esc_html__('Background Color', 'solarva'),
                            'type' => Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid1 .pxl-post--btn::after, 
                                {{WRAPPER}} .pxl-service-grid3 .pxl-post--inner:hover .pxl-post--btn' => 'background-color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_icon_hover_color',
                            'label' => esc_html__('Icon Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--inner:hover .pxl-post--btn .pxl-btn--icon' => 'color: {{VALUE}};',
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--inner:hover .pxl-post--btn svg path' => 'stroke: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_icon_hover_bg_color',
                            'label' => esc_html__('Icon Box Color', 'solarva'),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid .pxl-post--inner:hover .pxl-post--btn .pxl-btn--icon' => 'background-color: {{VALUE}};',
                            ],
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),
                        array(
                            'name' => 'btn_border_hover',
                            'label' => esc_html__('Border', 'solarva'),
                            'type' => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .pxl-service-grid1 .pxl-post--inner:hover .pxl-post--btn, {{WRAPPER}} .pxl-service-grid3 .pxl-post--inner:hover .pxl-post--btn',
                            'conditions' => [
                                'relation' => 'or',
                                'terms' => [
                                    [
                                        'terms' => [
                                            ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                            ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-1', 'service-3']],
                                        ],
                                    ],
                                ],
                            ],
                        ),

                    ),
                ),
                array(
                    'name' => 'tab_index_style',
                    'label' => esc_html__('Index', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'conditions' => [
                        'relation' => 'or',
                        'terms' => [
                            [
                                'terms' => [
                                    ['name' => 'post_type', 'operator' => '==', 'value' => 'service'],
                                    ['name' => 'layout_service', 'operator' => 'in', 'value' => ['service-5']],
                                ],
                            ],
                        ],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'index_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-service-grid5 .pxl-post--index' => 'color: {{VALUE}}',
                            ],
                        ),
                        array(
                            'name' => 'index_typography',
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group',
                            'selector' => '{{WRAPPER}} .pxl-service-grid5 .pxl-post--index',
                        ),
                    ),
                ),
                solarva_widget_animation_settings(),
            ),

        ),
    ),
    solarva_get_class_widget_path()
);