/* CSS Reset & General Styles (scoped to .page-blog) */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

.page-blog__section {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-blog__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  background-color: #E53935; /* Main color */
  color: #ffffff;
  padding: 10px 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1280px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-blog__post-card {
  background: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 220px;
  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: 22px;
  font-weight: 700;
  color: #333333; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #E53935; /* Main color */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FF5A4F; /* Auxiliary color */
}

.page-blog__cta-container {
  text-align: center;
  margin-top: 20px;
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935; /* Main color */
  border: 2px solid #E53935; /* Main color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 17px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
}

/* Promotion Section */
.page-blog__promo-section {
  background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
}

.page-blog__section-title--light, .page-blog__section-description--light {
  color: #ffffff;
}

/* FAQ Section */
.page-blog__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #f9f9f9;
}

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

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #f5f5f5;
  border-bottom: 1px solid #E0E0E0;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #fdfdfd;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #555555;
}

.page-blog__faq-answer p {
  margin: 0;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  background-color: #ffffff;
  padding: 50px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid #E0E0E0;
}

.page-blog__cta-banner-content {
  max-width: 600px;
  text-align: left;
}

.page-blog__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

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

.page-blog__cta-banner-image-wrapper {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* Homepage game trial reset - as per instruction for CSS output */
  .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 three-column layout - as per instruction for CSS output */
  .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;
  }
  .page-blog__promo-strip {
    margin-top: 16px;
  }
  /* Hot Games - PC specific layout for homepage */
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-blog__hot-games-card {
    text-align: center;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: block;
  }
}

@media (max-width: 768px) {
  /* General content area padding for mobile */
  .page-blog__section {
    padding: 30px 15px;
  }
  
  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 28px;
  }

  .page-blog__intro-text {
    font-size: 16px;
  }

  /* Latest Posts Section */
  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .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-excerpt {
    font-size: 14px;
  }

  /* Promo Section */
  .page-blog__promo-section {
    padding: 40px 15px;
  }

  /* FAQ Section */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }

  /* CTA Banner Section */
  .page-blog__cta-banner {
    flex-direction: column;
    gap: 30px;
    padding: 40px 15px;
  }

  .page-blog__cta-banner-content {
    text-align: center;
  }

  .page-blog__cta-title {
    font-size: 28px;
  }

  .page-blog__cta-description {
    font-size: 16px;
  }

  .page-blog__cta-banner-image-wrapper {
    width: 100%;
  }

  /* Mobile image adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Mobile container adaptation */
  .page-blog__section,
  .page-blog__post-card,
  .page-blog__cta-banner-image-wrapper,
  .page-blog__hero-image-wrapper,
  .page-blog__faq-list,
  .page-blog__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button adaptation */
  .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-container,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  
  /* Promo Strip for mobile (example from homepage) */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(4,1fr);
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Hot Games for mobile (example from homepage) */
  .page-blog__hot-games-grid{
    grid-template-columns:repeat(2,1fr);
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: none;
  }
  /* Brand Intro for mobile (example from homepage) */
  .page-blog__brand-intro {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Winner Ticker for mobile (example from homepage) */
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
  }
  body {
    padding-bottom: 50px; /* Adjust if ticker is fixed */
  }
}

/* Homepage specific styles for game trial overlay (as per instruction for CSS output) */
.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;
}
.page-blog__reward-modal.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-blog__reward-modal-close {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #ccc;
}
.page-blog__reward-modal-close:hover {
  color: #fff;
}