:root {
  --gb-blog-bg: #f5eee7;
  --gb-blog-surface: #fffaf6;
  --gb-blog-brown: #4f2b22;
  --gb-blog-gold: #c5923f;
  --gb-blog-ink: #463934;
  --gb-blog-muted: #8b7f78;
}

.gb-blog-page {
  min-height: 600px;
  padding-bottom: 70px;
  background: var(--gb-blog-bg);
  color: var(--gb-blog-ink);
}

.gb-blog-hero {
  position: relative;
  height: 215px;
  background-position: center;
  background-size: cover;
}

.gb-blog-hero span {
  position: absolute;
  inset: 0;
  background: rgba(32, 20, 15, 0.28);
}

.gb-blog-container {
  max-width: 1180px;
  margin: auto;
  padding: 32px 22px;
}

.gb-blog-breadcrumb {
  margin-bottom: 8px;
  color: #9a8d84;
  font-family: Georgia, serif;
  font-size: 14px;
}

.gb-blog-breadcrumb a { color: inherit; }
.gb-blog-breadcrumb span { margin: 0 5px; }

.gb-blog-page h1 {
  margin: 0 0 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(79, 43, 34, 0.12);
  color: var(--gb-blog-brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 56px;
  line-height: 1.1;
}

.gb-blog-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: thin;
  white-space: nowrap;
}

.gb-blog-categories a {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--gb-blog-brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
}

.gb-blog-categories a.active,
.gb-blog-categories a:hover {
  border-color: rgba(197, 146, 63, 0.55);
  background: #fbf1df;
  color: #6d421e;
}

.gb-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 22px;
  margin-top: 25px;
}

.gb-blog-card {
  overflow: hidden;
  border-radius: 17px;
  background: var(--gb-blog-surface);
  box-shadow: 0 12px 26px rgba(79, 43, 34, 0.06);
}

.gb-blog-card-image {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #e8dfd6;
}

.gb-blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gb-blog-card:hover img { transform: scale(1.045); }

.gb-blog-card time {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  width: 58px;
  height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 43, 34, 0.25);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.12);
  color: #5c4a42;
  font-family: Georgia, serif;
}

.gb-blog-card time b { font-size: 17px; }
.gb-blog-card time span { font-size: 12px; }
.gb-blog-card-body { padding: 15px 16px 19px; }

.gb-blog-card-cat {
  color: var(--gb-blog-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gb-blog-card-cat a { color: inherit; }

.gb-blog-card h2 {
  margin: 7px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1.22;
}

.gb-blog-card h2 a { color: var(--gb-blog-brown); }

.gb-blog-card p {
  margin: 0;
  color: var(--gb-blog-muted);
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
}

.gb-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}

.gb-blog-pagination .page-numbers {
  display: flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 43, 34, 0.17);
  border-radius: 50%;
  color: var(--gb-blog-brown);
  font-weight: 700;
}

.gb-blog-pagination .current,
.gb-blog-pagination a:hover {
  border-color: var(--gb-blog-brown);
  background: var(--gb-blog-brown);
  color: #fff;
}

.gb-blog-empty {
  margin-top: 25px;
  padding: 35px;
  background: #fff;
  text-align: center;
}

/* Trang bài viết chi tiết */
body.single-post { background: var(--gb-blog-bg); }
body.single-post .article-inner { max-width: 960px; margin: auto; }
body.single-post .entry-header-text { padding: 35px 20px; }
body.single-post .entry-header-text .entry-category { color: var(--gb-blog-gold); }
body.single-post .entry-title { font-size: 48px; line-height: 1.15; }
body.single-post .entry-content { color: #514944; font-size: 17px; line-height: 1.8; }
body.single-post .entry-content h2 { margin-top: 38px; color: var(--gb-blog-brown); font-size: 34px; }
body.single-post .entry-content h3 { margin-top: 28px; color: var(--gb-blog-brown); font-size: 26px; }
body.single-post .entry-content img { border-radius: 8px; }
body.single-post .blog-share,
body.single-post .entry-author { border-color: rgba(79, 43, 34, 0.13); }

body.single-post .ez-toc-container,
body.single-post .lwptoc,
body.single-post #toc_container {
  width: 100% !important;
  margin: 20px 0 28px !important;
  padding: 20px !important;
  border: 1px solid rgba(79, 43, 34, 0.17) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 1024px) {
  .gb-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gb-blog-page h1 { font-size: 46px; }
}

@media (max-width: 768px) {
  .gb-blog-page { padding-bottom: 45px; }
  .gb-blog-hero { height: 190px; }
  .gb-blog-container { padding: 22px 18px; }
  .gb-blog-page h1 { font-size: 38px; }
  .gb-blog-categories { margin-right: -18px; }
  .gb-blog-categories a { padding: 9px 13px; font-size: 16px; }
  .gb-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .gb-blog-card-image { height: 230px; }
  .gb-blog-card h2 { font-size: 22px; }
  body.single-post .entry-title { font-size: 34px; }
  body.single-post .entry-content { font-size: 16px; }
  body.single-post .entry-content h2 { font-size: 28px; }
}