/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background: #F5F7FA; /* Background */
  color: #333333;
}

.page-blog__main-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935; /* Primary color for emphasis */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 18px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-blog__section-title {
  font-size: 30px;
  font-weight: bold;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

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

.page-blog__latest-posts {
  padding: 40px 0 60px;
  background: #F5F7FA;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__post-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__post-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__post-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #E53935;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #666666;
  margin-bottom: 10px;
}

.page-blog__post-snippet {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__read-more-btn:hover {
  opacity: 0.9;
}

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

.page-blog__view-all-btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__categories-section {
  padding: 60px 0;
  background: #E53935;
  color: #ffffff;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.page-blog__category-item {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__category-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background: #F5F7FA;
}

.page-blog__cta-text {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-blog__cta-btn {
  display: inline-block;
  padding: 15px 35px;
  font-size: 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__faq-section {
  padding: 60px 0;
  background: #F5F7FA;
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Button styles */
.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
}

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

/* Responsive adjustments */
@media (max-width: 1023px) {
  /* This is a non-homepage, so the homepage specific rules for game trial are not strictly needed,
     but including the placeholder for completeness as per prompt. */
  .page-blog__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot {
    display: none !important;
  }
  .page-blog__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-topbar,
  .page-blog__game-trial-bottombar {
    display: none !important;
  }
  .page-blog__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* Homepage specific rules, not directly applicable to blog list page, but included as per prompt for completeness */
  .page-blog__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot,
  .page-blog__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* No promo-strip, hot-games for blog page, but include placeholders if it were a homepage */
  .page-blog__promo-strip { margin-top: 16px; }
}

@media (max-width: 768px) {
  .page-blog__main-title {
    font-size: 28px;
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: 24px;
    padding-top: 30px;
    margin-bottom: 20px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-snippet {
    font-size: 14px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog__category-item {
    font-size: 14px;
    padding: 12px 15px;
  }
  .page-blog__cta-text {
    font-size: 16px;
  }
  .page-blog__cta-btn {
    font-size: 18px;
    padding: 12px 25px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 15px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile responsive for all images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__categories-section,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile responsive for all buttons */
  .page-blog__read-more-btn,
  .page-blog__view-all-btn,
  .page-blog__category-item,
  .page-blog__cta-btn,
  .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;
  }
  /* Button containers mobile adapt */
  .page-blog__view-all-wrapper,
  .page-blog__categories-grid,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  /* Homepage specific media queries (if this were homepage) */
  /* __promo-strip: grid repeat(4,1fr) no horizontal scroll; overflow-x:hidden; card top-image-bottom-text; button width:100% */
  /* __hot-games: 2 columns; hide name/rtp/desc; img 100% width */
  /* __brand-intro (≤768px display) */
  /* __winner-ticker: fixed bottom bar; body/main bottom padding */
}

/* Common overlay and start button (from homepage, included for completeness if used) */
.page-blog__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-blog__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-blog__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-blog__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-blog__reward-modal {
  position:fixed;
  inset:0;
  z-index:10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-blog__reward-modal[hidden] {
  display: none !important;
}
.page-blog__reward-modal-content {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.page-blog__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333333;
}
.page-blog--reward-open {
  overflow: hidden;
}