/* CyberX – new single post layout (Option A). Scoped to .cx-post. */
.cx-post {
	--cx-accent: #671DB4;
	--cx-accent-2: #7F23DF;
	--cx-soft: #F1E8FC;
	--cx-sunk: #F5F2FA;
	--cx-navy: #0B1E3E;
	--cx-ink: #191919;
	--cx-muted: #4A5468;
	--cx-line: #E6E0EF;
	color: var(--cx-ink);
	font-family: "Almarai", Tahoma, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.9;
	padding-block: 32px 72px;
}
.cx-post *,
.cx-post *::before,
.cx-post *::after { box-sizing: border-box; }
.cx-post a { color: var(--cx-accent); }
.cx-post a:focus-visible,
.cx-post button:focus-visible,
.cx-post input:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }

.cx-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.cx-crumb { font-size: 13px; color: var(--cx-muted); margin-bottom: 18px; }
.cx-crumb a { color: var(--cx-muted); text-decoration: none; }

.cx-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
}
.cx-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cx-side { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* Featured media */
.cx-media { border-radius: 14px; overflow: hidden; background: var(--cx-sunk); }
.cx-media img,
.cx-media video,
.cx-media iframe { display: block; width: 100%; height: auto; max-width: 100%; }
.cx-media iframe { aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Title + meta */
.cx-title {
	color: var(--cx-accent);
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 800;
	line-height: 1.5;
	margin: 0;
	text-wrap: balance;
}
.cx-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--cx-muted); align-items: center; }
.cx-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.cx-meta__item a { color: var(--cx-muted); text-decoration: none; }
.cx-meta__item a:hover { color: var(--cx-accent); }
.cx-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--cx-accent); stroke-width: 2; flex: none; }
.cx-lede { font-size: 18px; color: var(--cx-muted); }
.cx-lede p { margin: 0; }
.cx-divider { border: 0; border-top: 1px solid var(--cx-line); margin: 4px 0; }

/* Article body */
.cx-content > *:first-child { margin-top: 0; }
.cx-content p { margin: 0 0 16px; }
.cx-content h2 { font-size: 24px; font-weight: 800; line-height: 1.55; margin: 36px 0 10px; color: var(--cx-ink); }
.cx-content h3 { font-size: 20px; font-weight: 700; line-height: 1.6; margin: 26px 0 8px; color: var(--cx-ink); }
.cx-content h4 { font-size: 18px; font-weight: 700; margin: 20px 0 6px; color: var(--cx-ink); }
.cx-content ul,
.cx-content ol { margin: 0 0 16px; padding-inline-start: 24px; }
.cx-content li { margin-bottom: 6px; }
.cx-content a { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.cx-content img { max-width: 100%; height: auto; border-radius: 10px; }
.cx-content figure { margin: 20px 0; max-width: 100%; }
.cx-content iframe { max-width: 100%; }
.cx-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 0 0 16px; }
.cx-content th,
.cx-content td { border: 1px solid var(--cx-line); padding: 8px 12px; text-align: start; }
.cx-content blockquote { margin: 20px 0; padding: 12px 20px; background: var(--cx-sunk); border-radius: 10px; }

/* CTA card – matches the site's "final CTA" box (purple gradient + white pill button) */
.cx-cta {
	background: linear-gradient(135deg, #5B2F92 0%, #7C3AED 60%, #8F5BF0 100%);
	color: #fff;
	border-radius: 22px;
	padding: 24px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	overflow: hidden;
}
.cx-cta::before {
	content: "";
	position: absolute;
	inset-block-start: 16px;
	inset-inline-end: 18px;
	width: 46px;
	height: 6px;
	background:
		radial-gradient(circle, #4ECDC4 3px, transparent 3.5px) 0 0 / 14px 6px no-repeat,
		radial-gradient(circle, #FF6B9D 3px, transparent 3.5px) 16px 0 / 14px 6px no-repeat,
		radial-gradient(circle, #FFE66D 3px, transparent 3.5px) 32px 0 / 14px 6px no-repeat;
}
.cx-cta__eyebrow {
	align-self: flex-start;
	direction: ltr;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 255, 255, .16);
	padding: 3px 12px;
	border-radius: 999px;
}
.cx-cta__title { font-size: 20px; font-weight: 800; line-height: 1.6; margin: 0; color: #fff; }
.cx-cta__list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .85); }
.cx-cta__list li { display: flex; align-items: center; gap: 10px; }
.cx-cta__list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: #4ECDC4; }
.cx-cta__list li:nth-child(2)::before { background: #FF6B9D; }
.cx-cta__list li:nth-child(3)::before { background: #FFE66D; }

.cx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(180deg, #671DB4 0%, #7F23DF 100%);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 22px;
	border-radius: 999px;
	text-align: center;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.cx-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(103, 29, 180, .28); }
.cx-btn::after { content: "←"; font-weight: 700; }
.cx-post[dir="ltr"] .cx-btn::after { content: "→"; }
.cx-cta .cx-btn { background: #fff; color: #6B3FA0 !important; margin-top: 4px; }
.cx-cta .cx-btn:hover { box-shadow: 0 6px 18px rgba(20, 20, 43, .22); }
.cx-cta--inline { display: none; }

/* Lead form */
.cx-lead { background: var(--cx-sunk); border-radius: 10px; padding: 26px; scroll-margin-top: 110px; }
.cx-lead__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--cx-ink); }
.cx-lead__sub { margin: 0 0 16px; font-size: 15px; color: var(--cx-muted); }
.cx-lead input[type="text"],
.cx-lead input[type="email"],
.cx-lead input[type="tel"],
.cx-lead select,
.cx-lead textarea {
	width: 100%;
	max-width: 100%;
	background: #fff;
	border: 1px solid var(--cx-line);
	border-radius: 8px;
	padding: 11px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--cx-ink);
	margin-bottom: 10px;
}
.cx-lead textarea { min-height: 110px; resize: vertical; }

/* Prev / next */
.cx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cx-pn__link {
	border: 1px solid var(--cx-line);
	border-radius: 10px;
	padding: 12px 16px;
	text-decoration: none;
	color: var(--cx-ink) !important;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	transition: border-color .15s;
}
.cx-pn__link:hover { border-color: var(--cx-accent); }
.cx-pn__link small { font-size: 12px; color: var(--cx-muted); }
.cx-pn__link b { font-size: 15px; line-height: 1.6; }
.cx-pn__link--next { grid-column: 2; text-align: end; }

/* Sidebar */
.cx-side__title { font-size: 19px; font-weight: 800; color: var(--cx-accent); margin: 0 0 10px; }
.cx-share { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cx-share__btn {
	aspect-ratio: 1;
	border-radius: 8px;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	color: #fff !important;
	transition: transform .15s;
}
.cx-share__btn:hover { transform: translateY(-2px); }
.cx-share__btn svg { width: 20px; height: 20px; }
.cx-share__btn--facebook { background: #1877F2; }
.cx-share__btn--instagram { background: #E1306C; }
.cx-share__btn--tiktok { background: #111111; }
.cx-share__btn--x { background: #111111; }
.cx-share__btn--snapchat { background: #FFFC00; color: #111111 !important; }
.cx-share__btn--linkedin { background: #0A66C2; }
.cx-share__toast { font-size: 13px; color: #11734B; margin: 8px 0 0; }

.cx-search {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #F5F0FF;
	border: 1px solid #E9DFFB;
	border-radius: 999px;
	padding: 5px;
	transition: border-color .15s, box-shadow .15s;
}
.cx-search:focus-within { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.cx-search input[type="search"] {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: 14px;
	padding: 8px 14px;
	border: 0;
	background: transparent;
	color: #14142B;
	outline: none;
	box-shadow: none;
}
.cx-search input[type="search"]::placeholder { color: #6B6B85; }
.cx-search button {
	flex: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(180deg, #671DB4 0%, #7F23DF 100%);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.cx-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.cx-more__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cx-more__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--cx-ink) !important; }
.cx-more__item:hover .cx-more__title { color: var(--cx-accent); }
.cx-more__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--cx-sunk); }
.cx-more__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-more__title { font-size: 14px; font-weight: 700; line-height: 1.7; }

/* WhatsApp */
.cx-wa {
	position: fixed;
	inset-inline-end: 18px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #1FA855;
	color: #fff !important;
	display: grid;
	place-items: center;
}
.cx-wa svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 960px) {
	.cx-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.cx-cta--inline { display: flex; }
	.cx-cta--side { display: none; }
}
@media (max-width: 600px) {
	.cx-post { font-size: 16px; padding-block: 20px 56px; }
	.cx-lead { padding: 20px; }
	.cx-pn { grid-template-columns: 1fr; }
	.cx-pn__link--next { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.cx-share__btn,
	.cx-btn,
	.cx-pn__link { transition: none; }
}
