/* ===== Grid & Card (dipakai widget Elementor & shortcode) ===== */
.pengumuman-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.pengumuman-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.pengumuman-card:hover {
	transform: translateY(-4px);
}

.pengumuman-card-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #eee;
}

.pengumuman-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pengumuman-card-noimage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 13px;
	background: #f0f0f0;
}

.pengumuman-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.pengumuman-card-date {
	font-size: 13px;
	color: #888;
}

.pengumuman-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	color: #1a1a1a;
}

.pengumuman-card-button {
	display: inline-block;
	margin-top: auto;
	align-self: flex-start;
	background: #2271b1;
	color: #fff;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 13px;
	transition: background-color .2s ease, color .2s ease;
}

/* ===== Halaman detail (single-pengumuman.php) ===== */
.pengumuman-single-wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px;
}

.pengumuman-single-thumb img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 16px;
}

.pengumuman-single-title {
	margin: 0 0 6px;
	font-size: 28px;
}

.pengumuman-single-date {
	color: #888;
	margin-bottom: 24px;
}

.pengumuman-search-wrap {
	margin-bottom: 16px;
}

#pengumuman-search {
	width: 100%;
	max-width: 320px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.pengumuman-table-wrap {
	overflow-x: auto;
}

.pengumuman-frontend-table {
	width: 100%;
	border-collapse: collapse;
}

.pengumuman-frontend-table th,
.pengumuman-frontend-table td {
	text-align: left;
	padding: 12px 10px;
	border-bottom: 1px solid #eee;
	white-space: nowrap;
}

.pengumuman-frontend-table th {
	color: #666;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.pengumuman-download-btn {
	display: inline-block;
	padding: 6px 14px;
	background: #2E7C32;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	transition: background-color .2s ease, color .2s ease;
}

.pengumuman-download-btn:hover {
	background: #003603;
	color: #fff;
}

@media (max-width: 782px) {
	.pengumuman-grid {
		grid-template-columns: 1fr !important;
	}
}
