/*
	Theme Name: Bonum
	Theme URI: https://solmedia.pl
	Description: Custom WordPress Theme
	Version: 1.0
	Author: Andrzej Bolewski
	Author URI: http://solmedia.pl
	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/
:root {
	--primary:#0c4da1;
	--darker:#002e68;
	--red:#24722a;
}
body {
	font-family: 'Red Hat Text', sans-serif;
	font-weight:400;
    overflow-x:hidden;
	font-size: 18px;
	line-height: 1.62;
	color: #000;
}
img {
	max-width: 100%;
	height: auto;
}
iframe {
	max-width: 100%;
}
a {
	color:var(--primary);
    transition:0.3s all ease;
    word-break: break-word;
}
a:hover {
	opacity: .85;
	color: var(--primary);
}
h1,h2,h3 {
    font-weight: 600;
}
.btn {
	border: 0;
	border-radius:0;
}
.btn-primary,body .kc_button {
	background-color: var(--primary) !important;
	color: #fff !important;
	text-transform: uppercase;
	border-radius:8px;
    white-space: normal;
}
.right {
	text-align: right;
}
.center {
	text-align: center;
}
.flex {
	display: flex;
}
@media (min-width: 1320px) {
	.container {
		width: 1300px;
	}
}
/*Sekcje*/
section,body:not(.kingcomposer) article {
   padding:60px 0
}
#category,.single main {
	padding:30px 0
}
.odstep {
	padding-top: 90px
}

#top {
	text-align: right;
	transition:0.3s all ease;
	background: var(--red);
	height: auto;
	padding: 0;
	color: #fff;
	font-size: 12px;
}
#top a,#top .kc-icon-wrapper i {
	color: #fff;
}
#top .kc-icon-wrapper i {
    line-height: 1.5;
}
#top .kc-feature-boxes  {
	display: flex;
	align-items:center;
}
#top .kc-fb-layout-3 .content-icon i {
	font-size: 16px;
}
#top .kc-wrap-columns {
    justify-content: flex-end;
}
#top .kc_column:not(.menu-placowki) {
	width: auto;
	float: right;
}
.menu-placowki {
	width: 53% !important;
}
.menu-placowki .menu-item-home {
	opacity: .5;
}
.menu-placowki ul {
	padding-left: 0;
    text-align: left;
	margin-bottom: 0;
}
.menu-placowki li {
	display: inline-block;
	margin-right: 20px;
}
#top .kc-fb-layout-3 .box-right {
	padding-left: 10px;
}
#top .widget_search {
	display: none;
	position: absolute;
	height: 30px;
	bottom: -30px;
	right: 0;
    width: 235px;
	z-index: 1;
}
#top .content-desc {
	margin-bottom: 0;
}

#banner {
	min-height: 50vh;
}
#header-main {
	padding: 10px 0;
	transition:0.3s all ease;
}
.smaller #header-main{
	padding: 5px 0;
}
.smaller #top {
	height: 0;
	padding: 0;
	overflow: hidden;
}
#header {
	display: block;
    width: 100%;
    position: fixed;
    z-index: 20;
    top:0;
	background: #fff;
	padding: 0;
	transition:0.3s all ease;
}
.smaller #header-main {
	padding: 5px 0;
    box-shadow: 0 0 5px #333;
}
#logo {
	transition:0.3s all ease;
	display: flex;
	align-items:center;
	margin-top: 5px;
}
#logo-wrap  {
	padding-right: 0;
}
#logo-wrap a:hover {
	text-decoration: none;
}
#logo-napis {
	padding-left: 15px;
	font-weight: 600;
	font-size: 18px;
    line-height: 1.1;
}
#logo-napis span {
	display: block;
	color: #333;
	font-size: 14px;
	margin-top: 6px;
}
.smaller #logo {
	height: 70px;
}
#header .row {
	display: flex;
	align-items:center;
}
.admin-bar #header{
	top: 32px;
}
#tlo {
	background: var(--primary) url(img/tlo.jpg);
	background-size:cover;
	color: #fff;
    background-position: center;
	position: relative;
	padding: 45px 0 45px;
}
#tlo h1 {
	font-size: 48px;
}
#tlo:before {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	background:#0c4da1de;
	z-index:1;
	content:'';
}
#tlo .container {
	position: relative;
	z-index: 2;
}
#tlo a {
	color: #fff;
}
.ramka {
    margin: 0 auto;
    padding: 30px 50px;
	text-align: center;
}
#stopkaBig {
	background:var(--darker);
	color: #fff;
}
#stopkaBig .sub-menu {
	display: none;
}
#stopkaBig .menu {
	padding-left: 0;
}
#stopkaBig .menu li {
	display: block;
}
#stopkaBig h3 {
	text-transform: uppercase;
	font-weight: 700;
}
#stopkaBig a {
	color: #fff;
}
#stopkaBig .kc-fb-layout-3 {
	margin-bottom: 10px;
}
#stopkaBig .kc-fb-layout-3 .content-icon{
	min-width: 20px;
	text-align: center;
}
#stopkaBig .kc-fb-layout-3 .content-icon i {
    font-size: 18px;
}
#stopkaBig .content-desc {
	margin-bottom: 0;
	color:#fff;
}

body .kc-multi-icons-wrapper {
	display:flex
}
body .kc-multi-icons-wrapper a {
	background: inherit;
}
#stopka{
	background:var(--darker);
	padding:0;
	font-size:11px;
	font-weight:300;
	color:#fff;
	clear: both;     
}
#stopka .container {
	padding: 15px;
	border-top: 1px solid #ffffff57;
}
#stopka a {
	color: #ddd;
}
/*menu*/
.nav>li>a:focus, .nav>li>a:hover, .nav>li.active>a {
	background-color:inherit;
}
.navbar-toggle .icon-bar {
	background: #8e4a8e;
    width: 30px;
    height: 3px;
}
.navbar-toggle .icon-bar+.icon-bar {
	   margin-top: 6px;
}
.navbar-collapse {
    position: absolute;
    left: 0px;
    width: 100%;
	background: #fff;
    padding: 0 15px;
	top:160px;
	z-index: 9;
}
/*paski*/
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-left: 0px solid #ccc;
}
::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}
/*Misc*/
article p img {
    max-width: 100%;
    height: auto;
}
h4.title {
    font-size: 20px;
    font-weight: 700;
}
.readmore {
	display:inline-block;
	padding-bottom:30px;
}
.date-tags {
	display:flex;
    justify-content: space-between;
}
div.date {
    opacity: 0.6;
    font-size: 13px;
    margin-bottom: 5px;
    font-style: italic;
}
#searchform label {
	display: none;
}
/*Blog*/

#category .flex{
	display: flex;	
    flex-wrap: wrap;
	margin: 0 -15px;
}
.flex .hentry {
	width: 210px;
    margin: 0 16px 30px;
}
#category .wrap-info {
	padding: 15px 0;
}
h3.title {
	margin-top: 10px;
}
.data-kat .category {
	font-weight: 700;
	text-transform: uppercase;
	padding-right: 10px;
}
.pagination {
	width: 100%;
    display: flex;
    justify-content: center;	
}
.pagination > * {
	margin: 0 5px;
}
.wrap-info a h5  {
	color: #000;
    min-height: 31px;
}
/*Editor*/
.entry-content img {
	margin: 0 0 1.5em 0;
	}
.alignleft, img.alignleft {
	margin-right: 1.5em;
	display: inline;
	float: left;
	}
.alignright, img.alignright {
	margin-left: 1.5em;
	display: inline;
	float: right;
	}
.aligncenter, img.aligncenter {
	margin-right: auto;
	margin-left: auto;
	display: block;
	clear: both;
	}
.alignnone, img.alignnone {
	/* not sure about this one */
	}
.wp-caption {
	margin-bottom: 1.5em;
	text-align: center;
	padding-top: 5px;
	}
.wp-caption img {
	border: 0 none;
	padding: 0;
	margin: 0;
	}
.wp-caption p.wp-caption-text {
	line-height: 1.5;
	font-size: 10px;
	margin: 0;
	}
.wp-smiley {
	margin: 0 !important;
	max-height: 1em;
	}
blockquote.left {
	margin-right: 20px;
	text-align: right;
	margin-left: 0;
	width: 33%;
	float: left;
	}
blockquote.right {
	margin-left: 20px;
	text-align: left;
	margin-right: 0;
	width: 33%;
	float: right;
}

@media (max-width: 991px) {
	#category .post {
	    padding-bottom: 60px;		
	}
	.wrap-img {
		text-align: center;
		float: none;
		margin-right: 0;
		max-width: none;
	}
}

body .content-desc {
	color: inherit;
}
body.kingcomposer section[data-kc-equalheight=true]>.kc-container .kc-wrap-columns {
	margin-left: -15px;
	margin-right: -15px;
	width: auto;
	min-width: 100%;
}

.search-highlight {
	background:yellow
}
#logo {
	max-height: 150px;
}
#hero {
    min-height: 65vh;
    color: #fff;
}
.more a {
    background: url(img/arrow.svg) no-repeat calc(100% - 6px) center;
    display: inline-block;
    padding-right: 35px;
    text-transform: uppercase;
    color: inherit;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
}
.kategoria {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    margin-top: 10px;
}

#s {
	background: #fff;
	border: 1px solid #888;
	padding: 2px 12px;
	color: #000;
}	
#searchsubmit {
	padding: 6px 12px;
	border: 0;
    border-radius: 0;
	font-size: 11px;
}
.search-highlight {
background:yellow
}
body .kc-fb-layout-1 .content-title {
	color: inherit;
    font-size: 18px;
    font-weight: 600;
}
body .kc-fb-layout-1 .content-icon i {
	color: var(--red);
}
.bg-gray {
    background: #f7f9fa;
}
#zajecia .kc-fb-layout-2 {
	min-height: 110px;
    display: flex;
    align-items: center;
}
.bg-primary {
    background: var(--primary);
    color: #fff;
}
.bg-red {
    background: var(--red);
    color: #fff;
}
.kc_single_image img.logo-stopka {
	padding: 10px 20px;
	background: #fff;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
}
.gallery br {
	display:none
}
.gallery img {
	border:0 !important;
}
.gallery .gallery-item {
	width:auto !important;
	margin:15px;
}
@media (min-width: 992px) {
	.odstepy-poziom :is(.kc_column,.kc_column_inner,.col-md-6):first-child {
		padding-right: 45px;
	}
	.odstepy-poziom :is(.kc_column,.kc_column_inner,.col-md-6):last-child {
		padding-left: 45px;
	}
}
.wrap-img, .kc_single_image img, .wp-post-image, iframe, .size-large, .gallery-item img,.kc-image-link img,.fancybox-image {
    border-radius: 12px;
    overflow: hidden;
}
body .kc_single_image {
	line-height: inherit;
}
#breadcrumbs {
	opacity: .6;
}
body  .kc-fb-layout-5 .content-position {
	font-size: 36px;
}
body .content-title {
	color: inherit;
}
.przyciski-poziom .kc_wrapper {  
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 20px 0;
}
.przyciski-poziom .kc_wrapper .kc-elm {
	width: auto;
	margin-right: 10px;
}
.home .kc-fb-layout-5 .content-position {
    display: none;
}
.tiles a {
		margin: 0 20px 20px 0;
}
.tiles a:hover {
		text-decoration: none;
	}
	.tile {
		width: 290px;
		display: flex;
		border: 1px solid #ddd;
		flex-direction: column;
		justify-content: center;
		transition:0.1s all ease;
		background: #f7f7f7;
		position: relative;
		overflow: hidden;
		border-radius: 0 12px 12px 0;
		border-left: 3px solid var(--primary);
		text-align: left;
		border-radius:12px;
	}
	.tile a {
		color: #333;
	}
	.tile h3 {
		margin: 0;
		padding: 20px;
		font-size: 20px;
		position: relative;
		z-index: 4;
    min-height: 90px;
	}
	.tile:hover  {
		border-left-width: 6px;
		background: #fff;
	}
	.tile:hover a {
		color: var(--primary);
	}
	.tile .image {
		max-height: 200px;
		overflow: hidden;
	}
	.tiles {
    padding: 15px;
		padding-bottom: 60px;
		display: flex;
		flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: center;
	}
.multisite-menu li {
	display: inline-block;
	opacity: .7;
	font-weight: 600;
}
.multisite-menu li.active  {
	opacity: 1;
}

.szkoly-boxy .kc-feature-boxes.kc-fb-layout-5 {
    position: relative;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-size 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.szkoly-boxy .kc-feature-boxes.kc-fb-layout-5::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.szkoly-boxy .kc-feature-boxes.kc-fb-layout-5:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.25);
}

.szkoly-boxy .content-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    padding: 24px 24px 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.szkoly-boxy .content-button {
    position: relative;
    z-index: 2;
    padding: 16px 24px 24px;
}

.szkoly-boxy .content-button a {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 30px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(2px);
    transition: background 0.3s ease, color 0.3s ease;
}

.szkoly-boxy .content-button a:hover {
    background: #fff;
    color: #111 !important;
}

@media (max-width: 767px) {
    .szkoly-boxy .kc-feature-boxes.kc-fb-layout-5 {
        min-height: 260px;
    }
}
.featured-image {
	margin: 0 0 30px;
}

.featured-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
body .kc_counter_box .counterup:before{
	content: 'ponad';
	font-weight: 600;
	font-size: 16px;
	display: block;
}
#newsy-slider {
	flex-wrap:wrap;
}
/* Kontener listy dokumentów */
.dokumenty {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: doc-counter;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
}

.dokumenty li {
    counter-increment: doc-counter;
    position: relative;
}

.dokumenty li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 16px 56px;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-left: 4px solid var(--red); /* czerwień z headera */
    border-radius: 8px;
    color: #1a3a6b; /* granat z logo/nagłówka */
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

/* Numeracja */
.dokumenty li a::before {
    content: counter(doc-counter);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #1a3a6b;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ikona PDF po prawej */
.dokumenty li a::after {
    content: "PDF ↓";
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    background: #fdeceb;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Hover */
.dokumenty li a:hover {
    background: #eef1f6;
    border-left-color: #1a3a6b;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dokumenty li a:hover::after {
    background: var(--red);
    color: #fff;
}
.kc_single_image img.logo-stopka {
	margin-bottom: 30px;
}
@media (max-width: 991px) {
	#tlo {
		padding: 30px 0;
	}
	.ramka {
		padding: 0;
	}
	#tlo h1 {
		font-size: 28px;
	}
	#breadcrumbs {
		font-size: 13px;
	}
	#stopkaBig {
		font-size: 15px;
	}
	#top .nav>li>a {
		padding: 6px 12px;
	}
}
@media (max-width: 767px) {
	.odstepy-poziom :is(.kc_column,.kc_column_inner,.col-md-6):first-child {
		padding-bottom: 30px;
	}
}