<?php if ('layout_four' == $settings['layout_type']) : ?>
    <!--why-choose-two -->
    <section class="why-choose-four why-choose-four--home-five">
        <div class="why-choose-four__shape-one" style="background-image: url(<?php echo esc_url($settings['layout_three_bg_shape_one']['url']); ?>);"></div><!-- /.why-choose-four__shape -->
        <div class="why-choose-four__shape-two" style="background-image: url(<?php echo esc_url($settings['layout_three_bg_shape_two']['url']); ?>);"></div><!-- /.why-choose-four__shape -->
        <div class="container">
            <div class="row">
                <div class="col-xl-6 wow fadeInUp" data-wow-delay="200ms">
                    <div class="ostech-stretch-element-inside-column">
                        <div class="why-choose-four__image">
                            <?php ostech_elementor_rendered_image($settings, 'layout_three_bg_image_one'); ?>
                            <?php ostech_elementor_rendered_image($settings, 'layout_three_bg_image_two'); ?>
                        </div>
                    </div>
                </div>
                <div class="col-xl-6 wow fadeInUp" data-wow-delay="300ms">
                    <div class="why-choose-four__content">
                        <div class="sec-title-two">

                            <<?php echo esc_attr($settings['section_sub_title_tag_layout_three']); ?> class="sec-title-two__tagline">
                                <span class="sec-title-two__tagline__icon">
                                    <?php \Elementor\Icons_Manager::render_icon($settings['layout_three_icon'], ['aria-hidden' => 'true'], 'i'); ?>
                                </span>
                                <?php echo wp_kses($settings['layout_three_sec_sub_title'], 'ostech_allowed_tags'); ?>
                            </<?php echo esc_attr($settings['section_sub_title_tag_layout_three']); ?>><!-- /.sec-title-two__tagline -->

                            <?php
                            if (!empty($settings['layout_three_sec_title'])) :
                                $this->add_inline_editing_attributes('layout_three_sec_title', 'none');
                                ostech_elementor_rendered_content($this, 'layout_three_sec_title', 'sec-title-two__title', $settings['section_title_tag_layout_three']);
                            endif;
                            ?>

                        </div><!-- /.sec-title-two -->
                        <?php
                        if (!empty($settings['layout_three_highlighted_sec_title'])) :
                            $this->add_inline_editing_attributes('layout_three_highlighted_sec_title', 'none');
                            ostech_elementor_rendered_content($this, 'layout_three_highlighted_sec_title', 'why-choose-four__content__title', $settings['section_highlighted_title_tag_layout_three']);
                        endif;

                        if (!empty($settings['layout_three_sec_summary'])) :
                            $this->add_inline_editing_attributes('layout_three_sec_summary', 'none');
                            ostech_elementor_rendered_content($this, 'layout_three_sec_summary', 'why-choose-four__content__text', 'p');
                        endif;
                        ?>

                        <ul class="list-unstyled why-choose-four__list ml-0">
                            <?php
                            foreach ($settings['choose_list_three'] as $index => $item) :
                            ?>
                                <li class="why-choose-four__list__item">
                                    <div class="why-choose-four__list__icon">
                                        <?php \Elementor\Icons_Manager::render_icon($item['icon'], ['aria-hidden' => 'true'], 'span'); ?>
                                    </div><!-- /.why-choose-four__list__icon -->
                                    <<?php echo esc_attr($item['title_tag_layout_three']); ?> class="why-choose-four__list__title">
                                        <a href="<?php echo esc_url($item['url']['url']); ?>"><?php echo wp_kses($item['title'], 'ostech_allowed_tags'); ?></a>
                                    </<?php echo esc_attr($item['title_tag_layout_three']); ?>><!-- /.why-choose-four__list__title -->
                                    <p class="why-choose-four__list__text">
                                        <?php echo wp_kses($item['subtitle'], 'ostech_allowed_tags'); ?>
                                    </p><!-- /.why-choose-four__list__text -->
                                </li><!-- /.why-choose-four__list__item -->
                            <?php endforeach; ?>
                        </ul><!-- /.list-unstyled why-choose-four__list -->
                    </div>
                </div>
            </div>
        </div><!-- /.container -->
    </section><!-- /.why-choose-four -->
    <!-- why-choose-two -->
<?php endif; ?>