/* KB Category Tabs — frontend styles.
   Most colors/spacing are overridden by Elementor controls; these are
   structural defaults so the widget looks correct out of the box. */

.kbct-wrap {
	width: 100%;
}

/* ---- Tab bar ---- */
.kbct-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px;
	padding: 0;
}

.kbct-tab {
	flex: 1 1 110px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 92px;
	padding: 22px 12px;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #333;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kbct-tab:hover {
	border-color: #E8631A;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.06 );
}

.kbct-tab:focus-visible {
	outline: 2px solid #E8631A;
	outline-offset: 2px;
}

.kbct-tab.is-active {
	background: #E8631A;
	border-color: #E8631A;
	color: #fff;
}

.kbct-tab__icon {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.kbct-tab__label {
	display: block;
}

/* ---- Posts grid ---- */
.kbct-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
}

.kbct-panel {
	position: relative;
	min-height: 80px;
	transition: opacity 0.2s ease;
}

.kbct-panel.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.kbct-empty {
	padding: 24px 0;
	color: #777;
}

/* ---- Card ---- */
.kbct-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.kbct-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.kbct-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kbct-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #ececec;
}

.kbct-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	background: #E8631A;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 3px;
}

.kbct-card__body {
	padding: 16px 4px 0;
}

.kbct-card__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
}

.kbct-card__title a {
	color: inherit;
	text-decoration: none;
}

.kbct-card__excerpt {
	margin: 0 0 14px;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

.kbct-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.kbct-card__date {
	color: #888;
}

.kbct-card__more {
	color: #E8631A;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* ---- Responsive defaults (overridden by Elementor responsive columns) ---- */
@media ( max-width: 1024px ) {
	.kbct-grid { grid-template-columns: repeat( 2, 1fr ); }
}

@media ( max-width: 600px ) {
	.kbct-grid { grid-template-columns: 1fr; }
	.kbct-tab { flex-basis: calc( 50% - 6px ); }
}
