.page-blog {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F8F8F8; /* Explicitly set to match body background */
}

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
  padding-bottom: 40px;
  background-color: #F8F8F8; /* Light background for the section */
}

.page-blog__hero-section .page-blog__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333; /* Ensure contrast */
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for H1 */
}

.page-blog__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-blog__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Blog List Section */
.page-blog__list-section {
  padding: 60px 0;
  background-color: #ffffff; /* White background for contrast */
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__card-media {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  overflow: hidden;
}

.page-blog__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-blog__card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
  display: block;
}

.page-blog__card-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #EA7C07; /* Accent color for read more link */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* CTA Section */
.page-blog__cta-section {
  background-color: #26A9E0; /* Brand color background */
  padding: 60px 0;
  text-align: center;
  color: #ffffff; /* White text for contrast */
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff; /* White title */
  margin-bottom: 20px;
}

.page-blog__cta-section .page-blog__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

.page-blog__btn-secondary {
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-secondary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__hero-section .page-blog__container {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100%;
  }

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

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

  .page-blog__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section - No var(--header-offset), use small top padding */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-blog__hero-section .page-blog__container {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 20px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1em;
    line-height: 1.5;
  }

  /* Blog List Section */
  .page-blog__list-section {
    padding: 30px 0;
  }

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

  .page-blog__card-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-blog__card-media {
    height: 180px; /* Slightly smaller fixed height for mobile cards */
  }

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

  .page-blog__card-excerpt {
    font-size: 0.95em;
}

  /* CTA Section */
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__cta-section .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__cta-section .page-blog__description {
    font-size: 1.1em;
  }

  /* Buttons and Button Containers */
  .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: 12px 15px !important; /* Adjust padding for mobile */
    font-size: 1em !important;
  }

  .page-blog__view-all-wrapper,
  .page-blog__cta-content {
    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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically for mobile */
  }

  /* Universal image responsiveness for content images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Content containers */
  .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;
  }

  /* Module1 Three-column circular image (Placeholder for strict compliance) */
  .page-blog__icon-box-media {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 16px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }
  .page-blog__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
  }

  /* Seven Tab Game Area (Placeholder for strict compliance) */
  .page-blog__game-tabs {
    padding: 20px 0 !important;
  }
  .page-blog__game-tabs .page-blog__tab-nav {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .page-blog__game-tabs .page-blog__tab-nav button {
    width: 100% !important;
    padding: 10px !important;
    font-size: 1em !important;
  }
  .page-blog__game-tabs .page-blog__game-panel {
    padding: 15px !important;
  }

  /* Tutorial long text / Promo / Trust / FAQ / Blog / Intro Layout (Placeholder for strict compliance) */
  .page-blog__guide-section,
  .page-blog__promo-section,
  .page-blog__trust-section,
  .page-blog__faq-section,
  .page-blog__intro-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .page-blog__guide-section h2, .page-blog__promo-section h2, .page-blog__trust-section h2, .page-blog__faq-section h2, .page-blog__intro-section h2 {
    font-size: 1.8em !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  .page-blog__guide-section p, .page-blog__promo-section p, .page-blog__trust-section p, .page-blog__faq-section p, .page-blog__intro-section p {
    font-size: 1em !important;
    line-height: 1.6 !important;
  }
  /* If any of these sections have multi-column layouts */
  .page-blog__guide-section .page-blog__column-wrapper,
  .page-blog__promo-section .page-blog__column-wrapper,
  .page-blog__trust-section .page-blog__column-wrapper,
  .page-blog__faq-section .page-blog__column-wrapper,
  .page-blog__intro-section .page-blog__column-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
}