/*
 * Pilots Academy — guide page design system.
 *
 * Shared styles for long-form SEO pages (cadet guides, salary, fees, eGCA…)
 * built as HTML blocks. Every rule is scoped under .pa-guide so nothing here
 * can restyle the theme header, footer or menus. Pages wrap their content in
 * <div class="pa-guide">…</div> and carry no <style> block of their own.
 *
 * The PA Content Abilities plugin loads this file only on pages whose content
 * contains "pa-guide". Source of truth: design-system/pa-guide.css in the repo;
 * the plugin ships a copy in assets/.
 */

/* ============ TOKENS ============ */
.pa-guide {
	--pa-navy: #162645;
	--pa-navy-deep: #101d38;
	--pa-navy-mid: #1c3054;
	--pa-gold: #f5bc18;
	--pa-gold-soft: #fdeeb8;
	--pa-gold-text: #8a7000;
	--pa-cream: #fbf9f4;
	--pa-sand: #f3efe2;
	--pa-paper: #ffffff;
	--pa-line: #e7e2d4;
	--pa-text: #33405e;
	--pa-muted: #4a5670;
	--pa-faint: #5c6784;
	--pa-radius: 4px;
	--pa-shadow: 0 6px 24px rgba(22, 38, 69, 0.08);
	--pa-shadow-strong: 0 16px 40px rgba(22, 38, 69, 0.18);
	--pa-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	font-family: var(--pa-font);
	color: var(--pa-navy);
	background: var(--pa-cream);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.pa-guide *,
.pa-guide *::before,
.pa-guide *::after {
	box-sizing: border-box;
}

/* ============ BASE TYPOGRAPHY ============ */
.pa-guide h1,
.pa-guide h2,
.pa-guide h3,
.pa-guide h4,
.pa-guide h5 {
	font-family: var(--pa-font);
	color: var(--pa-navy);
	margin: 0 0 0.5em;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.pa-guide p { margin: 0 0 1em; }
.pa-guide a { color: inherit; }
.pa-guide ul,
.pa-guide ol { margin: 0 0 1em; padding-left: 1.25em; }
.pa-guide img { max-width: 100%; height: auto; display: block; }

/* ============ LAYOUT ============ */
.pa-guide .pa-wrap { max-width: 1180px; margin: 0 auto; padding: 0 15px; }
.pa-guide .pa-section { padding: 72px 0; }
.pa-guide .pa-section--tight { padding: 36px 0; }
.pa-guide .pa-section--tight + .pa-section { padding-top: 40px; }
.pa-guide .pa-section--alt { background: var(--pa-sand); }
.pa-guide .pa-section--dark { background: var(--pa-navy); color: #fff; }
.pa-guide .pa-section--dark h2,
.pa-guide .pa-section--dark h3,
.pa-guide .pa-section--dark p { color: #fff; }

.pa-guide .pa-grid { display: grid; gap: 15px; }
.pa-guide .pa-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pa-guide .pa-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pa-guide .pa-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ SECTION HEADING ============ */
.pa-guide .pa-eyebrow {
	display: inline-block;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pa-navy);
	background: var(--pa-gold-soft);
	border: 1px solid var(--pa-gold);
	border-radius: var(--pa-radius);
	padding: 6px 14px;
	margin-bottom: 18px;
}
.pa-guide .pa-section--dark .pa-eyebrow {
	background: rgba(245, 188, 24, 0.14);
	color: var(--pa-gold);
}
.pa-guide .pa-head { max-width: 760px; margin-bottom: 48px; }
.pa-guide .pa-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pa-guide .pa-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.pa-guide .pa-head p { font-size: 17px; color: var(--pa-muted); }
.pa-guide .pa-section--dark .pa-head p { color: #c9d1e0; }

/* ============ BUTTONS ============ */
.pa-guide .pa-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 30px;
	background: var(--pa-gold);
	color: var(--pa-navy);
	border: 1px solid var(--pa-navy);
	border-radius: var(--pa-radius);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
}
.pa-guide .pa-btn:hover { background: var(--pa-navy); color: var(--pa-gold); border-color: var(--pa-gold); }
.pa-guide .pa-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.pa-guide .pa-btn--outline:hover { background: var(--pa-gold); color: var(--pa-navy); border-color: var(--pa-navy); }

/* ============ TOP BAR ============ */
.pa-guide .pa-topbar {
	background: var(--pa-navy);
	color: #dbe1ee;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	padding: 10px 15px;
	text-align: center;
	border-bottom: 1px solid var(--pa-gold);
}

/* ============ HERO ============ */
.pa-guide .pa-hero {
	position: relative;
	background: linear-gradient(135deg, var(--pa-navy-deep) 0%, var(--pa-navy) 55%, var(--pa-navy-mid) 100%);
	color: #fff;
	overflow: hidden;
	padding: 120px 0 100px;
}
.pa-guide .pa-hero::before,
.pa-guide .pa-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
}
.pa-guide .pa-hero::before {
	top: -120px; right: -160px; width: 520px; height: 520px;
	background: radial-gradient(circle, rgba(245, 188, 24, 0.18) 0%, rgba(245, 188, 24, 0) 70%);
}
.pa-guide .pa-hero::after {
	bottom: -180px; left: -140px; width: 480px; height: 480px;
	background: radial-gradient(circle, rgba(245, 188, 24, 0.1) 0%, rgba(245, 188, 24, 0) 70%);
}
.pa-guide .pa-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
}
.pa-guide .pa-hero h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; color: #fff; margin-bottom: 22px; }
.pa-guide .pa-hero h1 span { color: var(--pa-gold); }
.pa-guide .pa-hero__lead { font-size: 18px; color: #d7deec; max-width: 560px; margin-bottom: 32px; }
.pa-guide .pa-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.pa-guide .pa-hero__meta { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: #aeb9d1; }
.pa-guide .pa-hero__meta strong { color: var(--pa-gold); display: block; font-size: 15px; }
.pa-guide .pa-hero__visual {
	position: relative;
	border: 1px solid rgba(245, 188, 24, 0.5);
	border-radius: var(--pa-radius);
	overflow: hidden;
	box-shadow: var(--pa-shadow-strong);
}
.pa-guide .pa-hero__visual img { width: 100%; height: 420px; object-fit: cover; }
.pa-guide .pa-hero__tag {
	position: absolute; bottom: 0; left: 0; right: 0;
	background: rgba(16, 29, 56, 0.82);
	padding: 16px 20px;
	font-size: 13px;
	color: #fff;
	border-top: 1px solid var(--pa-gold);
}

/* ============ STAT STRIP ============ */
.pa-guide .pa-stats { background: #fff; border-top: 1px solid var(--pa-line); border-bottom: 1px solid var(--pa-line); }
.pa-guide .pa-stats .pa-grid-4 { gap: 0; }
.pa-guide .pa-stat { text-align: center; padding: 40px 20px; border-right: 1px solid var(--pa-line); }
.pa-guide .pa-stat:last-child { border-right: none; }
.pa-guide .pa-stat__num { font-weight: 800; font-size: clamp(28px, 3vw, 38px); color: var(--pa-navy); display: block; }
.pa-guide .pa-stat__num em { color: var(--pa-gold); font-style: normal; }
.pa-guide .pa-stat__label { font-size: 13.5px; color: var(--pa-faint); margin-top: 6px; display: block; }

/* ============ TABLES ============ */
/* Wrap every table in .pa-table-scroll so it scrolls sideways on phones. */
.pa-guide .pa-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--pa-gold);
	border-radius: var(--pa-radius);
	box-shadow: var(--pa-shadow);
	background: #fff;
	margin-bottom: 12px;
}
.pa-guide .pa-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; margin: 0; }
.pa-guide .pa-table th,
.pa-guide .pa-table td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	font-size: 14.5px;
	color: #0e1830;
	border-bottom: 1px solid var(--pa-line);
}
.pa-guide .pa-table th {
	background: var(--pa-navy);
	color: #fff;
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.pa-guide .pa-table tbody tr:nth-child(even) td { background: var(--pa-cream); }
.pa-guide .pa-table tr:last-child td { border-bottom: none; }
.pa-guide .pa-table--label td:first-child { font-weight: 700; color: var(--pa-navy); }
.pa-guide .pa-table .pa-row--highlight td { background: var(--pa-gold-soft) !important; font-weight: 700; }
.pa-guide .pa-table-note { font-size: 13px; color: var(--pa-faint); margin-top: 12px; }
.pa-guide .pa-section--dark .pa-table-note { color: #8f9bbd; }

/* ============ CALLOUT & NOTE BOXES ============ */
.pa-guide .pa-callout {
	border: 1px solid var(--pa-gold);
	background: var(--pa-gold-soft);
	border-radius: var(--pa-radius);
	padding: 22px 26px;
	margin-top: 28px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	box-shadow: var(--pa-shadow);
}
.pa-guide .pa-callout h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.pa-guide .pa-callout p { font-size: 14.5px; color: #3c4763; margin: 0; }

.pa-guide .pa-note {
	border: 1px solid var(--pa-gold);
	border-left: 6px solid var(--pa-gold);
	background: #fff;
	border-radius: var(--pa-radius);
	padding: 26px 30px;
	box-shadow: var(--pa-shadow);
	margin-top: 24px;
}
.pa-guide .pa-note h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pa-gold-text); margin-bottom: 10px; }
.pa-guide .pa-note p { font-size: 15px; color: var(--pa-text); margin: 0; }
.pa-guide .pa-note--dark { background: var(--pa-navy); }
.pa-guide .pa-note--dark h4 { color: var(--pa-gold); }
.pa-guide .pa-note--dark p { color: #dbe1ee; }

/* ============ ICONS ============ */
.pa-guide .pa-icon {
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--pa-navy);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.pa-guide .pa-icon svg { width: 26px; height: 26px; stroke: var(--pa-gold); fill: none; stroke-width: 1.7; }
.pa-guide .pa-icon--sm { width: 44px; height: 44px; }
.pa-guide .pa-icon--sm svg { width: 22px; height: 22px; }

/* ============ CARDS ============ */
.pa-guide .pa-card {
	background: var(--pa-paper);
	border: 1px solid var(--pa-gold);
	border-radius: var(--pa-radius);
	box-shadow: var(--pa-shadow);
	padding: 28px 24px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pa-guide .pa-card:hover { box-shadow: var(--pa-shadow-strong); transform: translateY(-3px); }
.pa-guide .pa-card .pa-icon { margin-bottom: 18px; }
.pa-guide .pa-card h3 { font-size: 17px; margin-bottom: 8px; }
.pa-guide .pa-card p { font-size: 14px; color: var(--pa-muted); margin: 0; }
.pa-guide .pa-card--center { text-align: center; }
.pa-guide .pa-card--center .pa-icon { margin: 0 auto 16px; }
.pa-guide .pa-card--row { display: flex; gap: 16px; align-items: flex-start; }
.pa-guide .pa-card--row .pa-icon { margin-bottom: 0; }
.pa-guide .pa-section--dark .pa-card { background: rgba(255, 255, 255, 0.04); }
.pa-guide .pa-section--dark .pa-card p { color: #c9d1e0; }
.pa-guide .pa-card__kicker { font-weight: 800; font-size: 12px; color: var(--pa-gold-text); letter-spacing: 0.08em; margin-bottom: 10px; display: block; text-transform: uppercase; }

/* ============ TIMELINE (numbered steps) ============ */
.pa-guide .pa-steps { position: relative; margin-top: 20px; padding: 0; list-style: none; }
.pa-guide .pa-steps::before {
	content: "";
	position: absolute;
	left: 29px; top: 8px; bottom: 8px;
	width: 2px;
	background: repeating-linear-gradient(to bottom, var(--pa-gold) 0, var(--pa-gold) 6px, transparent 6px, transparent 12px);
}
.pa-guide .pa-step { position: relative; padding-left: 78px; margin-bottom: 36px; }
.pa-guide .pa-step:last-child { margin-bottom: 0; }
.pa-guide .pa-step__num {
	position: absolute; left: 0; top: 0;
	width: 60px; height: 60px;
	border-radius: 50%;
	background: var(--pa-navy);
	border: 3px solid var(--pa-gold);
	display: flex; align-items: center; justify-content: center;
	font-weight: 800;
	color: var(--pa-gold);
	font-size: 18px;
	z-index: 2;
	box-shadow: var(--pa-shadow);
}
.pa-guide .pa-step__body {
	background: #fff;
	border: 1px solid var(--pa-gold);
	border-radius: var(--pa-radius);
	box-shadow: var(--pa-shadow);
	padding: 26px 28px;
}
.pa-guide .pa-step__body h3 { font-size: 20px; margin-bottom: 6px; }
.pa-guide .pa-tag {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pa-gold-text);
	background: var(--pa-gold-soft);
	border: 1px solid var(--pa-gold);
	border-radius: 3px;
	padding: 3px 10px;
	margin-bottom: 10px;
}
.pa-guide .pa-dots { margin: 12px 0 0; padding: 0; list-style: none; }
.pa-guide .pa-dots li { position: relative; padding-left: 20px; font-size: 14.5px; color: #3c4763; margin-bottom: 8px; }
.pa-guide .pa-dots li::before {
	content: "";
	position: absolute; left: 0; top: 8px;
	width: 7px; height: 7px;
	background: var(--pa-gold);
	border-radius: 50%;
}

/* ============ FAQ ============ */
/* Native <details> accordions; pair them with FAQPage JSON-LD on the page. */
.pa-guide .pa-faq-cat {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pa-navy);
	background: var(--pa-gold-soft);
	border: 1px solid var(--pa-gold);
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--pa-radius);
	margin: 36px 0 18px;
}
.pa-guide .pa-faq-cat:first-child { margin-top: 0; }
.pa-guide details.pa-faq {
	background: #fff;
	border: 1px solid var(--pa-gold);
	border-radius: var(--pa-radius);
	box-shadow: var(--pa-shadow);
	margin-bottom: 12px;
}
.pa-guide details.pa-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 24px;
	font-weight: 700;
	font-size: 15.5px;
	color: var(--pa-navy);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.pa-guide details.pa-faq summary::-webkit-details-marker { display: none; }
.pa-guide details.pa-faq summary::after {
	content: "+";
	font-size: 22px;
	color: var(--pa-gold);
	background: var(--pa-navy);
	width: 28px; height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.pa-guide details.pa-faq[open] summary::after { content: "\2013"; }
.pa-guide details.pa-faq .pa-faq__answer { padding: 0 24px 22px; font-size: 14.5px; color: #3c4763; }

/* ============ CTA BAND ============ */
.pa-guide .pa-cta {
	background: linear-gradient(120deg, var(--pa-navy-deep) 0%, var(--pa-navy) 60%, var(--pa-navy-mid) 100%);
	color: #fff;
	text-align: center;
	padding: 90px 0;
	position: relative;
	overflow: hidden;
}
.pa-guide .pa-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); }
.pa-guide .pa-cta p { color: #c9d1e0; max-width: 600px; margin: 0 auto 30px; font-size: 16.5px; }
.pa-guide .pa-cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	.pa-guide .pa-hero__grid { grid-template-columns: 1fr; }
	.pa-guide .pa-hero__visual img { height: 280px; }
	.pa-guide .pa-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.pa-guide .pa-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.pa-guide .pa-grid-2 { grid-template-columns: 1fr; }
	.pa-guide .pa-stat { border-right: none; border-bottom: 1px solid var(--pa-line); }
	.pa-guide .pa-section { padding: 52px 0; }
	.pa-guide .pa-section--tight { padding: 28px 0; }
	.pa-guide .pa-section--tight + .pa-section { padding-top: 32px; }
}
@media (max-width: 600px) {
	.pa-guide .pa-grid-3 { grid-template-columns: 1fr; }
	.pa-guide .pa-hero { padding: 80px 0 64px; }
	.pa-guide .pa-steps::before { left: 23px; }
	.pa-guide .pa-step { padding-left: 62px; }
	.pa-guide .pa-step__num { width: 48px; height: 48px; font-size: 15px; }
	.pa-guide .pa-hero__cta { flex-direction: column; }
	.pa-guide .pa-hero__cta .pa-btn { justify-content: center; width: 100%; }
}

/* ---------------------------------------------------------------------
 * Fluent Forms inside guide pages (e.g. the counselling form in the hero card).
 * The theme styles every <button> as a gold pill; reset the phone field's
 * country selector and give the submit button the guide's button look.
 * ------------------------------------------------------------------- */
.pa-guide .fluentform .iti__selected-country,
.pa-guide .fluentform .iti__selected-flag,
.pa-guide .fluentform .iti__flag-container button {
	background: #f3f5f9 !important;
	color: var(--pa-navy) !important;
	border: 0 !important;
	border-right: 1px solid #dfe3ea !important;
	border-radius: 6px 0 0 6px !important;
	box-shadow: none !important;
	padding: 0 12px !important;
	min-height: 0 !important;
	height: 100% !important;
}
.pa-guide .fluentform .ff-btn-submit {
	width: 100%;
	background: var(--pa-gold) !important;
	color: var(--pa-navy) !important;
	border: 1px solid var(--pa-gold) !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	padding: 13px 20px !important;
	min-height: 0 !important;
	height: auto !important;
	letter-spacing: 0.04em;
	transition: background 0.2s, color 0.2s;
}
/* Phone country dropdown: the hero sets white text, which made country names invisible. */
.pa-guide .fluentform .iti__country-list,
.pa-guide .fluentform .iti__dropdown-content,
.pa-guide .fluentform .iti__search-input {
	color: var(--pa-navy) !important;
	background: #fff !important;
}
.pa-guide .fluentform .iti__country-name { color: var(--pa-navy) !important; }
.pa-guide .fluentform .iti__dial-code { color: #5b6780 !important; }
.pa-guide .fluentform .iti__country.iti__highlight { background: #eef1f6 !important; }
.pa-guide .fluentform .ff-btn-submit:hover {
	background: var(--pa-navy) !important;
	color: var(--pa-gold) !important;
	border-color: var(--pa-navy) !important;
}

/* ---------------------------------------------------------------------
 * Labels that look like headings but are not headings (facts, tips,
 * form and author titles). Keeps the H1 > H2 > H3 outline for real topics only.
 * ------------------------------------------------------------------- */
.pa-guide .pa-label {
	font-family: var(--pa-font);
	color: var(--pa-navy);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 0.5em;
}
.pa-guide .pa-card .pa-label { font-size: 17px; margin-bottom: 8px; }
.pa-guide .pa-callout .pa-label { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.pa-guide .pa-note .pa-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pa-gold-text); margin-bottom: 10px; }
.pa-guide .pa-note--dark .pa-label { color: var(--pa-gold); }

/* In-text links (blog and page links inside paragraphs, lists and tables). */
.pa-guide p a:not(.pa-btn),
.pa-guide li a,
.pa-guide td a {
	color: #1d5bbf;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.pa-guide p a:not(.pa-btn):hover,
.pa-guide li a:hover,
.pa-guide td a:hover { color: var(--pa-navy); }
