/* style/blog.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này KHÔNG được thêm padding-top với biến này nữa. */

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

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

.page-blog__section-title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* body đã xử lý padding-top cho header, đây chỉ là padding nhỏ */
  overflow: hidden;
}

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

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

.page-blog__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Background color with opacity */
  border-radius: 10px;
}

.page-blog__hero-title {
  color: #F2C14E; /* Gold */
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-blog__introduction-section,
.page-blog__featured-articles-section,
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-blog__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-blog__light-bg {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-blog__text-block {
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

.page-blog__text-main {
  color: #F2FFF6; /* Text Main */
}

.page-blog__text-secondary {
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__categories-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__category-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-title {
  color: #F2C14E; /* Gold */
  font-size: 24px;
  margin-bottom: 15px;
}

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

.page-blog__category-title a:hover {
  text-decoration: underline;
}

.page-blog__category-description {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__category-list {
  list-style-type: disc;
  padding-left: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__category-list li {
  margin-bottom: 8px;
}

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

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

.page-blog__article-link {
  text-decoration: none;
  display: block;
  height: 100%;
  color: inherit;
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  color: #F2FFF6; /* Text Main */
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title:hover {
  color: #F2C14E; /* Gold */
}

.page-blog__article-excerpt {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
  margin-bottom: 15px;
}

.page-blog__article-date {
  color: #A7D9B8; /* Text Secondary */
  font-size: 14px;
  display: block;
}

.page-blog__why-choose-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-blog__why-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog__why-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__why-item-title {
  color: #F2C14E; /* Gold */
  font-size: 22px;
  margin-bottom: 10px;
}

.page-blog__why-item-description {
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__video-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  text-align: center;
}

.page-blog__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto 0 auto;
  border-radius: 10px;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Button color - lighter green */
  border: 2px solid #2AD16F; /* Button color - lighter green */
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F; /* Button color - lighter green */
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #F2C14E; /* Gold */
  list-style: none;
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-blog__hero-title {
    font-size: 48px;
  }
  .page-blog__section-title {
    font-size: 40px;
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__why-item-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 10px 0 40px 0;
  }
  .page-blog__hero-content-wrapper {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__why-choose-section,
  .page-blog__video-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px; /* Thêm padding ngang cho container */
  }
  .page-blog__hero-cta-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-blog__category-item,
  .page-blog__article-card,
  .page-blog__why-item {
    padding: 20px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 18px;
  }
  .page-blog__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image, video, button responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__video-wrapper {
    padding-bottom: 56.25% !important;
  }
  .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 !important;
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}