/* style/blog.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-blog {
  color: #ffffff; /* Vì body background là #0a0a0a (dark), nên dùng chữ màu sáng */
  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;
  justify-content: center;
  padding: 10px 0 60px 0; /* padding-top nhỏ, không dùng var(--header-offset) */
  background-color: #0a0a0a;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Giới hạn chiều cao cho hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Màu chủ đạo */
  margin-bottom: 15px;
  max-width: 100%; /* Đảm bảo không tràn */
  box-sizing: border-box;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-blog__text-link:hover {
  color: #33baff;
}

.page-blog__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Màu tùy chỉnh cho Login/CTA */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  background: #d66b06;
}

.page-blog__btn-secondary {
  display: inline-block;
  background: #26A9E0; /* Màu chủ đạo */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background: #1e8dc7;
  border-color: #1e8dc7;
}

.page-blog__content-area {
  background-color: #0a0a0a; /* Body background */
  padding: 40px 20px;
}

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

.page-blog__section-title {
  color: #26A9E0;
  font-size: 2.2em;
  margin-bottom: 25px;
  text-align: left;
  font-weight: bold;
}

.page-blog__sub-title {
  color: #FFFFFF;
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-blog__paragraph {
  color: #f0f0f0;
  margin-bottom: 15px;
  text-align: justify;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-blog__faq-list {
  margin-top: 30px;
}

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-blog__faq-item summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

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

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  background: rgba(255, 255, 255, 0.03);
  color: #f0f0f0;
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 20px;
}

/* ==================================================================================================== */
/* Responsive Design */
/* ==================================================================================================== */

/* Desktop (default) */
@media (min-width: 769px) {
  .page-blog__main-title {
    font-size: 3.2em; /* No fixed, too large font-size, use relative or clamp */
  }
  .page-blog__section-title {
    font-size: 2.5em;
  }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 0 30px 0;
  }

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

  .page-blog__main-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 10px 15px;
    font-size: 0.95em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px;
  }

  .page-blog__cta-wrapper {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
  }

  .page-blog__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
  }

  .page-blog__paragraph {
    font-size: 0.95em;
    text-align: left;
  }

  .page-blog__content-area {
    padding: 30px 15px;
  }

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

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-blog__video-section {
    padding-top: 10px !important; /* body đã có padding-top, không dùng var(--header-offset) */
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* If multiple buttons are in a row, stack them vertically on mobile */
  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .page-blog__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  
  .page-blog__faq-answer {
    padding: 10px 20px 15px;
  }
}