/* ============================================
   포스트 리스트 페이지 전용 스타일
   다른 페이지에 영향을 주지 않도록 .post-list-page wrapper로 격리
   ============================================ */

.post-list-page .post-card-grid {
	margin-bottom: 2rem;
}

/* 개별 카드 스타일 */
.post-list-page .post-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.post-list-page .post-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* 카드 이미지 영역 */
.post-list-page .post-card-image {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 비율 */
	overflow: hidden;
	background-color: #f5f5f5;
}

.post-list-page .post-card-image a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.post-list-page .post-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-list-page .post-card:hover .post-card-image img {
	transform: scale(1.05);
}

/* 카드 본문 영역 */
.post-list-page .post-card-body {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* 카드 제목 */
.post-list-page .post-card-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

.post-list-page .post-card-title a {
	color: #24221b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.post-list-page .post-card-title a:hover {
	color: #e36159;
}

/* 카드 설명 */
.post-list-page .post-card-description {
	color: #666;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 1rem;
	flex-grow: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* 카드 메타 정보 */
.post-list-page .post-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid #f0f0f0;
	margin-top: auto;
}

.post-list-page .post-date {
	color: #999;
	font-size: 0.85rem;
}

.post-list-page .post-date i {
	margin-right: 0.3rem;
}

/* 오렌지색 태그 뱃지 */
.post-list-page .post-tag-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: #f7b306;
	color: #fff;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.post-list-page .post-tag-badge a {
	color: #fff;
	text-decoration: none;
}

.post-list-page .post-tag-badge a:hover {
	color: #fff;
}

/* 반응형 처리 */
@media (max-width: 767px) {
	.post-list-page .post-card-title {
		font-size: 1.1rem;
	}

	.post-list-page .post-card-description {
		font-size: 0.85rem;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.post-list-page .post-card-body {
		padding: 1.25rem;
	}
}

/* 태블릿 사이즈 */
@media (min-width: 768px) and (max-width: 991px) {
	.post-list-page .post-card-title {
		font-size: 1.15rem;
	}
}

/* ============================================
   사이드바 스타일
   ============================================ */

.post-list-page .blog-sidebar {
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow: visible;
}

/* 사이드바 위젯 공통 */
.post-list-page .sidebar-widget {
	background: #fff;
	border-radius: 8px;
	padding: 0.25rem 0.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: visible;
}

.post-list-page .sidebar-widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #f0f0f0;
	color: #24221b;
}

/* 검색 위젯 */
.post-list-page .sidebar-search {
	padding: 1.5rem !important;
}

.post-list-page .search-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.post-list-page .search-header-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #24221b;
	margin: 0;
	order: 2;
}

.post-list-page .search-header-icon {
	font-size: 1rem;
	color: #24221b;
	order: 1;
}

.post-list-page .search-form-group {
	display: flex;
	gap: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background-color: #fff;
}

.post-list-page .search-form-input {
	flex: 1;
	border: none;
	padding: 0.625rem 0.875rem;
	font-size: 0.9rem;
	outline: none;
	background-color: #fff;
}

.post-list-page .search-form-input:focus {
	outline: none;
}

.post-list-page .search-form-button {
	background-color: #f7b306;
	border: none;
	padding: 0.625rem 1.25rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.post-list-page .search-form-button i {
	color: #fff;
	font-size: 0.95rem;
}

.post-list-page .search-form-button:hover {
	background-color: #f57c00;
}

.post-list-page .author-profile {
	text-align: left;
}

.post-list-page .author-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.post-list-page .author-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.post-list-page .author-info {
	flex-grow: 1;
}

.post-list-page .author-name {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
	color: #24221b;
}

.post-list-page .author-role {
	font-size: 0.8rem;
	color: #666;
	margin-bottom: 0;
}

.post-list-page .author-description {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #555;
	margin-bottom: 0.5rem;
	text-align: left;
}

.post-list-page .author-footer {
	font-size: 0.85rem;
	color: #999;
	margin-top: 0.5rem;
	margin-bottom: 0;
	text-align: left;
}

/* 인기 포스트 위젯 */
.post-list-page .popular-posts-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-list-page .popular-post-item {
	display: flex;
	align-items: flex-start;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.post-list-page .popular-post-item:last-child {
	border-bottom: none;
}

.post-list-page .popular-post-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background-color: #f7b306;
	color: #fff;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-right: 0.75rem;
}

.post-list-page .popular-post-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.post-list-page .popular-post-title {
	color: #24221b;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.25rem;
	transition: color 0.2s ease;
}

.post-list-page .popular-post-title:hover {
	color: #e36159;
}

.post-list-page .popular-post-date {
	font-size: 0.75rem;
	color: #999;
}

/* CTA 배너 위젯 */
.post-list-page .sidebar-cta {
	background: linear-gradient(135deg, #f59c40 0%, #efe9a0 100%) !important;
	padding: 2rem !important;
	overflow: visible !important;
}

.post-list-page .cta-banner {
	text-align: left;
	color: #fff;
}

.post-list-page .cta-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #fff;
	line-height: 1.6;
	word-break: keep-all;
	overflow: visible;
}

.post-list-page .cta-description {
	font-size: 0.85rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	color: #fff;
	opacity: 0.95;
}

.post-list-page .btn-cta {
	background-color: #fff;
	color: #f7b306;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 25px;
	font-weight: 700;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.post-list-page .btn-cta:hover {
	background-color: #fff;
	color: #f57c00;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-list-page .btn-cta i {
	margin-left: 0.5rem;
	transition: transform 0.3s ease;
}

.post-list-page .btn-cta:hover i {
	transform: translateX(4px);
}

/* 한줄팁 위젯 */
.post-list-page .tips-list {
	margin: 0;
}

.post-list-page .tip-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
}

.post-list-page .tip-item:last-child {
	border-bottom: none;
}

.post-list-page .tip-item a {
	color: #555;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 0.25rem;
	transition: color 0.2s ease;
}

.post-list-page .tip-item a:hover {
	color: #f7b306;
}

.post-list-page .tip-date {
	font-size: 0.75rem;
	color: #999;
}

.post-list-page .tip-highlight a {
	color: #f7b306;
	font-weight: 600;
}

.post-list-page .tip-highlight .tip-date {
	color: #f7b306;
}

/* 사이드바 반응형 */
@media (max-width: 991px) {
	.post-list-page .blog-sidebar {
		position: static;
		margin-top: 2rem;
	}

	.post-list-page .sidebar-widget {
		margin-bottom: 1rem;
	}
}

/* 모바일에서 카드 그리드 1열로 */
@media (max-width: 767px) {
	.post-list-page .post-card-grid .col-md-6 {
		max-width: 100%;
		flex: 0 0 100%;
	}
}

/* word-rotator 텍스트 잘림 방지 */
.word-rotator.slide .word-rotator-words {
	overflow: visible !important;
	padding: 0.1rem 0.5rem !important;
	border-radius: 0.5rem !important;
	width: fit-content !important;
	min-width: 0 !important;
	display: inline-block !important;
	vertical-align: baseline !important;
}

.word-rotator.slide .word-rotator-words.bg-primary {
	background-color: #f7b306 !important;
}

.word-rotator.slide .word-rotator-words b {
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}
