{search modules="FaQ" search_method="post"}
{if $count > 0}
<section>
<div class="container">
	{foreach from=$cats item=node}
		{if $node.depth === 1}
		<div class="col-sm-4 learn-box">
{if $page_lang == 'en'}
			<h3 class="title">{$node.category_name}</h3>
			{FaQ allrow='articles' detailpage='faq' category=$node.category_name pagelimit="3"}
{else}
			<h3 class="title">{$node.titlu_ro}</h3>
			{FaQ allrow='articles' detailpage='intrebari-frecvente' category=$node.category_name pagelimit="3"}
{/if}
            {if !empty($articles)}
            <ul class="list-unstyled">
                {foreach from=$articles item=articl}
{if $page_lang == 'en'}
	                <li><a style="color: #47525d;" href="{$articl->url}">{$articl->title}</a></li>
{else}
	                <li><a style="color: #47525d;" href="{$articl->url}">{$articl->intrebare_ro}</a></li>
{/if}
                {/foreach}
{if $page_lang == 'en'}
                <li class="last"><a style="color: #47525d;text-decoration: underline;" href="{$node.url}">See all {$node.count}</a></li>
{else}
                <li class="last"><a style="color: #47525d;text-decoration: underline;" href="{$node.url}">Vezi toate {$node.count} articole</a></li>
{/if}
            </ul>
            {/if}
		</div>
		{/if}
	{/foreach}
</div>
</section>
{/if}