/** paginacja **/
.pagination-blog .prev,
.pagination-blog .next{
	display: none !important;
}
.pagination-blog .page-numbers {
	color: #707070 !important;
	font-size: 16px !important;
	font-family: 'Proxima-nova';
	transition: color .3s ease-in;

}
.pagination-blog .page-numbers.current {
	text-decoration: underline;
	color: var(--primary-color) !important;
}
.pagination-blog .page-numbers:hover {
	text-decoration: underline;
	color: var(--primary-color) !important;
}
/***************/


.categories-searchbar .searchbar {
	width: 50%;
	display: flex;
	justify-content: flex-end;
}
.categories-searchbar .categories .btn-primary a {
	height: 38px !important;
	width: 150px !important;
	min-width: unset !important;
}
@media only screen and (max-width: 768px) {
	.baza-wiedzy-header {
		flex-direction: column;
	}
	.baza-wiedzy-header .categories{
		width: 100%;
	}
}

.page-title {
	font-size: 2rem;
	margin-bottom: 10px;
}

@media only screen and (max-width: 1024px) {
	.baza-wiedzy-header {
		display: flex;
		justify-content: space-between;
		width: 100%;
		flex-wrap: wrap;
		gap: 20px;
	}
	.baza-wiedzy-header .categories {
		gap: 0px !important;
		flex-wrap: wrap;
	}
}
@media only screen and (max-width: 768px) {
	.display-flex {
		margin-top: 2rem !important;
		display: block !important;
	}
}

.recent-posts .posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 35px;
	margin-bottom: 35px;
	margin-top: 35px;
}

.post-card {
	display: flex;
	width: 100%;
	margin: 0 auto;
	position: relative !important;
	border-radius: 10px;
	height: auto !important;
	max-height: 450px;
	padding: 5px;
	border: 1px solid transparent;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-thumbnail {
	overflow: hidden;
}

.post-card:hover .post-thumbnail img {
	transform: scale(1.1);
}
.post-card:hover {
	border: 1px solid var(--primary-color) !important;
}

.post-card:hover .post-thumbnail-img {
	transform: scale(1.05);
}

.post-thumbnail, .post-content {
	flex: 1 1 50%;
	box-sizing: border-box;
}
.form-select:focus {
	border-color: var(--primary-color);
	outline: 0;
	box-shadow: 0 0 0 .25rem rgb(251 255 248 / 0%);
}
.post-card .post-thumbnail {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	border-radius: 10px;
}

.post-card .post-thumbnail-img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.3s ease-in-out;
}
.post-title.single-post-title {
	margin: 2rem 0 3rem !important;
	justify-content: left !important;
}
.post-title.single-post-title:before {
	display: none !important;
}
.post-card .post-content {
	padding: 25px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100% !important;
}
.post-card .post-content .btn-secondary {
	max-width: 300px;
	margin-top: auto !important;
}
.post-card .post-title {
	margin: unset !important;
	margin-bottom: 20px !important;
	line-height: 30px !important;
	margin-top: 10px !important;
}
.post-card .post-title:before {
	display: none !important;
}
.post-title, .post-excerpt, .read-more {
	margin-bottom:20px;
}
.post-card-meta-blog .post-meta {
	color: #555555 !important;
	margin-bottom: 30px !important;
}
.post-excerpt {
	-webkit-line-clamp: 4 !important;	
}
.post-card .post-title {
	-webkit-line-clamp: 3 !important;
}
.post-card .post-title,
.post-excerpt {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}
.post-excerpt p {
	margin-bottom: 0px !important;
}
.post-meta span {
	display: inline-block;
	margin-right: 10px;
}

.post-card .read-more {
	text-decoration: none;
	color: #262626;
	position: absolute;
	bottom: 0;
	font-size: 18px !important;
	margin-bottom: 25px !important;
}

.read-more:hover {
	text-decoration: underline;
}
.post-categories-card a {
	color: var(--primary-color) !important;
}

.post-card .btn-primary {
	max-width: 200px;
	min-width: unset !important;
	width: 100% !important;
	margin-top: auto !important;
}
.is-form-style{
	width: 100% !important;
	max-width: 400px !important;
}
form.is-search-form {
	border-radius: 10px !important;
	border: 1px solid #ccc !important;
} 

.custom-select-selected:hover,
form.is-search-form:hover {
	border: 1px solid var(--primary-color) !important;
	border-color: var(--primary-color) !important;
}
.searchbar .is-form-style input.is-search-input,
.searchbar .is-search-icon{
	border: unset !important;
}

.is-form-style .is-search-icon {
	border-left: 1px solid white !important;
	border-left-color: unset !important;
}
.is-form-style:hover .is-search-icon  {
	border-left: none !important;
	border-radius: 0 10px 10px 0 !important;
}
.is-search-icon {
	border-left: unset !important;
}
.left-col-blog-image {
	padding-right: 40px !important;
}
@media only screen and (max-width: 1000px) {
	.post-card-meta-blog .col-md-7,
	.post-card-meta-blog .col-md-5 {
		width: 50% !important;
	}

	.left-col-blog-image {
		padding-right: 0px !important;
	}
}
@media only screen and (max-width: 768px) {
	.post-card {
		display: flex;
		flex-direction: column;
		max-height: max-content;
	}
	.post-card-meta-blog .col-md-7,
	.post-card-meta-blog .col-md-5 {
		width: 100% !important;
	}

	.post-thumbnail {
		width: 100%;
	}
	.post-thumbnail, .post-content {
		flex: unset !important;
	}
	.post-thumbnail {
		height: auto !important;
	}
	#category-filter {
		width: 100% !important;
		max-width: 330px !important; 
	}
	.is-form-style,
	.categories-searchbar .searchbar{
		width: 100% !important;
	}
	.baza-wiedzy-header {
		flex-direction: column-reverse !important;
		justify-content: left !important;
		align-items: baseline !important;
	}
	.post-card .post-content {
		padding: 25px 15px; 
	}
}
.baza-wiedzy-header .is-search-form {
	display: flex !important;
}
.is-form-style.is-form-style-3 input.is-search-input {
	border-right: 0 !important;
	border-radius: 10px 0 0 10px;
}
.is-form-style.is-form-style-3 input.is-search-input,
.is-form-id-157 .is-search-icon {
	height: 50px !important;
	font-weight: 400 !important;
}
.is-form-id-157 .is-search-icon {
	border-radius: 0 10px 10px 0px !important;
	border-left: unset !important;
	justify-content: center !important;
	padding-top: 0 !important;
	display: flex !important;
	align-items: center !important;
	background-color: white !important;
}

/************* single wpis *********************/
.h2-single-post {
	margin: unset !important;
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: left !important;
	margin-bottom: 2rem !important;
}
.h2-single-post:before {
	display: none !important;
}

.single-post .entry-header p {
	margin-bottom: 10px !important;
	font-size: 18px !important;
}
.single-post .post-author {
	margin-right: 0px !important;
	margin-bottom: 0px !important;
	font-size: 16px !important;
}

.post-thumbnail {
	position: relative;
}

.single-post .post-content {
	position: relative !important;
	bottom: unset !important;
	left: unset !important;
	right: unset !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	background: unset !important;
}
.single-post .post-thumbnail img {
	border-radius: 15px;
	width: 100% !important;
	height: auto !important;
	max-height: 740px !important;
	object-fit: cover;
	object-position: center;
}

.single-post .post-container {
	background: white;
	border: 2px solid #707070;
	border-radius: 15px;
	padding: 35px 25px;
	margin-top: -10rem;
	position: relative !important;
	max-width: 95%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 50px;
}
.post-container h2:before,
.post-container h3:before,
.post-container h1:before {
	display: none !important;
}
.post-container h2,
.post-container h3,
.post-container h1 {
	justify-content: left !important;
	margin: unset !important;
	margin-bottom: 15px !important;
}
@media only screen and (max-width: 768px) {
	.single-post .post-container {
		margin-top: -10rem !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
@media only screen and (max-width: 768px) {
	.single-post .post-container {
		margin-top: -4rem !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
.single-post .post-content {
	margin-bottom: 20px;
	background: white;
}

.single-post .layout-row {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}
@media only screen and (max-width: 1000px) {
	.single-post .layout-row {
		display: block;
	}
	.single-post .image-content {
		max-width: 100% !important;
	}
}
.single-post .text-content {
	flex: 1;
	padding-right: 20px;
}

.single-post .image-content {
	flex: 1;
	max-width: 50%;
}

.single-post .image-content img {
	width: 100%;
	height: auto;
}

/************************************/
.categories {
	width: 50% !important;
}
#category-filter {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 6px 15px;
	width: 400px;
	max-width: 330px;
	border-radius: 10px;
	background-color: white;
	border: 1px solid #ccc;
	cursor: pointer;
	font-size: 16px;
	position: relative;
	height: 50px !important;
	outline: none;
	display: none !important;
}

.custom-select-selected::after {
	content: '\f078';
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #333;
	pointer-events: none;
	font-size: 14px;
	transition: transform 0.2s ease;
}

.custom-select-selected.open::after {
	transform: translateY(-50%) rotate(180deg);
}


.custom-select-container {
	position: relative;
	width: 100% !important;
	max-width: 400px;

}

.custom-select-selected {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	position: relative !important;
	justify-content: space-between;
	height: 50px !important;
	color: #707070 !important;
	background: white !important;
}

.is-form-style button.is-search-submit {
	background: transparent !important;
}

.custom-select-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	border: 1px solid #707070;
	border-top: none;
	background: #fff;
	border-radius: 0 0 10px 10px; 
	max-height: 250px;
	overflow-y: auto; 
	display: none;
	z-index: 9999;
}

.custom-select-dropdown.show {
	display: block;
}

.custom-select-option {
	padding: 0.5em 1em;
	color: #707070 !important;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.custom-select-option:last-child {
	border-bottom: 1px solid #707070  !important;
	border-radius: 0 0 10px 10px;
}

.custom-select-option:hover {
	background: #eee !important; 
	color: #000;
}
.custom-select-dropdown.show {
	border-bottom: unset !important;
}

.custom-select-selected.open {
	border: 1px solid #707070 !important;
	border-bottom: 1px solid #eee !important;
	border-radius: 10px 10px 0 0 !important;
}
@media only screen and (max-width: 768px) {
	.is-form-style,
	.custom-select-container,
	.categories-searchbar .searchbar,
	.baza-wiedzy-header .categories {
		width: 100% !important;
		max-width: 100% !important;
	}
}
