/*
 * =========================================
 * Blog Articles Grid Layout
 * =========================================
 */

/* 1. This is the main grid container */
.articles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}


/* 2. This creates the "card" look for each individual article */
.article-item {
	/* This prevents a card from breaking across two columns */
	break-inside: avoid;
	/* Add space below each card */
	margin-bottom: 30px;
	/* This is needed for the column logic to work correctly */
	display: inline-block;
	width: 100%;
	border-radius: 8px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;

	overflow: hidden;
}

/* Add a subtle "lift" effect when a user hovers over a card */
.article-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	background-color: var(--light-sand);
}

.article-item:hover .entry-title a {
	color: var(--cta-orange);
}


/*
 * =========================================
 * Content Styling Inside Each Card
 * =========================================
 */

.article-item .article-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.article-item .article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* This div holds all the text content */
.article-item .article-content {
	padding: 25px;
	/* These flex properties ensure the button is always at the bottom,
       even if the excerpt lengths are different. */
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Style the post title */
.article-item .entry-title {
	font-size: 1.3rem;
	margin-top: 0;
	margin-bottom: 10px;
}

.article-item .entry-title a {
	text-decoration: none;
}

/* Style the meta info (date, author) */
.article-item .entry-meta {
	font-size: 0.85rem;
	color: var(--lighter-dark-text);
	margin-bottom: 0;
}

/* The excerpt text */
.article-item .entry-summary {
	color: #333;
	flex-grow: 1;
	/* This makes the excerpt area expand, pushing the button down */
	line-height: 1.6;
	margin: 0;
}

/* Make it responsive */

@media (max-width: 576px) {
	.articles {
		grid-template-columns: repeat(1, 1fr);
	}
}
