/* ==========================================================
   VINALOG — CSS cho menu WordPress và các trang con
   ========================================================== */

/* Menu WordPress */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav li.active > a, .nav li.current-menu-item > a { color: var(--blue); background: var(--soft); }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; flex-direction: column; z-index: 5; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu a { display: block; padding: 10px 12px; white-space: normal; }
.nav .menu-item-has-children > a::after { content: "▾"; font-size: 11px; margin-left: 5px; opacity: .6; }
@media (max-width: 1080px) {
  .nav.open ul { flex-direction: column; }
  .nav.open .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
}

.h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.lead { color: var(--muted); font-size: 17px; }
.wrap--narrow { max-width: 860px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.eyebrow--light { color: #ff8a8e; }
.eyebrow--light::before { background: #ff8a8e; }
.cta-wrap { padding-top: 88px; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* Hero trang con */
.phero { position: relative; color: #fff; padding: 64px 0 72px; background: var(--ink); overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: var(--bg) center/cover no-repeat; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3,18,62,.95) 0%, rgba(15,42,112,.85) 55%, rgba(15,42,112,.55) 100%); }
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); font-weight: 900; max-width: 860px; }
.phero__lead { color: #dbe3f7; font-size: 18px; max-width: 720px; margin: 0; }
.crumbs { font-size: 14px; color: #aab6d6; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a:hover { color: #fff; }

/* Nội dung soạn trong trình soạn thảo */
.entry { font-size: 17px; line-height: 1.75; color: var(--text); min-width: 0; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 28px; margin-top: 1.6em; }
.entry h3 { font-size: 22px; margin-top: 1.4em; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry ul li::marker { color: var(--red); }
.entry img { border-radius: 14px; height: auto; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry th { background: var(--soft); color: var(--ink); }
.entry details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.entry details + details { margin-top: 10px; }
.entry summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); }
.entry details > :not(summary) { margin: 0 0 16px; }
.entry .wp-block-button__link { background: var(--red); color: #fff; text-decoration: none; border-radius: 10px; padding: 14px 26px; font-weight: 700; }
.entry .has-vl-blue-color { color: var(--blue); } .entry .has-vl-red-color { color: var(--red); }
.entry .has-vl-soft-background-color { background: var(--soft); } .entry .has-vl-navy-background-color { background: var(--navy); color: #fff; }
.entry--intro { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.meta { color: var(--muted); font-size: 14.5px; }
.entry__cta { margin-top: 40px; background: var(--soft); border-radius: 14px; padding: 22px 24px; display: grid; gap: 4px; border-left: 4px solid var(--blue); }
.entry__cta b { color: var(--ink); font-size: 18px; }

/* Bố cục 2 cột có cột bên */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.side__sticky { position: sticky; top: 100px; display: grid; gap: 20px; }
.side .qcard { box-shadow: var(--shadow); border: 1px solid var(--line); }
.side__box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.side__box h3 { font-size: 18px; margin-bottom: 12px; }
.side__box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.side__box a { color: var(--blue); font-weight: 600; }

/* Danh sách bài */
.post__img { display: block; }
.post h3 a:hover { color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.chips a.on, .chips a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; padding: 0 10px; }
.pager .current, .pager a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.empty { text-align: center; color: var(--muted); }

/* Liên hệ */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ccard { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 2px; transition: .2s; }
a.ccard:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.ccard .ico { width: 44px; height: 44px; border-radius: 10px; background: #eaf0fd; color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.ccard .ico svg { width: 22px; height: 22px; }
.ccard small { color: var(--muted); }
.ccard b { color: var(--ink); font-size: 18px; word-break: break-word; }
.addr p { display: flex; gap: 8px; align-items: flex-start; }
.addr svg { flex: none; color: var(--red); margin-top: 4px; }
.map--big { height: 360px; margin-top: 20px; }

/* Tuyển dụng */
.jobs { display: grid; gap: 14px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; transition: .2s; }
.job:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.job h3 { font-size: 20px; margin-bottom: 6px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.job__meta span { display: inline-flex; gap: 6px; align-items: center; }
.empty-box { text-align: center; background: var(--soft); border-radius: 16px; padding: 48px 24px; }
.empty-box a { color: var(--blue); font-weight: 700; }
.jobinfo { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; }
.jobinfo dt { color: var(--muted); }
.jobinfo dd { margin: 0; font-weight: 600; color: var(--ink); }

.stats--flat { margin-top: 48px; }

@media (max-width: 1080px) {
  .with-side, .contact { grid-template-columns: 1fr; }
  .side__sticky { position: static; }
}
@media (max-width: 520px) {
  .contact__cards { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .phero { padding: 44px 0 52px; }
}

/* Khi đang đăng nhập (có thanh quản trị) */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }

/* Thông báo cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(3,18,62,.18); padding: 18px 20px; font-size: 14.5px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie a { color: var(--blue); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; justify-content: flex-end; }
.cookie .btn { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 520px) { .cookie { left: 10px; right: 76px; bottom: 10px; } }

.footer h2 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.qcard h2 { font-size: 22px; margin-bottom: 4px; }
.fb__quote, .quote__info li { }
