:root {
	--sidebar-width: 80px;
	--bg-body: #f8fafc;
	--primary-dark: #0f172a;
	--brand-blue: #3b82f6;
	--brand-green: #10b981;
	--brand-gradient: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
	--card-border: #e2e8f0;
	--text-main: #1e293b;
	--text-muted: #64748b;
}

body {
	background-color: var(--bg-body);
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	color: var(--text-main);
	font-size: 1rem;
}

/* Left Sidebar */
.ix-sidebar {
	width: var(--sidebar-width);
	min-height: 100vh;
	background-color: var(--primary-dark);
	position: fixed;
	left: 0;
	top: 0;
	z-index: 1030;
	padding: 32px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ix-sidebar .nav-link {
	color: #94a3b8;
	padding: 14px;
	margin-bottom: 12px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}
.ix-sidebar .nav-link:hover,
.ix-sidebar .nav-link.active {
	color: white;
	background-color: rgba(255, 255, 255, 0.1);
}
.ix-sidebar .nav-link i {
	font-size: 1.5rem;
}

/* Main wrapper */
.ix-wrapper {
	margin-left: var(--sidebar-width);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Top Header */
.ix-header {
	background: white;
	height: 80px;
	padding: 0 40px;
	border-bottom: 1px solid var(--card-border);
	position: sticky;
	top: 0;
	z-index: 1020;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ix-header-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}
.ix-header-logo {
	display: block;
	height: 32px;
	width: auto;
	object-fit: contain;
	object-position: left center;
}
.ix-brand {
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--brand-blue);
	text-decoration: none;
	letter-spacing: -0.01em;
	transition: color 0.2s;
}
.ix-header-brand:hover .ix-brand { color: #1d4ed8; }
.ix-header-brand:hover { color: inherit; }

.ix-search-container {
	flex-grow: 1;
	max-width: 700px;
	margin: 0 40px;
	position: relative;
}
.ix-search-container input {
	background: #f1f5f9;
	border: 1px solid transparent;
	border-radius: 14px;
	padding: 12px 20px 12px 50px;
	width: 100%;
	outline: none;
	font-size: 1rem;
	transition: all 0.2s;
}
.ix-search-container input:focus {
	background: white;
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.ix-search-container i {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 1.1rem;
}

/* Content Layout */
.ix-content-wrapper {
	display: flex;
	flex: 1;
	padding: 32px 40px;
	gap: 40px;
	max-width: 1600px;
	margin: 0 auto;
	width: 100%;
}
.ix-main {
	flex: 1;
	min-width: 0;
}
.ix-right-sidebar {
	width: 340px;
	flex-shrink: 0;
}

/* Post list: 2 posts per row */
.postblock .row.g-4 > [class*="col-"] {
	flex: 0 0 50%;
	max-width: 50%;
}
@media (max-width: 767.98px) {
	.postblock .row.g-4 > [class*="col-"] {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Post Card Styles */
.ix-preview-card {
	background: white;
	border-radius: 20px;
	border: 1px solid var(--card-border);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.ix-preview-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
	border-color: var(--brand-blue);
}

.category-tag {
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 6px 12px;
	border-radius: 8px;
}

.post-date {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.post-title {
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.4;
	color: var(--primary-dark);
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-title a {
	color: inherit;
	text-decoration: none;
}

.post-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.author-name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
}
.author-name span {
	display: block;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.post-excerpt,
.ix-preview-card .post-excerpt {
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 24px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

.post-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-top: 1px solid #f1f5f9;
}

.footer-stats {
	display: flex;
	gap: 16px;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.read-more-link {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--brand-blue);
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0;
	transition: all 0.2s;
}
.ix-preview-card:hover .read-more-link {
	opacity: 1;
	transform: translateX(4px);
}

/* Category Top Accent */
.card-accent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--brand-blue);
}
.accent-enhancements { background: #10b981; }
.accent-incident { background: #f59e0b; }
.accent-solutions { background: #6366f1; }
.accent-general { background: #14b8a6; }

/* Right Sidebar Sections */
.ix-sidebar-section {
	background: white;
	border-radius: 20px;
	border: 1px solid var(--card-border);
	padding: 24px;
	margin-bottom: 32px;
}
.ix-sidebar-title {
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.ix-category-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	margin: 0 -16px;
	border-radius: 10px;
	color: var(--text-main);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	transition: all 0.2s;
}
.ix-category-item:hover {
	background: #f8fafc;
	color: var(--brand-blue);
}
.ix-category-item i.cat-icon {
	width: 1.15em;
	min-width: 1.15em;
	flex-shrink: 0;
	margin-right: 12px;
	color: #94a3b8;
	font-size: 1.1rem;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ix-invite-box {
	background: var(--brand-gradient);
	border-radius: 20px;
	padding: 24px;
	color: white;
	box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15);
}
.ix-invite-icon {
	font-size: 2.25rem;
	margin-bottom: 16px;
}
.ix-invite-box h5 {
	font-weight: 800;
	font-size: 1.2rem;
	margin-bottom: 10px;
}
.ix-invite-box p {
	font-size: 0.9rem;
	opacity: 0.95;
	line-height: 1.5;
	margin-bottom: 20px;
}
.ix-invite-btn {
	background: white;
	color: var(--brand-blue);
	border: none;
	border-radius: 12px;
	padding: 10px 20px;
	font-weight: 800;
	font-size: 0.9rem;
	width: 100%;
	transition: transform 0.2s;
}
.ix-invite-btn:hover {
	transform: translateY(-3px);
}

/* Load More Button */
.btn-loadmore {
	background-color: #1e293b;
	color: white;
	border: none;
	border-radius: 12px;
	padding: 12px 32px;
	font-weight: 700;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.2s;
}
.btn-loadmore:hover {
	background-color: #0f172a;
	transform: translateY(-2px);
}

/* Activity Banner */
.ix-activity-banner {
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 16px;
	padding: 16px 24px;
	margin-bottom: 32px;
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 1rem;
	color: var(--brand-blue);
	font-weight: 600;
}

/* Author Avatar */
.ix-author-avatar {
	width: 36px;
	height: 36px;
	background: #e2e8f0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--primary-dark);
}

.btn-new-post {
	background: var(--primary-dark);
	color: white;
	font-weight: 700;
	border: none;
	border-radius: 12px;
	padding: 10px 24px;
	font-size: 1rem;
	transition: all 0.2s;
}
.btn-new-post:hover {
	background: #1e293b;
	transform: translateY(-2px);
}

/* Sidebar Search: one unified bar, icon inside input area, button attached */
.ix-sidebar-search-wrapper {
	position: relative;
	width: 100%;
}
.ix-sidebar-search-group {
	border-radius: 50px;
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid transparent;
}
.ix-sidebar-search-group:focus-within {
	background: white;
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.ix-sidebar-search-wrapper .ix-sidebar-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	pointer-events: none;
	color: var(--text-muted);
	font-size: 0.95rem;
}
.ix-sidebar-search-wrapper .ix-sidebar-search-icon i {
	display: block;
}
.ix-sidebar-search-wrapper input { 
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 8px 12px 8px 40px;
	flex: 1;
	min-width: 0;
	outline: none;
	font-size: 0.9rem;
}
.ix-sidebar-search-wrapper input::placeholder {
	color: var(--text-muted);
}
.ix-sidebar-search-wrapper .ix-sidebar-search-btn {
	background: transparent;
	border: none;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0;
	padding: 8px 14px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--brand-blue);
	flex-shrink: 0;
}
.ix-sidebar-search-wrapper .ix-sidebar-search-btn:hover {
	background: rgba(59, 130, 246, 0.08);
	color: var(--brand-blue);
}

/* View Post (single post detail) */
.ix-post-detail-card {
	background: white;
	border-radius: 20px;
	border: 1px solid var(--card-border);
	padding: 32px 40px;
	margin-bottom: 2rem;
	box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.ix-post-detail-card .ix-category-tag {
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--brand-blue);
	background: #eff6ff;
	padding: 6px 14px;
	border-radius: 8px;
	display: inline-block;
	margin-bottom: 20px;
}
.ix-post-detail-card .ix-post-title {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--text-main);
	margin-bottom: 24px;
}
.ix-post-detail-card .ix-author-box {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.ix-post-detail-card .ix-author-box img.ix-author-avatar {
	width: 48px;
	height: 48px;
	object-fit: cover;
	flex-shrink: 0;
}
.ix-post-detail-card .ix-author-box .ix-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ix-post-detail-card .ix-author-name {
	font-weight: 700;
	font-size: 1rem;
	color: var(--text-main);
}
.ix-post-detail-card .ix-post-date {
	font-size: 0.9rem;
	color: var(--text-muted);
}
.ix-post-detail-card .ix-post-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 32px;
	margin-bottom: 28px;
	padding: 16px 0;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}
.ix-post-detail-card .ix-stat-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-size: 0.9rem;
}
.ix-post-detail-card .ix-stat-item .ix-stat-icon {
	width: auto;
	height: auto;
	font-size: 1rem;
	color: var(--text-muted);
	cursor: pointer;
}
.ix-post-detail-card .ix-stat-item .ix-stat-value {
	font-weight: 600;
	color: var(--text-main);
}
.ix-post-detail-card .ix-post-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--text-main);
}
.ix-post-detail-card .ix-card-footer {
	padding-top: 24px;
	margin-top: 24px;
	border-top: 1px solid #f1f5f9;
}
.ix-post-detail-card .ix-action-link {
	color: var(--text-muted);
}
.ix-post-detail-card .ix-action-link:hover {
	color: var(--brand-blue);
}
.ix-main-card {
	background: white;
	border-radius: 16px;
	border: 1px solid var(--card-border);
	padding: 24px;
	margin-bottom: 1.5rem;
}

/* Header right: push block to end, no gap after translate */
.ix-header > .d-flex.ms-auto {
	flex: 1;
	min-width: 0;
	justify-content: flex-end;
}

/* Google Translate: target div directly; replace/remove gadget icon with globe */
/*#google_translate_element {
	display: inline-block;
	flex-shrink: 0;
	margin-left: 4px;
}
#google_translate_element .goog-te-gadget { font-size: 0 !important; }
#google_translate_element .goog-te-gadget > span:first-child { display: none !important; }
#google_translate_element .goog-te-gadget .goog-te-menu-value span:first-child { display: none !important; }
#google_translate_element .goog-te-menu-frame { z-index: 1030 !important; }
/* Remove Google icon image and show globe (Font Awesome) if available */
#google_translate_element .goog-te-gadget-icon {
	display: none !important;
}*/
#google_translate_element {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
/* Language Select Styling */
#language-select {
	border-radius: 12px;
}

/* Responsive */
@media (max-width: 991.98px) {
	.ix-right-sidebar { display: none; }
	.ix-content-wrapper { padding: 1rem; }
}
