.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Deep Navy body background, so text must be light */
  background-color: transparent; /* Body background handled by shared.css var(--deep-navy) */
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  background: var(--deep-navy);
  color: var(--text-main);
  text-align: center;
}

.page-blog__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-blog__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F3F8FF;
  border: 2px solid var(--border-color);
}

.page-blog__btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__article-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to fill remaining space */
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link.is-active {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
  text-align: center;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- Contrast Fixes (if needed, based on dynamic analysis) --- */
.page-blog__dark-bg {
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-blog__card {
  color: var(--text-main); /* Ensure card text is light on dark card background */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 6vw, 2.8em);
  }

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

  .page-blog__cta-title {
    font-size: 2.2em;
  }

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

@media (max-width: 768px) {
  /* HERO section (text-only) */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, header offset handled by body */
    padding-bottom: 40px;
  }

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

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

  .page-blog__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Buttons and button containers */
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .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;
  }

  /* Articles section (content area) */
  .page-blog__articles-section {
    padding: 40px 0;
  }

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

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

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

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

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

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 0.95em;
  }

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

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

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

  /* General images (except specific cases like round icons if used) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Placeholder for Module 1 Three-Column Round Images (not used in HTML) */
  .page-blog__icon-box-media {
    /* Not present in HTML for this page, but keeping the media query structure as per strict requirement */
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 16px !important;
  }
  .page-blog__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  /* Placeholder for Seven Tab Game Area (not used in HTML) */
  .page-blog__game-tabs,
  .page-blog__tab-nav,
  .page-blog__game-panel {
    /* Not present in HTML for this page, but keeping the media query structure as per strict requirement */
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Placeholder for Tutorial/Promo/Trust/FAQ/Intro layout (relevant sections covered above) */
  .page-blog__tutorial-section,
  .page-blog__promo-section,
  .page-blog__trust-section,
  .page-blog__faq-section,
  .page-blog__intro-section {
    /* Specific mobile adjustments for these sections if they were present */
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}