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

/* Dark background sections */
.page-blog__dark-section {
  background: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark backgrounds */
  padding: 40px 0;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__paragraph,
.page-blog__dark-section .page-blog__benefit-title,
.page-blog__dark-section .page-blog__benefit-item {
  color: #FFF5E1;
}

/* Light background sections */
.page-blog__light-bg {
  background: #ffffff;
  color: #333333;
  padding: 40px 0;
}

.page-blog__text-contrast-fix {
  color: #333333;
}

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

.page-blog__text-center {
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #C91F17;
}

.page-blog__paragraph {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, main padding from body */
  position: relative;
  overflow: hidden;
  color: #FFF5E1;
  background-color: #7A0E0E; /* Deep Red as fallback/complement */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content-wrapper {
  padding: 40px 0;
  text-align: center;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #FFF5E1;
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-outline,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 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: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F4D34D;
}

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.6);
}

.page-blog__btn-secondary {
  background: #7A0E0E;
  color: #FFF5E1;
  border: 2px solid #F4D34D;
}

.page-blog__btn-secondary:hover {
  background: #C91F17;
  box-shadow: 0 0 15px rgba(229, 57, 53, 0.4);
}

.page-blog__btn-outline {
  background: transparent;
  color: #C91F17;
  border: 2px solid #C91F17;
  padding: 8px 15px;
  font-size: 0.95em;
  margin-top: auto; /* For card alignment */
}

.page-blog__btn-outline:hover {
  background: #C91F17;
  color: #FFF5E1;
}

/* Content Grid for Categories */
.page-blog__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-blog__card {
  background: #D32F2F; /* Custom card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #FFF5E1; /* Text for dark card background */
}

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

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

.page-blog__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-blog__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF5E1;
  flex-grow: 1;
}

/* Benefit List */
.page-blog__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-blog__benefit-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFF5E1;
}

.page-blog__benefit-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold color for titles */
}

/* Blog Masonry / Cards */
.page-blog__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}

.page-blog__blog-card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #FFF5E1;
}

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

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

.page-blog__blog-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #FFF5E1;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #F4D34D;
  margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF5E1;
  flex-grow: 1;
  margin-bottom: 15px;
}

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

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

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF5E1;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #F4D34D;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF5E1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    height: 400px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__content-grid,
  .page-blog__blog-masonry {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__benefit-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-blog__hero-image-wrapper {
    height: 300px;
  }
  .page-blog__hero-content-wrapper {
    padding: 20px 0;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-outline,
  .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;
  }
  .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;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-blog__content-grid,
  .page-blog__blog-masonry {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
  }
  .page-blog__card-image {
    height: 200px;
  }
  .page-blog__blog-card-image {
    height: 180px;
  }
  .page-blog__benefit-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section .page-blog__container,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* No specific styles for __home-content, __row-games, __slider-wrapper, __slider-track, __game-slide, __banners-top-wrapper, __banner-item as they are homepage specific and not used here. */
}