/* =========================================================
   FONTY
   ========================================================= */

@import url('//fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,latin-ext');
@import url('//fonts.googleapis.com/css?family=Dosis:400,300,700&subset=latin,latin-ext');


/* =========================================================
   TŁO STRONY
   ========================================================= */

body {
    background-image: url('/images/tlo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}


/* =========================================================
   GŁÓWNY OBSZAR STRONY
   ========================================================= */

.site-grid {
    --cassiopeia-grid-width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
}

/* =========================================================
   BIAŁE TŁO CZEŚCI Z LOGO
   ========================================================= */
   
/* Desktop – przesunięcie logo i nazwy przedszkola */
@media screen and (min-width: 992px) {
    .container-header .navbar-brand {
        margin-left: 330px !important;
    }
}
/* =========================================
   NAGŁÓWEK - pełna szerokość ekranu
   ========================================= */

.container-header > .grid-child {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Białe tło pod logo */
.container-header > .grid-child:first-child {
    background: #fff !important;
}

/* Zachowujemy niewielki odstęp logo od lewej krawędzi */
.container-header > .grid-child:first-child .navbar-brand {
    padding-left: 15px;
}

/* Menu nadal na niebieskim tle */
.container-header > .container-nav {
    background: #4058f5;
}

/* Baner na całą szerokość ekranu w Cassiopeia */
@supports (display: grid) {
    .site-grid > .container-banner {
        grid-column: full-start / full-end !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-banner .banner-overlay {
        width: 100% !important;
        min-width: 100% !important;
    }

    .container-banner img {
        display: block;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }
}

/* Baner na pełną szerokość okna – Joomla Cassiopeia */
.site-grid > .container-banner.full-width {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.site-grid > .container-banner.full-width #mod-custom130,
.site-grid > .container-banner.full-width #mod-custom130 p {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-grid > .container-banner.full-width #mod-custom130 img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
}
/* =========================================================
   MENU GŁÓWNE - JOOMLA 5 / CASSIOPEIA
   ========================================================= */


/* =========================================================
   WYGLĄD POZYCJI MENU - PIERWSZY POZIOM
   ========================================================= */

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button {
    font-family: 'Dosis', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
}



/* Szablon Zeptar / Cassiopeia – usunięcie podkreślenia głównego menu */
.container-nav .mod-menu > li > a::after,
.container-nav .mod-menu > li > a:hover::after,
.container-nav .mod-menu > li > a:focus::after,
.container-nav .mod-menu > li > button::before,
.container-nav .mod-menu > li > button:hover::before,
.container-nav .mod-menu > li.active > a::after {
    display: none !important;
}

/* =========================================================
   KOLOR PASKA MENU
   ========================================================= */

.container-header {
    background: #405dff;
    background-image: none;
}


/* =========================================================
   PODSTAWOWY KOLOR TEKSTU MENU
   ========================================================= */

.container-header .mod-menu a,
.container-header .mod-menu > li > button {
    color: #000000;
}


/* =========================================================
   PIERWSZY POZIOM - NAJECHANIE
   ========================================================= */

/*
   Po najechaniu:
   - tekst biały
   - tekst pogrubiony
   - bez podkreślenia
*/

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > button:hover {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
}


/* =========================================================
   PIERWSZY POZIOM - AKTYWNA POZYCJA
   ========================================================= */

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.active > button,
.container-header .mod-menu > li > a.active {
    color: #ffd700;
    text-decoration: none !important;
}


/* =========================================================
   DUŻY EKRAN - WYŚRODKOWANIE MENU
   ========================================================= */

@media (min-width: 992px) {

    /* Kontener nawigacji zajmuje całą szerokość */
    .container-header .container-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Pasek nawigacji zajmuje całą szerokość */
    .container-header .container-nav .navbar {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Obszar zawierający listę menu */
    .container-header .container-nav .navbar-collapse {
        width: 100%;
        display: flex !important;
        justify-content: center !important;
    }

    /* Sama lista menu */
    .container-header .container-nav ul.mod-menu {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        width: auto;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    /* Poszczególne pozycje menu */
    .container-header .container-nav ul.mod-menu > li {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Desktop – podświetlenie nadrzędnej pozycji menu,
   gdy wybrana jest dowolna podstrona */
@media (min-width: 992px) {
    ul.metismenu > li.level-1:has(ul li.current),
    ul.metismenu > li.level-1:has(ul li.active) {
        background-color: #4058f5 !important;
    }

    ul.metismenu > li.level-1:has(ul li.current) > button,
    ul.metismenu > li.level-1:has(ul li.active) > button,
    ul.metismenu > li.level-1:has(ul li.current) > a,
    ul.metismenu > li.level-1:has(ul li.active) > a {
        color: #fff !important;
        font-weight: 700 !important;
    }
}

/* Desktop – aktywne pozycje menu bez podmenu */
@media (min-width: 992px) {
    ul.metismenu > li.level-1.current > a,
    ul.metismenu > li.level-1.active > a {
        color: #fff !important;
        font-weight: 700 !important;
    }

    ul.metismenu > li.level-1.current:not(.parent),
    ul.metismenu > li.level-1.active:not(.parent) {
        background-color: #4058f5 !important;
    }
}
/* =========================================================
   PRZYCISK HAMBURGERA
   ========================================================= */

.navbar-toggler {
    color: #ffffff;
    border-color: #ffffff;
}


/* =========================================================
   DRUGI POZIOM MENU - SUBMENU
   ========================================================= */

/* Podstawowy wygląd tekstu drugiego poziomu */

.container-header .mod-menu .metismenu-item > ul a {
    color: #405dff;
    font-weight: 500;
    text-decoration: none !important;
}


/* =========================================================
   DRUGI POZIOM - NAJECHANIE
   ========================================================= */

/*
   Po najechaniu:
   - kolor pozostaje #405dff
   - tekst jest pogrubiony
   - brak podkreślenia
*/

.container-header .mod-menu .metismenu-item > ul a:hover {
    color: #405dff !important;
    font-weight: 700;
    text-decoration: none !important;
}


/* =========================================================
   DRUGI POZIOM - AKTYWNA POZYCJA
   ========================================================= */

.container-header .mod-menu .metismenu-item > ul .active > a,
.container-header .mod-menu .metismenu-item > ul a.active {
    color: #405dff !important;
    font-weight: 700;
    text-decoration: none !important;
}


/* =========================================================
   WYŁĄCZENIE PODKREŚLENIA DLA LINKÓW MENU
   ========================================================= */

/*
   Zabezpieczenie przed domyślnymi stylami Cassiopeia.
*/

.container-header .mod-menu a {
    text-decoration: none !important;
}


/* =========================================================
   WYŁĄCZENIE PODKREŚLENIA PO NAJECHANIU
   ========================================================= */

.container-header .mod-menu a:hover {
    text-decoration: none !important;
}

/* =========================================================
   BANNER
   PEŁNA SZEROKOŚĆ EKRANU
   ========================================================= */

/* Główny kontener bannera */
.container-banner.full-width {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   MODUŁ W BANNERZE
   ========================================================= */

.container-banner.full-width .mod-custom {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   PARAGRAF / ELEMENTY WEWNĄTRZ MODUŁU
   ========================================================= */

.container-banner.full-width p {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   OBRAZ BANNERA
   ========================================================= */

.container-banner.full-width img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   LINK OBEJMUJĄCY BANNER - JEŚLI WYSTĘPUJE
   ========================================================= */

.container-banner.full-width a {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
}


/* =========================================================
   ZABEZPIECZENIE PRZED POZIOMYM PRZEWIJANIEM
   ========================================================= */

html,
body {
    overflow-x: hidden;
}

/* =========================================================
   NAGŁÓWKI
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.page-header h1,
.page-header h2,
.page-header h3,
.card-header,
.module-title
{
    font-family: "Dosis", sans-serif;
    color: #66f;
    font-weight: 700;
    line-height: 0.8;
}


/* Nagłówek H2 */
.com-content-category-blog__item .page-header h2 {
    font-family: "Dosis", sans-serif;
    color: #66f;
    font-weight: 700;
    line-height: 0.8;
}

/* Nagłówki H3 */
.com-content-category-blog__item .item-content h3 {
    font-family: "Dosis", sans-serif;
    color: #66f;
    font-weight: 700;
    line-height: 0.8;
}

/* Linki wewnątrz H3 */
.com-content-category-blog__item .item-content h3 a {
    font-family: "Dosis", sans-serif;
    color: #66f;
    font-weight: 700;
    line-height: 0.8;
}

/* Wszystkie nagłówki H2 w elemencie artykułu */
.com-content-category-blog__item .item-content h2 {
    font-family: "Dosis", sans-serif;
    color: #66f;
    font-weight: 700;
    line-height: 0.8;
}

/* Nagłówek H1 – Statut */
.com-content-article.item-page .page-header h1 {
    font-family: "Dosis", sans-serif !important;
    color: #6666ff !important;
    font-weight: 700 !important;
    line-height: 0.8 !important;
}

/* Nagłówek H2 – Statut przedszkola */
.com-content-article.item-page .com-content-article__body h2,
.com-content-article.item-page .com-content-article__body h2 a {
    font-family: "Dosis", sans-serif !important;
    color: #6666ff !important;
    font-weight: 700 !important;
    line-height: 0.8 !important;
}

/* Nagłówki H3 w treści artykułu */
.com-content-article__body h3 {
    font-family: "Dosis", sans-serif !important;
    color: #6666ff !important;
    font-weight: 700 !important;
    line-height: 0.8 !important;
}

/* Nagłówki H4 w treści artykułu */
.com-content-article__body h4 {
    font-family: "Dosis", sans-serif !important;
    color: #6666ff !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

a:not([class]) {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   ZWYKŁE ARTYKUŁY - PODSTRONY
   Niebieskie tło NIE jest tutaj ustawiane.
   ========================================================= */

.com-content-article {
    border: 12px solid #405dff;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

/* Tytuł zwykłego artykułu */

.com-content-article h1,
.com-content-article .page-header {
    margin-top: 0;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

/* Treść zwykłego artykułu */

.com-content-article__body {
    margin-top: 0;
}

/* Obrazy, tabele i iframe */

.com-content-article img,
.com-content-article table,
.com-content-article iframe {
    border-radius: 8px;
    max-width: 100%;
}


.com-content-article__body a 
{
color: #6666ff;
}

/* =========================================================
   STRONA STARTOWA
   Trzy artykuły w kolumnach
   ========================================================= */

.blog-items.columns-3 {
    align-items: start;
}

.blog-items.columns-3 > .blog-item {
    align-self: start;
    height: fit-content;
}


/* Ukrycie głównego tytułu kategorii na stronie startowej */

.com-content-category-blog h1 {
    display: none;
}


/* =========================================================
   NIEBIESKIE ARTYKUŁY NA STRONIE GŁÓWNEJ
   ========================================================= */

/*
   Ten selektor dotyczy artykułów wyświetlanych
   w widoku kategorii blogowej, czyli Twojej strony głównej.
*/

.com-content-category-blog__item {
    border: 12px solid #405dff;
    border-radius: 12px;
    background-color: #405dff;
    box-sizing: border-box;
    overflow: hidden;
}


/* Nagłówki artykułów na stronie głównej */

.com-content-category-blog__item h2,
.com-content-category-blog__item .page-header {
    margin-top: 0;
    margin-bottom: 6px;
    padding-bottom: 12px;
}


/*
   ZAWARTOŚĆ ARTYKUŁÓW NA STRONIE GŁÓWNEJ

   Zmniejszone odstępy:
   było: padding 20px / margin 5px
   jest: padding 10px / margin 0
*/

.com-content-category-blog__item .item-content {
    padding: 10px;
    margin: 0;
}


/* Biały tekst w artykułach strony głównej */

.com-content-category-blog__item .item-content h2,
.com-content-category-blog__item .item-content h3,
.com-content-category-blog__item .item-content h3 a,
.com-content-category-blog__item .item-content p,
.com-content-category-blog__item .item-content ul,
.com-content-category-blog__item .item-content ul a,
.com-content-category-blog__item .item-content i .fa-phone a {
    color: #ffffff !important;
}


/* Linie poziome w artykułach strony głównej */

.com-content-category-blog__item .item-content hr {
    border: none;
    height: 2px;
    background-color: #ffffff;
}


/* =========================================================
   MODUŁY
   ========================================================= */

.moduletable h3 {
    font-family: "Dosis", sans-serif;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    text-rendering: optimizelegibility;
}


/* Moduł 163 */

.osmodul-wrapper-163 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.osmodul-title-163 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: "Dosis", sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

#map163 {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    clear: both !important;
}

/* =========================================
   STOPKA – Lokalizacja + mapa
   ========================================= */

.container-footer > .grid-child {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 30px !important;
    align-items: stretch !important;
}

/* Lewa kolumna */
.container-footer > .grid-child > .moduletable {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Prawa kolumna – mapa */
.container-footer > .grid-child > .osmodul-wrapper-163 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Mapa wypełnia wysokość prawej kolumny */
.container-footer > .grid-child > .osmodul-wrapper-163 #map163 {
    width: 100% !important;
    flex: 1 1 auto !important;
    height: 200px !important;
    min-height: 200px !important;
}

/* Na telefonie jedna kolumna */
@media (max-width: 767.98px) {
    .container-footer > .grid-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* =========================================================
   SUBMENU
   ========================================================= */

.container-header .metismenu > li.level-1 > ul {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-top: 28px;
}


/* =========================================================
   STOPKA
   ========================================================= */

.container-footer {
    background: #405dff;
    background-image: none;
    color: #ffffff;
}

.container-footer a {
    color: #ffd700;
}

.container-footer a:hover {
    color: #ffffff;
}


/* START – biały tekst na wszystkich stronach */
.container-header ul.metismenu > li.item-101 > a {
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: none !important;
}

/* START – strona główna: pogrubiony */
body.itemid-101 .container-header ul.metismenu > li.item-101 > a {
    font-weight: 700 !important;
}

/* START – podstrony: niepogrubiony */
body:not(.itemid-101) .container-header ul.metismenu > li.item-101 > a {
    font-weight: 400 !important;
}



/* Kliknięcie myszą: usuń ramkę z linków i przycisków menu */
.container-header .metismenu.mod-menu a:focus:not(:focus-visible),
.container-header .metismenu.mod-menu button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Klawiatura: zachowaj widoczny fokus na wszystkich poziomach */
.container-header .metismenu.mod-menu a:focus-visible,
.container-header .metismenu.mod-menu button:focus-visible {
    outline: 2px solid #0d6efd !important;
    outline-offset: 3px;
    box-shadow: none !important;
}


