/* ==========================================================
   5 ways to present the "Kiến thức" menu (MKT-16 demo)
   Sits inside the approved header-3 dark glass panel
   (.h3-nav .nav-panel: warm dark glass, --on-dark text).
   ========================================================== */

/* shared bits */
.mk .mk-ico {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(213, 193, 169, .12); color: var(--sand);
}
.mk .mk-ico svg { width: 19px; height: 19px; stroke-width: 1.6; }
.mk .mk-title { display: block; font-weight: 600; font-size: .9375rem; color: var(--on-dark); }
.mk .mk-desc { display: block; margin: 2px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--on-dark-soft); }
.mk .mk-more { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--sand); }
.mk .mk-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.mk .mk-more:hover svg { transform: translateX(3px); }

/* ---------- 2 · list with icon + description ---------- */
.h3-nav .mk2 { width: 400px; padding: 10px; }
.mk2-list { margin: 0; padding: 0; list-style: none; }
.mk2-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background-color .2s var(--ease); }
.mk2-item:hover, .mk2-item:focus-visible { background: rgba(254, 248, 231, .07); }
.mk2-item:hover .mk-ico { background: var(--violet); color: #fff; }
.mk2-text { min-width: 0; }
.mk2-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 14px 12px 6px;
  border-top: 1px solid var(--glass-line); font-size: .875rem; font-weight: 600; color: var(--sand);
}
.mk2-all svg { width: 15px; height: 15px; }

/* ---------- 3 · five columns ---------- */
.mk3-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mk3-col { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 8px; }
.mk3-col + .mk3-col { border-left: 1px solid var(--glass-line); }
.mk3-head { display: flex; align-items: center; gap: 10px; }
.mk3-head:hover .mk-title { color: var(--sand); }
.mk3-col > .mk-desc { min-height: 2.9em; }
.mk3-posts { margin: 4px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--glass-line); display: grid; gap: 10px; }
.mk3-posts a { display: block; font-size: .875rem; line-height: 1.45; color: var(--on-dark-soft); }
.mk3-posts a:hover { color: #fff; }
.mk3-col .mk-more { margin-top: auto; padding-top: 6px; }

/* ---------- 4 · tabs | posts | offer ---------- */
.mk4-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .9fr); gap: 0 28px; }
.mk4-tabs { margin: 0; padding: 0 24px 0 0; list-style: none; border-right: 1px solid var(--glass-line); }
.mk4-tab { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; transition: background-color .2s var(--ease); }
.mk4-tab.is-active, .mk4-tab:focus-visible { background: rgba(254, 248, 231, .08); }
.mk4-tab.is-active .mk-ico { background: var(--violet); color: #fff; }
.mk4-posts { display: flex; flex-direction: column; gap: 6px; }
.mk4-posts__head { margin: 4px 0 8px; font-size: .8125rem; color: var(--taupe); }
.mk4-posts__head span { color: var(--sand); font-weight: 600; }
.mk4-post { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 14px; }
.mk4-post:hover { background: rgba(254, 248, 231, .06); }
.mk4-post img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.mk4-post span { font-size: .9375rem; line-height: 1.4; color: var(--on-dark); }
.mk4-posts .mk-more { margin-top: 8px; padding-left: 8px; }
.mk4-offer { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(213, 193, 169, .10); border: 1px solid rgba(213, 193, 169, .22); }
.mk4-offer img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.mk4-offer__label { margin: 4px 0 0; font-size: .75rem; font-weight: 600; color: var(--sand); }
.mk4-offer__title { margin: 0; font-family: var(--font-accent); font-weight: 400; font-size: 1.125rem; line-height: 1.3; color: var(--on-dark); }
.mk4-offer__btn {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--violet); color: #fff; font-size: .875rem; font-weight: 600;
}
.mk4-offer__btn:hover { background: var(--violet-deep); }

/* ---------- 5 · photo tiles ---------- */
.mk5-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mk5-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 16px; isolation: isolate; }
.mk5-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); z-index: -2; }
.mk5-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 22, 20, .05) 30%, rgba(23, 22, 20, .88) 100%); }
.mk5-tile:hover img, .mk5-tile:focus-visible img { transform: scale(1.05); }
.mk5-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 16px; }
.mk5-cap .mk-ico { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 6px; background: rgba(23, 22, 20, .45); backdrop-filter: blur(6px); }
.mk5-cap .mk-ico svg { width: 16px; height: 16px; }
.mk5-cap .mk-desc { color: #DCD3C8; }

@media (max-width: 1360px) {
  .mk3-col { padding-inline: 14px; }
  .mk4-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .mk4-offer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mk5-tile:hover img { transform: none; }
}

/* 24/11/2026: mục chưa có bài thật */
.mk4-empty { margin: 8px; font-size: .9375rem; color: var(--on-dark-soft); }
