/* 智能文字颜色选择器 - Đảm bảo độ tương phản */
.page-blog__hero-section.page-blog__light-bg .page-blog__hero-title,
.page-blog__hero-section.page-blog__light-bg .page-blog__hero-description {
  color: #333333; /* 浅色背景配深色文字 */
}

.page-blog__latest-posts.page-blog__light-bg .page-blog__section-title,
.page-blog__content-area.page-blog__light-bg .page-blog__section-title,
.page-blog__content-area.page-blog__light-bg .page-blog__sub-section-title,
.page-blog__content-area.page-blog__light-bg .page-blog__text-block p,
.page-blog__content-area.page-blog__light-bg .page-blog__text-block li,
.page-blog__cta-bottom p {
  color: #333333; /* 浅色背景配深色文字 */
}

.page-blog__blog-card-title {
  color: #E53935; /* Sử dụng màu thương hiệu cho tiêu đề thẻ */
}

.page-blog__blog-date {
  background: #FFFFFF;
  color: #E53935;
  border: 1px solid #E0E0E0;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.page-blog__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

/* HERO 主图区域 */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* 约 10px 级顶距 */
  background-color: #F5F7FA; /* Nền sáng */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-blog__hero-image-container {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao cho hình ảnh chính */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content-wrapper {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 15px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Phần bài viết mới nhất */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #E53935;
  border-radius: 2px;
}

/* Blog ba cột lưới */
.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop 3 cột */
  gap: 30px;
}

.page-blog__blog-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Tỷ lệ 16:9 */
  overflow: hidden;
}

.page-blog__blog-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Góc ngày tháng */
.page-blog__blog-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #FFFFFF;
  color: #E53935;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-blog__blog-date span {
  display: block;
}

.page-blog__blog-card-body {
  padding: 20px;
  text-align: center;
}

.page-blog__blog-card-title-link {
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.page-blog__blog-card-title-link:hover .page-blog__blog-card-title {
  color: #FF5A4F;
}

.page-blog__blog-divider {
  width: 50px;
  height: 3px;
  background: #E0E0E0;
  margin: 15px auto;
  border-radius: 2px;
}

.page-blog__blog-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Khu vực nội dung dài */
.page-blog__content-area {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-blog__sub-section-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #E53935;
  text-align: center;
}

.page-blog__text-block {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #333333;
  text-align: justify;
}

.page-blog__text-block p {
  margin-bottom: 1em;
}

.page-blog__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-blog__text-block li {
  margin-bottom: 0.5em;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* FAQ */
.page-blog__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-blog__faq-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  background-color: #f9f9f9;
  border-bottom: 1px solid #E0E0E0;
}

.page-blog__faq-question:hover {
  background-color: #f0f0f0;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #E53935;
  color: #ffffff;
  border-bottom: 1px solid #E53935;
}

.page-blog__faq-item[open] .page-blog__faq-question .page-blog__faq-toggle {
  content: '-';
  transform: rotate(180deg);
  color: #ffffff;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  background-color: #FFFFFF;
}

.page-blog__faq-answer p {
  margin-bottom: 0;
}

.page-blog__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-blog__cta-bottom p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #333333;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Mobile top padding */
    padding-bottom: 30px;
  }

  .page-blog__hero-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Blog ba cột lưới */
  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Mobile 1 cột */
    gap: 20px;
  }

  /* Góc ngày tháng */
  .page-blog__blog-date {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 0.8em;
  }

  .page-blog__blog-card-body {
    padding: 15px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2em;
  }

  .page-blog__blog-excerpt {
    font-size: 0.9em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__sub-section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__content-image {
    margin: 20px auto;
  }

  /* FAQ */
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-blog__cta-bottom {
    padding: 20px;
  }

  .page-blog__cta-bottom p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Universal image and container adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__content-area,
  .page-blog__faq-list,
  .page-blog__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive adaptation */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__view-all-button-wrapper,
  .page-blog__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__view-all-button-wrapper a,
  .page-blog__cta-bottom a {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}