/* style/blog.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-blog {
  background-color: #08160F; /* Nền tối theo custom color 'Background' */
  color: #F2FFF6; /* Màu chữ chính theo custom color 'Text Main' */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Chỉ một khoảng nhỏ, dựa vào body padding-top */
  text-align: center;
  background-color: #08160F;
}

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

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

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

.page-blog__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Màu chữ phụ theo custom color 'Text Secondary' */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút chính theo custom color 'Button' */
  color: #F2FFF6; /* Chữ nút chính theo custom color 'Text Main' */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-blog__section {
  padding: 80px 20px;
  border-bottom: 1px solid #1E3A2A; /* Màu đường phân cách theo custom color 'Divider' */
}

.page-blog__section:last-of-type {
  border-bottom: none;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  line-height: 1.3;
}

.page-blog__subsection-title {
  font-size: 1.8rem;
  color: #F2FFF6;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__text-block {
  font-size: 1.05rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-blog__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #A7D9B8;
}

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

.page-blog__list li strong {
  color: #F2FFF6;
}

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

.page-blog__card {
  background-color: #11271B; /* Nền card theo custom color 'Card BG' */
  border: 1px solid #2E7A4E; /* Viền card theo custom color 'Border' */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Hiệu ứng glow theo custom color 'Glow' */
}

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

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

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-blog__card-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #2AD16F;
}

.page-blog__card-text {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__card-date {
  font-size: 0.85rem;
  color: #A7D9B8;
  text-align: right;
  display: block;
}

.page-blog__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background-color: transparent;
  color: #2AD16F;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #2AD16F;
  cursor: pointer;
}

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

.page-blog__maximize-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  text-align: center;
}

.page-blog__maximize-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__maximize-title {
  font-size: 1.6rem;
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__maximize-item .page-blog__text-block {
  margin-bottom: 25px;
}

.page-blog__faq-section {
  padding: 80px 20px;
  background-color: #08160F;
}

.page-blog__faq-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-blog__faq-image-container {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__faq-list {
  flex: 1;
  max-width: 700px;
}

.page-blog__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #A7D9B8;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

.page-blog__faq-answer p {
  margin-bottom: 0;
}

.page-blog__conclusion .page-blog__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog .highlight {
  color: #57E38D; /* Sử dụng màu Glow cho các từ khóa nổi bật */
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2.2rem;
  }

  .page-blog__subsection-title {
    font-size: 1.6rem;
  }

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

  .page-blog__faq-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__faq-image-container, .page-blog__faq-list {
    max-width: 100%;
  }
}

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

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-blog__btn-primary, .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-blog__section {
    padding: 40px 15px;
  }

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

  .page-blog__subsection-title {
    font-size: 1.4rem;
    margin-top: 30px;
  }

  .page-blog__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-blog__card-title {
    font-size: 1.2rem;
  }

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

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

  .page-blog__faq-toggle {
    font-size: 1.2rem;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Mandatory responsive image/video/container styles */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper,
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  
  .page-blog__video-section {
    padding-top: 10px !important;
  }
}