:root {
	--navy: #0b1f3a;
	--navy-mid: #143056;
	--navy-light: #1d4574;
	--orange: #e85d04;
	--orange-dark: #c44d03;
	--gold: #f4b942;
	--text: #1f2933;
	--muted: #5b6775;
	--line: #d8dee8;
	--bg: #f3f5f8;
	--white: #ffffff;
	--shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	color: var(--text);
	background: var(--white);
	line-height: 1.6;
	overflow-x: hidden;
	min-width: 0;
}
h1, h2, h3, h4, .brand strong {
	font-family: Outfit, "Segoe UI", sans-serif;
	line-height: 1.2;
	color: var(--navy);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--orange); }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
	background: var(--navy);
	color: #d5deea;
	font-size: 0.88rem;
}
.topbar-inner, .navbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.topbar a { color: #fff; }
.topbar { padding: 8px 0; }
.topbar-inner { flex-wrap: wrap; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

.navbar {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}
.navbar-inner { padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); min-width: 0; }
.brand img { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; background: #fff; border-radius: 50%; }
.brand small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.95rem; }
.nav-menu a { color: var(--navy); font-weight: 600; }
.nav-menu a.active { color: var(--orange); }
.nav-toggle {
	display: none;
	background: var(--navy);
	color: #fff;
	border: 0;
	padding: 10px 14px;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
	min-height: 44px;
}

.btn {
	display: inline-block;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
}
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--navy-light); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 14px 22px; }
.btn-block { display: block; width: 100%; margin-bottom: 8px; }

.hero {
	position: relative;
	min-height: 78vh;
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--navy);
	overflow: hidden;
}
.hero-media {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(115deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.55) 52%, rgba(232,93,4,.35) 100%),
		url("../images/hero-pattern.svg") center/cover;
}
.hero-content { position: relative; max-width: 720px; padding: 72px 0; width: 100%; }
.hero h1, .page-hero h1, .navy-band h2, .cta-band h2 { color: #fff; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); margin: 8px 0 16px; }
.lead { font-size: 1.2rem; color: #e4ebf4; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--orange); margin: 0 0 8px; }
.eyebrow.light { color: var(--gold); }

.page-hero {
	background: linear-gradient(120deg, var(--navy), var(--navy-light));
	color: #dce6f2;
	padding: 64px 0 48px;
}
.page-hero p { max-width: 640px; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.stat-panel, .industry-box, .cred-card, .side-card, .form-card, .quote-card, .feature {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px;
	box-shadow: var(--shadow);
}
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--navy); color: #fff; }
.stat-panel strong { display: block; font-size: 1.8rem; color: var(--gold); }
.stat-panel span { color: #c9d5e4; font-size: 0.92rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.course-card img { height: 180px; object-fit: cover; width: 100%; background: var(--navy-mid); }
.blog-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card-image { display: block; line-height: 0; }
.blog-date { margin: 0; }
.blog-hero-meta { color: #c9d5e4; margin: 0; }
.related-posts-heading { margin: 24px 0 12px; font-size: 1rem; }
.related-posts { padding-left: 18px; margin: 0; }
.related-posts li { margin: 8px 0; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; background: #fff3ea; color: var(--orange-dark); font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.meta { color: var(--muted); font-size: 0.92rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.navy-band { background: var(--navy); color: #d7e0ea; }
.navy-band h2 { margin-top: 0; }
.checklist { padding-left: 18px; }
.checklist li { margin: 8px 0; }
.checklist.dark { color: var(--text); }
.industry-box { background: #102848; color: #fff; border: 0; }
.industry-box ul { padding-left: 18px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-row div { background: var(--bg); border-radius: 12px; padding: 20px; }
.stats-row strong { display: block; font-size: 2rem; color: var(--navy); }
.fine-print { color: var(--muted); font-size: 0.85rem; }

.quote-card p { font-size: 1.05rem; }
.quote-card footer { margin-top: 16px; color: var(--muted); }
.quote-card footer strong { display: block; color: var(--navy); }

.cta-band { background: linear-gradient(90deg, var(--orange), #f48c06); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { margin: 8px 0 0; color: #fff8f0; }

.map-frame { border-radius: 14px; overflow: hidden; min-height: 220px; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 280px; max-width: 100%; border: 0; display: block; }
.contact-strip { padding-top: 0; }

.site-footer { background: #081627; color: #c5d0dc; padding-top: 48px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 24px; padding-bottom: 32px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li, .site-footer a { color: #c5d0dc; margin: 6px 0; }
.footer-bottom { border-top: 1px solid #1a2d45; padding: 16px 0; font-size: 0.9rem; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.alert-success { background: #e7f7ed; color: #146c2e; }
.alert-error, .field-error { background: #fdecea; color: #b42318; }
.field-error { display: block; background: none; font-size: 0.85rem; }

.form-card label, .admin-content label { display: block; font-weight: 600; margin-bottom: 14px; }
input, select, textarea {
	width: 100%;
	max-width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
}
.detail-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 28px; }
.detail-image { border-radius: 14px; margin-bottom: 24px; width: 100%; max-height: 360px; object-fit: cover; }
.side-card { position: sticky; top: 90px; }
.prose h2 { margin-top: 28px; }
.blog-content { line-height: 1.7; }
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.blog-content p { margin: 0 0 1em; }
.blog-content h2, .blog-content h3, .blog-content h4 { color: var(--navy); margin: 1.4em 0 0.6em; }
.blog-content blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--orange); background: var(--bg); border-radius: 0 8px 8px 0; }
.blog-content ul, .blog-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.blog-content table td, .blog-content table th { border: 1px solid var(--line); padding: 8px 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { height: 220px; width: 100%; object-fit: cover; }
.gallery-grid figcaption { padding: 10px 12px; font-weight: 600; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 24px 0; margin: 0; }
.pager a, .pager span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; display: inline-block; min-width: 40px; text-align: center; }
.pager .active span { background: var(--navy); color: #fff; }

@media (max-width: 1120px) {
	.split, .detail-grid, .footer-grid, .card-grid, .card-grid.three, .feature-grid, .stats-row, .gallery-grid {
		grid-template-columns: 1fr 1fr;
	}
	.nav-toggle { display: inline-flex; align-items: center; }
	.nav-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 8px 0 16px;
		gap: 4px;
	}
	.nav-menu.open { display: flex; }
	.nav-menu a {
		display: block;
		padding: 12px 4px;
		min-height: 44px;
	}
	.nav-menu .btn { width: 100%; }
	.navbar-inner { flex-wrap: wrap; }
	.side-card { position: static; }
}

@media (max-width: 768px) {
	.container, .narrow { width: min(1140px, calc(100% - 24px)); }
	.section { padding: 48px 0; }
	.page-hero { padding: 40px 0 28px; }
	.hero-content { padding: 48px 0; }
	.hero { min-height: auto; }
	.cta-band { padding: 36px 0; }
	.cta-inner, .hero-actions { width: 100%; }
	.hero-actions .btn, .cta-inner .btn { flex: 1 1 160px; }
	.topbar-hours { display: none; }
	.split, .detail-grid, .footer-grid, .card-grid, .card-grid.three, .feature-grid, .stats-row, .gallery-grid, .stat-panel {
		grid-template-columns: 1fr;
	}
	.lead { font-size: 1.05rem; }
	.course-card img, .gallery-grid img { height: 200px; }
	.map-frame iframe { height: 220px; }
	.btn-lg { padding: 12px 16px; }
	.site-footer { padding-top: 36px; }
}

@media (max-width: 480px) {
	.brand small { display: none; }
	.hero h1, .page-hero h1 { font-size: 1.85rem; }
	.section-head h2 { font-size: 1.45rem; }
	.hero-actions .btn, .cta-inner .btn { flex-basis: 100%; }
}
