body {
	background: #f1f1f1 url(bg.jpg) repeat-y center top;;
	font-family:Tahoma, Geneva, sans-serif;
	margin:0;
	padding:0;
}

a {
	text-decoration:none;
}
img a{
	border:0;
}
form {
	padding:0;
	margin:0;
}
.canhgiua {
	width:964px;
	margin-left:auto;
	margin-right:auto;
}
.clear {clear:both;}
#header {
	width:100%;
	height:250px;
	background: #ffffff url(bgNav.jpg) center top no-repeat;
	margin-bottom:20px;
	position: relative; /* Thêm để định vị menu */
}
#header #wrapper {
	width:964px;
	height:100%; /* Sửa chiều cao */
	position: relative; /* Thêm để định vị menu */
}
#logo {
	float:center;
}

#topbar-wrapper {
     background-color: #F5F5F5;  /* Xóa hoặc comment dòng này */
    /* background: url('loginbottom.png') repeat-x center center; /* Thêm dòng này: nền ảnh lặp lại theo chiều ngang, căn giữa */
    background-size: cover; /* Đảm bảo ảnh bao phủ toàn bộ khu vực, có thể bị cắt bớt nếu tỷ lệ không khớp */
    /* Hoặc dùng background-size: 100% 100%; nếu muốn ảnh kéo dãn vừa khít */
    /* Hoặc đơn giản là background: url('nenanh.png'); nếu ảnh nhỏ và muốn lặp lại mặc định */
    /* color: #fff; */
    height: 35px;
    line-height: 35px;
    width: 100%;
    border-bottom: 1px solid #9f9f9f; /* Giữ nguyên viền nếu muốn */
    box-sizing: border-box;
}

#topbar-wrapper .canhgiua {
    width: 964px; /* Giữ nguyên chiều rộng canh giữa của bạn */
    margin: 0 auto; /* Căn giữa thanh topbar */
}

#topbar-left {
    float: left;
    margin-left: 10px; /* Khoảng cách từ lề trái */
	color:#7c3500;
    display: block;
    font-size: 12px; /* Giảm kích thước font một chút */
    white-space: nowrap; /* Đảm bảo chữ không bị xuống dòng */
    /* font-weight: bold; */
}


/* Điều chỉnh lại #topmenu cho vị trí mới */
#topmenu2 {
    float: right;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    width: auto;
    position: static;
}

#topmenu2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    height: 35px;
    align-items: center;
}

#topmenu2 ul li {
    margin-left: 10px;
    color: #333333;
    line-height: normal;
}

#topmenu2 ul li a:link,
#topmenu2 ul li a:visited {
 /*   color: #fff; */
	color:#7c3500;
	padding: 6px 8px; /* Giảm padding để tiết kiệm không gian */
    display: block;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 12px; /* Giảm kích thước font một chút */
    white-space: nowrap; /* Đảm bảo chữ không bị xuống dòng */
    font-weight: bold;
}

#topmenu2 ul li a:hover,
#topmenu2 ul li a:active {
	background:url(headerbut.gif) repeat-x center;
	padding:7px;
	color:#FFFFFF;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

#topmenu2 ul li .active {
    color: #fc0;
    background: none;
}
/* === CSS CHO MENU NGANG MỚI === */
#topmenu {
	position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
	height: 38px;
	/* font-family:Arial, Helvetica, sans-serif; */
	font-weight: bold;
    text-shadow: 0 1px #fff;
}

#topmenu ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	/* justify-content: center; /* Căn giữa lại menu cho đẹp */
	align-items: center;
	height: 100%;
    margin-top: -10px;
}

#topmenu ul li {
	margin: 0; /* Bỏ margin cũ */
	color:#7c3500;
    position: relative;
    /* Thêm đường kẻ phải để ngăn cách */
    border-right: 1px solid rgba(124, 53, 0, 0.4); 
    padding: 0 5px; /* Thêm padding để tạo khoảng cách với đường kẻ */
}

/* Loại bỏ đường kẻ ở mục cuối cùng */
#topmenu ul li:last-child {
    border-right: none;
}

#topmenu ul li a:link, #topmenu ul li a:visited {
	color:#7c3500;
	padding: 6px 8px; /* Giảm padding để tiết kiệm không gian */
    display: block;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 12px; /* Giảm kích thước font một chút */
    white-space: nowrap; /* Đảm bảo chữ không bị xuống dòng */
}

#topmenu ul li a:hover,
#topmenu ul li a:active,
#topmenu ul li.active-menu-item a { /* Chỉnh sửa dòng này */
    background:url(headerbut.gif) repeat-x center;
    color:#FFFFFF;
}

/* Thêm quy tắc này để đảm bảo class active-menu-item hoạt động */
#topmenu ul li.active-menu-item a:link,
#topmenu ul li.active-menu-item a:visited {
    background:url(headerbut.gif) repeat-x center;
    color:#FFFFFF;
}

/* === CSS CHO DROPDOWN === */
.dropdown .dropbtn {
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}
.dropdown-content a {
    color: black !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block;
    text-align: left;
    background: none !important; /* Reset background */
}
.dropdown-content a:hover {
    background-color: #f1f1f1 !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}


/* === CSS CHO LAYOUT CHÍNH === */
#body-wrapper {
}
#content-wrap {
	float:left;
	width: 720px;
}
#content-wrap .top {
	height: 9px;
	background:url(moduletop.png) no-repeat left bottom;
}
#content-wrap .middle {
	background:url(modulebg.png) left repeat-y;
	padding-left: 0; /* Xóa padding trái */
}
#content-wrap .bottom {
	height:6px;
	background: url(modulebottom.png) top left;
}

/* KHỐI #mainmenu ĐÃ BỊ XÓA */

#content {
	float: none; /* Không cần float nữa */
	width: 100%; /* Rộng 100% để lấp đầy content-wrap */
	padding:10px;
	position:relative;
    box-sizing: border-box;
}
#sidebar {
	float:right;
	width:240px;
}
#sidebar .top {
	height: 34px;
	background:url(sidetop.png) left top no-repeat;
	padding-left:15px;
	padding-top:10px;
	font-weight:bold;
	font-family:Arial, Helvetica, sans-serif;
}
#sidebar .middle {
	background:url(sidebg.png) left repeat-y;
	padding-left:20px;
}
.loginpanel {
	background:url(loginbg.png) repeat-y left;
	width:255px;
	padding:10px 0 0 0px;
	margin-left:-20px;
	color:#000;
}
#sidebar .bottom {
	height:51px;
	background:url(sidebottom.png) left top no-repeat;
	padding: 0px 10px;
}
#sidebar .bottom ul {
	list-style: none;
	padding:0;
	margin:0;
}
#sidebar .bottom ul li {
	font-size:12px;
	color:#ffffff;
	padding-left:10px;
	float:left;
	background:url(sidebarbottomli.gif) no-repeat left bottom;
	line-height: 47px;
}
#sidebar .bottom ul li a:link, #sidebar .bottom ul li a:visited {
	color:#ffffff;
	background:url(arrow.png) left center no-repeat;
	padding:10px 10px 10px 20px;
	line-height: 47px;
}
#sidebar .bottom ul li a:hover, #sidebar .bottom ul li a:active {
	color:#FC0;
}

/* === CSS CHO FOOTER === */
#footer-above {
	height:40px;
}
#footer {
	height: 165px;
	background: url(bgBottom.jpg) no-repeat center top;
}
#footer .line1 {
	line-height: 34px;
}
#footer .line2 {
	height: 67px;
	font-size:13px;
	font-family:Arial, Helvetica, sans-serif;
	color:#FFFFFF;
	text-align:right;
}
#footer .line2 ul{
	margin-top:10px;
	float:left;
	width:400px;
	list-style: none;
	padding:0;
	margin:0;
}
#footer .line2 ul li{
	float:left;
	margin-right:10px;
}
#footer .line2 ul li a:link, #footer .line2 ul li a:visited {
	color:#FFFFFF;
}
#footer .line2 ul li a:hover, #footer .line2 ul li a:active {
	color:#FC0;
}
#footer .line2 p {
	float:right;
	width:500px;
	text-align:right;
}

#footer .line2 p a:link, #footer .line2 p a:visited{
	color:yellow;
}

#footer .line2 p a:hover, #footer .line2 p a:active{
	color:#FC0;
}

.menu-button {
	float:left;
	margin:10px;
	font-family:Arial, Helvetica, sans-serif;
}
.menu-button a:link, .menu-button a:visited {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
	background: #ffffff url(buttonbg.html) left top no-repeat;
	display:block;
	padding-left:50px;
	padding-top:15px;
	color: #11a3dc;	
	font-size:16px;
	font-weight:bold;
	height: 55px;
	width:155px;
	border:1px solid #CCCCCC;
}
.menu-button a:hover, .menu-button a:active {
	background: #bbecff left top no-repeat;
}
.menu-button span {
	font-size:12px;
	font-weight: normal;
	color: #464646;
}
.loginbottomlinks a:link, .loginbottomlinks  a:visited {
	color:#000000;
	}