/* ==========================================================================
   KarpetMasjid Premium — Gaya Utama
   1. Token & Reset          6. Produk
   2. Asas & Tipografi       7. Portfolio
   3. Header & Navigasi      8. Testimoni
   4. Hero                   9. CTA / Hubungi / Footer
   5. Kelebihan             10. Blog, Komen, Widget, Responsif
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */
:root {
	/* Warna diambil terus daripada fail logo KarpetMasjid.my */
	--km-blue-deep: #1a3c61;      /* navy logo */
	--km-blue-mid: #2a5c87;       /* navy lebih cerah, untuk gradien */
	--km-blue-light: #3fc8c8;     /* teal logo — hiasan sahaja */
	--km-accent-ink: #0f7480;     /* teal gelap — untuk teks & fokus */
	--km-silver: #b9c6d4;
	--km-silver-light: #e4eaf0;

	--km-body-bg: #f7fafb;
	--km-surface: #ffffff;
	--km-surface-alt: #eff4f7;
	--km-footer-bg: #0e2440;
	--km-text: #3a4c5e;
	--km-muted: #5a6b7d;
	--km-border: rgba(26, 60, 97, .10);

	--km-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--km-font-body: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	--km-radius: 16px;
	--km-radius-lg: 24px;
	--km-shadow-sm: 0 2px 12px rgba(26, 60, 97, .06);
	--km-shadow: 0 10px 30px rgba(26, 60, 97, .10);
	--km-shadow-lg: 0 20px 45px rgba(26, 60, 97, .16);
	--km-wrap: 1180px;
	--km-header-h: 76px;
	--km-ease: cubic-bezier(.22, .61, .36, 1);
}

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

/* 2. Asas & Tipografi ----------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--km-header-h) + 16px); }

body {
	margin: 0;
	background: var(--km-body-bg);
	color: var(--km-text);
	font-family: var(--km-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--km-font-display);
	color: var(--km-blue-deep);
	line-height: 1.22;
	margin: 0 0 .6em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--km-blue-mid); text-decoration: none; transition: color .2s var(--km-ease); }
a:hover { color: var(--km-accent-ink); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.3em; }

blockquote {
	margin: 1.6em 0;
	padding: 1.2em 1.6em;
	border-left: 4px solid var(--km-blue-light);
	background: var(--km-surface-alt);
	border-radius: 0 var(--km-radius) var(--km-radius) 0;
	font-style: italic;
	color: var(--km-blue-deep);
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
pre { background: var(--km-blue-deep); color: #e8ecf0; padding: 1.2em; border-radius: var(--km-radius); overflow-x: auto; }
code { background: var(--km-surface-alt); padding: .15em .4em; border-radius: 5px; color: var(--km-blue-mid); }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: .7em .9em; border: 1px solid var(--km-border); text-align: left; }
th { background: var(--km-surface-alt); color: var(--km-blue-deep); font-weight: 600; }

::selection { background: var(--km-blue-light); color: var(--km-blue-deep); }

:focus-visible {
	outline: 3px solid var(--km-accent-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

.km-wrap { width: 100%; max-width: var(--km-wrap); margin: 0 auto; padding: 0 24px; }
.km-wrap--narrow { max-width: 780px; }

.km-section { padding: clamp(56px, 8vw, 104px) 0; }
.km-section--alt { background: var(--km-surface-alt); }
.km-section--white { background: var(--km-surface); }

.km-section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 64px); }
.km-section__title { margin-bottom: .45em; }
.km-section__sub { color: var(--km-muted); margin: 0; font-size: 1.02rem; }

.km-eyebrow {
	display: inline-block;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--km-accent-ink);
	margin-bottom: 1em;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 999;
	background: var(--km-blue-deep); color: #fff; padding: 12px 22px;
	border-radius: 0 var(--km-radius) var(--km-radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* Corak geometri Islamik */
.km-pattern {
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23ffffff1a' stroke-width='.6'/%3E%3C/svg%3E");
}

/* Butang */
.km-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--km-font-body); font-weight: 600; font-size: .95rem;
	line-height: 1; padding: 15px 30px; border: 0; border-radius: 999px;
	cursor: pointer; text-align: center;
	transition: transform .25s var(--km-ease), box-shadow .25s var(--km-ease), background-color .25s var(--km-ease), color .25s var(--km-ease);
}
.km-btn svg { width: 18px; height: 18px; flex: none; }
.km-btn--primary { background: var(--km-blue-deep); color: #fff; box-shadow: var(--km-shadow); }
.km-btn--primary:hover { background: var(--km-blue-mid); color: #fff; transform: translateY(-2px); box-shadow: var(--km-shadow-lg); }
.km-btn--light { background: #fff; color: var(--km-blue-deep); box-shadow: var(--km-shadow-lg); }
.km-btn--light:hover { color: var(--km-blue-mid); transform: translateY(-2px) scale(1.02); }
.km-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.km-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.km-btn--outline { background: transparent; color: var(--km-blue-deep); box-shadow: inset 0 0 0 1.5px var(--km-blue-deep); }
.km-btn--outline:hover { background: var(--km-blue-deep); color: #fff; }
.km-btn--lg { padding: 18px 40px; font-size: 1rem; }
.km-btn--sm { padding: 11px 22px; font-size: .85rem; }

/* Kad umum */
.km-card {
	background: var(--km-surface);
	border-radius: var(--km-radius-lg);
	box-shadow: var(--km-shadow-sm);
	border: 1px solid var(--km-border);
	transition: transform .35s var(--km-ease), box-shadow .35s var(--km-ease);
}
.km-card--hover:hover { transform: translateY(-6px); box-shadow: var(--km-shadow-lg); }

.km-grid { display: grid; gap: 28px; }
.km-grid--2 { grid-template-columns: repeat(2, 1fr); }
.km-grid--3 { grid-template-columns: repeat(3, 1fr); }
.km-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Reveal semasa skrol */
.km-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--km-ease), transform .7s var(--km-ease); }
.km-reveal.is-visible { opacity: 1; transform: none; }

/* 3. Header & Navigasi ---------------------------------------------------- */
.km-header {
	position: sticky; top: 0; z-index: 900; width: 100%;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(26, 58, 92, .07);
	transition: box-shadow .3s var(--km-ease), background-color .3s var(--km-ease);
}
.km-header.is-stuck { box-shadow: 0 6px 24px rgba(26, 60, 97, .10); }

.km-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	min-height: var(--km-header-h);
	max-width: var(--km-wrap); margin: 0 auto; padding: 10px 24px;
}

.km-brand { display: inline-flex; align-items: center; gap: 12px; }
.km-brand img, .km-brand .custom-logo { width: 48px; height: 48px; object-fit: contain; }
.km-brand__text {
	font-family: var(--km-font-display); font-size: 1.22rem; font-weight: 600;
	color: var(--km-blue-deep); line-height: 1.2;
}
.km-brand__tag { display: block; font-family: var(--km-font-body); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--km-accent-ink); }

.km-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.km-nav li { position: relative; }
.km-nav a {
	position: relative; display: block; padding: 6px 0;
	font-size: .92rem; font-weight: 500; color: var(--km-blue-deep);
}
.km-nav a::after {
	content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
	background: var(--km-blue-light); transition: width .28s var(--km-ease);
}
.km-nav a:hover::after,
.km-nav a.is-current::after,
.km-nav .current-menu-item > a::after { width: 100%; }
.km-nav a.is-current { color: var(--km-accent-ink); }

/* Sub-menu */
.km-nav ul ul {
	position: absolute; top: 100%; left: 0; display: block; min-width: 220px;
	background: #fff; border-radius: 14px; padding: 10px; gap: 0;
	box-shadow: var(--km-shadow); border: 1px solid var(--km-border);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s var(--km-ease), transform .25s var(--km-ease), visibility .25s;
}
.km-nav li:hover > ul,
.km-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.km-nav ul ul li { width: 100%; }
.km-nav ul ul a { padding: 9px 14px; border-radius: 9px; }
.km-nav ul ul a:hover { background: var(--km-surface-alt); }
.km-nav ul ul a::after { display: none; }

.km-header__actions { display: flex; align-items: center; gap: 12px; }

.km-burger {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	border: 1px solid var(--km-border); background: #fff; border-radius: 12px;
	color: var(--km-blue-deep); cursor: pointer;
}
.km-burger svg { width: 22px; height: 22px; }

.km-mobile-nav {
	display: none; border-top: 1px solid var(--km-border);
	background: #fff; padding: 12px 24px 24px;
}
.km-mobile-nav.is-open { display: block; }
.km-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.km-mobile-nav ul ul { padding-left: 16px; }
.km-mobile-nav a {
	display: block; padding: 13px 4px; font-weight: 500; color: var(--km-blue-deep);
	border-bottom: 1px solid var(--km-border);
	border-left: 3px solid transparent; transition: border-color .25s var(--km-ease), color .25s var(--km-ease);
}
.km-mobile-nav a.is-current {
	color: var(--km-accent-ink); border-left-color: var(--km-blue-light); padding-left: 12px;
}
.km-mobile-nav .km-btn { margin-top: 18px; width: 100%; }

/* 4. Hero ----------------------------------------------------------------- */
.km-hero { position: relative; width: 100%; overflow: hidden; isolation: isolate; }

/* Slider hero */
.km-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--km-blue-deep); }
.km-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--km-ease); }
.km-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.km-hero__slide.is-active { opacity: 1; }

/* Kesan: pudar + zum perlahan */
.km-hero--zum .km-hero__slide img { transform: scale(1); transition: transform 9s linear; }
.km-hero--zum .km-hero__slide.is-active img { transform: scale(1.08); }

/* Kesan: sorot mendatar */
.km-hero--sorot .km-hero__slide { transform: translateX(6%); transition: opacity .9s var(--km-ease), transform .9s var(--km-ease); }
.km-hero--sorot .km-hero__slide.is-active { transform: none; }
.km-hero--sorot .km-hero__slide.is-keluar { transform: translateX(-6%); }

/* Titik navigasi */
.km-hero__dots {
	position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3;
	display: flex; justify-content: center; gap: 10px;
}
.km-hero__dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .42);
	transition: background-color .3s var(--km-ease), width .3s var(--km-ease);
}
.km-hero__dot:hover { background: rgba(255, 255, 255, .7); }
.km-hero__dot.is-active { width: 30px; border-radius: 6px; background: var(--km-blue-light); }
.km-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	/* Lebih gelap di atas & bawah (untuk header dan butang), lebih cerah di
	   tengah supaya corak karpet kelihatan. Kepekatan dikawal dari Customizer. */
	background:
		linear-gradient(180deg, rgba(8, 26, 46, .95) 0%, rgba(8, 26, 46, .35) 38%, rgba(8, 26, 46, .45) 62%, rgba(8, 26, 46, .95) 100%),
		linear-gradient(135deg, rgba(26, 60, 97, .85) 0%, rgba(42, 92, 135, .55) 50%, rgba(26, 60, 97, .85) 100%);
	opacity: var(--km-hero-tudung, .55);
}
.km-hero__inner {
	position: relative; display: flex; flex-direction: column; align-items: center;
	justify-content: center; text-align: center;
	min-height: min(84vh, 780px); padding: clamp(80px, 12vw, 150px) 24px clamp(96px, 13vw, 166px);
	max-width: 960px; margin: 0 auto;
}
.km-hero__logo { width: auto; max-width: min(200px, 52vw); height: auto; object-fit: contain; margin-bottom: 26px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .35)); }
.km-hero__title { color: #fff; margin-bottom: .5em; text-shadow: 0 1px 3px rgba(4, 14, 26, .75), 0 3px 14px rgba(4, 14, 26, .6), 0 8px 40px rgba(4, 14, 26, .5); }
.km-hero__sub { color: #edf2f6; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 400; max-width: 640px; margin: 0 auto 2.2em; text-shadow: 0 1px 3px rgba(4, 14, 26, .8), 0 3px 16px rgba(4, 14, 26, .65); }
.km-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.km-hero__stats {
	display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 72px);
	margin-top: clamp(40px, 6vw, 72px); padding-top: 34px;
	border-top: 1px solid rgba(63, 200, 200, .6); width: 100%;
}
.km-hero__stat { color: #fff; min-width: 120px; }
.km-hero__stat b { text-shadow: 0 1px 3px rgba(4, 14, 26, .8), 0 3px 16px rgba(4, 14, 26, .6); display: block; font-family: var(--km-font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1; }
.km-hero__stat span { text-shadow: 0 1px 4px rgba(4, 14, 26, .85), 0 2px 12px rgba(4, 14, 26, .7); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--km-silver); }

/* 5. Kelebihan ------------------------------------------------------------ */
.km-adv { text-align: center; padding: 38px 26px; }
.km-adv__icon {
	width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--km-silver-light), #d7e8ec);
	color: var(--km-blue-mid);
	transition: transform .35s var(--km-ease), background-color .35s var(--km-ease), color .35s var(--km-ease);
}
.km-adv__icon svg { width: 27px; height: 27px; }
.km-card--hover:hover .km-adv__icon { background: var(--km-blue-deep); color: #fff; transform: rotate(-6deg) scale(1.06); }
.km-adv h3 { margin-bottom: .6em; }
.km-adv p { color: var(--km-muted); font-size: .93rem; margin: 0; }

/* 6. Produk --------------------------------------------------------------- */
.km-prod { overflow: hidden; display: flex; flex-direction: column; }
.km-prod__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--km-surface-alt); }
.km-prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--km-ease); }
.km-prod__media::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: var(--km-blue-light); z-index: 1;
}
.km-card--hover:hover .km-prod__media img { transform: scale(1.06); }
.km-prod__badge {
	position: absolute; top: 16px; left: 16px; z-index: 2;
	background: rgba(255, 255, 255, .95); color: var(--km-blue-deep);
	font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	padding: 7px 14px; border-radius: 999px;
}
.km-prod__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.km-prod__body h3 { margin-bottom: .5em; }
.km-prod__body p { color: var(--km-muted); font-size: .93rem; }
.km-prod__link {
	margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
	font-size: .88rem; font-weight: 600; color: var(--km-blue-mid);
}
.km-prod__link svg { width: 16px; height: 16px; transition: transform .25s var(--km-ease); }
.km-prod__link:hover svg { transform: translateX(4px); }

/* 7. Portfolio ------------------------------------------------------------ */
.km-port {
	position: relative; display: block; border-radius: var(--km-radius-lg);
	overflow: hidden; aspect-ratio: 4 / 5; background: var(--km-blue-deep);
}
.km-port img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--km-ease); }
.km-port:hover img { transform: scale(1.07); }
.km-port__cap {
	position: absolute; inset: auto 0 0 0; padding: 26px 24px;
	background: linear-gradient(to top, rgba(14, 36, 64, .9) 10%, rgba(14, 36, 64, 0) 100%);
	color: #fff;
}
.km-port__cap strong { display: block; font-family: var(--km-font-display); font-size: 1.12rem; font-weight: 600; }
.km-port__cap span { font-size: .82rem; color: var(--km-silver); }

/* 8. Testimoni ------------------------------------------------------------ */
.km-testi { padding: 34px 30px; display: flex; flex-direction: column; }
.km-testi__mark {
	font-family: var(--km-font-display); font-size: 3.4rem; line-height: .8;
	color: var(--km-blue-light); opacity: .6; margin-bottom: 14px;
}
.km-testi__quote { font-style: italic; color: var(--km-text); margin-bottom: 22px; }
.km-testi__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.km-testi__avatar {
	width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
	background: var(--km-blue-deep); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--km-font-display); font-weight: 700;
}
.km-testi__name { font-weight: 600; font-size: .92rem; color: var(--km-blue-deep); line-height: 1.3; }
.km-testi__role { font-size: .82rem; color: var(--km-muted); }

/* 9. CTA / Hubungi / Footer ----------------------------------------------- */
.km-cta {
	background: linear-gradient(135deg, var(--km-blue-deep), var(--km-blue-mid));
	text-align: center; color: #fff;
}
.km-cta h2 { color: #fff; }
.km-cta p { color: var(--km-silver); max-width: 620px; margin: 0 auto 2.4em; }
.km-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.km-contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.km-contact__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.km-contact__list li { display: flex; gap: 15px; align-items: flex-start; }
.km-contact__ico {
	width: 42px; height: 42px; flex: none; border-radius: 12px;
	background: var(--km-silver-light); color: var(--km-blue-mid);
	display: flex; align-items: center; justify-content: center;
}
.km-contact__ico svg { width: 19px; height: 19px; }
.km-contact__list b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--km-muted); font-weight: 600; }
.km-contact__list a, .km-contact__list span { color: var(--km-blue-deep); font-weight: 500; }
.km-contact__form { background: var(--km-surface); border-radius: var(--km-radius-lg); padding: 34px; box-shadow: var(--km-shadow); border: 1px solid var(--km-border); }

input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=password], input[type=search], input[type=number], textarea, select {
	width: 100%; padding: 13px 16px; font-family: var(--km-font-body); font-size: .95rem;
	color: var(--km-blue-deep); background: #fff;
	border: 1px solid var(--km-border); border-radius: 12px;
	transition: border-color .2s var(--km-ease), box-shadow .2s var(--km-ease);
}
input:focus, textarea:focus, select:focus {
	outline: none; border-color: var(--km-accent-ink);
	box-shadow: 0 0 0 4px rgba(63, 200, 200, .22);
}
label { display: block; font-size: .85rem; font-weight: 600; color: var(--km-blue-deep); margin-bottom: 6px; }
input[type=submit], button[type=submit], .wpcf7-submit {
	width: auto; background: var(--km-blue-deep); color: #fff; border: 0;
	padding: 15px 32px; border-radius: 999px; font-weight: 600; cursor: pointer;
	transition: background-color .25s var(--km-ease), transform .25s var(--km-ease);
}
input[type=submit]:hover, button[type=submit]:hover, .wpcf7-submit:hover { background: var(--km-blue-mid); transform: translateY(-2px); }

.km-footer { background: var(--km-footer-bg); color: var(--km-silver); padding: clamp(48px, 6vw, 76px) 0 0; }
.km-footer h2, .km-footer h3, .km-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.km-footer a { color: var(--km-silver); }
.km-footer a:hover { color: #fff; }
.km-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 46px; }
.km-footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.km-footer__brand img { width: 44px; height: 44px; object-fit: contain; }
.km-footer__brand span { font-family: var(--km-font-display); font-size: 1.15rem; font-weight: 600; color: #fff; }
.km-footer__about { font-size: .92rem; color: #8a9bab; max-width: 380px; }
.km-footer ul { list-style: none; margin: 0; padding: 0; }
.km-footer li { margin-bottom: 10px; font-size: .92rem; }
.km-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.km-footer__social a {
	width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .07); color: var(--km-silver);
	transition: background-color .25s var(--km-ease), color .25s var(--km-ease), transform .25s var(--km-ease);
}
.km-footer__social a:hover { background: var(--km-blue-light); color: var(--km-blue-deep); transform: translateY(-3px); }
.km-footer__social svg { width: 18px; height: 18px; }
.km-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0;
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
	font-size: .85rem; color: #8a9bab;
}

.km-top {
	position: fixed; left: 24px; bottom: 24px; z-index: 940;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: var(--km-blue-deep); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .3s var(--km-ease), transform .3s var(--km-ease), visibility .3s;
	box-shadow: var(--km-shadow);
}
.km-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.km-top svg { width: 20px; height: 20px; }

/* 10. Blog, Komen, Widget ------------------------------------------------- */
.km-pagehead {
	background: linear-gradient(135deg, var(--km-blue-deep), var(--km-blue-mid));
	color: #fff; padding: clamp(52px, 7vw, 90px) 0; text-align: center;
}
.km-pagehead h1 { color: #fff; margin-bottom: .3em; }
.km-pagehead p, .km-pagehead .km-crumbs { color: var(--km-silver); margin: 0; font-size: .92rem; }
.km-crumbs a { color: var(--km-silver-light); }

.km-main { padding: clamp(48px, 6vw, 84px) 0; }
.km-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.km-layout--full { grid-template-columns: minmax(0, 1fr); }

.km-post { background: var(--km-surface); border-radius: var(--km-radius-lg); overflow: hidden; border: 1px solid var(--km-border); box-shadow: var(--km-shadow-sm); margin-bottom: 32px; }
.km-post__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.km-post__body { padding: 30px; }
.km-post__meta { font-size: .82rem; color: var(--km-muted); display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.km-post__meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.km-post__title { margin-bottom: .5em; }
.km-post__title a { color: var(--km-blue-deep); }
.km-post__title a:hover { color: var(--km-blue-mid); }

.km-entry { background: var(--km-surface); border-radius: var(--km-radius-lg); padding: clamp(26px, 4vw, 48px); border: 1px solid var(--km-border); box-shadow: var(--km-shadow-sm); }
.km-entry img { border-radius: var(--km-radius); }
.km-entry > *:last-child { margin-bottom: 0; }

.km-sidebar .widget {
	background: var(--km-surface); border-radius: var(--km-radius); padding: 26px;
	border: 1px solid var(--km-border); box-shadow: var(--km-shadow-sm); margin-bottom: 26px;
}
.km-sidebar .widget-title, .km-sidebar h2 { font-size: 1.05rem; margin-bottom: .9em; padding-bottom: .6em; border-bottom: 2px solid var(--km-silver-light); }
.km-sidebar ul { list-style: none; padding: 0; margin: 0; }
.km-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--km-border); font-size: .93rem; }
.km-sidebar li:last-child { border-bottom: 0; }

.km-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.km-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--km-border); color: var(--km-blue-deep); font-weight: 600; font-size: .9rem;
}
.km-pagination .page-numbers:hover, .km-pagination .current { background: var(--km-blue-deep); color: #fff; border-color: var(--km-blue-deep); }

.km-searchform { display: flex; gap: 8px; }
.km-searchform button { flex: none; padding: 0 18px; background: var(--km-blue-deep); color: #fff; border: 0; border-radius: 12px; cursor: pointer; }
.km-searchform button svg { width: 18px; height: 18px; }

.km-comments { margin-top: 40px; background: var(--km-surface); border-radius: var(--km-radius-lg); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--km-border); }
.km-comments ol { list-style: none; padding: 0; margin: 0; }
.km-comments .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.km-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--km-border); }
.km-comments .comment-author img { border-radius: 50%; float: left; margin-right: 14px; }
.km-comments .comment-meta { font-size: .82rem; color: var(--km-muted); }

.km-404 { text-align: center; padding: clamp(60px, 10vw, 130px) 0; }
.km-404__code { font-family: var(--km-font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: .9; color: var(--km-silver); margin: 0; }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.6em 1.2em 0; }
.alignright { float: right; margin: 0 0 1.2em 1.6em; }
.wp-caption-text, .wp-element-caption { font-size: .84rem; color: var(--km-muted); text-align: center; margin-top: .6em; }
.sticky .km-post__title::before { content: '★ '; color: var(--km-accent-ink); }

/* Responsif ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.km-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.km-layout { grid-template-columns: minmax(0, 1fr); }
	.km-contact__grid { grid-template-columns: 1fr; gap: 32px; }
	.km-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
	.km-nav, .km-header__actions .km-btn { display: none; }
	.km-burger { display: inline-flex; }
	.km-grid--3 { grid-template-columns: 1fr; }
	.km-port { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
	:root { --km-header-h: 66px; }
	.km-grid, .km-grid--2, .km-grid--3, .km-grid--4 { grid-template-columns: 1fr; gap: 20px; }
	.km-brand img, .km-brand .custom-logo { width: 40px; height: 40px; }
	.km-brand__text { font-size: 1.05rem; }
	.km-footer__cols { grid-template-columns: 1fr; }
	.km-hero__inner { min-height: 0; }
	.km-top { bottom: 20px; left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important; animation-iteration-count: 1 !important;
		transition-duration: .001ms !important; scroll-behavior: auto !important;
	}
	.km-reveal { opacity: 1; transform: none; }
	.km-hero--zum .km-hero__slide img,
	.km-hero--zum .km-hero__slide.is-active img { transform: none !important; }
	.km-hero--sorot .km-hero__slide { transform: none !important; }
}

@media print {
	.km-header, .km-footer, .km-top, .km-cta { display: none !important; }
	body { background: #fff; }
}
