/*Main css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Chiều cao toàn màn hình */
}
header {
    background: #fff url(../media/background.png) repeat-x top left;*/
    color: white;
    text-align: center;
	display: flex;
    padding: 5px;
	    align-content: center;
    justify-content: center;
    align-items: center;
	flex-direction: column;
}
footer {
    background-color: #157a2e;
    color: white;
    text-align: center;
    padding: 5px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	font-size: small;
	font-family: monospace; 
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
main {
    flex-grow: 1; /* Canh chiều cao tự động */
    padding: 20px;
    overflow-y: auto; /* Cho phép cuộn nếu nội dung quá dài */
}

.img-top{
	height:20px;
	display:none;
	}
.img-mid{
	width:auto;
	height:200px; /*70px;*/
	padding-top: 15px;
}
.img-btm{
	height:60px;
    padding-top: 10px;
} 

#slogan {
    display: none;
}

/* Menu */
.menu-container {
    position: relative;
    display: inline-block;
	background-color:white;
	background: #fff url(../media/background2.png) repeat-x bottom left;
	/* background-color: #fff3dc; */
	z-index:10;
}
/* Nút hamburger */
.hamburger-menu {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Ẩn khi màn hình rộng */
	padding-left: 15px;
}
.hamburger-logo{
	height: 35px;
	width:auto; 
	float:right; 
	position: absolute; 
	top: 3px; 
	right: calc(50% - 55px); /*0px;*/
	padding: 5px;
	display: none; /* Ẩn khi màn hình rộng */
}
 /* ========== Menu chính ========== */
.menu-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
	justify-content: center;
	white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
}

.menu-list li {
    position: relative;
    padding: 10px 15px;
    cursor: pointer;
    font-size: medium;
    font-family: system-ui;
}

/* Hover vào mục menu chính */
.menu-list li:hover {
    background-color: #ddd;
}

/* ========== Submenu ========== */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.submenu li {
    width: 266px;
    padding: 10px;
    color: #444; /* màu mặc định */
}

/* Tắt mở submenu bằng class (không hover nữa) */
.menu-list li.has-submenu:hover .submenu {
    display: block;  /*bỏ hover để JS quản lý mở/đóng */
}

.menu-list li.submenu-open .submenu {
    display: block;
}

/* ========== Highlight trạng thái click ========== */
/* Khi click vào menu con */
.submenu li.menu-active {
    color: red;
    background-color: #eee;
}

/* Khi mục cha có menu con được active */
.menu-list > li.menu-parent-active {
    color: red;
    background-color: #eee;
}
/* Gạch dọc ngăn cách, không áp dụng cho mục cuối */
.menu-list > li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-weight: bold;
}
ul.menu-list > li.has-submenu:hover ul.submenu {
	display: block;
}
/* solgan */
/* =========================
   OVERRIDE RIÊNG CHO SLOGAN
   ========================= */
#slogan.container {
    font-size: medium;
	line-height: 1.9;
	text-align: justify;
	margin: 12px 0px 18px;
	10px 20px 0px 20px;
	border-radius: 10px;
	background: linear-gradient(159deg, #ffdc7500, #fff3ce);
	color: #006400;
	display: block;
	border-left: 1px solid rgba(46, 125, 50, .35);
	padding-left: 16px;
}

/* text slogan */
#slogan .slogan-text {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* 2 dòng */
#slogan.collapsed .slogan-text {
    max-height: 3.2em;
}

/* mở rộng */
#slogan.expanded .slogan-text {
    max-height: 500px;
}

/* nút expand */
#slogan .slogan-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    font-size: 13px;
    color: #b1bdc7;
    cursor: pointer;
}

#slogan .slogan-toggle:hover {
    text-decoration: underline;
}



/* Media query để khi màn hình nhỏ hơn 900px, menu trở thành hamburger */
@media (max-width: 950px) {
    header {
		display: none;
    }
	.hamburger-menu {
        display: block; /* Hiển thị nút hamburger khi màn hình nhỏ */
    }
	.hamburger-logo{
 
	display: block; /* Hiển thị nút hamburger khi màn hình nhỏ */
}
    .menu-list {
        display: none; /* Ẩn menu khi màn hình nhỏ */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 1px solid #ddd;
    }

    .menu-list.open {
        display: block; /* Hiển thị menu khi class 'open' được thêm vào */
    }

    .menu-list li {
        width: 100%; /* Các mục menu sẽ chiếm hết chiều rộng của container */
        padding: 10px;
    }

    /* Menu con cho màn hình nhỏ */
    .submenu {
        position: relative; /* Menu con sẽ hiển thị trong menu chính */
    }
	/* Chân trang*/
	footer {
        /* display: none;  Ẩn footer */
		padding: 0px;
    }
	/* Tiêu đề */
	header{
		max-height: 55px !important;
		padding: 0px;
	}
	.img-top{height:1px;}
.img-mid{
	width:auto;
	height:40px;
}
.img-btm{height:17px;} 

}
hr{
    height: 1px;
    /* color: red; */
    background-color: #ffc107d6;
    border: none; 
}
/* Style nút LINE */
#line-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #00b900;
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            text-align: center;
            font-size: 10px;
            font-weight: normal;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
			border-bottom: 3px solid #FFC107;
}

#line-button:hover {
    background-color: #008000;
}