/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-blog__intro-text {
  font-size: clamp(1em, 2.5vw, 1.3em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #22C768; /* Auxiliary Color */
  margin: 10px auto 0;
  border-radius: 2px;
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-thumbnail {
  transform: scale(1.05);
}

.page-blog__post-content {
  padding: 25px;
}

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-blog__post-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #2AD16F; /* Button top color */
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F; /* Button top color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

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

.page-blog__view-all .page-blog__cta-button {
  padding: 12px 25px;
  font-size: 1.1em;
}

.page-blog__categories {
  background-color: #0A4B2C; /* Deep Green */
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
  padding: 10px 20px;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-item:hover {
  background-color: #22C768; /* Auxiliary Color */
  color: #08160F; /* Background - contrast for hover */
}

.page-blog__article-full {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__article-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
}

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

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

.page-blog__article-title {
  font-size: 2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

.page-blog__article-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__article-meta {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-blog__article-summary,
.page-blog__article-text {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-blog__read-more--large {
  font-size: 1.2em;
  padding: 10px 20px;
  border: 2px solid #2AD16F;
  border-radius: 5px;
  margin-top: 20px;
  display: inline-block;
}

.page-blog__faq-section {
  max-width: 900px;
  margin: 60px auto;
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-blog__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding-bottom: 15px;
}

.page-blog__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
  position: relative;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Button top color */
  transition: transform 0.3s ease;
}

details[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .page-blog__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }

  .page-blog__intro-text {
    font-size: clamp(0.9em, 2vw, 1.1em);
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 0.95em;
  }
}

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

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-section,
  .page-blog__section,
  .page-blog__post-card,
  .page-blog__category-item,
  .page-blog__article-full,
  .page-blog__faq-section,
  .page-blog__hero-image-wrapper,
  .page-blog__post-thumbnail-wrapper,
  .page-blog__article-image-wrapper,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-blog__intro-text {
    font-size: clamp(0.9em, 3.5vw, 1em);
    margin-bottom: 20px;
  }

  .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1em;
  }
  
  .page-blog__view-all .page-blog__cta-button {
    width: auto !important; /* Allow 'Xem Tất Cả Bài Viết' button to be auto width */
    max-width: 100% !important;
  }

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

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

  .page-blog__post-content {
    padding: 20px;
  }

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

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item {
    width: 100%;
    text-align: center;
  }

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

  .page-blog__article-summary,
  .page-blog__article-text {
    font-size: 1em;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
  }

  .page-blog__faq-answer {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 10px;
  }
  .page-blog__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }
  .page-blog__intro-text {
    font-size: clamp(0.85em, 3.5vw, 0.95em);
  }
  .page-blog__cta-button {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}