/* ==========================================================================
   Blog ("המגזין") — archive + single post, same language as the rest of the site:
   paper ground, panels with one big corner, ink type, everything on the 1192px grid.
   ========================================================================== */

/* ---------- full width: no sidebar on the archive or the post ---------- */
.blog .sidebar-container, .archive.category .sidebar-container, .single-post .sidebar-container { display: none !important; }
.blog .wd-content-layout, .archive.category .wd-content-layout, .single-post .wd-content-layout { --wd-col-lg: 12; }
.blog .site-content, .archive.category .site-content, .single-post .site-content { --wd-col-lg: 12 !important; --wd-col-md: 12 !important; --wd-col-sm: 12 !important; width: 100%; }
/* phones / tablets: the toolbar's "סרגל צד" item has no sidebar to open on an article (it only darkened the page) */
.single-post .wd-toolbar > .wd-toolbar-sidebar { display: none !important; }

/* ---------- archive title panel: a second line under "בלוג" ---------- */
.blog .wd-page-title .title::after {
	content: "סיפורים, מדריכים והמלצות מהצוות";
	display: block;
	margin-top: 10px;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.3;
	color: var(--lg-sage);
	letter-spacing: 0;
}

/* ---------- cards (archive, category, related posts) ---------- */
.blog .wd-blog-holder, .archive.category .wd-blog-holder {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
}
.blog .wd-blog-holder .wd-post, .archive.category .wd-blog-holder .wd-post {
	position: static !important; inset: auto !important; transform: none !important;
	width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
}
.wd-post.blog-post-loop .wd-post-inner {
	position: relative;
	display: flex; flex-direction: column;
	height: 100%;
	background: var(--lg-paper-2, #F8EEDC) !important;
	border-radius: 10px 10px 10px 48px;
	overflow: hidden;
	box-shadow: none !important;
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.wd-post.blog-post-loop:hover .wd-post-inner { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(66,19,28,.10) !important; }
.wd-post.blog-post-loop .wd-post-thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.wd-post.blog-post-loop .wd-post-thumb .wd-post-img, .wd-post.blog-post-loop .wd-post-thumb img {
	width: 100%; height: 100%; object-fit: cover; display: block; margin: 0;
	transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.wd-post.blog-post-loop:hover .wd-post-thumb img { transform: scale(1.04); }
/* date chip on the photo */
.wd-post.blog-post-loop .wd-post-date.wd-style-with-bg {
	position: absolute; top: 14px; inset-inline-start: 14px; inset-inline-end: auto;
	display: flex; flex-direction: row; align-items: baseline; gap: 4px;
	padding: 7px 11px; border-radius: 8px;
	background: var(--lg-paper, #F7F4F1); color: var(--lg-ink);
	font-family: var(--lg-font); line-height: 1;
}
.wd-post.blog-post-loop .wd-post-date .post-date-day { font-size: 18px; font-weight: 400; }
.wd-post.blog-post-loop .wd-post-date .post-date-month { font-size: 13px; text-transform: none; }
/* text */
.wd-post.blog-post-loop .wd-post-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; padding: 22px 24px 24px; text-align: right; }
.wd-post.blog-post-loop .wd-post-cat.wd-style-with-bg { margin: 0 0 12px; background: none; padding: 0; height: auto; line-height: 1.2; }
/* the theme prints its own card rules later in the page with the same weight; one more class wins:
   the card keeps its one big corner and its paper colour under the text */
.wd-post.blog-post-loop.blog-style-bg .wd-post-inner { border-radius: 10px 10px 10px 48px; }
.wd-post.blog-post-loop.blog-style-bg .wd-post-content { background: none; border-radius: 0; }
.wd-post.blog-post-loop .wd-post-cat a {
	display: inline-block; padding: 5px 12px; border-radius: 20px;
	background: var(--lg-ink); color: var(--lg-cream) !important;
	font-family: var(--lg-font); font-size: 13px; line-height: 1.2; text-transform: none; letter-spacing: 0;
}
.wd-post.blog-post-loop .wd-post-title { margin: 0 0 10px; font-size: 24px; line-height: 1.2; font-weight: 400; text-align: right; }
.wd-post.blog-post-loop .wd-post-title a { color: var(--lg-ink); }
.wd-post.blog-post-loop .wd-post-title a:hover { color: var(--lg-taupe-deep); }
.wd-post.blog-post-loop .wd-post-excerpt {
	margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--lg-ink-soft); text-align: right;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wd-post.blog-post-loop .wd-post-meta, .wd-post.blog-post-loop .wd-post-share, .wd-post.blog-post-loop .wd-post-reply { display: none !important; }
.wd-post.blog-post-loop .wd-post-read-more { margin-top: auto; }
.wd-post.blog-post-loop .wd-post-read-more a {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--lg-font); font-size: 16px; color: var(--lg-ink); text-transform: none; letter-spacing: 0;
	border: 0; padding: 0; background: none;
}
.wd-post.blog-post-loop .wd-post-read-more a::after { content: "←"; font-size: 18px; line-height: 1; transition: transform .3s ease; }
.wd-post.blog-post-loop:hover .wd-post-read-more a::after { transform: translateX(-4px); }
.wd-post.blog-post-loop .wd-post-read-more a::before { display: none; }

/* pagination */
.blog .wd-pagination, .archive.category .wd-pagination { margin-top: 48px; }
.wd-pagination .page-numbers { font-family: var(--lg-font); color: var(--lg-ink-soft); }
.wd-pagination .page-numbers.current { background: var(--lg-ink); color: #fff; border-radius: 8px; }

/* ---------- single post ---------- */
.single-post .wd-page-title { display: none !important; }
.single-post .post-single-page { max-width: none; }
.single-post .wd-single-post-header {
	max-width: none; margin: 36px 0 0; padding: 0;
	text-align: right; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
/* title block reads in a 800px column; the photo takes the whole grid */
.single-post .wd-single-post-header > :not(.wd-post-image) { width: 100%; max-width: 760px; margin-inline: auto; display: flex; justify-content: flex-start; }
.single-post .wd-single-post-header .wd-post-cat { margin-block: 0; background: none !important; padding: 0; }
.single-post .wd-single-post-header .wd-post-cat a {
	display: inline-block; padding: 5px 12px; border-radius: 20px;
	background: var(--lg-ink); color: var(--lg-cream) !important;
	font-family: var(--lg-font); font-size: 13px; line-height: 1.2; text-transform: none; letter-spacing: 0;
}
.single-post .wd-single-post-header .wd-post-title, .single-post .wd-single-post-header h1 {
	margin-block: 0; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; font-weight: 400; color: var(--lg-ink); text-align: right;
}
.single-post .wd-single-post-header .wd-post-meta { display: flex; justify-content: flex-start; gap: 16px; margin-block: 0; font-family: var(--lg-font); font-size: 15px; color: var(--lg-ink-soft); }
.single-post .wd-single-post-header .wd-post-author, .single-post .wd-single-post-header .wd-post-share, .single-post .wd-single-post-header .wd-post-reply, .single-post .wd-single-post-header .wd-post-views { display: none !important; }
.single-post .wd-single-post-header .wd-modified-date { display: none !important; }
.single-post .wd-single-post-header .wd-post-date { display: inline-flex; color: var(--lg-ink-soft); }

/* the photo: full grid width, one big corner */
.single-post .wd-single-post-header .wd-post-image {
	position: relative; width: 100%; margin: 16px 0 44px; border-radius: 10px 10px 10px 100px; overflow: hidden; aspect-ratio: 21 / 9; max-height: 560px;
}
.single-post .wd-single-post-header .wd-post-image img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }

/* reading column */
.single-post .post-single-page > .wd-entry-content {
	max-width: 760px; margin: 0 auto;
	font-family: var(--lg-font); font-size: 19px; line-height: 1.75; color: var(--lg-ink-soft); text-align: right;
}
.single-post .post-single-page > .wd-entry-content > * { margin-block: 0 22px; }
.single-post .post-single-page .wd-entry-content h2 { margin: 44px 0 14px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; font-weight: 400; color: var(--lg-ink); }
.single-post .post-single-page .wd-entry-content h3 { margin: 32px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 400; color: var(--lg-ink); }
.single-post .post-single-page .wd-entry-content h2:first-child, .single-post .post-single-page .wd-entry-content h3:first-child { margin-top: 0; }
.single-post .post-single-page .wd-entry-content strong { color: var(--lg-ink); font-weight: 700; }
.single-post .post-single-page .wd-entry-content a { color: var(--lg-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lg-gold); }
.single-post .post-single-page .wd-entry-content a:hover { color: var(--lg-taupe-deep); }
.single-post .post-single-page .wd-entry-content ul, .single-post .post-single-page .wd-entry-content ol { padding-inline-start: 22px; }
.single-post .post-single-page .wd-entry-content li { margin-bottom: 8px; }
.single-post .post-single-page .wd-entry-content li::marker { color: var(--lg-taupe-deep); }
.single-post .post-single-page .wd-entry-content blockquote {
	position: relative; margin: 34px 0; padding: 30px 34px;
	background: var(--lg-cream); border: 0 !important; border-radius: 10px 10px 10px 60px;
	font-size: clamp(22px, 2vw, 27px); line-height: 1.4; color: var(--lg-ink); font-style: normal;
}
.single-post .post-single-page .wd-entry-content blockquote p { margin: 0; }
.single-post .post-single-page .wd-entry-content blockquote cite { display: block; margin-top: 12px; font-size: 15px; color: var(--lg-taupe-deep); font-style: normal; }
.single-post .post-single-page .wd-entry-content img, .single-post .post-single-page .wd-entry-content figure { max-width: 100%; height: auto; border-radius: 10px 10px 10px 48px; }
.single-post .post-single-page .wd-entry-content figure { margin: 30px 0; }
.single-post .post-single-page .wd-entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--lg-ink-soft); text-align: right; }
.single-post .post-single-page .wd-entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.single-post .post-single-page .wd-entry-content th { background: var(--lg-cream); color: var(--lg-ink); font-weight: 700; padding: 10px 12px; text-align: right; }
.single-post .post-single-page .wd-entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--lg-line); }
/* tinted panels inside an article ("טיפ", "מה קונים") */
.lg-post-panel {
	margin: 34px 0; padding: 26px 30px;
	background: var(--lg-paper-2, #F8EEDC); border-radius: 10px 60px 10px 10px;
	font-size: 17px; line-height: 1.6;
}
.lg-post-panel > :first-child { margin-top: 0; }
.lg-post-panel > :last-child { margin-bottom: 0; }
.lg-post-panel__title { display: block; margin-bottom: 8px; font-size: 20px; color: var(--lg-ink); }
/* closing call to action */
.lg-post-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
	margin: 44px 0 0; padding: 30px 34px;
	background: var(--lg-hero); border-radius: 10px 10px 10px 80px; color: var(--lg-cream);
}
.lg-post-cta p { margin: 0; font-size: 22px; line-height: 1.3; color: var(--lg-cream); }
.lg-post-cta a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
	background: var(--lg-cream); color: var(--lg-ink) !important; text-decoration: none !important;
	border-radius: 8px; font-size: 18px; white-space: nowrap; transition: transform .25s ease, background-color .25s ease;
}
.lg-post-cta a:hover { background: #fff; transform: translateY(-2px); }
.single-post .post-single-page > .wd-entry-content > .lg-post-panel { margin-block: 34px; }
.single-post .post-single-page > .wd-entry-content > .lg-post-cta { margin-block: 44px 0; }
.lg-post-panel > p:empty, .lg-post-cta > p:empty { display: none; }
.lg-post-cta > p:first-child { flex: 1 1 320px; }

/* under the article: tags + share out; prev / back / next as one quiet row */
.single-post .wd-page-nav { max-width: 760px; margin: 40px auto 0; padding: 18px 0; border-top: 1px solid var(--lg-line); border-bottom: 1px solid var(--lg-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.single-post .wd-page-nav .wd-page-nav-btn a { display: flex; flex-direction: column; gap: 4px; font-family: var(--lg-font); color: var(--lg-ink); }
.single-post .wd-page-nav .wd-page-nav-btn .wd-label { font-size: 13px; color: var(--lg-ink-soft); text-transform: none; letter-spacing: 0; }
.single-post .wd-page-nav .wd-page-nav-btn .wd-entities-title { font-size: 17px; line-height: 1.3; }
.single-post .wd-page-nav .wd-page-nav-icon { display: none; }
.single-post .wd-page-nav .wd-page-nav-btn a { padding-inline: 0; }
.single-post .wd-page-nav .back-to-archive { color: var(--lg-ink-soft); }
.single-post .wd-single-footer, .single-post .wd-post-tags, .single-post .tags-links, .single-post .wd-single-post-author, .single-post .author-info, .single-post .wd-post-share, .single-post .single-post-share { display: none !important; }
.single-post .wd-single-post-nav, .single-post .post-navigation, .single-post .wd-posts-navigation {
	max-width: 760px; margin: 44px auto 0; padding: 0; border: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.single-post .wd-single-post-nav > *, .single-post .post-navigation .nav-links > *, .single-post .wd-posts-navigation > * {
	padding: 18px 22px; border-radius: 8px; background: var(--lg-paper-2, #F8EEDC);
	font-family: var(--lg-font); text-align: right;
}
.single-post .wd-single-post-nav a, .single-post .post-navigation a { color: var(--lg-ink); font-size: 17px; line-height: 1.3; }
.single-post .wd-single-post-nav .wd-post-nav-link-title, .single-post .post-navigation .meta-nav { display: block; font-size: 13px; color: var(--lg-ink-soft); margin-bottom: 6px; }
.single-post .wd-single-post-nav img, .single-post .post-navigation img { display: none; }

/* related posts: the same cards, in a row */
.single-post .related-posts-slider { margin-top: 64px; }
.single-post .related-posts-slider .title { font-family: var(--lg-font); font-size: clamp(28px, 3vw, 44px); font-weight: 400; color: var(--lg-ink); text-align: right; margin-bottom: 22px; }
.single-post .related-posts-slider .title::before, .single-post .related-posts-slider .title::after { display: none; }
.single-post .related-posts-slider .wd-carousel-item { height: auto; }
.single-post .related-posts-slider .wd-post { height: 100%; }
/* comments */
.single-post .comments-area { max-width: 760px; margin: 56px auto 0; }
.single-post .comments-area .comment-reply-title, .single-post .comments-area .comments-title { font-family: var(--lg-font); font-size: 28px; font-weight: 400; color: var(--lg-ink); text-align: right; }
.single-post .comments-area .comment-form-comment textarea, .single-post .comments-area input[type="text"], .single-post .comments-area input[type="email"] { border-radius: 8px; border-color: var(--lg-line); background: #fff; }
.single-post .comments-area .comment-form label { color: var(--lg-ink); }
.single-post .comments-area .form-submit .submit { background: var(--lg-ink) !important; color: #fff !important; border-radius: 8px !important; min-height: 48px; }
.single-post .comments-area .comment-form-cookies-consent, .single-post .comments-area .comment-form-url { display: none; }

/* ---------- tablets / phones ---------- */
@media (max-width: 1024px) {
	.blog .wd-blog-holder, .archive.category .wd-blog-holder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.wd-post.blog-post-loop .wd-post-content { padding: 18px 20px 20px; }
	.wd-post.blog-post-loop .wd-post-title { font-size: 22px; }
}
@media (max-width: 767px) {
	.blog .wd-blog-holder, .archive.category .wd-blog-holder { grid-template-columns: 1fr; gap: 20px; }
	.wd-post.blog-post-loop .wd-post-inner { border-radius: 8px 8px 8px 36px; }
	.wd-post.blog-post-loop .wd-post-content { padding: 18px 18px 20px; }
	.single-post .wd-single-post-header { margin: 20px 0 0; gap: 10px; }
	.single-post .wd-single-post-header .wd-post-image { aspect-ratio: 4 / 3; border-radius: 8px 8px 8px 56px; margin: 10px 0 26px; }
	.single-post .post-single-page > .wd-entry-content { font-size: 17px; line-height: 1.7; }
	/* phones: one row, the newer article's title on the right, the older one's on the left */
	.single-post .wd-page-nav { flex-wrap: nowrap; }
	.single-post .wd-page-nav .wd-page-nav-btn { flex: 1 1 0; min-width: 0; max-width: none; }
	.single-post .wd-page-nav .wd-page-nav-btn .wd-entities-title { display: block; font-size: 15px; }
	.single-post .post-single-page .wd-entry-content blockquote { padding: 22px 20px; border-radius: 8px 8px 8px 40px; }
	.lg-post-panel { padding: 20px; border-radius: 8px 40px 8px 8px; }
	.lg-post-cta { padding: 22px 20px; border-radius: 8px 8px 8px 48px; }
	.lg-post-cta p { font-size: 19px; }
	.lg-post-cta a { width: 100%; justify-content: center; }
	.lg-post-cta > p:last-child { flex: 1 1 100%; }
	.wd-post.blog-post-loop.blog-style-bg .wd-post-inner { border-radius: 8px 8px 8px 36px; }
	.single-post .wd-single-post-nav, .single-post .post-navigation, .single-post .wd-posts-navigation { grid-template-columns: 1fr; }
}
