/* Job Listing Widget - Frontend Styles */

.jlw-wrapper {
	margin: 0 auto;
	box-sizing: border-box;
}

.jlw-wrapper.jlw-list .jlw-card {
	margin-bottom: 16px;
}
.jlw-wrapper.jlw-list .jlw-card:last-child {
	margin-bottom: 0;
}

.jlw-card {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #ececf1;
	border-radius: 18px;
	padding: 18px 24px;
	box-shadow: 0 6px 18px rgba(20, 20, 40, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.jlw-card-top {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.jlw-card .jlw-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2b6fe0, #5aa9ff);
}

.jlw-card .jlw-icon .dashicons {
	color: #ffffff;
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.jlw-card .jlw-body {
	flex: 1 1 auto;
	min-width: 0;
}

.jlw-card .jlw-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 4px;
	line-height: 1.3;
}

.jlw-card .jlw-summary {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 10px;
	line-height: 1.5;
}

.jlw-card .jlw-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.jlw-card .jlw-tag {
	display: inline-block;
	background: #f2f3f7;
	color: #4b5563;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 999px;
}

.jlw-card .jlw-action {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.jlw-card .jlw-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	background: #ffffff;
	border: 1px solid #e2e4ea;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s ease, border-color 0.15s ease, background 0.15s ease;
}

.jlw-card .jlw-toggle:hover {
	background: #f7f8fb;
}

.jlw-card .jlw-toggle .jlw-toggle-chevron {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #4b5563;
	transition: transform 0.2s ease;
}

.jlw-card.jlw-expanded .jlw-toggle {
	transform: none;
}

.jlw-card.jlw-expanded .jlw-toggle .jlw-toggle-chevron {
	transform: rotate(180deg);
}

.jlw-card .jlw-full-summary {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.jlw-card .jlw-full-summary-inner {
	padding-top: 16px;
	margin-top: 16px;
	border-top: 1px solid #ececf1;
	font-size: 14px;
	line-height: 1.65;
	color: #374151;
}

.jlw-card .jlw-full-summary-inner p {
	margin: 0 0 12px;
}

.jlw-card .jlw-full-summary-inner p:last-child {
	margin-bottom: 0;
}

.jlw-card .jlw-apply-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #e2e4ea;
	color: #1a1a2e;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.jlw-card .jlw-apply-btn:hover {
	transform: translateY(-1px);
}

.jlw-card .jlw-apply-btn .jlw-arrow {
	font-size: 15px;
	line-height: 1;
}

/* Responsive: stack on small widths */
@media (max-width: 560px) {
	.jlw-card-top {
		flex-wrap: wrap;
	}
	.jlw-card .jlw-action {
		width: 100%;
	}
	.jlw-card .jlw-apply-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}
