/* ===============================
   BLOG PAGE
================================ */

.blog-page {
  max-width: 1150px;
  margin: 0 auto;
  padding: 80px 30px 100px;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* ===============================
   HEADER
================================ */

.blog-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
  padding: 20px 20px 20px;
}

.blog-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #333;
}

.blog-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 720px;
  margin: auto;
  line-height: 1.8;
}

/* ===============================
   LIST
================================ */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-row {
  display: flex;
  gap: 28px;
  padding: 26px;
  background: #fff;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
  transition: 0.35s;
}

.blog-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
}

/* THUMB */

.blog-row-thumb {
  flex: 0 0 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 14px;
  background: #eee;
}

.blog-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog-row:hover img {
  transform: scale(1.08);
}

/* CONTENT */

.blog-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 180px;
}

.blog-row-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #c62828;
  margin-bottom: 10px;
}

.blog-row-excerpt {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.65;
  overflow: hidden;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* META */

.blog-row-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: #777;
}

.blog-row-readmore {
  color: #c62828;
  font-weight: 700;
}

/* ===============================
   DETAIL BACK
================================ */

.detail-back {
  max-width: 920px;
  margin: 60px auto 20px;
}

.back-link {
  display: inline-block;
  padding: 10px 24px;
  background: #c62828;
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   DETAIL ARTICLE
================================ */

.blog-detail {
  max-width: 920px;
  margin: 0 auto 80px;
  padding: 50px 55px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.detail-header {
  text-align: center;
  margin-bottom: 40px;
}

.detail-header h1 {
  font-size: 2.4rem;
  color: #c62828;
}

.detail-featured {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: 14px;
  overflow: hidden;
}

.detail-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #333;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
  .blog-row {
    flex-direction: column;
  }

  .blog-row-thumb {
    width: 100%;
    height: 230px;
  }

  .blog-row-content {
    height: auto;
  }

  .blog-detail {
    padding: 35px 28px;
  }
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.blog-pagination .page-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.blog-pagination .page-btn:hover {
  background: #f3f3f3;
}

.blog-pagination .active {
  background: #800000;
  color: #fff;
  border-color: #800000;
}
