/**
 * Blog index — scoped to .sc2-blog (list page only).
 */
.sc2-blog {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
	background: #fff;
	border-radius: 15px;
	padding: 24px 20px 32px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sc2-blog a {
	color: #2563eb;
	text-decoration: none;
}

.sc2-blog a:hover {
	text-decoration: underline;
}

.sc2-blog__wrap {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.sc2-blog__h1 {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
	color: #111827;
}

/* Category pills */
.sc2-blog__filters {
	margin-bottom: 24px;
}

.sc2-blog__filters-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sc2-blog__filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sc2-blog__filter:hover {
	text-decoration: none;
	background: #f9fafb;
	border-color: #d1d5db;
}

.sc2-blog__filter--on {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1d4ed8;
}

.sc2-blog__filter-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.75;
}

.sc2-blog__more {
	position: relative;
}

.sc2-blog__more-toggle {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	cursor: pointer;
	font-family: inherit;
}

.sc2-blog__more-toggle:hover {
	background: #f9fafb;
}

.sc2-blog__more-toggle::after {
	content: "";
	border: solid #6b7280;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	margin-left: 2px;
	transform: rotate(45deg);
	vertical-align: middle;
}

.sc2-blog__more-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	min-width: 180px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	padding: 6px;
}

.sc2-blog__more--open .sc2-blog__more-menu {
	display: block;
}

.sc2-blog__more-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.sc2-blog__more-menu a:hover {
	background: #f3f4f6;
	text-decoration: none;
	color: #111827;
}

.sc2-blog__more-menu a.sc2-blog__filter--on {
	background: #eff6ff;
	color: #1d4ed8;
}

/* Two columns */
.sc2-blog__grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

@media (min-width: 1024px) {
	.sc2-blog__grid {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}

	.sc2-blog__main {
		flex: 1;
		min-width: 0;
	}

	.sc2-blog__aside {
		flex: 0 0 300px;
		width: 300px;
		position: sticky;
		top: 20px;
		max-height: calc(100vh - 40px);
		overflow-y: auto;
	}
}

/* Article list */
.sc2-blog__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc2-blog__item {
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid #e5e7eb;
}

.sc2-blog__item:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.sc2-blog__tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	padding: 2px 8px;
	border-radius: 5px;
	background: #e8f0fe;
	color: #4b5563;
	margin-bottom: 10px;
}

.sc2-blog__tag:hover {
	background: #dbeafe;
	color: #1d4ed8;
	text-decoration: none;
}

.sc2-blog__item-title {
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 14px;
	letter-spacing: -0.02em;
}

.sc2-blog__item-title a {
	color: #111827;
	text-decoration: none;
}

.sc2-blog__item-title a:hover {
	color: #2563eb;
	text-decoration: none;
}

.sc2-blog__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 14px;
	color: #6b7280;
}

.sc2-blog__meta-date {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sc2-blog__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #374151;
	font-weight: 700;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sc2-blog__avatar--img {
	display: block;
	object-fit: cover;
	padding: 0;
}

.sc2-blog__author-name {
	font-weight: 600;
	color: #111827;
}

.sc2-blog__thumb {
	margin-bottom: 16px;
	border-radius: 10px;
	overflow: hidden;
	background: #e5e7eb;
	line-height: 0;
}

.sc2-blog__thumb a {
	display: block;
}

.sc2-blog__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.sc2-blog__excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: #4b5563;
	margin: 0 0 16px;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	max-width: 100%;
}

.sc2-blog__read {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #2563eb;
}

.sc2-blog__read:hover {
	color: #1d4ed8;
}

.sc2-blog__read::after {
	content: "›";
	font-size: 18px;
	line-height: 1;
}

.sc2-blog__load {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	text-align: center;
	color: #4b5563;
	background: #e8f4fc;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
}

.sc2-blog__load:hover {
	background: #dbeafe;
	text-decoration: none;
	color: #1e40af;
}

.sc2-blog__empty {
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 14px;
	padding: 44px 22px;
	text-align: center;
	color: #6b7280;
}

.sc2-blog__empty a {
	color: #2563eb;
	font-weight: 600;
}

/* Sidebar */
.sc2-blog__search {
	margin-bottom: 24px;
}

.sc2-blog__search-label {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}

.sc2-blog__search-form {
	display: flex;
	align-items: stretch;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.sc2-blog__search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
}

.sc2-blog__search-btn {
	appearance: none;
	border: 0;
	border-left: 1px solid #e5e7eb;
	background: #fff;
	padding: 0 14px;
	cursor: pointer;
	color: #6b7280;
}

.sc2-blog__search-btn:hover {
	background: #f9fafb;
	color: #111827;
}

.sc2-blog__archive {
	border-top: 1px solid #e5e7eb;
	padding-top: 8px;
}

.sc2-blog__year {
	border-bottom: 1px solid #e5e7eb;
}

.sc2-blog__year-btn {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 4px;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}

.sc2-blog__year-btn::after {
	content: "";
	border: solid #6b7280;
	border-width: 0 2px 2px 0;
	padding: 4px;
	transform: rotate(45deg);
	transition: transform 0.15s;
	flex-shrink: 0;
}

.sc2-blog__year--open .sc2-blog__year-btn::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.sc2-blog__year-list {
	list-style: none;
	margin: 0;
	padding: 0 0 12px 0;
	display: none;
}

.sc2-blog__year--open .sc2-blog__year-list {
	display: block;
}

.sc2-blog__year-list a {
	display: block;
	padding: 6px 4px;
	font-size: 14px;
	line-height: 1.4;
	color: #4b5563;
}

.sc2-blog__year-list a:hover {
	color: #2563eb;
}
