/* -------------------------------------------------------------------------- */
/*                            Base Styles for Blog Page                       */
/* -------------------------------------------------------------------------- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-blog__hero-section {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-blog__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFB04D; /* Glow */
  border: 2px solid #A84F0C; /* Border */
}

.page-blog__btn-secondary:hover {
  background: rgba(255, 176, 77, 0.1);
  transform: translateY(-2px);
}

.page-blog__read-more-btn {
  background: #FF8C1A;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-blog__read-more-btn:hover {
  background: #FFA53A;
}

/* -------------------------------------------------------------------------- */
/*                               Blog Posts Section                           */
/* -------------------------------------------------------------------------- */
.page-blog__posts-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF3E6;
}

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

.page-blog__post-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  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: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border */
  margin-bottom: 15px;
}

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

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

/* -------------------------------------------------------------------------- */
/*                                Categories Section                          */
/* -------------------------------------------------------------------------- */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

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

.page-blog__category-card {
  background: #0D0E12; /* Background */
  color: #FFB04D; /* Glow */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__category-card:hover {
  background: #FF8C1A;
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*                                  FAQ Section                               */
/* -------------------------------------------------------------------------- */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

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

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: #FFB04D; /* Glow */
}

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, 176, 77, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  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: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

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

/* -------------------------------------------------------------------------- */
/*                                CTA Banner Section                          */
/* -------------------------------------------------------------------------- */
.page-blog__cta-banner {
  padding: 60px 0;
  text-align: center;
  background-color: #0D0E12;
  color: #FFF3E6;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-banner .page-blog__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-blog__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
}

.page-blog__cta-banner p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.page-blog__footer {
  padding: 30px 0;
  background-color: #17191F; /* Card BG */
  text-align: center;
  color: #A84F0C; /* Border */
  font-size: 0.9em;
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Styles                            */
/* -------------------------------------------------------------------------- */

/* General image and container responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__container,
.page-blog__hero-section,
.page-blog__posts-section,
.page-blog__categories-section,
.page-blog__faq-section,
.page-blog__cta-banner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  /* Homepage specific styles (not applicable to blog.css, but included for completeness if this were a homepage) */
  /* .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 styles (not applicable to blog.css, but included for completeness if this were a homepage) */
  /* .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; } */
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 0 20px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 7vw, 2.5em);
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__read-more-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__section-title {
    font-size: 2em;
    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: 1.2em;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .page-blog__category-card {
    font-size: 0.9em;
    padding: 15px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 1em;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-banner p {
    font-size: 1em;
  }

  /* General image and container responsive styles for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__posts-section,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* This is a blog page, homepage-specific game trial CSS is not included here. */
/* If this were the homepage, the full game trial CSS for 1023px and 1024px would be here. */