/* =========================================
   외부 래퍼 & 컨테이너 (최대 1200px, 중앙 정렬)
   ========================================= */
.hla-outer-wrap {
	width: 100%;
	background: transparent;
}

.hla-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	/* PC: 좌우 여백 */
	padding-left: 40px;
	padding-right: 40px;
}

/* 태블릿 */
@media (max-width: 1024px) {
	.hla-container {
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* 모바일 */
@media (max-width: 768px) {
	.hla-container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* =========================================
   공통 스타일 & 리셋
   ========================================= */
.home-section {
	margin-bottom: 0;
	padding-bottom: 20px;
}

.home-section a {
	color: #111;
	text-decoration: none;
	transition: color 0.2s;
}

.home-section a:hover {
	color: #0056b3;
}

/* =========================================
   구분선 (Separator) 스타일
   ========================================= */
hr.section-separator {
	border: 0;
	margin: 0 0 30px 0;
	width: 100%;
	opacity: 1;
}

hr.section-separator.thick {
	border-top: 7px solid #000;
	margin-top: 40px;
	margin-bottom: 40px;
}

hr.section-separator.thin {
	border-top: 1px solid #ddd;
	margin-top: 20px;
	margin-bottom: 40px;
}

/* =========================================
   섹션 타이틀 (155px 포인트 적용)
   ========================================= */
.section-title {
	font-size: 24px;
	font-weight: 800;
	color: #000;
	margin-bottom: 30px;
	padding-bottom: 12px;
	line-height: 1;
	position: relative;
	border-bottom: 1px solid #e0e0e0;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 155px;
	height: 3px;
	background-color: #000;
}

/* =========================================
   이미지 공통 (16:9 비율) + 그림자 효과
   ========================================= */
.post-thumbnail {
	position: relative;
	display: block;
	border-radius: 4px;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
	transition: filter 0.3s ease;
}

.thumbnail-inner {
	display: block;
	border-radius: 4px;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.post-thumbnail:hover {
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
}

.post-thumbnail:hover img {
	transform: scale(1.05) translateZ(0);
}

.entry-meta {
	font-size: 13px;
	color: #888;
	margin-top: 8px;
	font-weight: 400;
}

/* =========================================
   요약글 공통 스타일 (2줄 제한)
   ========================================= */
.entry-summary {
	display: block;
	overflow: hidden;
}

.entry-summary .excerpt-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* =========================================
   더 보기 (Read More) 스타일
   ========================================= */
.read-more-link {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: #878787;
	font-weight: 600;
	transition: color 0.2s;
}

.read-more-link:hover {
	color: #555 !important;
	text-decoration: none;
}

/* =========================================
   SECTION 1: 최신 글
   ========================================= */
.latest-grid-container {
	display: grid;
	grid-template-columns: 55% 1fr;
	gap: 40px;
}

.latest-main-post {
	position: relative;
}

.latest-main-post::after {
	content: '';
	position: absolute;
	right: -20px;
	top: 0;
	height: 100%;
	border-right: 1px solid #e0e0e0;
}

.latest-main-post .post-thumbnail {
	margin-bottom: 20px;
}

.latest-main-post h3 {
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 12px;
	color: #000;
	word-break: keep-all;
}

.latest-main-post .entry-summary {
	font-size: 16px;
	color: #444;
	line-height: 1.6;
	margin-top: 10px;
}

.latest-sub-posts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
	row-gap: 30px;
}

.sub-post-item .post-thumbnail {
	margin-bottom: 12px;
}

.sub-post-item h4 {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	color: #333;
	word-break: keep-all;
}

.sub-post-item .entry-summary {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-top: 10px;
}

/* =========================================
   SECTIONS 2~N: 카테고리 그리드
   ========================================= */
.cat-grid {
	display: grid;
	gap: 30px;
	row-gap: 45px;
}

.cat-grid.col-3 {
	grid-template-columns: repeat(3, 1fr);
}

.cat-grid.col-4 {
	grid-template-columns: repeat(4, 1fr);
}

.cat-post-item .post-thumbnail {
	margin-bottom: 15px;
}

.cat-grid.col-3 .cat-post-item h4 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 8px;
	color: #111;
	word-break: keep-all;
}

.cat-grid.col-4 .cat-post-item h4 {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 8px;
	color: #111;
	word-break: keep-all;
}

.cat-post-item .entry-summary {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-top: 10px;
}

/* =========================================
   모바일 반응형 (768px 이하)
   ========================================= */
@media (max-width: 768px) {
	.home-section {
		padding-bottom: 10px;
	}

	.latest-main-post::after {
		display: none;
	}

	hr.section-separator.thick {
		margin-top: 30px;
		margin-bottom: 30px;
		border-top-width: 5px;
	}

	.section-title {
		font-size: 20px;
	}

	.latest-grid-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.latest-sub-posts {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.latest-main-post h3 {
		font-size: 22px;
	}

	.cat-grid.col-3,
	.cat-grid.col-4 {
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column;
		gap: 25px;
	}

	.sub-post-item,
	.cat-post-item {
		display: flex;
		flex-direction: row;
		gap: 15px;
		align-items: flex-start;
		border-bottom: 1px solid #eee;
		padding-bottom: 15px;
	}

	.sub-post-item:last-child,
	.cat-post-item:last-child {
		border-bottom: none;
	}

	.sub-post-item .post-thumbnail,
	.cat-post-item .post-thumbnail {
		width: 120px;
		flex-shrink: 0;
		margin-bottom: 0;
	}

	.sub-post-item .post-thumbnail img,
	.cat-post-item .post-thumbnail img {
		aspect-ratio: 16 / 9;
		height: 100%;
	}

	.sub-post-item h4,
	.cat-grid.col-3 .cat-post-item h4,
	.cat-grid.col-4 .cat-post-item h4 {
		font-size: 16px;
		margin-bottom: 4px;
	}

	.sub-post-item .entry-summary,
	.cat-post-item .entry-summary {
		font-size: 13px;
		line-height: 1.4;
		margin-top: 5px;
	}

	.read-more-link {
		margin-top: 5px;
		font-size: 12px;
	}
}
