/* ========================================
   ARTIKEL LIST PAGE STYLES
   ======================================== */

/* Blog Section */
#blog {
	background: linear-gradient(180deg, var(--bg-color) 0%, rgba(26, 31, 58, 0.5) 100%);
	overflow: hidden;
	min-height: 100vh;
}

#blog .section-header h2 {
	color: rgba(255, 255, 255, 0.95);
	font-size: 2.5rem;
	margin-bottom: 15px;
	font-weight: 700;
}

#blog .section-header .text-muted {
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 1.1rem;
}

/* Blog Grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding: 40px 0;
}

/* Blog Card */
.blog-card {
	position: relative;
	background: var(--card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.blog-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 20px 50px rgba(0, 242, 167, 0.3);
	z-index: 100;
}

/* Blog Link */
.blog-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Image Wrapper */
.blog-img-wrapper {
	position: relative;
	overflow: hidden;
	height: 240px;
	background: #1a1f3a;
}

.blog-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
	transform: scale(1.15);
}

/* Image Overlay */
.blog-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 39, 0.9) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.blog-card:hover .blog-overlay {
	opacity: 1;
}

.blog-overlay i {
	width: 60px;
	height: 60px;
	background: var(--primary-color);
	color: #0a0e27;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transform: translateY(20px);
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-overlay i {
	transform: translateY(0);
}

/* Card Body */
.blog-card-body {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-title {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.4;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card:hover .blog-title {
	color: var(--primary-color);
}

.blog-excerpt {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 16px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta Information */
.blog-card .blog-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: auto;
	gap: 16px;
}

.blog-card .blog-meta .blog-date,
.blog-card .blog-meta .blog-author {
	display: flex;
	align-items: baseline;
	gap: 6px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	white-space: nowrap;
}

.blog-card .blog-meta .blog-date span,
.blog-card .blog-meta .blog-author span {
	display: inline-block;
}

.blog-card .blog-meta .blog-date i,
.blog-card .blog-meta .blog-author i {
	color: var(--primary-color);
	font-size: 0.85rem;
	display: inline-block;
	vertical-align: baseline;
}

.blog-card .blog-meta .blog-date {
	flex: 0 0 auto;
}

.blog-card .blog-meta .blog-author {
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
}

.blog-card .blog-meta .blog-author span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.blog-card:hover .blog-meta .blog-date,
.blog-card:hover .blog-meta .blog-author {
	color: rgba(255, 255, 255, 0.95);
}

.blog-card:hover .blog-meta i {
	color: #00f2a7;
	transform: scale(1.1);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination .page-link {
	color: var(--primary-color);
	background: var(--card-bg);
	border: 2px solid rgba(0, 242, 167, 0.3);
	border-radius: 10px;
	padding: 12px 20px;
	font-weight: 600;
	transition: all 0.3s ease;
	text-decoration: none;
}

.pagination .page-item.active .page-link {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #0a0e27;
	box-shadow: 0 4px 15px rgba(0, 242, 167, 0.4);
}

.pagination .page-link:hover {
	background: rgba(0, 242, 167, 0.15);
	border-color: var(--primary-color);
	color: var(--primary-color);
	transform: translateY(-2px);
}

/* Empty State */
#blog h5 {
	color: rgba(255, 255, 255, 0.95) !important;
}

#blog .text-muted {
	color: rgba(255, 255, 255, 0.65) !important;
}

.fas.fa-newspaper {
	color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1199.98px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767.98px) {
	#blog .section-header h2 {
		font-size: 2rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 30px 0;
	}

	.blog-img-wrapper {
		height: 220px;
	}

	.blog-title {
		font-size: 1.1rem;
	}
}

@media (max-width: 575.98px) {
	.blog-img-wrapper {
		height: 200px;
	}

	.blog-card-body {
		padding: 20px;
	}
}
