/* [pengumuman_kanwork] – kad pengumuman di laman utama */
.kp-pg {
	--kp-dark: #4a1035;
	--kp-dark2: #7a1f55;
	--kp-accent: #d6336c;
	--kp-accent-bg: #fdeaf1;
	--kp-muted: #667085;
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 36px 36px;
	background: radial-gradient(circle at 92% 0%, #fdeef4 0, #fff 38%);
	border: 1px solid #f3dce6;
	border-radius: 28px;
	box-shadow: 0 30px 60px -40px rgba(74, 16, 53, .35);
	color: var(--kp-dark);
	box-sizing: border-box;
}
.kp-pg *, .kp-pg *::before, .kp-pg *::after { box-sizing: border-box; }

.kp-pg__head { text-align: center; margin-bottom: 28px; }
.kp-pg__pill {
	display: inline-block; padding: 9px 20px; border-radius: 999px;
	background: var(--kp-accent-bg); border: 1px solid #f7c6d8;
	color: var(--kp-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.kp-pg__title {
	margin: 16px 0 10px !important; color: var(--kp-dark) !important;
	font-size: clamp(26px, 3.4vw, 40px) !important; font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
}
.kp-pg__desc { max-width: 760px; margin: 0 auto !important; color: var(--kp-muted); font-size: 15.5px; line-height: 1.7; }

.kp-pg__grid { display: grid; grid-template-columns: repeat(var(--kp-cols, 3), minmax(0, 1fr)); gap: 22px; }

.kp-pg__card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid #f1e1e8; border-top: 3px solid var(--kp-accent);
	border-radius: 18px; transition: transform .2s, box-shadow .2s;
}
.kp-pg__card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(74, 16, 53, .45); }

.kp-pg__media { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--kp-dark); overflow: hidden; }
.kp-pg__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.kp-pg__card:hover .kp-pg__media img { transform: scale(1.04); }
.kp-pg__ph {
	display: grid; place-items: center; height: 100%; padding: 20px; text-align: center;
	background: linear-gradient(135deg, var(--kp-dark), var(--kp-dark2));
	color: #ffd0e0; font-weight: 700; font-size: 17px; line-height: 1.3;
}
.kp-pg__date {
	position: absolute; left: 12px; top: 12px; width: 54px; padding: 6px 0 5px;
	background: #fff; border-radius: 12px; text-align: center; line-height: 1;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.kp-pg__date b { display: block; font-size: 22px; color: var(--kp-dark); font-weight: 800; }
.kp-pg__date i { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--kp-accent); letter-spacing: .08em; margin-top: 3px; }
.kp-pg__badge {
	position: absolute; right: 12px; top: 12px; padding: 5px 11px; border-radius: 999px;
	background: var(--kp-accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
}
.kp-pg__badge--today { background: #d92d20; animation: kp-pulse 1.6s infinite; }
.kp-pg__badge--done { background: #667085; }
@keyframes kp-pulse { 50% { box-shadow: 0 0 0 6px rgba(217, 45, 32, .25); } }

.kp-pg__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.kp-pg__name { margin: 0 0 12px !important; font-size: 17.5px !important; line-height: 1.35 !important; font-weight: 700; }
.kp-pg__name a { color: var(--kp-dark) !important; text-decoration: none; }
.kp-pg__name a:hover { color: var(--kp-accent) !important; }
.kp-pg__info { list-style: none; margin: 0 0 14px !important; padding: 0 !important; display: grid; gap: 7px; }
.kp-pg__info li { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: 13.5px; color: #475467; line-height: 1.45; }
.kp-pg__info svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; fill: var(--kp-accent); }
.kp-pg__excerpt { margin: 0 0 14px !important; font-size: 14px; color: var(--kp-muted); line-height: 1.6; }
.kp-pg__btn {
	margin-top: auto; align-self: flex-start;
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
	background: var(--kp-dark); color: #fff !important; text-decoration: none; font-size: 13.5px; font-weight: 600;
	transition: background .15s;
}
.kp-pg__btn:hover { background: var(--kp-accent); }
.kp-pg__btn span { font-size: 18px; line-height: 0; }

.kp-pg__more { text-align: center; margin-top: 24px; }
.kp-pg__more a { color: var(--kp-accent) !important; font-weight: 700; text-decoration: none; font-size: 14.5px; }
.kp-pg__more a:hover { text-decoration: underline; }

/* Satu post sahaja → kad mendatar besar */
.kp-pg--single .kp-pg__grid { grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
.kp-pg--single .kp-pg__card { flex-direction: row; }
.kp-pg--single .kp-pg__media { flex: 0 0 56%; aspect-ratio: 2 / 1; }
.kp-pg--single .kp-pg__body { padding: 26px 28px; justify-content: center; }
.kp-pg--single .kp-pg__name { font-size: 22px !important; }

.kp-pg--kosong { text-align: center; color: var(--kp-muted); padding: 24px; }

@media (max-width: 1024px) {
	.kp-pg__grid { grid-template-columns: repeat(min(var(--kp-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.kp-pg { padding: 28px 16px 24px; border-radius: 20px; }
	.kp-pg__grid { grid-template-columns: 1fr; gap: 16px; }
	.kp-pg--single .kp-pg__card { flex-direction: column; }
	.kp-pg--single .kp-pg__media { flex: none; }
	.kp-pg--single .kp-pg__body { padding: 18px 20px 20px; }
	.kp-pg--single .kp-pg__name { font-size: 18px !important; }
}

/* Gambar tambahan di bawah post */
.kp-galeri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 10px; }
.kp-galeri--1 { grid-template-columns: 1fr; }
.kp-galeri a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid #f1e1e8; background: #f3f4f6; }
.kp-galeri img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 !important; transition: transform .3s; }
.kp-galeri--1 img { aspect-ratio: auto; }
.kp-galeri a:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .kp-galeri { grid-template-columns: 1fr; } }

/* Video di bawah post */
.kp-video { margin: 28px 0 10px; }
.kp-video iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
