/* =============================================================================
   THL JOBS · MENU CHÍNH TRANG CHỦ – mục "Học tập của tôi" (chỉ hiện sau khi đăng nhập)
   Bổ sung cho kiểu menu sẵn có trong index.html; giữ tông đỏ – trắng của thương hiệu.
   ============================================================================= */

/* Mọi mục menu ngang cùng độ đậm (trước đây liên kết Từ vựng/Video đậm hơn các nút) */
.desktop-nav .navlink, .desktop-nav .my-learning-toggle { font-weight: 400 !important; }
.desktop-nav .navlink.active, .desktop-nav .my-learning-toggle[aria-expanded="true"] { font-weight: 700 !important; }

/* --- Máy tính: nút "Học tập của tôi" mở danh sách thả xuống --- */
.my-learning { position: relative; display: inline-flex; }
.my-learning[hidden] { display: none !important; }
.my-learning-toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.my-learning-toggle[aria-expanded="true"] { color: var(--red, #c8102e); border-color: var(--red, #c8102e); }
.my-learning-caret { font-size: 12px; line-height: 1; transition: transform .2s; }
.my-learning-toggle[aria-expanded="true"] .my-learning-caret { transform: rotate(180deg); }
.my-learning-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 270px;
  display: flex; flex-direction: column; padding: 6px; border: 1px solid #f0d3d9; border-radius: 12px;
  background: #fff; box-shadow: 0 14px 34px rgba(120, 20, 40, .14);
}
.my-learning-menu[hidden] { display: none !important; }
/* Danh sách "Từ vựng" nằm giữa menu → mở sang phải từ mép trái của nút */
[data-nav-dropdown]:not([data-my-learning]) .my-learning-menu { left: 0; right: auto; min-width: 240px; }
.my-learning-menu a {
  display: block; padding: 11px 14px; border-radius: 8px; color: #252329; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.my-learning-menu a:hover, .my-learning-menu a:focus-visible { background: #fff1f3; color: var(--red, #c8102e); }

/* --- Điện thoại / máy tính bảng: nhóm "Học tập của tôi" trong menu xổ xuống --- */
.my-learning-mobile { display: flex; flex-direction: column; margin: 6px 0; padding: 8px 0 8px 12px; border-left: 3px solid var(--red, #c8102e); background: #fff9fa; border-radius: 0 10px 10px 0; }
.my-learning-mobile[hidden] { display: none !important; }
.my-learning-title { margin: 0 0 2px; color: var(--red, #c8102e); font-weight: 700; font-size: 15px; }
.my-learning-mobile .navlink { padding: 10px 1px; }

/* --- Máy tính bảng (tới 1180px): menu đầy đủ không còn đủ chỗ → dùng nút Menu như điện thoại --- */
@media (max-width: 1180px) {
  html .desktop-nav { display: none !important; }
  html .menu-toggle { display: inline-flex !important; align-items: center; gap: 6px; }
  html .mobile-nav { display: none !important; }
  html .mobile-nav.open { display: flex !important; }
}
