/* Ravielson Top Bar Styles */
#ravielson-top-bar {
    background-color: #1c1c1c;
    color: #ffffff;
    width: 100%;
    padding: 8px 20px;
    z-index: 9999;
    position: relative; 
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#ravielson-top-bar .rtb-container {
    display: grid;
    /* 3 Columns: Left Section | Center Announcement | Right Section */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Section: Socials & Contacts */
#ravielson-top-bar .rtb-left-section {
    display: flex;
    gap: 15px;
    justify-self: start;
    align-items: center;
}

#ravielson-top-bar .rtb-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    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: 14px;
    width: auto;
    display: block;
}

#ravielson-top-bar .rtb-social-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

/* Center Section: Announcement Text */
#ravielson-top-bar .rtb-center-section {
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right Section: Custom Links & Dropdowns */
#ravielson-top-bar .rtb-right-section {
    display: flex;
    gap: 20px;
    justify-self: end;
    align-items: center;
}

#ravielson-top-bar .rtb-custom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

#ravielson-top-bar .rtb-custom-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.3s;
}

#ravielson-top-bar .rtb-custom-link:hover {
    opacity: 0.8;
}

/* Dropdowns */
#ravielson-top-bar .rtb-dropdown {
    position: relative;
    display: inline-block;
}

#ravielson-top-bar .rtb-dropdown-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

#ravielson-top-bar .rtb-dropdown-btn strong.rtb-current-val {
    font-weight: 700;
}

#ravielson-top-bar .rtb-caret {
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

#ravielson-top-bar .rtb-dropdown.rtb-active .rtb-caret {
    transform: rotate(180deg);
}

#ravielson-top-bar .rtb-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #1c1c1c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-radius: 4px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 99999;
    min-width: 90px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease-in-out;
}

#ravielson-top-bar .rtb-dropdown.rtb-active .rtb-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#ravielson-top-bar .rtb-dropdown-menu li {
    margin: 0;
    padding: 0;
}

#ravielson-top-bar .rtb-dropdown-menu li a {
    display: block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease-in-out;
    color: inherit;
}

#ravielson-top-bar .rtb-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile check */
@media (max-width: 768px) {
    #ravielson-top-bar .rtb-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 5px 0;
    }
    
    #ravielson-top-bar .rtb-left-section {
        justify-content: center;
        justify-self: center;
    }

    #ravielson-top-bar .rtb-center-section {
        justify-self: center;
    }
    
    #ravielson-top-bar .rtb-right-section {
        justify-content: center;
        justify-self: center;
        gap: 15px;
    }
}
