/**
 * Single Job Detail (Trang Chi Tiết Việc Làm) Stylesheet
 * Scoped strictly to .a-single-job-page to prevent any conflicts with other pages
 *
 * @package Flatsome Child
 */

.a-single-job-page {
	width: 100%;
	background: #f8fafc;
	min-height: 80vh;
}

.a-single-job-page *,
.a-single-job-page *::before,
.a-single-job-page *::after {
	box-sizing: border-box;
}

.a-job-detail-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0px 20px 30px 20px;
}

/* Breadcrumbs */
.a-job-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13.5px;
	color: #64748b;
	margin-bottom: 22px;
	line-height: 1.4;
}

.a-job-breadcrumbs a {
	color: #64748b;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.a-job-breadcrumbs a:hover {
	color: #2563eb;
}

.a-job-breadcrumbs .a-bc-sep {
	color: #cbd5e1;
	font-size: 12px;
}

.a-job-breadcrumbs .a-bc-current {
	color: #0f172a;
	font-weight: 600;
	max-width: 450px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ----------------------------------------------------
   1. HERO HEADER CARD
   ---------------------------------------------------- */
.a-job-hero-card {
	background: #ffffff;
	border-radius: 5px;
	border: 1px solid #eef2f6;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	padding: 15px 20px;
	margin-bottom: 15px;
	position: relative;
	overflow: hidden;
}

.a-job-hero-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.a-job-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.a-job-badge.cat {
	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
}

.a-job-badge.level {
	background: rgba(147, 51, 234, 0.08);
	color: #7e22ce;
}

.a-job-badge.type {
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
}

.a-job-badge.loc {
	background: #f1f5f9;
	color: #475569;
}

.a-job-badge.loc svg {
	width: 13px;
	height: 13px;
	stroke: #2563eb;
}

/* Job Title */
.a-job-hero-title {
	font-family: inherit;
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
	margin: 0 0 10px 0;
	letter-spacing: -0.02em;
	word-break: break-word;
}

/* Key Highlights Row */
.a-job-hero-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
}

.a-job-meta-box {
	display: flex;
	align-items: center;
	gap: 12px;
}

.a-job-meta-icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #2563eb;
}

.a-job-meta-icon-wrap svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.a-job-meta-icon-wrap.salary {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.2);
	color: #059669;
}

.a-job-meta-text {
	display: flex;
	flex-direction: column;
}

.a-job-meta-label {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	color: #64748b;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.a-job-meta-val {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
}

.a-job-meta-val.salary-highlight {
	color: #059669;
	font-size: 16px;
}

/* Hero CTA Row */
.a-job-hero-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

.a-job-btn-apply-hero {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--primary-color);
	color: #ffffff !important;
	padding: 13px 32px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.a-job-btn-apply-hero:hover {
	background: #1d4ed8;
	color: #ffffff !important;
}

.a-job-btn-apply-hero svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

/* Share in Hero */
.a-job-share-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.a-job-share-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}

.a-job-share-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.a-job-share-btn:hover {
	transform: translateY(-2px);
	opacity: 0.9;
	color: #ffffff !important;
}

.a-job-share-btn svg {
	width: 15px;
	height: 15px;
}

.a-job-share-btn.fb {
	background: #1877f2;
}

.a-job-share-btn.in {
	background: #0a66c2;
}

/* ----------------------------------------------------
   2. MAIN 2-COLUMN GRID
   ---------------------------------------------------- */
.a-job-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 15px;
	align-items: start;
}

/* Left Column: Job Content */
.a-job-content-col {
	min-width: 0;
	width: 100%;
}

.a-job-content-card {
	background: #ffffff;
	border-radius: 5px;
	border: 1px solid #eef2f6;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	padding: 20px;
	margin-bottom: 15px;
}

/* Summary Callout */
.a-job-summary-box {
	background: #f0f7ff;
	border-left: 4px solid #2563eb;
	border-radius: 0 12px 12px 0;
	padding: 20px 24px;
	margin-bottom: 32px;
}

.a-job-summary-title {
	font-size: 15px;
	font-weight: 700;
	color: #1e3a8a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 8px 0;
}

.a-job-summary-text {
	font-size: 14.5px;
	color: #334155;
	line-height: 1.65;
	margin: 0;
}

/* Job Sections */
.a-job-section {
	margin-bottom: 36px;
}

.a-job-section-title {
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1.5px solid #f1f5f9;
}

.a-job-section-icon {
	width: 22px;
	height: 22px;
	stroke: #2563eb;
	flex-shrink: 0;
}

.a-job-section-body {
	font-size: 15.5px;
	line-height: 1.8;
	color: #334155;
	word-break: break-word;
}

.a-job-section-body p {
	margin-bottom: 16px;
}

.a-job-section-body ul,
.a-job-section-body ol {
	margin: 0 0 18px 0;
	padding-left: 22px;
	line-height: 1.75;
}

.a-job-section-body li {
	margin-bottom: 8px;
}

/* ----------------------------------------------------
   3. APPLY JOB FORM CONTAINER
   ---------------------------------------------------- */
.a-job-apply-section {
	background: #ffffff;
	border-radius: 5px;
	border: 2px solid #e0e7ff;
	box-shadow: 0 8px 30px rgba(37, 99, 235, 0.06);
	padding: 15px 20px;
	position: relative;
}

.a-job-apply-header {
	text-align: center;
	margin-bottom: 10px;
}

.a-job-apply-title {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
}

/* CF7 Form Custom Styling */
.a-job-apply-section .wpcf7-form {
	margin: 0;
}

.a-job-apply-section label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 6px;
}

.a-job-apply-section label .required {
	color: #ef4444;
}

.a-job-apply-section .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.a-job-apply-section input[type="text"],
.a-job-apply-section input[type="email"],
.a-job-apply-section input[type="tel"] {
	width: 100%;
	height: 46px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	padding: 0 16px;
	font-size: 14px;
	color: #0f172a;
	background: #ffffff;
	box-shadow: none;
	transition: all 0.2s ease;
}

.a-job-apply-section input[type="text"]:focus,
.a-job-apply-section input[type="email"]:focus,
.a-job-apply-section input[type="tel"]:focus,
.a-job-apply-section textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	outline: none;
}

.a-job-apply-section input[readonly] {
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	cursor: not-allowed;
	border-color: #e2e8f0;
}

.a-job-apply-section textarea {
	width: 100%;
	min-height: 100px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	color: #0f172a;
	background: #ffffff;
	box-shadow: none;
	line-height: 1.6;
	transition: all 0.2s ease;
	resize: vertical;
}

/* File Upload input */
.a-job-apply-section input[type="file"] {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px dashed #3b82f6;
	background: #f0f7ff;
	border-radius: 8px;
	font-size: 13.5px;
	color: #334155;
	cursor: pointer;
	box-shadow: none;
}

.a-job-apply-section .btn-apply-submit,
.a-job-apply-section input[type="submit"] {
	width: 100%;
	height: 48px;
	background: var(--primary-color) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 5px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.6px !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
}

.a-job-apply-section .btn-apply-submit:hover,
.a-job-apply-section input[type="submit"]:hover {
	background: #1d4ed8 !important;
}

.a-job-apply-section .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #ef4444;
	margin-top: 4px;
}

.a-job-apply-section .wpcf7-response-output {
	border-radius: 8px;
	font-size: 13.5px;
	padding: 12px 16px !important;
	margin: 0px !important;
}

/* ----------------------------------------------------
   4. SIDEBAR (RIGHT COLUMN)
   ---------------------------------------------------- */
.a-job-sidebar-col {
	width: 100%;
}

.a-job-sidebar-inner {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Quick Info Widget */
.a-job-sidebar-widget {
	background: #ffffff;
	border-radius: 5px;
	border: 1px solid #eef2f6;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
	padding: 24px 22px;
}

.a-job-widget-title {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-bottom: 10px;
}

.a-job-info-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.a-job-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 13.5px;
}

.a-job-info-icon {
	width: 18px;
	height: 18px;
	stroke: #2563eb;
	flex-shrink: 0;
	margin-top: 2px;
}

.a-job-info-content {
	display: flex;
	flex-direction: column;
}

.a-job-info-label {
	font-size: 13px;
	color: #64748b;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 2px;
}

.a-job-info-val {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

/* Related Jobs Widget */
.a-related-jobs-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.a-related-job-item {
	display: block;
	padding: 12px;
	border-radius: 5px;
	background: #f8fafc;
	border: 1px solid #eef2f6;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.a-related-job-item:hover {
	background: #ffffff;
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.a-related-job-title {
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.35;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.a-related-job-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
}

.a-related-job-salary {
	color: #059669;
	font-weight: 700;
	font-size: 14px;
}

.a-related-job-loc {
	color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
	.a-job-main-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.a-job-sidebar-inner {
		position: static;
	}

	.a-job-hero-card {
		padding: 28px 24px;
	}

	.a-job-content-card,
	.a-job-apply-section {
		padding: 28px 22px;
	}
}

@media (max-width: 600px) {
	.a-job-detail-container {
		padding: 0px 14px 18px 14px;
	}

	.a-job-hero-title {
		font-size: 22px;
	}

	.a-job-hero-meta-grid {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.a-job-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.a-job-btn-apply-hero {
		text-align: center;
		justify-content: center;
	}

	.a-job-apply-section .form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.a-job-apply-title {
		font-size: 20px;
	}
}