.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000000, so text needs to be light */
  background-color: #000000;
}

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

.page-blog__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Darken image for text readability */
  display: block;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

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

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

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

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Section Titles and Descriptions */
.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* Category Grid */
.page-blog__category-grid,
.page-blog__game-card-grid,
.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog__category-card,
.page-blog__game-card,
.page-blog__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-blog__card-image,
.page-blog__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-blog__card-title,
.page-blog__game-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__card-title a,
.page-blog__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-blog__card-title a:hover,
.page-blog__game-title a:hover {
  text-decoration: underline;
  color: #1e87b6;
}

.page-blog__card-text,
.page-blog__game-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px;
  flex-grow: 1;
}

.page-blog__view-all-button {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 60px;
}

/* Guide Section */
.page-blog__guide-section {
  padding: 40px 20px 80px;
}

.page-blog__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-blog__guide-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__guide-item p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-blog__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

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

/* Safety Section */
.page-blog__safety-section {
  padding: 40px 20px 80px;
}

.page-blog__safety-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__safety-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-blog__safety-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__safety-item p {
  color: #f0f0f0;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 40px 20px 80px;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  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;
  color: #ffffff;
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #cccccc;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 40px 20px 80px;
}

/* General text styling */
.page-blog p {
  color: #f0f0f0;
}

.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
  color: #26A9E0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-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__section-title {
    font-size: 2em;
    padding-top: 30px;
  }

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

  .page-blog__category-grid,
  .page-blog__game-card-grid,
  .page-blog__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__card-image,
  .page-blog__game-image {
    height: 180px;
  }

  .page-blog__card-title,
  .page-blog__game-title {
    font-size: 1.2em;
  }

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

  .page-blog__guide-title {
    font-size: 1.5em;
  }

  .page-blog__safety-item {
    padding: 20px;
  }

  .page-blog__safety-title {
    font-size: 1.3em;
  }

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

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

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__hero-content,
  .page-blog__view-all-button,
  .page-blog__guide-item,
  .page-blog__safety-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific overrides for padding on content sections to prevent double padding */
  .page-blog__category-section .page-blog__container,
  .page-blog__guide-section .page-blog__container,
  .page-blog__game-exploration-section .page-blog__container,
  .page-blog__promotion-vip-section .page-blog__container,
  .page-blog__safety-section .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__conclusion-section .page-blog__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__category-card,
  .page-blog__game-card,
  .page-blog__feature-card {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-blog__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 10px;
  }
}