/* Blog index / single / category / search / 404. */

:root {
	--exs-orange: #fb7436;
	--exs-orange-dark: #e66f31;
	--exs-yellow: #fff4d8;
	--exs-cream: #fffaf0;
	--exs-brown: #7d5e47;
	--exs-ink: #222222;
	--exs-border: #eadfd4;
}

.blog-single, .error-404 { padding: 48px 0 100px; color: var(--exs-ink); }
.blog-index { color: var(--exs-ink); }
.blog-index .home-container { width: min(1080px, calc(100% - 40px)); }
.home-container--narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.error-404 h1 { margin: 0 0 40px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-align: center; }

.blog-index__hero { display: flex; min-height: 325px; align-items: center; background: linear-gradient(rgba(251,116,54,.3), rgba(251,116,54,.3)), url('../images/blog/figma-blog-hero.png') center 58% / cover no-repeat; }
.blog-index__hero h1 { margin: 0; color: #fff; font-size: clamp(2.25rem, 4vw, 3.125rem); font-weight: 500; line-height: 1.7; text-shadow: 0 4px 4px rgba(0,0,0,.25); }
.blog-index__breadcrumb { padding: 4px 0; font-size: .875rem; }
.blog-index__breadcrumb .home-container { display: flex; gap: 16px; align-items: center; min-height: 32px; }
.blog-index__breadcrumb a { color: inherit; text-decoration: none; }
.blog-index__content { padding-block: 80px; }
.blog-index__categories { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; margin-bottom: 48px; }
.blog-index__categories > span { display: flex; min-height: 36px; flex: 0 0 auto; align-items: center; line-height: 36px; }
.blog-index__categories > div { display: flex; width: 100%; flex-wrap: wrap; gap: 16px; }
.blog-index__categories a, .blog-index__categories .is-disabled { display: inline-flex; min-width: 146px; min-height: 60px; align-items: center; justify-content: center; box-sizing: border-box; padding: 10px 24px; border: 1px solid #bf9d79; border-radius: 5px; color: #222; line-height: 24px; text-align: center; text-decoration: none; }
.blog-index__categories a.is-current, .blog-index__categories a:hover { background: #bf9d79; color: #fff; }
.blog-index__categories .is-disabled { cursor: default; }

.blog-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.blog-card a { display: block; color: #000; text-decoration: none; }
.blog-card__image { display: block; width: 100%; height: 180px; object-fit: cover; }
.blog-card--without-image > a { display: flex; min-height: 220px; flex-direction: column; justify-content: flex-end; padding-top: 48px; background: linear-gradient(145deg, #fffaf0, #fff); }
.blog-card__meta { display: flex; gap: 16px; align-items: center; margin-top: 14px; font-size: .875rem; font-weight: 500; line-height: 1.6; }
.blog-card__meta span { padding: 2px 4px; border: 1px solid #bf9d79; border-radius: 2px; color: #222; font-size: .75rem; }
.blog-card h2, .blog-card h3 { margin: 14px 0 0; font-size: 1.125rem; font-weight: 500; line-height: 1.6; }
.site-blog-section { position: relative; isolation: isolate; overflow: hidden; padding-block: 80px; background: #fff; }
.site-blog-section--home::before { content: none; }
.site-blog-section--school::before { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; left: max(20px, calc(50% - 720px)); border-radius: 520px 0 0 520px; background: #eaf9f8; content: ""; }
.site-blog-section .home-container { position: relative; width: min(1080px, calc(100% - 40px)); }
.site-blog-section__heading { position: relative; display: grid; min-height: 64px; place-items: center; margin-bottom: 42px; }
.site-blog-section__heading > span { position: absolute; color: #eceed8; font-family: Roboto, sans-serif; font-size: 60px; font-weight: 700; letter-spacing: .11em; line-height: 1; }
.site-blog-section .site-blog-section__heading h2 { position: relative; width: auto; min-height: 0; margin: 0; padding: 8px; border: 0; color: #222; font-size: 24px; line-height: 48px; text-align: center; }
.site-blog-section--home .site-blog-section__heading { width: min(1048px, 100%); min-height: 0; margin-inline: auto; padding: 18px 0; border-block: 1px solid #666; }
.site-blog-section--home .site-blog-section__heading > span { display: none; }
.site-blog-section--home .site-blog-section__heading h2 { padding: 0; }
.blog-section-link { display: flex; width: 216px; min-height: 50px; align-items: center; justify-content: space-between; gap: 18px; margin: 32px auto 0; padding: 12px 16px; border-radius: 4px; background: #fafafa; color: #ff5035; font-size: .9375rem; font-weight: 400; text-decoration: none; }
.site-blog-section .blog-card { background: #fff; }
.site-blog-section .blog-card-grid { margin-top: 0; }
.site-blog-section .blog-card > a { height: 100%; padding-bottom: 16px; }
.site-blog-section .blog-card__meta,
.site-blog-section .blog-card h2,
.site-blog-section .blog-card h3 { padding-inline: 16px; }
.blog-slider-dots { display: none; }

@media (min-width: 768px) and (max-width: 1023px) {
	.blog-card-grid--section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.blog-index__empty { padding: 48px 0; color: #6d645f; text-align: center; }
.blog-index__pagination { display: flex; justify-content: center; margin-top: 48px; }
.blog-index__pagination .nav-links { display: flex; gap: 8px; }
.blog-index__pagination .page-numbers { display: grid; min-width: 42px; height: 44px; place-items: center; padding: 0 10px; color: #222; text-decoration: none; }
.blog-index__pagination .current { background: #bf9d79; color: #fff; }
.blog-index__cta { padding: 64px 0; background: #fff4d8; text-align: center; }
.blog-index__cta .home-container { width: min(1080px, calc(100% - 40px)); }
.blog-index__cta > .home-container > p { margin: 0 0 8px; color: #222; font-size: 1.25rem; font-weight: 700; }
.blog-index__cta h2 { margin: 0 0 32px; color: #fb7436; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.45; }
.blog-index__cta picture, .blog-index__cta img { display: block; width: 100%; height: auto; }
.blog-index__cta-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.blog-index__cta-buttons a { display: flex; min-height: 100px; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: #fb7436; box-shadow: 0 10px 25px rgba(255,138,0,.4); color: #fff; font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.blog-index__cta-buttons a:last-child { background: #26a69a; box-shadow: 0 10px 25px rgba(38,166,154,.28); }
.blog-index__cta-buttons a:last-child:hover { background: #208f85; }
.blog .floating-cta, .category .floating-cta, .tax-school_cat .floating-cta { display: none !important; }

.blog-single .home-container--narrow { width: min(1120px, calc(100% - 40px)); }
.blog-single__header { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 0; padding: 48px 72px 26px; border-radius: 22px; background: #f8c469; color: #fff; text-align: center; box-shadow: 0 4px 10px rgba(34,34,34,.12); }
.blog-single__category { display: block; margin: 0 0 34px; padding: 0; background: transparent; color: #fff; font-size: 30px; font-weight: 700; }
.blog-single__header h1 { margin: 0 0 30px; font-size: 44px; font-weight: 700; line-height: 1.45; }
.blog-single__header time { display: block; color: #fff; font-size: 18px; }
.blog-single__thumb { width: min(800px, 100%); margin: 0 auto 72px; }
.blog-single__thumb img { display: block; width: 100%; aspect-ratio: 640 / 427; border-radius: 16px; object-fit: cover; }
.blog-single__content { width: min(1120px, 100%); margin-inline: auto; padding: 30px; border-radius: 20px; background: #fff; box-shadow: 0 2px 10px 5px rgba(0,0,0,.2); font-size: 18px; line-height: 2; }
.blog-single__content p { margin: 0 0 16px; padding: 20px; }
.blog-single__content h2 { width: 100%; margin: 56px 0 40px; padding: 20px; border-radius: 10px; background: #fff6e5; box-shadow: 0 2px 5px rgba(0,0,0,.2); font-size: 32px; line-height: 1.3; text-align: center; }
.blog-single__content h3 { margin: 56px 0 24px; font-size: 24px; line-height: 1.3; }
.blog-single__content > h3:first-child { margin: 0; padding: 20px; font-size: 18px; line-height: 2; }
.blog-single__content > :first-child { margin-top: 0; }
.blog-single__content--legacy > p:has(+ .blog-single__school-link) { display: none; }
.blog-single__content--no-inner-cta > p:last-child { display: none; }
.blog-single__content--classic { width: min(960px, 100%); padding: 0; border-radius: 0; box-shadow: none; font-size: 28px; line-height: 1.6; }
.blog-single__content--classic p { margin: 0 0 16px; padding: 0; }
.blog-single__content--classic h2 { margin: 48px 0 24px; padding: 16px 0; border-top: 4px solid #f8c469; border-radius: 0; background: #fff6e5; box-shadow: none; font-size: 32px; line-height: 1.4; text-align: left; }
.blog-single__content--callout > h2:first-child { margin-top: 0; padding: 14px; border: 2px solid #f8c469; background: #fff; }
.blog-single__back { margin-top: 48px; text-align: center; }
.blog-single__school-link { margin: 44px 0 4px; text-align: center; }
.blog-single__school-link a { display: inline-flex; width: min(470px, 100%); min-height: 72px; align-items: center; justify-content: center; padding: 14px 36px; border-radius: 999px; background: #fb7436; box-shadow: 0 5px 7px rgba(34,34,34,.2); color: #fff; font-size: 20px; font-weight: 700; line-height: 1.1; text-decoration: none; }
.blog-single__school-link--wide a { width: 100%; min-height: 90px; }
.blog-single__contact-cta { margin: 86px auto 110px; text-align: center; }
.blog-single__contact-cta p { margin: 0 0 34px; font-size: 21px; font-weight: 700; }
.blog-single__contact-cta a { display: inline-flex; width: min(570px, calc(100% - 40px)); min-height: 90px; align-items: center; justify-content: center; border-radius: 999px; background: #fb7436; color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; }
.blog-single__external-school { margin: 72px auto 110px; text-align: center; }
.blog-single__external-school a { display: inline-flex; width: min(570px, calc(100% - 40px)); min-height: 90px; align-items: center; justify-content: center; border-radius: 999px; background: #fb7436; box-shadow: 0 5px 7px rgba(34,34,34,.2); color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; }

.error-404 { text-align: center; }
.error-404__links { margin-top: 32px; }
.error-404 .home-button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 999px; background: var(--exs-orange); color: #fff; font-weight: 800; text-decoration: none; }

.search-form { display: flex; gap: 10px; margin: 0 auto 40px; max-width: 480px; }
.search-form__field { flex: 1; padding: 12px 16px; border: 1px solid var(--exs-border); border-radius: 999px; font: inherit; }
.search-form__submit { padding: 12px 24px; border: 0; border-radius: 999px; background: var(--exs-orange); color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 767px) {
	.blog-single { padding-top: 24px; }
	.blog-single .home-container--narrow { width: calc(100% - 32px); }
	.blog-single article.home-container--narrow { width: 100%; }
	.blog-single__header { min-height: 0; padding: 28px 18px 20px; border-radius: 14px; }
	.blog-single__category { margin-bottom: 10px; font-size: 16px; }
	.blog-single__header h1 { margin-bottom: 18px; font-size: 25px; }
	.blog-single__header time { font-size: 13px; }
	.blog-single__thumb { width: calc(100% - 16px); margin-bottom: 34px; }
	.blog-single__thumb img { border-radius: 10px; }
	.blog-single__content { width: 100%; padding: 24px 20px; border-radius: 12px; font-size: 16px; line-height: 2; }
	.blog-single__content p { padding: 20px 0; }
	.blog-single__content h2 { margin: 40px 0; padding: 16px 19px; font-size: 24px; line-height: 1.3; }
	.blog-single__content h3 { margin-top: 40px; font-size: 19px; }
	.blog-single__content > h3:first-child { padding: 20px 0; font-size: 16px; }
	.blog-single__school-link { margin: 32px 0 0; }
	.blog-single__school-link a { width: min(240px, 100%); min-height: 54px; padding-inline: 20px; font-size: 14px; }
	.blog-single__school-link--wide a { width: 100%; }
	.blog-single__contact-cta { margin: 56px auto 72px; }
	.blog-single__contact-cta p { margin-bottom: 22px; font-size: 17px; }
	.blog-single__contact-cta a { min-height: 60px; font-size: 16px; }
	.blog-single__external-school { margin: 48px auto 72px; }
	.blog-single__external-school a { min-height: 60px; font-size: 16px; }
	.blog-index .home-container { width: calc(100% - 40px); }
	.blog-index__hero { min-height: 180px; }
	.blog-index__hero h1 { font-size: 2rem; }
	.blog-index__content { padding-block: 48px; }
	.blog-index__categories { flex-direction: column; margin-bottom: 40px; }
	.blog-index__categories > span { padding-inline: 0; }
	.blog-index__categories > div { width: 100%; gap: 10px; }
	.blog-index__categories a, .blog-index__categories .is-disabled { min-width: 0; min-height: 62px; flex: 1 1 calc(50% - 5px); padding: 10px 12px; line-height: 1.5; overflow-wrap: anywhere; word-break: keep-all; }
	.blog-card-grid { grid-template-columns: 1fr; gap: 32px; }
	.site-blog-section--school .blog-card-grid--section { display: flex; width: 100%; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 8px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.site-blog-section--school .blog-card-grid--section::-webkit-scrollbar { display: none; }
	.site-blog-section--school .blog-card-grid--section > .blog-card { min-width: 100%; flex: 0 0 100%; scroll-snap-align: start; }
	.blog-card__image { height: calc((100vw - 40px) * 184 / 350); }
	.blog-card h2, .blog-card h3 { font-size: 1rem; }
	.site-blog-section { padding: 32px 0 40px; }
	.site-blog-section--school::before { left: 0; border-radius: 400px 0 0 400px; }
	.site-blog-section::after { top: -96px; left: -72px; width: 220px; height: 220px; transform: none; }
	.site-blog-section__heading { margin-bottom: 24px; }
	.site-blog-section__heading > span { font-size: 60px; }
	.site-blog-section .site-blog-section__heading h2 { font-size: 24px; }
	.site-blog-section--home .site-blog-section__heading { padding-block: 14px; }
	.site-blog-section--school .blog-slider-dots { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 16px; }
	.blog-slider-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d9e6e5; cursor: pointer; }
	.blog-slider-dots button.is-current { background: #fb7436; }
	.blog-section-link { width: calc(100% - 7px); min-height: 48px; font-size: .875rem; line-height: 1.75; }
	.blog-index__cta { padding-block: 48px; }
	.blog-index__cta > .home-container > p { font-size: 1rem; }
	.blog-index__cta-buttons { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
	.blog-index__cta-buttons a { min-height: 64px; font-size: 1rem; }
}
.blog-single__related-title {
	margin: 0 0 16px;
	font-weight: 700;
	text-align: center;
}

.blog-single__related-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.blog-single__related-links .blog-single__school-button {
	width: 100%;
	max-width: none;
}

@media (max-width: 640px) {
	.blog-single__related-links {
		grid-template-columns: 1fr;
	}
}
