/**
 * Public Styles
 *
 * @package Company_Careers
 */

/* Jobs Archive Page - Hero Section */
.cc-jobs-hero {
	max-width: 1400px;
	margin: 0 auto;
	padding: 80px 20px 60px;
	text-align: center;
}

.cc-jobs-hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.cc-jobs-hero-text {
	max-width: 900px;
}

.cc-jobs-hero-label {
	font-size: 16px;
	font-weight: 600;
	color: #5dade2;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0 0 24px 0;
}

.cc-jobs-hero-title {
	font-size: 42px;
	font-weight: 700;
	color: #2c3e50;
	line-height: 1.3;
	margin: 0 0 20px 0;
}

.cc-jobs-hero-description {
	font-size: 18px;
	color: #555;
	line-height: 1.7;
	margin: 0 0 40px 0;
}

.cc-jobs-hero-badge {
	margin-top: 20px;
}

.cc-excellence-badge {
	display: inline-block;
	padding: 16px 24px;
	background: #e8f4f8;
	border-radius: 8px;
	min-width: 280px;
}

.cc-badge-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cc-badge-label {
	font-size: 11px;
	font-weight: 600;
	color: #5dade2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cc-badge-main {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.cc-badge-text {
	font-size: 14px;
	font-weight: 700;
	color: #2c3e50;
}

.cc-badge-icons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cc-linkedin-icon,
.cc-shield-icon {
	color: #5dade2;
	flex-shrink: 0;
}

/* Jobs Content Section */
.cc-jobs-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

.cc-vacancies-container {
	background: #f5f5f5;
	border-radius: 12px;
	padding: 40px;
	margin-top: 40px;
}

.cc-active-vacancies-title {
	font-size: 32px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 32px 0;
}

/* Job List - Grid Layout */
.cc-job-list-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
}

@media screen and (max-width: 1024px) {
	.cc-job-list-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.cc-job-list-grid {
		grid-template-columns: 1fr;
	}
}

/* Job Card - New Design */
.cc-job-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.cc-job-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.job-card-head {
	display: flex;
	justify-content: space-between;
}


.cc-job-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0;
	line-height: 1.3;
}

.cc-job-card-tag {
	display: inline-block;
	padding: 6px 14px;
	background: #f0f0f0;
	color: #5dade2;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	align-self: flex-start;
}

.cc-job-card-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}

.cc-job-card-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #555;
	font-size: 14px;
}

.cc-job-card-meta-item .cc-icon {
	flex-shrink: 0;
	color: #7f8c8d;
	width: 16px;
	height: 16px;
}

.cc-job-card-apply-btn {
	display: inline-block;
	padding: 12px 24px;
	background-color: #5dade2;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.3s ease;
	margin-top: auto;
}

.cc-job-card-apply-btn:hover {
	background-color: #3498db;
	color: #fff;
}

/* Archive Jobs Shortcode - Simple Layout */
.cc-jobs-archive-wrapper {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.cc-job-list-simple {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

.cc-job-card-simple {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: box-shadow 0.3s ease;
}

.cc-job-card-simple:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cc-job-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
	gap: 20px;
}

.cc-job-card-title-simple {
	font-size: 24px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0;
	line-height: 1.4;
	flex: 1;
}

.cc-job-type-badge {
	display: inline-block;
	padding: 6px 14px;
	background-color: #3498db;
	color: #fff;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	flex-shrink: 0;
}

.cc-job-card-details {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 20px;
	color: #555;
	font-size: 14px;
	line-height: 1.6;
}

.cc-job-detail-item {
	color: #555;
}

.cc-job-detail-item:not(:last-child)::after {
	content: ",";
	margin-left: 4px;
}

.cc-job-card-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.cc-btn-view-details {
	display: inline-block;
	padding: 10px 24px;
	background-color: #3498db;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.cc-btn-view-details:hover {
	background-color: #2980b9;
	color: #fff;
}

.cc-btn-apply-now {
	display: inline-block;
	padding: 10px 24px;
	background-color: #95a5a6;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.cc-btn-apply-now:hover {
	background-color: #7f8c8d;
	color: #fff;
}

/* Responsive Styles for Archive Jobs */
@media screen and (max-width: 768px) {
	.cc-jobs-archive-wrapper {
		padding: 0 15px;
		margin: 20px auto;
	}
	
	.cc-job-card-simple {
		padding: 20px;
	}
	
	.cc-job-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.cc-job-card-title-simple {
		font-size: 20px;
	}
	
	.cc-job-type-badge {
		align-self: flex-start;
	}
	
	.cc-job-card-actions {
		flex-direction: column;
		width: 100%;
	}
	
	.cc-btn-view-details,
	.cc-btn-apply-now {
		width: 100%;
		text-align: center;
	}
}

/* Legacy Job List (for backward compatibility) */
.cc-job-list {
	margin: 20px 0;
}

.cc-job-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 25px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: box-shadow 0.3s ease;
}

.cc-job-item:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cc-job-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
	gap: 15px;
}

.cc-job-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.4;
}

.cc-job-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.3s ease;
}

.cc-job-title a:hover {
	color: #3498db;
}

.cc-job-type {
	display: inline-block;
	padding: 4px 12px;
	background-color: #3498db;
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.cc-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
	color: #7f8c8d;
	font-size: 14px;
}

.cc-job-meta span {
	display: flex;
	align-items: center;
}

.cc-job-meta span::before {
	content: "•";
	margin-right: 5px;
	color: #bdc3c7;
}

.cc-job-meta span:first-child::before {
	content: "";
	margin-right: 0;
}

.cc-job-department::before {
	content: "📁 ";
	margin-right: 5px;
}

.cc-job-location::before {
	content: "📍 ";
	margin-right: 5px;
}

.cc-job-salary::before {
	content: "💰 ";
	margin-right: 5px;
}

.cc-job-excerpt {
	margin-bottom: 20px;
	color: #555;
	line-height: 1.6;
}

.cc-job-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cc-no-jobs {
	padding: 30px;
	text-align: center;
	color: #7f8c8d;
	font-size: 16px;
	background: #f8f9fa;
	border-radius: 4px;
}

/* Apply Form */
.cc-apply-form-wrapper {
	margin: 0;
	padding: 30px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* When form is standalone (not in detail page) */
.cc-apply-form-wrapper:not(.cc-in-detail-page) {
	max-width: 600px;
	margin: 30px auto;
}

.cc-apply-form-wrapper h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #2c3e50;
}

.cc-apply-form {
	display: flex;
	flex-direction: column;
}

.cc-form-group {
	margin-bottom: 20px;
}

.cc-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #2c3e50;
}

.cc-form-group .required {
	color: #e74c3c;
}

.cc-form-control {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
	font-family: inherit;
	background: #f8f9fa;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.cc-form-control:focus {
	outline: none;
	border-color: #3498db;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cc-form-control[type="file"] {
	padding: 10px;
	cursor: pointer;
	background: #fff;
}

.cc-help-text {
	display: block;
	margin-top: 5px;
	color: #7f8c8d;
	font-size: 13px;
}

.cc-form-messages {
	margin-bottom: 20px;
	padding: 12px;
	border-radius: 4px;
	display: none;
}

.cc-form-messages.cc-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.cc-form-messages.cc-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* Buttons */
.cc-btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.cc-btn-primary {
	background-color: #3498db;
	color: #fff;
}

.cc-btn-primary:hover {
	background-color: #2980b9;
	color: #fff;
}

.cc-btn-primary:disabled {
	background-color: #95a5a6;
	cursor: not-allowed;
}

.cc-btn-secondary {
	background-color: #95a5a6;
	color: #fff;
}

.cc-btn-secondary:hover {
	background-color: #7f8c8d;
	color: #fff;
}

.cc-error {
	color: #e74c3c;
	margin: 10px 0;
	padding: 10px;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
}

/* Loading State */
.cc-btn.loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.cc-btn.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cc-spin 0.6s linear infinite;
}

@keyframes cc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Job Detail Page - Two Column Layout */
.cc-job-detail-page {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.cc-job-detail-container {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 40px;
	align-items: start;
}

@media screen and (max-width: 1024px) {
	.cc-job-detail-container {
		grid-template-columns: 1fr;
	}
}

.cc-job-detail-left {
	background: #fff;
	padding: 0;
	min-width: 0; /* Prevent grid overflow */
}

.cc-job-detail-right {
	position: sticky;
	top: 20px;
	min-width: 0; /* Prevent grid overflow */
}

.cc-job-section {
	margin-bottom: 40px;
}

.cc-section-title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #555;
	margin: 0 0 20px 0;
}

.cc-job-title {
	font-size: 36px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 15px 0;
	line-height: 1.2;
}

.cc-job-location {
	font-size: 16px;
	color: #7f8c8d;
	margin: 0 0 30px 0;
}

.cc-section-heading {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

.cc-job-content {
	color: #555;
	line-height: 1.8;
	font-size: 15px;
}

.cc-job-content ul,
.cc-job-content ol {
	margin: 15px 0;
	padding-left: 25px;
}

.cc-job-content li {
	margin-bottom: 10px;
}

.cc-job-content p {
	margin-bottom: 15px;
}

.cc-job-content strong {
	color: #2c3e50;
	font-weight: 600;
}

/* Apply Form Styling for Detail Page - Override for right column */
.cc-job-detail-right .cc-apply-form-wrapper {
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	max-width: 100%;
	margin: 0;
}

.cc-form-title {
	font-size: 28px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 25px 0;
}

.cc-form-control[type="file"] {
	padding: 10px;
	cursor: pointer;
	background: #fff;
}

.cc-file-input-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.cc-file-name {
	display: inline-block;
	color: #7f8c8d;
	font-size: 14px;
	font-style: italic;
}

.cc-btn-apply,
.cc-btn-submit {
	display: inline-block;
	padding: 14px 32px;
	background-color: #3498db;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	width: 100%;
}

.cc-btn-apply:hover,
.cc-btn-submit:hover {
	background-color: #2980b9;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.cc-btn-submit:disabled {
	background-color: #95a5a6;
	cursor: not-allowed;
	transform: none;
}

/* Responsive */
@media screen and (max-width: 1024px) {
	.cc-job-detail-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.cc-job-detail-right {
		position: static;
	}
}

/* Jobs Apply Section */
.cc-jobs-apply-section {
	background: #f8f9fa;
	padding: 80px 20px;
	margin-top: 60px;
}

.cc-jobs-apply-content {
	max-width: 1200px;
	margin: 0 auto;
}

.cc-jobs-apply-title {
	font-size: 36px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 10px 0;
	text-align: center;
}

.cc-jobs-apply-subtitle {
	font-size: 18px;
	color: #7f8c8d;
	text-align: center;
	margin: 0 0 50px 0;
}

/* Archive Form Layout */
.cc-archive-form {
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.cc-archive-form .cc-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 30px;
}

.cc-archive-form .cc-form-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cc-archive-form .cc-form-group label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #2c3e50;
	margin-bottom: 8px;
}

.cc-upload-section {
	margin: 30px 0;
}

.cc-upload-area {
	border: 2px dashed #ddd;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	background: #fafafa;
	transition: all 0.3s ease;
}

.cc-upload-area:hover {
	border-color: #3498db;
	background: #f0f8ff;
}

.cc-upload-icon {
	color: #3498db;
	margin: 0 auto 16px;
	display: block;
}

.cc-upload-text {
	font-size: 14px;
	color: #7f8c8d;
	margin: 0 0 16px 0;
}

.cc-file-input-hidden {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	overflow: hidden;
}

.cc-browse-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #3498db;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.cc-browse-btn:hover {
	background: #2980b9;
}

.cc-archive-form .cc-file-name {
	display: block;
	margin-top: 12px;
	color: #7f8c8d;
	font-size: 14px;
	font-style: italic;
}

.cc-btn-submit-large {
	padding: 16px 48px;
	font-size: 16px;
	font-weight: 600;
	width: 100%;
}

@media screen and (max-width: 1024px) {
	.cc-jobs-hero {
		padding: 60px 20px 40px;
	}
	
	.cc-jobs-hero-title {
		font-size: 36px;
	}
	
	.cc-vacancies-container {
		padding: 30px 20px;
	}
	
	.cc-archive-form .cc-form-row {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 768px) {
	.cc-jobs-hero {
		padding: 50px 15px 40px;
	}
	
	.cc-jobs-hero-title {
		font-size: 28px;
	}
	
	.cc-jobs-hero-description {
		font-size: 16px;
	}
	
	.cc-vacancies-container {
		padding: 24px 16px;
	}
	
	.cc-active-vacancies-title {
		font-size: 24px;
		margin-bottom: 24px;
	}
	
	.cc-jobs-apply-title {
		font-size: 28px;
	}
	
	.cc-jobs-apply-section {
		padding: 50px 15px;
	}
	
	.cc-archive-form {
		padding: 30px 20px;
	}
	
	.cc-job-detail-page {
		padding: 20px 15px;
	}
	
	.cc-job-header {
		flex-direction: column;
	}
	
	.cc-job-type {
		align-self: flex-start;
	}
	
	.cc-job-actions {
		flex-direction: column;
	}
	
	.cc-btn {
		width: 100%;
	}
	
	.cc-apply-form-wrapper {
		padding: 20px;
	}
	
	.cc-job-title {
		font-size: 28px;
	}
	
	.cc-section-heading {
		font-size: 20px;
	}
}
