ul {
  list-style: none;
	margin: 0;
	padding: 0;
}

.blog-featured-posts {
  display: grid;
  grid-gap: 1.75rem;
  grid-template-columns: minmax(0, 600px) 1fr;
  grid-template-rows: auto;
}

.blog-featured-posts div:last-child {
  grid-column: span 2;
}


.blog-post-card-featured:hover,
.blog-featured-category-posts-content:hover,
.blog-post-list-item:hover {
  cursor: pointer;
}

.blog-post-card-featured:hover a,
.blog-featured-category-posts-content:hover a,
.blog-post-list-item:hover a {
  text-decoration: underline;
}

{# Blog Post Card #}
.blog-post-card-featured {
  transition: box-shadow 0.3s ease;
	display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
	background: #e8ffed;
	border: 1px solid #e8ffed;
}

.blog-post-card-featured-image {
  max-height: 300px;
}

.blog-post-card-featured-image img {
  width: 100%;
  height: 100%;
	max-height: 300px;
  object-fit: cover;        /* center + crop elegantly */
  object-position: center;  /* keep the main area in view */
}

.blog-post-card-body {
  padding: 1.5rem;
	display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
}

.blog-post-card-title {
  flex-grow: 1;
	padding-bottom: 1rem;
  margin: 0;
	min-height: 3.5rem;
}

.blog-post-card-title a {
  color: #1f1f1f;
  text-decoration: none;
}

.blog-post-card-title a:hover {
  text-decoration: underline;
}

.blog-post-card-description {
  flex: 1;
  flex-basis: auto;
  margin: 0;
	padding-bottom: 1rem;
	min-height: 3rem;
}

.blog-post-card-footer {
  display: flex;
	gap: 15px;
	font-size: 0.875rem;
}

.blog-post-card-footer p {
  margin: 0;
}

{# Blog Featured Posts #}
.blog-featured-category-posts-header {
  display: flex;
	justify-content: space-between;
	border-bottom: 2px solid #9de608;
	padding-bottom: 0.25rem;
}

.blog-featured-category-posts-header h2 {
	margin: 0;
}

.blog-featured-category-posts-header a {
  color: #000;
	text-decoration: none;  
	align-content: center;
}

.blog-featured-category-posts-header a:hover {
  color: #9de608;
}

.blog-featured-category-posts-content {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1098039216);
}

.blog-featured-category-posts-content:last-child {
  border-bottom: none; 
}

.blog-featured-category-posts-content .blog-post-card-body {
  padding: 1rem 0;
}

.blog-featured-category-posts-content .blog-post-card-title {
	min-height: auto;
}

.blog-featured-category-posts-content .blog-post-card-footer {
  display: flex;
	justify-content: space-between;
	color: #0000009e;
}

{# Blog Highlights #}
.blog-post-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: auto;
  grid-gap: 1.5rem 1rem;
}

.blog-post-list .blog-post-card-featured-image {
  margin-bottom: 0.5rem;
}

.blog-post-list .blog-post-card-body {
  padding: 0; 
}

.blog-post-list .blog-post-card-title {
  padding-bottom: 0.5rem;
	min-height: 2rem;
}

.blog-post-list .blog-post-card-description {
	min-height: auto;
}

.blog-post-list .blog-post-card-footer {
  flex-direction: column;
	gap: 10px;
	color: #0000009e;
}

.blog-highlighted-posts > div {
  display: flex;
	justify-content: center;
	padding: 2rem;
}

.blog-highlighted-posts > div a {
  color: #000;
  text-decoration-color: #9de608;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.blog-highlighted-posts > div a:hover {
  text-underline-offset: 2px;
}

.visually-hidden:not(:focus,:active) {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ============= RESPONSIVE RULES ============= */

@media (max-width: 874px) {
  .blog-featured-posts {
	  grid-template-columns:  1fr;
	}
	
	.blog-featured-posts div:last-child {
		grid-column: span 1;
	}

	.blog-post-list {
		grid-template-columns: 1fr 1fr;
	}
	
	.blog-post-list .blog-post-card-title {
	  min-height: auto;
	}
	
	.blog-post-list .blog-post-card-description {
	  padding: 0.5rem 0;
	}
}

@media (max-width: 602px) {
	.blog-post-list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
  .blog-highlighted-posts > div a {
    transition: text-underline-offset .3s ease-in-out;
  }
}
