/**
 * pages/careers.css — Careers Page Styles
 *
 * Structure:
 *   1. Hero section — Gradient background, breadcrumb, title, subtitle
 *   2. Why Work With Us — 2-column grid with perks checklist and culture image
 *   3. Open Positions — Table with 3 job listings
 *   4. Open Application — CTA section with contact options
 *
 * @package MJC_Fintech_Child
 */

/* =====================================================
   GLOBAL UTILITIES
   ===================================================== */

.car-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 64px;
}

.car-bar {
	width: 80px;
	height: 4px;
	background-color: #2bbfce;
	border-radius: 2px;
}

.car-bar--center {
	margin: 24px auto 0;
}

/* =====================================================
   SECTION 1 — HERO
   ===================================================== */

.car-hero {
	background: linear-gradient(105deg, #0a2540 7.4%, #1e5f8c 92.6%);
	border-bottom: 1px solid #1e2939;
	padding: 64px 0 48px;
}

.car-hero-title {
	font-family: var(--font-heading);
	font-size: 64px;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	margin-top: 48px;
	line-height: 1.5;
	display: block;
}

.car-hero-subtitle {
	font-family: var(--font-body);
	font-size: 18px;
	color: #364153;
	text-align: center;
	margin-top: 16px;
}

/* =====================================================
   SECTION 2 — WHY WORK WITH US
   ===================================================== */

.car-why {
	background-color: #ffffff;
	padding: 80px 0;
}

.car-why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.car-why-title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	color: #0a2540;
	margin: 0;
	display: block;
	line-height: 1.3;
}

.car-why-title + .car-bar {
	margin-top: 24px;
	margin-bottom: 52px;
}

.car-checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.car-checklist-item {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-body);
	font-size: 16px;
	color: #4a5565;
	line-height: 1.6;
}

.car-checklist-item svg {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.car-culture-img {
    /* We remove the background color and border if you want the image to be the star */
    border-radius: 24px; 
    height: 384px;
    overflow: hidden; /* This keeps the image corners rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1); /* Adds a premium soft shadow */
}

.culture-responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the secret sauce: it fills the box without stretching */
    transition: transform 0.5s ease; /* For a subtle hover effect */
}

/* Optional: Slight zoom effect when the user hovers over the section */
.car-culture-img:hover .culture-responsive-img {
    transform: scale(1.05);
}
/* =====================================================
   SECTION 3 — OPEN POSITIONS
   ===================================================== */

.car-positions {
	background-color: #e8f4f8;
	padding: 80px 0;
}

.car-positions-heading {
	font-family: var(--font-heading);
	font-size: 38px;
	font-weight: 700;
	color: #0a2540;
	text-align: center;
	margin: 0;
	display: block;
	line-height: 1.2;
}

.car-jobs-table {
	background-color: #ffffff;
	border: 1px solid #1e2939;
	border-radius: 24px;
	overflow: hidden;
	width: 100%;
	margin-top: 64px;
}

.car-job-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	min-height: 124px;
	border-bottom: 1px solid #1e2939;
	transition: all 0.25s ease;
}

.car-job-row:hover {
	background-color: #f8fafc;
}

.car-job-row:last-child {
	border-bottom: none;
}

.car-job-info {
	flex: 1;
}

.car-job-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: #0a2540;
	margin: 0;
	display: block;
	line-height: 1.3;
}

.car-job-meta {
	font-family: var(--font-body);
	font-size: 14px;
	color: #4a5565;
	margin-top: 8px;
	margin-bottom: 0;
}

.car-apply-btn {
	background-color: #0a2540;
	border-radius: 100px;
	height: 56px;
	width: 109px;
	flex-shrink: 0;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.25s ease;
	cursor: pointer;
}

.car-apply-btn:hover {
	background-color: #1e5f8c;
}

.car-apply-btn:focus-visible {
	outline: 2px solid #2bbfce;
	outline-offset: 2px;
}

/* =====================================================
   SECTION 4 — OPEN APPLICATION
   ===================================================== */

.car-open-app {
	background-color: #ffffff;
	padding: 80px 0;
}

.car-open-app-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	text-align: center;
}

.car-open-app-title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	color: #0a2540;
	max-width: 700px;
	margin: 0;
	line-height: 1.4;
}

.car-open-app-btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.car-cta-btn {
	background-color: #0a2540;
	border-radius: 100px;
	height: 56px;
	padding: 0 32px;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.25s ease;
	cursor: pointer;
}

.car-cta-btn:hover {
	background-color: #1e5f8c;
}

.car-cta-btn:focus-visible {
	outline: 2px solid #2bbfce;
	outline-offset: 2px;
}

.car-resume-line {
	font-family: var(--font-body);
	font-size: 16px;
	color: #4a5565;
	margin: 0;
	line-height: 1.6;
}

.car-resume-link {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 16px;
	color: #0a2540;
	text-decoration: underline;
	transition: color 0.25s ease;
}

.car-resume-link:hover {
	color: #2bbfce;
}

.car-resume-link:focus-visible {
	outline: 2px solid #2bbfce;
	outline-offset: 2px;
}

/* =====================================================
   RESPONSIVE — TABLET (1024px and below)
   ===================================================== */

@media (max-width: 1024px) {
	.car-why-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.car-culture-img {
		height: 280px;
	}
}

/* =====================================================
   RESPONSIVE — MOBILE (768px and below)
   ===================================================== */

@media (max-width: 768px) {
	.car-container {
		padding: 0 24px;
	}

	.car-hero {
		padding: 48px 0 32px;
	}

	.car-hero-title {
		font-size: 40px;
		margin-top: 32px;
	}

	.car-hero-subtitle {
		font-size: 16px;
		margin-top: 12px;
	}

	.car-why {
		padding: 64px 0;
	}

	.car-why-grid {
		gap: 32px;
	}

	.car-why-title {
		font-size: 20px;
	}

	.car-why-title + .car-bar {
		margin-bottom: 32px;
	}

	.car-checklist {
		gap: 8px;
	}

	.car-checklist-item {
		font-size: 14px;
		gap: 12px;
	}

	.car-culture-img {
		height: 240px;
		font-size: 14px;
		padding: 24px;
	}

	.car-positions {
		padding: 64px 0;
	}

	.car-positions-heading {
		font-size: 32px;
	}

	.car-jobs-table {
		margin-top: 48px;
	}

	.car-job-row {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		gap: 16px;
		min-height: auto;
		border-bottom: 1px solid #1e2939;
	}

	.car-job-row:last-child {
		border-bottom: none;
	}

	.car-job-title {
		font-size: 18px;
	}

	.car-job-meta {
		font-size: 12px;
	}

	.car-apply-btn {
		width: 100%;
		height: 48px;
		font-size: 14px;
	}

	.car-open-app {
		padding: 64px 0;
	}

	.car-open-app-inner {
		gap: 32px;
	}

	.car-open-app-title {
		font-size: 20px;
		max-width: 100%;
	}

	.car-open-app-btns {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}

	.car-cta-btn {
		width: 240px;
		height: 48px;
		padding: 0;
		font-size: 14px;
	}

	.car-resume-line {
		font-size: 14px;
	}

	.car-resume-link {
		font-size: 14px;
	}
}
