:root{
  --bg:#f6f8fb;
  --txt:#0e1116;
  --muted:#5f6b7a;
  --line:#e9edf2;
  --green:#33e16f;
  --dark:#0b0d10;
  --card:#ffffff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
body{
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--txt);
}
a{color:inherit}
.gf-container{max-width:1100px;margin:0 auto;padding:0 18px}

/* ===== BLOG NAV (menu cũ ổn định) ===== */
.gf-blog-nav{
  background:var(--dark);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.10);
  position:sticky;
  top:0;
  z-index:50;
}
.gf-blog-nav-inner{
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.gf-blog-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.gf-blog-brand .logo{width:44px;height:44px;object-fit:contain}
.gf-blog-brand .name{font-weight:900;line-height:1.05}
.gf-blog-brand .sub{font-size:12px;opacity:.75;margin-top:2px}

.gf-blog-links{
  display:flex;
  gap:18px;
  font-weight:700;
}
.gf-blog-links a{text-decoration:none;opacity:.9}
.gf-blog-links a.active{color:var(--green);opacity:1}
.gf-blog-links a:hover{opacity:1}

.gf-hot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
}

/* ===== Breadcrumb ===== */
.gf-crumb{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  margin:18px 0 6px;
}
.gf-crumb a{text-decoration:underline}

/* ===== Heading ===== */
.gf-list-head h1{
  margin:0;
  font-size:34px;
  font-weight:900;
  letter-spacing:.2px;
}
.gf-list-head p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.55;
}

/* ===== Grid cards ===== */
.gf-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:16px;
}
.gf-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(10,20,40,.06);
}
.gf-thumb{display:block}
.gf-thumb img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
}
.gf-body{padding:12px 12px 14px}

.gf-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.gf-tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(51,225,111,.12);
  border:1px solid rgba(51,225,111,.25);
  color:#0f172a;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}
.gf-date{font-size:12px;color:var(--muted);white-space:nowrap}

.gf-title{margin:0 0 8px;font-weight:900;line-height:1.18}
.gf-title a{color:#0f172a;text-decoration:none}
.gf-title a:hover{text-decoration:underline}

.gf-excerpt{
  margin:0 0 10px;
  color:var(--muted);
  line-height:1.55;
  font-size:13px;
}
.gf-more{
  text-decoration:none;
  font-weight:900;
  color:#0f172a;
}
.gf-more:hover{text-decoration:underline}

/* ===== Footer ===== */
.gf-foot{
  padding:20px 0;
  color:rgba(255,255,255,.8);
  background:var(--dark);
  margin-top:10px;
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .gf-blog-links{display:none}
  .gf-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 560px){
  .gf-container{padding:0 14px}
  .gf-crumb{margin:12px 0 6px}
  .gf-list-head h1{font-size:30px}
  .gf-grid{grid-template-columns:1fr;gap:14px}
  .gf-thumb img{height:200px}
  .gf-tag{max-width:65vw;overflow:hidden;text-overflow:ellipsis}
}

/* ===== Footer kiểu gf-home (dùng cho blog) ===== */
.gf-footer{padding:34px 0 46px}
.gf-footer-box{
  position:relative;
  background:#0b0d10;
  color:#eef2f7;
  border-radius:28px;
  padding:26px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.2fr 1.3fr auto;
  gap:22px;
  align-items:start;
}
.gf-footer-box:before{
  content:"";
  position:absolute;inset:-200px;
  background:radial-gradient(600px 420px at 20% 10%, rgba(51,225,111,.16), transparent 60%);
  pointer-events:none;
}
.gf-footer-left,.gf-footer-cols,.gf-footer-social{position:relative;z-index:1}

.gf-footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.gf-footer-logo{width:44px;height:44px;object-fit:contain}
.gf-footer-name{font-weight:900}
.gf-footer-sub{font-size:12px;color:rgba(238,242,247,.70)}
.gf-footer-company .ttl{font-weight:900;margin:12px 0 6px}
.gf-footer-company .muted{color:rgba(238,242,247,.72);font-size:13px;line-height:1.55}
.gf-footer-copy{margin-top:18px;color:rgba(238,242,247,.70);font-size:13px}

.gf-footer-cols{
  display:grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap:22px;
}
.gf-footer-cols .h{font-weight:900;margin-bottom:10px}
.gf-footer-cols a{display:block;color:rgba(238,242,247,.75);text-decoration:none;margin:8px 0}
.gf-footer-cols a:hover{color:#fff}
.gf-footer-cols .contact{color:rgba(238,242,247,.80);font-size:13px;line-height:1.7}
.gf-footer-cols .green{color:#33e16f;}

.gf-footer-social{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.gf-footer-social a{
  width:40px;height:40px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(51,225,111,.14);
  border:1px solid rgba(51,225,111,.30);
  color:#d7ffe8;text-decoration:none;font-weight:900;
}

/* Mobile: footer phẳng + không dư khoảng trống */
@media (max-width: 920px){
  .gf-footer-box{grid-template-columns:1fr;gap:18px}
  .gf-footer-cols{grid-template-columns:1fr 1fr;gap:18px}
  .gf-footer-social{flex-direction:row;justify-content:flex-start}
}
@media (max-width: 560px){
  .gf-footer{padding:0}
  .gf-footer-box{
    border-radius:0;
    padding:22px 14px 26px;
  }
  .gf-footer-cols{grid-template-columns:1fr}
}