/*
Theme Name: taxexpert
Theme URI: https://kablan4sale.com/
Author: Doron
Description: [גרסה 3.5.1 - 2026-11] תבנית עצמאית ומודרנית, בהשראת Twenty Fifteen, בעיצוב כהה עם כותרת דינמית, תפריט צד, ותפריט פעולות קבוע (וואטסאפ וטלפון).
Version: 3.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taxexpert
Tags: dark, one-column, right-sidebar, custom-menu, translation-ready, rtl-language-support

This theme is an independent, standalone theme (not a child theme).
It was built starting from the structure of the WordPress default theme
"Twenty Fifteen" (GPLv2, https://wordpress.org/themes/twentyfifteen/),
with the templates, styling, and behaviour substantially rewritten.
*/

/* =========================================================
   Table of Contents
   1. Variables & Reset
   2. Typography & Base
   3. Layout (Header / Sidebar-Menu / Content / Action bar)
   4. Site Header (dynamic title)
   5. Mobile Menu Toggle
   6. Sidebar / Navigation Menu
   7. Content Cards (rounded, high contrast)
   8. Entry meta / Tags
   9. Comments
   10. Forms & Buttons (general)
   11. Fixed Bottom Action Bar (WhatsApp + Phone)
   12. Responsive breakpoints
   ========================================================= */

/* 1. Variables & Reset ------------------------------------ */
:root {
	--k4s-bg: #070b14;
	--k4s-bg-panel: #121a2c;
	--k4s-bg-panel-alt: #182238;
	--k4s-chip-bg: #2a3d68;
	--k4s-chip-border: #4a67a0;
	--k4s-border: #26314a;
	--k4s-text: #f3f5fa;
	--k4s-text-muted: #b7c0d4;
	--k4s-accent: #ffb020;
	--k4s-accent-2: #ff7a3d;
	--k4s-link: #6fc3ff;
	--k4s-whatsapp: #25d366;
	--k4s-phone: #2f8fff;
	--k4s-floating: #ff2d78;
	--k4s-radius-lg: 22px;
	--k4s-radius-md: 14px;
	--k4s-radius-sm: 10px;
	--k4s-maxw: 920px;
	--k4s-sidebar-w: 270px;
	--k4s-actionbar-h: 64px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-bottom: var(--k4s-bar-space, 100px);
}

body {
	margin: 0;
	background: var(--k4s-bg);
	color: var(--k4s-text);
	font-family: "Segoe UI", "Heebo", "Arial Hebrew", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.75;
	direction: rtl;
	padding-bottom: var(--k4s-bar-space, calc(var(--k4s-actionbar-h) + 40px));
}

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--k4s-radius-md);
}

a {
	color: var(--k4s-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--k4s-accent);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -60px;
	right: 6px;
	z-index: 999999;
	background: var(--k4s-accent);
	color: #14100a;
	padding: 10px 18px;
	border-radius: var(--k4s-radius-sm);
}

.skip-link:focus {
	top: 6px;
}

/* 3. Layout ------------------------------------------------ */
#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.k4s-body {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	gap: 28px;
	padding: 24px 20px 40px;
}

/* 4. Site Header (dynamic title) ---------------------------- */
#masthead {
	width: 100%;
	background: linear-gradient(135deg, #0c1220 0%, #131b30 100%);
	border-bottom: 1px solid var(--k4s-border);
	padding: 22px 20px;
}

.k4s-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
}

.site-title,
.k4s-page-title {
	display: inline-block;
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.35;
	background: linear-gradient(90deg, var(--k4s-accent), var(--k4s-accent-2));
	color: #14100a;
	padding: 10px 26px;
	border-radius: var(--k4s-radius-lg);
	text-align: center;
}

.site-title a,
.k4s-page-title a {
	color: inherit !important;
	text-decoration: none !important;
}

.site-description {
	margin: 0;
	color: var(--k4s-text-muted);
	font-size: 16px;
}

/* 4a. Site banner (header image from Customizer) -------------- */
.k4s-site-banner {
	width: 100%;
	line-height: 0;
	background: #0c1220;
	border-bottom: 1px solid var(--k4s-border);
}

.k4s-site-banner a {
	display: block;
}

.k4s-site-banner img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* 5. Mobile menu toggle -------------------------------------- */
.secondary-toggle {
	display: none;
	width: 100%;
	background: var(--k4s-bg-panel-alt);
	border: 1px solid var(--k4s-border);
	color: var(--k4s-text);
	font-size: 17px;
	font-weight: 700;
	padding: 12px 16px;
	border-radius: var(--k4s-radius-sm);
	cursor: pointer;
	text-align: center;
}

.secondary-toggle:hover,
.secondary-toggle.toggled-on {
	background: var(--k4s-accent);
	color: #14100a;
	border-color: var(--k4s-accent);
}

.secondary-toggle .k4s-icon {
	margin-inline-end: 8px;
}

/* 6. Sidebar / Navigation menu -------------------------------- */
#sidebar {
	flex: 0 0 var(--k4s-sidebar-w);
	width: var(--k4s-sidebar-w);
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation .nav-menu {
	background: var(--k4s-bg-panel);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-md);
	padding: 10px;
}

.main-navigation li {
	border-bottom: 1px solid var(--k4s-border);
}

.main-navigation li:last-child {
	border-bottom: none;
}

.main-navigation a {
	display: block;
	padding: 12px 14px;
	background: var(--k4s-chip-bg);
	color: var(--k4s-text);
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	border-radius: var(--k4s-radius-sm);
	margin-bottom: 4px;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	background: var(--k4s-bg-panel-alt);
	color: var(--k4s-accent);
}

.main-navigation .sub-menu {
	display: none;
	margin-inline-start: 12px;
}

.main-navigation .sub-menu.toggled-on {
	display: block;
}

.main-navigation .dropdown-toggle {
	background: none;
	border: none;
	color: var(--k4s-text-muted);
	font-size: 14px;
	cursor: pointer;
	padding: 6px 10px;
}

/* 7. Content cards (rounded, high contrast) --------------------- */
#content {
	flex: 1 1 auto;
	min-width: 0;
}

.k4s-card,
article,
#comments,
.k4s-not-found {
	background: var(--k4s-bg-panel);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-lg);
	padding: 28px 30px;
	margin: 0 0 24px;
}

.entry-title {
	margin-top: 0;
	font-size: 26px;
	font-weight: 800;
	color: var(--k4s-text);
	text-align: center;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-content {
	font-size: 18px;
	color: var(--k4s-text);
}

.entry-content p {
	margin: 0 0 1.1em;
}

.entry-content img,
.wp-caption {
	border-radius: var(--k4s-radius-md);
}

.entry-content h1:not(.k4s-faq-title),
.entry-content h2:not(.k4s-faq-title),
.entry-content h3:not(.k4s-faq-q),
.entry-content h4,
.entry-content h5,
.entry-content blockquote {
	display: block;
	background: linear-gradient(90deg, var(--k4s-accent), var(--k4s-accent-2));
	color: #14100a;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	border: none;
	border-radius: var(--k4s-radius-md);
	padding: 14px 22px;
	margin: 1.2em 0;
}

.entry-content blockquote p {
	margin: 0;
	color: inherit;
}

.entry-content pre,
.entry-content code {
	background: #0d1220;
	border-radius: var(--k4s-radius-sm);
	color: #e8ecf5;
}

.entry-content pre {
	padding: 16px;
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border-radius: var(--k4s-radius-sm);
	overflow: hidden;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--k4s-border);
	padding: 10px 12px;
}

/* 8. Entry meta / Tags ------------------------------------------ */
.entry-footer,
.k4s-tags-block {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--k4s-border);
	font-size: 15px;
	color: var(--k4s-text-muted);
}

.entry-footer > span {
	display: inline-block;
	margin-inline-end: 14px;
}

.k4s-tags-title {
	font-weight: 700;
	color: var(--k4s-text);
	margin-inline-end: 8px;
}

.tags-links a,
.k4s-tags-block a {
	display: inline-block;
	background: var(--k4s-chip-bg);
	border: 1px solid var(--k4s-chip-border);
	color: var(--k4s-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 999px;
	margin: 4px 4px 0 0;
}

.tags-links a:hover,
.k4s-tags-block a:hover {
	background: var(--k4s-accent);
	color: #14100a;
	border-color: var(--k4s-accent);
}

/* 9. Comments ------------------------------------------------------ */
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	background: var(--k4s-bg-panel-alt);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-md);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.comment-reply-title,
.comments-title {
	font-size: 22px;
	font-weight: 800;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--k4s-bg);
	border: 1px solid var(--k4s-border);
	color: var(--k4s-text);
	border-radius: var(--k4s-radius-sm);
	padding: 10px 14px;
	font-size: 16px;
	margin-bottom: 12px;
}

/* 10. General buttons ------------------------------------------------ */
.k4s-btn,
.comment-form input[type="submit"],
button,
input[type="submit"] {
	display: inline-block;
	background: var(--k4s-accent);
	color: #14100a;
	border: none;
	font-weight: 700;
	font-size: 16px;
	padding: 12px 22px;
	border-radius: var(--k4s-radius-sm);
	cursor: pointer;
	text-decoration: none;
}

.k4s-btn:hover,
.comment-form input[type="submit"]:hover {
	background: var(--k4s-accent-2);
	color: #14100a;
}

/* 11. Fixed bottom action bar (WhatsApp + Phone) ---------------------- */
.k4s-action-bar {
	position: fixed;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 9999;
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.k4s-action-bar a {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 9px 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	border-radius: var(--k4s-radius-md);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.k4s-action-bar .k4s-whatsapp {
	background: var(--k4s-whatsapp);
	color: #14100a;
}

.k4s-action-bar .k4s-phone {
	background: var(--k4s-phone);
	color: #14100a;
}

.k4s-action-bar a:hover {
	filter: brightness(1.08);
}

@media (min-width: 782px) {
	.k4s-action-bar {
		max-width: 1200px;
		margin: 0 auto;
		left: 0;
		right: 0;
		padding-inline-start: calc(20px + var(--k4s-sidebar-w) + 28px);
		padding-inline-end: 20px;
	}
}

/* 11b. Rounded backgrounds for text with a custom background color ------ */
.has-background {
	border-radius: var(--k4s-radius-md);
	padding: 14px 18px;
}

/* 11c. FAQ (שאלות ותשובות) block — always visible, no click needed ------ */
.k4s-faq {
	margin-top: 30px;
}

.k4s-faq-title {
	text-align: center;
	margin-bottom: 20px;
}

.k4s-faq-item {
	background: var(--k4s-bg-panel-alt);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-md);
	padding: 18px 22px;
	margin-bottom: 14px;
}

.k4s-faq-q {
	display: inline-block;
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 800;
	color: #14100a;
	background: linear-gradient(90deg, var(--k4s-accent), var(--k4s-accent-2));
	border-radius: var(--k4s-radius-sm);
	padding: 6px 16px;
}

.k4s-faq-a {
	margin: 0;
	color: var(--k4s-text);
	font-size: 17px;
	line-height: 1.7;
}

/* 11d. Floating buttons (added ad-hoc from the editor) ----------------- */
.k4s-floating-btn {
	position: fixed;
	z-index: 9998;
	margin: 0 !important;
}

.k4s-floating-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--k4s-floating) !important;
	color: #ffffff !important;
	font-weight: 800;
	font-size: 15px;
	padding: 10px 18px;
	border-radius: 999px !important;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.k4s-floating-btn .wp-block-button__link:hover {
	filter: brightness(1.08);
}

.k4s-floating-btn--bottom-right {
	bottom: calc(var(--k4s-actionbar-h) + 20px);
	right: 16px;
}

.k4s-floating-btn--bottom-left {
	bottom: calc(var(--k4s-actionbar-h) + 20px);
	left: 16px;
}

.k4s-floating-btn--top-right {
	top: 16px;
	right: 16px;
}

.k4s-floating-btn--top-left {
	top: 16px;
	left: 16px;
}

.k4s-floating-btn--side-right,
.k4s-floating-btn--side-left {
	top: 50%;
	transform: translateY(-50%);
}

.k4s-floating-btn--side-right {
	right: 0;
}

.k4s-floating-btn--side-left {
	left: 0;
}

.k4s-floating-btn--side-right .wp-block-button__link,
.k4s-floating-btn--side-left .wp-block-button__link {
	writing-mode: vertical-rl;
	text-orientation: upright;
	/* Hebrew reads top -> bottom (first letter on top, last letter at the bottom) */
	display: inline-block;
	direction: ltr;
	unicode-bidi: bidi-override;
	white-space: nowrap;
	width: auto;
	height: auto;
	letter-spacing: 1px;
	padding: 14px 8px;
	border-radius: 999px 0 0 999px !important;
}

.k4s-floating-btn--side-left .wp-block-button__link {
	border-radius: 0 999px 999px 0 !important;
}

/* 11e. Intro box (tag description / page intro) ------------------------ */
.k4s-archive-intro,
.k4s-page-intro {
	background-color: #182238;
	border-radius: var(--k4s-radius-md);
	padding: 18px 22px;
	margin: 0 0 18px;
	color: var(--k4s-text);
	font-size: 17px;
	line-height: 1.8;
}

.k4s-archive-intro > :first-child,
.k4s-page-intro > :first-child {
	margin-top: 0;
}

.k4s-archive-intro > :last-child,
.k4s-page-intro > :last-child {
	margin-bottom: 0;
}

.k4s-archive-intro a,
.k4s-page-intro a {
	color: var(--k4s-link);
}

/* 12. Responsive ------------------------------------------------------ */
@media (max-width: 781px) {
	.k4s-body {
		flex-direction: column;
		padding: 16px 14px 30px;
		gap: 16px;
	}

	#masthead {
		width: 100%;
		padding: 16px 14px;
	}

	.k4s-header-inner {
		width: 100%;
	}

	.site-title,
	.k4s-page-title {
		font-size: 24px;
	}

	.secondary-toggle {
		display: block;
	}

	#sidebar {
		width: 100%;
		flex: 1 1 100%;
		display: none;
	}

	#sidebar.toggled-on {
		display: block;
	}

	.k4s-card,
	article,
	#comments,
	.k4s-not-found {
		padding: 20px 18px;
		border-radius: var(--k4s-radius-md);
	}
}

@media (min-width: 782px) {
	#sidebar {
		display: block !important;
	}
}

/* 13. Mobile refinements (max-width: 781px) — desktop is untouched ------ */
@media (max-width: 781px) {

	/* 13a. Post/page card goes edge-to-edge; inner text padding stays (18px) */
	.k4s-body {
		padding: 4px 0 30px;
		gap: 10px;
	}

	.k4s-card,
	article,
	#comments,
	.k4s-not-found {
		border-radius: 0;
		border-inline-width: 0;
	}

	.k4s-archive-intro,
	.k4s-page-intro {
		border-radius: 0;
		padding: 16px 18px;
		margin-bottom: 10px;
	}

	/* keep the opened menu panel from touching the screen edge */
	#sidebar {
		padding: 0 14px;
	}

	/* 13b. Page/post title in the header bar — smaller, tighter */
	#masthead {
		padding: 10px 14px 8px;
	}

	.k4s-header-inner {
		gap: 8px;
	}

	.site-title,
	.k4s-page-title {
		font-size: 20px;
		line-height: 1.3;
		padding: 6px 16px;
		border-radius: var(--k4s-radius-md);
	}

	/* archive/list titles */
	.entry-title {
		font-size: 21px;
		line-height: 1.3;
		margin-bottom: 0.5em;
	}

	/* 13c. Headings inside content (H1–H5) — smaller font, padding, margins, line-height */
	.entry-content h1:not(.k4s-faq-title),
	.entry-content h2:not(.k4s-faq-title),
	.entry-content h3:not(.k4s-faq-q),
	.entry-content h4,
	.entry-content h5,
	.entry-content blockquote {
		font-size: 19px;
		line-height: 1.3;
		padding: 7px 14px;
		margin: 0.8em 0 0.6em;
	}

	.entry-content h1:not(.k4s-faq-title) {
		font-size: 21px;
	}

	.entry-content h2:not(.k4s-faq-title) {
		font-size: 20px;
	}

	.entry-content h5 {
		font-size: 17px;
	}

	.k4s-faq-title {
		margin-bottom: 12px;
	}

	.k4s-faq-q {
		font-size: 17px;
		line-height: 1.35;
		padding: 4px 12px;
	}

	/* 13d. Menu button — slimmer, and a distinct blue-ish background */
	.secondary-toggle {
		padding: 6px 16px;
		line-height: 1.4;
		font-size: 16px;
		background: #23386a;
		border-color: #3f5c9a;
	}

	/* 13e. Tighter spacing between blocks inside the post */
	.entry-content p {
		margin: 0 0 0.75em;
	}

	.entry-content ul,
	.entry-content ol,
	.entry-content figure,
	.entry-content .wp-block-image,
	.entry-content .wp-block-group,
	.entry-content .wp-block-columns,
	.entry-content .wp-block-buttons,
	.entry-content .wp-block-table,
	.entry-content table,
	.entry-content pre {
		margin-top: 0;
		margin-bottom: 0.75em;
	}

	.has-background {
		padding: 10px 14px;
	}

	.k4s-faq {
		margin-top: 18px;
	}

	.k4s-faq-item {
		padding: 12px 16px;
		margin-bottom: 10px;
	}

	/* 13f. Bullets/numbers closer to the screen edge */
	.entry-content ul,
	.entry-content ol {
		padding-inline-start: 22px;
		padding-inline-end: 0;
	}

	.entry-content li > ul,
	.entry-content li > ol {
		margin-bottom: 0;
	}
}

/* 14. Trust footer, author box, last-updated (v3.2) ------------------- */
.k4s-footer {
	width: 100%;
	max-width: 1200px;
	margin: 10px auto 0;
	padding: 0 20px 24px;
}

.k4s-footer-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 24px;
	padding: 26px 24px;
	background: var(--k4s-bg-panel);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-lg);
}

.k4s-footer-name {
	font-weight: 700;
	font-size: 1.1em;
	color: var(--k4s-text);
}

.k4s-footer-title {
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--k4s-accent);
}

.k4s-footer-tagline,
.k4s-footer-creds,
.k4s-footer-disclaimer,
.k4s-footer-copy {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--k4s-text-muted);
}

.k4s-footer-creds {
	color: var(--k4s-text);
	font-weight: 600;
}

.k4s-footer-menu,
.k4s-footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.k4s-footer-menu li {
	margin: 4px 0;
}

.k4s-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.k4s-footer-social a {
	display: inline-block;
	padding: 3px 12px;
	font-size: 13px;
	text-decoration: none;
	background: var(--k4s-chip-bg);
	border: 1px solid var(--k4s-chip-border);
	border-radius: 999px;
	color: var(--k4s-text);
}

.k4s-footer-bottom {
	padding: 14px 6px 0;
	text-align: center;
}

.k4s-footer-logo img {
	max-height: 56px;
	width: auto;
}

.k4s-updated,
.k4s-reviewed {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--k4s-text-muted);
}

.k4s-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 26px 0 0;
	padding: 16px 18px;
	background: var(--k4s-bg-panel-alt);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-md);
}

.k4s-author-avatar img {
	border-radius: 50%;
	display: block;
}

.k4s-author-name {
	font-weight: 700;
	font-size: 1.05em;
}

.k4s-author-job,
.k4s-author-cred {
	font-weight: 400;
	font-size: 14px;
	color: var(--k4s-text-muted);
}

.k4s-author-bio {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.6;
}

.k4s-author-links {
	margin-top: 8px;
	font-size: 14px;
}

h2[id],
h4[id] {
	scroll-margin-top: 100px;
}

/* 15. Answer box + CTA box patterns (v3.3) ---------------------------- */
.k4s-answer {
	margin: 0 0 20px;
	padding: 14px 18px;
	background: var(--k4s-bg-panel-alt);
	border-inline-start: 4px solid var(--k4s-accent);
	border-radius: var(--k4s-radius-md);
}

.k4s-answer-label {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--k4s-accent);
}

.k4s-answer p:last-child {
	margin-bottom: 0;
}

.k4s-cta {
	margin: 26px 0;
	padding: 20px 22px;
	text-align: center;
	background: var(--k4s-bg-panel-alt);
	border: 1px solid var(--k4s-chip-border);
	border-radius: var(--k4s-radius-lg);
}

/* 12. Companies for sale (cards) ---------------------------------- */
.k4s-co-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
	gap: 22px;
	margin: 0 0 24px;
}

.k4s-co-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: linear-gradient(180deg, var(--k4s-bg-panel-alt) 0%, var(--k4s-bg-panel) 100%);
	border: 1px solid var(--k4s-chip-border);
	border-radius: var(--k4s-radius-lg);
	padding: 22px 20px 20px;
	margin: 0 0 24px;
	overflow: hidden;
	text-align: center;
}

.k4s-co-grid .k4s-co-card {
	margin: 0;
}

.k4s-co-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--k4s-accent), var(--k4s-accent-2));
}

.k4s-co-banner {
	align-self: center;
	background: rgba(255, 176, 32, 0.12);
	color: var(--k4s-accent);
	border: 1px solid rgba(255, 176, 32, 0.45);
	border-radius: 999px;
	padding: 5px 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.k4s-co-class {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--k4s-text);
	padding: 14px 10px;
	border-top: 1px solid var(--k4s-border);
	border-bottom: 1px solid var(--k4s-border);
}

.k4s-co-class a {
	color: inherit;
	text-decoration: none;
}

.k4s-co-class a:hover {
	color: var(--k4s-accent);
}

.k4s-co-details {
	margin: 0;
	padding: 0;
	text-align: right;
	background: rgba(7, 11, 20, 0.45);
	border: 1px solid var(--k4s-border);
	border-radius: var(--k4s-radius-md);
}

.k4s-co-row {
	padding: 11px 16px;
	border-bottom: 1px solid var(--k4s-border);
	font-size: 16px;
	line-height: 1.5;
}

.k4s-co-row:last-child {
	border-bottom: none;
}

.k4s-co-row dt {
	display: inline;
	margin: 0;
	font-weight: 700;
	color: var(--k4s-text);
}

.k4s-co-row dt::after {
	content: ": ";
}

.k4s-co-row dd {
	display: inline;
	margin: 0;
	color: var(--k4s-text-muted);
}

.k4s-btn.k4s-co-btn {
	display: block;
	background: #0f9d6b;
	color: #fff;
	font-size: 18px;
	padding: 14px 18px;
	border-radius: var(--k4s-radius-md);
	text-align: center;
}

.k4s-btn.k4s-co-btn:hover {
	background: #12b57c;
	color: #fff;
}

.k4s-co-status {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--k4s-chip-bg);
	color: var(--k4s-text);
	border: 1px solid var(--k4s-chip-border);
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 13px;
	font-weight: 700;
}

.k4s-co-sold .k4s-co-class,
.k4s-co-sold .k4s-co-details {
	opacity: 0.55;
}

.k4s-co-back {
	color: var(--k4s-link);
}

article .k4s-co-card {
	background: var(--k4s-bg-panel-alt);
	margin-bottom: 24px;
}

@media (max-width: 781px) {
	.k4s-co-class {
		font-size: 30px;
	}
}

/* 13. Call-to-action box [k4s_cta] -------------------------------- */
.k4s-ctabox {
	--k4s-cta-a: #ffb020;
	--k4s-cta-b: #ff6a00;
	--k4s-cta-c: #ffd86b;
	width: 100%;
	margin: 34px auto;
	padding: 5px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--k4s-cta-a), var(--k4s-cta-b) 50%, var(--k4s-cta-c));
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.k4s-ctabox-green { --k4s-cta-a: #19c37d; --k4s-cta-b: #0a8f5b; --k4s-cta-c: #7be3b4; }
.k4s-ctabox-blue  { --k4s-cta-a: #38a8ff; --k4s-cta-b: #2563eb; --k4s-cta-c: #8fd0ff; }
.k4s-ctabox-red   { --k4s-cta-a: #ff5a5f; --k4s-cta-b: #d6246e; --k4s-cta-c: #ff9aa0; }

.k4s-cta-inner {
	position: relative;
	padding: 36px 26px 26px;
	border-radius: 20px;
	background: linear-gradient(180deg, #131c30 0%, #0b1120 100%);
	text-align: center;
}

.k4s-cta-tag {
	display: inline-block;
	margin-bottom: 12px;
	padding: 3px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--k4s-cta-c);
	font-size: 14px;
	font-weight: 700;
}

.k4s-cta-title {
	display: block;
	margin: 0 auto 18px;
	padding: 12px 22px;
	max-width: 100%;
	border: 3px solid var(--k4s-cta-a);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05), 0 0 22px color-mix(in srgb, var(--k4s-cta-a) 40%, transparent);
}

.k4s-cta-body {
	margin: 0 auto 22px;
	max-width: 640px;
	text-align: right;
	font-size: 18px;
	line-height: 1.7;
}

.k4s-cta-body > :last-child {
	margin-bottom: 0;
}

.k4s-btn.k4s-cta-btn {
	display: block;
	max-width: 560px;
	margin: 0 auto;
	padding: 16px 20px;
	border-radius: 14px;
	background: #0f9d6b;
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	text-align: center;
	box-shadow: 0 6px 18px rgba(15, 157, 107, 0.35);
}

.k4s-btn.k4s-cta-btn:hover {
	background: #12b57c;
	color: #fff;
}

@media (min-width: 900px) {
	.k4s-ctabox {
		max-width: 70%;
	}
}

@media (max-width: 599px) {
	.k4s-cta-inner {
		padding: 28px 16px 20px;
	}

	.k4s-cta-title {
		font-size: 23px;
	}
}


/* 14. CTA box refinements: colors, H3 title, outer border ---------- */
.k4s-ctabox {
	border: 3px solid var(--k4s-cta-border, var(--k4s-cta-c));
}

.k4s-ctabox .k4s-cta-inner {
	background: var(--k4s-cta-bg, #042f3e);
}

.k4s-ctabox h3.k4s-cta-title,
.entry-content .k4s-ctabox h3.k4s-cta-title {
	display: block;
	margin: 0 auto 18px;
	padding: 12px 22px;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	border: 3px solid var(--k4s-cta-a);
	border-radius: 14px;
}

.k4s-btn.k4s-cta-btn,
.k4s-btn.k4s-cta-btn:visited {
	background: #00d084;
	color: #000;
	box-shadow: 0 6px 18px rgba(0, 208, 132, 0.3);
}

.k4s-btn.k4s-cta-btn:hover,
.k4s-btn.k4s-cta-btn:focus {
	background: #1fe39b;
	color: #000;
}

@media (max-width: 599px) {
	.k4s-ctabox h3.k4s-cta-title,
	.entry-content .k4s-ctabox h3.k4s-cta-title {
		font-size: 23px;
		padding: 10px 14px;
		margin: 0 auto 16px;
	}
}

/* 15. Mobile safety: no sideways overflow, centered fixed bar ------ */
html,
body {
	overflow-x: hidden;
	overflow-x: clip;
}

#content,
.site-content,
article,
.entry-content {
	min-width: 0;
	max-width: 100%;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.entry-content pre {
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 781px) {
	.k4s-action-bar {
		left: 14px;
		right: 14px;
		width: auto;
		max-width: calc(100% - 28px);
		margin: 0 auto;
		padding: 0;
	}

	.k4s-action-bar a {
		min-width: 0;
		white-space: nowrap;
	}
}


/* 16. CTA box from the pattern "קריאה לפעולה (טלפון ווואטסאפ)" ------
   title (H3) + sentence + call / WhatsApp buttons. Also restyles boxes
   that were inserted into pages before (same class k4s-cta). */
.entry-content .wp-block-group.k4s-cta {
	--k4s-cta-bg: #042f3e;
	width: 100%;
	max-width: 100%;
	margin: 34px auto;
	padding: 30px 24px 26px;
	border: 4px solid transparent;
	border-radius: 22px;
	background:
		linear-gradient(var(--k4s-cta-bg), var(--k4s-cta-bg)) padding-box,
		linear-gradient(135deg, #ffb020, #ff6a00 45%, #00d084) border-box;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
	text-align: center;
}

.entry-content .wp-block-group.k4s-cta h2,
.entry-content .wp-block-group.k4s-cta h3 {
	display: block;
	max-width: 100%;
	margin: 0 auto 18px;
	padding: 12px 22px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	border: 3px solid #ffb020;
	border-radius: 14px;
}

.entry-content .wp-block-group.k4s-cta p {
	max-width: 640px;
	margin: 0 auto 22px;
	color: var(--k4s-text);
	font-size: 18px;
	line-height: 1.7;
	text-align: center;
}

.entry-content .wp-block-group.k4s-cta .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
}

.entry-content .wp-block-group.k4s-cta .wp-block-button__link {
	display: inline-block;
	min-width: 200px;
	padding: 14px 30px;
	background: #00d084 !important;
	color: #000 !important;
	font-size: 19px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	border: none;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0, 208, 132, 0.3);
}

.entry-content .wp-block-group.k4s-cta .wp-block-button__link:hover,
.entry-content .wp-block-group.k4s-cta .wp-block-button__link:focus {
	background: #1fe39b !important;
	color: #000 !important;
}

@media (min-width: 900px) {
	.entry-content .wp-block-group.k4s-cta {
		max-width: 70%;
	}
}

@media (max-width: 599px) {
	.entry-content .wp-block-group.k4s-cta {
		padding: 24px 14px 20px;
	}

	.entry-content .wp-block-group.k4s-cta h2,
	.entry-content .wp-block-group.k4s-cta h3 {
		font-size: 23px;
		padding: 10px 14px;
	}

	.entry-content .wp-block-group.k4s-cta .wp-block-button {
		flex: 1 1 100%;
	}

	.entry-content .wp-block-group.k4s-cta .wp-block-button__link {
		display: block;
		width: 100%;
	}
}

/* shortcode box: two buttons in a row */
.k4s-cta-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.k4s-cta-btns .k4s-btn.k4s-cta-btn {
	flex: 1 1 220px;
	margin: 0;
}
