/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  position: relative;
  text-align: center;
  background-color: #0D0E12;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-blog__hero-content {
  position: relative;
  padding: 40px 20px;
  max-width: 800px;
  margin: -100px auto 0; /* Pull content up slightly over the image */
  z-index: 10;
}

.page-blog__main-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-blog__light-text {
  color: #FFF3E6;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-blog__featured-articles,
.page-blog__latest-articles {
  padding: 40px 0;
  background-color: #0D0E12;
}

.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch; /* Ensure cards have equal height */
}

.page-blog__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-blog__card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFB04D; /* Glow */
  line-height: 1.3;
}

.page-blog__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-blog__card-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #FFA53A;
  color: #FFA53A;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto;
  text-align: center;
}

.page-blog__btn-outline:hover {
  background-color: #FFA53A;
  color: #0D0E12;
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-list li a {
  display: block;
  padding: 10px 25px;
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-list li a:hover {
  background-color: #FFA53A;
  color: #0D0E12;
  border-color: #FFA53A;
}

.page-blog__button-container {
  text-align: center;
  margin-top: 50px;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-section .page-blog__container {
  background-color: #FF8C1A; /* Main Color */
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-section .page-blog__section-title {
  color: #FFF3E6; /* Text Main */
  margin-top: 0;
  margin-bottom: 20px;
}

.page-blog__cta-section p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #FFF3E6;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #17191F; /* Card BG */
  color: #FFA53A;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-blog__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

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

.page-blog__faq-answer {
  padding: 0 20px 20px;
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.6;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding */
  }
  .page-blog__hero-content {
    margin-top: -50px; /* Adjust pull up for smaller screens */
    padding: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Responsive font size */
  }
  .page-blog__description {
    font-size: 1em;
  }

  /* Article Grid */
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Category List */
  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__category-list li a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  /* CTA Section */
  .page-blog__cta-section .page-blog__container {
    padding: 30px 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .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__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
  /* Placeholder for long text area (not explicitly in blog, but required) */
  .page-blog__home-content { /* Assuming this might exist on other pages */
    height: auto;
    overflow-y: visible;
    padding: 20px;
  }
  /* Placeholder for game carousel (not explicitly in blog, but required) */
  .page-blog__slider-track { /* Assuming this might exist on other pages */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-blog__game-slide { /* Assuming this might exist on other pages */
    flex: 0 0 calc(100% - 30px); /* Show one card with some spacing */
    max-width: calc(100% - 30px);
    scroll-snap-align: start;
  }
  /* Placeholder for brand grid (not explicitly in blog, but required) */
  .page-blog__banners-top-wrapper { /* Assuming this might exist on other pages */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on mobile */
    gap: 10px;
  }
  .page-blog__banner-item img { /* Assuming this might exist on other pages */
    
    
  }
  /* Placeholder for blog masonry (already handled above with 1fr) */
  /* Placeholder for blog slider (not explicitly in blog, but required) */
  .page-blog__blog-slider-track { /* Assuming this might exist on other pages */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-blog__blog-slide { /* Assuming this might exist on other pages */
    flex: 0 0 calc(100% - 30px); /* Show one card with some spacing */
    max-width: calc(100% - 30px);
    scroll-snap-align: start;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
}

/* Placeholder for required CSS elements if they were on homepage */
.page-blog__home-content { border: 1px solid #A84F0C; border-radius: 10px; height: auto; overflow-y: visible; padding: 30px; margin-top: 40px; }
.page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop { background-color: #0D0E12; padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.page-blog__games-title, .page-blog__sport-title, .page-blog__coop-title { color: #FFB04D; text-align: center; margin-bottom: 30px; }
.page-blog__slider-wrapper { overflow: hidden; position: relative; }
.page-blog__slider-track { display: flex; flex-wrap: nowrap; gap: 20px; transition: transform 0.5s ease-in-out; }
.page-blog__game-slide { flex: 0 0 200px; max-width: 200px; background-color: #17191F; border-radius: 10px; overflow: hidden; border: 1px solid #A84F0C; }
.page-blog__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; max-width: 900px; margin: 40px auto; }
.page-blog__banner-item img {   object-fit: contain; margin: 0 auto; display: block; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }
.page-blog__banner-item img:hover { filter: grayscale(0%); opacity: 1; }
.page-blog__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.page-blog__blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.page-blog__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; transition: transform 0.5s ease-in-out; }
.page-blog__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); background-color: #17191F; border-radius: 10px; overflow: hidden; border: 1px solid #A84F0C; }