<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">

<nav class="student-mobile-nav">
    <a href="My_Certificates.php" class="student-nav-item active"><i class="fas fa-medal"></i>BADGE</a>
    <a href="my_payments.php" class="student-nav-item"><i class="fas fa-money-bill-wave"></i> PAYMENTS</a>
    <a href="dashboard.php" class="student-nav-item student-center-icon"><i class="fas fa-qrcode"></i></a>
    <a href="activity.php" class="student-nav-item"><i class="fas fa-chart-line"></i> ACTIVITY</a>
    <a href="profile.php" class="student-nav-item"><i class="fas fa-user-circle"></i> PROFILE</a>
</nav>

<style>
/* Namespace: student-mobile-nav */
.student-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

.student-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgb(18,108,201);
    font-size: 0.7rem;
    padding: 6px 10px;
    flex: 1;
}

.student-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.student-nav-item.active {
    color: rgb(18,108,201);
}

.student-center-icon {
    font-size: 2rem;
    color: var(--student-text-color, #fff);
    background-color: rgb(18,108,201);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-12px);
}

/* Tablets */
@media (min-width: 768px) {
    .student-mobile-nav { max-width: 700px; padding: 14px 0; }
    .student-nav-item { font-size: 0.8rem; }
    .student-nav-item i { font-size: 1.4rem; }
    .student-center-icon { width: 60px; height: 60px; font-size: 2.2rem; }
}

/* Large screens / Desktop */
@media (min-width: 1024px) {
    .student-mobile-nav { max-width: 900px; justify-content: space-between; padding: 16px 30px; }
    .student-nav-item { font-size: 0.85rem; }
    .student-nav-item i { font-size: 1.5rem; }
    .student-center-icon { width: 64px; height: 64px; font-size: 2.4rem; transform: translateY(-14px); }
}
</style>
