/**
 * Blog index - hero, search, topic chips and the post grid.
 *
 * Loaded only on the posts page. The outer Elementor container is full width
 * with no padding, so the hero can be a full-bleed band while every other row
 * centres itself; nothing here relies on 100vw, which would add a horizontal
 * scrollbar on Windows.
 */

.entb {
	--entb-orange: #F37021;
	--entb-tint: #FEF1E9;
	--entb-ink: #16181D;
	--entb-body: #4B5159;
	--entb-muted: #767E88;
	--entb-line: #E6E8EB;
	--entb-line-soft: #F0F1F3;
	--entb-max: 1200px;

	font-family: "Satoshi", sans-serif;
	/* the next band on the page sits flush against this one without it */
	padding-bottom: 76px;
}

/* The theme sets a display on bare buttons, which outranks the user-agent
   [hidden] rule, so "Load more" stayed visible with no pages left to load. */
/* hello-elementor's reset.css styles bare form controls at a specificity these
   rules have to clear:
     input[type=search]       -> border: 1px solid #666   (0,1,1)
     input[type=search]:focus -> border-color: #333       (0,2,1)
     button:hover             -> background-color: #c36   (0,1,1, the maroon)
   Hence the extra .entb in front, and an explicit background on every hover
   state - leaving one out is what let the maroon through on the chips. */

/* !important is deliberate: several rules below set a display on these same
   elements at the same specificity, and [hidden] has to beat all of them. */
.entb [hidden] { display: none !important; }

.entb-filters,
.entb-count,
.entb-grid,
.entb-empty,
.entb-more {
	max-width: var(--entb-max);
	margin-inline: auto;
	padding-inline: 20px;
}

/* ---------- hero ---------- */
.entb-hero {
	background: var(--entb-tint);
	padding: 64px 20px 72px;
	text-align: center;
}
.entb-hero > * {
	max-width: 720px;
	margin-inline: auto;
}
.entb-hero__eyebrow {
	margin: 0 auto 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--entb-orange);
}
.entb-hero__title {
	margin: 0 auto 16px;
	font-size: clamp(30px, 4.2vw, 46px);
	line-height: 1.12;
	font-weight: 700;
	color: var(--entb-ink);
	letter-spacing: -.01em;
}
.entb-hero__sub {
	margin: 0 auto 32px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--entb-body);
}

/* ---------- search ---------- */
.entb-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 560px;
	background: #fff;
	border: 1px solid var(--entb-line);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.entb-search:focus-within {
	border-color: var(--entb-orange);
	box-shadow: 0 0 0 4px rgba(243, 112, 33, .14);
}
.entb-search__icon {
	width: 19px;
	height: 19px;
	margin-inline: 20px 0;
	flex: none;
	color: var(--entb-muted);
}
.entb .entb-search__input,
.entb .entb-search__input:focus {
	flex: 1;
	min-width: 0;
	width: auto;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: none;
	padding: 16px 14px;
	font: inherit;
	font-size: 15.5px;
	color: var(--entb-ink);
	border-radius: 999px;
	transition: none;
}
.entb-search__input::placeholder { color: var(--entb-muted); }
.entb-search__input::-webkit-search-cancel-button { display: none; }
.entb .entb-search__clear {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-right: 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F1F2F4;
	color: var(--entb-body);
	cursor: pointer;
}
.entb .entb-search__clear:hover { background: #E4E6E9; color: var(--entb-ink); }
.entb .entb-search__clear svg { width: 15px; height: 15px; }

/* ---------- topic chips ---------- */
.entb-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 36px;
}
.entb .entb-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid var(--entb-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--entb-body);
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.entb .entb-chip:hover {
	background: #fff;
	border-color: #CFD3D8;
	color: var(--entb-ink);
}
.entb .entb-chip.is-active:hover {
	background: var(--entb-orange);
	border-color: var(--entb-orange);
	color: #fff;
}
.entb .entb-chip__n {
	font-size: 12px;
	font-weight: 700;
	color: var(--entb-muted);
	background: #F4F5F6;
	border-radius: 999px;
	padding: 2px 7px;
	transition: inherit;
}
.entb .entb-chip.is-active {
	background: var(--entb-orange);
	border-color: var(--entb-orange);
	color: #fff;
}
.entb .entb-chip.is-active .entb-chip__n { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- result count ---------- */
.entb-count {
	margin: 28px auto 0;
	text-align: center;
	font-size: 14px;
	color: var(--entb-muted);
}

/* ---------- grid ---------- */
.entb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 22px;
	padding-bottom: 8px;
	transition: opacity .15s ease;
}
.entb.is-loading .entb-grid { opacity: .45; }

/* ---------- card ---------- */
.entb-card {
	background: #fff;
	border: 1px solid var(--entb-line);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.entb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(16, 24, 40, .09);
	border-color: #D8DBDF;
}
.entb-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}
.entb-card__link:focus-visible {
	outline: 2px solid var(--entb-orange);
	outline-offset: -2px;
	border-radius: 20px;
}
.entb-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--entb-tint);
	overflow: hidden;
}
.entb-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.entb-card__pill {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(4px);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--entb-orange);
}
.entb-card__body {
	display: block;
	flex: 1;
	padding: 20px 22px 18px;
}
.entb-card__title {
	margin: 0 0 9px;
	font-size: 18.5px;
	line-height: 1.33;
	font-weight: 700;
	color: var(--entb-ink);
	transition: color .15s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.entb-card:hover .entb-card__title { color: var(--entb-orange); }
.entb-card__excerpt {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--entb-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.entb-card__foot {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-top: 1px solid var(--entb-line-soft);
	font-size: 13px;
	color: var(--entb-muted);
}
.entb-card__dot { color: #C6CACF; }

/* ---------- empty state and load more ---------- */
.entb-empty {
	margin: 48px auto;
	text-align: center;
	font-size: 16px;
	color: var(--entb-body);
}
.entb .entb-empty__reset:hover { background: none; color: var(--entb-orange); }
.entb .entb-empty__reset {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	color: var(--entb-orange);
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entb-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 40px auto 8px;
	min-height: 48px;
}
.entb .entb-more__btn {
	padding: 13px 30px;
	border: 1px solid var(--entb-orange);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var(--entb-orange);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.entb .entb-more__btn:hover { background: var(--entb-orange); color: #fff; }
.entb-more__spinner {
	width: 20px;
	height: 20px;
	border: 2px solid var(--entb-line);
	border-top-color: var(--entb-orange);
	border-radius: 50%;
	animation: entb-spin .7s linear infinite;
}
@keyframes entb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.entb-card, .entb-card__title, .entb-grid { transition: none; }
	.entb-card:hover { transform: none; }
	.entb-more__spinner { animation-duration: 2s; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.entb-hero { padding: 52px 20px 56px; }
	.entb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
	.entb { padding-bottom: 48px; }
	.entb-hero { padding: 40px 16px 44px; }
	.entb-hero__sub { font-size: 16px; margin-bottom: 26px; }
	.entb-filters,
	.entb-count,
	.entb-grid,
	.entb-empty,
	.entb-more { padding-inline: 16px; }
	.entb-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		scrollbar-width: none;
		margin-top: 28px;
		padding-block: 2px;
	}
	.entb-filters::-webkit-scrollbar { display: none; }
	.entb-chip { flex: none; }
	.entb-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
