/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */

.boldpo-post-list-block-wrap {
	width: fit-content;
	overflow: hidden;

	.boldpo-post-list {
		box-sizing: border-box;
		margin-bottom: 0px;

		.boldpo-blog-content {
			line-height: 1.4;
			width: 70%;
			display: flex;
			flex-direction: column;
			justify-content: flex-start;
			height: -webkit-fill-available;
			padding: 30px 20px;

			@media screen and (max-width: 767px) {
				padding-top: 8px;
				padding-bottom: 8px;
			}

			@media screen and (max-width: 1024px) {
				justify-content: center;
			}
		}


		.boldpo-list-item {
			position: relative;
			transition: var(--boldpo-preset-hover-transition);
			box-sizing: border-box;

			.boldpo-list-item-inner {
				align-items: self-start;
				display: flex;
				overflow: hidden;
				box-sizing: border-box;
			}

			img {
				max-width: 100%;
				height: auto;
				display: block;
				object-fit: cover;
				transition: transform var(--boldpo-preset-hover-transition);
			}

			i {
				font-size: 16px;
			}

			.boldpo-blog-date-top {
				z-index: 1;
				background-color: var(--boldpo-preset-color-primary);

				h4 {
					margin: 0;
					color: #fff;
					font-size: 36px;
					line-height: 1;
				}

				position: absolute;
				top: 0;
				right: 0;
				display: inline-block;
				padding: 20px;
				padding-bottom: 6px;
				text-align: center;
				border-radius: 4px;
				color: #fff;
				margin: 25px;

				h4,
				span {
					color: inherit;
				}

				@media screen and (max-width: 767px) {
					display: none;
				}

				@media screen and (max-width: 1024px) {
					display: none;
				}
			}

			.boldpo-blog-img {
				position: relative;
				width: 30%;
				max-width: 100%;
				height: auto;
				display: block;
				margin: 0 auto;
				overflow: hidden;
				position: relative;

				img {
					display: block;
					object-fit: cover;
					width: 100%;
				}

				&.boldpo-animate {
					overflow: hidden;

					img {
						transition: transform var(--boldpo-preset-hover-transition);
					}

					&.left_right {
						&:hover img {
							transform: translateX(15px) scale(1.1);
						}
					}

					&.top_bottom {
						&:hover img {
							transform: translateY(15px) scale(1.1);
						}
					}
				}
			}

			.boldpo-blog-title {
				font-size: 1.5rem;
				font-weight: bold;
				margin-bottom: 5px;
				margin-top: 0;
				color: var(--boldpo-preset-color-contrast-1);
				@media screen and (max-width: 767px) {
					font-size: 1em;
				}

				a {
					color: currentColor;
					transition: var(--boldpo-preset-hover-transition);
					text-decoration: none;
				}
			}

			.boldpo-post-metas {
				margin: 20px 0 5px;
				padding: 0;
				list-style: none;
				display: inline-flex;
				flex-wrap: wrap;
				font-size: 14px;
				line-height: 120%;
				align-items: center;
				gap: 18px;

				.bldpost-meta {
					display: flex;
					align-items: center;
				}

				a {
					text-decoration: none;

					&:hover {
						text-decoration: underline;
					}
				}

				li {
					position: relative;
				}

				li+li {
					margin-left: 10px;
					padding-left: 10px;
				}
			}

			.boldpo-read-more {
				display: inline-block;
				margin-top: 10px;
				text-decoration: none;

				@media screen and (max-width: 767px) {
					display: none;
				}

				.boldpo-read-more-link {
					display: inline-flex;
					align-items: center;
					text-decoration: none;
					padding: 7px 16px;
					background-color: var(--boldpo-preset-color-primary);
					color: var(--boldpo-preset-color-white);
					font-size: 14px;
					font-weight: 600;
					transition: 0.3s ease-in-out;

					&:hover {
						background-color: var(--boldpo-preset-color-secondary);
					}
				}

				.boldpo-read-more-icon.after {
					margin-left: 6px;
					top: 1px;
				}

				.boldpo-read-more-icon.before {
					margin-right: 6px;
					top: 1px;
				}
			}

			.boldpo-blog-excerpt {
				margin-bottom: 20px;
				font-size: 18px;
				color: var(--boldpo-preset-color-contrast-2);

				a {
					color: currentColor;
				}

				@media screen and (max-width: 767px) {
					display: none;
				}

				@media screen and (max-width: 1024px) {
					display: none;
				}
			}

			a {
				&:hover {
					color: var(--boldpo-preset-color-primary);
				}
			}

		}

		.boldpo-list-item-divider {
			margin: 0;
			background-color: var(--boldpo-preset-color-border);
			height: 1px;
			border: none;
		}

		&.style-default {
			.boldpo-list-item {
				.boldpo-list-item-inner {
					background-color: var(--boldpo-preset-color-tertiary);

					@media (max-width: 768px) {
						flex-direction: column !important;

						.boldpo-blog-content {
							width: 100% !important;
							padding: 10px;
						}

						.boldpo-blog-img,
						.boldpo-blog-img img {
							width: 100%;
						}

					}
				}


			}
		}

		&.style-1 {
			.boldpo-list-item-inner {
				position: relative;
			}

			.boldpo-list-item {
				position: relative;

				.boldpo-blog-content {
					position: absolute;
					bottom: 0;
					padding: 30px;
				}

				.boldpo-overlay-all {
					position: absolute;
					bottom: 0;
					left: 0;
					width: 100%;
					height: 100%;
					background: rgb(0 0 0 / 47%);
				}

				.boldpo-blog-img {
					position: relative;
					width: 100%;

					img {
						height: 400px;
						object-fit: cover;
						width: 100%;
					}
				}

				.boldpo-blog-title,
				.boldpo-post-metas,
				.boldpo-blog-excerpt,
				.boldpo-read-more a {
					color: #fff;
				}
			}
		}

		&.style-2 {

			.boldpo-list-item-inner {
				flex-direction: row-reverse;
				background-color: var(--boldpo-preset-color-tertiary);
			}
		}

		&.style-3 {
			.boldpo-list-item {

				.boldpo-item-serial {
					font-size: 30px;
					line-height: 1.25;
					font-style: italic;
					color: var(--boldpo-preset-color-primary);
				}

				.boldpo-blog-img {
					position: relative;
					overflow: visible;
					width: 60px;
				}

				.boldpo-blog-content {
					width: calc(100% - 60px);
					padding: 0;
				}

				.boldpo-blog-title {
					margin-top: 0;
				}

				.boldpo-post-metas {
					margin: 0;
				}
			}
		}


		&.style-4 {
			.boldpo-list-item {
				.boldpo-list-item-inner {
					flex-direction: column;
					overflow: hidden;
				}

				.boldpo-blog-img {
					width: 100%;
					overflow: visible;
					border-radius: 16px;

					img {
						height: 450px;
					}

					a {
						border-radius: inherit;
						overflow: hidden;
						display: block;
					}

					.boldpo-style4-cat-badge {
						position: absolute;
						bottom: -14px;
						left: 50%;
						transform: translateX(-50%);
						background-color: var(--boldpo-preset-color-primary);
						color: #fff;
						padding: 5px 20px;
						border-radius: 50px;
						font-size: 13px;
						font-weight: 600;
						white-space: nowrap;
						text-decoration: none;
						z-index: 2;
						transition: var(--boldpo-preset-hover-transition);

						&:hover {
							opacity: 0.85;
						}
					}
				}

				.boldpo-blog-content {
					max-width: 650px;
					margin: auto;
					padding: 30px 25px 25px;
					text-align: center;
					align-items: center;

					@media screen and (max-width: 767px) {
						max-width: 100%;
						width: 100%;
						padding: 20px 0;
					}
				}

				.boldpo-blog-title {
					margin-top: 12px;
					text-align: center;
					font-size: 2rem;

					@media screen and (max-width: 767px) {
						font-size: 1.5rem;
					}
				}

				.boldpo-blog-excerpt {
					text-align: center;
				}

				.boldpo-read-more {
					.boldpo-read-more-link {
						background: transparent;
						color: var(--boldpo-preset-color-primary);
						text-transform: uppercase;
						font-weight: 700;
						font-size: 13px;
						letter-spacing: 1px;
						padding: 0;
						border: 0px solid var(--boldpo-preset-color-tertiary);
						border-width: 0px 0px 1px 0px;
						box-shadow: none;

						&:hover {
							opacity: 0.8;
						}
					}
				}

				.boldpo-post-categories {
					margin: 0;
					position: absolute;
					bottom: -17px;
					left: 50%;
					transform: translateX(-50%);
				}
			}
		}

		&.style-7 {

			.boldpo-list-item-inner {
				flex-direction: row-reverse;
				background-color: var(--boldpo-preset-color-tertiary);
			}
		}

	}

	.boldpo-pagination {
		margin-top: 40px;
		margin-bottom: 10px;
		display: flex;
		justify-content: center;
		gap: 8px;

		a,
		span {
			display: inline-flex;
			justify-content: center;
			align-items: center;
			width: 30px;
			height: 30px;
			font-size: 14px;
			border-radius: 50%;
			text-decoration: none;
			transition: var(--boldpo-preset-hover-transition);
			box-shadow: 0 5px 10px #0e0d0d1a;
		}

		span.current {
			cursor: default;
		}
	}

	&.style-4 {
		.boldpost-load-more-btn {
			width: 100%;
			border-radius: 5px;
			background: transparent;
			color: var(--boldpo-preset-color-contrast-1);
			border: 1px solid var(--boldpo-preset-color-border);

			&:hover {
				background: var(--boldpo-preset-color-primary);
				color: var(--boldpo-preset-color-white);
				border-color: var(--boldpo-preset-color-primary);
			}
		}
	}

	&.style-5 {
		.boldpo-list-item {
			.boldpo-blog-img {
				width: 145px;
				height: 80px;
				position: relative;
				overflow: visible;
			}

			.boldpo-blog-content {
				width: calc(100% - 145px);
				padding: 0px 0px 0px 20px;
			}

			.boldpo-blog-title {
				font-size: 1.25rem;
			}

			.boldpo-post-metas {
				margin: 12px 0 5px;
			}
		}
	}

	&.style-6 {
		.boldpo-item-reading-time {
			background-color: var(--boldpo-preset-color-tertiary);
			font-size: 0.75rem;
			font-weight: 700;
			text-align: center;
			line-height: normal;
			padding: 2px;
			margin-top: 3px;
		}

		.boldpo-blog-img {
			width: 65px !important;
		}

		.boldpo-blog-content {
			width: calc(100% - 65px) !important;
			padding: 0px 0px 0px 20px;
		}

		.boldpo-blog-title {
			font-size: 0.875rem;
			font-weight: 600;
		}
	}
}