/**
 * VacancyWorld - Mobile-First & Lightweight Design System
 * Version: 2.0.0
 * Pure CSS3 - Zero Heavy Frameworks - High Performance & Core Web Vitals Optimized
 */

:root {
	/* Brand Color Palette */
	--vw-primary: #1e40af;        /* Professional Deep Blue */
	--vw-primary-hover: #1d4ed8;  /* Vibrant Hover Blue */
	--vw-primary-light: #eff6ff;  /* Soft Blue Tint */
	--vw-accent: #2563eb;         /* Career Primary CTA Blue */
	--vw-accent-hover: #1d4ed8;
	--vw-accent-green: #16a34a;   /* Apply Button Green */
	--vw-accent-green-hover: #15803d;
	
	/* Neutral Palette - Light Mode Default */
	--vw-bg: #f8fafc;             /* Slate 50 Background */
	--vw-card-bg: #ffffff;
	--vw-border: #e2e8f0;         /* Slate 200 Border */
	--vw-border-hover: #cbd5e1;   /* Slate 300 Border Hover */
	--vw-text-main: #0f172a;      /* Slate 900 Text */
	--vw-text-muted: #475569;     /* Slate 600 Muted Text */
	--vw-text-light: #94a3b8;     /* Slate 400 Light Text */

	/* Shadows */
	--vw-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px 0 rgba(15, 23, 42, 0.02);
	--vw-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
	--vw-shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
	
	/* Border Radius System */
	--vw-radius-sm: 8px;
	--vw-radius-md: 12px;
	--vw-radius-lg: 16px;
	--vw-radius-full: 9999px;

	/* Mobile-First Typography System */
	--vw-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--vw-font-heading: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Dynamic Layout & Spacing */
	--vw-container-max: 1240px;
	--vw-header-height: clamp(56px, 8vw, 68px);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
	--vw-bg: #0f172a;
	--vw-card-bg: #1e293b;
	--vw-border: #334155;
	--vw-border-hover: #475569;
	--vw-text-main: #f8fafc;
	--vw-text-muted: #cbd5e1;
	--vw-text-light: #64748b;
	--vw-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
	--vw-shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
	--vw-shadow-lg: 0 12px 24px 0 rgba(0, 0, 0, 0.5);
	--vw-primary-light: #1e3a8a;
}

/* Strict Zero Horizontal Overflow & Universal Reset */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-family: var(--vw-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vw-text-main);
	background-color: var(--vw-bg);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
	width: 100%;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--vw-bg);
	overflow-x: hidden;
	width: 100%;
	position: relative;
}

body.vw-menu-open {
	overflow: hidden;
}

a {
	color: var(--vw-primary);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
	word-break: break-word;
}

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

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Fluid Typography Scale */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--vw-font-heading);
	color: var(--vw-text-main);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
	word-break: break-word;
}

h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.25rem); }
h4 { font-size: clamp(0.95rem, 2.5vw, 1.1rem); }

/* Responsive Container */
.vw-container {
	width: 100%;
	max-width: var(--vw-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(12px, 4vw, 24px);
	padding-right: clamp(12px, 4vw, 24px);
}

/* Mobile-First Compact Header */
.vw-site-header {
	background-color: var(--vw-card-bg);
	border-bottom: 1px solid var(--vw-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.vw-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--vw-header-height);
	gap: 0.75rem;
}

.vw-brand-logo {
	display: flex;
	align-items: center;
}

.vw-brand-logo img {
	max-height: clamp(28px, 6vw, 42px);
	width: auto;
}

.vw-brand-title {
	font-family: var(--vw-font-heading);
	font-size: clamp(1.2rem, 4.5vw, 1.5rem);
	font-weight: 800;
	color: var(--vw-primary);
	letter-spacing: -0.5px;
	display: flex;
	align-items: center;
	gap: 0.2rem;
	white-space: nowrap;
}

.vw-brand-title span {
	color: var(--vw-text-main);
}

/* Header Actions & Touch Targets */
.vw-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.vw-btn-icon {
	background: transparent;
	border: 1px solid var(--vw-border);
	color: var(--vw-text-muted);
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border-radius: var(--vw-radius-full);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.vw-btn-icon:hover,
.vw-btn-icon:focus-visible {
	background-color: var(--vw-primary-light);
	color: var(--vw-primary);
	border-color: var(--vw-primary);
	outline: none;
}

.vw-menu-toggle {
	display: none;
}

/* Desktop Navigation */
.vw-nav-desktop {
	display: flex;
	align-items: center;
}

.vw-nav-menu {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 0.35rem;
}

.vw-nav-menu a {
	font-weight: 600;
	font-size: 0.925rem;
	color: var(--vw-text-muted);
	padding: 0.5rem 0.85rem;
	border-radius: var(--vw-radius-sm);
	transition: all 0.15s ease;
}

.vw-nav-menu a:hover,
.vw-nav-menu .current-menu-item > a {
	color: var(--vw-primary);
	background-color: var(--vw-primary-light);
}

@media (max-width: 991px) {
	.vw-nav-desktop {
		display: none;
	}
	.vw-menu-toggle {
		display: inline-flex;
	}
}

/* Mobile Navigation Drawer Overlay */
.vw-mobile-nav {
	display: none;
	background-color: var(--vw-card-bg);
	border-bottom: 1px solid var(--vw-border);
	padding: 1rem 1.25rem 1.5rem;
	box-shadow: var(--vw-shadow-md);
}

.vw-mobile-nav.is-active {
	display: block;
}

.vw-mobile-nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vw-mobile-nav a {
	display: block;
	padding: 0.75rem 1rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--vw-text-main);
	border-radius: var(--vw-radius-sm);
	min-height: 44px;
	display: flex;
	align-items: center;
}

.vw-mobile-nav a:hover,
.vw-mobile-nav .current-menu-item > a {
	background-color: var(--vw-primary-light);
	color: var(--vw-primary);
}

/* Mobile-First Hero Section */
.vw-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
	color: #ffffff;
	padding: clamp(2rem, 6vw, 3.75rem) 0;
	position: relative;
	overflow: hidden;
}

.vw-hero-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	position: relative;
	z-index: 2;
}

.vw-hero-eyebrow {
	display: inline-block;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	padding: 0.25rem 0.85rem;
	border-radius: var(--vw-radius-full);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	color: #93c5fd;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.vw-hero-title {
	font-size: clamp(1.65rem, 5.5vw, 2.75rem);
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 0.75rem;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.vw-hero-subtitle {
	font-size: clamp(0.95rem, 2.5vw, 1.1rem);
	color: #cbd5e1;
	margin-bottom: 1.5rem;
	font-weight: 400;
	line-height: 1.5;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* Mobile Search Bar Component */
.vw-search-form {
	display: flex;
	gap: 0.5rem;
	background: #ffffff;
	padding: 0.4rem 0.4rem 0.4rem 1rem;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	max-width: 640px;
	margin: 0 auto;
}

@media (max-width: 576px) {
	.vw-search-form {
		flex-direction: column;
		padding: 0;
		background: transparent;
		box-shadow: none;
		gap: 0.75rem;
	}
}

.vw-search-input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	background: #ffffff;
	border-radius: 10px;
	padding: 0.65rem 1rem;
}

@media (max-width: 576px) {
	.vw-search-input-wrap {
		min-height: 48px;
		box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
	}
}

.vw-search-input-wrap svg {
	color: #94a3b8;
	flex-shrink: 0;
	margin-right: 0.65rem;
}

.vw-search-input {
	width: 100%;
	border: none;
	outline: none;
	font-size: 0.975rem;
	font-family: inherit;
	color: #0f172a;
	background: transparent;
}

.vw-btn-search {
	background-color: var(--vw-accent);
	color: #ffffff;
	border: none;
	padding: 0.75rem 1.65rem;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 10px;
	cursor: pointer;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	-webkit-tap-highlight-color: transparent;
}

.vw-btn-search:hover {
	background-color: var(--vw-accent-hover);
}

/* Category Pills Section */
.vw-category-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.vw-pill {
	background: rgba(255, 255, 255, 0.14);
	color: #f8fafc;
	padding: 0.4rem 0.9rem;
	border-radius: var(--vw-radius-full);
	font-size: 0.825rem;
	font-weight: 600;
	transition: all 0.15s ease;
	border: 1px solid rgba(255, 255, 255, 0.18);
	min-height: 36px;
	display: inline-flex;
	align-items: center;
}

.vw-pill:hover {
	background: #ffffff;
	color: var(--vw-primary);
}

/* Main Layout Grid */
.vw-main-content {
	padding: clamp(1.75rem, 4vw, 3rem) 0;
	flex: 1;
}

.vw-layout-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
}

@media (max-width: 991px) {
	.vw-layout-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* Section Header Accent */
.vw-section-header {
	margin-bottom: 1.25rem;
}

.vw-section-title {
	font-size: clamp(1.25rem, 4vw, 1.5rem);
	font-weight: 800;
	color: var(--vw-text-main);
	margin-bottom: 0.25rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.vw-section-title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--vw-primary) 0%, var(--vw-border) 100%);
	border-radius: 2px;
}

.vw-section-subtitle {
	font-size: 0.9rem;
	color: var(--vw-text-muted);
}

/* Mobile-First Job Cards Grid */
.vw-job-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1.25rem;
}

/* Mobile-Optimized Job Card Element */
.vw-job-card {
	background-color: var(--vw-card-bg);
	border: 1px solid var(--vw-border);
	border-radius: var(--vw-radius-md);
	padding: clamp(1rem, 3.5vw, 1.35rem);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--vw-shadow-sm);
	position: relative;
	width: 100%;
	overflow: hidden;
}

.vw-job-card:hover {
	box-shadow: var(--vw-shadow-md);
	border-color: var(--vw-border-hover);
}

/* Card Image Area */
.vw-card-media {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--vw-radius-sm);
	overflow: hidden;
	margin-bottom: 0.85rem;
	background-color: var(--vw-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--vw-border);
}

.vw-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vw-card-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	color: var(--vw-text-light);
	font-size: 0.8rem;
	font-weight: 600;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--vw-primary-light) 0%, var(--vw-bg) 100%);
}

.vw-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
}

.vw-card-badge {
	background-color: var(--vw-primary-light);
	color: var(--vw-primary);
	font-size: 0.725rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.2rem 0.55rem;
	border-radius: var(--vw-radius-sm);
	letter-spacing: 0.4px;
}

.vw-card-date {
	font-size: 0.775rem;
	color: var(--vw-text-muted);
}

.vw-card-title {
	font-size: clamp(1.05rem, 3.5vw, 1.2rem);
	font-weight: 700;
	margin-bottom: 0.65rem;
	line-height: 1.35;
	word-break: break-word;
	overflow-wrap: break-word;
}

.vw-card-title a {
	color: var(--vw-text-main);
}

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

.vw-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.vw-tag-item {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.775rem;
	color: var(--vw-text-muted);
	background-color: var(--vw-bg);
	padding: 0.2rem 0.5rem;
	border-radius: var(--vw-radius-sm);
	border: 1px solid var(--vw-border);
	word-break: break-word;
}

.vw-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--vw-border);
	gap: 0.5rem;
}

.vw-card-company {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--vw-text-main);
	word-break: break-word;
}

.vw-btn-view {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--vw-primary);
	min-height: 44px;
	padding: 0 0.5rem;
	white-space: nowrap;
}

/* AdSlot Infrastructure - Hide Empty Ad Containers & CLS Prevention */
.vw-ad-slot {
	margin: 1.5rem 0;
	padding: 0.75rem;
	background-color: var(--vw-card-bg);
	border: 1px dashed var(--vw-border);
	border-radius: var(--vw-radius-md);
	text-align: center;
	overflow: hidden;
	position: relative;
	clear: both;
	min-height: 90px;
}

.vw-ad-slot:empty {
	display: none !important;
}

.vw-ad-label {
	font-size: 0.675rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--vw-text-light);
	margin-bottom: 0.35rem;
	display: block;
}

/* Mobile Sidebar Styling */
.vw-sidebar-column:empty {
	display: none;
}

.vw-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.widget {
	background-color: var(--vw-card-bg);
	border: 1px solid var(--vw-border);
	border-radius: var(--vw-radius-md);
	padding: 1.25rem;
	box-shadow: var(--vw-shadow-sm);
}

.widget-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.85rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--vw-primary-light);
	color: var(--vw-text-main);
}

.widget ul {
	list-style: none;
}

.widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px dashed var(--vw-border);
	font-size: 0.875rem;
	word-break: break-word;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--vw-text-main);
	font-weight: 500;
}

.widget ul li a:hover {
	color: var(--vw-primary);
}

/* Touch-Friendly Mobile Pagination */
.vw-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2rem;
}

.vw-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border-radius: var(--vw-radius-sm);
	background-color: var(--vw-card-bg);
	border: 1px solid var(--vw-border);
	color: var(--vw-text-main);
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.vw-pagination .page-numbers:hover,
.vw-pagination .page-numbers.current {
	background-color: var(--vw-primary);
	color: #ffffff;
	border-color: var(--vw-primary);
}

/* Mobile-First Footer Section */
.vw-site-footer {
	background-color: #0f172a;
	color: #94a3b8;
	padding-top: clamp(2rem, 5vw, 3.5rem);
	padding-bottom: 1.5rem;
	border-top: 1px solid #1e293b;
	margin-top: auto;
}

.vw-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.75rem;
	margin-bottom: 2rem;
}

@media (max-width: 991px) {
	.vw-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.vw-footer-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.vw-footer-col h4 {
	color: #f8fafc;
	font-size: 1rem;
	margin-bottom: 0.85rem;
	font-weight: 700;
}

.vw-footer-col ul {
	list-style: none;
}

.vw-footer-col ul li {
	margin-bottom: 0.5rem;
}

.vw-footer-col a {
	color: #94a3b8;
	font-size: 0.875rem;
	display: inline-block;
	padding: 0.2rem 0;
	min-height: 36px;
	display: inline-flex;
	align-items: center;
}

.vw-footer-col a:hover {
	color: #ffffff;
}

/* Footer Disclaimer Box */
.vw-footer-disclaimer {
	background-color: #1e293b;
	border: 1px solid #334155;
	border-radius: var(--vw-radius-md);
	padding: 1.25rem;
	margin-bottom: 1.75rem;
	font-size: 0.825rem;
	line-height: 1.6;
	color: #94a3b8;
}

.vw-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid #1e293b;
	font-size: 0.825rem;
}

@media (max-width: 576px) {
	.vw-footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}
