/* Govt Jobs Table — front-end styles */

.gjt-wrapper {
	width: 100%;
	--gjt-mobile-card-bg: #ffffff;
	--gjt-mobile-label-color: #5b7a99;
}

.gjt-heading-bar {
	text-align: center;
	padding: 10px 14px;
	font-size: 18px;
	font-weight: 700;
	background: #e8f2fc;
	color: #1259a4;
}

.gjt-heading-icon {
	margin-right: 6px;
}

.gjt-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gjt-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.gjt-table thead th {
	text-align: left;
	white-space: nowrap;
	font-weight: 700;
	padding: 12px 14px;
	background: linear-gradient(180deg, #12539e, #0d3f7d);
	color: #fff;
}

.gjt-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid #dbe8f5;
	vertical-align: middle;
}

.gjt-table tbody tr:nth-child(even) {
	background-color: #f3f9ff;
}

.gjt-table tbody tr:hover {
	background-color: #eaf4ff;
}

.gjt-icon {
	margin-right: 6px;
}

.gjt-col-department strong {
	color: #c0272d;
}

.gjt-badge {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	padding: 4px 10px;
	border-radius: 14px;
	background: #2f7ed8;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
}

.gjt-action-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	border-radius: 6px;
	background: #eef6ff;
	color: #1b6fd1;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gjt-action-link:hover {
	background: #1b6fd1;
	color: #fff;
}

/* -----------------------------------------------------------
 * Mobile responsive — table converts to stacked cards
 * ----------------------------------------------------------- */
@media (max-width: 767px) {

	.gjt-table-wrap {
		overflow-x: visible;
	}

	.gjt-table thead {
		display: none;
	}

	.gjt-table,
	.gjt-table tbody,
	.gjt-table tr,
	.gjt-table td {
		display: block;
		width: 100%;
	}

	.gjt-table tbody tr {
		margin-bottom: 14px;
		border: 1px solid #dbe8f5;
		border-radius: 10px;
		overflow: hidden;
		background: var(--gjt-mobile-card-bg);
		box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	}

	.gjt-table tbody tr:nth-child(even) {
		background-color: var(--gjt-mobile-card-bg);
	}

	.gjt-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
		text-align: right;
		border-bottom: 1px solid #eef3f8;
		padding: 10px 14px;
	}

	.gjt-table tbody td:last-child {
		border-bottom: none;
	}

	.gjt-table tbody td::before {
		content: attr(data-label);
		font-weight: 700;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		color: var(--gjt-mobile-label-color);
		text-align: left;
		margin-right: 10px;
	}

	.gjt-col-department {
		text-align: right;
	}

	.gjt-col-department strong {
		text-align: right;
	}
}
