/* bestjobsgermany.com — layout fixes on top of the original theme styles. */

/* Elements kept in the markup but switched off for now (HIDDEN_LINKS in tools/build-site.mjs). */
.site-hidden {
  display: none !important;
}

/* Main menu arrows: the pre-rendered arrow keeps each item's width stable while the page loads;
   once the menu script has initialised (it marks the list and adds its own arrow) hide it. */
.elementor-nav-menu[data-smartmenus-id] .sub-arrow--static {
  display: none !important;
}

/* Main menu: between the tablet breakpoint and 1280px the five items did not fit on one line
   and wrapped under the logo. Scale text and spacing with the viewport in that range only. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .elementor-nav-menu--main .elementor-nav-menu > li > .elementor-item {
    font-size: clamp(11px, 1.1vw, 14px) !important;
    padding-left: clamp(4px, 0.55vw, 8px) !important;
    padding-right: clamp(4px, 0.55vw, 8px) !important;
  }
  .elementor-nav-menu--main .elementor-nav-menu {
    flex-wrap: nowrap !important;
  }
  /* the header button ("Ödeme Yap") broke onto two lines in the same range */
  header .elementor-widget-button .elementor-button {
    white-space: nowrap;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: clamp(11px, 1.1vw, 14px) !important;
  }
  header .elementor-widget-button .elementor-button-content-wrapper {
    flex-wrap: nowrap;
  }
}

/* Carousels: arrows positioned outside the slider end up off-screen (and make the page scroll
   sideways) once the slider is as wide as the window. Keep them inside on those widths. */
@media (max-width: 1379px) {
  .elementor-widget-n-carousel .elementor-swiper-button-prev { left: 4px !important; }
  .elementor-widget-n-carousel .elementor-swiper-button-next { right: 4px !important; }
}
