/*!
 * HostWebo Theme - Knowledge Base Styles
 * @package HostWebo
 * @version 1.0.0
 */

/* ===================================
   KNOWLEDGE BASE WRAPPER
   =================================== */

.hostwebo-kb-wrapper {
	background: linear-gradient(to bottom, #0f1027 0%, #111235 50%, #0b0c22 100%);
	padding: 2rem 0 4rem;
	overflow-x: hidden;
}

/* Prevent horizontal overflow on specific elements only */
.hostwebo-kb-wrapper img,
.hostwebo-kb-wrapper video,
.hostwebo-kb-wrapper iframe,
.hostwebo-kb-archive-wrapper img {
	height: auto;
	max-width: 100%;
}

.hostwebo-kb-wrapper pre,
.hostwebo-kb-wrapper table,
.kb-article-content pre,
.kb-article-content table {
	overflow-x: auto;
	max-width: 100%;
}

/* ===================================
   BREADCRUMB
   =================================== */

.kb-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
	font-size: 0.875rem;
	opacity: 0.7;
}

.kb-breadcrumb a {
	transition: opacity 0.2s ease;
}

.kb-breadcrumb a:hover {
	opacity: 1;
}

.kb-breadcrumb .separator {
	opacity: 0.5;
}

.kb-breadcrumb .current {
	opacity: 1;
	font-weight: 500;
}

/* ===================================
   CONTENT WRAPPER
   =================================== */

.kb-content-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.kb-content-wrapper {
		grid-template-columns: 280px 1fr;
	}
}

/* ===================================
   SIDEBAR
   =================================== */

.kb-sidebar {
	position: relative;
}

@media (min-width: 1024px) {
	.kb-sidebar {
		align-self: start; /* Ensures sticky works with grid layout */
	}

	.kb-sidebar-sticky {
		position: -webkit-sticky; /* Safari support */
		position: sticky;
		top: 100px;
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding-right: 0.5rem;
	}

	/* Custom scrollbar for sticky sidebar */
	.kb-sidebar-sticky::-webkit-scrollbar {
		width: 6px;
	}

	.kb-sidebar-sticky::-webkit-scrollbar-track {
		background: rgba(255, 255, 255, 0.05);
		border-radius: 3px;
	}

	.kb-sidebar-sticky::-webkit-scrollbar-thumb {
		background: rgba(129, 140, 248, 0.3);
		border-radius: 3px;
	}

	.kb-sidebar-sticky::-webkit-scrollbar-thumb:hover {
		background: rgba(129, 140, 248, 0.5);
	}
}

.kb-sidebar-title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
	opacity: 0.7;
}

/* Table of Contents Wrapper */
.kb-toc-wrapper {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	padding: 1rem;
	margin-bottom: 0;
}

.kb-toc-wrapper .kb-sidebar-title {
	margin-bottom: 0.75rem;
}

/* Table of Contents */
.kb-toc {
	max-height: 400px;
	overflow-y: auto;
	padding-right: 0.5rem;
}

/* Custom scrollbar for TOC */
.kb-toc::-webkit-scrollbar {
	width: 6px;
}

.kb-toc::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 3px;
}

.kb-toc::-webkit-scrollbar-thumb {
	background: rgba(129, 140, 248, 0.3);
	border-radius: 3px;
}

.kb-toc::-webkit-scrollbar-thumb:hover {
	background: rgba(129, 140, 248, 0.5);
}

.kb-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kb-toc li {
	margin-bottom: 0.5rem;
}

.kb-toc a {
	display: block;
	font-size: 0.875rem;
	padding: 0.5rem;
	border-radius: 0.5rem;
	transition: all 0.2s ease;
	opacity: 0.7;
}

.kb-toc a:hover,
.kb-toc a.active {
	opacity: 1;
	background: rgba(81, 67, 217, 0.1);
	color: #818CF8;
}

/* Nested TOC items */
.kb-toc ul ul {
	padding-left: 1rem;
	margin-top: 0.25rem;
}

.kb-toc ul ul a {
	font-size: 0.8125rem;
}

/* Related Articles */
.kb-related {
	margin-bottom: 2rem;
}

.kb-related ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kb-related li {
	margin-bottom: 0.75rem;
}

.kb-related a {
	display: block;
	font-size: 0.875rem;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.kb-related a:hover {
	opacity: 1;
	color: #818CF8;
}

/* Back link */
.kb-back-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.875rem 1.25rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	transition: all 0.2s ease;
	text-decoration: none;
	color: #ffffff;
}

.kb-back-link:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #818CF8;
	color: #818CF8;
	transform: translateX(-4px);
}

.kb-back-link svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.kb-back-link:hover svg {
	transform: translateX(-2px);
}

/* ===================================
   MAIN CONTENT
   =================================== */

.kb-main-content {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 2rem;
	backdrop-filter: blur(40px);
	-webkit-backdrop-filter: blur(40px);
}

@media (min-width: 768px) {
	.kb-main-content {
		padding: 3rem;
	}
}

/* Header */
.kb-header {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-category {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #818CF8;
	background: rgba(129, 140, 248, 0.1);
	padding: 0.375rem 0.75rem;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
}

.kb-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.kb-title {
		font-size: 2.5rem;
	}
}

.kb-excerpt {
	font-size: 1.125rem;
	opacity: 0.8;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.kb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.875rem;
	opacity: 0.7;
}

.kb-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.kb-meta-item svg {
	flex-shrink: 0;
}

/* Article Content */
.kb-article-content {
	font-size: 1rem;
	line-height: 1.8;
	margin-bottom: 3rem;
}

.kb-article-content h2 {
	font-size: 1.75rem;
	font-weight: 600;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-article-content h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.kb-article-content h3 {
	font-size: 1.375rem;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.kb-article-content h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

.kb-article-content p {
	margin-bottom: 1.25rem;
}

.kb-article-content ul,
.kb-article-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.kb-article-content li {
	margin-bottom: 0.5rem;
}

.kb-article-content li strong {
	color: #818CF8;
}

.kb-article-content code {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.875em;
	font-family: 'Courier New', monospace;
}

.kb-article-content pre {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	padding: 1rem;
	overflow-x: auto;
	margin-bottom: 1.25rem;
}

.kb-article-content pre code {
	background: none;
	padding: 0;
}

.kb-article-content blockquote {
	border-left: 3px solid #818CF8;
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	opacity: 0.9;
	font-style: italic;
}

.kb-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 1.5rem 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.9375rem;
}

.kb-article-content table th,
.kb-article-content table td {
	padding: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
}

.kb-article-content table th {
	background: rgba(255, 255, 255, 0.05);
	font-weight: 600;
}

/* ===================================
   FEEDBACK SECTION
   =================================== */

.kb-feedback {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	padding: 2rem;
	margin-bottom: 2rem;
	text-align: center;
}

.kb-feedback h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.kb-feedback-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.kb-feedback-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.kb-feedback-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

.kb-feedback-btn svg {
	width: 20px;
	height: 20px;
}

.kb-feedback-btn.voted {
	background: rgba(129, 140, 248, 0.2);
	border-color: #818CF8;
}

.kb-feedback-message {
	margin-top: 1rem;
	font-size: 0.9375rem;
	color: #818CF8;
}

/* ===================================
   HELP CTA
   =================================== */

.kb-help-cta {
	background: linear-gradient(135deg, #5143D9 0%, #818CF8 100%);
	border-radius: 0.75rem;
	padding: 2rem;
	text-align: center;
}

.kb-help-cta h4 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.kb-help-cta p {
	opacity: 0.9;
	margin-bottom: 1.5rem;
}

.kb-help-cta .hostwebo-button-primary {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.kb-help-cta .hostwebo-button-primary:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   DOCUMENTATION PAGE (Archive)
   =================================== */

.hostwebo-documentation {
	padding: 2rem 0 4rem;
}

.doc-categories {
	margin-bottom: 4rem;
}

.doc-category-card {
	position: relative;
	transition: all 0.3s ease;
}

.doc-category-card:hover {
	transform: translateY(-4px);
}

.doc-category-card .hostwebo-card-title a {
	color: inherit;
	transition: color 0.2s ease;
}

.doc-category-card:hover .hostwebo-card-title a {
	color: #818CF8;
}

.doc-count {
	display: inline-block;
	font-size: 0.875rem;
	opacity: 0.6;
	margin-top: 1rem;
}

.recent-docs {
	margin-top: 3rem;
}

.recent-docs h2 {
	font-size: 1.875rem;
	font-weight: 600;
	margin-bottom: 2rem;
	text-align: center;
}

.doc-card {
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.doc-card:hover {
	transform: translateY(-4px);
}

.doc-card .hostwebo-card-title {
	margin-bottom: 0.75rem;
}

.doc-card .hostwebo-card-title a {
	color: inherit;
	transition: color 0.2s ease;
}

.doc-card:hover .hostwebo-card-title a {
	color: #818CF8;
}

.doc-card .hostwebo-card-text {
	flex-grow: 1;
	margin-bottom: 1rem;
}

.doc-card .read-more {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #818CF8;
	transition: all 0.2s ease;
}

.doc-card:hover .read-more {
	color: #ffffff;
	transform: translateX(4px);
}

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */

@media (max-width: 1023px) {
	.kb-sidebar {
		order: 2;
	}

	.kb-main-content {
		order: 1;
	}

	.kb-toc {
		margin-top: 2rem;
	}
}

@media (max-width: 767px) {
	.kb-main-content {
		padding: 1.5rem;
	}

	.kb-title {
		font-size: 1.75rem;
	}

	.kb-article-content h2 {
		font-size: 1.5rem;
	}

	.kb-article-content h3 {
		font-size: 1.25rem;
	}

	.kb-feedback-buttons {
		flex-direction: column;
	}

	.kb-feedback-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ===================================
   ARCHIVE PAGE STYLES
   =================================== */

/* Ensure footer is always visible in documentation pages */
body.post-type-archive-hostwebo_doc .hostwebo-footer,
body.tax-doc_category .hostwebo-footer,
body.single-hostwebo_doc .hostwebo-footer {
	position: relative !important;
	z-index: 1 !important;
	background: #0b0c22 !important;
	margin-top: 0 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Ensure site wrapper doesn't hide footer */
body.post-type-archive-hostwebo_doc .site,
body.tax-doc_category .site,
body.single-hostwebo_doc .site {
	overflow: visible;
}

.hostwebo-kb-archive-wrapper {
	background: linear-gradient(to bottom, #0f1027 0%, #111235 50%, #0b0c22 100%);
	padding: 2rem 0 4rem;
	/* Removed min-height to allow natural flow and footer visibility */
	overflow: visible;
}

/* Archive Header */
.kb-archive-header {
	text-align: center;
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back Button */
.kb-back-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	margin-bottom: 1.5rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.kb-back-button:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #818CF8;
	color: #818CF8;
	transform: translateX(-4px);
}

.kb-back-button svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.kb-back-button:hover svg {
	transform: translateX(-2px);
}

.kb-category-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(129, 140, 248, 0.1);
	color: #818CF8;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.kb-archive-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.kb-archive-title .search-term {
	color: #818CF8;
}

.kb-archive-description {
	font-size: 1.125rem;
	opacity: 0.8;
	max-width: 600px;
	margin: 0 auto;
}

/* Search and Filters */
.kb-search-filters-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 3rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
}

@media (min-width: 768px) {
	.kb-search-filters-wrapper {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}
}

/* Search Form */
.kb-search-form {
	flex: 1;
}

.kb-search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.kb-search-icon {
	position: absolute;
	left: 1rem;
	opacity: 0.5;
	pointer-events: none;
}

.kb-search-input {
	flex: 1;
	padding: 0.875rem 1rem 0.875rem 3rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	color: #ffffff;
	font-size: 1rem;
	transition: all 0.2s ease;
}

.kb-search-input:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.08);
	border-color: #818CF8;
	box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.kb-search-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.kb-search-submit {
	padding: 0.875rem 1.5rem;
	background: #818CF8;
	border: none;
	border-radius: 0.5rem;
	color: #ffffff;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.kb-search-submit:hover {
	background: #6366F1;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* Category Filters */
.kb-category-filters {
	position: relative;
	z-index: 100;
}

.kb-filter-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	color: #ffffff;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.kb-filter-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #818CF8;
}

.kb-filters-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 250px;
	max-height: 400px;
	overflow-y: auto;
	background: rgba(15, 16, 39, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	padding: 0.5rem;
	z-index: 1000;
	backdrop-filter: blur(40px);
	-webkit-backdrop-filter: blur(40px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Mostra il dropdown quando il toggle è attivo - Multiple selectors for maximum compatibility */
.kb-filter-toggle[aria-expanded="true"] + .kb-filters-dropdown,
.kb-filter-toggle[aria-expanded="true"] ~ .kb-filters-dropdown,
.kb-filter-toggle.is-open + .kb-filters-dropdown,
.kb-filter-toggle.is-open ~ .kb-filters-dropdown,
.kb-category-filters:has(.kb-filter-toggle[aria-expanded="true"]) .kb-filters-dropdown,
.kb-category-filters:has(.kb-filter-toggle.is-open) .kb-filters-dropdown {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

/* Fallback più specifico per browser che non supportano :has() */
.kb-category-filters .kb-filters-dropdown[style*="display: block"],
.kb-category-filters .kb-filters-dropdown[style*="display:block"] {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

/* Additional fallback for JavaScript-controlled display */
.kb-category-filters.filter-open .kb-filters-dropdown {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

.kb-filter-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
	opacity: 0.8;
}

.kb-filter-item:hover {
	background: rgba(255, 255, 255, 0.05);
	opacity: 1;
}

.kb-filter-item.active {
	background: rgba(129, 140, 248, 0.1);
	color: #818CF8;
	opacity: 1;
	font-weight: 500;
}

.kb-filter-item .count {
	font-size: 0.8125rem;
	opacity: 0.6;
	background: rgba(255, 255, 255, 0.1);
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
}

/* Sort Wrapper */
.kb-sort-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.kb-sort-label {
	font-size: 0.875rem;
	opacity: 0.7;
	white-space: nowrap;
}

.kb-sort-select {
	padding: 0.875rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	color: #ffffff;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.kb-sort-select:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.08);
	border-color: #818CF8;
}

.kb-sort-select option {
	background: #0f1027;
	color: #ffffff;
}

/* Categories Showcase */
.kb-categories-showcase {
	margin-bottom: 4rem;
}

.kb-section-title {
	font-size: 1.875rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 2rem;
}

.kb-categories-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.kb-categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.kb-categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.kb-category-card {
	display: block;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
}

.kb-category-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: #818CF8;
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(129, 140, 248, 0.2);
}

.kb-category-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(129, 140, 248, 0.1);
	border-radius: 0.75rem;
	color: #818CF8;
	margin-bottom: 1.5rem;
}

.kb-category-name {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.kb-category-desc {
	font-size: 0.9375rem;
	opacity: 0.7;
	margin-bottom: 1rem;
	line-height: 1.6;
}

.kb-category-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	opacity: 0.6;
}

.kb-category-arrow {
	font-size: 1.25rem;
	transition: transform 0.3s ease;
}

.kb-category-card:hover .kb-category-arrow {
	transform: translateX(4px);
}

/* Articles Grid */
.kb-articles-section {
	margin-top: 3rem;
}

.kb-articles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

@media (min-width: 640px) {
	.kb-articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.kb-articles-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.kb-doc-card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	transition: all 0.3s ease;
	height: 100%;
}

.kb-doc-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: #818CF8;
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kb-doc-category {
	margin-bottom: 1rem;
}

.kb-doc-category a {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #818CF8;
	background: rgba(129, 140, 248, 0.1);
	padding: 0.25rem 0.75rem;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
}

.kb-doc-category a:hover {
	background: rgba(129, 140, 248, 0.2);
}

.kb-doc-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

.kb-doc-title a {
	color: inherit;
	transition: color 0.2s ease;
}

.kb-doc-card:hover .kb-doc-title a {
	color: #818CF8;
}

.kb-doc-excerpt {
	font-size: 0.9375rem;
	opacity: 0.7;
	line-height: 1.6;
	margin-bottom: 1rem;
	flex-grow: 1;
}

.kb-doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.8125rem;
	opacity: 0.6;
	margin-bottom: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-doc-meta-item {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.kb-doc-meta-item svg {
	flex-shrink: 0;
}

.kb-doc-rating {
	color: #00a32a;
}

.kb-doc-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #818CF8;
	transition: all 0.2s ease;
}

.kb-doc-link svg {
	transition: transform 0.2s ease;
}

.kb-doc-card:hover .kb-doc-link {
	color: #ffffff;
}

.kb-doc-card:hover .kb-doc-link svg {
	transform: translateX(4px);
}

/* No Results */
.kb-no-results {
	text-align: center;
	padding: 4rem 2rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
}

.kb-no-results-icon {
	margin-bottom: 2rem;
}

.kb-no-results-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.kb-no-results-text {
	font-size: 1rem;
	opacity: 0.7;
	margin-bottom: 2rem;
}

.kb-no-results-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Pagination */
.kb-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.kb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	color: #ffffff;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
}

.kb-pagination .page-numbers:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #818CF8;
}

.kb-pagination .page-numbers.current {
	background: #818CF8;
	border-color: #818CF8;
	font-weight: 600;
}

.kb-pagination .prev,
.kb-pagination .next {
	gap: 0.5rem;
}

/* ===================================
   SINGLE PAGE ENHANCEMENTS
   =================================== */

/* Tags */
.kb-tags {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
}

.kb-tags-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
	margin-bottom: 1rem;
}

.kb-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.kb-tag {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: #818CF8;
	transition: all 0.2s ease;
}

.kb-tag:hover {
	background: rgba(129, 140, 248, 0.1);
	border-color: #818CF8;
}

/* Share Buttons */
.kb-share {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
}

.kb-share-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.kb-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.kb-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.kb-share-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

.kb-share-twitter:hover {
	background: rgba(29, 155, 240, 0.2);
	border-color: #1DA1F2;
}

.kb-share-facebook:hover {
	background: rgba(24, 119, 242, 0.2);
	border-color: #1877F2;
}

.kb-share-linkedin:hover {
	background: rgba(10, 102, 194, 0.2);
	border-color: #0A66C2;
}

.kb-share-copy:hover {
	background: rgba(129, 140, 248, 0.2);
	border-color: #818CF8;
}

.kb-share-print:hover {
	background: rgba(34, 197, 94, 0.2);
	border-color: #22C55E;
}

/* Progress Indicator */
.kb-progress-indicator {
	padding: 1rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.kb-progress-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}

.kb-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #818CF8 0%, #6366F1 100%);
	transition: width 0.3s ease;
}

.kb-progress-text {
	display: block;
	font-size: 0.75rem;
	text-align: center;
	opacity: 0.6;
}

/* Related Articles Icon */
.kb-related-icon {
	margin-right: 0.5rem;
	color: #818CF8;
}

/* Feedback Subtitle */
.kb-feedback-subtitle {
	font-size: 0.9375rem;
	opacity: 0.7;
	margin-bottom: 1.5rem;
}

.kb-feedback-stats {
	margin-top: 1rem;
	font-size: 0.875rem;
	opacity: 0.6;
}

/* Help CTA Enhancements */
.kb-help-cta-content {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	text-align: center;
}

.kb-help-cta-icon {
	flex-shrink: 0;
	opacity: 0.3;
}

.kb-help-cta-text {
	text-align: center;
}

.kb-help-cta-text h4 {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
}

.kb-help-cta-text p {
	margin: 0;
	opacity: 0.9;
}

.kb-help-cta-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.kb-help-cta-actions .hostwebo-button-primary,
.kb-help-cta-actions .hostwebo-button-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 180px;
}

/* ========================================
   Responsive Design - Mobile & Tablet
   ======================================== */

/* Mobile Devices (up to 640px) */
@media (max-width: 640px) {
	/* Wrapper and Container */
	.hostwebo-kb-wrapper {
		padding: 1.5rem 0 3rem;
	}

	.hostwebo-container {
		padding: 0 1rem;
	}

	/* Archive Header */
	.kb-archive-header {
		padding: 2rem 0;
	}

	.kb-archive-title {
		font-size: 1.75rem;
	}

	.kb-archive-description {
		font-size: 0.9375rem;
	}

	/* Search & Filters */
	.kb-search-filters-wrapper {
		padding: 1rem;
		margin-bottom: 2rem;
	}

	.kb-search-input-wrapper {
		flex-direction: column;
		width: 100%;
	}

	.kb-search-input {
		width: 100%;
		padding-left: 3rem;
	}

	.kb-search-submit {
		width: 100%;
		padding: 0.875rem 1rem;
		text-align: center;
	}

	/* Category Filters */
	.kb-category-filters {
		width: 100%;
	}

	.kb-filter-toggle {
		width: 100%;
		justify-content: center;
	}

	.kb-filters-dropdown {
		left: 0;
		right: 0;
		min-width: auto;
	}

	/* Sort Select */
	.kb-sort-wrapper {
		width: 100%;
	}

	.kb-sort-select {
		width: 100%;
	}

	/* Category Grid */
	.kb-category-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	/* Docs Grid */
	.kb-docs-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	/* Single Doc - Content Layout */
	.kb-content-wrapper {
		flex-direction: column;
	}

	.kb-sidebar {
		width: 100%;
		order: 2;
		margin-top: 2rem;
	}

	.kb-main-content {
		width: 100%;
		max-width: 100%;
		order: 1;
	}

	/* Article Header */
	.kb-article-header {
		padding: 1.5rem 0;
	}

	.kb-article-title {
		font-size: 1.75rem;
	}

	/* Meta Info */
	.kb-meta {
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.kb-meta-item {
		font-size: 0.8125rem;
	}

	/* Progress Indicator */
	.kb-progress-indicator {
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.kb-progress-text {
		font-size: 0.8125rem;
		min-width: 60px;
	}

	/* Article Content */
	.kb-article-content {
		padding: 1.5rem 0;
		font-size: 1rem;
	}

	.kb-article-content h2 {
		font-size: 1.5rem;
		margin-top: 2rem;
	}

	.kb-article-content h3 {
		font-size: 1.25rem;
		margin-top: 1.5rem;
	}

	/* TOC */
	.kb-toc ul {
		padding-left: 0.75rem;
	}

	.kb-toc a {
		font-size: 0.875rem;
		padding: 0.5rem 0;
	}

	/* Action Boxes */
	.kb-actions {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.kb-action-box {
		padding: 1.25rem;
	}

	.kb-action-title {
		font-size: 1rem;
	}

	/* Feedback Buttons */
	.kb-feedback-buttons {
		flex-direction: column;
		gap: 0.75rem;
	}

	.kb-feedback-btn {
		width: 100%;
		justify-content: center;
		padding: 0.875rem 1rem;
	}

	/* Share Buttons */
	.kb-share-buttons {
		flex-wrap: wrap;
	}

	.kb-share-btn {
		flex: 1 1 calc(50% - 0.5rem);
		min-width: 120px;
	}

	/* Breadcrumb */
	.kb-breadcrumb {
		font-size: 0.8125rem;
		flex-wrap: wrap;
	}

	/* Pagination */
	.kb-pagination {
		padding: 1rem;
		gap: 0.5rem;
	}

	.kb-pagination-btn {
		padding: 0.5rem 0.875rem;
		font-size: 0.875rem;
	}

	/* Back Button */
	.kb-back-button {
		margin-bottom: 1.5rem;
	}
}

/* Tablet Devices (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
	/* Category Grid */
	.kb-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Docs Grid */
	.kb-docs-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Content Layout */
	.kb-content-wrapper {
		gap: 2rem;
	}

	.kb-sidebar {
		width: 280px;
	}

	/* Action Boxes */
	.kb-actions {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.kb-help-cta-content {
		flex-direction: column;
		text-align: center;
	}

	.kb-help-cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.kb-help-cta-actions .hostwebo-button-primary,
	.kb-help-cta-actions .hostwebo-button-outline {
		width: 100%;
		justify-content: center;
	}
}

/* Meta Enhancements */
.kb-meta-author,
.kb-meta-updated,
.kb-meta-reading-time,
.kb-meta-helpful {
	/* Inherit from existing .kb-meta-item */
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
	/* Hide non-essential elements */
	.kb-sidebar,
	.kb-breadcrumb,
	.kb-meta,
	.kb-actions,
	.kb-share,
	.kb-help-cta,
	.kb-feedback,
	header.site-header,
	footer.site-footer,
	.hostwebo-button,
	button {
		display: none !important;
	}

	/* Optimize content for printing */
	body {
		background: white;
		color: black;
	}

	.kb-article-title {
		color: black;
		page-break-after: avoid;
	}

	.kb-article-content {
		color: black;
		max-width: 100%;
	}

	.kb-article-content h2,
	.kb-article-content h3 {
		page-break-after: avoid;
		color: black;
	}

	.kb-article-content pre {
		page-break-inside: avoid;
		border: 1px solid #ddd;
		background: #f5f5f5;
	}

	.kb-article-content img {
		max-width: 100%;
		page-break-inside: avoid;
	}

	/* Show URLs for links */
	.kb-article-content a[href^="http"]:after {
		content: " (" attr(href) ")";
		font-size: 0.875em;
		color: #666;
	}

	/* Page breaks */
	.kb-article-content h2 {
		page-break-before: always;
	}

	.kb-article-content h2:first-of-type {
		page-break-before: avoid;
	}
}
