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

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

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Nhỏ gọn, không sử dụng var(--header-offset) */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao cho hình ảnh hero */
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Làm mờ ảnh để chữ dễ đọc hơn */
}

.page-blog__hero-content {
  position: absolute;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #F2FFF6; /* Text Main */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-blog__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

.page-blog__intro-section,
.page-blog__content-section,
.page-blog__games-analysis-section,
.page-blog__promotions-section,
.page-blog__security-section,
.page-blog__faq-section,
.page-blog__cta-final-section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__text-block a {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-blog__text-block a:hover {
  text-decoration: underline;
}

.page-blog__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

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

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

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

.page-blog__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__btn-link {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: color 0.3s ease;
}

.page-blog__btn-link:hover {
  text-decoration: underline;
  color: #F2C14E; /* Gold */
}

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

.page-blog__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.page-blog__game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__game-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 15px 15px 10px 15px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__game-card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

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

.page-blog__game-card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

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

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider */
  border-bottom: 1px solid #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Border */
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-blog__faq-answer a:hover {
  text-decoration: underline;
}

.page-blog__cta-buttons--final {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-blog__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    position: static;
    transform: none;
    padding: 20px;
  }
  .page-blog__hero-image-wrapper {
    order: -1; /* Đảm bảo hình ảnh ở trên */
    max-height: 400px;
  }
  .page-blog__main-title {
    font-size: 2.2rem;
    margin-top: 20px;
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__intro-section,
  .page-blog__content-section,
  .page-blog__games-analysis-section,
  .page-blog__promotions-section,
  .page-blog__security-section,
  .page-blog__faq-section,
  .page-blog__cta-final-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__text-block {
    font-size: 1rem;
  }
  .page-blog__image-full-width,
  .page-blog__card-image,
  .page-blog__game-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 150px;
  }
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__game-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 15px 20px;
  }
  .page-blog__cta-buttons--final {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8rem;
  }
  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__text-block {
    font-size: 0.95rem;
  }
  .page-blog__card-title {
    font-size: 1.2rem;
  }
  .page-blog__game-card-title {
    font-size: 1.1rem;
  }
  .page-blog__faq-question {
    font-size: 0.95rem;
  }
  .page-blog__faq-answer {
    font-size: 0.9rem;
  }
}