/* =============================================================================
   Kitchen Tips – Category / Taxonomy Archive Page
   File: css/tmk-kitchen-tips-taxonomy.css
   ============================================================================= */

/* =============================================================================
   Hero Banner
   ============================================================================= */

.ktc-hero {
	position: relative;
	min-height: 240px;
	display: flex;
	align-items: center;
	background-color: #2a3a2e;
	background-position: center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}

.ktc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(20, 30, 22, 0.88) 0%,
		rgba(20, 30, 22, 0.52) 55%,
		rgba(20, 30, 22, 0.18) 100%
	);
	z-index: 0;
}

.ktc-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 30px;
	padding-bottom: 30px;
}

/* Breadcrumb */
.ktc-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	margin-bottom: 16px;
	color: rgba(255,255,255,0.72);
}

.ktc-breadcrumb a {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	transition: color 0.2s;
}

.ktc-breadcrumb a:hover {
	color: #ffd0a8;
}

.ktc-breadcrumb span:last-child {
	color: #fff;
	font-weight: 500;
}

/* Category icon pill */
.ktc-hero__cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--orange, #f36b21);
	border-radius: 12px;
	font-size: 22px;
	color: #fff;
	margin-bottom: 12px;
}

/* Title */
.ktc-hero__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 34px;
	line-height: 1.2;
	max-width: 650px;
	font-family: var(--font-heading, 'Poppins', sans-serif);
}

/* Description */
.ktc-hero__desc {
	margin: 0 0 14px;
	color: rgba(255,255,255,0.88);
	font-size: 14px;
	line-height: 1.65;
	max-width: 580px;
}

/* Meta row */
.ktc-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	font-size: 13px;
	color: rgba(255,255,255,0.78);
}

.ktc-hero__meta i {
	margin-right: 5px;
	font-size: 12px;
	color: var(--orange, #f36b21);
}

/* =============================================================================
   Category Filter Tabs Bar
   ============================================================================= */

.ktc-filter-bar {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	padding: 14px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ktc-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ktc-filter-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1.5px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-decoration: none;
	color: #444;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	white-space: nowrap;
	font-family: inherit;
}

.ktc-filter-tab:hover {
	border-color: var(--green-dark, #347d35);
	background: rgba(52,125,53,0.07);
	color: var(--green-dark, #347d35);
}

.ktc-filter-tab.is-active {
	background: rgba(52,125,53,0.1);
	border-color: var(--green-dark, #347d35);
	color: var(--green-dark, #347d35);
	font-weight: 600;
}

.ktc-filter-tab__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

.ktc-filter-tab.is-active .ktc-filter-tab__icon {
	color: var(--green-dark, #347d35);
}

.ktc-filter-tab__name {
	font-size: 13px;
	line-height: 1.2;
}

.ktc-filter-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 18px;
	padding: 0 5px;
	background: #f0f0f0;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	color: #666;
	line-height: 1;
}

.ktc-filter-tab.is-active .ktc-filter-tab__count {
	background: var(--green-dark, #347d35);
	color: #fff;
}

/* =============================================================================
   Two-Column Layout
   ============================================================================= */

.ktc-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	align-items: start;
	padding-top: 32px;
	padding-bottom: 48px;
}

/* =============================================================================
   Content Column
   ============================================================================= */

.ktc-content-col {
	min-width: 0;
}

/* Grid header */
.ktc-grid-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.ktc-grid-header__left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ktc-grid-title {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	font-family: var(--font-heading, 'Poppins', sans-serif);
}

.ktc-grid-count {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* Tips grid – reuses .kt-tips-grid from tmk-kitchen-tips.css */
.ktc-tips-grid {
	grid-template-columns: repeat(3, 1fr);
}

/* No results back button */
.ktc-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 18px;
	background: var(--orange, #f36b21);
	color: #fff;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.ktc-back-btn:hover {
	background: var(--orange-dark, #df5912);
}

/* =============================================================================
   Pagination
   ============================================================================= */

.ktc-pagination-wrapper {
	margin-top: 32px;
}

.ktc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.ktc-pagination .ktc-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	color: #444;
	text-decoration: none;
	transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.ktc-pagination .ktc-page-btn:hover {
	background: #fff8f4;
	border-color: var(--orange, #f36b21);
	color: var(--orange, #f36b21);
}

.ktc-pagination .ktc-page-btn.current {
	background: var(--orange, #f36b21);
	border-color: var(--orange, #f36b21);
	color: #fff;
	font-weight: 700;
	pointer-events: none;
}

.ktc-pagination .ktc-page-btn.dots {
	border: none;
	background: transparent;
	color: #aaa;
	pointer-events: none;
	cursor: default;
}

/* =============================================================================
   Sidebar – Categories Widget (taxonomy-specific)
   ============================================================================= */

.ktc-sidebar {
	position: sticky;
	top: 70px;
}

.ktc-sidebar-cats-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ktc-sidebar-cat-item + .ktc-sidebar-cat-item {
	border-top: 1px solid #efefed;
}

.ktc-sidebar-cat-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 4px;
	text-decoration: none;
	color: #374151;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.18s;
}

.ktc-sidebar-cat-item a:hover,
.ktc-sidebar-cat-item.is-active a {
	color: var(--orange, #f36b21);
}

.ktc-sidebar-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(52, 125, 53, 0.1);
	border-radius: 7px;
	color: var(--green-dark, #347d35);
	font-size: 13px;
	flex-shrink: 0;
}

.ktc-sidebar-cat-item.is-active .ktc-sidebar-cat-icon {
	background: var(--orange, #f36b21);
	color: #fff;
}

.ktc-sidebar-cat-name {
	flex: 1;
}

.ktc-sidebar-cat-count {
	padding: 2px 8px;
	border-radius: 12px;
	background: #f3f4f6;
	color: #6b7280;
	font-size: 11px;
	font-weight: 600;
	flex-shrink: 0;
}

.ktc-sidebar-cat-item.is-active .ktc-sidebar-cat-count {
	background: rgba(243,107,33,0.12);
	color: var(--orange, #f36b21);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 1100px) {
	.ktc-layout {
		grid-template-columns: 1fr 290px;
		gap: 28px;
	}
}

@media (max-width: 900px) {
	.ktc-layout {
		grid-template-columns: 1fr;
	}

	.ktc-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.ktc-tips-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.ktc-filter-bar {
		position: static;
	}

	.ktc-filter-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.ktc-filter-tabs::-webkit-scrollbar {
		display: none;
	}

	.ktc-filter-tab {
		flex-shrink: 0;
	}

	.ktc-hero__title {
		font-size: 26px;
	}

	.ktc-layout {
		padding-top: 24px;
		padding-bottom: 32px;
	}
}

@media (max-width: 580px) {
	.ktc-hero {
		min-height: 210px;
	}

	.ktc-hero__title {
		font-size: 22px;
	}

	.ktc-tips-grid {
		grid-template-columns: 1fr;
	}

	.ktc-sidebar {
		grid-template-columns: 1fr;
	}
}
