<div class="col-md-12 col-12 p-0 mt-3 about">
    <?php							
                       
						$where1 = "content_type='About Institution'";
						$this->db->where($where1);
					    $query2 = $this->main_model->homecontent();
                        foreach($query2 as $row2):
						?>
	<ul class="list-group p-0">
      <li class="list-group-item" id="header"><?php echo $row2['title']; ?></li>
      <div class="details2 p-2 border">
                    <p style="text-align:justify"><span style="color: rgb(33, 37, 41); font-family: &quot;Baloo Chettan 2&quot;, AdorshoLipi, cursive; font-size: 13px; ">
					
					<?php
$gts=$row2['details'];
echo $rest = substr($gts, 0, 1500);  // returns "abcde"

?>
					
					</span></p>
		<div class="mt-4">
          <a href="<?php echo site_url('home/aboutins'); ?>" class="float-right all">বিস্তারিত</a>
        </div>			
     </div>
    
	 
   </ul>
    <?php endforeach; ?> 
 </div>