/* Ravielson Top Bar Styles */
#ravielson-top-bar {
    background-color: #BFAE90;
    color: #fff;
    width: 100%;
    padding: 10px 20px;
    z-index: 10001; /* Higher than theme fixed header */
    position: absolute; 
    top: 0;
    left: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: none; /* Removed transition to avoid lag during scroll sync */
}

/* Offset for Admin Bar */
body.admin-bar #ravielson-top-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #ravielson-top-bar {
        top: 46px;
    }
}


#ravielson-top-bar .rtb-container {
    display: grid;
    /* 3 Columns: 1fr | Auto | 1fr - This ensures the 'rtb-content' in the middle 
       is perfectly centered regardless of the content in the wings. */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#ravielson-top-bar .rtb-content-left {
    font-size: 14px;
    line-height: 1.5;
    justify-self: start;
}

#ravielson-top-bar .rtb-content {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    padding: 0 20px;
}

#ravielson-top-bar .rtb-socials {
    display: flex;
    gap: 15px;
    justify-self: end; /* Push to far right */
}

#ravielson-top-bar .rtb-social-link {
    display: flex; /* Remove line-height issues with images */
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
}

#ravielson-top-bar .rtb-social-link:hover {
    opacity: 0.8;
}

#ravielson-top-bar .rtb-social-icon {
    max-height: 20px;
    width: auto;
    display: block;
}

/* Mobile check */
@media (max-width: 768px) {
    #ravielson-top-bar .rtb-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    #ravielson-top-bar .rtb-socials {
        justify-self: center;
    }
}
