/* CSS cho trang Blog */
.page-blog__hero-section {
  padding-top: 10px; /* Cố định khoảng cách đầu trang */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F4F7FB;
  color: #1F2D3D;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 40px 15px;
}

.page-blog__main-title {
  font-size: 2.8em;
  color: #2F6BFF;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-blog__subtitle {
  font-size: 1.2em;
  color: #1F2D3D;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  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;
}

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

.page-blog__latest-posts {
  padding: 60px 0;
  background: #F4F7FB;
  color: #1F2D3D;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-title--white {
  color: #ffffff;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

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

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

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__blog-card-image {
  position: relative;
  height: 200px; /* Minimum height for blog card images */
  overflow: hidden;
}

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

.page-blog__blog-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #2F6BFF;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 600;
  z-index: 1;
}

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

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

.page-blog__blog-divider {
  width: 50px;
  height: 3px;
  background: #D6E2FF;
  margin: 10px 0 15px 0;
}

.page-blog__blog-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  line-height: 1.6;
}

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

.page-blog__about-us-summary {
  background: #2F6BFF;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-blog__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

.page-blog__contact-cta {
  padding: 60px 0;
  background: #F4F7FB;
  color: #1F2D3D;
}

.page-blog__contact-cta .page-blog__section-title {
  color: #1F2D3D;
}

.page-blog__contact-cta .page-blog__section-description {
  color: #1F2D3D;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Mobile top padding */
  }

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

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

  .page-blog__hero-content {
    padding: 30px 15px;
  }

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

  .page-blog__subtitle {
    font-size: 1em;
  }

  .page-blog__cta-button,
  .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__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;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

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

  .page-blog__about-us-summary, .page-blog__contact-cta {
    padding: 40px 0;
  }

  .page-blog__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

  /* General image and container responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__latest-posts,
  .page-blog__about-us-summary,
  .page-blog__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}