/* --- Từ file i.css --- */
/* Các quy tắc hỗ trợ dropdown và trạng thái mặc định của nút menu */

:root {
    --color-dark-deep: #050A1C;
    --color-dark-medium: #0D1630;
    --color-dark-light: #1A2640;
    --color-accent-blue: #00BFFF;
    --color-blue-min: #5a83a9; 
    --color-accent-purple: #8A2BE2;
    --color-glow-primary: #00FFFF;
    --color-glow-secondary: #FF00FF;
    --color-text-light: #E0E7FF;
    --color-text-muted: #A0B0D0;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --transition-ease: ease-in-out;
    --transition-slow: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown {
    position: relative;/* Cho phép định vị tuyệt đối dropdown-content */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--light-text);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--card-bg);/* Hoặc màu khác */
    color: var(--accent-color);
}

.dropdown .item {
    display: flex;
    align-items: center;
}

.dropdown .item img {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
}

/* Mặc định ẩn nút hamburger trên màn hình lớn */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: url('/cursor.cur'), auto !important;
    color: white;
    z-index: 1001;
}

/* --- Từ file in.css --- */
/* Toàn bộ phần định dạng chính cho header và các thành phần con */

#head {
  top: 0;
  width: 100%;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  border: 1px solid cyan;
  font-family: 'Noto Sans', sans-serif;
  font-weight: bold;
  box-sizing: border-box;
  position: fixed;
  z-index: 100000;
  cursor: url('/cursor.cur'), auto !important;
}

.logo-container {
  position: relative;
  background-image: url('/images-icon/header.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 460px;
  height: 100%;
  flex-shrink: 0;
  line-height: 0;
}

.logo-overlay {/* logo3.png */
  position: absolute;
  pointer-events: none;
  top: -25px;
  left: 60px;
  width: 160px;
  height: auto;
}

#menuhead {
  padding-right: 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#menuhead nav ul li:last-child {
  margin-right: 30px;
}

#menuhead nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

#menuhead nav ul li {
  margin-left: 50px;
  position: relative;
  white-space: nowrap;
}

#menuhead nav ul li:first-child {
  margin-left: 0;
}

#menuhead nav ul li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  cursor:  url('/cursor.cur'), auto;
  transition: all 0.3s ease;
}

#menuhead nav ul li a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

#menuhead a.active {
  text-decoration: underline;
  text-decoration-color: white;
  text-underline-offset: 5px;
  text-decoration-thickness: 5px;
}

#menuhead nav ul li a:hover {
  color: #00ffff;
  cursor: url('/cursor.cur'), auto !important;
}

#menuhead nav ul li a:hover img {
  transform: scale(1.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0,0,0,0.5);
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 10px 0;
  border-radius: 5px;
  top: 100%;
  left: 0%;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.3s ease;
  cursor:  url('/cursor.cur'),  auto !important;
}

.dropdown-content a:hover {
  color: black;
}

/* Responsive */
@media (max-width: 992px) {
    #head {
        width: 100% !important;
        padding: 0 15px !important;
        justify-content: space-between !important;
    }

    .logo-container {
        width: 150px !important;
        height: 60px !important;
        background-image: none !important;
    }

    .logo-overlay {
        display: block !important;
        width: 120px !important;
        height: auto !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #menuhead {
        padding-right: 0 !important;
    }

    #menuhead nav ul#main-menu {
        display: none !important;
    }

    #menu-toggle {
        display: block !important;
    }

    #menuhead nav ul#main-menu.is-open {
        display: flex !important;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: black;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        padding-left: 0;
    }

    #menuhead nav ul#main-menu.is-open li {
        width: 100%;
        margin-left: 0;
        text-align: left;
        border-bottom: 1px solid #333;
    }

    #menuhead nav ul#main-menu.is-open li a {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    #menuhead nav ul#main-menu.is-open li a img {
        margin-right: 15px;
        margin-bottom: 0;
    }

    #menuhead nav ul#main-menu.is-open .dropdown-content,
    #menuhead nav ul#main-menu.is-open .dropdown-content2 {
        display: none;
        position: static;
        width: 100%;
        background-color: #1a1a1a;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
    }

    #menuhead nav ul#main-menu.is-open .dropdown.submenu-open > .dropdown-content {
        display: block !important;
    }
}

/* Công tắc chuyển ngôn ngữ */
.language-switcher-container {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.lang-toggle-checkbox {
    display: none;
}

.lang-toggle-label {
    display: block;
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #003865;
    border-radius: 15px;
    cursor: url('/cursor.cur'), auto !important;
    transition: background-color 0.4s ease;
}

.lang-toggle-switch {
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.4s ease;
}

.lang-toggle-inner::before,
.lang-toggle-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.4s ease;
}

.lang-toggle-inner::before {
    background-image: url('/images-icon/vi.png');
    left: 5px;
    opacity: 1;
}

.lang-toggle-inner::after {
    background-image: url('/images-icon/en.png');
    right: 5px;
    opacity: 0.5;
}

.lang-toggle-checkbox:checked + .lang-toggle-label {
    background-color: #5078A6;
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-toggle-switch {
    transform: translateX(30px);
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-toggle-inner::before {
    opacity: 0.5;
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-toggle-inner::after {
    opacity: 1;
}

#menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: url('/cursor.cur'), auto !important;
}

/* --- CSS CHO NÚT CUỘN LÊN ĐẦU TRANG --- */

#scrollToTopBtn {
  display: none; /* Ẩn nút theo mặc định */
  position: fixed; /* Giữ nút cố định khi cuộn trang */
  bottom: 20px; /* Cách đáy 20px */
  right: 30px; /* Cách lề phải 30px */
  z-index: 99; /* Đảm bảo nút luôn nổi lên trên cùng */
  
  border: none;
  outline: none;
  background-color: #0ea5e9; /* Dùng màu xanh chủ đạo của bạn */
  color: white;
  cursor: pointer;
  
  /* Tạo hình tròn */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  
  /* Căn giữa icon */
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.4s, background-color 0.3s;
}

#scrollToTopBtn:hover {
  background-color: #38bdf8; /* Màu sáng hơn khi di chuột vào */
}
.main-content-scrollable {
  height: 85vh; 
  overflow-y: auto;
  padding-right: 15px;
  position: relative; /* <--- THÊM DÒNG NÀY VÀO */
}