/* King of Remodeling — modern blog design (single post + archive) */

.kor-post, .kor-archive {
	--navy: #0B1424;
	--navy-2: #1C244B;
	--orange: #FD5D14;
	--orange-soft: rgba(253, 93, 20, 0.1);
	--line: #E7E7EC;
	--muted: #6B7280;
	--paper: #FAFAFB;
	font-family: 'Poppins', sans-serif;
	color: var(--navy);
}

.kor-post a, .kor-archive a { text-decoration: none; }

/* ---------- Single post hero ---------- */

.kor-post__hero {
	max-width: 900px;
	margin: 56px auto 0;
	padding: 0 24px;
	text-align: center;
}
.kor-post__eyebrow a {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--orange);
	background: var(--orange-soft);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.kor-post__title {
	font-size: clamp(28px, 4.4vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	color: var(--navy);
}
.kor-post__meta {
	font-size: 14px;
	color: var(--muted);
	font-weight: 500;
}
.kor-post__meta-dot { margin: 0 8px; opacity: 0.6; }

.kor-post__thumb {
	max-width: 1040px;
	margin: 36px auto 0;
	padding: 0 24px;
}
.kor-post__thumb img {
	width: 100%;
	height: clamp(240px, 42vw, 460px);
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 24px 48px -16px rgba(11, 20, 36, 0.28);
}

/* ---------- Body layout ---------- */

.kor-post__body {
	max-width: 1040px;
	margin: 56px auto 0;
	padding: 0 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 64px;
	align-items: start;
}

.kor-post__content {
	font-size: 17px;
	line-height: 1.75;
}
.kor-post__content > p:first-of-type {
	font-size: 19px;
	color: #33384A;
}
.kor-post__content p { margin: 0 0 1.4em; }
.kor-post__content h2 {
	font-size: clamp(21px, 2.6vw, 27px);
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 1.7em 0 0.6em;
	color: var(--navy);
}
.kor-post__content h2:first-child { margin-top: 0; }
.kor-post__content ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
.kor-post__content li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
}
.kor-post__content li::before {
	content: "";
	position: absolute;
	left: 0; top: 8px;
	width: 8px; height: 8px;
	background: var(--orange);
	border-radius: 2px;
}
.kor-post__content a {
	color: var(--orange);
	font-weight: 600;
	border-bottom: 2px solid rgba(253, 93, 20, 0.25);
	transition: border-color .2s ease;
}
.kor-post__content a:hover { border-color: var(--orange); }
.kor-post__content img { border-radius: 14px; height: auto; max-width: 100%; }

.kor-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 36px 0 28px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.kor-pill {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--navy-2);
	background: #F3F4F8;
	padding: 7px 16px;
	border-radius: 999px;
	transition: background .2s ease, color .2s ease;
}
.kor-pill:hover { background: var(--navy-2); color: #fff; }

.kor-post__share {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 8px;
}
.kor-post__share-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin-right: 4px;
}
.kor-share-btn {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #F3F4F8;
	color: var(--navy-2);
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.kor-share-btn:hover {
	background: var(--orange);
	color: #fff;
	transform: translateY(-3px);
}

/* ---------- Sidebar ---------- */

.kor-post__sidebar { position: sticky; top: 28px; }
.kor-panel {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 26px;
	margin-bottom: 20px;
}
.kor-panel__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--orange);
	display: inline-block;
}
.kor-panel__text {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin: 0 0 18px;
}
.kor-btn {
	display: inline-block;
	background: var(--orange);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 13px 22px;
	transition: background-color .2s ease;
}
.kor-btn:hover { background: var(--navy-2); }
.kor-links { list-style: none; margin: 0; padding: 0; }
.kor-links li { border-bottom: 1px solid var(--line); }
.kor-links li:last-child { border-bottom: none; }
.kor-links a {
	display: block;
	padding: 12px 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	transition: color .2s ease, padding-left .2s ease;
}
.kor-links a:hover { color: var(--orange); padding-left: 6px; }

/* ---------- Related posts ---------- */

.kor-related {
	background: var(--paper);
	margin-top: 72px;
	padding: 64px 24px;
	border-top: 1px solid var(--line);
}
.kor-related__inner { max-width: 1040px; margin: 0 auto; }
.kor-related__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 28px;
}
.kor-related__grid, .kor-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

/* ---------- Card (shared: related + archive) ---------- */

.kor-card { display: block; color: var(--navy); }
.kor-card__thumb {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	background: #EDEDF2;
	margin-bottom: 16px;
}
.kor-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.kor-card:hover .kor-card__thumb img { transform: scale(1.06); }
.kor-card__date {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.kor-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	margin: 8px 0 0;
	transition: color .2s ease;
}
.kor-card:hover .kor-card__title { color: var(--orange); }
.kor-card__excerpt {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin: 8px 0 0;
}

/* ---------- Comments ---------- */

.kor-comments {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px 80px;
}
.kor-comments .comment-respond,
.kor-comments #respond {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 32px;
}
.kor-comments .comment-reply-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.kor-comments input[type="text"],
.kor-comments input[type="email"],
.kor-comments input[type="url"],
.kor-comments textarea {
	width: 100%;
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	font-family: inherit;
	font-size: 14px;
}
.kor-comments .form-submit input[type="submit"] {
	background: var(--orange);
	color: #fff;
	border: none;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 13px;
	padding: 13px 28px;
	cursor: pointer;
	transition: background-color .2s ease;
}
.kor-comments .form-submit input[type="submit"]:hover { background: var(--navy-2); }

/* ---------- Archive ---------- */

.kor-archive__hero {
	max-width: 760px;
	margin: 64px auto 48px;
	padding: 0 24px;
	text-align: center;
}
.kor-archive__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--orange);
	margin-bottom: 14px;
}
.kor-archive__title {
	font-size: clamp(28px, 4.5vw, 42px);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}
.kor-archive__subtitle { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0; }
.kor-archive__grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 64px;
}
.kor-archive__empty {
	text-align: center;
	color: var(--muted);
	padding: 40px 0 80px;
}
.kor-archive__pagination {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.kor-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--navy);
	font-weight: 600;
	font-size: 14px;
	transition: background-color .2s ease, color .2s ease;
}
.kor-archive__pagination .page-numbers.current,
.kor-archive__pagination .page-numbers:hover {
	background: var(--orange);
	border-color: var(--orange);
	color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.kor-post__body { grid-template-columns: 1fr; gap: 40px; }
	.kor-post__sidebar { position: static; display: flex; gap: 20px; }
	.kor-panel { flex: 1; margin-bottom: 0; }
	.kor-related__grid, .kor-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.kor-post__sidebar { flex-direction: column; }
	.kor-related__grid, .kor-archive__grid { grid-template-columns: 1fr; }
	.kor-post__hero { margin-top: 32px; }
	.kor-post__body { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.kor-card__thumb img, .kor-share-btn, .kor-links a, .kor-card__title { transition: none; }
}
