/* -------------------------------------------------- */
/* Tổng quan và Reset */
/* -------------------------------------------------- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #2F6BFF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__sub-title {
  font-size: 1.5em;
  color: #2F6BFF;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-blog p {
  margin-bottom: 1em;
  color: #1F2D3D;
}

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

.page-blog li {
  margin-bottom: 0.5em;
  color: #1F2D3D;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #FFFFFF;
  border: none;
}

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

.page-blog__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #2F6BFF;
  color: #FFFFFF;
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* -------------------------------------------------- */
/* Hero Section */
/* -------------------------------------------------- */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 50px;
  text-align: center;
  background-color: #FFFFFF;
  border-bottom: 1px solid #D6E2FF;
  padding-bottom: 40px;
}

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

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

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

.page-blog__main-title {
  font-size: 3em;
  font-weight: 800;
  color: #2F6BFF;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.page-blog__intro-text {
  font-size: 1.2em;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* -------------------------------------------------- */
/* Content Wrapper */
/* -------------------------------------------------- */
.page-blog__content-wrapper {
  padding: 50px 0;
}

.page-blog__article-content {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-blog__intro-section,
.page-blog__what-is-soicau-section,
.page-blog__why-choose-section,
.page-blog__types-section,
.page-blog__strategies-section,
.page-blog__mistakes-section,
.page-blog__cta-section,
.page-blog__related-posts-section {
  margin-bottom: 60px;
  padding: 0 15px;
}

.page-blog__text-block {
  margin-bottom: 20px;
}

/* -------------------------------------------------- */
/* Why Choose Grid */
/* -------------------------------------------------- */
.page-blog__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-blog__card {
  background-color: #FFFFFF; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-blog__card-title {
  font-size: 1.25em;
  color: #2F6BFF;
  font-weight: 700;
  margin-bottom: 10px;
}

/* -------------------------------------------------- */
/* Types Grid */
/* -------------------------------------------------- */
.page-blog__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-blog__type-item {
  background-color: #F8F9FC;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #2F6BFF;
}

/* -------------------------------------------------- */
/* CTA Section */
/* -------------------------------------------------- */
.page-blog__cta-section {
  text-align: center;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* -------------------------------------------------- */
/* Related Posts Section */
/* -------------------------------------------------- */
.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__blog-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
}

.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: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-blog__blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__blog-card-image img {
  transform: scale(1.05);
}

.page-blog__blog-card-content {
  padding: 20px;
  flex-grow: 1;
}

.page-blog__blog-card-title {
  font-size: 1.3em;
  color: #2F6BFF;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-blog__blog-card-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-blog__blog-card-excerpt {
  font-size: 1em;
  color: #1F2D3D;
  margin-bottom: 15px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-blog__read-more {
  display: inline-flex;
  align-items: center;
  color: #2F6BFF;
  font-weight: 600;
  padding: 0 20px 20px 20px;
}

.page-blog__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__arrow {
  transform: translateX(5px);
}

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

/* -------------------------------------------------- */
/* Responsive Styles */
/* -------------------------------------------------- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__grid-3-col,
  .page-blog__grid-2-col,
  .page-blog__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, consistent with body header offset */
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .page-blog__hero-image img,
  .page-blog__article-image,
  .page-blog__blog-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__content-wrapper,
  .page-blog__article-content,
  .page-blog__intro-section,
  .page-blog__what-is-soicau-section,
  .page-blog__why-choose-section,
  .page-blog__types-section,
  .page-blog__strategies-section,
  .page-blog__mistakes-section,
  .page-blog__cta-section,
  .page-blog__related-posts-section,
  .page-blog__container,
  .page-blog__cta-buttons,
  .page-blog__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__article-content {
    padding: 20px 15px;
  }

  .page-blog__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-blog__sub-title {
    font-size: 1.3em;
  }

  .page-blog__grid-3-col,
  .page-blog__grid-2-col,
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-blog__blog-card-image {
    height: 180px;
  }

  .page-blog__blog-card-title,
  .page-blog__blog-card-meta,
  .page-blog__blog-card-excerpt,
  .page-blog__read-more {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__read-more {
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }

  .page-blog__section-title {
    font-size: 1.5em;
  }

  .page-blog__article-content {
    padding: 15px;
  }
}