<div class="innerBanner cmsImageWRapper blogBanner"> 
  <div class="blogbannerContent">
    <?php if($articles){ ?>
    <h1><?php echo $articles[0]['blog_title']; ?></h1>   
    <p><?php echo word_limiter($articles[0]['intro_text'],14); ?></p>        
    <a href="<?php echo base_url().'news-details/'.$articles[0]['blog_slug']; ?>" class="readMore"><?php echo getLang('Read_more');?></a>
    <?php } ?>
  </div>
  
  <div class="scrollable" style="background: url('<?php echo base_url().'assets/userfiles/img/media/'.$articles[0]['banner_image']; ?>') center center / cover no-repeat;"></div>
</div>


<section class="innerPage blogBoxWrapper">
  <div class="container narrow">
     <h4 class="title"><?php echo getLang('NEWS_FROM_THE_WORLD_OF_LIVED_FANTASIES');?></h4>

     <div class="BoxWrapper">
        <?php if($articles){ 
            foreach ($articles as $key => $article) {
        ?>
        <div class="boxCard">
           <?php if($article['banner_image']){ ?>
            <div class="boxImage">
              <img src="<?php echo base_url().'assets/userfiles/img/media/thumb_article_banner/'.$article['banner_image']; ?>" alt="">
            </div>
           <?php }else{ ?>
           <div class="boxImage">
            <img src="https://castleevents.com/assets/userfiles/img/content//88eb2279031ea43edbd241762c1eaa36.png" alt="">
           </div>
           <?php } ?>
           <div class="boxContent">
             <span class="date"><?php echo date('d.m.y',strtotime($article['create_date'])); ?></span>

             <h3 class="boxTitle"><?php echo $article['blog_title']; ?></h3>
             <div class="desc">
                 <p><?php echo $article['intro_text']; ?></p>  
             </div>
             <a href="<?php echo base_url().'news-details/'.$article['blog_slug']; ?>" class="readMore"><?php echo getLang('Read_more');?></a>
           </div>
        </div>
        <?php } } ?>
     </div>
  </div>
    
</section>
         