/**
 * VacancyWorld - Single Job Post & Article Stylesheet (Mobile-First)
 * Version: 2.0.0
 * Pure CSS3 - Highly Optimized for 320px to 1280px+ Viewports
 */

.vw-single-container {
	padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* Breadcrumbs */
.vw-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: clamp(0.775rem, 2vw, 0.85rem);
	color: var(--vw-text-muted);
	margin-bottom: 1rem;
}

.vw-breadcrumbs a {
	color: var(--vw-text-muted);
}

.vw-breadcrumbs a:hover {
	color: var(--vw-primary);
}

.vw-breadcrumbs span.separator {
	color: var(--vw-text-light);
}

/* Article Header */
.vw-single-header {
	margin-bottom: 1.25rem;
}

.vw-single-title {
	font-size: clamp(1.35rem, 5.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 0.75rem;
	color: var(--vw-text-main);
	letter-spacing: -0.02em;
	word-break: break-word;
	overflow-wrap: break-word;
}

.vw-single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem;
	font-size: clamp(0.8rem, 2vw, 0.875rem);
	color: var(--vw-text-muted);
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--vw-border);
}

.vw-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* Featured Image */
.vw-single-featured-image {
	margin-bottom: 1.5rem;
	border-radius: var(--vw-radius-md);
	overflow: hidden;
	box-shadow: var(--vw-shadow-sm);
	border: 1px solid var(--vw-border);
}

.vw-single-featured-image img {
	width: 100%;
	max-height: clamp(240px, 40vw, 480px);
	object-fit: cover;
}

/* Dynamic Job Overview Summary Box */
.vw-job-summary-box {
	background-color: var(--vw-card-bg);
	border: 1px solid var(--vw-border);
	border-top: 4px solid var(--vw-primary);
	border-radius: var(--vw-radius-md);
	padding: clamp(1rem, 3vw, 1.5rem);
	margin-bottom: 1.75rem;
	box-shadow: var(--vw-shadow-sm);
}

.vw-job-summary-title {
	font-size: clamp(1.05rem, 3vw, 1.2rem);
	color: var(--vw-primary);
	margin-bottom: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
}

.vw-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: 0.75rem;
}

.vw-summary-item {
	display: flex;
	flex-direction: column;
	background-color: var(--vw-bg);
	padding: 0.65rem 0.8rem;
	border-radius: var(--vw-radius-sm);
	border: 1px solid var(--vw-border);
	word-break: break-word;
}

.vw-summary-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--vw-text-muted);
	margin-bottom: 0.15rem;
}

.vw-summary-value {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--vw-text-main);
	word-break: break-word;
}

/* Prominent Apply Box CTA (Mobile 100% Full Width) */
.vw-apply-box {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: #ffffff;
	border-radius: var(--vw-radius-lg);
	padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
	text-align: center;
	margin: 2rem 0;
	box-shadow: 0 8px 20px rgba(5, 150, 105, 0.2);
}

.vw-apply-box h3 {
	color: #ffffff;
	font-size: clamp(1.15rem, 4vw, 1.4rem);
	margin-bottom: 0.35rem;
}

.vw-apply-box p {
	color: #ecfdf5;
	font-size: clamp(0.85rem, 2.5vw, 0.925rem);
	margin-bottom: 1.15rem;
}

.vw-btn-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: #ffffff;
	color: #047857;
	font-family: var(--vw-font-heading);
	font-size: clamp(1rem, 3.5vw, 1.15rem);
	font-weight: 800;
	padding: 0.85rem 2rem;
	border-radius: var(--vw-radius-full);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transition: all 0.2s ease;
	border: none;
	min-height: 50px;
	width: auto;
	max-width: 100%;
}

@media (max-width: 576px) {
	.vw-btn-apply {
		width: 100%;
		display: flex;
		text-align: center;
	}
}

.vw-btn-apply:hover {
	background-color: #f0fdf4;
	color: #064e3b;
	transform: translateY(-2px);
}

/* Post Content Typography & Block Formatting */
.vw-entry-content {
	font-size: clamp(0.975rem, 2.5vw, 1.025rem);
	line-height: 1.75;
	color: var(--vw-text-main);
	word-break: break-word;
	overflow-wrap: break-word;
}

.vw-entry-content p {
	margin-bottom: 1.25rem;
}

.vw-entry-content h2 {
	font-size: clamp(1.25rem, 4vw, 1.5rem);
	margin-top: 1.65rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--vw-border);
}

.vw-entry-content h3 {
	font-size: clamp(1.1rem, 3vw, 1.25rem);
	margin-top: 1.35rem;
	margin-bottom: 0.65rem;
}

.vw-entry-content ul, 
.vw-entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.35rem;
}

.vw-entry-content li {
	margin-bottom: 0.35rem;
}

/* Responsive Table Wrapper & Overflow Protection */
.vw-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1.5rem;
	border-radius: var(--vw-radius-sm);
	border: 1px solid var(--vw-border);
}

.vw-entry-content table,
.vw-responsive-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
}

.vw-entry-content th, 
.vw-entry-content td {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--vw-border);
	text-align: left;
	font-size: 0.875rem;
	word-break: break-word;
}

.vw-entry-content th {
	background-color: var(--vw-bg);
	font-weight: 700;
}

.vw-entry-content blockquote {
	border-left: 4px solid var(--vw-primary);
	padding-left: 0.85rem;
	margin: 1.25rem 0;
	font-style: italic;
	color: var(--vw-text-muted);
}

/* RSS Importer Source Attribution Box Styling */
.vw-job-attribution-box {
	background-color: var(--vw-primary-light);
	border: 1px solid #bfdbfe;
	border-radius: var(--vw-radius-md);
	padding: 1.25rem;
	margin-top: 2rem;
	text-align: center;
}

.vw-attribution-btn {
	display: inline-block;
	background-color: var(--vw-accent);
	color: #ffffff !important;
	padding: 0.75rem 1.5rem;
	border-radius: var(--vw-radius-sm);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	min-height: 48px;
	line-height: 1.5;
}

@media (max-width: 576px) {
	.vw-attribution-btn {
		width: 100%;
		display: block;
	}
}

/* Related Vacancies */
.vw-related-jobs {
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--vw-border);
}

.vw-related-title {
	font-size: clamp(1.15rem, 3.5vw, 1.35rem);
	margin-bottom: 1.15rem;
}
