/* ===== Base Table Styling ===== */
.tablepress {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Segoe UI', sans-serif;
	font-size: 15px;
	background-color: #fff;
	color: #222;
	margin-top: 20px;
	box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.tablepress thead th {
	background-color: #1a1a1a;
	color: #f2f2f2;
	padding: 14px;
	text-align: left;
	border-bottom: 3px solid #FFD700;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.tablepress tbody td {
	padding: 12px;
	border-bottom: 1px solid #ddd;
	vertical-align: top;
}

.tablepress tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

.tablepress tbody tr:hover {
	background-color: #fffbe6;
	cursor: pointer;
}

.tablepress tbody td:first-child {
	font-weight: 600;
	color: #000;
}

/* ===== Responsive Layout ===== */
@media screen and (max-width: 768px) {
	/* Hide table header */
	.tablepress thead {
		display: none !important;
	}

	/* Each row becomes a compact stacked block */
	.tablepress tr {
		display: block !important;
		border: 1px solid #ddd;
		border-radius: 4px;
		margin-bottom: 6px;
		padding: 6px 10px; /* reduced padding */
		background: #fff;
	}

	/* Reset cells to block layout */
	.tablepress td {
		display: block !important;
		width: 100% !important;
		text-align: left !important;
		border: none !important;
		padding: 4px 0; /* tighter spacing */
	}

	/* Title (first column) */
	.tablepress td:first-child {
		font-weight: 700;
		font-size: .95rem;
		color: #000;
		margin-bottom: 4px;
	}

	/* Category (second column) */
	.tablepress td:nth-child(2) {
		font-size: .85rem;
		color: #444;
		margin-bottom: 2px;
	}

	/* Tag (third column) */
	.tablepress td:nth-child(3) {
		font-size: .85rem;
		color: #666;
		margin-bottom: 4px;
	}

	/* Download button (last column) */
	.tablepress td:last-child {
		text-align: right !important;
		margin-top: 4px;
	}
}