/* ==========================================================================
   Careers Page Styles
   Adjust colors/fonts below to match your brand (currently set up as
   a generic healthcare-education palette — teal/navy).
   ========================================================================== */

:root {
	--careers-primary: #0d6b6b;
	--careers-primary-dark: #084c4c;
	--careers-accent: #f5a623;
	--careers-bg-light: #f7f9fa;
	--careers-text: #2b2b2b;
	--careers-radius: 8px;
}

.careers-hero,
.careers-content,
.why-join,
.job-listings {
	padding: 60px 0;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Hero */
.careers-hero {
	background: linear-gradient(135deg, var(--careers-primary), var(--careers-primary-dark));
	color: #fff;
	text-align: center;
}
.careers-hero h1 {
	font-size: 2.5rem;
	letter-spacing: 2px;
	margin-bottom: 10px;
}
.careers-hero .subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
}

/* Content sections */
.careers-content {
	background: #fff;
}
.careers-content h2 {
	color: var(--careers-primary-dark);
	margin-bottom: 12px;
}
.careers-content p {
	color: var(--careers-text);
	line-height: 1.7;
	max-width: 850px;
	margin-bottom: 30px;
}

/* Why Join grid */
.why-join {
	background: var(--careers-bg-light);
	text-align: center;
}
.why-join h2 {
	color: var(--careers-primary-dark);
}
.section-sub {
	color: #666;
	margin-bottom: 30px;
}
.why-join-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
.why-card {
	background: #fff;
	border-radius: var(--careers-radius);
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.why-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: var(--careers-radius);
	margin-bottom: 14px;
}
.why-card p {
	font-weight: 600;
	color: var(--careers-text);
}

/* Filter tabs */
.job-filter-tabs {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 30px;
}
.filter-tab {
	padding: 10px 22px;
	border: 1px solid var(--careers-primary);
	background: #fff;
	color: var(--careers-primary);
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}
.filter-tab:hover {
	background: var(--careers-primary);
	color: #fff;
}
.filter-tab.active {
	background: var(--careers-primary);
	color: #fff;
}

/* Job list */
.job-list {
	display: grid;
	flex-direction: column;
	gap: 16px;
	grid-template-columns: repeat(3, 1fr);
}
.job-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: var(--careers-radius);
	padding: 20px 24px;
	flex-wrap: wrap;
}
.job-item.hidden {
	display: none;
}
.job-info h3 {
	margin: 0 0 6px;
	color: var(--careers-primary-dark);
}
.job-excerpt {
	color: #666;
	font-size: 0.95rem;
}
.apply-btn {
	background: var(--careers-accent);
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.apply-btn:hover {
	opacity: 0.9;
}

/* Enquiry CTA */
.enquiry-cta {
	text-align: center;
	padding: 30px 0 60px;
}
.enquiry-open-btn {
	background: var(--careers-primary);
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
}

/* Modals */
.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.modal-overlay.open {
	display: flex;
}
.modal-box {
	background: #fff;
	border-radius: var(--careers-radius);
	padding: 30px;
	width: 90%;
	max-width: 460px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}
.modal-close {
	position: absolute;
	top: 12px;
	right: 18px;
	font-size: 1.5rem;
	cursor: pointer;
	color: #999;
}
.modal-close:hover {
	color: #333;
}
.modal-box h3 {
	margin-top: 0;
	color: var(--careers-primary-dark);
}
.modal-box form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 16px;
}
.modal-box input,
.modal-box select {
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.95rem;
}
.file-label {
	font-size: 0.85rem;
	color: #555;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.modal-box button[type="submit"] {
	background: var(--careers-primary);
	color: #fff;
	border: none;
	padding: 12px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}
.modal-box button[type="submit"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.form-message {
	font-size: 0.9rem;
	margin: 0;
}
.form-message.success {
	color: #1a7f37;
}
.form-message.error {
	color: #c0392b;
}

/* WhatsApp floating button */
.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #25d366;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
	z-index: 999;
}
.whatsapp-float img {
	width: 28px;
	height: 28px;
}

/* Mobile */
@media (max-width: 600px) {
	.job-item {
		flex-direction: column;
		align-items: flex-start;
	}
	.apply-btn {
		width: 100%;
	}
}