:root {
  --primary-color: #11A84E;
  --auxiliary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F; /* Main background color for body/page */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be #F2FFF6 on dark background */
  background-color: var(--bg-color); /* From shared.css, expected to be dark */
}

/* Ensure contrast for main content if default body color is not suitable */
.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Aspect ratio for image, can be adjusted or let img natural size */
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* No filter on images */
}

.page-blog__hero-content {
  background-color: var(--bg-color); /* #08160F */
  padding: 40px 20px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__subtitle {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-blog__text-secondary {
  color: var(--text-secondary); /* Explicitly use secondary text color */
}

/* CTA Button Styles */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--button-gradient);
  color: var(--text-main); /* #F2FFF6 */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--secondary {
  background: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  color: var(--text-main); /* #F2FFF6 */
}

.page-blog__cta-button--secondary:hover {
  background: var(--deep-green); /* #0A4B2C */
}

.page-blog__cta-button--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Articles Grid */
.page-blog__articles-grid,
.page-blog__features-grid,
.page-blog__categories-grid,
.page-blog__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid var(--border-color); /* #2E7A4E */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum display width */
  min-height: 200px; /* Minimum display height */
  filter: none; /* No filter on images */
}

.page-blog__article-content {
  padding: 20px;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: var(--text-main); /* #F2FFF6 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: var(--gold); /* #F2C14E */
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--gold); /* #F2C14E */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #fff;
}

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

/* Dark Section */
.page-blog__dark-section {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}

.page-blog__dark-section .page-blog__section-title {
  color: var(--gold); /* #F2C14E */
}

.page-blog__dark-section .page-blog__section-description {
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Features Grid */
.page-blog__feature-item {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-blog__feature-title {
  font-size: 1.3em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
}

.page-blog__feature-text {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Game Categories */
.page-blog__category-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color); /* #2E7A4E */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum display width */
  min-height: 200px; /* Minimum display height */
  filter: none; /* No filter on images */
}

.page-blog__category-title {
  font-size: 1.3em;
  margin: 15px 0 10px;
  padding: 0 15px;
}

.page-blog__category-title a {
  color: var(--text-main); /* #F2FFF6 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__category-title a:hover {
  color: var(--gold); /* #F2C14E */
}

.page-blog__category-text {
  font-size: 0.95em;
  color: var(--text-secondary); /* #A7D9B8 */
  padding: 0 15px 15px;
}

/* Promotions List */
.page-blog__promotion-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 50px auto;
  max-width: 800px;
  text-align: left;
}

.page-blog__promotion-item {
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* #F2FFF6 */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid var(--gold); /* #F2C14E */
  font-size: 1.1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Steps Grid */
.page-blog__step-item {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-blog__step-title {
  font-size: 1.4em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
}

.page-blog__step-text {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 25px;
}

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

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

.page-blog__faq-item[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  background-color: var(--deep-green); /* #0A4B2C */
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-blog__faq-question:hover {
  background-color: var(--auxiliary-color); /* #22C768 */
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* #F2C14E */
}

.page-blog__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  background-color: var(--card-bg); /* #11271B */
}

.page-blog__faq-answer p {
  margin: 0;
  color: var(--text-secondary); /* Ensure paragraph text color */
}

/* Bottom CTA Section */
.page-blog__cta-bottom {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-blog__cta-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__cta-bottom .page-blog__section-title {
  color: var(--gold); /* #F2C14E */
}

.page-blog__cta-bottom .page-blog__section-description {
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 50px;
}

/* Contrast fix if needed, though colors are chosen for contrast */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure content images are not too small */
.page-blog__article-image,
.page-blog__category-image {
  min-width: 200px; /* Minimum display width */
  min-height: 200px; /* Minimum display height */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__articles-grid,
  .page-blog__features-grid,
  .page-blog__categories-grid,
  .page-blog__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__main-title {
    font-size: 1.8em;
  }

  .page-blog__subtitle {
    font-size: 1em;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
  }

  /* Images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video (if any) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding as body handles header offset */
  }

  /* Buttons */
  .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; /* Ensure padding inside button */
    padding-right: 15px; /* Ensure padding inside button */
  }
  
  .page-blog__view-all-wrapper,
  .page-blog__cta-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between buttons if multiple */
  }

  .page-blog__articles-grid,
  .page-blog__features-grid,
  .page-blog__categories-grid,
  .page-blog__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-image,
  .page-blog__category-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__promotion-list {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-blog__faq-toggle {
    font-size: 1.2em;
  }

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