/**
 * Career Page Styles
 * Styles for the Career page including job search UI, job cards, and modal.
 *
 */

header#header {
	z-index: 10 !important;
}

.career-container {
	background: #f7f9fc;
	margin: 0 auto;
	max-width: 1140px;
}

.job-search-box input {
	padding: 10px;
}

h2 {
	text-transform: none;
}

h2:after {
	content: none;
}

.job-search-ui {
	padding: 40px 20px;
	background: url('../images/job-portal-bg.png') center/cover no-repeat;
}

.job-search-container {
	max-width: 1000px;
	margin: 0 auto;
}

.job-search-container p {
	color: #ffffff;
}

.job-search-box {
	display: flex;
	gap: 15px;
	padding: 20px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
	flex-wrap: wrap;
}

.input-group {
	flex: 1;
	min-width: 220px;
	display: flex;
	align-items: center;
	background: #f9f9f9;
	/* padding: 12px 14px; */
	border-radius: 12px;
	border: 1px solid #e0e6ef;
	margin-bottom: 0;
}

.input-group i {
	margin-right: 10px;
	font-size: 18px;
	color: #6c98e1;
}

.input-group input {
	width: 100%;
	border: none;
	background: none;
	outline: none;
	font-size: 15px;
}

/* Fix select background inside your input-group */
.input-group select {
	width: 100%;
	background: #f9f9f9;
	border: none;
	outline: none;
	font-size: 15px;
	padding: 10px 12px;
	border-radius: 12px;
	appearance: none;
}

.search-btn {
	padding: 14px 28px;
	background: #002e5b;
	color: #fff;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-size: 15px;
	transition: 0.3s ease;
	white-space: nowrap;
}

.search-btn:hover {
	background: #fde428;
	color: #002e5b;
}

.tag-wrapper {
	position: absolute;
	top: 15px;
	left: -8px;
}

.post-date {
	display: block;
	text-align: right;
	font-size: 12px;
	color: #8391a7;
	margin-top: 10px;
	opacity: 0.8;
	align-self: flex-end;
}

.careers-section {
	padding: 50px 20px;
	background: #f7f9fc;
}

.section-title {
	text-align: center;
	font-size: 32px;
	margin-bottom: 30px;
	color: #002e5b;
	font-weight: 700;
}

.careers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
}

.career-card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	padding: 0;
	position: relative;
}

.career-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-ribbon {
	position: absolute;
	top: 0;
	left: 0;
	background: linear-gradient(135deg,#FFD700,#c89b00);
	padding: 0px 12px 0px 7px;
	color: #002e5b;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	font-family: "Poppins", sans-serif;
	clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
	z-index: 20;

	/* Premium text styling */
	text-shadow:
		0 1px 1px rgba(255,255,255,0.6),
		0 -1px 1px rgba(0,0,0,0.2);
}

.career-image {
	position: relative;
	height: 200px;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
}

.career-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

/* Subtle overlay for premium look */
.career-image::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25));
	opacity: 0.6;
	border-radius: inherit;
}

/* Zoom effect on hover */
.career-card:hover .career-image img {
	transform: scale(1.05);
}

.career-content {
	flex: 1;
	padding: 0 20px 20px 20px;
	display: flex;
	flex-direction: column;
}

.career-content h3 {
	font-size: 18px;
	color: #002e5b;
	margin-bottom: 6px;
}

.career-description {
	margin-bottom: 14px;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
	flex-grow: 1;
}

.career-meta, .career-extra {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 14px;
	color: #555;
}

.career-meta p i, .career-extra p i {
	margin-right: 6px;
	color: #1e73be;
}

.career-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #8391a7;
}

/* Pagination Wrapper */
.pagination-wrapper {
	text-align: center;
	margin-top: 30px;
}

/* Remove default ul styling */
.pagination-wrapper ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap; /* wrap on smaller screens */
	justify-content: center;
	gap: 12px; /* spacing between buttons */
	padding: 0;
	margin: 0;
}

/* List items */
.pagination-wrapper li {
	display: inline;
}

/* Links & current page */
.pagination-wrapper a,
.pagination-wrapper span {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 50px; /* match your load-more-btn rounded style */
	background: linear-gradient(135deg, #1e73be, #155a90);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	min-width: 45px;
	text-align: center;
	font-size: 14px;
}

/* Hover effect */
.pagination-wrapper a:hover {
	background: linear-gradient(135deg, #155a90, #104a7a);
	color: #fde428;
	transform: translateY(-2px);
}

/* Current page */
.pagination-wrapper .current {
	background: #fde428;
	color: #002e5b;
	font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.pagination-wrapper a,
	.pagination-wrapper span {
		padding: 8px 14px;
		font-size: 13px;
		min-width: 40px;
	}
}

@media (max-width: 480px) {
	.pagination-wrapper ul {
		gap: 8px; /* smaller spacing on mobile */
	}

	.pagination-wrapper a,
	.pagination-wrapper span {
		padding: 6px 10px;
		font-size: 12px;
		min-width: 35px;
	}
}

.pagination-wrapper li .page-numbers.current {
	border-color: transparent !important;
}

.pagination-wrapper li .page-numbers:hover {
	border-color: transparent !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.career-meta, .career-extra {
		flex-direction: column;
	}

	.job-search-box {
		padding: 15px;
	}

	.search-btn {
		width: 100%;
	}
}

.load-more-wrapper {
	text-align: center;
	margin-top: 30px;
}

.job-id {
	font-size: 12px;
	color: #8391a7;
	opacity: 0.6;
	display: block;
	margin-top: 8px;
}

.load-more-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 30px auto;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 50px;
	background: linear-gradient(135deg, #1e73be, #155a90);
	color: #fff;
	cursor: pointer;
	transition: 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.load-more-btn:hover {
	background: linear-gradient(135deg, #155a90, #104a7a);
	transform: translateY(-2px);
}

.load-more-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.load-more-btn.loading::after {
	content: " ...";
}

/* ============================
	MODAL OVERLAY
============================ */
.job-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	justify-content: center;
	align-items: center;
	padding: 25px;
	z-index: 99999;
	backdrop-filter: blur(6px);
	animation: fadeOverlay 0.3s ease-out;
}

@keyframes fadeOverlay {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ============================
	MODAL CONTAINER
============================ */
.job-modal {
	width: 100%;
	max-width: 720px;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 92vh;
	box-shadow: 0 20px 45px rgba(0,0,0,0.22);
	animation: modalPop 0.35s ease-out;
}

@keyframes modalPop {
	from { opacity: 0; transform: scale(0.9) translateY(20px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================
	MODAL HEADER
============================ */
.modal-header {
	padding: 20px 26px;
	background: #002e5b;
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #fde428;
	text-transform: none !important;
}

.modal-close {
	font-size: 28px;
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 6px;
	transition: 0.25s ease;
}

.modal-close:hover {
	background: rgba(255,255,255,0.15);
}

/* ============================
	MODAL CONTENT
============================ */
.modal-content-wrapper {
	padding: 26px;
	overflow-y: auto;
}

/* Scrollbar */
.modal-content-wrapper::-webkit-scrollbar {
	width: 7px;
}
.modal-content-wrapper::-webkit-scrollbar-thumb {
	background: #bfc6d3;
	border-radius: 10px;
}

/* ============================
	META & EXTRA INFO BOXES
============================ */
.career-section {
	display: grid;
	gap: 14px;
	margin-bottom: 22px;
}

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

.career-box {
	background: #f3f6fb;
	border: 1px solid #e0e6ef;
	padding: 12px 14px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	font-size: 15px;
	gap: 10px;
	color: #002e5b;
}

.career-box i {
	font-size: 17px;
	color: #1e73be;
}

/* ============================
	JOB IMAGE
============================ */
.job-image {
	width: 100%;
	border-radius: 14px;
	margin: 18px 0;
	object-fit: cover;
	max-height: 240px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ============================
	JOB ID
============================ */
.job-id {
	opacity: 0.6;
	font-size: 12px;
	color: #666;
	margin-bottom: 10px;
}

/* ============================
	HEADINGS & PARAGRAPHS
============================ */
.modal-content-wrapper h3 {
	margin-top: 22px;
	margin-bottom: 10px;
	font-size: 19px;
	font-weight: 700;
	color: #002e5b;
}

.modal-content-wrapper p {
	color: #444;
	line-height: 1.65;
	font-size: 15px;
}

/* ============================
	APPLY BUTTON
============================ */
.apply-btn {
	display: block;
	width: 100%;
	background: #002e5b;
	color: #fff;
	padding: 14px 0;
	text-align: center;
	border-radius: 12px;
	margin-top: 28px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	transition: 0.25s ease;
}

.apply-btn:hover {
	background: #fde428;
	color: #002e5b;
	box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ============================
	RESPONSIVE
============================ */
@media (max-width: 600px) {
	.job-modal {
		border-radius: 16px;
		max-height: 94vh;
	}

	.modal-header h2 {
		font-size: 18px;
	}

	.career-grid {
		grid-template-columns: 1fr;
	}

	.apply-btn {
		padding: 16px;
		font-size: 17px;
	}
}

/* Fade-in animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.jobs-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.job-sort {
	display: flex;
	align-items: center;
	gap: 10px;
}

.job-sort label {
	font-size: 14px;
	color: #002e5b;
	font-weight: 500;
	width: 100%;
}

.job-sort select {
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.job-sort select:hover {
	border-color: #0073e6;
}
