/* ==========================================================================
   Borom Board — Base Design Tokens & Common Components (Zero-jQuery)
   Semantic Colors:
   - Success: #10b981 / #065f46 / #ecfdf5
   - Error/Fail/Alert: #ef4444 / #991b1b / #fef2f2
   - Warn: #f59e0b / #92400e / #fffbeb
   - Primary/Info: #2563eb / #1e40af / #eff6ff
   ========================================================================== */

:root {
	--bb-primary: #2563eb;
	--bb-primary-hover: #1d4ed8;
	--bb-primary-soft: #eff6ff;
	--bb-text-main: #0f172a;
	--bb-text-sub: #475569;
	--bb-text-muted: #64748b;
	--bb-bg-surface: #ffffff;
	--bb-bg-subtle: #f8fafc;
	--bb-border: #e2e8f0;
	--bb-border-strong: #cbd5e1;
	--bb-radius: 10px;
	--bb-radius-sm: 6px;
	--bb-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--bb-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

	/* Semantic Status Tokens */
	--bb-success: #10b981;
	--bb-success-text: #065f46;
	--bb-success-bg: #ecfdf5;
	--bb-success-border: #a7f3d0;

	--bb-danger: #ef4444;
	--bb-danger-text: #991b1b;
	--bb-danger-bg: #fef2f2;
	--bb-danger-border: #fecaca;

	--bb-warn: #f59e0b;
	--bb-warn-text: #92400e;
	--bb-warn-bg: #fffbeb;
	--bb-warn-border: #fde68a;
}

.bb-board-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 48px;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	color: var(--bb-text-main);
	box-sizing: border-box;
}

.bb-board-wrap *,
.bb-board-wrap *::before,
.bb-board-wrap *::after {
	box-sizing: border-box;
}

/* Header & Title Bar */
.bb-board-head {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--bb-text-main);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
}

.bb-board-head__title {
	font-size: 26px;
	font-weight: 800;
	margin: 0;
	color: var(--bb-text-main);
	letter-spacing: -0.02em;
}

.bb-board-head__desc {
	font-size: 14.5px;
	color: var(--bb-text-sub);
	margin: 6px 0 0;
}

/* Semantic Alerts */
.bb-alert {
	padding: 12px 16px;
	border-radius: var(--bb-radius-sm);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bb-alert--success {
	background: var(--bb-success-bg);
	color: var(--bb-success-text);
	border: 1px solid var(--bb-success-border);
}

.bb-alert--error {
	background: var(--bb-danger-bg);
	color: var(--bb-danger-text);
	border: 1px solid var(--bb-danger-border);
}

.bb-alert--warn {
	background: var(--bb-warn-bg);
	color: var(--bb-warn-text);
	border: 1px solid var(--bb-warn-border);
}

/* Semantic Badges */
.bb-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.3;
	white-space: nowrap;
}

.bb-badge--notice {
	background: var(--bb-danger-bg);
	color: var(--bb-danger-text);
	border: 1px solid var(--bb-danger-border);
}

.bb-badge--success,
.bb-badge--resolved,
.bb-badge--active {
	background: var(--bb-success-bg);
	color: var(--bb-success-text);
	border: 1px solid var(--bb-success-border);
}

.bb-badge--warn,
.bb-badge--urgent,
.bb-badge--progress {
	background: var(--bb-warn-bg);
	color: var(--bb-warn-text);
	border: 1px solid var(--bb-warn-border);
}

.bb-badge--danger {
	background: var(--bb-danger-bg);
	color: var(--bb-danger-text);
	border: 1px solid var(--bb-danger-border);
}

.bb-badge--neutral,
.bb-badge--waiting,
.bb-badge--closed {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.bb-badge--primary {
	background: var(--bb-primary-soft);
	color: var(--bb-primary);
	border: 1px solid #bfdbfe;
}

.bb-badge--new {
	background: var(--bb-danger);
	color: #ffffff;
	padding: 1px 5px;
	font-size: 10px;
	border-radius: 4px;
}

/* Category Tabs */
.bb-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.bb-cat-tab {
	appearance: none;
	border: 1px solid var(--bb-border-strong);
	background: var(--bb-bg-surface);
	color: var(--bb-text-sub);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bb-cat-tab:hover {
	border-color: var(--bb-primary);
	color: var(--bb-primary);
}

.bb-cat-tab.is-active {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: #ffffff;
}

.bb-cat-tab__count {
	font-size: 11px;
	opacity: 0.85;
}

/* Toolbar: Search & Sort & View Toggle */
.bb-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 12px 16px;
	background: var(--bb-bg-subtle);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-sm);
}

.bb-toolbar__left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.bb-toolbar__meta {
	font-size: 13.5px;
	color: var(--bb-text-sub);
	white-space: nowrap;
}

.bb-toolbar__meta strong {
	color: var(--bb-primary);
	font-weight: 700;
}

.bb-toolbar__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.bb-search-box {
	display: flex;
	align-items: center;
	background: var(--bb-bg-surface);
	border: 1px solid var(--bb-border-strong);
	border-radius: var(--bb-radius-sm);
	overflow: hidden;
}

.bb-search-input {
	border: none !important;
	padding: 8px 12px !important;
	font-size: 13.5px !important;
	min-width: 210px;
	width: auto !important;
	outline: none !important;
	background: transparent !important;
}

.bb-search-btn {
	border: none;
	background: var(--bb-text-main);
	color: #ffffff;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.bb-sort-select {
	width: auto !important;
	min-width: 105px;
	max-width: 140px;
	height: 36px !important;
	padding: 0 28px 0 12px !important;
	border: 1px solid var(--bb-border-strong) !important;
	border-radius: var(--bb-radius-sm) !important;
	background-color: var(--bb-bg-surface) !important;
	font-size: 13px !important;
	font-weight: 600;
	color: var(--bb-text-main) !important;
	cursor: pointer;
}

.bb-view-toggle {
	display: inline-flex;
	border: 1px solid var(--bb-border-strong);
	border-radius: var(--bb-radius-sm);
	overflow: hidden;
	background: var(--bb-bg-surface);
}

.bb-view-btn {
	border: none;
	background: transparent;
	padding: 6px 10px;
	cursor: pointer;
	color: var(--bb-text-muted);
	font-size: 13px;
	font-weight: 600;
}

.bb-view-btn.is-active {
	background: var(--bb-primary);
	color: #ffffff;
}

/* Buttons */
.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--bb-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.15s ease;
	line-height: 1.3;
}

.bb-btn--primary {
	background: var(--bb-primary);
	color: #ffffff !important;
}

.bb-btn--primary:hover {
	background: var(--bb-primary-hover);
}

.bb-btn--success {
	background: var(--bb-success);
	color: #ffffff !important;
}

.bb-btn--danger {
	background: var(--bb-danger-bg);
	color: var(--bb-danger-text) !important;
	border-color: var(--bb-danger-border);
}

.bb-btn--outline {
	background: var(--bb-bg-surface);
	color: var(--bb-text-sub) !important;
	border-color: var(--bb-border-strong);
}

.bb-btn--outline:hover {
	border-color: var(--bb-text-main);
	color: var(--bb-text-main) !important;
}

.bb-btn--xs {
	padding: 3px 8px;
	font-size: 11.5px;
	font-weight: 600;
}

/* Footer Bar & Pagination / Load More */
.bb-board-foot {
	margin-top: 22px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bb-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 24px auto 0;
}

.bb-page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--bb-border-strong);
	background: var(--bb-bg-surface);
	color: var(--bb-text-sub);
	border-radius: var(--bb-radius-sm);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.bb-page-btn.is-active {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: #ffffff;
}

.bb-load-more-wrap {
	text-align: center;
	margin-top: 24px;
}

.bb-empty-state {
	padding: 56px 20px;
	text-align: center;
	background: var(--bb-bg-subtle);
	border: 1px dashed var(--bb-border-strong);
	border-radius: var(--bb-radius);
	color: var(--bb-text-muted);
}

/* Inline / Modal Write Editor */
.bb-write-panel {
	background: var(--bb-bg-surface);
	border: 1px solid var(--bb-border-strong);
	border-radius: var(--bb-radius);
	padding: 24px;
	margin-top: 16px;
	box-shadow: var(--bb-shadow-sm);
}

.bb-write-panel.is-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	margin: 0;
	border-radius: 0;
}

.bb-write-panel.is-modal .bb-write-panel__inner {
	background: var(--bb-bg-surface);
	width: 100%;
	max-width: 780px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: var(--bb-radius);
	padding: 28px;
	box-shadow: var(--bb-shadow-md);
}

.bb-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.bb-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.bb-form-field label {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--bb-text-main);
}

.bb-input,
.bb-select {
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--bb-border-strong) !important;
	border-radius: var(--bb-radius-sm) !important;
	font-size: 14px !important;
	background: #ffffff !important;
	color: var(--bb-text-main) !important;
	width: 100%;
	outline: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bb-input:focus,
.bb-select:focus {
	border-color: var(--bb-primary) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Dual Editor (Unified for Archive & Single) */
.bb-dual-editor {
	border: 1px solid var(--bb-border-strong) !important;
	border-radius: var(--bb-radius) !important;
	overflow: hidden;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bb-dual-editor:focus-within {
	border-color: var(--bb-primary) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bb-dual-editor__bar,
.bb-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: #f1f5f9;
	border-bottom: 1px solid var(--bb-border-strong);
	gap: 6px;
}

.bb-dual-editor__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}

.bb-tool-select {
	width: auto !important;
	min-width: 135px;
	height: 30px !important;
	padding: 0 24px 0 8px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background-color: #ffffff !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	color: var(--bb-text-main) !important;
	cursor: pointer;
	outline: none !important;
}

.bb-tool-select:hover,
.bb-tool-select:focus {
	border-color: var(--bb-primary) !important;
}

.bb-tool-divider {
	display: inline-block;
	width: 1px;
	height: 18px;
	background: #cbd5e1;
	margin: 0 2px;
}

.bb-tool-btn,
.bb-editor-tool {
	appearance: none;
	border: 1px solid #cbd5e1 !important;
	background: #ffffff !important;
	padding: 5px 10px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	color: var(--bb-text-main) !important;
	border-radius: 6px !important;
	cursor: pointer;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	transition: all 0.15s ease;
}

.bb-tool-btn:hover,
.bb-editor-tool:hover {
	background: var(--bb-primary-soft) !important;
	border-color: var(--bb-primary) !important;
	color: var(--bb-primary) !important;
}

.bb-dual-editor__visual,
.bb-editor-visual {
	min-height: 300px;
	max-height: 680px;
	overflow-y: auto;
	padding: 20px;
	outline: none !important;
	border: none !important;
	font-size: 15px;
	line-height: 1.75;
	color: var(--bb-text-main);
	background: #ffffff;
}

.bb-dual-editor__visual img,
.bb-editor-visual img,
.bb-single-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.bb-dual-editor__source,
.bb-editor-source {
	width: 100%;
	min-height: 300px;
	padding: 18px;
	border: none !important;
	outline: none !important;
	font-family: Consolas, Monaco, monospace;
	font-size: 13.5px;
	line-height: 1.65;
	background: #0f172a;
	color: #e2e8f0;
	resize: vertical;
}

/* Media / Thumbnail / Attachment Preview & Upload Card */
.bb-media-upload-card {
	background: #f8fafc;
	border: 1px solid var(--bb-border-strong);
	border-radius: var(--bb-radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bb-media-current {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	background: #ffffff;
	border: 1px solid var(--bb-border);
	border-radius: 6px;
}

.bb-media-current.is-marked-delete {
	background: var(--bb-danger-bg);
	border-color: var(--bb-danger-border);
	opacity: 0.75;
}

.bb-media-current__info {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.bb-media-current__thumb {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid var(--bb-border-strong);
	flex-shrink: 0;
	background: #f1f5f9;
}

.bb-media-current__meta {
	min-width: 0;
	flex: 1;
}

.bb-media-current__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	color: var(--bb-success-text);
	background: var(--bb-success-bg);
	border: 1px solid var(--bb-success-border);
	padding: 1px 6px;
	border-radius: 4px;
	margin-bottom: 2px;
}

.bb-media-current__name {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bb-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.bb-media-remove-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--bb-danger-bg);
	border: 1px solid var(--bb-danger-border);
	color: var(--bb-danger-text) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	cursor: pointer;
	white-space: nowrap;
	margin: 0 !important;
}

.bb-file-input {
	font-size: 13px !important;
	color: var(--bb-text-sub);
	width: 100%;
	padding: 6px 8px !important;
	background: #ffffff;
	border: 1px dashed var(--bb-border-strong);
	border-radius: 6px;
	cursor: pointer;
}

.bb-file-input::file-selector-button {
	margin-right: 10px;
	border: 1px solid var(--bb-border-strong);
	background: #f1f5f9;
	padding: 5px 12px;
	border-radius: 5px;
	color: var(--bb-text-main);
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.bb-file-input::file-selector-button:hover {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: #ffffff;
}

/* Single Post View & Comments */
.bb-single-card {
	background: var(--bb-bg-surface);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	padding: 28px;
}

.bb-single-head {
	border-bottom: 1px solid var(--bb-border);
	padding-bottom: 18px;
	margin-bottom: 24px;
}

.bb-single-title {
	font-size: 24px;
	font-weight: 800;
	margin: 10px 0 12px;
	line-height: 1.4;
}

.bb-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13.5px;
	color: var(--bb-text-muted);
}

.bb-single-body {
	font-size: 15.5px;
	line-height: 1.85;
	color: var(--bb-text-main);
	min-height: 160px;
	margin-bottom: 28px;
}

.bb-attachment-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--bb-bg-subtle);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-sm);
	margin-bottom: 24px;
}

.bb-comments-section {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid var(--bb-text-main);
}

.bb-comment-item {
	padding: 16px;
	border-bottom: 1px solid var(--bb-border);
	display: flex;
	gap: 14px;
}

.bb-comment-item.is-staff {
	background: #f0fdf4;
	border-left: 3px solid var(--bb-success);
}

.bb-comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bb-comment-main {
	flex: 1;
}

.bb-comment-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.bb-secret-masked {
	color: var(--bb-text-muted);
	font-style: italic;
	margin: 0;
}

/* Single View Social Share Bar (KBoard borom-default style) */
.bb-sns-share {
	margin: 36px 0 22px;
	padding: 20px 16px;
	border-top: 1px dashed var(--bb-border-strong);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.bb-sns-share__title {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--bb-text-sub);
	letter-spacing: -0.01em;
}

.bb-sns-share__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.bb-sns-share__list li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.bb-sns-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	padding: 0;
	box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

.bb-sns-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(15, 23, 42, 0.18);
}

.bb-sns-btn--kakao {
	background: #FEE500;
	color: #3C1E1E;
}

.bb-sns-btn--naver {
	background: #03C75A;
	color: #ffffff;
}

.bb-sns-btn--band {
	background: #00EE65;
	color: #002A19;
}

.bb-sns-btn--facebook {
	background: #1877F2;
	color: #ffffff;
}

.bb-sns-btn--x {
	background: #0f172a;
	color: #ffffff;
}

.bb-sns-btn--copy {
	background: #f1f5f9;
	color: #0f172a;
	border: 1px solid #cbd5e1;
}

.bb-sns-btn--sms {
	background: #ffcc00;
	color: #1e293b;
}

@media (max-width: 768px) {
	.bb-form-grid {
		grid-template-columns: 1fr;
	}
	.bb-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.bb-search-box {
		width: 100%;
	}
	.bb-search-input {
		flex: 1;
		min-width: 0;
	}
}

/* ==========================================================================
   Recent Posts Widget ([borom_recent]) Multi-Theme Styles
   Themes: list | card | swiper | hero-swiper | magazine
   ========================================================================== */
.bb-recent-widget {
	width: 100%;
	background: var(--bb-bg-surface);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	padding: 20px 22px;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	box-sizing: border-box;
}

.bb-recent-widget--hero-swiper {
	padding: 0;
	border: none;
	background: transparent;
}

.bb-recent-widget__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--bb-text-main);
}

.bb-recent-widget__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--bb-text-main);
	margin: 0;
}

.bb-recent-widget__more {
	font-size: 13px;
	font-weight: 700;
	color: var(--bb-text-muted);
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.bb-recent-widget__more:hover {
	color: var(--bb-primary);
}

.bb-recent-widget__empty {
	padding: 32px 16px;
	text-align: center;
	color: var(--bb-text-muted);
	font-size: 13.5px;
}

/* Theme 1: Simple List */
.bb-recent-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-recent-widget__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--bb-border);
}

.bb-recent-widget__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bb-recent-widget__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bb-text-main) !important;
	text-decoration: none !important;
	font-size: 14.5px;
	font-weight: 600;
	min-width: 0;
	flex: 1;
}

.bb-recent-widget__link:hover .bb-recent-widget__subject {
	color: var(--bb-primary);
	text-decoration: underline;
}

.bb-recent-widget__subject {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bb-recent-widget__date {
	font-size: 12.5px;
	color: var(--bb-text-muted);
	flex-shrink: 0;
}

/* Theme 2 & 3: Card Grid & Thumbnail Swiper (ㅁㅁㅁ) */
.bb-recent-cards {
	display: grid;
	grid-template-columns: repeat(var(--bb-recent-cols, 3), minmax(0, 1fr));
	gap: 16px;
}

.bb-recent-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-sm);
	overflow: hidden;
	text-decoration: none !important;
	color: var(--bb-text-main) !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	height: 100%;
}

.bb-recent-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bb-shadow-md);
	border-color: var(--bb-primary);
}

.bb-recent-card__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #f1f5f9;
	overflow: hidden;
}

.bb-recent-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.bb-recent-card:hover .bb-recent-card__thumb img {
	transform: scale(1.04);
}

.bb-recent-card__noimg {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eff6ff, #e2e8f0);
	color: #64748b;
	font-weight: 800;
	font-size: 15px;
}

.bb-recent-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
}

.bb-recent-card__body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.bb-recent-card__title {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--bb-text-main);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bb-recent-card__sub {
	font-size: 12.5px;
	color: var(--bb-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bb-recent-card__meta {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--bb-text-muted);
}

/* Swiper Carousel Track (ㅁㅁㅁ) */
.bb-recent-swiper {
	position: relative;
	width: 100%;
}

.bb-recent-swiper__viewport {
	overflow: hidden;
	width: 100%;
}

.bb-recent-swiper__track {
	display: flex;
	gap: 16px;
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.bb-recent-swiper__slide {
	flex: 0 0 calc((100% - (var(--bb-recent-cols, 3) - 1) * 16px) / var(--bb-recent-cols, 3));
	min-width: 0;
}

.bb-recent-swiper--hero .bb-recent-swiper__track {
	gap: 0;
}

.bb-recent-swiper--hero .bb-recent-swiper__slide {
	flex: 0 0 100%;
}

.bb-hero-slide-card {
	display: block;
	width: 100%;
	border-radius: var(--bb-radius);
	overflow: hidden;
	text-decoration: none !important;
}

.bb-hero-slide-card__img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.bb-hero-slide-card__fallback {
	padding: 48px 28px;
	background: linear-gradient(135deg, #1e293b, #0f172a);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bb-recent-swiper__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}

.bb-swiper-arrow {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--bb-border-strong);
	background: #ffffff;
	color: var(--bb-text-main);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.bb-swiper-arrow:hover {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: #ffffff;
}

.bb-swiper-dots {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bb-swiper-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: none;
	padding: 0;
	background: #cbd5e1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bb-swiper-dot.is-active {
	width: 22px;
	background: var(--bb-primary);
}

/* Theme 5: Mini Magazine */
.bb-recent-magazine {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bb-recent-mag-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bb-border);
	text-decoration: none !important;
	color: var(--bb-text-main) !important;
}

.bb-recent-mag-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bb-recent-mag-item__thumb {
	width: 88px;
	height: 64px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--bb-border);
}

.bb-recent-mag-item__content {
	min-width: 0;
	flex: 1;
}

.bb-recent-mag-item__title {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--bb-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 3px;
}

.bb-recent-mag-item:hover .bb-recent-mag-item__title {
	color: var(--bb-primary);
}

.bb-recent-mag-item__excerpt {
	font-size: 12.5px;
	color: var(--bb-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bb-recent-mag-item__date {
	font-size: 11.5px;
	color: var(--bb-text-muted);
	margin-top: 3px;
}

@media (max-width: 960px) {
	.bb-recent-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bb-recent-swiper__slide {
		flex: 0 0 calc((100% - 16px) / 2);
	}
	.bb-recent-swiper--hero .bb-recent-swiper__slide {
		flex: 0 0 100%;
	}
}

@media (max-width: 600px) {
	.bb-recent-cards {
		grid-template-columns: 1fr;
	}
	.bb-recent-swiper__slide {
		flex: 0 0 100%;
	}
}
