/* Applications archive: card grid + pagination (scoped to avoid clashes) */

.app-archive-section .article-grid-wrapper {
	width: 100%;
	font-family: "Noto Sans SC", sans-serif;
	box-sizing: border-box;
}

.app-archive-section .article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 30px;
	row-gap: 30px;
	margin-bottom: 40px;
}

.app-archive-section .article-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	padding: 10px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	height: 100%;
}

.app-archive-section .article-card:hover {
	border-color: #f08200;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.app-archive-section .article-link {
	text-decoration: none !important;
	border: none !important;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.app-archive-section .article-thumb {
	width: 100%;
	aspect-ratio: 7 / 5;
	overflow: hidden;
	position: relative;
	border-radius: 2px;
	flex-shrink: 0;
}

.app-archive-section .article-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.app-archive-section .article-card:hover .article-thumb img {
	transform: scale(1.1);
}

.app-archive-section .article-date-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	z-index: 2;
	background-color: #f08200;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 2px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.app-archive-section .article-body {
	padding-top: 18px;
	padding-bottom: 5px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.app-archive-section .article-title {
	font-size: 18px;
	font-weight: 700;
	color: #333;
	margin: 0 0 12px 0;
	line-height: 1.4em;
	height: 2.8em;
	overflow: hidden;
	transition: color 0.3s;
}

.app-archive-section .article-card:hover .article-title {
	color: #f08200;
}

.app-archive-section .article-desc {
	font-size: 15px;
	color: #666;
	margin: 0 0 25px 0;
	line-height: 1.6em;
	height: 4.8em;
	overflow: hidden;
}

.app-archive-section .read-more-btn {
	margin-top: auto;
	display: inline-block;
	width: fit-content;
	padding: 10px 20px;
	background-color: #f08200;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none !important;
	transition: opacity 0.3s ease;
}

.app-archive-section .read-more-btn:hover {
	opacity: 0.75;
}

.app-archive-section .app-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: none;
	padding-top: 20px;
	margin-top: 10px;
}

.app-archive-section .app-page-links {
	display: flex;
	gap: 5px;
}

.app-archive-section .p-btn {
	width: 34px;
	height: 34px;
	background: #f5f5f5;
	color: #666;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none !important;
	border-radius: 4px;
	transition: background 0.3s, color 0.3s, opacity 0.3s;
	cursor: pointer;
	box-sizing: border-box;
}

.app-archive-section .p-btn:hover:not(.disabled) {
	background: #f08200;
	color: #fff;
}

.app-archive-section .p-btn.current {
	background: #f08200;
	color: #fff;
	cursor: default;
}

.app-archive-section .p-btn.disabled {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

.app-archive-section .app-total-text {
	color: #888;
	font-size: 14px;
	font-weight: 400;
}

.app-archive-section .app-empty {
	padding: 48px 20px;
	text-align: center;
	color: #888;
	font-size: 15px;
	border: 1px dashed #ddd;
	border-radius: 8px;
	background: #fafafa;
}

@media (max-width: 1500px) {
	.app-archive-section .article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.app-archive-section .article-grid {
		grid-template-columns: 1fr;
	}
}
