/* Tradeviser Hiring - front-end styles
   Colors are pulled from CSS variables set dynamically from the
   Hiring > Appearance settings page. Fallback values are the plugin defaults. */

.tvh-hiring-wrap {
	max-width: 1200px;
	margin: 0 auto;
}

/* Openings counter */
.tvh-openings-count {
	font-size: 15px;
	margin: 0 0 16px;
	color: var(--tvh-title-text, #16181d);
}

.tvh-openings-count-number {
	font-size: 20px;
	color: var(--tvh-primary-bg, #0a6cff);
}

/* Search + filter bar */
.tvh-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.tvh-search-wrap {
	position: relative;
	flex: 1 1 260px;
	min-width: 220px;
	display: flex;
	align-items: center;
}

.tvh-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	opacity: 0.5;
	pointer-events: none;
	z-index: 1;
	line-height: 1;
}

.tvh-hiring-wrap .tvh-search-input {
	display: block;
	width: 100% !important;
	max-width: none;
	height: auto !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	padding: 12px 16px 12px 44px !important;
	border: 1.5px solid #e2e4e9 !important;
	border-radius: 999px !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	background: #f2f3f6 !important;
	background-image: none !important;
	color: #2a2f3a !important;
	box-shadow: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tvh-hiring-wrap .tvh-search-input::placeholder {
	color: #9aa0ac;
	opacity: 1;
}

.tvh-hiring-wrap .tvh-search-input:hover {
	background: #e9ebf0 !important;
}

.tvh-hiring-wrap .tvh-search-input:focus {
	outline: none !important;
	background: #fff !important;
	border-color: var(--tvh-primary-bg, #0a6cff) !important;
	box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.12) !important;
}

.tvh-filter-select {
	flex: 0 1 180px;
	padding: 10px 12px;
	border: 1px solid var(--tvh-secondary-border, #d7dbe3);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: var(--tvh-secondary-text, #333);
}

.tvh-filter-select:focus {
	outline: none;
	border-color: var(--tvh-primary-bg, #0a6cff);
}

.tvh-no-results {
	text-align: center;
	padding: 30px 20px;
	color: #666;
}

@media (max-width: 600px) {
	.tvh-search-wrap,
	.tvh-filter-select {
		flex: 1 1 100%;
	}
}

/* Grid - column count controlled by settings or [hiring_jobs columns="2"] */
.tvh-job-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tvh-job-grid.tvh-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.tvh-job-grid.tvh-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.tvh-job-grid.tvh-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.tvh-job-grid.tvh-cols-3,
	.tvh-job-grid.tvh-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tvh-job-grid.tvh-cols-2,
	.tvh-job-grid.tvh-cols-3,
	.tvh-job-grid.tvh-cols-4 {
		grid-template-columns: 1fr;
	}
}

/* Card */
.tvh-job-card {
	position: relative;
	border: 1px solid var(--tvh-card-border, #e6e8ec);
	border-radius: 14px;
	padding: 22px 22px 20px;
	background: var(--tvh-card-bg, #fff);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tvh-job-card:hover {
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.09);
	transform: translateY(-3px);
}

.tvh-job-card.tvh-hidden {
	display: none;
}

.tvh-job-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 10px;
	overflow: hidden;
}

.tvh-job-icon img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.tvh-badge-open {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tvh-status-open-bg, #e8f8ee);
	color: var(--tvh-status-open-text, #1a9a4a);
	white-space: nowrap;
}

.tvh-badge-open.tvh-badge-closed {
	background: var(--tvh-status-closed-bg, #fdecec);
	color: var(--tvh-status-closed-text, #d63333);
}

.tvh-job-title {
	margin: 0 26px 10px 0;
	font-size: 19px;
	line-height: 1.3;
}

.tvh-job-title a {
	color: var(--tvh-title-text, #16181d);
	text-decoration: none;
}

.tvh-job-title a:hover {
	color: var(--tvh-primary-bg, #0a6cff);
}

.tvh-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.tvh-tag {
	display: inline-block;
	font-size: 12.5px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--tvh-tag-type-bg, #f1f4f9);
	color: var(--tvh-tag-type-text, #4a5162);
}

.tvh-tag-category {
	background: var(--tvh-tag-category-bg, #eaf2ff);
	color: var(--tvh-tag-category-text, #0a6cff);
}

.tvh-tag-location {
	background: var(--tvh-tag-location-bg, #f4f0ff);
	color: var(--tvh-tag-location-text, #6a3fd6);
}

.tvh-tag-workmode {
	background: var(--tvh-tag-workmode-bg, #e6f7f5);
	color: var(--tvh-tag-workmode-text, #0a8577);
}

.tvh-tag-experience {
	background: var(--tvh-tag-experience-bg, #eef6ff);
	color: var(--tvh-tag-experience-text, #1558b0);
}

.tvh-tag-status-open {
	background: var(--tvh-status-open-bg, #e8f8ee);
	color: var(--tvh-status-open-text, #1a9a4a);
}

.tvh-tag-status-closed {
	background: var(--tvh-status-closed-bg, #fdecec);
	color: var(--tvh-status-closed-text, #d63333);
}

.tvh-shortlist-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 6px 5px 12px;
	border-radius: 999px;
	background: var(--tvh-shortlist-label-bg, #fff6e8);
	margin-bottom: 12px;
}

.tvh-shortlist-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tvh-shortlist-label-text, #4a5162);
	white-space: nowrap;
}

.tvh-shortlist-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--tvh-shortlist-icon-bg, #f2a51c);
	color: var(--tvh-shortlist-icon-text, #ffffff);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.tvh-job-posted {
	font-size: 13px;
	color: #8a8f9c;
	margin: 0 0 16px;
}

.tvh-job-short-desc {
	font-size: 14px;
	color: #4a5162;
	line-height: 1.5;
	margin: 0 0 12px;
}

.tvh-job-skills-block {
	margin-bottom: 14px;
}

.tvh-skills-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9aa0ac;
	margin-bottom: 6px;
}

.tvh-job-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tvh-skill-pill {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--tvh-skill-bg, #4a5162);
	color: var(--tvh-skill-text, #ffffff);
	border: 1px solid rgba(0, 0, 0, 0.06);
	cursor: default;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tvh-skill-pill:hover {
	background: var(--tvh-skill-hover-bg, #0a6cff);
	color: var(--tvh-skill-hover-text, #ffffff);
	border-color: transparent;
	transform: translateY(-1px);
}

.tvh-job-actions {
	margin-top: auto;
	display: flex;
	gap: 10px;
	padding-top: 4px;
}

.tvh-btn {
	display: inline-block;
	text-align: center;
	padding: 9px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	flex: 1;
}

.tvh-btn-primary {
	background: var(--tvh-primary-bg, #0a6cff);
	color: var(--tvh-primary-text, #fff) !important;
}

.tvh-btn-primary:hover {
	filter: brightness(0.92);
}

.tvh-btn-secondary {
	background: #fff;
	color: var(--tvh-secondary-text, #333) !important;
	border-color: var(--tvh-secondary-border, #d7dbe3);
}

.tvh-btn-secondary:hover {
	border-color: var(--tvh-primary-bg, #0a6cff);
	color: var(--tvh-primary-bg, #0a6cff) !important;
}

.tvh-btn-large {
	padding: 12px 26px;
	font-size: 15px;
	flex: none;
}

.tvh-no-jobs {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

/* Single job page */
.tvh-single-job-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.tvh-back-link {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--tvh-primary-bg, #0a6cff);
	text-decoration: none;
}

.tvh-single-job-title {
	font-size: 30px;
	margin: 0 0 14px;
	color: var(--tvh-title-text, #16181d);
}

.tvh-single-job-header .tvh-job-meta {
	margin-bottom: 8px;
}

.tvh-single-job-header .tvh-job-short-desc {
	font-size: 15px;
	margin-top: 10px;
}

.tvh-single-job-header .tvh-btn {
	margin-top: 18px;
}

.tvh-single-job-content {
	margin-top: 28px;
	line-height: 1.7;
	font-size: 16px;
}

/* Application form */
.tvh-apply-form-wrap {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--tvh-card-border, #e6e8ec);
	scroll-margin-top: 30px;
}

.tvh-apply-form-title {
	font-size: 22px;
	margin: 0 0 18px;
	color: var(--tvh-title-text, #16181d);
}

.tvh-form-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}

.tvh-form-success {
	background: var(--tvh-status-open-bg, #e8f8ee);
	color: var(--tvh-status-open-text, #1a9a4a);
}

.tvh-form-error {
	background: var(--tvh-status-closed-bg, #fdecec);
	color: var(--tvh-status-closed-text, #d63333);
}

.tvh-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.tvh-apply-form .tvh-field {
	margin-bottom: 16px;
}

.tvh-apply-form label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #3a3f4a;
	margin-bottom: 5px;
}

.tvh-req {
	color: #d63333;
}

.tvh-apply-form input[type="text"],
.tvh-apply-form input[type="tel"],
.tvh-apply-form input[type="email"],
.tvh-apply-form input[type="url"],
.tvh-apply-form input[type="number"],
.tvh-apply-form input[type="file"],
.tvh-apply-form select,
.tvh-apply-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1.5px solid var(--tvh-secondary-border, #d7dbe3);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	font-family: inherit;
}

.tvh-apply-form input:disabled {
	background: #f4f5f7;
	color: #8a8f9c;
}

.tvh-apply-form input:focus,
.tvh-apply-form select:focus,
.tvh-apply-form textarea:focus {
	outline: none;
	border-color: var(--tvh-primary-bg, #0a6cff);
	box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.12);
}

.tvh-field-hint {
	display: block;
	font-size: 12px;
	color: #8a8f9c;
	margin-top: 4px;
	font-weight: 400;
}

.tvh-field-submit {
	margin-top: 22px;
}

.tvh-single-job-footer {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--tvh-card-border, #e6e8ec);
}

/* Social sharing */
.tvh-share-block {
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--tvh-card-border, #e6e8ec);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.tvh-share-label {
	font-size: 13.5px;
	color: #6b7180;
	font-weight: 600;
}

.tvh-share-icons {
	display: flex;
	gap: 8px;
}

.tvh-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.tvh-share-icon:hover {
	transform: translateY(-2px);
	filter: brightness(0.92);
}

.tvh-share-facebook {
	background: #1877f2;
}

.tvh-share-linkedin {
	background: #0a66c2;
}

.tvh-share-whatsapp {
	background: #25d366;
	font-size: 10.5px;
}

.tvh-share-instagram {
	background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
	font-size: 10.5px;
}

@media (max-width: 600px) {
	.tvh-job-actions {
		flex-direction: column;
	}
}
