/* #### Nowe style #### */
/* Kafelki strona główna */
@media (max-width: 767px) {
  .ast-header-break-point .astra-home-tiles .vc_column-inner {
    padding-inline: 0px;
  }

  .ast-logo-title-inline .site-logo-img {
    padding: 0;
  }
}
.wp-singular:not(.home) .entry-content .wpb-content-wrapper {
  padding-block: 30px;
}

.n2-ss-slider {
  min-height: 300px;
}

.astra-home-tiles {
  .wpb_single_image.wpb_content_element.vc_align_center.wpb_content_element {
    display: flex;
    border-radius: 16px;
    flex-direction: column-reverse;
    overflow: hidden;
    padding: 7px;
    background: #090f34;
    transition: all 0.2s;
  }

  .wpb_single_image.wpb_content_element.vc_align_center.wpb_content_element:hover
    figure {
    filter: brightness(0.8);
  }

  h2.wpb_heading.wpb_singleimage_heading {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: white;
    margin: 15px 0;
    padding-inline: 10px;
  }

  figure.wpb_wrapper.vc_figure {
    border-radius: 12px;
    overflow: hidden;
    max-height: 200px;
    transition: all 0.2s;
  }
}

/* Mobile menu */
body.ast-main-header-nav-open:has(.toggle-on) .floating-menu {
  display: none;
}

header.site-header {
  .ast-builder-menu-mobile
    .main-navigation
    ul.main-header-menu
    .menu-item
    .sub-menu
    a {
    background-color: #958a59;
  }

  .ast-builder-menu-mobile
    .main-navigation
    .menu-item.current-menu-item
    > .menu-link {
    background-color: #070947 !important;
  }

  .ast-builder-menu-mobile
    .main-navigation
    ul.main-header-menu
    li.menu-item
    .ast-menu-toggle {
    border: none;
    box-shadow: none;
  }

  .ast-builder-menu-mobile
    .main-navigation
    ul.main-header-menu
    li.menu-item
    .ast-menu-toggle:focus {
    outline: none;
  }

  .main-navigation
    ul
    .sub-menu
    .menu-item:not(.menu-item-has-children)
    .menu-link
    .icon-arrow:first-of-type {
    display: none;
  }

  .ast-builder-menu-mobile
    .main-navigation
    ul.main-header-menu
    > li.menu-item
    > .sub-menu
    a {
    padding-left: 60px;
  }
}

/* #### Stare style #### */

/* ===== Załaduj font Poppins z Google Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

@media (min-width: 922px) {
  /* ===== Główne pozycje menu – jak na stronie-matce ===== */
  .main-header-menu > li > a {
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    transition: color 0.2s ease;
  }

  /* Po najechaniu – złoty */
  .main-header-menu > li:hover > a {
    color: #b7a96b !important;
  }

  /* ===== Submenu – jasne, lekkie, zgodne ze stylem ===== */
  .main-header-menu .sub-menu {
    background-color: #ffffff !important;
    padding: 12px 0 !important;
    border: none !important;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 240px !important;
    max-width: 260px !important;
    width: auto !important;
    white-space: nowrap;
    left: 0 !important;
    top: 100% !important;
    z-index: 9999;
  }

  .main-header-menu .sub-menu li {
    border-bottom: 1px solid #eeeeee !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-header-menu .sub-menu li:last-child {
    border-bottom: none !important;
  }

  .main-header-menu .sub-menu a {
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    line-height: 1.4;
    text-transform: none;
    text-decoration: none;
    display: block;
    padding: 10px 20px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .main-header-menu .sub-menu a:hover {
    background-color: #f5f5f5 !important;
    color: #b7a96b !important;
  }

  .main-header-menu .sub-menu li::before,
  .main-header-menu .sub-menu li::after,
  .main-header-menu .sub-menu li hr {
    display: none !important;
    content: none !important;
    border: none !important;
  }

  /* Tło mobilnego menu Astra */
  .ast-mobile-popup-drawer {
    background-color: #2b2b2b !important;
  }

  /* Tekst pozycji menu */
  .ast-mobile-popup-drawer .ast-builder-menu .menu-item a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 16px;
  }

  /* Po najechaniu: złoty */
  .ast-mobile-popup-drawer .ast-builder-menu .menu-item a:hover {
    color: #d4af37 !important;
  }

  /* Podmenu */
  .ast-mobile-popup-drawer .ast-builder-menu .sub-menu a {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
  }

  /* Ikona zamykania menu (X) */
  .ast-mobile-popup-close {
    color: #ffffff !important;
  }

  /* Tło aktywnej pozycji menu */
  .ast-mobile-popup-drawer .ast-builder-menu .current-menu-item > a {
    color: #d4af37 !important;
  }

  /* Wymuszenie białego koloru tekstu także w nagłówku mobilnym */
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-layout-element {
    color: #ffffff !important;
  }

  /* Wymuszenie koloru czcionki w mobilnym menu, nawet po załadowaniu JS */
  .ast-mobile-popup-drawer .main-header-menu .menu-link {
    color: #ffffff !important;
  }

  /* Po najechaniu – kolor złoty */
  .ast-mobile-popup-drawer .main-header-menu .menu-link:hover {
    color: #d4af37 !important;
  }

  /* Wymuszenie tła całego mobilnego menu */
  .ast-header-break-point .ast-mobile-popup-drawer {
    background-color: #2b2b2b !important;
  }

  /* Wszystkie linki w mobilnym menu */
  .ast-header-break-point
    .ast-mobile-popup-drawer
    .ast-builder-menu
    .menu-item
    a,
  .ast-header-break-point
    .ast-mobile-popup-drawer
    .main-header-menu
    .menu-link {
    color: #ffffff !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
  }

  /* Po najechaniu na link – kolor złoty */
  .ast-header-break-point .ast-mobile-popup-drawer .menu-item a:hover,
  .ast-header-break-point .ast-mobile-popup-drawer .menu-item a:focus {
    color: #d4af37 !important;
  }

  /* Podmenu (głębiej zagnieżdżone) */
  .ast-header-break-point .ast-mobile-popup-drawer .sub-menu a {
    color: #ffffff !important;
    background-color: #2b2b2b !important;
  }

  /* Podmenu po najechaniu */
  .ast-header-break-point .ast-mobile-popup-drawer .sub-menu a:hover {
    color: #d4af37 !important;
  }

  /* Ikona zamknięcia (X) */
  .ast-header-break-point .ast-mobile-popup-close {
    color: #ffffff !important;
  }

  /* Ikona rozwinięcia submenu (strzałka) */
  .ast-header-break-point .ast-menu-toggle {
    color: #ffffff !important;
  }

  .ast-builder-menu-mobile .main-navigation .main-header-menu,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu {
    background-color: #d1c28b;
    /* background-image:none; */
  }
}
