/**
 * APA Education Guide — Collegiate page template styles.
 * Full-bleed color bands, Derek-style polish. Palette: Collegiate.
 */

.ag-wrap {
	--ag-paper: #f6f3fa;
	--ag-ink: #252040;
	--ag-muted: #635f77;
	--ag-accent: #5846aa;
	--ag-accent-2: #e25b69;
	--ag-line: #d6d0e4;
	--ag-card: #ffffff;
	--ag-soft: #ece7ff;
	--ag-soft-2: #ffe6e1;
	--ag-radius: 14px;

	font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
	color: var(--ag-ink);
	background: var(--ag-paper);
	overflow-x: clip;
	line-height: 1.55;
}

.ag-band {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	padding: 84px 0;
}

.ag-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 32px;
}

.ag-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ag-accent-2);
	margin: 0 0 14px;
}

.ag-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
}

.ag-band h2.ag-title {
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0 0 14px;
}

.ag-lede {
	font-size: 17px;
	color: var(--ag-muted);
	max-width: 680px;
	margin: 0;
}

/* ---------- HERO ---------- */
.ag-hero {
	background:
		radial-gradient(640px 420px at 88% 12%, rgba(98, 71, 216, 0.5), transparent 60%),
		radial-gradient(520px 380px at 8% 92%, rgba(226, 91, 105, 0.28), transparent 60%),
		#252040;
	color: #fff;
	padding: 110px 0 96px;
}

.ag-hero .ag-eyebrow {
	color: var(--ag-accent-2);
}

.ag-hero h1 {
	font-size: clamp(42px, 5.6vw, 76px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.03;
	margin: 0 0 22px;
	max-width: 800px;
}

.ag-hero p.ag-sub {
	font-size: 19px;
	line-height: 1.6;
	color: #cfc9e8;
	max-width: 620px;
	margin: 0 0 34px;
}

.ag-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ag-btn {
	display: inline-block;
	border-radius: 40px;
	padding: 14px 26px;
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.ag-btn:hover {
	transform: translateY(-2px);
}

.ag-btn-solid {
	background: var(--ag-accent-2);
	color: #fff;
	box-shadow: 0 10px 24px rgba(226, 91, 105, 0.35);
}

.ag-btn-solid:hover {
	color: #fff;
}

.ag-btn-ghost {
	border: 2px solid rgba(255, 255, 255, 0.45);
	color: #fff;
}

.ag-btn-ghost:hover {
	border-color: #fff;
	color: #fff;
}

/* ---------- REQUIREMENT (lavender band) ---------- */
.ag-require {
	background: var(--ag-soft);
}

.ag-quote-card {
	background: var(--ag-card);
	border: 1px solid var(--ag-line);
	border-left: 6px solid var(--ag-accent);
	border-radius: var(--ag-radius);
	padding: 30px 34px;
	margin-top: 30px;
	box-shadow: 0 14px 34px rgba(37, 32, 64, 0.08);
}

.ag-quote-card blockquote {
	font-size: clamp(19px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
}

.ag-cite {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--ag-muted);
	border-top: 1px solid var(--ag-line);
	padding-top: 16px;
}

.ag-cite a {
	color: var(--ag-accent);
	font-weight: 800;
	text-decoration: none;
}

.ag-cite a:hover {
	text-decoration: underline;
}

.ag-note {
	margin-top: 18px;
	font-size: 13px;
	color: var(--ag-muted);
}

/* ---------- ABOUT (white cards on paper) ---------- */
.ag-about {
	background: var(--ag-paper);
}

.ag-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 34px;
}

.ag-card {
	background: var(--ag-card);
	border: 1px solid var(--ag-line);
	border-top: 5px solid var(--ag-accent);
	border-radius: var(--ag-radius);
	padding: 28px;
	box-shadow: 0 10px 26px rgba(37, 32, 64, 0.06);
	transition: transform 0.18s, box-shadow 0.18s;
}

.ag-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(37, 32, 64, 0.12);
}

.ag-card h3 {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
}

.ag-card p {
	font-size: 14px;
	color: var(--ag-muted);
	line-height: 1.6;
	margin: 0 0 12px;
}

.ag-card p:last-child {
	margin-bottom: 0;
}

.ag-about-foot {
	margin-top: 26px;
	padding: 18px 22px;
	background: var(--ag-soft-2);
	border-radius: var(--ag-radius);
	font-size: 14px;
	color: var(--ag-ink);
}

.ag-about-foot strong {
	color: var(--ag-accent-2);
}

/* ---------- CREDITS (violet band) ---------- */
.ag-credits {
	background: linear-gradient(135deg, #5846aa 0%, #463886 100%);
	color: #fff;
}

.ag-credits .ag-eyebrow {
	color: #ffd9de;
}

.ag-credits .ag-lede {
	color: #d9d2f5;
}

.ag-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 34px;
	max-width: 720px;
}

.ag-stat {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--ag-radius);
	padding: 28px;
	text-align: center;
	backdrop-filter: blur(4px);
}

.ag-stat strong {
	display: block;
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.ag-stat span {
	font-size: 15px;
	color: #e4ddfa;
}

/* ---------- GUIDE (listings) ---------- */
.ag-guide {
	background: var(--ag-paper);
}

.ag-guide-head {
	margin-bottom: 30px;
}

/* ---------- FOOTER NOTE (ink band) ---------- */.ag-foot {
	background: var(--ag-ink);
	color: #b9b3d6;
	padding: 40px 0;
	font-size: 13px;
	line-height: 1.6;
}

.ag-foot p {
	margin: 0 0 8px;
	max-width: 860px;
}

.ag-foot p:last-child {
	margin-bottom: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.ag-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ag-band {
		padding: 60px 0;
	}

	.ag-hero {
		padding: 84px 0 70px;
	}

	.ag-inner {
		padding: 0 20px;
	}

	.ag-stats {
		grid-template-columns: 1fr;
	}

	.ag-quote-card {
		padding: 24px 22px;
	}
}

/* ---------- THEME OVERRIDES ---------- */

/* The theme forces headings white site-wide — reclaim dark headlines
   and kickers on the light bands. */
.ag-wrap .ag-require h2.ag-title,
.ag-wrap .ag-about h2.ag-title,
.ag-wrap .ag-guide h2.ag-title {
	color: #5846aa !important;
}

.ag-wrap .ag-require .ag-eyebrow,
.ag-wrap .ag-about .ag-eyebrow,
.ag-wrap .ag-guide .ag-eyebrow {
	color: #5846aa;
}

/* This page is informational — hide the theme's "Book Your Tour"
   booking section here only. */
body.education-guide .book-now-sec {
	display: none !important;
}

/* ---------- GUTENBERG BLOCKS (v1.0.5) ----------
   The page body is now editable blocks reusing the ag-* classes.
   These rules cover block-native structures the original HTML didn't use. */

/* Hero CTAs are a paragraph of styled links */
.ag-wrap p.ag-actions {
	margin: 0;
}

/* Quote text lives in a paragraph inside the quote card */
.ag-quote-card .ag-quote-text {
	font-size: clamp(19px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
}

/* Citation row paragraphs */
.ag-cite p {
	margin: 0;
}

/* "Please note" footnote paragraph */
.ag-about-foot p {
	margin: 0;
}

/* Stat sub-lines */
.ag-stat p {
	margin: 0;
}

.ag-stat .ag-stat-sub {
	font-size: 15px;
	color: #e4ddfa;
}

/* ---------- v1.0.6 FIXES ---------- */

/* Classic themes wrap Group block children in .wp-block-group__inner-container,
   which breaks flex/grid layouts (the wrapper becomes the single flex/grid
   item and everything stacks). Dissolve the wrapper so the real children
   lay out correctly. */
.ag-cards > .wp-block-group__inner-container,
.ag-stats > .wp-block-group__inner-container,
.ag-cite > .wp-block-group__inner-container {
	display: contents;
}

/* Serif display titles */
.ag-hero h1,
.ag-band h2.ag-title {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	letter-spacing: -0.02em;
}
