/* ============================
   GLOBAL LAYOUT
============================ */
.mtw-tailieu-wrapper {
	display: flex;
	min-height: 100vh;
	background: #f8fafc;
}

/* ============================
   SIDEBAR
============================ */
.mtw-sidebar {
	width: 300px;
	background: #fff;
	border-right: 1px solid #e5e7eb;
	overflow-y: auto;
	position: sticky;
	top: 0;
	height: 100vh;
}

.mtw-sidebar-inner {
	padding: 20px 0;
}

.mtw-sidebar-header {
	padding: 0 20px 20px;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mtw-logo {
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mtw-logo-icon {
	font-size: 24px;
}

.mtw-nav-section {
	margin-top: 20px;
}

.mtw-nav-title {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	padding: 0 20px;
	margin-bottom: 10px;
}

.mtw-nav-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mtw-nav-item > a {
	display: block;
	padding: 12px 20px;
	color: #1e293b;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.mtw-nav-item.active > a {
	background: #e0f2fe;
	color: #0284c7;
	font-weight: 600;
}

.mtw-nav-item > a:hover {
	background: #f1f5f9;
}

/* Submenu Categories */
.mtw-nav-submenu {
	list-style: none;
	margin: 0;
	padding-left: 20px;
}

.mtw-nav-submenu > li > a {
	display: block;
	padding: 10px 20px;
	color: #475569;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s;
}

.mtw-nav-submenu > li.active > a {
	color: #0284c7;
	font-weight: 600;
}

/* Posts under category */
.mtw-nav-posts {
	list-style: none;
	padding-left: 35px;
	margin-top: 5px;
}

.mtw-nav-posts li a {
	display: block;
	padding: 6px 20px;
	font-size: 14px;
	color: #475569;
	text-decoration: none;
	transition: color 0.2s;
}

.mtw-nav-posts li.active > a {
	color: #0ea5e9;
	font-weight: 600;
}

/* Footer */
.mtw-sidebar-footer {
	margin-top: 20px;
	font-size: 13px;
	color: #94a3b8;
	padding: 0 20px;
	border-top: 1px solid #e2e8f0;
	padding-top: 20px;
}

.mtw-sidebar-footer a {
	color: #0284c7;
	text-decoration: none;
}

/* ============================
   MAIN CONTENT
============================ */
.mtw-main-content {
	flex: 1;
	padding: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.mtw-article-header {
	margin-bottom: 25px;
}

.mtw-article-title {
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 10px;
}

.mtw-article-excerpt {
	font-size: 16px;
	color: #475569;
	margin-top: 10px;
	line-height: 1.6;
}

.mtw-article-content {
	font-size: 17px;
	line-height: 1.75;
	color: #1e293b;
	margin-top: 25px;
}

.mtw-article-content img {
	max-width: 100%;
	border-radius: 8px;
}

/* ============================
   NOTIFICATION
============================ */
.mtw-notification {
	display: flex;
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 25px;
	gap: 12px;
	align-items: center;
	border-left: 4px solid;
}

.mtw-notification-info {
	background: #e0f2fe;
	border-color: #0284c7;
	color: #0369a1;
}

.mtw-notification-warning {
	background: #fef9c3;
	border-color: #ca8a04;
	color: #b45309;
}

.mtw-notification-danger {
	background: #fee2e2;
	border-color: #dc2626;
	color: #b91c1c;
}

.mtw-notification-icon {
	font-size: 20px;
}

/* ============================
   VOTING AREA
============================ */
.mtw-voting {
	margin-top: 40px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.mtw-voting-question {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
}

.mtw-voting-buttons {
	display: flex;
	gap: 15px;
}

.mtw-vote-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	transition: background 0.2s, transform 0.2s;
}

.mtw-vote-btn:hover {
	background: #f1f5f9;
	transform: translateY(-2px);
}

.mtw-vote-up .mtw-vote-icon { color: #16a34a; }
.mtw-vote-down .mtw-vote-icon { color: #dc2626; }

.mtw-voting-stats {
	margin-top: 10px;
	color: #64748b;
	font-size: 14px;
	font-style: italic;
}

/* ============================
   NAVIGATION PREV/NEXT
============================ */
.mtw-post-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.mtw-nav-prev,
.mtw-nav-next {
	max-width: 45%;
}

.mtw-nav-label {
	font-size: 13px;
	color: #64748b;
	display: block;
	margin-bottom: 5px;
}

.mtw-nav-link {
	font-size: 16px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
}

.mtw-nav-link:hover {
	text-decoration: underline;
}

/* ============================
   LAST UPDATED
============================ */
.mtw-last-updated {
	margin-top: 25px;
	font-size: 14px;
	color: #64748b;
	font-style: italic;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
	.mtw-sidebar {
		width: 250px;
	}
}

@media (max-width: 768px) {
	.mtw-tailieu-wrapper {
		flex-direction: column;
	}

	.mtw-sidebar {
		width: 100%;
		height: auto;
		position: relative;
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
	}

	.mtw-main-content {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.mtw-article-title {
		font-size: 26px;
	}

	.mtw-vote-btn {
		padding: 8px 12px;
	}
}
