/* =========================================================
   KomKom Blog — Archive + Single Post styles
   ========================================================= */

.komkom-post-content {
	max-width: 720px;
	margin: auto;
}

body.single-post .page-top {
	display: none;
}

body.single-post #main {
	position: relative;
}

body.single-post #main::before {
	content: "";
	display: table;
	clear: both;
}

body.single-post {
	overflow-x: hidden;
}
.post-image.single{
	text-align: center;
}
.post-image.single img{
	border-radius: 20px;
}
body.single-post blockquote{
	border-right: 2px solid #111;
	font-size: 18px;
	line-height: 1.6;
	color: #888;
	margin: 0 0 4.2rem 0;
	padding: 0.1rem 3.9rem 0.1rem 0;
	border-radius: 0;
}
body.single-post blockquote:before{
	display: none !important;
}
body.single-post blockquote p{
	margin: 0 0 30px;
}
body.single-post blockquote p:last-child{
	margin: 0;
}
body.single-post p + ul{
	margin-top: -24px;
}
body.single-post ul li{
	margin-right: 1.3rem;
}
.komkom-post-body h2,
.komkom-post-body h3,
.komkom-post-body p.lead{
    font-weight: 700;
    margin: 32px 0 5px;
    font-size: 20px;
    line-height: 1.2;
}
/* =========================================================
   Single Post Breadcrumbs (Figma Design Spec)
   ========================================================= */

.komkom-single-breadcrumbs {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 21px auto;
	max-width: 1352px;
	font-family: 'Assistant', sans-serif;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0px;
	direction: rtl; /* RTL layout for Hebrew */
}

/* Links (בית, Blog) */
.komkom-single-breadcrumbs a {
	color: #888888;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s ease;

}

.komkom-single-breadcrumbs a:hover {
	color: #111111;
}

/* Separator icons (< / >) */
.komkom-single-breadcrumbs i {
	font-size: 8px;
	color: #888888;
}

/* Current post title */
.komkom-single-breadcrumbs span.current {
	color: #111111;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 400px;
}

@media (max-width: 768px) {
	.komkom-single-breadcrumbs span.current {
		max-width: 200px;
	}
}

/* ---------- BLOG ARCHIVE ---------- */
body.blog .page-top {
	display: none;
}
body.blog .container{
	max-width: 1394px !important;
}

.komkom-breadcrumbs {
	display: flex;
	justify-content: start;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #888;
	margin-bottom: 57px;
	margin-top: 20px;
	text-transform: uppercase;
}
.komkom-breadcrumbs i{
	font-size: 8px;
}
.komkom-breadcrumbs a {
	color: #888;
}

.komkom-breadcrumbs a:hover {
	color: #111;
}

.komkom-breadcrumbs span {
	color: #888;
}

.komkom-blog-title {
	font-size: 36px;
	font-weight: 700;
	margin: 3rem 0 0.7rem;
	text-align: center;
	color: #111;
}

.komkom-blog-controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 3rem;
	margin-top: 0.7rem;
	padding: 0 0 20px;
	border-bottom: 1px solid #e2e2e2;
}

.komkom-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.komkom-blog-count {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
	line-height: 40px;
	margin-inline-end: 4px;
}

.komkom-filter-btn {
	background: #f7f7f7;
	border: none;
	padding: 8px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #000;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.komkom-filter-btn:hover {
	background: #ececec;
}

.komkom-filter-btn.active {
	background: #000;
	color: #fff;
}

.komkom-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 35px 24px;
	transition: opacity 0.2s ease;
	margin-bottom: 3rem;
}

.komkom-blog-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

@media (max-width: 991px) {
	.komkom-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.komkom-blog-grid {
		grid-template-columns: 1fr;
	}
}

.komkom-blog-nothing {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 0;
	color: #777;
}

/* ---------- Card ---------- */
.komkom-blog-card {
	display: flex;
	flex-direction: column;
}

.komkom-blog-card-img {
	position: relative;
	display: block;
	overflow: hidden;
	margin-bottom: 15px;
	background: #f2f2f2;
}

.komkom-blog-card-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.komkom-blog-card-img:hover img {
	transform: scale(1.04);
}

.komkom-blog-card-badge {
	background: transparent;
	color: #888;
	font-weight: 700;
	font-size: 10px;
	line-height: 1;
	padding: 2px 4px;
	letter-spacing: 0.8pt;
	border: 1px solid #E2E2E2;
}

.komkom-blog-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 25px;
	min-height: 50px;
	color: #111;
	display: block;
	margin-bottom: 10px;
}

.komkom-blog-card-title a {
	color: #111;
	text-decoration: none;
}

.komkom-blog-card-title a:hover {
	text-decoration: underline;
}

.komkom-blog-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #888;
	margin: 0 0 14px;
}

.komkom-blog-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	margin-top: auto;
	padding: 5px 0 0;
	border-top: 1px solid #E2E2E2;
}

.komkom-blog-card-link {
	font-weight: 700;
	color: #111;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ---------- Pagination ---------- */
.komkom-blog-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.komkom-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	color: #000;
	font-size: 0.875rem;
}

.komkom-blog-pagination .page-numbers.current {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ---------- SINGLE POST ---------- */
.komkom-post-meta-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 3rem 0 20px;
	font-size: 0.85rem;
	color: #777;
}

.komkom-post-badge {
	background: transparent;
	color: #888;
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	padding: 5px 6px;
	letter-spacing: 0.8pt;
	border: 1px solid #E2E2E2;
}

.komkom-post-date,
.komkom-post-readtime {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	direction: ltr;
	font-size: 12px;
	line-height: 16px;
	color: #888;
}
.komkom-post-meta-row .ico{
	display: inline-block;
	vertical-align: middle;
	width: 12px;
	background-size: contain;
	height: 12px;
	background-repeat: no-repeat;
}
.komkom-post-meta-row .ico.i-calendar{
	background-image: url(../../img/calendar.svg);
}
.komkom-post-meta-row .ico.i-clock{
	background-image: url(../../img/clock.svg);
}
.komkom-post-title {
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 24px;
	color: #111;
}

.komkom-post-body {
	font-size: 1rem;
	line-height: 1.9;
	color: #333;
	padding-bottom: 3.4rem;
	border-bottom: 1px solid #e2e2e2;
}
.komkom-post-body p{
	margin-bottom: 24px;
}
.komkom-back-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: 30px;
	font-weight: 700;
	color: #111;
	margin-bottom: 40px;
}
.komkom-back-link i{
	font-size: 10px;
}

/* ---------- Related posts ---------- */
.komkom-related-posts {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #F0F0F0;
	margin-top: 3rem;
}

.related-posts-container {
	padding: 3.2rem 0 2rem;
	margin: auto;
	max-width: 1230px;
}

.komkom-related-title {
	font-size: 20px;
	font-weight: 900;
	margin-bottom: 30px;
}

.komkom-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 991px) {
	.komkom-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.komkom-related-grid {
		grid-template-columns: 1fr;
	}
}

.komkom-related-card {
	display: flex;
	flex-direction: column;
}

.komkom-related-card-img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 15px;
	background: #f2f2f2;
	border: 1px solid #E2E2E2;
}

.komkom-related-card-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.komkom-related-card-badge {
	background: transparent;
	color: #888;
	font-weight: 700;
	font-size: 10px;
	line-height: 1;
	padding: 2px 4px;
	letter-spacing: 0.8pt;
	border: 1px solid #E2E2E2;
}

.komkom-related-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 25px;
	color: #111;
	display: block;
	margin-bottom: 10px;
	min-height: 50px;
}

.komkom-related-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	margin-top: auto;
	padding: 2px 0 0;
	border-top: 1px solid #E2E2E2;
}

.komkom-related-card-link {
	font-weight: 700;
	color: #111;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.komkom-related-card-link i{
	font-size: 10px;
}


.komkom-blog-card-img-wrapper {
	width: 100%;
	max-width: 430px;
	height: 260px;
	overflow: hidden;
	position: relative;
}

.komkom-blog-card-img-wrapper img,
img.komkom-blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

@media (max-width: 480px) {
	.komkom-blog-card-img-wrapper {
		height: auto;
		aspect-ratio: 430 / 260;
	}
}