/* An Gia (xaydung2) — trang chủ y hệt mockup, cỡ đo theo mockup x1.81 (09-28) */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Dancing+Script:wght@600&display=swap");
:root { --ag-green: #16392A; --ag-green2: #1E4D35; --ag-gold: #C9A24B; --ag-ink: #1B2620; --ag-muted: #5F6962; --ag-bg: #F6F5F0; }
body, p, li, a, input, button, h1, h2, h3, .nav > li > a { font-family: "Be Vietnam Pro", sans-serif; }
#top-bar { background: var(--ag-green) !important; min-height: 44px; } #top-bar, #top-bar a, #top-bar span { color: #fff !important; font-size: 15px !important; }
.ag-tb { display: inline-flex; align-items: center; gap: 10px; margin-left: 28px; } .ag-tb img { width: 18px; height: 18px; }
#top-bar .ag-tb img[src*="leaf"] { filter: brightness(0) saturate(100%) invert(71%) sepia(38%) saturate(470%) hue-rotate(356deg); }
#header .header-main { background: #fff !important; }
#header #logo { width: 280px !important; }
#header #logo a { display: flex; align-items: center; gap: 12px; font-size: 36px; font-weight: 800; color: var(--ag-green) !important; line-height: 1; letter-spacing: .02em; position: relative; top: -8px; text-transform: uppercase; }
#header #logo a::before { content: ""; width: 62px; height: 62px; flex: 0 0 62px; background: url(icons/logo.png) center/contain no-repeat; margin-top: 16px; }
#header #logo a::after { content: "KIẾN TRÚC & XÂY DỰNG"; position: absolute; left: 74px; top: 50%; margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ag-green2); }
#header .header-nav-main > li > a { font-size: 16px !important; font-weight: 500 !important; color: var(--ag-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
#header .header-nav-main > li { margin: 0 13px !important; } #header .header-nav-main > li.active > a { font-weight: 700 !important; box-shadow: inset 0 -3px 0 var(--ag-green2); }
#header .header-search i { font-size: 22px !important; color: var(--ag-ink) !important; }
#header .header-button-1 .button { background: var(--ag-green2) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 16px !important; font-weight: 600 !important; height: 52px; line-height: 52px; padding: 0 28px !important; }
.ag-hero .banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,14,.7) 0%, rgba(8,20,14,.35) 45%, rgba(8,20,14,0) 70%); }
.ag-kicker { color: #fff !important; font-size: 15px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px !important; }
.ag-hero-title { color: #fff !important; font-size: 76px !important; line-height: 1.1 !important; font-weight: 800 !important; margin: 0 0 16px !important; } .ag-hero-title span { color: #E0C074; }
.ag-hero-lead { color: #fff !important; font-size: 22px !important; margin: 0 0 30px !important; }
.ag-hero-btns { display: flex; gap: 20px; margin: 0 !important; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 6px; font-weight: 600; font-size: 17px; padding: 0 28px; min-height: 56px; text-decoration: none !important; }
.ag-btn-gold { background: linear-gradient(180deg, #E0C074, #C9A24B); color: var(--ag-green) !important; } .ag-btn-line { border: 1.5px solid #fff; color: #fff !important; }
.ag-btn-sm { min-height: 46px; font-size: 15px; padding: 0 22px; }
.ag-hero-note p { color: #fff !important; font-family: "Dancing Script", cursive !important; font-size: 40px !important; line-height: 1.05 !important; transform: rotate(-8deg); }
.ag-eyebrow { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--ag-green2) !important; font-size: 14px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px !important; }
.ag-eyebrow i { width: 90px; height: 1px; background: var(--ag-green2); }
.ag-h2 { color: var(--ag-green) !important; font-size: 34px !important; font-weight: 800 !important; margin: 0 !important; line-height: 1.2 !important; }
.ag-h2-c { font-size: 42px !important; margin-bottom: 30px !important; }
.ag-feat-row { display: grid; grid-template-columns: repeat(5, 1fr); } .ag-feat-row p { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 22px; margin: 0 !important; border-right: 1px solid #E4E1D8; font-size: 15px; color: var(--ag-muted); line-height: 1.55; }
.ag-feat-row p:last-child { border-right: 0; } .ag-feat-row img { width: 64px; height: 64px; margin-bottom: 14px; } .ag-feat-row b { font-size: 19px; color: var(--ag-ink); margin-bottom: 10px; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 18px 0 16px; border-left: 6px solid var(--ag-green2); padding-left: 16px; }
.ag-head > p { margin: 0 !important; } .ag-head a { color: var(--ag-ink) !important; font-size: 15px; }
.ag-sub { color: var(--ag-muted) !important; font-size: 15px !important; margin: 2px 0 0 !important; }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-card { background: #fff; box-shadow: 0 4px 14px rgba(22,57,42,.08); text-decoration: none !important; display: block; }
.ag-cimg { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.ag-card b { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 16.5px; font-weight: 700; color: var(--ag-ink); } .ag-card i { font-style: normal; font-size: 20px; }
.ag-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.ag-nbig span { display: block; height: 240px; background-size: cover; background-position: center; } .ag-nbig b { display: block; font-size: 21px; color: var(--ag-ink); margin: 12px 0 6px; } .ag-nbig em { font-style: normal; font-size: 15px; color: var(--ag-muted); }
.ag-nlist a { display: flex; gap: 16px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid #E4E1D8; align-items: center; } .ag-nlist img { width: 124px; height: 82px; object-fit: cover; }
.ag-nlist span { display: flex; flex-direction: column; font-size: 14px; color: var(--ag-muted); flex: 1; } .ag-nlist b { font-size: 16px; color: var(--ag-ink); margin-bottom: 4px; } .ag-nlist i { font-style: normal; font-size: 22px; color: var(--ag-ink); }
.ag-right > .col-inner > * + * { margin-top: 20px; }
.ag-cta { background: var(--ag-green); border-radius: 6px; padding: 24px 22px; } .ag-cta p { margin: 0 0 16px !important; color: #fff !important; }
.ag-cta-t { display: flex; gap: 14px; align-items: center; } .ag-cta-t img { width: 44px; height: 44px; } .ag-cta-t span { display: flex; flex-direction: column; font-size: 14.5px; } .ag-cta-t b { font-size: 20px; }
.ag-cta-l { display: flex; gap: 14px; align-items: center; font-size: 15px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; } .ag-cta-l img { width: 34px; height: 34px; } .ag-cta-l b { font-size: 26px; }
.ag-cta .ag-btn { width: 100%; }
.ag-box { background: #fff; border: 1px solid #E4E1D8; padding: 18px 20px; } .ag-box-t { font-size: 22px !important; font-weight: 800 !important; color: var(--ag-green) !important; border-left: 5px solid var(--ag-green2); padding-left: 12px; margin: 0 0 12px !important; }
.ag-links { list-style: none; margin: 0 !important; padding: 0; } .ag-links li { margin: 0 !important; border-bottom: 1px solid #EEEBE3; } .ag-links a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15.5px; color: var(--ag-ink) !important; } .ag-links a::before { content: "›"; margin-right: 10px; } .ag-links a::after { content: "›"; margin-left: auto; }
.ag-mini a { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEEBE3; font-size: 15px; font-weight: 600; color: var(--ag-ink) !important; } .ag-mini img { width: 80px; height: 56px; object-fit: cover; }
.ag-promo-v { display: flex; flex-direction: column; justify-content: flex-end; height: 300px; background-size: cover; background-position: center; padding: 22px; color: #fff !important; text-decoration: none !important; position: relative; } .ag-promo-v::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,57,42,.9), rgba(22,57,42,0) 60%); }
.ag-promo-v b, .ag-promo-v span { position: relative; } .ag-promo-v b { font-size: 30px; line-height: 1.2; margin-bottom: 14px; }
.ag-promo { display: flex; flex-direction: column; justify-content: center; height: 230px; padding: 0 34px; background-size: cover; background-position: center; text-decoration: none !important; position: relative; }
.ag-promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,57,42,.95) 0%, rgba(22,57,42,.6) 40%, rgba(22,57,42,0) 65%); }
.ag-promo-light::before { background: linear-gradient(90deg, rgba(246,243,232,.97) 0%, rgba(246,243,232,.7) 40%, rgba(246,243,232,0) 65%); }
.ag-promo > * { position: relative; } .ag-promo b { font-size: 34px; font-weight: 800; color: #E0C074; } .ag-promo em { font-style: normal; font-size: 21px; color: #fff; margin: 6px 0 18px; }
.ag-promo-light b { color: var(--ag-green); } .ag-promo-light em { color: var(--ag-green2); } .ag-promo .ag-btn { align-self: flex-start; }
.ag-footer p, .ag-footer li, .ag-footer a, .ag-footer span { color: rgba(255,255,255,.88) !important; font-size: 15px !important; }
.ag-footer p.ag-ft-logo { display: flex; align-items: center; gap: 12px; margin: 0 0 14px !important; } .ag-ft-logo img { width: 58px; height: 58px; }
.ag-footer p.ag-ft-logo span { font-size: 30px !important; font-weight: 800; color: #fff !important; line-height: 1; display: flex; flex-direction: column; } .ag-ft-logo small { font-size: 11px; font-weight: 600; margin-top: 4px; text-transform: uppercase; }
.ag-ft-soc { display: flex; gap: 10px; } .ag-ft-soc img { width: 34px; height: 34px; }
.ag-footer h3.ag-ft-title { color: #fff !important; font-size: 19px !important; font-weight: 700 !important; margin: 0 0 16px !important; }
.ag-ft-ul, .ag-ft-list { list-style: none; margin: 0; padding: 0; } .ag-ft-ul li { margin: 0 0 9px !important; } .ag-ft-ul li::before { content: "• "; }
.ag-ft-list li { display: flex; gap: 12px; margin: 0 0 12px !important; } .ag-ft-list img { width: 20px; height: 20px; margin-top: 2px; }
.ag-fbbox { background: #fff; border-radius: 6px; padding: 14px; display: grid; grid-template-columns: 46px 1fr; gap: 6px 12px; align-items: center; } .ag-fbbox img { width: 46px; height: 46px; }
.ag-fbbox span { display: flex; flex-direction: column; color: var(--ag-muted) !important; font-size: 13px !important; } .ag-fbbox b { color: var(--ag-ink); font-size: 16px; } .ag-fbbox a { grid-column: 1 / 3; background: #EEF0F2; color: var(--ag-ink) !important; text-align: center; padding: 6px; border-radius: 4px; font-size: 13.5px !important; }
.ag-ft-bar { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; margin-top: 10px; } .ag-ft-bar img { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.absolute-footer { display: none !important; }
@media (max-width: 849px) {
  .ag-hero-title { font-size: 42px !important; } .ag-h2-c { font-size: 30px !important; } .ag-feat-row { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .ag-grid { grid-template-columns: 1fr 1fr; } .ag-news { grid-template-columns: 1fr; } .ag-hero-btns { flex-wrap: wrap; }
  #header #logo a::after { display: none; } #header #logo a { font-size: 26px; top: 0; } #header #logo a::before { width: 42px; height: 42px; flex-basis: 42px; margin-top: 0; }
}
@media (max-width: 849px) { .ag-hero-note { display: none !important; } .ag-hero-btns .ag-btn { min-height: 48px; font-size: 15px; } }
/* ruler:auto BEGIN — tools/astra-bridge/lab/ruler_fix.py, đừng sửa tay */
@media (min-width: 850px) {
  .ag-box h3.ag-box-t { font-size: 33.0px !important; }
  .ag-footer h3.ag-ft-title { font-size: 23.0px !important; }
  .ag-ft-bar img[src*="/icons/leaf.png"] { width: 26px !important; height: 26px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
  .ag-ft-list img[src*="/icons/phone-w.png"] { width: 26px !important; height: 26px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
  .ag-ft-soc img { width: 46px !important; height: 46px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
  .ag-tb img[src*="/icons/leaf.png"] { width: 26px !important; height: 26px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
}
@media (max-width: 849px) {
  .ag-ft-bar img[src*="/icons/leaf.png"] { width: 18px !important; height: 18px !important; }
  .ag-ft-list img[src*="/icons/phone-w.png"] { width: 20px !important; height: 20px !important; }
  .ag-ft-soc img { width: 34px !important; height: 34px !important; }
  .ag-tb img[src*="/icons/leaf.png"] { width: 18px !important; height: 18px !important; }
}
/* ruler:auto END */
/* ruler:manual 09-29 — auto 33px làm tiêu đề cột phải rớt 2 dòng */
@media (min-width: 850px) { .ag-box h3.ag-box-t { font-size: 23px !important; } }
