.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Custom Background */
  line-height: 1.6;
}

.page-blog__section {
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  max-width: 800px;
  text-align: center;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  margin-bottom: 30px;
}

.page-blog__hero-cta-buttons,
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  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%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog__btn-secondary:hover {
  background: #F4F7FB;
  color: #255ad9;
  border-color: #255ad9;
}

.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog__article-card {
  background: #FFFFFF; /* Card BG */
  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;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
}

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

.page-blog__dark-section {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
}

.page-blog__popular-categories {
  padding: 80px 0;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background: rgba(255, 255, 255, 0.3);
}

.page-blog__category-link {
  display: block;
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.page-blog__featured-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 30px;
}

.page-blog__featured-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-blog__featured-text {
  width: 60%;
  padding-right: 20px;
}

.page-blog__featured-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__featured-excerpt {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 25px;
}

.page-blog__faq-section {
  background-color: #F4F7FB; /* Custom Background */
  padding: 80px 0;
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2F6BFF;
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #2F6BFF, #6FA3FF); /* Blend of main and auxiliary */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-description {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 20px auto 40px;
  line-height: 1.7;
}

/* Floating Promo Button */
.page-blog__floating-promo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-blog__promo-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-blog__promo-register {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-blog__promo-register:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-blog__promo-login {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog__promo-login:hover {
  background: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__featured-content {
    flex-direction: column;
    padding: 20px;
  }

  .page-blog__featured-image,
  .page-blog__featured-text {
    width: 100%;
    padding-right: 0;
  }

  .page-blog__featured-image {
    margin-bottom: 20px;
  }

  .page-blog__featured-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.1rem;
  }

  .page-blog__category-link {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  .page-blog__cta-description {
    font-size: 1rem;
  }

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

  /* Mobile button responsiveness */
  .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__hero-cta-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  /* Mobile container padding for overflow prevention */
  .page-blog__section,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__featured-content,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__floating-promo {
    bottom: 15px;
    right: 15px;
    flex-direction: row; /* Horizontal on mobile to save vertical space */
    gap: 8px;
  }
  .page-blog__promo-button {
    flex-grow: 1; /* Distribute space evenly */
    padding: 10px 15px;
    font-size: 14px;
    white-space: normal !important; /* Allow wrapping on mobile */
    word-wrap: break-word !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, đây chỉ là padding trang trí */
  }
}