<?php if(get_sub_field('white_bg')) { 
$bg_class = 'white';
} else {
	$bg_class = '';
}
?> 


<div id="accordion-section" class="<?php echo $bg_class; ?>">
<div class="container">
	<div class="section">

 <?php if(get_sub_field('sec_title')) { ?>  
            <div class="title"><?php the_sub_field ('sec_title'); ?></div>
            <?php } ?>
            
<?php if(get_sub_field('before_acc')){?>
	<div class="entry padding"><?php the_field('before_sub_acc')?></div>
    <?php } ?>
    
 <div class="accordion-area">
	
    <?php  if( have_rows('sections') ): while ( have_rows('sections') ) : the_row(); ?>
    	<article class="acc-section beefup">
    <div class="beefup__head">
    	<div class="acc-title beefup_title"><?php the_sub_field ('sec_title'); ?></div>
         <i class="plus">+</i> 
   </div><!--beefup__head-->
   
         <div class="long-text beefup__body">
         <div class="entry"><?php the_sub_field ('sec_text'); ?></div><!--entry-->
         </div><!--long-text-->        
         
       
    </article><!--section-->
    
     <?php endwhile;
                endif;
				?>
    </div><!--acc-->
 	</div><!--section-->
   </div><!--container--> 
</div><!--section-->