:root {
	--primary-color: #336699;
	--secondary-color: #4d4bab;
	--accent-color: #aaccee;
	--text-color: #1c272d;
	--background-color: #eef4fb;
	--card-background: rgba(255, 255, 255, 0.35);
	--card-border: rgba(170, 204, 238, 0.5);
	--card-hover-background: rgba(204, 224, 245, 0.35);
	--border-radius: 8px;
	--box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	--blur-value: 8px;
	--transition-duration: 0.2s;
}

body {
	font-family: sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background-color: var(--background-color);
}

header {
	background-color: var(--secondary-color);
	color: white;
	padding: 1rem;
	height: 10vh;
	text-align: center;
}

nav {
	background-color: var(--primary-color);
	padding: 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

nav .nav-links {
	margin-left: 20px;
	display: flex;
	gap: 1rem;
}

nav a {
	color: white;
	text-decoration: none;
}

nav .search-box {
	padding: 10px;
	margin-left: auto;
	margin-right: 20px;
}

nav .search-box input[type="text"] {
	padding: 0.3rem;
	border-radius: 4px;
	border: none;
}

#content-wrapper {
	flex: 1;
	display: flex;
	width: 100%;
	gap: 24px;
	overflow: hidden;
}

main {
	flex: 1;
	flex-grow: 1;
	flex-shrink: 1;
    min-width: 800px;
	padding: 2rem;
	overflow-y: auto;
	background: white;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.article-grid article {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
	transition: transform var(--transition-duration);
}

.article-grid article:hover {
	transform: scale(1.03);
}

.article-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.article-content {
	padding: 12px 16px;
}

.article-content h2 {
	margin: 0.5em 0 0.3em;
	font-size: 1rem;
}

.meta-row {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.meta-row a {
	color: var(--primary-color);
	text-decoration: none;
}

.meta-row a:hover {
	text-decoration: underline;
}

.posted-date {
	padding: 12px 16px;
	font-size: 0.8rem;
	color: #555;
	background-color: #f0f0f0;
	text-align: right;
	margin-top: auto;
}

@media (max-width: 900px) {
	.article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.article-grid {
		grid-template-columns: 1fr;
	}
}

/* �L���ڍ� */

.article-header {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 1.5rem;
}

.thumbnail-image {
	width: 300px;
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.article-meta-info p {
	margin: 0.5rem 0;
	font-size: 0.9rem;
}

.article-meta-info a {
	color: var(--primary-color);
	text-decoration: none;
}

.article-meta-info a:hover {
	text-decoration: underline;
}

.article-body {
	line-height: 1.8;
	font-size: 1rem;
	color: #333;
}

.article-images {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1rem;
}

.image-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
	padding: 0.5rem;
}

.image-item img {
	width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	object-fit: cover;
}

.image-caption {
	font-size: 0.85rem;
	color: #666;
	text-align: center;
	margin-top: 0.5rem;
}

footer {
	text-align: center;
	padding: 1rem;
	background-color: var(--secondary-color);
	font-size: 0.9rem;
	color: #eee;
}

.next-page-link {
	text-align: center;
	margin-top: 2rem;
}

.next-page-link a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 4px;
}
