/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top for header offset */
}

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

.page-blog__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-blog__section-title--white {
  color: #FFF1E8; /* Text Main */
}

.page-blog__hero-section {
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #FFF1E8;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(20, 12, 12, 0.8) 0%, #140C0C 100%);
  margin-top: -100px; /* Pull content up over the image a bit for visual flow */
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  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, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  border: none;
}

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

.page-blog__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  border: 2px solid #F3C54D; /* Gold */
}

.page-blog__btn-secondary:hover {
  background: #3A2222;
  color: #FFB04A;
}

.page-blog__btn-small {
    font-size: 16px;
    padding: 12px 25px;
}

.page-blog__introduction-section,
.page-blog__security-section {
  padding: 60px 0;
}

.page-blog__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-blog__text-content {
  flex: 1;
}

.page-blog__text-content p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-blog__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-blog__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #2A1212; /* Card BG */
}

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

.page-blog__category-card {
  background: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__card-content {
  padding: 20px;
}

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #F3C54D; /* Gold */
  text-decoration: none;
}

.page-blog__card-title a:hover {
  color: #FFB04A;
  text-decoration: underline;
}

.page-blog__card-text {
  font-size: 15px;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #FFB04A;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.page-blog__read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #FFB04A;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.page-blog__read-more:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.page-blog__cta-buttons--center {
  justify-content: center;
}

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

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}

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;
  color: #FFF1E8;
}

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: #3A2222;
}

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

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF1E8;
  font-size: 16px;
}

/* Final CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #C61F1F; /* Main Color */
  color: #FFF1E8;
}

.page-blog__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-blog__cta-title {
  font-size: 40px;
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-blog__cta-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

.page-blog__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

/* --- General Image & Button Responsive Rules --- */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__content-wrapper,
.page-blog__cta-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries --- */

/* Required for homepage compatibility, even if not directly used on blog page HTML */
@media (max-width: 1023px) {
  .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;
  }
}

/* Required for homepage compatibility, even if not directly used on blog page HTML */
@media (min-width: 1024px) {
  .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;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-blog__main-title {
    font-size: 36px;
  }

  .page-blog__hero-content {
      margin-top: -60px;
      padding: 30px 15px;
  }

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

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

  .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: 12px 20px;
    font-size: 16px;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-blog__content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-blog__text-content p {
    font-size: 15px;
  }

  .page-blog__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-blog__card-title {
    font-size: 20px;
  }

  .page-blog__card-text {
    font-size: 14px;
  }

  .page-blog__faq-list {
    padding: 0 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: 24px;
    width: 24px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

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

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

  .page-blog__cta-container {
      padding: 0 15px;
  }

  /* Required for homepage compatibility, even if not directly used on blog page HTML */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(4, 1fr) !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
  }
  .page-blog__promo-card {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
  }
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 15px !important;
    overflow-x: hidden !important;
  }
  .page-blog__hot-game-item img {
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hot-games-name, .page-blog__hot-games-rtp, .page-blog__hot-games-desc {
    display: none !important;
  }
  .page-blog__brand-intro {
    padding: 30px 15px !important;
  }
  .page-blog__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
  }
  body {
    padding-bottom: 50px; /* Adjust if winner ticker is fixed */
  }
  .page-blog__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Global image rules for content, ensures they don't use filter */
.page-blog img {
  filter: none !important;
}

/* Overlay for game trial, required for homepage compatibility */
.page-blog__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  transition: opacity 0.3s ease;
}

.page-blog__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none !important;
}

.page-blog__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s ease;
}

.page-blog__game-trial-start:hover {
  opacity: 0.9;
}

.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;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-blog--reward-open .page-blog__reward-modal {
  opacity: 1;
  visibility: visible;
}

.page-blog__reward-modal-content {
  background: #2A1212;
  color: #FFF1E8;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  position: relative;
}

.page-blog__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFF1E8;
  font-size: 24px;
  cursor: pointer;
}

.page-blog__reward-modal-title {
  color: #F3C54D;
  font-size: 28px;
  margin-bottom: 20px;
}

.page-blog__reward-modal-text {
  font-size: 16px;
  margin-bottom: 30px;
}

.page-blog__reward-modal-cta {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}