<?php
extract(shortcode_atts(array(
    'hd_subtitle' => '',       
    'hd_title' => '',       
    'hd_description' => '',       
    'hd_btn_text' => '',       
    'hd_btn_link' => '',       
    'sub_color' => '',       
    'text_color' => '',       
    'desc_color' => '',       
    'custom_class' => '',       
), $atts));
?>
<div class="cms-heading-wrapper heading-style2 des-style <?php echo esc_attr($custom_class); ?>">
    <div class="row">
        <div class="cms-heading-inner col-xs-12 col-sm-12 col-md-6 col-lg-6">
            <div class="cms-heading-content">
                <?php if (!empty($hd_subtitle) && $hd_subtitle) { ?>
                    <span class="subtitle" style="color:<?php echo esc_attr($sub_color); ?>;"><?php echo esc_attr($hd_subtitle); ?></span>
                <?php }?> 
                <h3 class="title box" style="color:<?php echo esc_attr($text_color); ?>;"><?php echo esc_attr($hd_title); ?><span>.</span></h3>
            </div>
        </div>
        <div class="cms-heading-right col-xs-12 col-sm-12 col-md-6 col-lg-6">
            <?php if (!empty($hd_description)) { ?>
                <div class="description" style="color:<?php echo esc_attr($desc_color); ?>;"> <?php echo apply_filters('the_content',$atts['hd_description']);?></div>
            <?php } ?>
            <?php if(!empty($hd_btn_text) && $hd_btn_text) { ?>
                <div class="cms-heading-button">
                    <a href="<?php echo esc_url($atts['hd_btn_link']);?>" class="btn btn-md">
                        <?php echo esc_attr($hd_btn_text); ?>
                    </a>
                </div>
            <?php } ?>
        </div>
    </div>
</div>