/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa; 
}

/* ===== Shared Navbar Styles ===== */
.navbar {
    background-color: #fbc100;
    padding: 10px 5%;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-img-sm {
    display: none;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 0px 0;
    position: relative;
    cursor: pointer;
}
/* .nav-links :active{
    color: red;
} */

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ===== Shared Footer Styles ===== */
.footer {
    background-color: #06173a;
    color: white;
    padding: 30px 5%;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column h3 {
    color: #fbc100;
    margin-bottom: 15px;
}

.footer-hr {
    border: none;
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin: 10px 0 15px;
    width: 50px;
}

.footer-column p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.footer-column i {
    color: #fbc100;
    margin-right: 8px;
    width: 20px;
}

/* ===== Shared Responsive Styles ===== */
@media (max-width: 768px) {
    .logo-img {
        display: none;
    }
    
    .logo-img-sm {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
   .nav-links {
    position: fixed;
    top: 61px;
    right: -100%; /* Start off-screen to the right */
    width: 65%; /* Adjust width as needed */
    max-width: 300px; /* Optional max-width */
    height: auto;/* Full height minus header */
    background: #fbc100;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    padding: 20px;
    box-shadow: -5px 0 10px rgba(0,0,0,0.1); /* Shadow on the left side */
    transition: all 0.3s ease;
    z-index: 999;
    overflow-y: auto; /* Enable scrolling if needed */
}

.nav-links.show {
    right: 0; /* Slide in to show from right */
    transform: translateX(0); /* Reset any transform */
}

}

@media (max-width: 480px) {
    .navbar, .footer {
        padding: 10px 15px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10000;
    animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
    display: none;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
/* Bottom navitem start */
 .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-top: 1px solid #e0e0e0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: none;
        }

        .bottom-nav-container {
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            background-color: #eff2f7;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            flex: 1;
            padding: 5px 0;
        }

        .nav-item.active {
            color: #fbc100;
        }

        .nav-item i {
            font-size: 1.4rem;
            margin-bottom: 4px;
        }

        .nav-item span {
            display: block;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .bottom-nav {
                display: block;
            }
            .main-content {
                padding-bottom: 70px;
            }
        }
        /* Bottom navitem end */

        .error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}


