/* General styles */
.page-blog {
  color: #FFF6D6; /* Text Main color as per palette */
  background-color: #0A0A0A; /* Background color as per palette */
  font-family: 'Arial', sans-serif;
}

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  margin-bottom: 40px;
  text-align: center;
  background-color: #0A0A0A; /* Background for the whole section */
  color: #FFF6D6;
  overflow: hidden;
}
.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for the image */
  overflow: hidden;
  margin-bottom: 30px;
}
.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.page-blog__hero-content {
  padding: 0 16px; /* Padding from container */
  max-width: 900px; /* Max width for content block */
  margin: 0 auto; /* Center the content block */
}
.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for title */
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.page-blog__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
}
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.3s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button background */
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-blog__cta-button:hover {
  opacity: 0.9;
}

/* Articles Section */
.page-blog__articles-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
}
.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color */
}
.page-blog__section-intro {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.page-blog__article-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.page-blog__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}
.page-blog__article-content {
  padding: 20px;
  color: #FFF6D6;
}
.page-blog__article-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Main color for article titles */
  line-height: 1.4;
}
.page-blog__article-meta {
  font-size: 14px;
  color: rgba(255, 246, 214, 0.7); /* Lighter text for meta */
  margin-bottom: 15px;
}
.page-blog__article-excerpt {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #FFF6D6;
}
.page-blog__read-more {
  display: inline-block;
  color: #FFD36B; /* Glow color for read more */
  font-weight: 600;
  text-decoration: underline;
}
.page-blog__view-all-wrapper {
  text-align: center;
}
.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  background: #111111; /* Card BG color for secondary button */
  color: #F2C14E; /* Main color for text */
  border: 1px solid #F2C14E; /* Main color for border */
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-blog__view-all-button:hover {
  background-color: #F2C14E;
  color: #111111;
}

/* Why Choose Section */
.page-blog__why-choose-section {
  padding: 60px 0;
  background-color: #F2C14E; /* Main color for dark background */
  color: #111111; /* Dark text for light background */
}
.page-blog__section-title--light {
  color: #111111; /* Dark text for light background */
}
.page-blog__section-intro--light {
  color: #111111;
}
.page-blog__why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-blog__why-item {
  background-color: #FFD36B; /* Auxiliary color for item background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #111111;
}
.page-blog__why-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111111;
}
.page-blog__why-text {
  font-size: 16px;
  line-height: 1.6;
  color: #111111;
}

/* FAQ Section (details based) */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG color */
  color: #FFF6D6; /* Text Main color */
}
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;
  color: #F2C14E; /* Main color for question text */
  font-weight: 600;
}
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(255, 255, 255, 0.05);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle */
  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: rgba(255, 255, 255, 0.03); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}
.page-blog__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #F2C14E; /* Main color for dark background */
  color: #111111; /* Dark text for light background */
}
.page-blog__cta-container {
  max-width: 800px;
  margin: 0 auto;
}
.page-blog__cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111111;
}
.page-blog__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #111111;
}
.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button background */
  border: none;
}
.page-blog__btn-primary:hover {
  opacity: 0.9;
}
.page-blog__btn-secondary {
  background: #111111;
  color: #F2C14E;
  border: 1px solid #F2C14E;
}
.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

/* Responsive Styles */
/* Mobile images and containers */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile buttons and containers */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1023px) {
  /* Game trial reset (as per instruction, even if not on blog page content) */
  .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;
  }

  /* General tablet adjustments */
  .page-blog__hero-content {
    padding: 60px 16px;
  }
  .page-blog__main-title {
    font-size: clamp(26px, 5vw, 40px);
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__why-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  /* Game trial desktop (as per instruction, even if not on blog page content) */
  .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;
  }

  /* Specific blog desktop styles */
  .page-blog__article-card {
    display: flex;
    flex-direction: column;
  }
  .page-blog__article-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  /* Mobile general */
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-content {
    padding: 40px 15px;
  }
  .page-blog__main-title {
    font-size: 28px;
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: 26px;
  }
  .page-blog__section-intro {
    font-size: 16px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column for articles */
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 20px;
  }
  .page-blog__why-list {
    grid-template-columns: 1fr; /* Single column for why list */
  }
  .page-blog__why-item {
    padding: 25px;
  }
  .page-blog__why-title {
    font-size: 22px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
  }
  .page-blog__cta-title {
    font-size: 28px;
  }
  .page-blog__cta-description {
    font-size: 16px;
  }

  /* Mobile image specific (important!) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-section,
  .page-blog__articles-section,
  .page-blog__why-choose-section,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__why-item,
  details.page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button specific (important!) */
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* FAQ mobile */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }

  /* Promo strip and hot games (as per instruction, even if not on blog page content) */
  .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);
  }
}

/* Specific styles for game trial overlay / reward modal (as per instruction) */
.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 #3A2A12; /* Border color from palette */
  border-radius: 10px;
  overflow: hidden;
}
.page-blog__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.page-blog__reward-modal[hidden] {
  display: none;
}
.page-blog__reward-modal-content {
  background: #111111; /* Card BG color */
  color: #FFF6D6; /* Text Main color */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
}
.page-blog__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFD36B;
  cursor: pointer;
}
.page-blog__reward-modal h3 {
  color: #F2C14E;
  margin-bottom: 20px;
}
.page-blog__reward-modal p {
  margin-bottom: 30px;
}
.page-blog__reward-modal .page-blog__cta-button {
  margin-top: 20px;
}