/* Wrapper */

/* Grid Layout */
.dusubmarines-latest-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Each Post Card */
.dusubmarines-latest-posts__grid .dusubmarines-latest-posts__post {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease;
}

.dusubmarines-latest-posts__grid .dusubmarines-latest-posts__post:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.dusubmarines-latest-posts__media img {
	width: 100%;
	height: auto;
	display: block;
}

/* Content */
.dusubmarines-latest-posts__content {
	padding: 36px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Meta (Category + Date) */
.dusubmarines-latest-posts__meta {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.dusubmarines-latest-posts__category {
	font-weight: bold;
	margin-right: 10px;
	color: #151515;
}

.dusubmarines-latest-posts__date {
	color: #999;
}

/* Title */
.dusubmarines-latest-posts__title {
	font-size: 24px;
	margin: 10px 0;
	line-height: 1.4;
}

.dusubmarines-latest-posts__title a {
	color: #151515;
	text-decoration: none;
}

.dusubmarines-latest-posts__title a:hover {
	color: #f8c301;
}

/* Excerpt */
.dusubmarines-latest-posts__excerpt {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 20px;
	color: #444;
	flex-grow: 1;
}

/* Read More Button */
.dusubmarines-latest-posts__read-more {
	display: flex;
	align-items: center;
	color: #151515;
	text-decoration: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s ease;
	align-self: flex-start;
}

.dusubmarines-latest-posts__read-more:hover {
	color: #f8c301;
}
.dusubmarines-latest-posts__read-more:hover svg {
	color: #f8c301;
	transform: translateX(5px);
}

/* Responsive Breakpoints */

/* Tablet */
@media (max-width: 991px) {
	.dusubmarines-latest-posts-grid .dusubmarines-latest-posts__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.dusubmarines-latest-posts-grid .dusubmarines-latest-posts__content {
		padding: 28px 20px;
	}
}

/* Mobile */
@media (max-width: 575px) {
	.dusubmarines-latest-posts-grid .dusubmarines-latest-posts__grid {
		grid-template-columns: 1fr;
	}
	.dusubmarines-latest-posts-grid .dusubmarines-latest-posts__content {
		padding: 20px 16px;
	}
}
