/* ====================[ GLOBAL BODY SECTION ]======================== */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}
/* ====================[ END GLOBAL BODY SECTION ]==================== */


/* ====================[ HEADER BAR SECTION ]========================= */
.header-bar {
    width: 100%;
    /* The background below is a fallback only.
        The actual color and transparency are set by inline style from PHP. */
    background: rgba(30, 30, 30, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0; /* Adjusted to 0 for consistency */
    height: 50px; /* Increased for better vertical alignment with new font sizes */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
/* ====================[ END HEADER BAR SECTION ]===================== */


/* ====================[ HEADER BAR LEFT SECTION ]==================== */
.header-bar-left {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 24px;
}

.site-logo {
    height: 36px;
    margin-right: 16px;
}

.site-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}
/* ====================[ END HEADER BAR LEFT SECTION ]================ */


/* ====================[ NAV LINKS SECTION ]========================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 32px 0 0;
    height: 100%; /* CHANGED: Set to 100% of parent .header-bar */
    flex-direction: row;
    flex-wrap: nowrap;
}


.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
     padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%; /* Keep 100% of its parent (.nav-links) */
    position: relative; /* Needed for the underline */
    box-sizing: border-box; /* ADDED: Crucial for padding to be inside the height */
    /* Add this for smooth transform if you want to scale on hover later */
    /* transition: background 0.2s, color 0.2s, transform 0.18s; */
}

/* Animated underline effect */
.nav-links a::after {
    content: "";
    display: block;
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 8px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    /* You can adjust left/right/bottom for your preferred underline width/position */
}

.nav-links a:hover {
    color: black;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    transform: scaleX(1);
  
}


/* ====================[ END NAV LINKS SECTION ]====================== */
