/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 50px;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 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: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-blog__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #08160F; /* Background */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 50px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.8); /* Card B G with transparency */
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 1;
  border-radius: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-title {
  font-size: 3em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Articles Section */
.page-blog__featured-articles {
  padding: 50px 0;
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 50px;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #2AD16F; /* Button top color */
  margin-bottom: 10px;
}

.page-blog__read-more {
  font-size: 0.9em;
  color: #F2C14E; /* Gold */
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more i {
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__read-more i {
  transform: translateX(5px);
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__category-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-blog__category-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
}

/* CTA Section */
.page-blog__cta-section {
  background: url('[GALLERY:blog:1920x400:789bes,cta_banner,newsletter,subscribe,green_gold]') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 0;
}

.page-blog__cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 50px 0;
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  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.0em;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__faq-answer p {
  margin: 0;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }
  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    box-sizing: border-box !important;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.3;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Article Grid (Blog Card Section) */
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Categories Grid */
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__article-card,
  .page-blog__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding for elements that are already handled by container padding */
  .page-blog__hero-image-wrapper,
  .page-blog__article-card,
  .page-blog__category-card {
      padding-left: 0;
      padding-right: 0;
  }

  /* 按钮与按钮容器 */
  .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;
    margin-left: auto;
    margin-right: auto;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__view-all-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__view-all-wrapper {
    align-items: center; /* Center button when it's the only item */
  }

  /* Long text golden frame, Game carousel, Partner grid: Not applicable to blog page, but general image/button rules apply */
  /* Blog card section: handled by .page-blog__article-grid */
}

/* Placeholders for specific homepage elements, ensuring no missing blocks */
/* These are included for completeness based on general CSS requirements, though not directly used on this blog page structure */
.page-blog__home-content { /* Long text golden frame (not on blog page, but for completeness) */
  border: 1px solid #F2C14E; /* Gold */
  border-radius: 10px;
  height: auto; /* Adjusted for content */
  overflow-y: visible;
  padding: 30px;
  margin: 50px auto;
  background-color: #11271B; /* Card B G */
}

.page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop { /* Game/Sport/Coop rows (not on blog page) */
  background-color: #0A4B2C; /* Deep Green */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-blog__games-title, .page-blog__sport-title, .page-blog__coop-title { /* Titles for game/sport/coop rows */
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
}

.page-blog__slider-wrapper { /* Game/Blog slider wrapper (if used) */
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px; /* Example max-width */
}

.page-blog__slider-track { /* Game/Blog slider track (if used) */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
}

.page-blog__game-slide { /* Individual game slide (if used) */
  flex: 0 0 220px; /* Example fixed width */
  max-width: 220px;
  background-color: #11271B; /* Card B G */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 15px;
}

.page-blog__banners-top-wrapper { /* Partner grid (not on blog page) */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.page-blog__banner-item img { /* Partner item image */
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: grayscale(100%); /* Example style */
  transition: filter 0.3s ease;
}

.page-blog__banner-item img:hover {
  filter: grayscale(0%);
}

.page-blog__blog-masonry { /* Blog masonry (if different from article-grid) */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.page-blog__blog-card-link { /* Blog card link (if different from article-link) */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-blog__btn-outline { /* Outline button (if used) */
  margin-top: auto;
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #2AD16F; /* Green */
  color: #2AD16F;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-blog__btn-outline:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
}

.page-blog__blog-slider-track { /* Blog slider track (if used) */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
}

.page-blog__blog-slide { /* Blog slide (if used) */
  flex: 0 0 calc(33.333% - 14px); /* Approx 3 items with gap */
  max-width: calc(33.333% - 14px);
  background-color: #11271B; /* Card B G */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-align: left;
}

@media (max-width: 768px) {
  .page-blog__home-content { /* Long text golden frame */
    padding: 20px;
    margin: 30px auto;
  }
  .page-blog__slider-track { /* Game slider */
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }
  .page-blog__game-slide { /* Individual game slide */
    flex: 0 0 180px;
    max-width: 180px;
  }
  .page-blog__banners-top-wrapper { /* Partner grid */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 30px auto;
    padding: 0 15px;
  }
  .page-blog__banner-item img {
    
  }
  .page-blog__blog-masonry { /* Blog masonry */
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__blog-slide { /* Blog slider */
    flex: 0 0 100%;
    max-width: 100%;
  }
}