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

:root {
  --page-blog-primary-color: #11A84E;
  --page-blog-secondary-color: #22C768;
  --page-blog-background-color: #08160F;
  --page-blog-card-background-color: #11271B;
  --page-blog-text-main-color: #F2FFF6;
  --page-blog-text-secondary-color: #A7D9B8;
  --page-blog-border-color: #2E7A4E;
  --page-blog-glow-color: #57E38D;
  --page-blog-gold-color: #F2C14E;
  --page-blog-divider-color: #1E3A2A;
  --page-blog-deep-green-color: #0A4B2C;
  --page-blog-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-blog-text-main-color);
  background-color: var(--page-blog-background-color);
}

.page-blog__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px;
  overflow: hidden;
  background: var(--page-blog-deep-green-color);
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--page-blog-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--page-blog-text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--page-blog-button-gradient);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__btn-secondary {
  background: var(--page-blog-card-background-color);
  color: var(--page-blog-gold-color);
  border: 2px solid var(--page-blog-gold-color);
}

.page-blog__btn-secondary:hover {
  background: var(--page-blog-gold-color);
  color: var(--page-blog-background-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__content-area,
.page-blog__troubleshooting-section,
.page-blog__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__promo-section,
.page-blog__why-xin88-section,
.page-blog__conclusion-section {
  background-color: var(--page-blog-card-background-color);
  color: var(--page-blog-text-main-color);
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--page-blog-gold-color);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-blog__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--page-blog-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--page-blog-gold-color);
  padding-left: 15px;
}

.page-blog__text-block {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.7;
  color: inherit; /* Ensures text color adapts to section background */
}

.page-blog__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-blog__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: inherit;
}

.page-blog__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--page-blog-primary-color);
  font-weight: bold;
}

.page-blog__ordered-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-blog__ordered-list .page-blog__list-item {
  list-style-type: decimal;
  padding-left: 0;
  margin-bottom: 10px;
}

.page-blog__ordered-list .page-blog__list-item::before {
  content: none;
}

.page-blog__image-in-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-blog__highlight {
  color: var(--page-blog-gold-color);
  font-weight: bold;
}

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

.page-blog__faq-item {
  background-color: var(--page-blog-background-color);
  border: 1px solid var(--page-blog-border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  background-color: var(--page-blog-deep-green-color);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-blog-text-main-color);
  list-style: none; /* Remove default marker for summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for summary in Webkit */
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--page-blog-gold-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: var(--page-blog-text-secondary-color);
}

/* Responsive styles */
@media (min-width: 769px) {
  .page-blog__content-area,
  .page-blog__promo-section,
  .page-blog__troubleshooting-section,
  .page-blog__why-xin88-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 15px 40px;
  }

  .page-blog__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-blog__sub-title {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-blog__text-block,
  .page-blog__list-item,
  .page-blog__faq-question,
  .page-blog__faq-answer {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-blog__image-in-content,
  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__promo-section,
  .page-blog__troubleshooting-section,
  .page-blog__why-xin88-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-blog img {
    max-width: 100% !important;
    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__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__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }
}