.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6;
  background-color: #0D0E12;
}

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

.page-blog__section-title {
  font-size: 3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF3E6;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6;
  line-height: 1.6;
}

.page-blog__hero-carousel-section {
  padding-top: 10px; /* Aligns with shared body padding-top */
  margin-bottom: 40px;
  background-color: #17191F;
}

.page-blog__hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 600px;
}

.page-blog__hero-slide {
  display: none;
  position: relative;
  width: 100%;
}

.page-blog__hero-slide.is-active {
  display: block;
}

.page-blog__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFF3E6;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: 3.5em;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFB04D; /* Glow color for main title */
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.7);
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background-color: #FFA53A;
  color: #17191F;
}

.page-blog__hero-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__hero-slider-prev,
.page-blog__hero-slider-next {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #FFF3E6;
  font-size: 2em;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-blog__hero-slider-prev:hover,
.page-blog__hero-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.page-blog__hero-slider-prev::before {
  content: '‹';
}

.page-blog__hero-slider-next::before {
  content: '›';
}

.page-blog__latest-articles-section,
.page-blog__game-guides-section,
.page-blog__promotions-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #0D0E12;
}

.page-blog__news-events-section,
.page-blog__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #17191F;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-blog__blog-card {
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__blog-card .page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__blog-card .page-blog__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card .page-blog__card-content {
  padding: 20px;
  color: #FFF3E6;
}

.page-blog__blog-card .page-blog__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #FFA53A;
}

.page-blog__blog-card .page-blog__card-meta {
  font-size: 0.9em;
  color: rgba(255, 243, 230, 0.7);
  margin-bottom: 15px;
}

.page-blog__blog-card .page-blog__card-excerpt {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #FF8C1A;
  font-weight: bold;
  text-decoration: none;
  position: relative;
}

.page-blog__read-more-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #FF8C1A;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__read-more-btn::after {
  transform: scaleX(1);
}

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

.page-blog__guide-box {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #17191F;
}

.page-blog__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-blog__guide-card {
  flex: 0 0 18%; /* Approx 5 cards */
  max-width: 18%;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__guide-card:hover {
  transform: translateY(-10px);
}

.page-blog__guide-card img {
  width: 100%;
  height: 350px; /* Fixed height for 250x350 aspect ratio */
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background-color: #17191F;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-blog__faq-item summary {
  display: block;
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  font-size: 1.2em;
  list-style: none;
  color: #FFA53A;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.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;
  font-size: 1.1em;
  line-height: 1.6;
  color: rgba(255, 243, 230, 0.8);
}

.page-blog__dark-section {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-blog__light-bg {
  background-color: #17191F;
  color: #FFF3E6;
}

.page-blog__medium-bg {
  background-color: #17191F;
  color: #FFF3E6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 3em;
  }

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

  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__guide-grid {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .page-blog__guide-card {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .page-blog__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-blog__hero-content {
    max-width: 90%;
    padding: 15px;
  }

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

  .page-blog__hero-description {
    font-size: 0.9em !important;
    margin-bottom: 20px;
  }

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

  .page-blog__button-group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-slider-nav {
    padding: 0 10px;
  }

  .page-blog__hero-slider-prev,
  .page-blog__hero-slider-next {
    font-size: 1.5em;
    padding: 8px 12px;
  }

  .page-blog__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-blog__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-blog__blog-card .page-blog__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__blog-card .page-blog__card-title {
    font-size: 1.2em;
  }

  .page-blog__guide-box {
    padding: 30px 0;
  }

  .page-blog__guide-grid {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-blog__guide-card {
    flex: 0 0 80% !important;
    max-width: 80% !important;
    padding-top: 0 !important;
  }

  /* Specific mobile layout for guide cards: upper two, lower three */
  .page-blog__guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__guide-card {
    flex: auto;
    max-width: 100%;
    grid-column: span 1;
  }
  .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2, .page-blog__guide-card--pos-3, .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 {
      grid-column: span 1;
  }
  /* The prompt requested '上二下三' layout, which means 2 cards on top row, 3 cards on bottom row. This implies a 2-column grid. */
  /* The prior rules stated 'grid-column: span 3'x2 + 'span 2'x3, which is for a 6-column grid. I will default to a 2-column grid for mobile for simplicity and common practice, making each card span 1 column. The '上二下三' might imply a specific stacking order rather than a strict grid layout, or a 6-column grid is implied for the wrapper. Given the guide cards are 5, a 2-column grid makes more sense for mobile. I will make them span 1 column each. */
  /* Re-interpreting '上二下三' for a 5-item list: first 2 items take full width, then next 3 items take full width. This is not a common grid. If it means '2 items per row for the first 2 rows, then 1 item for the last row' for 5 items, it's 2-2-1. Or '2 items on the first row, 3 items on the second row', which means the first row items would be wider. I will assume a flexible 2-column grid where items fill up. */
  /* Given the CSS example in the prompt for mobile guide cards: '.page-blog__guide-grid { display: grid; grid-template-columns: repeat(6, 1fr); } .page-blog__guide-card { padding-top: 0 !important; } .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2 { grid-column: span 3; } .page-blog__guide-card--pos-3, .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 { grid-column: span 2; }' This is a very specific layout for 5 cards on a 6-column grid. I will implement this exact structure. */
  .page-blog__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__guide-card {
    padding-top: 0 !important; /* Reset desktop padding */
    flex: auto;
    max-width: 100%;
  }
  .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2 {
    grid-column: span 3;
  }
  .page-blog__guide-card--pos-3, .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 {
    grid-column: span 2;
  }

  .page-blog__faq-list {
    padding: 0 15px;
  }

  .page-blog__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-blog__faq-answer {
    font-size: 1em;
    padding: 0 15px 15px;
  }

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

  .page-blog__latest-articles-section,
  .page-blog__game-guides-section,
  .page-blog__promotions-section,
  .page-blog__news-events-section,
  .page-blog__faq-section {
    padding: 30px 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.5em !important;
  }
  .page-blog__hero-description {
    font-size: 0.8em !important;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em !important;
  }
  .page-blog__blog-card .page-blog__card-title {
    font-size: 1.1em;
  }
  .page-blog__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2, .page-blog__guide-card--pos-3, .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 {
      grid-column: span 1;
  }
  .page-blog__guide-card {
      max-width: 100% !important;
  }
}