/* ==========================================================
   University of Jammu front page replica
   Small additions on top of the original JU theme stylesheet
   ========================================================== */

/* Quick-access "Results" tab in the coloured main navigation.
   The original theme sizes the 6 tabs at 16.66% each; with the
   extra tab we use 7 equal columns. */
.top-nav li.color-result > a {
  background: #9a740f url(site/live/themes/custom/ju/assets/nav-bg.svg) no-repeat bottom center;
  font-weight: 600;
}
.top-nav li.color-result > a:hover {
  color: #ffff00;
}
@media (min-width: 992px) {
  .top-nav ul > li {
    width: 14.2857%;
  }
}
@media (max-width: 991px) {
  .top-nav ul > li {
    width: 14.2857%;
  }
}
@media (max-width: 767px) {
  .top-nav ul {
    height: 86px !important;
    min-height: 0;
  }
  .top-nav ul > li {
    width: 33.3333% !important;
    height: 43px !important;
  }
  /* "IT Enabled Services" is a non-link tab on the original site.
     On phones it gives its slot to the quick-access Results tab so
     the header keeps the exact 3 x 2 tab grid of the original. */
  .top-nav li.color5 {
    display: none;
  }
}

/* Keep the original hover behaviour: hide the search box while the
   last navigation tabs (which sit underneath it) are hovered. */
.top-nav li.color-result > a {
  position: relative;
  z-index: 2;
}

/* Make the result tab readable when the sticky header shrinks */
.divft.top-nav-collapse.fixed-top .top-nav li.color-result a {
  background-position: 0% 60% !important;
  padding-top: 2px !important;
}

/* Full calendar footer (same look as the live site) */
#bottom-buttons {
  margin-top: 8px;
}
#bottom-buttons .locale-selector label {
  margin-right: 6px;
  font-size: 85%;
}
#bottom-buttons #locale-selector {
  height: 26px;
  max-width: 140px;
  font-size: 85%;
}
