/* =================== BLOG / BÀI VIẾT =================== */

/* ----- Page hero banner ----- */
.blog-hero {
  position: relative;
  background:
    linear-gradient(90deg, var(--cream-light) 0%, rgba(245, 236, 219, 0.72) 42%, rgba(245, 236, 219, 0.1) 100%),
    url('./top.jpg?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  border-bottom: 1px solid rgba(177, 61, 44, 0.1);
}
.blog-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.blog-hero-title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--red-deep);
  line-height: 1;
  margin-bottom: 16px;
}
.blog-hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--red);
  text-transform: uppercase;
}
.blog-hero-sub .diamond { color: var(--gold); font-size: 14px; }

.blog-hero-badge {
  flex-shrink: 0;
  background: var(--red);
  color: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 22px 30px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(132, 38, 23, 0.35);
}
.blog-hero-badge .b-main {
  display: block;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
}
.blog-hero-badge .b-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 3px;
}

/* ----- Filters bar ----- */
.blog-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 32px 60px;
}
.blog-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 9px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}
.filter-pill:hover { color: var(--red); border-color: rgba(177, 61, 44, 0.3); }
.filter-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.blog-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}
.blog-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  width: 180px;
}
.blog-search input::placeholder { color: var(--muted); }
.blog-search svg { color: var(--red); flex-shrink: 0; }

/* ----- Layout: articles + sidebar ----- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ----- Post card ----- */
.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.07);
  border: 1px solid rgba(217, 200, 168, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(44, 24, 16, 0.14);
}
.post-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(177, 61, 44, 0.92);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
}
.post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}
.post-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cream-soft);
  padding-top: 14px;
}
.post-meta {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg { color: var(--red); }
.post-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.post-arrow:hover { background: var(--red); color: #fff; transform: translateX(2px); }

/* ----- Sidebar ----- */
.blog-sidebar { display: flex; flex-direction: column; gap: 26px; }
.side-box {
  background: #fff;
  border: 1px solid rgba(217, 200, 168, 0.5);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.06);
}
.side-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--red);
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--red);
}
.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-soft);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.25s, padding-left 0.25s;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { color: var(--red); padding-left: 5px; }
.cat-count {
  background: var(--cream);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.feat-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-soft);
  cursor: pointer;
}
.feat-item:first-of-type { padding-top: 0; }
.feat-item:last-child { border-bottom: none; padding-bottom: 0; }
.feat-thumb {
  width: 66px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.feat-info .feat-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 5px;
  transition: color 0.25s;
}
.feat-item:hover .feat-title { color: var(--red); }
.feat-date {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.feat-date svg { color: var(--red); }

/* ----- Sidebar CTA ----- */
.side-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--red), var(--red-deep));
  border-radius: 14px;
  padding: 26px 24px;
  text-align: center;
  color: var(--cream-light);
}
.side-cta p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.side-cta .btn { position: relative; z-index: 2; }
.side-cta .cta-deco {
  position: absolute;
  right: -10px;
  bottom: -16px;
  opacity: 0.85;
  pointer-events: none;
}

/* ----- Pagination ----- */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* =================== ARTICLE DETAIL =================== */

/* ----- Breadcrumb ----- */
.article-breadcrumb {
  background: #fff;
  border-bottom: 1px solid rgba(177, 61, 44, 0.1);
}
.article-breadcrumb .crumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--red);
  font-weight: 600;
  transition: color 0.25s;
}
.article-breadcrumb a:hover { color: var(--red-deep); }
.article-breadcrumb .sep { color: var(--line); }
.article-breadcrumb .crumb-current {
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Layout reuse: article + sidebar ----- */
.article-wrap { padding-top: 36px; }

/* ----- Main article column ----- */
.article-main {
  background: #fff;
  border: 1px solid rgba(217, 200, 168, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(44, 24, 16, 0.07);
}
.article-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(132, 38, 23, 0.4);
}
.article-hero-badge .b-main {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
}
.article-hero-badge .b-sub {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--gold-light);
}
.article-inner { padding: 34px 40px 40px; }

.article-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--cream-soft);
}
.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
.article-meta .meta-item svg { color: var(--red); }
.article-share {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.article-share .share-label {
  font-size: 12.5px;
  color: var(--muted);
}
.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.share-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--cream-light);
}

/* ----- Article body ----- */
.article-body { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); }
.article-body .lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.8;
  margin-bottom: 30px;
}
.article-body h2 {
  position: relative;
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  margin: 38px 0 18px;
  padding-bottom: 13px;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}
.article-body p { margin-bottom: 18px; text-align: justify; }
.article-body .body-img {
  border-radius: 12px;
  overflow: hidden;
  margin: 26px 0;
  box-shadow: 0 8px 22px rgba(44, 24, 16, 0.12);
}
.article-body .body-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body .body-img.float-right {
  float: right;
  width: 46%;
  margin: 6px 0 18px 24px;
}
.article-body .clearfix::after { content: ''; display: table; clear: both; }

.article-quote {
  position: relative;
  border-left: 4px solid var(--red);
  background: var(--cream-light);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 36px 0;
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  color: var(--red-deep);
  line-height: 1.75;
}

/* ----- Prev / Next ----- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--cream-soft);
}
.article-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--cream-light);
  border: 1px solid rgba(217, 200, 168, 0.5);
  border-radius: 12px;
  transition: all 0.25s ease;
}
.article-nav-item.prev { flex-direction: row; }
.article-nav-item.next { flex-direction: row-reverse; text-align: right; }
.article-nav-item:hover { background: var(--cream); border-color: var(--red); }
.article-nav-item .nav-ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.article-nav-item .nav-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.article-nav-item .nav-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 4px;
}

/* ----- Sidebar info box ----- */
.side-info {
  position: relative;
  overflow: hidden;
}
.side-info p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.side-info .info-deco { position: absolute; right: -6px; bottom: -6px; opacity: 0.6; pointer-events: none; }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr 280px; }
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-hero-badge { display: none; }
  .blog-hero-title { font-size: 42px; }
  .article-inner { padding: 28px 24px 32px; }
  .article-title { font-size: 27px; }
  .article-hero { height: 260px; }
  .article-body .body-img.float-right { float: none; width: 100%; margin: 24px 0; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-search { margin-left: 0; width: 100%; }
  .blog-search input { width: 100%; }
  .blog-hero-title { font-size: 34px; }
  .article-meta .article-share { margin-left: 0; width: 100%; }
  .article-nav { grid-template-columns: 1fr; }
  .article-hero-badge { padding: 10px 16px; }
  .article-hero-badge .b-main { font-size: 18px; }
}
