.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Default body background */
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
  text-align: center;
}

.page-blog__hero-image {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: #017439; /* Brand color */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-blog__description {
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 30px;
}

/* CTA Button - Primary (Đăng Ký Ngay) */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #C30808; /* Đăng ký color */
  color: #FFFF00; /* Đăng ký font color */
  border: 2px solid #C30808;
}

.page-blog__btn-primary:hover {
  background-color: #d11a1a;
  transform: translateY(-2px);
}

/* CTA Button - Secondary (Tải Ứng Dụng, Xem Tất Cả Bài Viết) */
.page-blog__btn-secondary {
  background-color: #017439; /* Main brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: #017439;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__post-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

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

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-blog__post-title a:hover {
  text-decoration: underline;
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__view-all {
  text-align: center;
}

/* Content Area */
.page-blog__content-area {
  padding: 60px 0;
  background-color: #017439; /* Dark brand color for this section */
  color: #ffffff; /* White text for dark background */
}

.page-blog__content-area .page-blog__section-title,
.page-blog__content-area .page-blog__sub-title {
  color: #FFFFFF;
}

.page-blog__content-area p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-blog__content-area strong {
  color: #FFFF00; /* Highlight important keywords */
}

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

.page-blog__sub-title {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__list,
.page-blog__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-blog__ordered-list {
  list-style-type: decimal;
}

.page-blog__list li,
.page-blog__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-blog__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-blog__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-button {
    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__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 博客区 */
  .page-blog__latest-posts {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-blog__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    padding: 0 15px;
  }

  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__post-image {
    height: 180px; /* Adjust image height for mobile */
  }

  .page-blog__post-title {
    font-size: 1.3rem;
  }

  .page-blog__post-excerpt {
    font-size: 0.95rem;
  }

  /* 长文区 */
  .page-blog__content-area {
    padding: 40px 0;
  }

  .page-blog__content-area .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__content-area p {
    font-size: 1rem;
  }

  /* 通用图片与容器 */
  .page-blog__content-image,
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-blog__sub-title {
    font-size: 1.7rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__list,
  .page-blog__ordered-list {
    margin-left: 20px;
  }

  .page-blog__list li,
  .page-blog__ordered-list li {
    font-size: 1rem;
  }

  /* General container adaptation for mobile */
  .page-blog__container,
  .page-blog__latest-posts,
  .page-blog__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}