/* style/blog.css */
/* body 已 padding-top: var(--header-offset)；页面禁止在 __video-section 再写该变量 */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark backgrounds */
  background: #0A0A0A; /* Background color */
}

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

.page-blog__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #FFD36B; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__text-block {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 15px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Only 10px top padding */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-blog__hero-content {
  position: relative; /* Ensure content is in normal flow */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  margin-top: -150px; /* Overlap slightly for visual effect, but not text on image */
  background: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 10;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #F2C14E; /* Main color for H1 */
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-blog__hero-description {
  font-size: 1.2rem;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  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, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on gold gradient */
  border: none;
}

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 2px solid #3A2A12; /* Border color */
}

.page-blog__btn-secondary:hover {
  background: #3A2A12; /* Border color */
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog__read-more-btn {
  background: #3A2A12; /* Border color */
  color: #FFD36B;
  border: 1px solid #3A2A12;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-blog__read-more-btn:hover {
  background: #FFD36B;
  color: #111111;
}

/* Section Styling */
.page-blog__introduction-section,
.page-blog__games-section,
.page-blog__promotions-section,
.page-blog__faq-section {
  padding: 60px 0;
}

.page-blog__latest-news-section,
.page-blog__guides-section,
.page-blog__mobile-section,
.page-blog__cta-section {
  padding: 60px 0;
  background: #0A0A0A; /* Background color */
}

.page-blog__dark-section {
  background: #111111; /* Card BG for sections */
  color: #FFF6D6;
}

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

.page-blog__article-card,
.page-blog__game-category-card,
.page-blog__guide-item {
  background: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover,
.page-blog__game-category-card:hover,
.page-blog__guide-item:hover {
  transform: translateY(-5px);
}

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

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

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #F2C14E; /* Main color for card titles */
  text-decoration: none;
}

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

.page-blog__card-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-blog__view-all-btn-container {
  text-align: center;
}

/* Game Categories */
.page-blog__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Guide List */
.page-blog__guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-blog__guide-item {
  padding: 25px;
}

.page-blog__guide-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-blog__guide-title a {
  color: #F2C14E;
  text-decoration: none;
}

.page-blog__guide-title a:hover {
  color: #FFD36B;
}

.page-blog__guide-excerpt {
  font-size: 0.95rem;
  color: #FFF6D6;
}

/* Promotion Highlight */
.page-blog__promotion-highlight {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 30px;
}

.page-blog__promotion-image {
  width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog__promotion-content {
  width: 50%;
}

.page-blog__promotion-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #FFD36B;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__promotion-text {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Mobile App Info */
.page-blog__mobile-app-info {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px;
  background: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-blog__mobile-app-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.page-blog__mobile-app-text {
  width: 60%;
}

.page-blog__mobile-app-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #F2C14E;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-blog__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: #111111;
  color: #FFD36B;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #3A2A12; /* Border color */
}

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 1rem;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-blog__faq-answer p {
  margin-bottom: 15px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: #0A0A0A;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -100px;
  }

  .page-blog__promotion-highlight,
  .page-blog__mobile-app-info {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__promotion-image,
  .page-blog__promotion-content,
  .page-blog__mobile-app-image,
  .page-blog__mobile-app-text {
    width: 100%;
  }

  .page-blog__mobile-app-image {
    max-width: 300px;
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  .page-blog__hero-content {
    margin-top: -50px;
    padding: 30px 15px;
  }

  .page-blog__main-title {
    font-size: 2rem;
  }

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }

  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-blog__text-block {
    font-size: 0.95rem;
  }

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__game-category-card,
  .page-blog__guide-item,
  .page-blog__promotion-highlight,
  .page-blog__mobile-app-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__article-card .page-blog__card-image,
  .page-blog__game-category-card .page-blog__card-image {
    height: 200px;
  }

  /* Button responsiveness */
  .page-blog__cta-button,
  .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-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__faq-question,
  .page-blog__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__promotion-highlight,
  .page-blog__mobile-app-info {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-blog__card-title {
    font-size: 1.2rem;
  }

  .page-blog__guide-title {
    font-size: 1.1rem;
  }
}