/**
 * AG2C Recruiting Hub — front-end styles.
 *
 * All selectors are scoped under .ag2c-hub so they cannot leak into the
 * surrounding Divi theme. Page background expected: #000b27.
 */

.ag2c-hub,
.ag2c-hub *,
.ag2c-hub *::before,
.ag2c-hub *::after {
	box-sizing: border-box;
}

.ag2c-hub {
	font-family: inherit;
	color: #fff;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	line-height: 1.55;
}

/* ---------- Header ---------- */

.ag2c-hub__header {
	text-align: center;
	margin: 0 0 32px;
}

.ag2c-hub__logo {
	display: block;
	margin: 0 auto 18px;
	max-width: 200px;
	height: auto;
}

.ag2c-hub__title {
	color: #fff !important;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 14px;
}

.ag2c-hub__lede {
	background: #041436;
	border: 1px solid #1a3068;
	border-radius: 8px;
	padding: 20px 28px;
	max-width: 760px;
	margin: 0 auto 24px;
	color: #fff !important;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 600;
	text-align: center;
}

.ag2c-hub__lede-sub {
	display: block;
	margin-top: 10px;
	color: #dde6f5 !important;
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
}

/* ---------- Tabs ---------- */

.ag2c-hub__tabs-wrap {
	margin: 0 0 22px;
	position: relative;
}

.ag2c-hub__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.ag2c-hub__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: #0a1f4a;
	color: #dde6f5;
	border: 1px solid #1a3068;
	border-radius: 8px;
	padding: 12px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	min-width: 110px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ag2c-hub__tab:hover {
	background: #102a5e;
	border-color: #2a4380;
	color: #fff;
	transform: translateY(-1px);
}

.ag2c-hub__tab:focus-visible {
	outline: 2px solid #7eb6ff;
	outline-offset: 2px;
}

/* The first tab is marked active so the visible Step 1 panel below has
   a clear visual anchor in the nav. The hover state still works on top. */
.ag2c-hub__tab.is-active {
	background: #ff0000;
	color: #fff;
	border-color: #ff0000;
}

.ag2c-hub__tab.is-active:hover {
	background: #d80000;
	border-color: #d80000;
	color: #fff;
}

.ag2c-hub__tab.is-active .ag2c-hub__tab-badge {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
}

.ag2c-hub__tab-badge {
	display: inline-block;
	font-size: 10px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	font-weight: 700;
	color: #7eb6ff;
	background: rgba(126, 182, 255, 0.10);
	padding: 3px 8px;
	border-radius: 3px;
	line-height: 1.2;
}

.ag2c-hub__tab-label {
	display: block;
	color: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

/* ---------- Panels ---------- */

.ag2c-hub__panels {
	background: #f6f8fc;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

/* Only one panel renders (Step 1) — tabs navigate directly to step pages. */
.ag2c-hub__panel {
	display: block;
}

.ag2c-hub__panel-inner {
	padding: 36px 40px;
}

.ag2c-hub__panel-badge {
	display: inline-block;
	background: #ff0000;
	color: #fff !important;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 4px;
	margin-bottom: 14px;
	line-height: 1.2;
}

.ag2c-hub__panel-title {
	color: #041436 !important;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
}

.ag2c-hub__panel-tagline {
	color: #1a3068 !important;
	font-size: 17px;
	font-weight: 600;
	font-style: italic;
	line-height: 1.45;
	margin: 0 0 22px;
}

.ag2c-hub__panel-intro {
	color: #222 !important;
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 24px;
}

.ag2c-hub__panel-whats-inside {
	background: #fff;
	border-left: 4px solid #041436;
	border-radius: 6px;
	padding: 22px 26px;
	margin: 0 0 28px;
}

/* Remove the default disclosure triangle in WebKit/Blink and Firefox. */
.ag2c-hub__panel-whats-inside summary::-webkit-details-marker {
	display: none;
}

.ag2c-hub__panel-whats-inside summary {
	list-style: none;
}

.ag2c-hub__panel-whats-inside-label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #666 !important;
	font-weight: 700;
	margin: 0 0 12px;
	/* Desktop: label is decorative, never clickable. */
	cursor: default;
}

.ag2c-hub__panel-whats-inside-icon {
	display: none;
}

.ag2c-hub__panel-bullets {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag2c-hub__panel-bullets li {
	color: #222 !important;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 10px;
	padding-left: 26px;
	position: relative;
}

.ag2c-hub__panel-bullets li:last-child {
	margin-bottom: 0;
}

.ag2c-hub__panel-bullets li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #2e7d32;
	font-weight: 700;
	font-size: 15px;
}

.ag2c-hub__panel-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #041436;
	color: #fff !important;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	line-height: 1.2;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.ag2c-hub__panel-cta:hover {
	background: #1a3068;
	color: #fff !important;
	transform: translateY(-1px);
}

.ag2c-hub__panel-cta:focus-visible {
	outline: 2px solid #7eb6ff;
	outline-offset: 3px;
}

.ag2c-hub__panel-cta span[aria-hidden="true"] {
	font-size: 18px;
	line-height: 1;
}

/* ---------- Mobile ---------- */
/*
 * Below 760px the tab strip uses a CSS grid that produces three rows:
 *   - Row 1: tabs 1-2  (Steps 1 and 2), each spanning 3 of 6 columns
 *   - Row 2: tabs 3-5  (Steps 3, 4, 5), each spanning 2 of 6 columns
 *   - Row 3: tabs 6-8  (Steps 6, 7, Parents), each spanning 2 of 6 columns
 * This matches the 2-3-3 mobile layout Blair requested. All eight tabs
 * are visible at once with no horizontal scrolling.
 */

@media (max-width: 760px) {
	.ag2c-hub {
		padding: 18px 12px 36px;
	}

	.ag2c-hub__title {
		font-size: 26px;
	}

	.ag2c-hub__lede {
		padding: 16px 18px;
		font-size: 15px;
	}

	.ag2c-hub__tabs {
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		grid-auto-rows: minmax(72px, auto);
		gap: 8px;
		justify-content: stretch;
		align-items: stretch;
	}

	/* Row 1 — first two tabs, each spans half the width. */
	.ag2c-hub__tab:nth-child(1),
	.ag2c-hub__tab:nth-child(2) {
		grid-column: span 3;
	}

	/* Rows 2 and 3 — remaining six tabs in groups of three. */
	.ag2c-hub__tab:nth-child(n+3) {
		grid-column: span 2;
	}

	.ag2c-hub__tab {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 6px;
		min-width: 0;
		padding: 12px 8px;
		text-align: center;
	}

	.ag2c-hub__tab-badge {
		font-size: 10px;
		padding: 3px 8px;
	}

	.ag2c-hub__tab-label {
		font-size: 14px;
	}

	.ag2c-hub__panel-inner {
		padding: 22px 20px;
	}

	.ag2c-hub__panel-title {
		font-size: 22px;
	}

	.ag2c-hub__panel-tagline {
		font-size: 15px;
		margin-bottom: 16px;
	}

	.ag2c-hub__panel-intro {
		font-size: 15px;
	}

	.ag2c-hub__panel-whats-inside {
		padding: 0;
		margin: 0 0 22px;
	}

	.ag2c-hub__panel-whats-inside summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		cursor: pointer;
		-webkit-tap-highlight-color: rgba(126, 182, 255, 0.10);
		border-radius: 6px;
	}

	.ag2c-hub__panel-whats-inside summary:focus-visible {
		outline: 2px solid #7eb6ff;
		outline-offset: -2px;
	}

	.ag2c-hub__panel-whats-inside-label {
		margin: 0;
		cursor: pointer;
		font-size: 12px;
	}

	/* Mobile: chevron icon shows next to the label. CSS-drawn so it
	   inherits color and works without an icon font or SVG asset. */
	.ag2c-hub__panel-whats-inside-icon {
		display: block;
		width: 12px;
		height: 12px;
		border-right: 2px solid #666;
		border-bottom: 2px solid #666;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
		margin-bottom: 4px;
		flex-shrink: 0;
	}

	.ag2c-hub__panel-whats-inside[open] .ag2c-hub__panel-whats-inside-icon {
		transform: rotate(-135deg);
		margin-top: 4px;
		margin-bottom: 0;
	}

	.ag2c-hub__panel-whats-inside .ag2c-hub__panel-bullets {
		padding: 0 20px 18px;
	}

	.ag2c-hub__panel-bullets li {
		font-size: 14px;
	}

	.ag2c-hub__panel-cta {
		display: flex;
		justify-content: center;
		padding: 12px 20px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.ag2c-hub__title {
		font-size: 22px;
	}

	.ag2c-hub__panel-title {
		font-size: 20px;
	}

	.ag2c-hub__tab-label {
		font-size: 13px;
	}
}

/* Reduced-motion: disable transforms/transitions for users who request it. */

@media (prefers-reduced-motion: reduce) {
	.ag2c-hub__tab,
	.ag2c-hub__panel-cta {
		transition: none;
	}

	.ag2c-hub__tab:hover,
	.ag2c-hub__panel-cta:hover {
		transform: none;
	}
}
