<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title><?php echo isset($pageTitle) ? $pageTitle : "MENTOR"; ?></title>
  <meta name="description" content="">
  <meta name="keywords" content="">

  <!-- Favicons -->
  <link href="/assets/img/PSNR.png" rel="icon">
  <link href="/assets/img/PSNR.png" rel="apple-touch-icon">

  <!-- Fonts -->
  <link href="https://fonts.googleapis.com" rel="preconnect">
  <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">

  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
  
  <!-- Vendor CSS Files -->
  <link href="/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="/assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="/assets/vendor/aos/aos.css" rel="stylesheet">
  <link href="/assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
  <link href="/assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">

  <!-- Main CSS File -->
  <link href="/assets/css/main.css" rel="stylesheet">

<body class="index-page">
  <div class="top-bar">
      <ul class="social_icons">
        <li class="email">
            <a href="mailto:info@psnmentor.com" style="color: #767676; font-size: small;"><i class="bi bi-envelope"></i> info@psnmentor.com</a>
        </li>
        <li class="phone">
            <a href="tel:+919946704872" style="color: #767676; font-size: small;"><i class="bi bi-telephone"></i></i> +91 9895980041</a>
        </li>
      </ul>
      <ul class="social_icons">
        <li><a href="https://www.facebook.com/PSNmentor/" target="_blank"><i class="bi bi-facebook" style="color: #8b8b8b;"></i></a></li>
        <li><a href="https://www.instagram.com/psn_mentorandcareer/" target="_blank"><i class="bi bi-instagram" style="color: #8b8b8b;"></i></a></li>
        <li><a href="https://www.linkedin.com/company/psnmcstaffing/" target="_blank"><i class="bi bi-linkedin" style="color: #8b8b8b;"></i></a></li>
        <li><a href="https://www.youtube.com/@psn_mentorandcareer" target="_blank"><i class="bi bi-youtube" style="color: #8b8b8b;"></i></a></li>
      </ul>
  </div>
  <header id="header" class="header d-flex align-items-center sticky-top">
    
    <div class="container-fluid container-xl position-relative d-flex align-items-center">

      <a href="/" class="logo align-items-center me-auto">
        <img src="/assets/img/PSNR.png" alt="PSNMentor brand strategy workshop">
        <p class="sitename">PSN MENTOR AND CAREER<br> PRIVATE LIMITED</p>
      </a>

      <nav id="navmenu" class="navmenu">
        <ul>
          <li><a href="/" class="<?php echo ($activeMenu == 'index') ? 'active' : ''; ?>">HOME<br></a></li>
          <li><a href="/about" class="<?php echo ($activeMenu == 'about') ? 'active' : ''; ?>">ABOUT</a></li>
          <li class="dropdown"><a href="/courses"  class="<?php echo ($activeMenu == 'courses') ? 'active' : ''; ?>"><span>COURSES</span> <i class="bi bi-chevron-down toggle-dropdown"></i></a>
            <ul>
              <?php
              include "admin/opendb.php";

              $sql = "SELECT id, title, slug FROM course ORDER BY title ASC";
              $result = $conn->query($sql);

              if ($result->num_rows > 0) {
                while ($row = $result->fetch_assoc()) {
                  echo '<li><a href="/courses/' . $row['slug'] . '">' . $row['title'] . '</a></li>';
                }
              } else {
                echo '<li><a href="#">No Courses Available</a></li>';
              }
              ?>
              
            </ul>
          </li>
          <li><a href="/training-and-placement" class="<?php echo ($activeMenu == 'training') ? 'active' : ''; ?>">TRAINING & PLACEMENT</a></li>
          <li><a href="/hr-solutions" class="<?php echo ($activeMenu == 'hr_solutions') ? 'active' : ''; ?>">HR SOLUTIONS</a></li>
          <li><a href="/gallery" class="<?php echo ($activeMenu == 'gallery') ? 'active' : ''; ?>">GALLERY</a></li>
        </ul>
        <i class="mobile-nav-toggle d-xl-none bi bi-list"></i>
      </nav>

      <a class="btn-getstarted" href="contact">CONTACT US</a>

    </div>
  </header>