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

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

.page-blog__section-spacing {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD36B; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
}

.page-blog__section-description {
  font-size: 16px;
  color: #FFF6D6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-blog__post-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__post-title, .page-blog__news-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a, .page-blog__news-title a {
  color: #F2C14E; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover, .page-blog__news-title a:hover {
  color: #FFD36B; /* Auxiliary color */
}

.page-blog__post-date, .page-blog__news-date {
  font-size: 14px;
  color: #AAA;
  margin-bottom: 15px;
  display: block;
}

.page-blog__post-excerpt, .page-blog__news-excerpt {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* News section specific styling */
.page-blog__news-events {
  background-color: #111111; /* Card BG, but for a section */
  border-top: 1px solid #3A2A12;
}

.page-blog__news-item {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* CTA Section */
.page-blog__cta-container {
  background-color: #111111;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

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

.page-blog__cta-button {
  padding: 14px 35px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Buttons - Primary */
.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  color: #0A0A0A;
}

/* Buttons - Secondary */
.page-blog__btn-secondary {
  background: #111111;
  color: #F2C14E; /* Main color */
  border: 2px solid #3A2A12;
}

.page-blog__btn-secondary:hover {
  background: #0A0A0A;
  color: #FFD36B; /* Auxiliary color */
  border-color: #F2C14E;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* 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: rgba(242, 193, 78, 0.1);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Main color */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color */
  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: #0A0A0A; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-blog__hero-section {
    padding-bottom: 20px;
  }
  .page-blog__main-title {
    font-size: 36px;
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__posts-grid, .page-blog__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  /* Homepage specific trial CSS, not directly relevant for blog, but must be outputted if present */
  .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;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;aspect-ratio:1024/768;min-height:240px;max-height:none!important;flex:none!important;overflow:hidden;box-sizing:border-box;width:100%;}
  .page-blog__game-trial-frame {position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!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) {
  .page-blog__hero-section {
    padding-bottom: 60px;
  }
  /* Homepage specific trial CSS, not directly relevant for blog, but must be outputted if present */
  .page-blog__home-hero {display:grid;grid-template-columns:26% 48% 26%;align-items:stretch;max-width:1280px;margin:0 auto;padding-bottom:24px;}
  .page-blog__hero-brand,.page-blog__hero-jackpot,.page-blog__game-trial {height:300px;max-height:300px;}
  .page-blog__game-trial {overflow:hidden;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;}
  /* .page-blog__promo-strip {margin-top:16px;} */ /* Not a homepage promo strip */
}

@media (max-width: 768px) {
  .page-blog__section-spacing {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: 28px;
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: 24px;
  }
  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-blog__posts-grid, .page-blog__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-card, .page-blog__news-item {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title, .page-blog__news-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt, .page-blog__news-excerpt {
    font-size: 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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-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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 16px; }
  .page-blog__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
  /* For homepage specific elements, if they were present (not for this blog page, but for completeness as per rules) */
  /* @media (max-width:768px){.page-blog__promo-strip-track{grid-template-columns:repeat(4,1fr);overflow-x:hidden;}.page-blog__hot-games-grid{grid-template-columns:repeat(2,1fr);}} */
  /* Placeholder for winner ticker if it was a homepage element */
}

/* Ensure color contrast for dark backgrounds */
.page-blog__dark-section {
  background: #111111; /* Card BG */
  color: #FFF6D6;
}
.page-blog__dark-section .page-blog__section-title {
  color: #FFD36B;
}
.page-blog__dark-section .page-blog__section-description {
  color: #FFF6D6;
}
.page-blog__dark-section .page-blog__news-item {
  background-color: #0A0A0A;
}

/* Fixed homepage CSS blocks - must be present as per rules */
/* This block is for homepage trial, not used in blog.html, but included as per instructions for 1023px */
.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;}