/**
 * Mobile Menu Styles
 * Poprawki do menu mobilnego w motywie Belvedo
 */

/* Styl dla aktywnego menu mobilnego */
body.mobile-menu-active .mc_main_menu {
  overflow-y: auto;
}

/* Poprawki dla linków w menu mobilnym */
@media (max-width: 1090px) {
  /* Wyrównanie linków do lewej strony */
  .mc_main_menu .menu > li > a {
    text-align: left;
    padding-left: 0;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Pogrubienie czcionki w podmenu */
  .my-megamenu-sub a {
    font-weight: 500;
    text-align: left;
    padding-left: 0;
    display: block;
    margin-bottom: 10px;
    color: #000 !important;
  }
  
  /* Zmniejszenie odstępów w podmenu */
  .my-megamenu-sub {
    padding: 0 0 0 15px !important;
    margin-top: 10px;
  }
  
  /* Usunięcie zbędnych odstępów */
  .my-megamenu-sub .mymega-row {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .my-megamenu-sub .mymega-col {
    padding: 0 !important;
    margin: 0 0 0px 0 !important;
  }
  
  /* Strzałka wskazująca na podmenu */
  .mobile-dropdown-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
    background-color: #f1f1f1;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
  }
  
  .submenu-open > a .mobile-dropdown-arrow {
    transform: rotate(180deg);
    background-color: #DA251C;
    color: white;
  }
  
  /* Poprawka dla linków w podmenu - zapewnienie klikalności */
  .my-megamenu-sub a {
    pointer-events: auto !important;
  }
  
  /* Poprawka dla nagłówków w podmenu */
  .my-megamenu-sub .mymega-col-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
  }
  
  /* Zmniejszenie odstępów między elementami menu */
  .mc_main_menu .menu > li {
    margin-bottom: 15px;
  }
  
  /* Poprawka dla wyświetlania podmenu */
  .my-megamenu-sub {
    position: relative !important;
    left: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    transform: none !important;
  }
  
  /* Ukrycie obrazków w menu mobilnym, ale zachowanie podpisów */
  .mega-image-block img {
    display: none !important;
  }
  
  /* Stylizacja podpisów jako linków */
  .mega-image-block .mega-caption {
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
    color: #000 !important;
    cursor: pointer;
    position: relative;
    padding-left: 15px;
  }
  

  
  /* Poprawka dla linków w blokach z obrazkami */
  .mega-image-block a {
    pointer-events: auto !important;
  }
  
  /* Dodatkowe style dla lepszej czytelności */
  .my-megamenu-sub {
    background-color: #f9f9f9 !important;
  
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 1090px) {
    .my-megamenu-sub a, .my-megamenu-sub .mega-caption {
        text-align: left !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 1090px) {
    .my-megamenu-sub li {
        margin-bottom: 0px !important;
    }

    .mymega-row ul {
    gap: 7px !important;
}
.mega-caption {
  
    text-transform: none;
}

    .mega-image-block .mega-caption {
        display: block !important;
        text-align: left !important;
        margin-left: 0 !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        margin-bottom: 10px !important;
        color: #000 !important;
        cursor: pointer;
        position: relative;
        padding-left: 15px;
        font-weight: 600;
        border-bottom: 1px solid #f1f1f1;
        box-sizing: border-box;
        width: 95%;
    }

        .my-megamenu-sub {
        box-sizing: border-box;
        background-color: #f9f9f9 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

        .mc_main_menu ul {
        display: flex
;
        gap: 0px;
    }

}