<header class="header-wrap header-2">
        <div class="top-header d-none d-md-block">
            <div class="container-flud">
                <div class="row">
                    <div class="col-md-7 pr-md-0 col-12">
                        <div class="header-cta">
                            <ul>
                                <li>
                                  <a href="mailto:<?=$iletisim['email1']?>"><i class="fal fa-envelope"></i><?=$iletisim['email1']?></a>
                                </li>
                                <li>
                                  <a href="tel:<?=$iletisim['telefon1']?>"><i class="fal fa-phone"></i> <?=$iletisim['telefon1']?></a>
                                </li>
                              </ul>
                        </div>
                    </div>
                    <div class="col-md-5 col-12">
                        <div class="header-right-cta d-flex justify-content-end">
                            <div class="social-profile mr-30">
                                <a href="<?=$sosyal['facebook']?>" target="_blank"><i class="fab fa-facebook-f"></i></a>
                                <a href="<?=$sosyal['twitter']?>" target="_blank"><i class="fab fa-twitter"></i></a>
                                <a href="<?=$sosyal['instagram']?>" target="_blank"><i class="fab fa-instagram"></i></a>
                                <a  href="<?=$sosyal['youtube']?>" target="_blank"><i class="fab fa-youtube"></i></a>
                            </div>
                            |
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="main-header-wraper">
            <div class="container-fluid">
                <div class="row align-items-center justify-content-between">
                    <div class="header-logo">
                        <div class="logo">
                            <a href="./">
                                <img src="resimler/<?=$ayar['logo']?>" alt="<?=$ayar['site_title']?>" width="200">
                            </a>
                        </div>
                    </div>
                    <div class="header-menu d-none d-xl-block">
                        <div class="main-menu">
                            <ul>
                                
                                <li><a href="./">Anasayfa</a> </li>
                                
                                <li><a href="#">Kurumsal <i class="fas fa-angle-down"></i></a>
                                    <ul class="sub-menu">
                                    <?php
                                    $headersayfacek=$db->query("select * from sayfalar where durum='on' order by sira asc")->fetchAll(PDO::FETCH_ASSOC);
									foreach($headersayfacek as $headersayfa){
									?>
                                        <li><a href="<?=$headersayfa['seo']?>"><?=$headersayfa['adi']?></a></li>
                                      <?php }?> 
                                    </ul>
                                </li>
                                
                                   <li><a href="#">Hizmetler <i class="fas fa-angle-down"></i></a>
                                    <ul class="sub-menu">
                                    <?php
                                    $headersayfacek=$db->query("select * from hizmetler where durum='on' order by sira asc")->fetchAll(PDO::FETCH_ASSOC);
									foreach($headersayfacek as $headersayfa){
									?>
                                        <li><a href="<?=$headersayfa['seo']?>"><?=$headersayfa['adi']?></a></li>
                                      <?php }?> 
                                       <li><a href="hizmetler">Tüm Hizmetler</a></li>
                                    </ul>
                                </li>
                           
                                <li><a href="ekibimiz">Ekibimiz</a></li>
                                <li><a href="blog">Blog</a></li>
                                <li><a href="iletisim">İletişim</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="header-right d-flex align-items-center">
                        <div class="header-btn-cta">
                            <a href="iletisim" class="theme-btn">Bizimle İletişime Geçin <i class="fas fa-arrow-right"></i></a>
                        </div>
                        <div class="mobile-nav-bar d-block ml-3 ml-sm-5 d-xl-none">
                            <div class="mobile-nav-wrap">                    
                                <div id="hamburger">
                                    <i class="fal fa-bars"></i>
                                </div>
                              
                                <div class="mobile-nav">
                                    <button type="button" class="close-nav">
                                        <i class="fal fa-times-circle"></i>
                                    </button>
                                    <nav class="sidebar-nav">
                                        <ul class="metismenu" id="mobile-menu">
                                           
                                             <li><a href="./">Anasayfa</a></li>
                                            <li><a class="has-arrow" href="#">Kurumsal</a>
                                                <ul class="sub-menu">
                                                     <?php
                                    $headersayfacek=$db->query("select * from sayfalar where durum='on' order by sira asc")->fetchAll(PDO::FETCH_ASSOC);
									foreach($headersayfacek as $headersayfa){
									?>
                                        <li><a href="<?=$headersayfa['seo']?>"><?=$headersayfa['adi']?></a></li>
                                      <?php }?>
                                                </ul>
                                            </li>
                                          
                                        
                                            <li>
                                                <a class="has-arrow" href="#">Hizmetler</a>
                                                <ul class="sub-menu">
                                                      <?php
                                    $headersayfacek=$db->query("select * from hizmetler where durum='on' order by sira asc")->fetchAll(PDO::FETCH_ASSOC);
									foreach($headersayfacek as $headersayfa){
									?>
                                        <li><a href="<?=$headersayfa['seo']?>"><?=$headersayfa['adi']?></a></li>
                                      <?php }?> 
                                       <li><a href="hizmetler">Tüm Hizmetler</a></li>
                                                   
                                                </ul>
                                            </li>
                                                <li><a href="ekibimiz">Ekibimiz</a></li>
                                            <li><a href="blog">Blog</a></li>
                                            <li><a href="iletisim">İletişim</a></li>
                                        </ul>
                                    </nav>
        
                                    <div class="action-bar">
                                        <a href="mailto:<?=$iletisim['email1']?>"><i class="fal fa-envelope-open-text"></i><?=$iletisim['email1']?></a>
                                        <a href="tel:<?=$iletisim['telefon1']?>"><i class="fal fa-phone"></i><?=$iletisim['telefon1']?></a>
                                      
                                    </div>
                                </div>                            
                            </div>
                            <div class="overlay"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </header>