/* linksbar.css */

/* Importing Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind+Vadodara:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Palanquin+Dark:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

/* Hide desktop menu on mobile */
@media only screen and (max-width: 768px) {
    .desktop-menu {
        display: none; /* Hide desktop menu on mobile */
    }
}

/* Ensure the nav bar itself has a consistent height */
nav {
    background-color: rgba(14, 15, 16, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 82vw; /* Consistent width with content */
    max-width: 1280px;
    box-sizing: border-box;
    margin: 0 auto;
    border: 1px solid #444;
    position: relative;
    height: 50px;
}

/* Adding a dark grey-blue line below the linksbar */
nav::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #3c5062;
    position: absolute;
    bottom: -3px;
    left: 0;
}

/* Adding a dark grey-blue line above the linksbar */
nav::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #3c5062;
    position: absolute;
    top: -1px;
    left: 0;
}

/* Left-aligned links */
ul.left-links, ul.right-link {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
}

ul.left-links {
    margin-left: 16px;
    gap: 8px;
}

ul.right-link {
    margin-right: 16px;
    justify-content: flex-end;
}

/* Common link styles */
nav ul li a {
    display: inline-block;
    padding: 5px 10px;
    color: #ffbe55;
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Keep bold for main links */
    transition: background-color 0.3s, color 0.3s;
    border-radius: 3px;
}

/* Different font families for left and right links */
nav ul.left-links li a {
    font-family: "Hind Vadodara", sans-serif;
}

/* Hover effect for all links */
nav ul li a:hover {
    background-color: rgba(173, 216, 230, 0.25);
    color: #ffbe55;
    text-decoration: none; /* Ensure underline doesn't appear on hover */
}

/* Submenu styles */
nav ul li {
    position: relative; /* Position relative for submenu */
}

.submenu {
    display: none;
    position: absolute;
    background-color: rgba(14, 15, 16, 0.9);
    padding: 10px;
    border: 1px solid #333;
    width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    top: 100%;
    left: 0;
}

/* Submenu links */
.submenu a {
    display: block;
    color: #ffbe55;
    padding: 5px;
    font-family: "Hind Vadodara", sans-serif;
    font-size: 14px;
    text-decoration: none; /* Remove underline */
    font-weight: normal; /* Remove bold from submenu links */
    border-bottom: 1px solid #333;
    transition: background-color 0.3s, color 0.3s;
}

.submenu a:first-child {
    border-top: 1px solid #333;
}

/* Submenu hover effect */
.submenu a:hover {
    background-color: rgba(173, 216, 230, 0.25);
    color: #ffbe55;
}

/* Show submenu on hover */
nav ul li:hover .submenu {
    display: block;
}

/* Additional styles for submenu text */
.submenu-text {
    color: #6c9dc4;
    font-size: 14px;
    margin: 0;
    text-align: center;
    padding: 5px 10px;
    font-weight: bold;
}
