/* ==================== */
/* === WP Admin Bar === */
/* ==================== */
#wpadminbar .quicklinks ul li#wp-admin-bar-smart_slider_3,
#wpadminbar .quicklinks ul li#wp-admin-bar-ws-form-node,
#wpadminbar .quicklinks ul li#wp-admin-bar-astra-advanced-layouts,
#wpadminbar .quicklinks ul li#wp-admin-bar-wp-mail-smtp-menu,
#wpadminbar .quicklinks ul li#wp-admin-bar-under-construction-page {
    display: none;
}

@media (min-width:1300px) and (max-width:1600px) {

    #wpadminbar .quicklinks ul li#wp-admin-bar-rank-math .rank-math-text,
    #wpadminbar .quicklinks ul li#wp-admin-bar-purge-varnish-cache .ab-label,
    #wpadminbar .quicklinks ul li#wp-admin-bar-csmm {
        display: none;
    }
}

@media (min-width:783px) and (max-width:1300px) {

    #wpadminbar .quicklinks ul li#wp-admin-bar-customize,
    #wpadminbar .quicklinks ul li#wp-admin-bar-updates,
    #wpadminbar .quicklinks ul li#wp-admin-bar-comments,
    #wpadminbar .quicklinks ul li#wp-admin-bar-rank-math,
    #wpadminbar .quicklinks ul li#wp-admin-bar-purge-varnish-cache,
    #wpadminbar .quicklinks ul li#wp-admin-bar-redis-cache,
    #wpadminbar .quicklinks ul li#wp-admin-bar-wp-rocket,
    #wpadminbar .quicklinks ul li#wp-admin-bar-csmm,
    #wpadminbar .quicklinks ul li#wp-admin-bar-top-secondary {
        display: none;
    }
}

@media(max-width:600px) {
    #wpadminbar .quicklinks ul li#wp-admin-bar-purge-varnish-cache {
        display: none !important;
    }
}


/* ============================= */
/* === Astra Child Theme Mod === */
/* ============================= */

/* == Ustawienia marginesów kontenera contentu i nagłówków == */
.site-content .ast-container,
.ast-primary-header-bar.ast-primary-header.main-header-bar,
.ast-above-header-bar .site-above-header-wrap.ast-container {
    margin: 0 10vw;
    max-width: 100%;
}

.entry-content[ast-blocks-layout]>*,
.ast-primary-header-bar .site-primary-header-wrap.ast-container {
    max-width: 1960px;
}

.entry-content>.wp-block-uagb-container {
    max-width: 1960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.site-content>.ast-container {
    max-width: 100%;
}

#ast-desktop-header .ast-main-header-wrap .site-primary-header-wrap .ast-builder-grid-row .header-widget-area.widget-area.header-widget-area-inner {
    padding-left: 0;
}

#ast-desktop-header .ast-above-header-wrap .ast-builder-grid-row {
    margin: 0;
    max-width: 100%;
}

.entry-header>* {
    max-width: 1960px;
    margin-left: auto;
    margin-right: auto;
}

#page footer{
	z-index:9;
}

/* = Tytuł stron i wpisów = */
.entry-title {
    margin-bottom: 2rem;
}

/* = Nagłówki Gutenberg w zawartości strony = */
.wp-block-heading {
    margin: 1.5rem 0;
}

/* == Reset domyślnych paddingów kontenera == */
.ast-container,
.ast-container-fluid {
    margin: auto;
    padding: 0;
}

/* == Ścieżka okruszków == */
.ast-breadcrumbs-wrapper {
    margin: 1.5rem 0;
}

.main-header-bar.ast-header-breadcrumb {
    border: 0;
    margin: 0 10vw;
    max-width: 100%;
    width: auto;
}

.main-header-bar.ast-header-breadcrumb {
    padding-top: 160px;
    z-index: 9;
}

.main-header-bar.ast-header-breadcrumb+#content {
    padding-top: 0;
}

@media(max-width:921px) {

    .ast-breadcrumbs-wrapper #ast-breadcrumbs-yoast,
    .ast-breadcrumbs-wrapper .breadcrumbs,
    .ast-breadcrumbs-wrapper .rank-math-breadcrumb,
    .ast-breadcrumbs-inner nav {
        padding-right: 0;
        padding-left: 0;
    }

    .main-header-bar.ast-header-breadcrumb {
        padding: 0 !important;
        border: 0 !important;
    }
}

/* == Typografia tytułu stron == */
header.entry-header h1.entry-title {
    font-size: 2.5em;
    line-height: 1.2;
    font-weight: 800;
}

header.entry-header h1.entry-title::first-letter {
	text-transform:uppercase;
}

/* == Typography spacing == */
.entry-content ol,
.entry-content ul {
    margin-bottom: 2em;
}

.entry-content p,
.entry-content ol>li>a {
    margin-bottom: 1rem;
}

.entry-content *>p:last-child {
    margin-bottom: 2em;
}

/* == Przyciski == */
a.wp-block-button__link.wp-element-button:hover,
a.wp-block-button__link.wp-element-button {
    text-decoration: none !important;
}

/* == Nagłówek i menu == */
@media(min-width:2300px) {
    #page .site-above-header-wrap {
        max-width: 1960px;
        height: 100%;
        margin: 0 auto;
    }
}

/* = Logo = */
.logo.wp-block-columns .wp-block-column .wp-block-image img {
    max-height: 65px;
    width: auto;
}

.logo__emblem_pkrk.wp-block-image img {
    height: 65px;
}

/*Menu image - widget*/

.mega-menu-wrap img.menu-image {
    float: right;
}

/* == Sticky menu mobile == */

@media(max-width:921px) {
    header.site-header {
        position: fixed !important;
        width: 100%;
    }

    header.site-header+#content,
    header.site-header+.main-header-bar.ast-header-breadcrumb {
        margin-top: 100px;
    }
}

@media(max-width:600px) {
    #wpadminbar {
        display: none;
    }

   body.logged-in {
        margin-top: -46px;
    }
}

/* == Blok: Lista wpisów == */
ul.wp-block-post-template {
    padding: 0;
}

/* == Blok: Lista odnośników == */
.bst-linklist {
    margin-bottom:1em;
}


/* ============================== */
/* == Menu Mobile - off canvas == */
/* ============================== */

.ast-header-break-point .ast-icon.icon-arrow svg {
    margin-left: 98%;
}

@media (max-width: 921px) {
    .ast-builder-menu-mobile .main-navigation .menu-item.menu-item-has-children > .ast-menu-toggle {
        top: 0;
        width: 100%;
    }
}

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-megamenu>ul.mega-sub-menu {
    margin-top: 1.1em;
}

.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item>.menu-link {
    background: transparent;
}

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

.ast-header-break-point .main-navigation .sub-menu .menu-item .menu-item .menu-link {
    padding-right: 55px;
}

@media(max-width:388px) {
    .mobile-menu {
        display: none;
    }

    .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
        padding-right: calc(5px + 1em);
    }
}


/* ================ */
/* == Podstrony == */
/* =============== */

.ast-plain-container.ast-no-sidebar #primary {
    margin: 0 0 80px;
}

/* == Linki w tekście == */
a:hover,
a:hover span {
    text-decoration: underline;
}

/*.site-content .entry-content a {
    text-decoration: underline;
}*/

a.wp-block-button__link .uagb-button__link,
a.wp-block-button__link,
.blok_na_skroty ul.uagb-tabs__panel li.uagb-tab a,
#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item.mega-current-menu-ancestor>a.mega-menu-link {
    text-decoration: none !important;
}

/* == Poprawka po aktualizacji PHP == */

.entry-meta,
.read-more,
.ast-pagination .page-numbers,
.ast-pagination .page-navigation {
    font-size: initial;
}

/* ===================== */
/* === Max Mega Menu === */
/* ===================== */

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-megamenu>ul.mega-sub-menu {
    top: 62px;
    margin-top: 0 !important;
}

.mega-sub-menu--height-control {
    margin-top: 0 !important;
    top: 74px !important;
}

#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    line-height: 1.4 !important;
    height: auto !important;
}

/* =========================== */
/* === Header margin fixed === */
/* =========================== */
.header--mb-1rem .wp-block-heading {
    margin: 0 0 1rem 0 !important;
}

/* ================================ */
/* == Site name H1 for home page == */
/* ================================ */
h1.pk-site-name--hidden {
    font-size: 0 !important;
    height: 0 !important;
}


/* ============================ */
/* == Header centering fixed == */
/* ============================ */
@media(min-width:2300px) {
	#page  .ast-above-header.ast-above-header-bar {
	display: block;
	padding: 0 10vw;
	}
}
/* Zaznaczanie miejsca w menu w którym się znajdujemy */

#mega-menu-wrap-primary .mega-current_page_item a{
	color: #003571!important;
	text-decoration: underline!important;
}

/* Scroll menu mobilne */
#page .ast-builder-menu-mobile .main-header-menu, .ast-header-break-point .ast-builder-menu-mobile .main-header-menu{
	overflow: scroll;
    max-height: 75vh;
}

/* Zmiany nagłowków mobile */
@media(max-width:544px){
	header.entry-header h1.entry-title,h1, .entry-content h1{
		font-size:1.5em;
	}
	h2, .entry-content h2{
		font-size:1.3em;
	}
	h3, .entry-content h3{
		font-size:1.25em;
	}
	h4, .entry-content h4,
	h5, .entry-content h5,
	h6, .entry-content h6{
		font-size:1.1em;
	}
}


/* == Blog archive == */
.archive #page .ast-article-post .entry-meta{
	padding:1rem;
}
.search-results #page .ast-grid-common-col {
    height: auto;
}
.aktualnosci_male_kafelki .wp-block-query .wp-block-post-title a {
	text-decoration:none!important;
}

/*First letter*/
a::first-letter, p::first-letter {
	text-transform:capitalize;
}

/* Responsive homepage*/
@media(min-width:2300px){
.entry-content .block_post-carousel > .wp-block-column >* {
	  max-width: 1960px;
    margin: auto!important;
}
.entry-content .block_post-carousel > .wp-block-column > h2{
    padding-left: 10px;
}
	.wp-block-group.aktualnosci_male_kafelki{
		margin-left: auto;
    margin-right: auto;
	}	
.n2-ss-slider .n2-ow, .n2-ss-slider .n2-ow-all * {
    max-height: 30vh;
}
#page .slider-text-area{
		margin-left:0;
	}
#page .entry-content .n2-ss-slider-4 >.n2-ss-slide.n2-ow{
		margin-left: auto;
    margin-right: auto;
    max-width: 1960px!important;
		width:1960px!important;
}	
.aktualnosci_male_kafelki .wp-block-query img {
    height: 200px;
    width: 200px;
}
#mega-menu-primary > li >ul.mega-sub-menu >li.mega-menu-row >ul.mega-sub-menu{
		margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    max-width: 1960px;
	}
}
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
	max-width:1960px;
}

.odnosniki_kafle .wp-block-column .wp-block-heading a {
    text-decoration: none !important;
}

.odnosniki_kafle .wp-block-column .wp-block-heading a:hover {
    text-decoration: underline !important;
    color: #003571;
}

/* WCAG Button*/
.bst-wcag__fixed-button {
	display:none;
}

/*Przełącznik języka w nagłówku*/

.wpml-ls-legacy-dropdown-click a>span {
	color:#fff;
}

.ast-above-header.ast-above-header-bar .wpml-ls-flag{
    display:none;
} 

.ast-above-header.ast-above-header-bar .wpml-ls-native::before{
    content:'';
    background: url(/wp-content/uploads/sites/148/2024/03/globe-1.svg);
    background-size:16px;
    background-repeat:no-repeat;
    background-position: center;
    padding:0 16px;
    height:16px;
    width:16px;
}
 
.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after{
    border:none;
    background: url(/wp-content/uploads/sites/148/2024/03/chevron-down-1.svg);
    background-size:16px;
    background-repeat:no-repeat;
    background-position: center;
    height:16px;
    width:16px;
    top:1px;
}
@media(max-width:400px){
	.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after{
		right:0;
	}
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu{
    width:108px;
    top:30px;
    left:0;
border: solid 1px white;
    border-top-width: 2px;
}


.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a span{
    color:white;
    margin-left:6px;
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a{
    border:none;
    padding:10px 8px;
    background-color: #003571;
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a:hover{
    color:#001D46;
}

/*Slider*/
@media(max-width:1000px){
	.n2-ss-slide.n2-ow.n2-ss-slide-7.n2-ss-slide-active{
	height:30vh!important;
}
}



/*UKRYTE ELEMENTY MENU*/

@media(min-width:921px){
	
	#page .ast-primary-header-bar .hide-element-menu{
		display:none!important;
	}
	
}