/* =====================================================================
 * Key4Move — real-estate layer for Blog Over
 * Colours are tokens: change them here to re-brand every page.
 * ===================================================================== */
:root {
	--k4m-ink: #14161c;
	--k4m-text: #3b404c;
	--k4m-muted: #6b7180;
	--k4m-line: #e8e4db;
	--k4m-tint: #f6f3ec;
	--k4m-card: #ffffff;
	--k4m-navy: #1d2f6f;
	--k4m-brown: #4a3a0c;
	--k4m-gold: #a8834a;
	--k4m-dark: #11151f;
	--k4m-wa: #25d366;
	--k4m-up: #1f8a5b;
	--k4m-down: #c0392b;
	--k4m-radius: 16px;
	--k4m-radius-sm: 10px;
	--k4m-shadow: 0 18px 50px rgba(17, 21, 31, .10);
	--k4m-sticky-top: 0px;
}
.admin-bar { --k4m-sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar { --k4m-sticky-top: 0px; } }

/* ---------- Base ---------- */
.k4m-page { background: #fff; color: var(--k4m-text); }
.k4m-page *, .k4m-page *::before, .k4m-page *::after { box-sizing: border-box; }
.k4m-page img { max-width: 100%; height: auto; }
.k4m-page [id] { scroll-margin-top: calc(var(--k4m-sticky-top) + 84px); }
.k4m-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.k4m-wrap--narrow { max-width: 860px; }
.k4m-center { text-align: center; margin-top: 40px; }
.k4m-page .screen-reader-text, .k4m-pager .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.k4m-sec { padding: 88px 0; }
.k4m-sec--tight { padding: 40px 0; }
.k4m-sec--flush-top { padding-top: 0; }
.k4m-sec--intro { padding: 64px 0 24px; }
.k4m-sec--tint { background: var(--k4m-tint); }
.k4m-sec--dark { background: var(--k4m-dark); color: rgba(255, 255, 255, .82); }
.k4m-sec--dark .k4m-h2 { color: #fff; }
.k4m-sec + .k4m-sec:not(.k4m-sec--tint):not(.k4m-sec--dark):not(.k4m-sec--tight) { padding-top: 24px; }
.k4m-sec--tint + .k4m-sec, .k4m-sec--dark + .k4m-sec, .k4m-band + .k4m-sec { padding-top: 88px !important; }

/* ---------- Type ---------- */
.k4m-eyebrow {
	margin: 0 0 12px;
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--k4m-gold);
}
.k4m-eyebrow--light { color: rgba(255, 255, 255, .85); }
.k4m-h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 5.2vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.025em;
	color: #fff; text-wrap: balance;
}
.k4m-h1--dark { color: var(--k4m-ink); font-size: clamp(32px, 4.4vw, 52px); }
.k4m-h2 {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
	color: var(--k4m-ink); text-wrap: balance;
}
.k4m-h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--k4m-ink); }
.k4m-lead { margin-top: 14px; font-size: 18px; line-height: 1.65; color: var(--k4m-muted); }
.k4m-lead p { margin: 0 0 .8em; }
.k4m-sec-head { max-width: 760px; margin-bottom: 40px; }
.k4m-sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.k4m-prose { font-size: 17px; line-height: 1.78; color: var(--k4m-text); }
.k4m-prose, .k4m-prose * { -webkit-hyphens: manual !important; hyphens: manual !important; overflow-wrap: break-word; }
.k4m-prose > *:first-child { margin-top: 0; }
.k4m-prose p { margin: 0 0 1.2em; }
.k4m-prose h2 { margin: 2em 0 .6em; font-size: 28px; line-height: 1.2; letter-spacing: -.015em; color: var(--k4m-ink); }
.k4m-prose h3 { margin: 1.6em 0 .5em; font-size: 21px; line-height: 1.3; color: var(--k4m-ink); }
.k4m-prose a { color: var(--k4m-navy); text-underline-offset: 3px; }
.k4m-prose img { border-radius: 12px; }
.k4m-prose ul, .k4m-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.k4m-prose li { margin-bottom: .4em; }
.k4m-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.k4m-prose th, .k4m-prose td { padding: 12px 14px; border-bottom: 1px solid var(--k4m-line); text-align: left; }
.k4m-prose th { background: var(--k4m-tint); color: var(--k4m-ink); font-weight: 600; }
.k4m-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--k4m-gold); font-size: 20px; color: var(--k4m-ink); }
.k4m-intro { font-size: 19px; color: var(--k4m-text); }

/* Article pages (standard layout) */
.blog-over-single-main .entry-content, .blog-over-single-main .entry-content * { -webkit-hyphens: manual !important; hyphens: manual !important; }
.k4m-readtime { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--k4m-muted); }

/* ---------- Buttons ---------- */
.k4m-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 24px;
	border: 1px solid transparent; border-radius: var(--k4m-radius-sm);
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .01em;
	text-decoration: none !important; white-space: nowrap; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.k4m-btn:hover { transform: translateY(-1px); }
.k4m-btn:focus-visible, .k4m-link-btn:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.k4m-btn--primary { background: var(--k4m-brown); color: #fff !important; }
.k4m-btn--primary:hover { background: #5d4a12; }
.k4m-btn--light { background: #fff; color: var(--k4m-ink) !important; }
.k4m-btn--light:hover { background: #f1ede4; }
.k4m-btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .6); color: #fff !important; backdrop-filter: blur(4px); }
.k4m-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.k4m-btn--outline { background: transparent; border-color: var(--k4m-brown); color: var(--k4m-brown) !important; }
.k4m-btn--outline:hover { background: var(--k4m-tint); }
.k4m-btn--wa { background: var(--k4m-wa); color: #fff !important; }
.k4m-btn--wa:hover { background: #1fbe5b; }
.k4m-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.k4m-btn--block { width: 100%; }
.k4m-link-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
	font: inherit; font-size: 15px; font-weight: 600; color: var(--k4m-navy);
	text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.k4m-arrow-link {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
	font-weight: 600; color: var(--k4m-navy) !important; text-decoration: none !important;
}
.k4m-arrow-link span { transition: transform .2s ease; }
.k4m-arrow-link:hover span { transform: translateX(4px); }

/* ---------- Breadcrumbs ---------- */
.k4m-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.k4m-crumbs li { display: inline-flex; align-items: center; color: var(--k4m-muted); }
.k4m-crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.k4m-crumbs a { color: inherit; text-decoration: none; }
.k4m-crumbs a:hover { color: var(--k4m-ink); text-decoration: underline; }
.k4m-hero .k4m-crumbs li { color: rgba(255, 255, 255, .78); }
.k4m-hero .k4m-crumbs a:hover { color: #fff; }

/* ---------- Hero ---------- */
.k4m-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; min-height: 420px;
	background: radial-gradient(120% 120% at 80% 0%, #2b3f86 0%, var(--k4m-navy) 40%, var(--k4m-dark) 100%);
	color: #fff;
}
.k4m-hero--project.has-image { min-height: clamp(540px, 82vh, 860px); }
.k4m-hero--listing.has-image { min-height: clamp(440px, 62vh, 640px); }
.k4m-hero--guide.has-image { min-height: clamp(460px, 64vh, 660px); }
.k4m-hero__bg {
	position: absolute; inset: 0; z-index: -2;
	width: 100% !important; height: 100% !important; max-width: none !important;
	object-fit: cover; border-radius: 0 !important;
}
.k4m-hero.has-image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(10, 13, 22, .55) 0%, rgba(10, 13, 22, 0) 28%),
		linear-gradient(0deg, rgba(10, 13, 22, .88) 0%, rgba(10, 13, 22, .45) 42%, rgba(10, 13, 22, 0) 72%);
}
.k4m-hero__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 28px; padding-bottom: 72px; }
.k4m-hero__copy { max-width: 780px; }
.k4m-hero__sub { margin: 0 0 28px; max-width: 620px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.k4m-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.k4m-hero__logo {
	display: inline-flex; align-items: center; justify-content: center;
	height: 72px; min-width: 120px; margin-bottom: 22px; padding: 12px 18px;
	background: #fff; border-radius: 12px;
}
.k4m-hero__logo img { max-height: 48px; width: auto; }

/* ---------- Key facts (overlaps the hero) ---------- */
.k4m-facts { position: relative; z-index: 2; margin-top: -44px; }
.k4m-facts__list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0; background: var(--k4m-card); border-radius: var(--k4m-radius); box-shadow: var(--k4m-shadow); overflow: hidden;
}
.k4m-facts__item { margin: 0; padding: 22px 24px; border-right: 1px solid var(--k4m-line); }
.k4m-facts__item:last-child { border-right: 0; }
.k4m-facts__item dt, .k4m-kpis__item dt, .k4m-stats dt {
	margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--k4m-muted);
}
.k4m-facts__item dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--k4m-ink); word-break: normal; overflow-wrap: normal; }

/* ---------- Sticky in-page nav ---------- */
.k4m-subnav {
	position: sticky; top: var(--k4m-sticky-top); z-index: 50;
	margin-top: 32px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--k4m-line);
	backdrop-filter: saturate(160%) blur(10px);
}
.k4m-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.k4m-subnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.k4m-subnav ul::-webkit-scrollbar { display: none; }
.k4m-subnav a {
	display: block; padding: 18px 14px; white-space: nowrap;
	font-size: 14px; font-weight: 500; color: var(--k4m-muted); text-decoration: none;
	border-bottom: 2px solid transparent;
}
.k4m-subnav a:hover, .k4m-subnav a.is-active { color: var(--k4m-ink); border-bottom-color: var(--k4m-gold); }

/* ---------- Overview + enquiry card ---------- */
.k4m-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.k4m-split__aside { position: sticky; top: calc(var(--k4m-sticky-top) + 84px); }
.k4m-enq { padding: 28px; background: var(--k4m-card); border: 1px solid var(--k4m-line); border-radius: var(--k4m-radius); box-shadow: var(--k4m-shadow); }
.k4m-enq__label { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--k4m-muted); }
.k4m-enq__price { margin: 2px 0 18px; font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--k4m-ink); }
.k4m-enq__title { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--k4m-ink); }
.k4m-enq__text { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--k4m-muted); }
.k4m-enq__actions { display: grid; gap: 10px; }
.k4m-enq__perks { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--k4m-line); list-style: none; }
.k4m-enq__perks li { position: relative; margin: 0 0 8px; padding-left: 26px; font-size: 14px; color: var(--k4m-text); }
.k4m-enq__perks li::before {
	content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px;
	border-left: 2px solid var(--k4m-up); border-bottom: 2px solid var(--k4m-up); transform: rotate(-45deg);
}

/* ---------- Gallery + lightbox ---------- */
.k4m-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; }
.k4m-gallery__item { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--k4m-tint); }
.k4m-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.k4m-gallery__item.is-extra { display: none; }
.k4m-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.k4m-gallery__item:hover img { transform: scale(1.04); }
.k4m-gallery { position: relative; }
.k4m-gallery__all {
	position: absolute; right: 16px; bottom: 16px; z-index: 1;
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	font: inherit; font-size: 14px; font-weight: 600; color: var(--k4m-ink); cursor: pointer;
}
.k4m-gallery__all:hover { background: #fff; }
.k4m-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 16, .94); }
.k4m-lightbox::backdrop { background: rgba(8, 10, 16, .94); }
.k4m-lightbox__img { position: absolute; inset: 64px 72px; margin: auto; max-width: calc(100% - 144px); max-height: calc(100% - 128px); object-fit: contain; }
.k4m-lightbox button {
	position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; cursor: pointer;
}
.k4m-lightbox button:hover { background: rgba(255, 255, 255, .24); }
.k4m-lightbox__close { top: 16px; right: 16px; }
.k4m-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.k4m-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.k4m-lightbox__count { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ---------- Amenities ---------- */
.k4m-amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.k4m-amen__item {
	display: flex; align-items: center; gap: 14px; padding: 18px 20px;
	background: var(--k4m-card); border: 1px solid var(--k4m-line); border-radius: 12px;
	font-size: 16px; font-weight: 500; color: var(--k4m-ink);
}
.k4m-amen__item svg { flex: none; color: var(--k4m-gold); }

/* ---------- Unit types ---------- */
.k4m-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.k4m-units__item { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--k4m-line); border-radius: var(--k4m-radius); transition: border-color .2s ease, box-shadow .2s ease; }
.k4m-units__item:hover { border-color: var(--k4m-gold); box-shadow: var(--k4m-shadow); }
.k4m-units__name { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--k4m-ink); }
.k4m-units__size { margin: 0; font-size: 15px; color: var(--k4m-muted); }
.k4m-units__price { margin: 14px 0 0; font-size: 18px; font-weight: 600; color: var(--k4m-ink); }
.k4m-units__price small { font-size: 13px; font-weight: 500; color: var(--k4m-muted); }
.k4m-units__item .k4m-link-btn { margin-top: auto; padding-top: 18px; align-self: flex-start; }

/* ---------- Payment plan ---------- */
.k4m-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: plan; }
.k4m-plan__step { position: relative; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2); }
.k4m-plan__step::before {
	content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
	background: var(--k4m-gold); box-shadow: 0 0 0 5px rgba(168, 131, 74, .22);
}
.k4m-plan__pct { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: #fff; }
.k4m-plan__label { display: block; margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .78); }

/* ---------- Highlights / steps ---------- */
.k4m-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.k4m-hl--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k4m-hl--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k4m-hl--c1 { grid-template-columns: minmax(0, 1fr); }
.k4m-hl__item { padding: 28px; background: var(--k4m-card); border: 1px solid var(--k4m-line); border-radius: var(--k4m-radius); }
.k4m-sec:not(.k4m-sec--tint) .k4m-hl__item { background: var(--k4m-tint); border-color: transparent; }
.k4m-hl__num { display: block; margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--k4m-gold); }
.k4m-hl__title { margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--k4m-ink); }
.k4m-hl__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--k4m-muted); }

/* ---------- Location ---------- */
.k4m-loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.k4m-prox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.k4m-prox li { padding: 18px; background: var(--k4m-card); border-radius: 12px; border: 1px solid var(--k4m-line); }
.k4m-prox__time { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--k4m-ink); }
.k4m-prox__place { display: block; margin-top: 2px; font-size: 14px; color: var(--k4m-muted); }
.k4m-loc__map { overflow: hidden; border-radius: var(--k4m-radius); background: var(--k4m-line); aspect-ratio: 4 / 3; }
.k4m-loc__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Developer block ---------- */
.k4m-devblock { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px; border: 1px solid var(--k4m-line); border-radius: 20px; }
.k4m-devblock__brand { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--k4m-tint); border-radius: var(--k4m-radius); }
.k4m-devblock__brand img { max-width: 70%; max-height: 50%; object-fit: contain; }
.k4m-devblock__initial { font-size: 88px; font-weight: 300; color: var(--k4m-gold); }
.k4m-devblock__copy p { margin: 12px 0 0; line-height: 1.65; }

.k4m-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin: 0; }
.k4m-stats > div { margin: 0; padding-top: 16px; border-top: 1px solid var(--k4m-line); }
.k4m-stats dd { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--k4m-ink); }
.k4m-stats--inline { margin-top: 22px; gap: 16px; }
.k4m-stats--inline dd { font-size: 22px; }
.k4m-devintro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* ---------- Lead band ---------- */
.k4m-band { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0; background: var(--k4m-dark); color: rgba(255, 255, 255, .82); }
.k4m-band__bg { position: absolute; inset: 0; z-index: -1; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; opacity: .28; }
.k4m-band__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.k4m-band__copy { max-width: 640px; }
.k4m-band .k4m-h2 { color: #fff; }
.k4m-band__copy p:last-child { margin: 16px 0 0; font-size: 18px; line-height: 1.6; }
.k4m-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Grids ---------- */
.k4m-grid { display: grid; gap: 28px; }
.k4m-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k4m-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.k4m-grid--tight { gap: 20px; }

/* ---------- Project card ---------- */
.k4m-pcard__link { display: block; color: inherit !important; text-decoration: none !important; }
.k4m-pcard__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: var(--k4m-tint); }
.k4m-pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k4m-pcard__link:hover .k4m-pcard__img img { transform: scale(1.05); }
.k4m-pcard__tag {
	position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 600; color: var(--k4m-ink);
}
.k4m-pcard__body { padding: 18px 2px 0; }
.k4m-pcard__loc { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--k4m-gold); }
.k4m-pcard__title { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--k4m-ink); }
.k4m-pcard__dev { margin: 4px 0 0; font-size: 15px; color: var(--k4m-muted); }
.k4m-pcard__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--k4m-line); }
.k4m-pcard__foot:empty { display: none; }
.k4m-pcard__price { margin: 0; font-size: 17px; font-weight: 600; color: var(--k4m-ink); }
.k4m-pcard__price small { font-size: 13px; font-weight: 500; color: var(--k4m-muted); }
.k4m-pcard__meta { margin: 0; font-size: 14px; color: var(--k4m-muted); }

/* ---------- Article card ---------- */
.k4m-acard__link { display: block; height: 100%; color: inherit !important; text-decoration: none !important; }
.k4m-acard__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--k4m-tint); }
.k4m-acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k4m-acard__link:hover .k4m-acard__img img { transform: scale(1.05); }
.k4m-acard__body { padding-top: 16px; }
.k4m-acard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--k4m-muted); }
.k4m-acard__meta span:first-child:not(:only-child) { color: var(--k4m-gold); }
.k4m-acard__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--k4m-ink); }
.k4m-acard__excerpt { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--k4m-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.k4m-acard__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--k4m-navy); }
.k4m-acard--row .k4m-acard__title { font-size: 17px; }
.k4m-acard--row .k4m-acard__more { display: none; }
.k4m-featured { margin-bottom: 56px; }
.k4m-acard--featured .k4m-acard__link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.k4m-acard--featured .k4m-acard__img { border-radius: var(--k4m-radius); }
.k4m-acard--featured .k4m-acard__body { padding: 0; }
.k4m-acard--featured .k4m-acard__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.k4m-acard--featured .k4m-acard__excerpt { font-size: 17px; -webkit-line-clamp: 4; }

/* ---------- Community / developer card ---------- */
.k4m-tcard {
	position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; isolation: isolate;
	border-radius: 14px; background: linear-gradient(150deg, var(--k4m-navy), var(--k4m-dark));
	color: #fff !important; text-decoration: none !important;
}
.k4m-tcard__img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k4m-tcard:hover .k4m-tcard__img > img { transform: scale(1.06); }
.k4m-tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 13, 22, .82) 0%, rgba(10, 13, 22, .1) 60%); }
.k4m-tcard__logo {
	position: absolute; top: 14px; left: 14px; display: flex; align-items: center; justify-content: center;
	height: 44px; padding: 8px 12px; background: #fff; border-radius: 8px;
}
.k4m-tcard__logo img { position: static !important; width: auto !important; height: 100% !important; max-width: 110px; object-fit: contain; transform: none !important; }
.k4m-tcard__body { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.k4m-tcard__name { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; }
.k4m-tcard__count { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .78); }

.k4m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.k4m-chips a { display: inline-block; padding: 9px 16px; border: 1px solid var(--k4m-line); border-radius: 999px; background: #fff; font-size: 14px; color: var(--k4m-ink); text-decoration: none; }
.k4m-chips a:hover { border-color: var(--k4m-ink); }

/* ---------- Developer page groups ---------- */
.k4m-group + .k4m-group { margin-top: 64px; }
.k4m-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--k4m-line); }
.k4m-group__head .k4m-arrow-link { margin-top: 0; font-size: 14px; }

/* ---------- Filters ---------- */
.k4m-filters {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end;
	margin: 0 0 20px; padding: 18px; background: var(--k4m-tint); border-radius: var(--k4m-radius);
}
.k4m-filters__field span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--k4m-muted); }
.k4m-filters select {
	width: 100%; height: 50px; margin: 0; padding: 0 40px 0 14px;
	font: inherit; font-size: 15px; color: var(--k4m-ink);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314161c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--k4m-line); border-radius: var(--k4m-radius-sm);
	-webkit-appearance: none; appearance: none;
}
.k4m-filters__actions { display: flex; align-items: center; gap: 14px; }
.k4m-count { margin: 0 0 22px; font-size: 14px; color: var(--k4m-muted); }
.k4m-empty { padding: 40px; background: var(--k4m-tint); border-radius: var(--k4m-radius); text-align: center; }
.k4m-empty p { margin: 0 0 18px; font-size: 17px; }

/* ---------- Pagination ---------- */
.k4m-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.k4m-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px;
	border: 1px solid var(--k4m-line); border-radius: var(--k4m-radius-sm);
	font-weight: 600; color: var(--k4m-ink); text-decoration: none;
}
.k4m-pager .page-numbers.current { background: var(--k4m-ink); border-color: var(--k4m-ink); color: #fff; }
.k4m-pager .page-numbers.dots { border: 0; }
.k4m-pager a.page-numbers:hover { border-color: var(--k4m-ink); }

/* ---------- FAQ ---------- */
.k4m-faq__list { border-top: 1px solid var(--k4m-line); }
.k4m-faq__item { border-bottom: 1px solid var(--k4m-line); }
.k4m-faq__item summary {
	position: relative; display: block; padding: 24px 48px 24px 0; cursor: pointer; list-style: none;
	font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--k4m-ink);
}
.k4m-faq__item summary::-webkit-details-marker { display: none; }
.k4m-faq__item summary::before, .k4m-faq__item summary::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.6px; background: var(--k4m-ink); transition: transform .25s ease;
}
.k4m-faq__item summary::after { transform: rotate(90deg); }
.k4m-faq__item[open] summary::after { transform: rotate(0deg); }
.k4m-faq__a { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.7; color: var(--k4m-text); }
.k4m-faq__a p { margin: 0 0 .8em; }
.entry-content .k4m-faq, .blog-over-main-content .k4m-faq { padding: 40px 0 0; background: none; }
.entry-content .k4m-faq .k4m-wrap, .blog-over-main-content .k4m-faq .k4m-wrap { padding: 0; }
.entry-content .k4m-faq summary, .entry-content .k4m-faq .k4m-h2 { color: var(--k4m-ink); }
.entry-content .k4m-inline-cta p { margin: 0; }
.entry-content .k4m-inline-cta__title { margin-bottom: 4px; }

/* ---------- Guide / advisor / inline CTAs ---------- */
.k4m-guide, .k4m-advisor {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
	padding: 44px 52px; border-radius: 20px;
}
.k4m-guide { background: var(--k4m-tint); }
.k4m-advisor { border: 1px solid var(--k4m-line); }
.k4m-guide > div:first-child, .k4m-advisor__copy { max-width: 680px; }
.k4m-guide__title { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--k4m-ink); }
.k4m-guide__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--k4m-muted); }
.k4m-advisor__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; font-size: 15px; }
.k4m-advisor__contact a { font-weight: 600; color: var(--k4m-ink); text-decoration: none; }
.k4m-advisor__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.k4m-inline-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
	margin: 48px 0; padding: 28px 30px; background: var(--k4m-tint); border-radius: var(--k4m-radius);
}
.k4m-inline-cta__title { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--k4m-ink); }
.k4m-inline-cta__text { margin: 0; font-size: 15px; color: var(--k4m-muted); }
.k4m-inline-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.k4m-related-reading { margin: 0 0 32px; }
.k4m-related-reading .k4m-h3 { margin-bottom: 20px; }

/* ---------- Resource listing header + tabs ---------- */
.k4m-pagehead { padding: 36px 0 40px; }
.k4m-pagehead .k4m-crumbs { margin-bottom: 40px; }
.k4m-pagehead__intro { max-width: 720px; }
.k4m-tabs { margin-top: 32px; border-bottom: 1px solid var(--k4m-line); }
.k4m-tabs ul { display: flex; gap: 6px; margin: 0; padding: 0 0 14px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.k4m-tabs ul::-webkit-scrollbar { display: none; }
.k4m-tabs a {
	display: inline-block; padding: 10px 18px; white-space: nowrap; border: 1px solid var(--k4m-line); border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--k4m-text); text-decoration: none;
}
.k4m-tabs a:hover { border-color: var(--k4m-ink); color: var(--k4m-ink); }
.k4m-tabs a.is-active { background: var(--k4m-ink); border-color: var(--k4m-ink); color: #fff; }
.k4m-resources .k4m-sec--flush-top { padding-top: 16px; }

/* ---------- Guide / report page ---------- */
.k4m-kpis { position: relative; z-index: 2; margin-top: -44px; }
.k4m-kpis__list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin: 0; background: var(--k4m-card); border-radius: var(--k4m-radius); box-shadow: var(--k4m-shadow); overflow: hidden;
}
.k4m-kpis__item { margin: 0; padding: 26px 28px; border-right: 1px solid var(--k4m-line); }
.k4m-kpis__item:last-child { border-right: 0; }
.k4m-kpis__item dd { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--k4m-ink); }
.k4m-kpis__note { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--k4m-muted); }
.k4m-kpis__note.is-up { color: var(--k4m-up); }
.k4m-kpis__note.is-down { color: var(--k4m-down); }

.k4m-docs { max-width: 860px; }
.k4m-docs.has-toc { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 64px; max-width: 1240px; }
.k4m-toc { position: sticky; top: calc(var(--k4m-sticky-top) + 32px); align-self: start; }
.k4m-toc__title { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--k4m-muted); }
.k4m-toc ol { margin: 0 0 24px; padding: 0; list-style: none; border-left: 1px solid var(--k4m-line); }
.k4m-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--k4m-muted); text-decoration: none; }
.k4m-toc a:hover, .k4m-toc a.is-active { color: var(--k4m-ink); border-left-color: var(--k4m-gold); }

.k4m-download { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px; background: var(--k4m-tint); border-radius: 20px; }
.k4m-download__cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--k4m-navy); box-shadow: 0 24px 50px rgba(17, 21, 31, .25); transform: rotate(-2deg); }
.k4m-download__cover img { width: 100%; height: 100%; object-fit: cover; }
.k4m-download__badge { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--k4m-ink); }
.k4m-download__copy p:not(.k4m-eyebrow) { margin: 14px 0 26px; font-size: 17px; line-height: 1.6; color: var(--k4m-muted); }

/* =====================================================================
 * Responsive
 * ===================================================================== */
@media (max-width: 1080px) {
	.k4m-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.k4m-split { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
	.k4m-docs.has-toc { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
	.k4m-sec { padding: 64px 0; }
	.k4m-sec--tint + .k4m-sec, .k4m-sec--dark + .k4m-sec, .k4m-band + .k4m-sec { padding-top: 64px !important; }
	.k4m-grid--3, .k4m-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.k4m-hl, .k4m-hl--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.k4m-split { grid-template-columns: minmax(0, 1fr); }
	.k4m-split__aside { position: static; }
	.k4m-loc, .k4m-devintro { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.k4m-devblock { grid-template-columns: 140px minmax(0, 1fr); gap: 28px; padding: 28px; }
	.k4m-docs.has-toc { grid-template-columns: minmax(0, 1fr); }
	.k4m-toc { position: static; padding: 20px; background: var(--k4m-tint); border-radius: var(--k4m-radius); }
	.k4m-toc .k4m-btn { display: none; }
	.k4m-acard--featured .k4m-acard__link { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.k4m-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.k4m-filters__actions { grid-column: 1 / -1; }
	.k4m-download { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px; }
	.k4m-gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
	.k4m-gallery__item:nth-child(5) { display: none; }
}

@media (max-width: 640px) {
	.k4m-wrap { padding: 0 16px; }
	.k4m-sec { padding: 52px 0; }
	.k4m-sec--tint + .k4m-sec, .k4m-sec--dark + .k4m-sec, .k4m-band + .k4m-sec { padding-top: 52px !important; }
	.k4m-sec-head { margin-bottom: 28px; }
	.k4m-hero__inner { padding-bottom: 64px; gap: 32px; }
	.k4m-hero--project.has-image { min-height: 600px; }
	.k4m-hero__sub { font-size: 17px; }
	.k4m-intro { font-size: 17px; }
	.k4m-sec--intro { padding: 44px 0 8px; }
	.k4m-hero__actions .k4m-btn { flex: 1 1 100%; }
	.k4m-facts, .k4m-kpis { margin-top: -32px; }
	.k4m-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.k4m-facts__item { padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--k4m-line); }
	.k4m-facts__item:nth-child(odd) { border-right: 1px solid var(--k4m-line); }
	.k4m-facts__item dd { font-size: 15px; }
	.k4m-kpis__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.k4m-kpis__item { padding: 18px; border-right: 0; border-bottom: 1px solid var(--k4m-line); }
	.k4m-kpis__item:nth-child(odd) { border-right: 1px solid var(--k4m-line); }
	.k4m-subnav { margin-top: 24px; }
	.k4m-subnav .k4m-btn { display: none; }
	.k4m-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.k4m-hl, .k4m-hl--c4, .k4m-hl--c2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.k4m-hl__item { padding: 22px; }
	.k4m-hl__num { margin-bottom: 12px; }
	.k4m-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.k4m-tcard { aspect-ratio: 3 / 4; }
	.k4m-tcard__name { font-size: 16px; }
	.k4m-tcard__body { left: 14px; right: 14px; bottom: 12px; }
	.k4m-tcard__logo { height: 36px; top: 10px; left: 10px; }
	.k4m-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 6px; }
	.k4m-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
	.k4m-gallery__item:nth-child(4), .k4m-gallery__item:nth-child(5) { display: none; }
	.k4m-prox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.k4m-devblock { grid-template-columns: minmax(0, 1fr); }
	.k4m-devblock__brand { aspect-ratio: auto; height: 120px; }
	.k4m-devblock__initial { font-size: 56px; }
	.k4m-band { padding: 64px 0; }
	.k4m-band__actions, .k4m-band__actions .k4m-btn { width: 100%; }
	.k4m-filters { grid-template-columns: minmax(0, 1fr); }
	.k4m-filters__actions .k4m-btn { flex: 1; }
	.k4m-guide, .k4m-advisor { padding: 28px 22px; }
	.k4m-guide .k4m-btn, .k4m-advisor__actions, .k4m-advisor__actions .k4m-btn { width: 100%; }
	.k4m-inline-cta { padding: 22px; }
	.k4m-inline-cta__actions, .k4m-inline-cta__actions .k4m-btn { width: 100%; }
	.k4m-download { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
	.k4m-download__cover { width: 160px; }
	.k4m-download .k4m-btn { width: 100%; }
	.k4m-enq { padding: 22px; }
	.k4m-faq__item summary { font-size: 17px; padding-right: 40px; }
	.k4m-faq__a { padding-right: 0; }
	.k4m-lightbox__img { inset: 56px 8px; max-width: calc(100% - 16px); max-height: calc(100% - 112px); }
	.k4m-lightbox__prev, .k4m-lightbox__next { top: auto; bottom: 10px; transform: none; }
	.k4m-pagehead { padding: 24px 0 28px; }
	.k4m-pagehead .k4m-crumbs { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.k4m-page *, .k4m-page *::before, .k4m-page *::after { transition: none !important; }
}

/* =====================================================================
 * Home page (front-page.php)
 * ===================================================================== */
.k4m-home .k4m-hsec { padding: 64px 0; }
.k4m-home .k4m-hsec + .k4m-hsec:not(.k4m-sec--tint) { padding-top: 16px; }
.k4m-home .k4m-sec--tint + .k4m-hsec { padding-top: 64px !important; }
.k4m-hhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.k4m-hhead .k4m-arrow-link { margin-top: 0; font-size: 15px; }
.k4m-hmore { display: flex; justify-content: flex-end; margin-top: 32px; }
.k4m-btn--dark { background: var(--k4m-ink); color: #fff !important; border-radius: 999px; padding: 0 30px; }
.k4m-btn--dark:hover { background: #2a2e38; }

/* Hero + search */
.k4m-hh {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; min-height: clamp(420px, 62vh, 600px);
	background: radial-gradient(120% 120% at 80% 0%, #2b3f86 0%, var(--k4m-navy) 40%, var(--k4m-dark) 100%);
	color: #fff; text-align: center;
}
.k4m-hh__bg { position: absolute; inset: 0; z-index: -2; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.k4m-hh.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 22, .45) 0%, rgba(10, 13, 22, .35) 50%, rgba(10, 13, 22, .6) 100%); }
.k4m-hh__inner { padding-top: 72px; padding-bottom: 72px; }
.k4m-hh__title { margin: 0 0 10px; font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.k4m-hh__sub { margin: 0 auto 32px; max-width: 640px; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .9); }
.k4m-search {
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px;
	max-width: 900px; margin: 0 auto; padding: 8px;
	background: rgba(17, 21, 31, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px;
	backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); text-align: left;
}
.k4m-search__field { position: relative; display: flex; align-items: center; margin: 0; }
.k4m-search__field svg { position: absolute; left: 14px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.k4m-search input, .k4m-search select {
	width: 100%; height: 50px; margin: 0; padding: 0 14px;
	font: inherit; font-size: 15px; color: #fff;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; outline: none; box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.k4m-search__field--kw input { padding-left: 42px; }
.k4m-search input::placeholder { color: rgba(255, 255, 255, .65); }
.k4m-search select {
	padding-right: 36px;
	background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.k4m-search select option { color: var(--k4m-ink); }
.k4m-search input:focus, .k4m-search select:focus { border-color: rgba(255, 255, 255, .5); background-color: rgba(255, 255, 255, .14); }
.k4m-search__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
	border: 0; border-radius: 12px; background: #e9b44c; color: var(--k4m-ink);
	font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.k4m-search__btn:hover { background: #f0c164; }

/* Trending */
.k4m-trend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.k4m-trend__card {
	position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
	aspect-ratio: 4 / 3; padding: 14px; overflow: hidden; border-radius: 14px;
	background: var(--k4m-navy); color: #fff !important; text-decoration: none !important;
}
.k4m-trend__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k4m-trend__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 13, 22, .85) 0%, rgba(10, 13, 22, 0) 55%); }
.k4m-trend__card:hover img { transform: scale(1.06); }
.k4m-trend__price { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--k4m-ink); font-size: 12px; font-weight: 600; }
.k4m-trend__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.k4m-trend__name { font-size: 17px; font-weight: 600; line-height: 1.25; }
.k4m-trend__arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .2s ease; }
.k4m-trend__card:hover .k4m-trend__arrow { background: #fff; color: var(--k4m-ink); }

/* Home project card */
.k4m-hgrid { row-gap: 32px; }
.k4m-hcard { display: block; color: inherit !important; text-decoration: none !important; }
.k4m-hcard__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--k4m-tint); }
.k4m-hcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k4m-hcard:hover .k4m-hcard__img img { transform: scale(1.05); }
.k4m-hcard__price { display: block; margin-top: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--k4m-navy); }
.k4m-hcard__title { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--k4m-ink); }
.k4m-hcard__meta { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--k4m-muted); }

/* Property types (bento) */
.k4m-types { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, 230px); gap: 16px; }
.k4m-types__tile {
	position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
	padding: 18px; overflow: hidden; border-radius: 16px; background: linear-gradient(150deg, var(--k4m-navy), var(--k4m-dark));
	color: #fff !important; text-decoration: none !important;
}
.k4m-types__tile:first-child { grid-row: span 2; }
.k4m-types__tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k4m-types__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 13, 22, .78) 0%, rgba(10, 13, 22, 0) 55%); }
.k4m-types__tile:hover img { transform: scale(1.05); }
.k4m-types__label { font-size: 22px; font-weight: 700; line-height: 1.2; }
.k4m-types__count { margin-top: 8px; padding: 4px 10px; border-radius: 6px; background: #e9b44c; color: var(--k4m-ink); font-size: 12px; font-weight: 700; }
.k4m-types--1 { grid-template-columns: 1fr; grid-template-rows: 300px; }
.k4m-types--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px; }
.k4m-types--2 .k4m-types__tile:first-child, .k4m-types--1 .k4m-types__tile:first-child { grid-row: auto; }
.k4m-types--3 { grid-template-columns: 1.2fr 1fr; }
.k4m-types--4 { grid-template-columns: 1.2fr 1fr 1fr; }
.k4m-types--4 .k4m-types__tile:last-child { grid-column: span 2; }

/* Developers */
.k4m-devs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, auto)); gap: 16px; }
.k4m-devs.is-single { grid-template-columns: minmax(0, 1fr); }
.k4m-devs__lead {
	position: relative; isolation: isolate; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between;
	min-height: 440px; padding: 24px; overflow: hidden; border-radius: 18px; background: var(--k4m-navy);
	color: #fff !important; text-decoration: none !important;
}
.k4m-devs__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.k4m-devs__lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 30, 70, .55) 0%, rgba(10, 13, 22, .92) 75%); }
.k4m-devs__lead-logo { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 140px; height: 72px; padding: 12px 18px; background: #fff; border-radius: 12px; color: var(--k4m-ink); }
.k4m-devs__lead-logo img { max-height: 48px; width: auto; }
.k4m-devs__lead-logo strong { font-size: 18px; }
.k4m-devs__lead-name { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.k4m-devs__lead-text { display: block; margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.k4m-devs__lead-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 600; }
.k4m-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--k4m-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.k4m-pill--outline { background: transparent; border: 1px solid var(--k4m-line); }
.k4m-devs__card {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 18px; text-align: center;
	background: #fff; border: 1px solid var(--k4m-line); border-radius: 16px;
	color: var(--k4m-ink) !important; text-decoration: none !important; transition: box-shadow .2s ease, transform .2s ease;
}
.k4m-devs__card:hover { box-shadow: var(--k4m-shadow); transform: translateY(-2px); }
.k4m-devs__card:hover .k4m-pill--outline { border-color: var(--k4m-ink); }
.k4m-devs__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; margin-bottom: 8px; border: 1px solid var(--k4m-line); border-radius: 12px; }
.k4m-devs__logo img { max-width: 70%; max-height: 64px; object-fit: contain; }
.k4m-devs__initial { font-size: 40px; font-weight: 300; color: var(--k4m-gold); }
.k4m-devs__name { font-size: 16px; font-weight: 700; }
.k4m-devs__count { margin-bottom: 8px; font-size: 13px; color: var(--k4m-muted); }

/* Stories + video */
.k4m-stories { background: linear-gradient(180deg, #faf6ee 0%, #fff 100%); }
.k4m-stories__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.k4m-stories.is-single .k4m-stories__grid { grid-template-columns: minmax(0, 760px); justify-content: center; }
.k4m-badge { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 6px; background: #fdf0d5; color: #9a6a12; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.k4m-badge--red { background: #fde3e1; color: #b3261e; }
.k4m-stories__intro { margin: 12px 0 24px; font-size: 16px; line-height: 1.6; color: var(--k4m-muted); }
.k4m-quotes { overflow: hidden; }
.k4m-quotes__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.k4m-quotes__track::-webkit-scrollbar { display: none; }
.k4m-quote { flex: 0 0 100%; margin: 0; padding: 26px; scroll-snap-align: start; background: #fff; border: 1px solid var(--k4m-line); border-radius: 16px; box-shadow: 0 8px 30px rgba(17, 21, 31, .06); }
.k4m-quote__stars { color: #e9b44c; letter-spacing: 2px; }
.k4m-quote blockquote { margin: 12px 0 20px; padding: 0; border: 0; font-size: 16px; font-style: italic; line-height: 1.7; color: var(--k4m-text); }
.k4m-quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--k4m-line); }
.k4m-quote__avatar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e9b44c; color: var(--k4m-ink); font-weight: 700; font-size: 14px; }
.k4m-quote figcaption strong { display: block; color: var(--k4m-ink); }
.k4m-quote figcaption small { display: block; font-size: 13px; color: var(--k4m-muted); }
.k4m-quotes__nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.k4m-quotes__nav button { width: 36px; height: 36px; border: 1px solid #e9b44c; border-radius: 50%; background: #fff; color: #9a6a12; cursor: pointer; font-size: 15px; }
.k4m-quotes__nav button:hover { background: #fdf0d5; }
.k4m-quotes__dots { display: flex; gap: 6px; }
.k4m-quotes__dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--k4m-line); transition: width .2s ease, background .2s ease; }
.k4m-quotes__dots i.is-active { width: 22px; background: #e9b44c; }
.k4m-video { overflow: hidden; background: #fff; border: 1px solid var(--k4m-line); border-radius: 16px; box-shadow: 0 8px 30px rgba(17, 21, 31, .06); }
.k4m-video__poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.k4m-video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.k4m-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .2s ease; }
.k4m-video__poster:hover .k4m-video__play { transform: translate(-50%, -50%) scale(1.08); }
.k4m-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.k4m-video__cap { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--k4m-ink); }
.k4m-video__cap small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--k4m-muted); }

/* Article tabs */
.k4m-tabs--home { margin: 0 0 28px; }
.k4m-tabs--home button {
	padding: 10px 18px; white-space: nowrap; border: 1px solid var(--k4m-line); border-radius: 999px; background: #fff;
	font: inherit; font-size: 14px; font-weight: 500; color: var(--k4m-text); cursor: pointer;
}
.k4m-tabs--home button:hover { border-color: var(--k4m-ink); }
.k4m-tabs--home button.is-active { background: var(--k4m-ink); border-color: var(--k4m-ink); color: #fff; }
[role="tabpanel"][hidden] { display: none !important; }

/* Footer link block */
.k4m-hfoot { padding: 72px 0 40px; background: var(--k4m-dark); color: rgba(255, 255, 255, .72); }
.k4m-hfoot__title { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: #fff; }
.k4m-hfoot__links { columns: 4 200px; column-gap: 32px; margin: 0 0 48px; padding: 0; list-style: none; }
.k4m-hfoot__links li { margin: 0 0 10px; break-inside: avoid; }
.k4m-hfoot a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14px; }
.k4m-hfoot a:hover { color: #fff; text-decoration: underline; }
.k4m-hfoot__about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .12); }
.k4m-hfoot__about p { margin: 0; font-size: 15px; line-height: 1.7; }
.k4m-hfoot__contact { margin: 0; padding: 0; list-style: none; }
.k4m-hfoot__contact li { margin: 0 0 12px; }
.k4m-hfoot__contact a, .k4m-hfoot__contact span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.k4m-hfoot__contact svg { flex: none; color: #e9b44c; }

@media (max-width: 1080px) {
	.k4m-trend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.k4m-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.k4m-search__field--kw { grid-column: 1 / -1; }
	.k4m-search__btn { grid-column: 1 / -1; }
	.k4m-types { grid-template-columns: 1fr 1fr !important; grid-template-rows: none !important; grid-auto-rows: 200px; }
	.k4m-types__tile:first-child { grid-column: 1 / -1; grid-row: auto !important; }
	.k4m-types--4 .k4m-types__tile:last-child { grid-column: auto; }
	.k4m-devs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.k4m-devs__lead { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
	.k4m-stories__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.k4m-hfoot__about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.k4m-home .k4m-hsec { padding: 44px 0; }
	.k4m-home .k4m-sec--tint + .k4m-hsec { padding-top: 44px !important; }
	.k4m-hh__inner { padding-top: 48px; padding-bottom: 48px; }
	.k4m-search { grid-template-columns: minmax(0, 1fr); padding: 6px; }
	.k4m-trend { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.k4m-trend::-webkit-scrollbar { display: none; }
	.k4m-trend__card { flex: 0 0 78%; scroll-snap-align: start; }
	.k4m-hmore { justify-content: stretch; }
	.k4m-hmore .k4m-btn { width: 100%; }
	.k4m-types { grid-auto-rows: 160px; gap: 10px; }
	.k4m-types__label { font-size: 18px; }
	.k4m-devs { gap: 10px; }
	.k4m-devs__card { padding: 16px 12px; }
	.k4m-devs__logo { height: 72px; }
	.k4m-devs__lead-text { display: none; }
	.k4m-hfoot { padding: 52px 0 32px; }
	.k4m-hfoot__links { columns: 2; column-gap: 16px; }
}

/* Home: dark link block runs straight into the theme footer */
body:has(.k4m-home) .blog-over-footer { margin-top: 0; }
