/* =========================================================
   1. THE BLACK PILL (Targeting your exact UL)
   ========================================================= */
ul.rbk-main-nav {
  background-color: #080808 !important;
  border-radius: 50px !important;
  padding: 0.5rem 3rem !important;
  max-width: 950px;
  width: 100%;
  
  /* This centers the pill horizontally on the page */
  margin: 1.5rem auto !important; 
  
  /* Flex settings to center the links inside the pill */
  display: flex !important;
  justify-content: start !important;
  align-items: start !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   2. PILL LINK TYPOGRAPHY & GOLD HOVER
   ========================================================= */
ul.rbk-main-nav .nav-link {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.2rem !important;
  transition: color 0.2s ease;
  background: transparent !important;
}

ul.rbk-main-nav .nav-link:hover,
ul.rbk-main-nav .nav-link.active,
ul.rbk-main-nav .nav-link.is-active {
  color: #D4AF37 !important;
}

/* =========================================================
   3. PURE CSS HOVER DROPDOWN (DESKTOP)
   ========================================================= */
@media (min-width: 992px) {
  
  /* Force the dropdown to show instantly when hovering over the LI */
  ul.rbk-main-nav .dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    margin-top: 15px !important; /* Pushes dropdown slightly below the pill */
    animation: rbkFadeIn 0.2s ease forwards;
  }

  /* Style the dropdown container */
  ul.rbk-main-nav .dropdown-menu {
    background-color: #ffffff !important;
    border: none !important;
    border-top: 3px solid #D4AF37 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    padding: 1rem 0 !important;
    min-width: 240px;
  }

  /* Style the dropdown items */
  ul.rbk-main-nav .dropdown-item {
    color: #080808 !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem !important;
    text-transform: none;
    transition: all 0.2s ease;
  }

  /* Sleek slide-right effect when hovering over dropdown items */
  ul.rbk-main-nav .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #D4AF37 !important;
    padding-left: 2rem !important;
  }
}

@keyframes rbkFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   4. DROPDOWN ARROW (CARET) INDICATOR
   ========================================================= */
/* Generates the arrow next to any link with a dropdown */
ul.rbk-main-nav .dropdown > .nav-link::after,
ul.rbk-main-nav li.menu-item--expanded > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.6em;
  vertical-align: middle;
  /* Draws the downward triangle */
  border-top: 0.35em solid currentColor; 
  border-right: 0.35em solid transparent;
  border-bottom: 0;
  border-left: 0.35em solid transparent;
  transition: transform 0.3s ease;
}

/* Rotates the arrow 180 degrees upwards on hover (Desktop Only) */
@media (min-width: 992px) {
  ul.rbk-main-nav .dropdown:hover > .nav-link::after,
  ul.rbk-main-nav li.menu-item--expanded:hover > a::after {
    transform: rotate(180deg);
  }
}