/* ================================================================= */
/* FINALNA POPRAWKA MENU BIP (Cassiopeia Extended)                   */
/* ================================================================= */

/* 1. ZAPEWNIENIE WIDOCZNOŚCI PODMENU */
ul.mod-menu__sub {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
    position: relative !important;
    margin-top: 5px !important;
    
    /* Wcięcie dla podelementów (dzieci) */
    padding-left: 15px !important;
    border-left: 2px solid #eee;
    margin-left: 5px !important;
}

/* 2. STYLIZACJA NAGŁÓWKA (RODZICA) - PRZYWRACAMY TEKST */
button.mod-menu__toggle-sub {
    display: block !important;          /* PRZYWRACAMY WIDOCZNOŚĆ! */
    
    /* Resetujemy wygląd przycisku, żeby wyglądał jak tekst */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    text-align: left !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    cursor: default !important;         /* Kursor jak nad tekstem, nie rączka */
    
    /* Wygląd tekstu: Czarny i Gruby */
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    
    /* Usunięcie ewentualnych teł graficznych (strzałek w tle) */
    background-image: none !important; 
}

/* 3. MORDERSTWO STRZAŁEK (USUWANIE IKONEK) */
/* Ukrywamy wszystko, co może być strzałką wewnątrz przycisku */

/* Metoda 1: Pseudo-elementy (najczęstsze w Bootstrap/Joomla) */
button.mod-menu__toggle-sub::after,
button.mod-menu__toggle-sub::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Metoda 2: Grafiki wektorowe SVG w środku */
button.mod-menu__toggle-sub svg {
    display: none !important;
}

/* Metoda 3: Ikony czcionkowe (np. FontAwesome) */
button.mod-menu__toggle-sub i,
button.mod-menu__toggle-sub span[class*="icon"] {
    display: none !important;
}

/* 4. KOLORY DLA PODELEMENTÓW (DZIECI) */
/* Linki w podmenu zostają w swoim oryginalnym kolorze (niebieski/czerwony) */
ul.mod-menu__sub li a {
    font-weight: normal !important;
    /* Nie ustawiamy color, żeby został domyślny z szablonu */
}





























/* ================================================================= */
/* FINALNA KOLEJNOŚĆ NA TELEFONIE (Z marginesami dla treści)         */
/* ================================================================= */

@media (max-width: 991px) {
    /* 1. Ustawienie kontenera w pionowy słupek */
    .site-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* --- GRUPA 1: GÓRA --- */
    .container-header, header { 
        order: -10 !important; 
    }
    .container-breadcrumbs {
        order: -5 !important;
    }

    /* --- GRUPA 2: TREŚĆ (Poprawiona) --- */
    .container-component { 
        order: 0 !important; 
        margin-bottom: 30px !important;
        
        /* NOWE: Marginesy wewnętrzne, żeby tekst nie dotykał krawędzi */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* --- GRUPA 3: MENU (LEWA STRONA) --- */
    .container-sidebar-left { 
        order: 10 !important; 
        border-top: 2px solid #f0f0f0;
        padding-top: 20px !important;
        margin-bottom: 20px !important;
    }

    /* --- GRUPA 4: BANERY (PRAWA STRONA) --- */
    .container-sidebar-right { 
        order: 20 !important; 
    }

    /* --- GRUPA 5: DÓŁ (STOPKA I MODUŁY DOLNE) --- */
    .container-bottom-a, 
    .container-bottom-b,
    .container-footer, 
    footer { 
        order: 100 !important; 
        margin-top: 20px !important;
    }
}