.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Fixed header spacing */
  position: relative;
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 15px;
  background-color: rgba(38, 169, 224, 0.8); /* Overlay with brand color */
  margin-top: -100px; /* Overlap with image slightly for visual effect */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

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

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

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-blog__btn-outline {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  margin-top: auto; /* For card alignment */
}

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

.page-blog__introduction-section,
.page-blog__featured-topics,
.page-blog__why-read-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-blog__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-blog__section-title--white {
  color: #ffffff;
}

.page-blog__introduction-section p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

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

.page-blog__topic-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-blog__topic-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__topic-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #f0f8ff; /* Light blue tint background */
  margin-bottom: 40px;
  color: #333333;
}

.page-blog__dark-bg {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text */
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch; /* Ensure cards of equal height */
}

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.4;
}

.page-blog__article-title:hover {
  text-decoration: underline;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog__benefits-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333333;
}

.page-blog__benefits-list li strong {
  color: #26A9E0;
  font-size: 1.15rem;
}

.page-blog__conclusion-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text */
}

.page-blog__conclusion-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Placeholder for homepage specific elements to satisfy template, set to display: none */
.page-blog__home-content, .page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop, .page-blog__slider-wrapper, .page-blog__banners-top-wrapper {
  display: none;
}

/* Blog masonry from template - already integrated */
.page-blog__blog-masonry { /* This is the same as .page-blog__article-grid */ }
.page-blog__blog-card-link { /* This is the same as .page-blog__article-link */ }
.page-blog__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; }
.page-blog__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__hero-content {
    padding: 40px 15px;
    margin-top: -80px;
  }

  .page-blog__hero-title {
    font-size: 3rem;
  }
}

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

  .page-blog__hero-section {
    margin-bottom: 20px;
  }

  .page-blog__hero-image-wrapper {
    padding-bottom: 75%; /* More square aspect ratio for mobile */
  }

  .page-blog__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
    border-radius: 0;
    box-shadow: none;
  }

  .page-blog__hero-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-outline {
    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;
  }

  .page-blog__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-blog__introduction-section,
  .page-blog__featured-topics,
  .page-blog__why-read-section,
  .page-blog__articles-section,
  .page-blog__conclusion-cta {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-blog__introduction-section p {
    font-size: 1rem;
  }

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

  .page-blog__topic-title {
    font-size: 1.2rem;
  }

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

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.15rem;
  }

  .page-blog__article-excerpt {
    font-size: 0.95rem;
  }

  .page-blog__benefits-list li {
    font-size: 1rem;
    padding: 15px;
  }

  .page-blog__benefits-list li strong {
    font-size: 1.05rem;
  }

  .page-blog__conclusion-text {
    font-size: 1rem;
  }

  /* Mobile image specific rules */
  .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__article-card, .page-blog__topic-card, .page-blog__hero-section, .page-blog__introduction-section, .page-blog__featured-topics, .page-blog__articles-section, .page-blog__why-read-section, .page-blog__conclusion-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure blog slider track (if present) behaves correctly */
  .page-blog__blog-slider-track {
    flex-wrap: wrap !important; /* Allow wrapping if items don't fit horizontally */
    justify-content: center; /* Center items if they wrap */
  }
  .page-blog__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Placeholder for home-content mobile rules if it were to be included */
  .page-blog__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px 15px !important;
  }
}

/* Additional placeholder styles for template compliance (set to display: none if not used) */
.page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop, .page-blog__slider-wrapper, .page-blog__banners-top-wrapper {
  display: none;
}

/* Default styles for blog-slider-track and blog-slide to satisfy template, even if not explicitly used for a slider */
.page-blog__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; }
.page-blog__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }