/* =============================================================================
   PGS Corp — giao diện. Viết mới hoàn toàn theo ảnh chụp và thông số đo được của
   pgs-corp.com.vn; không chép tệp CSS của theme gốc.

   Font: Jura (SIL OFL) tự host cho tiêu đề. Thân chữ dùng chồng font hệ thống
   Helvetica/Arial — bản gốc dùng SFU Helvetica, một font thương mại không được
   đóng gói lại.
   ========================================================================== */

@font-face { font-family: "Jura"; src: url("../fonts/jura-light.woff2") format("woff2");    font-weight: 300; font-display: swap; }
@font-face { font-family: "Jura"; src: url("../fonts/jura-regular.woff2") format("woff2");  font-weight: 400; font-display: swap; }
@font-face { font-family: "Jura"; src: url("../fonts/jura-medium.woff2") format("woff2");   font-weight: 500; font-display: swap; }
@font-face { font-family: "Jura"; src: url("../fonts/jura-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jura"; src: url("../fonts/jura-bold.woff2") format("woff2");     font-weight: 700; font-display: swap; }

:root {
    --gold: #c69529;
    --ink: #000;
    --text: #222;
    --muted: #666;
    --dark: #343434;
    --grey: #f8f8f8;
    --line: #e1e1e1;
    --wrap: 1170px;
    --hd-h: 169px;          /* cao đầu trang đầy đủ, ĐO bằng Chrome: đệm 15 + logo 100 + hàng menu 54 */
    --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
    --head: "Jura", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` phải thắng mọi `display` của theme — JS bật/tắt nút bằng thuộc tính này. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font: 300 16px/1.5 var(--sans);
    color: var(--text);
    background: #fff;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 .8em; }

.wrap { width: var(--wrap); max-width: 100%; margin: 0 auto; padding: 0 15px; }

.skip {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
a.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
    z-index: 2000; background: #fff; color: #000; padding: 8px 12px; }

.accent { color: var(--gold); }

/* ── Đầu trang ─────────────────────────────────────────────────────────── */

.hd {
    position: fixed; inset: 0 0 auto 0; z-index: 999;
    background: var(--ink); color: #fff;
    transition: padding .3s;
}
.hd__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.hd__logo { display: block; padding: 15px 0 0; transition: all .3s; }
.hd__logo img { height: 100px; width: auto; }
.hd__logo span { font: 700 28px var(--head); color: var(--gold); }

.main { padding-top: var(--hd-h); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.nav__item { position: relative; }
.nav__link {
    display: block; padding: 15px 25px;
    font-size: 16px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
}
.nav__item.has-sub > .nav__link::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 6px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

.nav__sub {
    list-style: none; margin: 0; padding: 6px 0;
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; color: #000; box-shadow: 0 6px 18px rgba(0,0,0,.15);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__sub .nav__sub { top: -6px; left: 100%; }
.nav__sub li { position: relative; }
.nav__sub a { display: block; padding: 8px 18px; white-space: nowrap; font-size: 15px; font-weight: 400; }
.nav__sub li.has-sub > a { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav__sub li.has-sub > a::after {
    content: ""; flex: none; width: 6px; height: 6px;
    border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
/* Mức thứ TƯ (đơn vị trực thuộc) mở sang TRÁI: ba mức bung sang phải từ "Kinh doanh"
   đã chạm mép màn hình 1440px, và mức thứ tư tràn ra ngoài. */
.nav__sub .nav__sub .nav__sub .nav__sub { left: auto; right: 100%; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub,
.nav__sub li:hover > .nav__sub, .nav__sub li:focus-within > .nav__sub {
    opacity: 1; visibility: visible; transform: none;
}

.hd__lang { position: absolute; right: 15px; bottom: 15px; margin: 0; font-size: 15px; }
.hd__lang a, .hd__lang span { padding: 0 6px; }
.hd__lang a + span { border-left: 1.5px solid var(--gold); }
.hd__lang span { color: var(--gold); }

/* Đầu trang thu gọn khi cuộn (theme.js gắn lớp). */
.hd.is-compact .hd__logo { position: absolute; left: 15px; top: 0; padding: 8px 0; }
.hd.is-compact .hd__logo img { height: 42px; }
.hd.is-compact .nav__link { padding: 14px 20px; }

.hd__burger { display: none; }

/* ── Khối chung ────────────────────────────────────────────────────────── */

.sec { padding: 60px 0; }
.sec--tight { padding: 10px 0 60px; }
.sec--grey { background: var(--grey); }

.sec-head { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.sec-head__title, .sec-title { margin: 0; font: 700 36px var(--head); color: var(--gold); }
.sec-title { margin: 50px 0 30px; font-size: 30px; }
.sec-head__line { flex: 1; height: 1px; background: var(--line); }

.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: #000; }
.more--light { color: #fff; }
.dot {
    display: inline-block; width: 17px; height: 17px; border-radius: 50%;
    background: var(--gold) no-repeat center / 7px
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
    transition: transform .2s;
}
.more:hover .dot { transform: translateX(3px); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 180px; height: 42px; padding: 0 22px;
    border: 1px solid var(--gold); font: 700 16px var(--sans); text-transform: uppercase;
    cursor: pointer; transition: all .3s;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--dark); color: var(--gold); border-color: var(--dark); }
.btn--line { background: #fff; color: var(--gold); }
.btn--line:hover { background: var(--gold); color: #fff; }

.banner img { width: 100%; max-height: 350px; object-fit: cover; }

.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--gold); }

.page__title { font: 700 36px var(--head); color: var(--gold); margin-bottom: 24px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.badge { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 700;
    background: #eee; color: #777; border-radius: 3px; }

/* ── Nội dung soạn (prose) và các khối pgs-* do bundle sinh ──────────────── */

.prose { line-height: 1.6; }
.prose img { height: auto; margin: 12px 0; }
.prose h2, .prose h3 { font-family: var(--head); color: var(--gold); font-weight: 700; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 22px; }
.prose ul { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose a { color: var(--gold); }
.prose strong, .prose b { font-weight: 700; }

.pgs-lead, .lead__txt {
    margin: 0 auto; max-width: 1000px; text-align: center;
    font: 700 30px/1.5 var(--sans); color: #000;
}
.lead { padding: 55px 0 60px; }

/* Khối ảnh–chữ xen kẽ (trang Giới thiệu, Sứ mệnh, Thành tựu, Trách nhiệm cộng đồng,
   và trang công ty). */
.pgs-split, .split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
    margin: 0 0 40px;
}
.pgs-split > figure, .split__img { margin: 0; }
.pgs-split > figure img, .split__img img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
/* Ảnh dọc (bằng khen, chứng nhận) giữ đúng tỉ lệ và cỡ vừa phải, như bản gốc — kéo nó
   đầy nửa cột là một tấm ảnh cao gấp ba khối chữ bên cạnh. */
.pgs-split > figure img { width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; }
.pgs-split--rev > figure, .split--rev .split__img { order: 2; }
.pgs-split__text h2, .split__title { font: 700 36px var(--head); color: var(--gold); margin-bottom: 12px; }
.pgs-split__text { text-align: justify; }
.split__text--center { align-self: center; padding: 0 20px; }
.split + .split { margin-top: -20px; }

/* Hai thẻ liên kết viền vàng dưới khối giới thiệu. */
.pgs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.pgs-cards a {
    text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 22px 20px; border: 1px solid var(--gold);
    font: 700 22px/1.35 var(--sans); color: #000;
}
.pgs-cards a::after {
    content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: var(--gold) no-repeat center / 9px
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.pgs-cards a:hover { background: var(--gold); color: #fff; }

/* Dòng thời gian (trang Thành tựu). */
.pgs-timeline { list-style: none; padding: 0; border-left: 2px solid var(--gold); margin: 10px 0 0 6px; }
.pgs-timeline li { position: relative; padding: 0 0 12px 18px; }
.pgs-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--gold); }

/* ── Trang chủ: video nền ──────────────────────────────────────────────── */

.hv { position: relative; background: #000; overflow: hidden; }
.hv__media { width: 100%; max-height: calc(100vh - var(--hd-h)); object-fit: cover; }
.hv__more {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px; padding: 10px 24px;
    font-size: 15px; color: #fff; background: rgba(0,0,0,.35);
}
.hv__more svg { color: var(--gold); }

/* ── Trang chủ: Lĩnh vực hoạt động ─────────────────────────────────────── */

.fields { background: var(--grey); padding-top: 60px; }
.fields .sec-head { margin-bottom: 40px; }
.fields__stage { position: relative; }
.fields__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.fields__track::-webkit-scrollbar { display: none; }
.fields__slide {
    flex: 0 0 100%; scroll-snap-align: start; min-height: 620px;
    background: #222 center / cover no-repeat; color: #fff; position: relative;
}
.fields__slide::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
.fields__text { position: relative; max-width: 570px; padding-top: 90px; }
.fields__text h3 { font: 400 34px var(--head); margin-bottom: 18px; }
.fields__text p { font-size: 15px; }

.fields__tabs {
    position: absolute; left: 0; right: 0; bottom: 60px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.fields__tab {
    display: flex; flex-direction: column; gap: 10px; padding: 26px 20px 20px;
    background: rgba(0,0,0,.72); color: #fff; border-bottom: 3px solid transparent;
    transition: border-color .3s, background .3s;
}
.fields__tab:hover { color: #fff; background: rgba(0,0,0,.85); }
.fields__tab.is-active { border-bottom-color: var(--gold); }
.fields__tab-name { font: 700 18px var(--sans); text-transform: uppercase; }
.fields__tab-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ── Trang chủ: Tin tức ─────────────────────────────────────────────────── */

.news__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.news__card { position: relative; display: block; overflow: hidden; background: #111; min-height: 190px; }
.news__card--big { grid-row: span 2; min-height: 397px; }
.news__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news__card:hover img { transform: scale(1.05); }
.news__over {
    position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff;
    display: flex; flex-direction: column; gap: 6px;
}
.news__title { font-size: 14px; font-weight: 400; text-transform: uppercase; line-height: 1.35; }
.news__card--big .news__title { font-size: 16px; }

/* ── Trang chủ: Tuyển dụng ─────────────────────────────────────────────── */

.jobs-home__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.jobs-home__card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    min-height: 175px; padding: 26px 20px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.jobs-home__card:hover { color: inherit; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.jobs-home__title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.jobs-home__card .more { font-weight: 400; padding-top: 10px; border-top: 1px solid var(--line); }

/* ── Trang chủ: logo thương hiệu ───────────────────────────────────────── */

.brands {
    padding: 70px 0; background: #fff center / cover fixed no-repeat;
    border-top: 1px solid var(--line);
}
.brands__in { position: relative; display: flex; align-items: center; gap: 14px; }
.brands__track {
    list-style: none; margin: 0; padding: 0; flex: 1;
    display: flex; gap: 50px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.brands__track::-webkit-scrollbar { display: none; }
.brands__item { flex: 0 0 calc((100% - 200px) / 5); scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
/* Logo hiện XÁM, đổi về màu thật khi rê chuột — thay cho cặp ảnh trắng/màu của bản
   gốc bằng MỘT ảnh. */
.brands__item img { max-height: 100px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.brands__item a:hover img, .brands__item:hover img { filter: none; opacity: 1; }
.brands__nav {
    flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--gold); color: #fff; font-size: 18px; display: grid; place-items: center;
}

/* ── Tab (lĩnh vực kinh doanh, chuyên mục tin) ─────────────────────────── */

.tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 30px; background: var(--grey); }
.tabs__item {
    flex: 1 1 auto; padding: 14px 18px; text-align: center;
    font: 700 16px var(--sans); text-transform: uppercase; color: #000;
}
.tabs--fill .tabs__item { flex: 1 1 0; }
.tabs__item.is-active, .tabs__item:hover { background: var(--gold); color: #fff; }

/* ── Kinh doanh: lưới ba cột ───────────────────────────────────────────── */

.biz__desc { white-space: pre-line; max-width: 900px; margin-bottom: 30px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card__img { display: block; aspect-ratio: 370 / 210; overflow: hidden; background: var(--grey); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card__img:hover img { transform: scale(1.04); }
.card__title { margin: 18px 0 10px; font: 500 28px var(--head); color: var(--gold); }
.card__title a:hover { color: #000; }
.card__meta { font-size: 14px; color: var(--muted); }
.card__text { font-size: 15px; }

.facts { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; }
.facts li { padding: 4px 0; }
.facts span { display: inline-block; min-width: 90px; color: var(--muted); }

/* ── Tin tức ───────────────────────────────────────────────────────────── */

.posts { display: grid; gap: 30px; }
.post-card { display: grid; grid-template-columns: 370px 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-card__img { display: block; aspect-ratio: 370 / 240; overflow: hidden; background: var(--grey); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__title { font: 700 20px/1.35 var(--sans); }
.post-card__date { font-size: 14px; color: var(--muted); }

.article__grid { display: grid; grid-template-columns: 1fr 300px; gap: 50px; }
.article__title { font: 700 32px/1.3 var(--sans); color: var(--gold); }
.article__date { font-size: 14px; color: var(--muted); }
.article__tags a { display: inline-block; margin: 0 8px 8px 0; font-size: 14px; color: var(--gold); }
.side__head { font: 700 20px var(--head); color: var(--gold); margin: 0 0 14px; }
.side__list { list-style: none; padding: 0; margin: 0 0 30px; }
.side__list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side__list a[aria-current] { color: var(--gold); font-weight: 700; }
.side__posts { list-style: none; padding: 0; margin: 0; }
.side__posts a { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; font-size: 14px; }
.side__posts img { width: 90px; height: 60px; object-fit: cover; }

/* ── Phân trang ────────────────────────────────────────────────────────── */

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span {
    min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    font-size: 15px;
}
.pager .is-current { background: var(--gold); color: #fff; }

/* ── Tuyển dụng ────────────────────────────────────────────────────────── */

.jobs__filter { display: grid; grid-template-columns: 1.3fr 1fr 1fr 180px; gap: 10px; margin-bottom: 30px; }
.jobs__filter label { display: flex; align-items: center; gap: 8px; }
.jobs__kw { border: 1px solid #ddd; padding: 0 10px; background: #fff; }
.jobs__kw input { border: 0; outline: 0; flex: 1; height: 38px; font: inherit; }
.jobs__filter select { width: 100%; height: 40px; border: 1px solid #ddd; padding: 0 12px; font: inherit; background: #fff; }
.jobs__reset { font-size: 14px; color: var(--muted); }
.jobs__list { list-style: none; margin: 0; padding: 0; }
.jobs__item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.jobs__item.is-expired .jobs__title { color: #888; }
.jobs__title { font: 500 19px var(--head); color: #000; }
.jobs__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 6px 0 0; font-size: 15px; color: #999; }
.jobs__m::before {
    content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -1px;
    background: currentColor; opacity: .8;
    -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain;
}
.jobs__m--cat  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4h6v3h6v13H3V7h6zm2 0v3h2V4z'/%3E%3C/svg%3E"); }
.jobs__m--pin  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E"); }
.jobs__m--date { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H3v18h18V4h-4V2h-2v2H9V2zm-2 8h14v10H5z'/%3E%3C/svg%3E"); }
.jobs__m:not([class*='--'])::before { display: none; }

.job__title { font: 700 32px var(--sans); color: var(--gold); margin-top: 20px; }
.job__sub { font: 500 26px var(--head); color: var(--gold); margin: 30px 0 16px; }
.job__facts { border-collapse: collapse; margin: 20px 0 0; font-size: 15px; }
.job__facts th { text-align: left; font-weight: 700; padding: 5px 20px 5px 0; }
.job__facts td { padding: 5px 0; }
.job__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.job__hint { font-size: 14px; color: var(--muted); }

/* ── Giới thiệu: số liệu ───────────────────────────────────────────────── */

.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats__label { font-weight: 700; margin: 0; }
.stats__value { font: 400 48px var(--sans); color: var(--gold); margin: 4px 0 0; }
.stats__sub { font-size: 14px; color: var(--muted); }

/* ── Liên hệ ───────────────────────────────────────────────────────────── */

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; margin-top: 20px; }
.contact__name { font-weight: 700; }
.contact__branch { margin-bottom: 18px; }
.cform__row { display: block; margin-bottom: 14px; }
.cform__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label span { display: block; font-size: 14px; margin-bottom: 4px; }
.cform input, .cform textarea { width: 100%; border: 1px solid #ddd; padding: 10px 12px; font: inherit; }
.map { margin-top: 40px; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* ── Lỗi ───────────────────────────────────────────────────────────────── */

.err { text-align: center; }
.err__code { font: 700 90px var(--head); color: var(--gold); margin: 0; }
.err__trace { font-size: 13px; color: #999; }

/* ── Chân trang ────────────────────────────────────────────────────────── */

.ft { background: var(--dark); color: #fff; padding: 40px 0 45px; }
.ft__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 30px; text-align: center; }
.ft__head { font-size: 16px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.ft__head--white { color: #fff; }
.ft__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.ft__links li + li { border-left: 1px solid #777; }
.ft__links a { display: block; padding: 0 10px; }
.ft__icons { display: flex; justify-content: center; gap: 8px; }
.ft__icons a {
    width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff;
    display: grid; place-items: center; font-size: 14px;
}
.ft__icons a:hover { background: #fff; color: var(--gold); }
.social-icon { display: block; }

.totop {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff;
    display: grid; place-items: center; font-size: 20px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.totop.is-visible { opacity: 1; visibility: visible; }

/* ── Màn hình hẹp ──────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .nav__link { padding: 15px 16px; }
}

@media (max-width: 1024px) {
    .fields__tabs { gap: 12px; }
    .cards3 { grid-template-columns: repeat(2, 1fr); }
    .article__grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    :root { --hd-h: 70px; }

    /* wrap: khi menu mở, `.nav` (rộng 100%) phải rơi xuống dòng DƯỚI logo — không có
       nó thì menu bị ép đứng cạnh logo. */
    .hd__in { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 70px; }
    .hd__logo { padding: 10px 0; }
    .hd__logo img { height: 50px; }
    .hd.is-compact .hd__logo { position: static; }
    .hd__lang { position: static; order: 2; margin-left: auto; margin-right: 12px; }

    /* Nút menu chỉ hiện khi theme.js chạy (nó bỏ `hidden`). Không có JS thì menu
       hiện nguyên danh sách bên dưới — dài, nhưng bấm được. */
    .hd__burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3;
        width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
    }
    .hd__burger > span:not(.skip) { display: block; height: 2px; background: #fff; }

    .nav { width: 100%; order: 4; }
    .hd.nav--js .nav { display: none; }
    .hd.nav--open .nav { display: block; max-height: calc(100vh - 70px); overflow-y: auto; }
    .nav__list { flex-direction: column; }
    .nav__link { padding: 12px 0; border-top: 1px solid #222; }
    .nav__sub, .nav__sub .nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        background: transparent; color: #ccc; padding: 0 0 6px 14px; min-width: 0;
    }
    .nav__sub a { white-space: normal; padding: 6px 0; }
    .nav__sub li.has-sub > a::after { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .sec { padding: 40px 0; }
    .sec-head { flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
    .sec-head__title, .page__title, .pgs-split__text h2, .split__title { font-size: 26px; }
    .sec-head__line { display: none; }
    .sec-head .more { margin-left: auto; }
    .pgs-lead, .lead__txt { font-size: 20px; }
    .lead { padding: 35px 0; }

    .pgs-split, .split { grid-template-columns: 1fr; gap: 16px; }
    .pgs-split--rev > figure, .split--rev .split__img { order: 0; }
    .split + .split { margin-top: 0; }
    .pgs-cards { grid-template-columns: 1fr; gap: 14px; }
    .pgs-cards a { font-size: 18px; }

    .fields__slide { min-height: 520px; }
    .fields__text { padding-top: 40px; }
    .fields__text h3 { font-size: 26px; }
    .fields__tabs { position: static; grid-template-columns: repeat(2, 1fr); padding-top: 12px; padding-bottom: 12px; background: #111; }

    .news__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .news__card--big { grid-column: span 2; grid-row: auto; min-height: 240px; }

    .jobs-home__grid, .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .brands__item { flex-basis: calc((100% - 50px) / 2); }

    .tabs--fill .tabs__item { flex: 1 1 50%; font-size: 14px; padding: 12px 8px; }
    .cards3 { grid-template-columns: 1fr; }
    .card__title { font-size: 24px; }

    .post-card { grid-template-columns: 1fr; gap: 14px; }
    .jobs__filter { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .cform__row--two { grid-template-columns: 1fr; }

    .ft__grid { grid-template-columns: 1fr; }
    .banner img { max-height: 200px; }
}

@media (max-width: 500px) {
    .jobs-home__grid { grid-template-columns: 1fr; }
    .news__grid { grid-template-columns: 1fr; }
    .news__card--big { grid-column: auto; }
    .stats__value { font-size: 36px; }
}
