/*
 * Find a School (/find-a-school/) — matched to the WhatsApp design of 2026-10-22 12.57.18 (applied 2026-10-23).
 * Loaded only on the ews_school archive (see functions.php), after main.css.
 * Every rule is also prefixed with the page's body class, so nothing here can reach another page.
 */

/* Hero */
.post-type-archive-ews_school .fas-hero { padding: 0; background: linear-gradient(160deg, #f9f8fd 0%, #fbfaff 45%, #f9f1fc 100%); }
.post-type-archive-ews_school .fas-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 0; align-items: stretch; min-height: 470px; padding: 0 0 0 max(24px, calc((100% - var(--container)) / 2 + 24px)); }
.post-type-archive-ews_school .fas-hero__copy { max-width: 600px; padding: 44px 36px 44px 0; align-self: center; }
.post-type-archive-ews_school .fas-hero .eyebrow { color: #5b5785; font-size: 11.5px; letter-spacing: 0.22em; margin-bottom: 14px; }
.post-type-archive-ews_school .fas-hero__copy h1 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.1; letter-spacing: -0.01em; color: #1b1c48; margin-bottom: 18px; }
.post-type-archive-ews_school .fas-hero__gradient { background-image: linear-gradient(100deg, #fd7a1f, #f0566b); }
.post-type-archive-ews_school .fas-hero__desc { color: #2b2f55; font-size: 16px; line-height: 1.55; max-width: 480px; margin-bottom: 26px; }
.post-type-archive-ews_school .fas-hero__select { max-width: 540px; margin-bottom: 30px; }
.post-type-archive-ews_school .fas-hero__select svg { left: 18px; width: 20px; height: 20px; color: #1b1c48; }
.post-type-archive-ews_school .fas-hero__select select {
	-webkit-appearance: none;
	appearance: none;
	height: 56px;
	padding: 0 48px 0 52px;
	border-radius: 10px;
	border: 1px solid #e6e5f2;
	color: #4a4d6b;
	font-size: 14.5px;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(27, 28, 72, 0.07);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9cb5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 16px;
}
.post-type-archive-ews_school .fas-hero__stats { gap: 18px 34px; flex-wrap: nowrap; }
.post-type-archive-ews_school .fas-hero__stat { gap: 12px; align-items: flex-start; }
.post-type-archive-ews_school .fas-hero__stat-icon { width: 46px; height: 46px; border-radius: 50%; }
.post-type-archive-ews_school .fas-hero__stat-icon svg { width: 22px; height: 22px; }
.post-type-archive-ews_school .fas-hero__stat strong { font-size: 15px; color: #1b1c48; margin: 3px 0 2px; }
.post-type-archive-ews_school .fas-hero__stat small { font-size: 12px; line-height: 1.45; color: #4a4d6b; max-width: 140px; }
.post-type-archive-ews_school .fas-hero__photo { position: relative; border-radius: 0; clip-path: ellipse(88% 125% at 100% 50%); }
.post-type-archive-ews_school .fas-hero__photo img,
.post-type-archive-ews_school .fas-hero__photo .ph-photo { height: 100%; min-height: 470px; object-fit: cover; object-position: 60% 30%; }
.post-type-archive-ews_school .fas-hero__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(249, 248, 253, 0.55) 0%, rgba(249, 248, 253, 0) 22%); }

/* Tagline */
.post-type-archive-ews_school .fas-tagline { max-width: 900px; padding: 28px 24px; gap: 24px; }
.post-type-archive-ews_school .fas-tagline__line { background: #c9cbe0; }
.post-type-archive-ews_school .fas-tagline p { font-size: 13px; letter-spacing: 0.32em; color: #1b1c48; font-weight: 700; }
.post-type-archive-ews_school .fas-tagline p span { margin: 0 0.4em; color: #5b5785; }

/* State selector */
.post-type-archive-ews_school .fas-states__panel { background: linear-gradient(120deg, #f7f6fe, #f8f4fd); border-radius: 16px; padding: 30px 36px; gap: 24px 48px; }
.post-type-archive-ews_school .fas-states .eyebrow { color: #5b5785; letter-spacing: 0.2em; font-size: 11px; }
.post-type-archive-ews_school .fas-states__intro { flex: 1 1 300px; }
.post-type-archive-ews_school .fas-states__intro h2 { font-size: clamp(24px, 2.2vw, 30px); color: #1b1c48; margin: 6px 0 8px; }
.post-type-archive-ews_school .fas-states__intro p { color: #4a4d6b; font-size: 13px; }
.post-type-archive-ews_school .fas-states__pills { flex: 2 1 600px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.post-type-archive-ews_school .fas-state-pill { border-radius: 8px; height: 44px; padding: 0 10px; border: 1px solid #e3e2ef; font-size: 13px; color: #1b1c48; box-shadow: 0 2px 6px rgba(27, 28, 72, 0.04); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-type-archive-ews_school .fas-state-pill.is-active { background: linear-gradient(100deg, #fd691f, #f36e65); color: #fff; box-shadow: 0 6px 16px rgba(253, 105, 31, 0.28); }

/* Results heading + count card */
.post-type-archive-ews_school .fas-results__head h2 { font-size: clamp(22px, 2vw, 28px); color: #1b1c48; }
.post-type-archive-ews_school .fas-results__head h2 span { color: #1b1c48; }
.post-type-archive-ews_school .fas-results__head h2 .fas-results__in { color: #ababc3; font-weight: 500; }
.post-type-archive-ews_school .fas-results__view-all { color: #1b1c48; }
.post-type-archive-ews_school .fas-results__layout { grid-template-columns: 200px 1fr; gap: 22px; align-items: stretch; }
.post-type-archive-ews_school .fas-results__sidebar { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px; border-radius: 14px; background: linear-gradient(180deg, #faf5fc, #fdf3fb); }
.post-type-archive-ews_school .fas-results__map { position: absolute; top: 22px; left: 18px; width: 70%; height: auto; opacity: 0.09; pointer-events: none; }
.post-type-archive-ews_school .fas-results__sidebar strong { position: relative; font-size: 34px; color: #1b1c48; }
.post-type-archive-ews_school .fas-results__sidebar > span { position: relative; font-size: 14px; color: #1b1c48; }
.post-type-archive-ews_school .fas-results__sidebar p { position: relative; font-size: 13.5px; line-height: 1.6; color: #2b2f55; margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid #d9d4ea; }

/* School cards */
.post-type-archive-ews_school .fas-card { padding: 6px; border-radius: 12px; border: 1px solid #ecebf4; box-shadow: 0 6px 18px rgba(27, 28, 72, 0.06); }
.post-type-archive-ews_school .fas-card__photo { aspect-ratio: 16 / 9; border-radius: 8px; }
.post-type-archive-ews_school .fas-card__badge { top: 8px; left: 8px; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; background: #1f2366; }
.post-type-archive-ews_school .fas-card__body { padding: 14px 10px 10px; gap: 7px; flex: 1 1 auto; }
.post-type-archive-ews_school .fas-card__title { font-size: 15px; font-weight: 700; color: #1b1c48; margin-bottom: 4px; }
.post-type-archive-ews_school .fas-card__meta { color: #52546b; font-size: 12.5px; gap: 8px; align-items: flex-start; }
.post-type-archive-ews_school .fas-card__meta svg { width: 15px; height: 15px; color: #1b1c48; margin-top: 1px; }
.post-type-archive-ews_school .fas-card__actions { margin-top: auto; padding-top: 12px; gap: 10px; }
.post-type-archive-ews_school .fas-card__actions .btn { border-radius: 6px; height: 38px; padding: 0 10px; font-size: 12.5px; font-weight: 600; }
.post-type-archive-ews_school .fas-card__actions .btn--dark { background: #191e55; }
.post-type-archive-ews_school .fas-card__actions .btn--dark:hover { background: #10133d; }
.post-type-archive-ews_school .fas-card__actions .btn--outline { border: 1px solid #d9dae8; color: #1b1c48; }

/* Advisor strip */
.post-type-archive-ews_school .fas-advisor { background: linear-gradient(100deg, #f4f2fd, #fde9f2); border: 1px solid #efeaf9; border-radius: 14px; padding: 0; }
.post-type-archive-ews_school .fas-advisor__inner { padding: 18px 36px 18px 22px; gap: 20px; }
.post-type-archive-ews_school .fas-advisor__icon { width: 56px; height: 56px; background: #e5dfff; color: #3d2f8f; }
.post-type-archive-ews_school .fas-advisor__icon svg { width: 28px; height: 28px; }
.post-type-archive-ews_school .fas-advisor__body strong { font-size: 17px; color: #1b1c48; }
.post-type-archive-ews_school .fas-advisor__body p { font-size: 13px; color: #4a4d6b; }
.post-type-archive-ews_school .fas-advisor .btn { border-radius: 6px; border: 1.5px solid #3d2f8f; color: #1b1c48; padding: 11px 22px; font-size: 14px; }

/* Edify Advantage banner */
.post-type-archive-ews_school .fas-cta__inner { grid-template-columns: 1fr 1.3fr; background: linear-gradient(100deg, #fbfaff 0%, #f8f5fd 55%, #ede7fd 100%); border-radius: 14px; }
.post-type-archive-ews_school .fas-cta__photo { min-height: 210px; height: 210px; -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, #000 72%, transparent 100%); }
.post-type-archive-ews_school .fas-cta__photo img { object-position: center 30%; }
.post-type-archive-ews_school .fas-cta__copy { padding: 24px 40px 24px 24px; align-self: center; }
.post-type-archive-ews_school .fas-cta .eyebrow { color: #f0532f; letter-spacing: 0.2em; font-size: 11px; }
.post-type-archive-ews_school .fas-cta__copy h2 { font-size: clamp(19px, 1.7vw, 23px); color: #1b1c48; margin: 6px 0 8px; }
.post-type-archive-ews_school .fas-cta__copy p { color: #2b2f55; font-size: 13.5px; margin-bottom: 16px; max-width: 520px; }
.post-type-archive-ews_school .fas-cta .btn--outline { border-radius: 6px; border: 1.5px solid #3d2f8f; color: #1b1c48; padding: 10px 20px; font-size: 14px; }

/* Tablet */
@media (max-width: 1080px) {
	.post-type-archive-ews_school .fas-hero__inner { grid-template-columns: 1fr; padding: 0; min-height: 0; }
	.post-type-archive-ews_school .fas-hero__photo { order: -1; max-width: none; margin: 0; clip-path: none; }
	.post-type-archive-ews_school .fas-hero__photo img,
	.post-type-archive-ews_school .fas-hero__photo .ph-photo { min-height: 0; height: 320px; width: 100%; }
	.post-type-archive-ews_school .fas-hero__photo::after { background: linear-gradient(0deg, rgba(249, 248, 253, 0.9) 0%, rgba(249, 248, 253, 0) 30%); }
	.post-type-archive-ews_school .fas-hero__copy { max-width: none; padding: 28px 24px 36px; }
	.post-type-archive-ews_school .fas-hero__stats { flex-wrap: wrap; }
	.post-type-archive-ews_school .fas-states__intro,
	.post-type-archive-ews_school .fas-states__pills { flex: 0 0 auto; width: 100%; }
	.post-type-archive-ews_school .fas-states__pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-type-archive-ews_school .fas-tagline p { font-size: 11.5px; letter-spacing: 0.2em; white-space: normal; text-align: center; }
	.post-type-archive-ews_school .fas-results__layout { grid-template-columns: 1fr; }
	.post-type-archive-ews_school .fas-results__map { display: none; }
	.post-type-archive-ews_school .fas-results__sidebar p { border-bottom: 0; padding-bottom: 0; margin-top: 8px; }
	.post-type-archive-ews_school .fas-cta__photo { height: 220px; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 75%, transparent 100%); }
	.post-type-archive-ews_school .fas-cta__copy { padding: 8px 24px 28px; }
}

/* Phone */
@media (max-width: 720px) {
	.post-type-archive-ews_school .fas-hero__photo img,
	.post-type-archive-ews_school .fas-hero__photo .ph-photo { height: 260px; }
	.post-type-archive-ews_school .fas-hero__stats { gap: 14px 22px; }
	.post-type-archive-ews_school .fas-tagline { gap: 10px; padding: 22px 16px; }
	.post-type-archive-ews_school .fas-tagline p { font-size: 11px; letter-spacing: 0.16em; }
	.post-type-archive-ews_school .fas-states__panel { padding: 22px 18px; }
	.post-type-archive-ews_school .fas-states__pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-type-archive-ews_school .fas-advisor__inner { padding: 20px; }
}

/* Responsive fixes after the 18-width check (2026-10-23) */
@media (max-width: 1080px) {
	.post-type-archive-ews_school .fas-tagline { justify-content: center; }
	.post-type-archive-ews_school .fas-tagline__line { display: none; }
}
@media (max-width: 420px) {
	.post-type-archive-ews_school .fas-tagline { padding: 20px 12px; }
	.post-type-archive-ews_school .fas-tagline p { font-size: 10px; letter-spacing: 0.1em; }
	.post-type-archive-ews_school .fas-tagline p span { margin: 0 0.2em; }
	.post-type-archive-ews_school .fas-states__pills { gap: 8px; }
	.post-type-archive-ews_school .fas-state-pill { font-size: 12px; padding: 0 6px; }
	.post-type-archive-ews_school .fas-card__actions { flex-wrap: wrap; }
	.post-type-archive-ews_school .fas-card__actions .btn { flex: 1 1 120px; }
}
@media (min-width: 1600px) {
	.post-type-archive-ews_school .fas-hero__photo img,
	.post-type-archive-ews_school .fas-hero__photo .ph-photo { max-height: 560px; }
}

/* ==== Find a School UI pass (2026-10-27): panel shadows + richer school cards ==== */

/* 1. Select Your State panel: same indigo border, glow and shadow as the homepage panels */
.post-type-archive-ews_school .fas-states__panel {
	border: 1px solid rgba(79, 91, 234, 0.12);
	border-radius: 20px;
	background:
		radial-gradient(420px 260px at 0% 0%, rgba(124, 58, 237, 0.07), transparent 70%),
		radial-gradient(360px 240px at 100% 100%, rgba(242, 112, 27, 0.05), transparent 70%),
		linear-gradient(135deg, #f5f3fb 0%, #f8f9fb 55%, #f2f4fa 100%);
	box-shadow: 0 2px 6px rgba(16, 31, 77, 0.05), 0 22px 48px -14px rgba(79, 91, 234, 0.32);
}
.post-type-archive-ews_school .fas-state-pill {
	background: #fff;
	border-color: rgba(79, 91, 234, 0.14);
	box-shadow: 0 6px 14px -8px rgba(16, 31, 77, 0.30);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-type-archive-ews_school .fas-state-pill:hover { transform: translateY(-2px); border-color: rgba(79, 91, 234, 0.35); box-shadow: 0 12px 22px -10px rgba(79, 91, 234, 0.45); }
.post-type-archive-ews_school .fas-state-pill.is-active { border-color: transparent; }

/* 2. School cards: soft shadow, hover lift, photo zoom */
.post-type-archive-ews_school .fas-card {
	padding: 8px;
	border-radius: 16px;
	border: 1px solid rgba(79, 91, 234, 0.10);
	background: #fff;
	box-shadow: 0 2px 6px rgba(16, 31, 77, 0.04), 0 14px 30px -14px rgba(16, 31, 77, 0.28);
	transition: transform .25s ease, box-shadow .25s ease;
}
.post-type-archive-ews_school .fas-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 10px rgba(16, 31, 77, 0.05), 0 24px 44px -16px rgba(79, 91, 234, 0.50);
}
.post-type-archive-ews_school .fas-card__photo { border-radius: 12px; overflow: hidden; }
.post-type-archive-ews_school .fas-card__photo img { transition: transform .5s ease; }
.post-type-archive-ews_school .fas-card:hover .fas-card__photo img { transform: scale(1.06); }

/* 5. Badge now shows the state (white glass chip) */
.post-type-archive-ews_school .fas-card__badge {
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1b1c48;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(16, 31, 77, 0.18);
	backdrop-filter: blur(4px);
}
.post-type-archive-ews_school .fas-card__badge svg { width: 12px; height: 12px; color: #f0566b; }

/* 6. Two-level title: brand small, place large */
.post-type-archive-ews_school .fas-card__body { padding: 14px 10px 10px; gap: 8px; }
.post-type-archive-ews_school .fas-card__kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7c3aed; }
.post-type-archive-ews_school .fas-card__title { font-size: 18px; line-height: 1.25; margin: 0 0 2px; }

/* 7. Grades + curriculum as pills */
.post-type-archive-ews_school .fas-card__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.post-type-archive-ews_school .fas-card__pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	background: #f1f2fa;
	color: #1b1c48;
}
.post-type-archive-ews_school .fas-card__pill svg { width: 13px; height: 13px; }
.post-type-archive-ews_school .fas-card__pill--cbse { background: #e8f0ff; color: #0049b0; }
.post-type-archive-ews_school .fas-card__pill--cambridge { background: #e6f7ee; color: #0f7a43; }
.post-type-archive-ews_school .fas-card__pill--ib { background: #e9f6fd; color: #0b6fa4; }
.post-type-archive-ews_school .fas-card__actions { padding-top: 14px; }
.post-type-archive-ews_school .fas-card__actions .btn { border-radius: 8px; }

/* 3. Advisor strip: panel shadow + filled button */
.post-type-archive-ews_school .fas-advisor {
	border: 1px solid rgba(79, 91, 234, 0.12);
	border-radius: 18px;
	box-shadow: 0 2px 6px rgba(16, 31, 77, 0.05), 0 18px 40px -16px rgba(79, 91, 234, 0.32);
}
.post-type-archive-ews_school .fas-advisor__icon { box-shadow: 0 8px 18px -6px rgba(61, 47, 143, 0.45); background: #fff; }
.post-type-archive-ews_school .fas-advisor .btn,
.post-type-archive-ews_school .fas-cta .btn--outline {
	background: linear-gradient(100deg, #fd7a1f, #f0566b);
	border: none;
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 10px 22px -8px rgba(240, 86, 107, 0.6);
	transition: transform .2s ease, box-shadow .2s ease;
}
.post-type-archive-ews_school .fas-advisor .btn:hover,
.post-type-archive-ews_school .fas-cta .btn--outline:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(240, 86, 107, 0.7); }

/* 4. The Edify Advantage panel */
.post-type-archive-ews_school .fas-cta__inner {
	border: 1px solid rgba(79, 91, 234, 0.12);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(16, 31, 77, 0.05), 0 22px 48px -14px rgba(79, 91, 234, 0.32);
}

@media (min-width: 1081px) {
	/* photo fills the full panel height beside the copy */
	.post-type-archive-ews_school .fas-cta__photo { height: auto; min-height: 210px; align-self: stretch; }
	.post-type-archive-ews_school .fas-cta__photo img { height: 100%; }
}

@media (max-width: 1080px) {
	/* stack photo over copy (photo was squeezed into a thin strip on phones) */
	.post-type-archive-ews_school .fas-cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.post-type-archive-ews_school .fas-card__title { font-size: 17px; }
	.post-type-archive-ews_school .fas-states__panel,
	.post-type-archive-ews_school .fas-cta__inner { box-shadow: 0 2px 6px rgba(16, 31, 77, 0.05), 0 14px 30px -14px rgba(79, 91, 234, 0.30); }
}
