/* --- DESKTOP NAV STYLES (Default Flexbox) --- */

/* Main Navigation Container */
.main-nav {
    background-color: #000; /* background */
    position: relative; /* Needed for absolute positioning of the dropdown menu */
    /* height: 50px; /* Fixed height for the header bar */
    width: 100%;
    box-sizing: border-box;
}

/* 1. Resetting the List & Activating Flexbox */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Activates Flexbox for horizontal layout */
    justify-content: space-around; /* Distributes items evenly */
    align-items: center; /* Vertically centers the items */
    height: 46px;
    padding-top: 0px;
}

/* Styling the List Items & Links */
.main-nav li a {
    display: block; /* Makes the entire area clickable */
    padding: 5px 5px;
    text-decoration: none;
    color: b91f3c;
    transition: background-color 0.3s;
}

/* Regular Effect */
.main-nav li a:link, .main-nav li a:visited  {
    color: #FFF;
}

/* Hover Effect */
.main-nav li a:hover, .main-nav li a:active  {
    background-color: #ffd700;
    color: #000;
}

/* --- HAMBURGER MENU ICON (Hidden on Desktop) --- */
.nav-toggle, nav-toggle2 {
    display: none; /* Hidden by default on desktop */
    position: absolute; /* Position it correctly in the bar */
    right: 15px;
    top: 0;
    height: 100%; /* Make it vertically centered */
    background: none;
    border: none;
    font-size: 24px;
    color: b91f3c;
    cursor: pointer;
    z-index: 100; /* Ensure it is above other elements */
    line-height: 50px; /* Vertically center the icon text */
}

/* -------------------------------------
   RESPONSIVE STYLES (MAX-WIDTH: 600px)
   ------------------------------------- */

@media (max-width: 600px) {

    /* Show the Hamburger Icon */
    .nav-toggle {
        display: block;
    }

    .nav-toggle2 {
        display: block;
    }

    /* Hide the Desktop Menu by default */
    .main-nav ul {
        display: none;
        flex-direction: column; /* Stack items vertically when displayed */
        background-color: #000; /* background */
        height: auto; /* Allow the menu to expand */
        position: absolute;
        width: 100%;
        /* top: 50px; /* Position it below the main nav bar */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    /* When the 'open' class is added (via JavaScript), display the menu */
    .main-nav.open ul {
        display: flex; /* Override 'display: none' and show the vertical menu */
    }

    /* Adjust list items for vertical stacking */
    .main-nav li {
        width: 100%;
    }

    /* **UPDATED STYLES FOR FULL-WIDTH CLICKABLE BLOCK** */
    .main-nav li a {
        padding: 12px 10px; /* Increased vertical padding for a larger touch target */
        text-align: left;
        color: #FFF; /* Changed to white for better contrast on black background */
        width: 100%; /* **CRITICAL: Makes the link fill the full width of the list item** */
        box-sizing: border-box; /* Ensures padding/border are included in the 100% width */
    }
    .main-nav li a:hover, .main-nav li a:active {
        color: #000;
        background-color: #ffd700;
    }

    /* Remove border from the last item */
    .main-nav li:last-child {
        border-bottom: none;
    }
}

/* ## 🎨 Custom List Styles */

/* 1. Remove the default dot marker and padding from the list */
.main-nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* 2. Style the list item to use flex for alignment */
.main-nav ul li {
    /* Makes the icon and the text sit neatly side-by-side and allows for easy centering */
    display: flex;
    align-items: center; /* Vertically centers the icon and the link text */
    margin-bottom: 0px; /* Removed margin-bottom to make blocks continuous on mobile */
    border-bottom: 1px solid #1a1a1a; /* Added a subtle separator line */
}

/* 3. Style the anchor tag (link) */
/* **Note: This desktop style may conflict with mobile. Using the mobile media query is better.** */
/* .main-nav ul li a {
    text-decoration: none;
    color: #333;
    display: block;
} */

/* 4. Use ::before for the custom icon */
.main-nav ul li::before {
    content: "";
    width: 18px; /* Icon size */
    height: 18px; /* Icon size */
    background-image: url('/images/nav_star_web.png');
    background-size: contain; /* Scales the image to fit the container */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center; /* Ensures the image is centered in the 16x16 box */
    margin-right: 10px; /* Space between icon and text */
    margin-left: 10px; /* Added left margin for consistency with padding */
}