/* Gia An JSC – Trang Tin tức – style.css */
:root {--mau-nhan: #A70E13;
  --mau-dam: #1E1F25;
  --mau-dam-2: #26272E;
  --nen: #F7F5F2;
  --nen-kem: #F4F0EA;
  --nen-nga: #FBF9F6;
  --trang: #FFFFFF;
  --chu-phu: #4A5560;
  --chu-mo: #5A6370;
  --chu-dam: #3A3D45;
  --chu: #222222;}
*, *::before, *::after {box-sizing: border-box;}
body {margin: 0; background: var(--nen);}
a {color: inherit; text-decoration: none;}
a:hover {opacity: .85;}
a:focus-visible {outline: 2px solid var(--mau-nhan); outline-offset: 3px;}
img {max-width: 100%;}
.trang {font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif; color: var(--chu); background: var(--nen); font-size: 17px; line-height: 1.7}
.dau-trang-1 {position: relative;
  overflow: hidden;
  background: #2B2C30;}
.dau-trang-2 {position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;}
.dau-trang-3 {position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;}
.dau-trang-4 {display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;}
.dau-trang-5 {display: block;}
.dau-trang-6 {height: 52px;
  width: auto;
  display: block;}
.dau-trang-7 {display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--trang);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;}
.dau-trang-8 {display: flex;
  align-items: center;
  gap: 8px;}
.dau-trang-9 {background: var(--mau-nhan);
  color: var(--trang);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 0 20px;}
.dau-trang-10 {display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  font-size: 15px;
  font-weight: 500;}
.dau-trang-11 {padding: 16px 0;}
.dau-trang-12 {padding: 16px 0;
  font-weight: 700;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--trang);}
.dau-trang-13 {font-size: 15px;
  font-weight: 600;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;}
.dau-trang-14 {padding: 36px 0 44px;
  text-align: center;
  color: var(--trang);}
.dau-trang-15 {margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;}
.nhan {margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mau-nhan);}
.nhan-toi {color: #F2A9AC;}
.tieu-de-khoi {margin: -8px 0 4px;
  font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--mau-dam);
  text-wrap: balance;}
.tieu-de-khoi-toi {color: var(--trang);}
.doan {margin: 0; color: var(--chu-phu);}
.doan strong {font-weight: 600; color: var(--mau-dam);}
.nut-hang {display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;}
.nut {display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;}
.nut:hover {opacity: 1; transform: translateY(-1px);}
.nut-do {background: var(--mau-nhan); color: var(--trang);}
.nut-do:hover {background: #8C0B10;}
.nut-vien {border: 1.5px solid var(--mau-dam); color: var(--mau-dam);}
.nut-vien:hover {background: var(--mau-dam); color: var(--trang);}
.nut-vien-toi {border: 1.5px solid var(--trang); color: var(--trang);}
.nut-vien-toi:hover {background: var(--trang); color: var(--mau-dam);}
.nut svg {flex: none;}
button.nut {font-family: inherit; background: transparent; cursor: pointer;}
.pa-n-5 {position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--trang); color: var(--mau-dam); font-size: 15px; font-weight: 600; line-height: 1.2;}
.pa-n-5::before {content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mau-nhan);}
.nut-trang {background: var(--trang); color: var(--mau-nhan);}
.nut-trang:hover {background: #FBEAEA;}
.tu-van-1 {background: var(--trang);}
.tu-van-2 {max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: center;}
.tu-van-3 {display: flex;
  flex-direction: column;
  gap: 20px;}
.tu-van-4 {list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;}
.tu-van-5 {display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--nen);
  border-radius: 6px;
  transition: background-color .2s ease;}
.tu-van-5:hover {opacity: 1; background: #F0ECE6;}
.tu-van-6 {width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--mau-nhan);
  display: flex;
  align-items: center;
  justify-content: center;}
.tu-van-6 svg {width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--trang);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;}
.tu-van-7 {display: flex;
  flex-direction: column;
  min-width: 0;}
.tu-van-8 {font-size: 15px;
  color: var(--chu-mo);
  line-height: 1.4;}
.tu-van-9 {font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mau-dam);
  overflow-wrap: anywhere;}
.chan-trang-1 {background: var(--nen-kem);
  color: var(--chu-phu);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid #E4DDD2;}
.chan-trang-2 {max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 0;}
.chan-trang-3 {height: 56px;
  width: auto;
  display: block;
  margin-bottom: 32px;}
.chan-trang-4 {display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px 64px;
  padding-bottom: 56px;}
.chan-trang-5 {flex: 0 1 540px;
  min-width: 0;}
.chan-trang-6 {margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mau-dam);
  text-transform: uppercase;
  letter-spacing: 0.01em;}
.chan-trang-7 {display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;}
.chan-trang-8 {font-weight: 700;
  color: var(--mau-dam);}
.chan-trang-9 {flex: none;}
.chan-trang-10 {margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mau-dam);}
.chan-trang-11 {display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 48px;}
.chan-trang-12 {color: var(--chu-phu);}
.chan-trang-13 {display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 12px;}
.chan-trang-14 {width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mau-nhan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trang);}
.chan-trang-15 {border-top: 1px solid #DCD4C9; 
  padding: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--chu-mo);}
.chan-trang-16 {margin: 0;}
html {scroll-behavior: smooth;}
.dau-trang-2 {animation: troi-cham 24s ease-in-out infinite alternate; transform-origin: 60% 40%;}
@keyframes troi-cham {
  from { transform: scale(1); }
  to { transform: scale(1.08) translateX(-1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  html {scroll-behavior: auto;}
  .nut {transition: none !important; transform: none !important;}
  .dau-trang-2 {animation: none;}
}
@media (max-width: 1024px) {
  .ga-nav {flex: 1 1 0;
    min-width: 0;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;}
}
@media (max-width: 900px) {
  .tu-van-2 {grid-template-columns: minmax(0, 1fr);
    gap: 40px;}
}
@media (max-width: 760px) {
  .tu-van-2 {padding-top: 72px; padding-bottom: 72px;}
  .ga-nav {flex: 1 1 100% !important; gap: 0 24px !important;}
  .mxh {grid-template-columns: repeat(4, 44px) !important;}
}
.mui-ten {transition: transform .2s ease;}
[aria-expanded="true"] .mui-ten {transform: rotate(180deg);}
.kh-loc {list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px;}
.kh-loc a {box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 1px 16px 0; border-radius: 999px; background: var(--trang); border: 1px solid #E6E0D7; font-size: 15px; font-weight: 500; line-height: 1; color: var(--chu-dam); transition: background-color .2s ease, color .2s ease, border-color .2s ease;}
.kh-loc a:hover {opacity: 1; border-color: var(--mau-dam);}
.kh-loc a[aria-current="page"] {background: var(--mau-nhan); border-color: var(--mau-nhan); color: var(--trang); font-weight: 600;}
.kh-loc-khoi {display: flex; flex-direction: column; gap: 14px;}
.kh-loc-nhom {display: flex; align-items: flex-start; gap: 16px; min-width: 0;}
.kh-loc-nhan {flex: none; width: 84px; line-height: 42px; font-size: 15px; font-weight: 600; color: var(--chu-mo);}
.kh-the {display: flex; flex-direction: column; gap: 14px;}
.kh-the-anh {display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--nen-kem);}
.kh-the-anh img {width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1);}
.kh-the-anh:hover {opacity: 1;}
.kh-the-anh:hover img {transform: scale(1.04);}
.kh-the-nhan {font-size: 14px; font-weight: 600; color: var(--mau-nhan); line-height: 1.3;}
.kh-the-ten {margin: -6px 0 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--mau-dam); text-wrap: pretty;}
@media (prefers-reduced-motion: reduce) {
  .kh-the-anh img {transition: none !important; transform: none !important;}
}
@media (max-width: 760px) {
  .kh-the-ten {font-size: 15px;}
  .kh-loc-nhom {flex-direction: column; align-items: flex-start; gap: 8px;}
  .kh-loc-nhan {width: auto; line-height: 1.4;}
  .kh-loc a {white-space: nowrap; height: 40px; padding: 1px 14px 0; font-size: 14px;}
}
.lc-vet {display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.82);}
.lc-vet a:hover {color: var(--trang); opacity: 1;}
.lc-loc button {font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 1px 16px 0; border-radius: 999px; background: var(--trang); border: 1px solid #E6E0D7; font-size: 15px; font-weight: 500; line-height: 1; color: var(--chu-dam); transition: background-color .2s ease, color .2s ease, border-color .2s ease;}
.lc-loc button:hover {border-color: var(--mau-dam);}
.lc-loc button:focus-visible {outline: 2px solid var(--mau-nhan); outline-offset: 3px;}
.lc-loc button[aria-pressed="true"] {background: var(--mau-nhan); border-color: var(--mau-nhan); color: var(--trang); font-weight: 600;}
.lc-loc button[aria-pressed="true"] .lc-so {color: #F6D9DA;}
.lc-loc-khoi[hidden], .lc-cuoi[hidden], .nut[hidden] {display: none;}
.lc-cham {display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 8px; vertical-align: middle; opacity: .6;}
.lc-cuoi {display: flex; flex-direction: column; align-items: center; gap: 14px;}
@media (max-width: 760px) {
  .lc-loc button {height: 40px; padding: 1px 14px 0; font-size: 14px; white-space: nowrap;}
}

/* ===== TRANG TIN TỨC ===== */
.tin-nb-1 { background: var(--trang); }
.tin-nb-2 { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.tin-nb-anh { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--nen-kem); }
.tin-nb-anh img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tin-nb-anh:hover { opacity: 1; }
.tin-nb-anh:hover img { transform: scale(1.04); }
.tin-nb-3 { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tin-nb-3 .tieu-de-khoi a:hover { opacity: 1; color: var(--mau-nhan); }
.tin-ngay { margin: 0; font-size: 15px; font-weight: 600; color: var(--mau-nhan); }
.tin-nb-trich { margin: 0; color: var(--chu-phu); }
.tin-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tin-the-anh { aspect-ratio: 4 / 3; }
.tin-the-trich { margin: 0; font-size: 15px; line-height: 1.6; color: var(--chu-phu); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kh-the-ten a:hover { opacity: 1; color: var(--mau-nhan); }
.kh-ct-luoi li[hidden], .lc-loc-khoi[hidden], .lc-cuoi[hidden], .nut[hidden] { display: none; }
.kh-dt-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.kh-dt-4 { display: flex; flex-direction: column; gap: 20px; }
.kh-ct-1 { background: var(--nen-nga); scroll-margin-top: 16px; }
.kh-ct-2 { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 40px; }
.kh-ct-luoi { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 24px; }
@media (prefers-reduced-motion: reduce) { .tin-nb-anh img { transition: none !important; transform: none !important; } }
@media (max-width: 1024px) { .tin-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tin-nb-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kh-dt-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .tin-nb-2, .kh-ct-2 { padding-top: 72px; padding-bottom: 72px; }
  .tin-luoi { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kh-the-ten { font-size: 16px; }
  .kh-loc-nhom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kh-loc-nhan { width: auto; line-height: 1.4; }
}

/* ===== Cập nhật 03/11/2026 theo góp ý ===== */
.kh-loc-nhan {width: 108px; white-space: nowrap;}
.lc-loc button {white-space: nowrap;}
.tin-cm {display: inline-block; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: #F6E3E4; color: var(--mau-nhan); font-size: 12px; font-weight: 600; letter-spacing: .02em; vertical-align: middle;}
.tin-cm-nganh {background: #E3ECF4; color: #1F4E79;}
.tin-trong {margin: 0; color: var(--chu-mo);}
#bai-viet .kh-dt-3 .tieu-de-khoi {margin-bottom: 0; line-height: 1.2;}
.tin-mo-ta {max-width: 460px; justify-self: end; line-height: 1.6;}
@media (max-width: 1024px) {
  .tin-mo-ta {justify-self: start; max-width: none;}
  .ga-nav {flex-wrap: wrap !important; overflow-x: visible; white-space: normal; gap: 0 22px !important;}
  .ga-nav .dau-trang-11, .ga-nav .dau-trang-12 {padding-top: 12px; padding-bottom: 12px; white-space: nowrap;}
  .ga-nav .dau-trang-12 {padding-bottom: 9px;}
}
@media (max-width: 760px) {
  .kh-loc-nhom .lc-loc {flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none;}
  .kh-loc-nhom {min-width: 0; max-width: 100%;}
  .lc-loc li {flex: none;}
}

/* ===== NÚT CHỌN NGÔN NGỮ (ga-lang) – chốt 19/11/2026 ===== */
.dau-trang-7{margin-left:auto}
.ga-lang{position:relative;flex:none}
.ga-lang__nut{all:unset;cursor:pointer;display:flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid #D9D1C5;border-radius:999px;background:#FBF9F6;color:#3A3D45;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.04em;box-sizing:border-box;transition:border-color .2s,color .2s,background .2s}
.ga-lang__nut:hover,.ga-lang.mo .ga-lang__nut{border-color:#A70E13;color:#A70E13}
.ga-lang__nut:focus-visible{outline:2px solid #A70E13;outline-offset:2px}
.ga-lang__mui{transition:transform .2s}.ga-lang.mo .ga-lang__mui{transform:rotate(180deg)}
.ga-lang__ds{position:absolute;right:0;top:calc(100% + 8px);z-index:50;min-width:200px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #E6DFD4;border-radius:12px;box-shadow:0 12px 32px rgba(30,31,37,.14);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s,transform .18s,visibility .18s}
.ga-lang.mo .ga-lang__ds{opacity:1;visibility:visible;transform:none}
.ga-lang__ds li{margin:0;padding:0}
.ga-lang__ds a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;font-size:14px;font-weight:500;line-height:1.4;color:#222 !important;text-decoration:none}
.ga-lang__ds b{display:inline-flex;justify-content:center;min-width:28px;padding:2px 0;border-radius:5px;background:#F4F0EA;font-size:11px;font-weight:700;letter-spacing:.05em;color:#5A6370}
.ga-lang__ds a:hover{background:#F4F0EA;color:#A70E13 !important}
.ga-lang__ds a.is-on{color:#A70E13 !important;font-weight:600}.ga-lang__ds a.is-on b{background:#A70E13;color:#fff}
.ga-lang__ds i{margin-left:auto;font-style:normal;font-size:13px}
/* Biến thể nền tối (trang con nền đá) */
.ga-lang--toi .ga-lang__nut{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.45);color:#fff}
.ga-lang--toi .ga-lang__nut:hover,.ga-lang--toi.mo .ga-lang__nut{background:rgba(255,255,255,.16);border-color:#fff;color:#fff}
@media (min-width:761px) and (max-width:1180px){
 .dau-trang-4{flex-wrap:nowrap}
 .dau-trang-7{flex:1 1 auto;min-width:0;justify-content:flex-end;gap:4px 20px;font-size:14px}
}
@media (max-width:760px){
 .dau-trang-5{order:0}
 .ga-lang{order:1;margin-left:auto}
 .ga-menu{order:2}
 .dau-trang-7{order:3;flex:1 1 100%;margin-left:0}
 .ga-lang__nut{height:44px;padding:0 14px}
 .ga-lang__ds a{padding:12px 10px}
}
/* ===== HẾT NÚT CHỌN NGÔN NGỮ ===== */

/* ===== TRANG CÔNG TRÌNH /portfolio – 19/11/2026 ===== */
/* Khối "Mới hoàn thành" + bộ lọc giữ nguyên như trang Khách hàng */
.kh-ct-luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kh-the-anh { aspect-ratio: 4 / 5; }
/* Phân trang */
.pf-trang { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-top: 8px; }
.pf-so, .pf-tiep { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; height: 42px; padding: 1px 14px 0; border-radius: 999px; background: var(--trang); border: 1px solid #E6E0D7; font-size: 15px; font-weight: 500; line-height: 1; color: var(--chu-dam); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pf-so:hover, .pf-tiep:hover { opacity: 1; border-color: var(--mau-dam); }
.pf-so.is-on { background: var(--mau-nhan); border-color: var(--mau-nhan); color: var(--trang); font-weight: 600; }
.pf-tiep { padding: 1px 18px 0; font-weight: 600; }
.pf-ba { min-width: 24px; text-align: center; color: var(--chu-mo); }
@media (max-width: 1024px) { .kh-ct-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .kh-ct-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .pf-so, .pf-tiep { height: 40px; min-width: 40px; font-size: 14px; }
}
