/* ============ BIẾN MÀU (đổi màu chủ đạo ở đây) ============ */
:root {
  --xanh: #1b7a4b;        /* màu xanh chủ đạo (thanh trên cùng, nút) */
  --xanh-dam: #135a37;
  --vang: #f5b301;        /* màu nhấn */
  --chu: #222;
  --nen: #f4f6f5;
}

/* ============ CƠ BẢN ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--chu); line-height: 1.6; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.khung { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muc { padding: 56px 0; }
.muc.xam { background: var(--nen); }
.tieu-de { text-align: center; margin-bottom: 32px; }
.tieu-de h2 { font-size: 28px; text-transform: uppercase; color: var(--xanh); }
.tieu-de p { color: #666; max-width: 700px; margin: 8px auto 0; }
.nut { display: inline-block; background: var(--xanh); color: #fff; padding: 10px 22px; border-radius: 4px; font-weight: bold; border: 0; cursor: pointer; }
.nut:hover { background: var(--xanh-dam); }

/* ============ THANH XANH TRÊN CÙNG ============ */
.thanh-tren { background: var(--xanh); color: #fff; font-size: 14px; }
.thanh-tren .khung { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }

/* ============ MENU ============ */
.logo-chu { font-size: 28px; font-weight: 800; letter-spacing: 1px; color: var(--xanh); }
.menu-bao { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 50; }
.menu-bao .khung { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo img { height: 56px; width: auto; }
.menu { display: flex; gap: 22px; list-style: none; font-weight: bold; text-transform: uppercase; font-size: 14px; }
.menu a:hover { color: var(--xanh); }
.hotline { background: var(--vang); padding: 8px 16px; border-radius: 4px; font-weight: bold; white-space: nowrap; }
.nut-menu { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; }

/* ============ BANNER LỚN (trượt tự động) ============ */
.banner { position: relative; height: 420px; overflow: hidden; background: #000; }
.banner .anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.banner .anh.hien { opacity: 1; }
.banner-chu { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; background: rgba(0,0,0,.35); padding: 16px; }
.banner-chu h1 { font-size: 38px; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.banner-chu p { font-size: 18px; margin: 10px 0 20px; }

/* ============ Ô DANH MỤC ẢNH ============ */
.luoi-dm { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.o-dm { position: relative; border-radius: 6px; overflow: hidden; height: 190px; }
.o-dm img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.o-dm:hover img { transform: scale(1.08); }
.o-dm div { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.o-dm b { display: block; text-transform: uppercase; font-size: 14px; }
.o-dm span { font-size: 12px; }

/* ============ GIỚI THIỆU ============ */
.gioi-thieu { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.gioi-thieu img { border-radius: 8px; width: 100%; }
.gioi-thieu h2 { color: var(--xanh); margin-bottom: 10px; }
.gioi-thieu ul { margin: 12px 0 16px 20px; }
.so-nam { font-size: 40px; font-weight: bold; color: var(--xanh); }

/* ============ THẺ (dự án / nhà đất / tin tức) ============ */
.luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.luoi.bon { grid-template-columns: repeat(4, 1fr); }
.the { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.the img { height: 190px; width: 100%; object-fit: cover; }
.the .noidung { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.the h3 { font-size: 16px; line-height: 1.35; }
.the .gia { color: #d32f2f; font-weight: bold; }
.the .phu { font-size: 13px; color: #666; }
.the .xem { margin-top: auto; color: var(--xanh); font-weight: bold; }
.nhan { position: absolute; top: 10px; left: 10px; background: #d32f2f; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.anh-bao { position: relative; }

/* ============ FORM ĐĂNG KÝ ============ */
.dang-ky { background: var(--xanh); color: #fff; text-align: center; }
.dang-ky h2 { text-transform: uppercase; margin-bottom: 8px; }
.dang-ky form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.dang-ky input { padding: 12px; border: 0; border-radius: 4px; min-width: 230px; }
.dang-ky .nut { background: var(--vang); color: #222; }

/* ============ CHÂN TRANG ============ */
.chan { background: #14281d; color: #cfd8d2; padding: 40px 0 0; font-size: 14px; }
.chan .luoi { grid-template-columns: 2fr 1fr 1fr; }
.chan h4 { color: #fff; margin-bottom: 10px; text-transform: uppercase; }
.chan li { list-style: none; margin-bottom: 6px; }
.ban-quyen { text-align: center; padding: 14px; margin-top: 24px; background: #0e1e15; }

/* ============ NÚT LIÊN HỆ NỔI GÓC PHẢI ============ */
.noi { position: fixed; right: 14px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.noi a { width: 48px; height: 48px; border-radius: 50%; color: #fff; font-weight: bold; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.noi .goi { background: #e53935; }
.noi .zalo { background: #0068ff; }

/* ============ ĐIỆN THOẠI / MÁY TÍNH BẢNG ============ */
@media (max-width: 900px) {
  .luoi-dm { grid-template-columns: repeat(3, 1fr); }
  .luoi, .luoi.bon { grid-template-columns: repeat(2, 1fr); }
  .gioi-thieu, .chan .luoi { grid-template-columns: 1fr; }
  .nut-menu { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 20px; gap: 12px; box-shadow: 0 6px 10px rgba(0,0,0,.1); }
  .menu.mo { display: flex; }
  .hotline { display: none; }
  .banner { height: 300px; }
  .banner-chu h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .luoi, .luoi.bon { grid-template-columns: 1fr; }
  .luoi-dm { grid-template-columns: repeat(2, 1fr); }
}
