/* Blog index, category and author pages. Loaded only by template-blogs.blade.php and
   template-blog-author.blade.php, after refresh.css, whose design tokens (--et-*) and
   shared blocks (et-hero, et-tag, et-btn, the load_data1 grid, the blog sidebar) it builds on. */

/* Page header with the newest post shown large */
.et-hero--blog { padding-bottom: var(--et-space-6); }
.et-heropost {
	background: #fff;
	border: 1px solid var(--et-line);
	border-radius: 24px;
	box-shadow: var(--et-shadow);
	display: grid;
	margin-top: var(--et-space-5);
	overflow: hidden;
	position: relative;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.et-heropost:hover, .et-heropost:focus-within { border-color: var(--et-teal); box-shadow: 0 24px 60px rgba(15, 37, 54, .14); }
/* Featured images are 16:9 title cards with text drawn in them, so the picture always keeps its full
   16:9 frame. When the text column is taller, the picture is centred on a tinted background instead of cropped. */
.et-heropost__media { align-items: center; background: var(--et-grad-soft); display: flex; overflow: hidden; }
.et-heropost__media img, .et-heropost__media .et-post__noimg { aspect-ratio: 16 / 9; display: block; height: auto; object-fit: cover; width: 100%; }
.et-heropost__media .et-post__noimg { align-items: center; display: flex; }
.et-heropost__body { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.et-heropost .et-heropost__title {
	color: var(--et-ink);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.25;
	margin: 0 0 12px;
	text-wrap: balance;
}
.et-heropost__title a { color: inherit; }
/* The whole card is the link target; the image link is hidden from keyboard and screen readers. */
.et-heropost__title a::after { content: ""; inset: 0; position: absolute; }
.et-heropost__title a:hover, .et-heropost__title a:focus { color: var(--et-teal); text-decoration: none; }
.et-heropost .et-heropost__excerpt { color: var(--et-text); font-size: var(--et-fs-md); line-height: 1.65; margin: 0 0 20px; }
.et-tag--plain { background: var(--et-bg-tint); color: var(--et-text); }
@media (min-width: 992px) {
	/* The picture sits inside the card with its own rounded corners, so a taller text column leaves even white space around it. */
	.et-heropost { align-items: center; grid-template-columns: 1.25fr 1fr; padding: 20px; }
	.et-heropost__media { background: none; border-radius: 16px; }
	.et-heropost__body { padding: 20px 20px 20px 40px; }
	.et-heropost .et-heropost__title { font-size: 32px; }
}

/* List and sidebar below the header */
/* Legacy CSS floats every <section>, so the list wrapper has to clear the header above it. */
.blogs_item_list.blogs_item_list--index { clear: both; padding: var(--et-space-6) 0 var(--et-space-7); }
.et-posts__empty { margin: 0 0 var(--et-space-5); }

/* Post card */
.regular_blogs_li { display: flex; }
.et-post {
	background: #fff;
	border: 1px solid var(--et-line);
	border-radius: var(--et-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
	width: 100%;
}
.et-post:hover, .et-post:focus-within { border-color: var(--et-teal); box-shadow: var(--et-shadow); transform: translateY(-3px); }
.et-post__media { aspect-ratio: 16 / 9; background: var(--et-grad-soft); display: block; overflow: hidden; }
.et-post__media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.et-post__noimg {
	align-items: center;
	color: var(--et-teal);
	display: flex;
	font-size: var(--et-fs-xs);
	font-weight: 500;
	height: 100%;
	justify-content: center;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.et-post__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.et-post .et-post__meta, .et-heropost .et-post__meta {
	align-items: center;
	color: var(--et-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--et-fs-xs);
	gap: 10px;
	margin: 0 0 12px;
}
.et-post .et-post__title {
	color: var(--et-ink);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.35;
	margin: 0 0 10px;
}
.et-post__title a {
	color: inherit;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
.et-post__title a::after { content: ""; inset: 0; position: absolute; }
.et-post__title a:hover, .et-post__title a:focus { color: var(--et-teal); text-decoration: none; }
.et-post .et-post__excerpt {
	color: var(--et-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	font-size: var(--et-fs-sm);
	-webkit-line-clamp: 3;
	line-clamp: 3;
	line-height: 1.6;
	margin: 0 0 16px;
	overflow: hidden;
}
.et-post__more { color: var(--et-teal); font-size: var(--et-fs-sm); font-weight: 500; margin-top: auto; }

/* The footer's "Latest Blogs" strip repeats this page's own list. */
.home_blogs { display: none; }
