/* ============================================================
 * TODAY GOVT JOBS WIDGET - VERTICAL CARD LAYOUT
 * Cards with image on top, data stacked vertically
 * ============================================================ */

.today-govt-jobs-widget {
	background: transparent;
	padding: 0;
}

/* ============ HEADER ============ */
.today-jobs-header {
	background: linear-gradient(135deg, #003d7a 0%, #004a93 100%);
	color: #ffffff;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	border-radius: 8px 8px 0 0;
	margin-bottom: 0;
}

.today-jobs-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
}

.today-view-all-btn {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.today-view-all-btn:hover {
	opacity: 0.8;
}

/* ============ JOBS GRID ============ */
.today-jobs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 0 0 8px 8px;
	border: 1px solid #e0e0e0;
	border-top: none;
}

/* ============ JOB CARD ============ */
.today-job-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.today-job-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* ============ CARD IMAGE ============ */
.today-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.today-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.today-card-image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Image Placeholder */
.today-card-image-placeholder {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #e8f0ff 0%, #f0f4ff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #e0e0e0;
}

.today-card-image-placeholder i {
	font-size: 48px;
	color: #003d7a;
	opacity: 0.5;
}

.today-card-image-placeholder a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

/* ============ CARD CONTENT ============ */
.today-card-content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

/* Card Title */
.today-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #003d7a;
}

.today-card-title a {
	color: #003d7a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.today-card-title a:hover {
	color: #004a93;
	text-decoration: underline;
}

/* Card Meta Items (Date, Author, Location) */
.today-card-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.today-card-meta-item i {
	font-size: 16px;
	color: #003d7a;
	flex-shrink: 0;
}

/* Card Category */
.today-card-category {
	background: #e8f0ff;
	color: #003d7a;
	padding: 6px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	width: fit-content;
	margin-top: 4px;
}

/* Card Last Date */
.today-card-last-date {
	background: #ffebee;
	color: #d32f2f;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.today-card-last-date strong {
	color: #d32f2f;
}

/* Card Button */
.today-card-btn {
	display: inline-block;
	background: #003d7a;
	color: #ffffff;
	padding: 10px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.3s ease;
	margin-top: auto;
	text-align: center;
	width: 100%;
	border: none;
	cursor: pointer;
}

.today-card-btn:hover {
	background: #004a93;
	text-decoration: none;
}

/* ============ NO JOBS MESSAGE ============ */
.today-no-jobs {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 14px;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
	.today-jobs-header {
		flex-direction: column;
		gap: 12px;
		text-align: center;
		padding: 15px;
	}

	.today-jobs-title {
		font-size: 18px;
	}

	.today-jobs-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 16px;
		padding: 16px;
	}

	.today-card-content {
		padding: 12px;
		gap: 8px;
	}

	.today-card-title {
		font-size: 15px;
	}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
	.today-govt-jobs-widget {
		border: none;
		border-radius: 0;
	}

	.today-jobs-header {
		flex-direction: column;
		gap: 10px;
		text-align: center;
		padding: 12px 15px;
		border-radius: 0;
	}

	.today-jobs-title {
		font-size: 16px;
	}

	.today-view-all-btn {
		font-size: 12px;
	}

	.today-jobs-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 12px 15px;
		background: transparent;
		border: none;
		border-radius: 0;
	}

	.today-card-image {
		height: 150px;
	}

	.today-card-content {
		padding: 12px;
		gap: 8px;
	}

	.today-card-title {
		font-size: 14px;
	}

	.today-card-meta-item {
		font-size: 12px;
	}

	.today-card-btn {
		font-size: 12px;
		padding: 8px 12px;
	}

	.today-card-last-date {
		padding: 8px 10px;
		font-size: 12px;
	}
}