.page-blog {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Assuming body background is white */
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

.page-blog__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-blog__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
  order: 1; /* Image first in desktop */
}

.page-blog__hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  order: 2; /* Content second in desktop */
}

.page-blog__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons don't overflow */
  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: #a00606;
  border-color: #a00606;
}

.page-blog__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.page-blog__blog-list-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-blog__blog-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__blog-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #999999;
  margin-top: auto;
}

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

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color for dark section */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-blog__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General images responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.4em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-blog__hero-container {
    flex-direction: column;
    padding: 30px 15px;
  }
  .page-blog__hero-content {
    flex: 1 1 100%;
    order: 2; /* Content below image */
  }
  .page-blog__hero-image {
    flex: 1 1 100%;
    order: 1; /* Image above content */
    margin-bottom: 30px;
  }
  .page-blog__hero-title {
    font-size: 2em; /* Smaller font for mobile H1 */
    text-align: center;
  }
  .page-blog__hero-description {
    font-size: 1em;
    text-align: center;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    align-items: center;
  }

  /* Buttons general mobile 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;
    text-align: center;
  }

  /* Button containers mobile adaptation */
  .page-blog__hero-cta-buttons,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow wrapping */
    gap: 10px;
    justify-content: center;
  }
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack CTA buttons vertically */
  }

  /* Blog List Section */
  .page-blog__blog-list-section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 20px 15px; /* Adjust container padding */
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Single column for blog cards */
    gap: 20px;
  }
  .page-blog__blog-card-image {
    height: 180px; /* Adjust image height for mobile cards */
  }
  .page-blog__blog-card-title {
    font-size: 1.2em;
  }
  .page-blog__blog-card-excerpt {
    font-size: 0.9em;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* General images mobile adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}