<style media="screen">
.mahamudfutureit_header_5 .featured_menu ul{
    margin:0;
    padding:0;
    list-style-type:none;
    display:flex;
    justify-content:center;
}
.mahamudfutureit_header_5 .featured_menu ul li{
    padding:0 11px;
}
.mahamudfutureit_header_5 .featured_menu ul li a{
    font-size:17px;
    font-weight:600;
}
.mahamudfutureit_header_5 .featured_menu ul li a i{
    padding-right:6px;
}
.mahamudfutureit_header_5 .featured_menu ul li a:hover{
    color: var(--tt_primary_color);
}
.mahamudfutureit_header_5 .update_news_icon{
    position:relative;
}
.mahamudfutureit_header_5 .update_news_icon .update_dropdown {
    position: absolute;
    top: 30px;
    right: 8px;
    background: white;
    width: 300px;
    text-align: left;
    z-index: 9999;
    display: none;
}
.mahamudfutureit_header_5 .update_news_icon:hover .update_dropdown{
    display:block;
}
.mahamudfutureit_header_5 .extra-icon a.asodifnj{
    display:inline-block;
    height:30px;
    width:30px;
    background:#e5e6eb;
    font-size:17px;
    text-align:center;
    line-height:30px;
    border-radius:50%;
}
.mahamudfutureit_header_5 .header_featured_btn {
    font-size: 18px;
    font-weight: bold;
    padding-right: 10px;
    border-right: 1px solid #a0a0a0;
}
.mahamudfutureit_header_5 .header_profile_icon,
.mahamudfutureit_header_5 .header_navmanu_icon,
.mahamudfutureit_header_5 .header_theme_icon,
.mahamudfutureit_header_5 .header_search_icon{
  font-size: 17px;
  padding: 0 5px;
}
.mahamudfutureit_header_5 .tt_navbar {
    box-shadow: 0 3px 5px #eee;
    border-top: 1px solid #ccc;
    background: white;
}

/* ডেস্কটপ হেডারের জন্য প্রোফাইল স্টাইল - শুধু ছবি */
.mahamudfutureit_header_5 .profile-img {
    width: 30px;
    height: 30px;
    border-radius: 8px !important;
    object-fit: cover;
    border: 1px solid transparent;
    background: linear-gradient(45deg, #8B0000, #FF4444, #8B0000);
    background-size: 200% 200%;
    animation: borderMagic 3s ease infinite;
    padding: 1px;
    transition: all 0.3s ease;
}

.mahamudfutureit_header_5 .profile-img:hover {
    transform: scale(1.05);
    border-radius: 10px !important;
}

@keyframes borderMagic {
    0% {
        background-position: 0% 50%;
        border-color: #8B0000;
    }
    50% {
        background-position: 100% 50%;
        border-color: #FF4444;
    }
    100% {
        background-position: 0% 50%;
        border-color: #8B0000;
    }
}
</style>
<header class="mahamudfutureit_header_5 d-none d-lg-block mahamudfutureit_header ">
    <?php include 'includes/template-part/header/headerads.php'; ?>
    <div class="tt_mainbar py-3  ">
      <div class="container">
        <div class="row align-items-center">
          <div class="col-3">
              <?php include 'includes/template-part/header/prt-logo.php' ?>
          </div>
          <div class="col-7">
              <div class="featured_menu">
                  <ul>
                      <?php
                        if ($advancenews['H_Featured_Button_Text'] !='') {
                          ?>
                          <li>
                              <a href="<?php echo $advancenews['H_Featured_Button_Link'] ?>"><i class="bi bi-newspaper"></i> <?php echo $advancenews['H_Featured_Button_Text'] ?></a>
                          </li>
                          <?php
                        }
                        if ($advancenews['H_Forum_Button_Text'] !='') {
                          ?>
                          <li>
                              <a href="<?php echo $advancenews['H_Forum_Button_Link'] ?>"><i class="bi bi-newspaper"></i> <?php echo $advancenews['H_Forum_Button_Text'] ?></a>
                          </li>
                          <?php
                        }
                      ?>
                      <li>
                          <a href="<?php echo $site_domain ?>bangla-converter/"> <i class="bi bi-translate"></i> বাংলা কনভার্টার </a>
                      </li>
                      <li>
                          <a href="<?php echo $site_domain ?>archive/"><i class="bi bi-archive"></i>  আর্কাইভ</a>
                      </li>
                      <li>
                          <a href="<?php echo $site_domain ?>video/"><i class="bi bi-camera-video"></i>  ভিডিও </a>
                      </li>
                  </ul>
              </div>
          </div>
          <div class="col-2">
              <div class="text-end extra-icon">
                  <a href="<?php echo $site_domain ?>search/" class="me-2 asodifnj"><i class="bi bi-search"></i></a>
                  <div class="d-inline-block update_news_icon">
                      <a href="javascript:void(0);" class="me-2 asodifnj"><i class="bi bi-bell"></i></a>
                      <div class="update_dropdown shadow rounded-3 p-3 border-bottom">
                            <?php
                            $recent_article = getRecentArticles(5);
                            $rcnt_count = 1;
                            foreach ($recent_article as $the_recent) {
                              ?>
                              <a href="<?php echo articleLink($the_recent['PostId']) ?>" class="d-block">
                                <div>
                                    <?php echo $the_recent['PostTitle'] ?>
                                    <small class="text-end d-block"><?php echo articleTime($the_recent['PostDatePublic']); ?> </small>
                                </div>
                              </a>

                              <?php
                              if($rcnt_count != '5'){
                                  ?>
                                  <hr class="my-2">
                                  <?php
                              }
                              $rcnt_count++;
                            }
                             ?>
                      </div>
                  </div>
                  <?php
                  // লগইন চেক করা
                  if ($advancenews['ttWriterAccountSystem'] == 'on') {
                      if (isset($writer_login) && $writer_login == true) {
                          ?>
                          <a href="<?php echo $site_domain;?>account/" class="asodifnj ms-2">
                              <img src="<?php echo userAvater($the_writer_id); ?>" class="profile-img" onerror="this.src='<?php echo $site_domain;?>assets/image/default-avatar.png'">
                          </a>
                          <?php
                      } else {
                          ?>
                          <a href="<?php echo $site_domain;?>login/" class="asodifnj"><i class="bi bi-person-fill"></i></a>
                          <?php
                      }
                  } else {
                      ?>
                      <a href="<?php echo $site_domain;?>login/" class="asodifnj"><i class="bi bi-person-fill"></i></a>
                      <?php
                  }
                  ?>
              </div>
          </div>
        </div>
      </div>
    </div>
    <div class="tt_navbar" id="pcNavbar">
      <div class="container-fluid">
        <div class="row align-items-center">
          <div class="col-12 d-flex justify-content-center align-items-center">
              <?php include 'includes/template-part/header/prt-nav-menu.php' ?>
              <?php include 'includes/template-part/header/prt-menu-icon.php'?>
          </div>
        </div>
      </div>
    </div>
</header>