/* Base styles for the page */
.page-blog-qh99-2024-promotions-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main from palette */
  background-color: #0D0E12; /* Background from palette */
  padding-top: 10px; /* Small top padding for inner pages */
}

.page-blog-qh99-2024-promotions-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog-qh99-2024-promotions-guide__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-blog-qh99-2024-promotions-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

.page-blog-qh99-2024-promotions-guide__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF3E6;
}

/* Hero Section */
.page-blog-qh99-2024-promotions-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  min-height: 450px;
  background: linear-gradient(180deg, rgba(255,140,26,0.1) 0%, rgba(13,14,18,0.8) 100%);
  overflow: hidden;
}

.page-blog-qh99-2024-promotions-guide__hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-blog-qh99-2024-promotions-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-blog-qh99-2024-promotions-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-blog-qh99-2024-promotions-guide__main-title {
  font-size: clamp(28px, 5vw, 48px); /* Using clamp for H1 */
  font-weight: 900;
  color: #FFB04D; /* Glow color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
}

.page-blog-qh99-2024-promotions-guide__hero-description {
  font-size: 19px;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-blog-qh99-2024-promotions-guide__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-qh99-2024-promotions-guide__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-blog-qh99-2024-promotions-guide__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-blog-qh99-2024-promotions-guide__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Main color */
  border: 2px solid #A84F0C; /* Border color */
  box-shadow: 0 2px 10px rgba(168, 79, 12, 0.3);
}

.page-blog-qh99-2024-promotions-guide__btn-secondary:hover {
  background: #2a2d33;
  color: #FFA53A;
  border-color: #FF8C1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 79, 12, 0.5);
}

/* Image styles */
.page-blog-qh99-2024-promotions-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.page-blog-qh99-2024-promotions-guide__image--full-width {
  width: 100%;
  margin: 30px 0;
}

.page-blog-qh99-2024-promotions-guide__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Promo Types Grid */
.page-blog-qh99-2024-promotions-guide__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-qh99-2024-promotions-guide__promo-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.page-blog-qh99-2024-promotions-guide__card-title {
  font-size: 24px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-qh99-2024-promotions-guide__card-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-qh99-2024-promotions-guide__promo-card .page-blog-qh99-2024-promotions-guide__btn-secondary {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Step-by-Step Guide */
.page-blog-qh99-2024-promotions-guide__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-qh99-2024-promotions-guide__step-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.page-blog-qh99-2024-promotions-guide__step-title {
  font-size: 22px;
  color: #FFB04D; /* Glow color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-qh99-2024-promotions-guide__step-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-qh99-2024-promotions-guide__step-item .page-blog-qh99-2024-promotions-guide__btn-primary {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Tips List */
.page-blog-qh99-2024-promotions-guide__tip-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-blog-qh99-2024-promotions-guide__tip-item {
  background-color: #17191F; /* Card BG */
  border-left: 4px solid #FF8C1A; /* Main color */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 17px;
  color: #FFF3E6;
}

.page-blog-qh99-2024-promotions-guide__tip-item strong {
  color: #FFA53A; /* Auxiliary color */
}

/* FAQ Section */
details.page-blog-qh99-2024-promotions-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

details.page-blog-qh99-2024-promotions-guide__faq-item summary.page-blog-qh99-2024-promotions-guide__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: #FFF3E6;
}

details.page-blog-qh99-2024-promotions-guide__faq-item summary.page-blog-qh99-2024-promotions-guide__faq-question::-webkit-details-marker {
  display: none;
}

details.page-blog-qh99-2024-promotions-guide__faq-item summary.page-blog-qh99-2024-promotions-guide__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-blog-qh99-2024-promotions-guide__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A; /* Auxiliary color */
}

.page-blog-qh99-2024-promotions-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04D; /* Glow color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-blog-qh99-2024-promotions-guide__faq-item .page-blog-qh99-2024-promotions-guide__faq-answer {
  padding: 0 20px 20px;
  background: rgba(23, 25, 31, 0.8); /* Slightly lighter card BG */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 16px;
}

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

.page-blog-qh99-2024-promotions-guide__section,
.page-blog-qh99-2024-promotions-guide__container,
.page-blog-qh99-2024-promotions-guide__promo-grid,
.page-blog-qh99-2024-promotions-guide__step-by-step,
.page-blog-qh99-2024-promotions-guide__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Homepage trial layout (as required by prompt, even if this is not homepage) */
@media (max-width: 1023px) {
  .page-blog-qh99-2024-promotions-guide__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-qh99-2024-promotions-guide__hero-brand,
  .page-blog-qh99-2024-promotions-guide__hero-jackpot {
    display: none !important;
  }
  .page-blog-qh99-2024-promotions-guide__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-qh99-2024-promotions-guide__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-qh99-2024-promotions-guide__game-trial-topbar,
  .page-blog-qh99-2024-promotions-guide__game-trial-bottombar {
    display: none !important;
  }
  .page-blog-qh99-2024-promotions-guide__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-qh99-2024-promotions-guide__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-qh99-2024-promotions-guide__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog-qh99-2024-promotions-guide__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-blog-qh99-2024-promotions-guide__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-qh99-2024-promotions-guide__hero-brand,
  .page-blog-qh99-2024-promotions-guide__hero-jackpot,
  .page-blog-qh99-2024-promotions-guide__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-qh99-2024-promotions-guide__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog-qh99-2024-promotions-guide__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog-qh99-2024-promotions-guide__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog-qh99-2024-promotions-guide__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog-qh99-2024-promotions-guide__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* PC specific styles for other modules (as per homepage req) */
  .page-blog-qh99-2024-promotions-guide__promo-strip {
    margin-top: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-blog-qh99-2024-promotions-guide__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-blog-qh99-2024-promotions-guide__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-blog-qh99-2024-promotions-guide__hot-games-name,
  .page-blog-qh99-2024-promotions-guide__hot-games-rtp,
  .page-blog-qh99-2024-promotions-guide__hot-games-desc {
    display: block;
    text-align: center;
  }
  .page-blog-qh99-2024-promotions-guide__hero-brand h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
  .page-blog-qh99-2024-promotions-guide__hero-brand-trust-items {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-blog-qh99-2024-promotions-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-qh99-2024-promotions-guide__hero-section {
    min-height: 300px;
    padding: 20px 0;
  }

  .page-blog-qh99-2024-promotions-guide__main-title {
    font-size: clamp(24px, 8vw, 36px);
  }

  .page-blog-qh99-2024-promotions-guide__hero-description {
    font-size: 16px;
  }

  .page-blog-qh99-2024-promotions-guide__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-blog-qh99-2024-promotions-guide__paragraph {
    font-size: 16px;
  }

  .page-blog-qh99-2024-promotions-guide__cta-button,
  .page-blog-qh99-2024-promotions-guide__btn-primary,
  .page-blog-qh99-2024-promotions-guide__btn-secondary,
  .page-blog-qh99-2024-promotions-guide a[class*="button"],
  .page-blog-qh99-2024-promotions-guide 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;
    font-size: 16px;
  }
  
  .page-blog-qh99-2024-promotions-guide__cta-buttons,
  .page-blog-qh99-2024-promotions-guide__button-group,
  .page-blog-qh99-2024-promotions-guide__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;
    display: flex;
    flex-direction: column;
  }

  .page-blog-qh99-2024-promotions-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog-qh99-2024-promotions-guide__section,
  .page-blog-qh99-2024-promotions-guide__card,
  .page-blog-qh99-2024-promotions-guide__container,
  .page-blog-qh99-2024-promotions-guide__promo-grid,
  .page-blog-qh99-2024-promotions-guide__step-by-step,
  .page-blog-qh99-2024-promotions-guide__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-qh99-2024-promotions-guide__promo-grid,
  .page-blog-qh99-2024-promotions-guide__step-by-step {
    grid-template-columns: 1fr;
  }

  .page-blog-qh99-2024-promotions-guide__promo-card,
  .page-blog-qh99-2024-promotions-guide__step-item {
    padding: 20px;
  }

  .page-blog-qh99-2024-promotions-guide__card-title,
  .page-blog-qh99-2024-promotions-guide__step-title {
    font-size: 20px;
  }

  details.page-blog-qh99-2024-promotions-guide__faq-item summary.page-blog-qh99-2024-promotions-guide__faq-question {
    padding: 15px;
  }
  .page-blog-qh99-2024-promotions-guide__faq-qtext {
    font-size: 16px;
  }
  .page-blog-qh99-2024-promotions-guide__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-blog-qh99-2024-promotions-guide__faq-item .page-blog-qh99-2024-promotions-guide__faq-answer {
    padding: 0 15px 15px;
  }
  
  /* Homepage specific elements from requirements */
  .page-blog-qh99-2024-promotions-guide__promo-strip-track {
    grid-template-columns: repeat(4, 1fr); /* As per requirement */
    overflow-x: scroll; /* Allow horizontal scroll for promo strip if needed */
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .page-blog-qh99-2024-promotions-guide__promo-strip-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .page-blog-qh99-2024-promotions-guide__promo-strip-item {
    flex-direction: column; /* Example for card layout */
    align-items: center;
    text-align: center;
  }
  .page-blog-qh99-2024-promotions-guide__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog-qh99-2024-promotions-guide__hot-games-name,
  .page-blog-qh99-2024-promotions-guide__hot-games-rtp,
  .page-blog-qh99-2024-promotions-guide__hot-games-desc {
    display: none; /* Hide on mobile */
  }
  .page-blog-qh99-2024-promotions-guide__hot-games-item img {
    width: 100%;
    height: auto;
  }
  .page-blog-qh99-2024-promotions-guide__brand-intro {
    display: block; /* If hidden on desktop, show on mobile */
  }
  .page-blog-qh99-2024-promotions-guide__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(13, 14, 18, 0.9);
    padding: 10px 0;
  }
  .page-blog-qh99-2024-promotions-guide .page-content {
    padding-bottom: 60px; /* Adjust for fixed ticker */
  }
}

/* Game trial related styles (as required by prompt) */
.page-blog-qh99-2024-promotions-guide__game-trial-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.page-blog-qh99-2024-promotions-guide__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
  opacity: 0;
}
.page-blog-qh99-2024-promotions-guide__game-trial-start {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  transition: transform 0.2s ease;
}
.page-blog-qh99-2024-promotions-guide__game-trial-start:hover {
  transform: scale(1.05);
}
.page-blog-qh99-2024-promotions-guide__game-trial-shell {
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  overflow: hidden;
}

.page-blog-qh99-2024-promotions-guide__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  box-sizing: border-box;
}
.page-blog-qh99-2024-promotions-guide__reward-modal[hidden] {
  display: none;
}
.page-blog-qh99-2024-promotions-guide__reward-modal-content {
  background: #17191F; /* Card BG */
  color: #FFF3E6;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 2px solid #FF8C1A;
}
.page-blog-qh99-2024-promotions-guide__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFB04D; /* Glow color */
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.page-blog-qh99-2024-promotions-guide__reward-modal-close:hover {
  color: #FFA53A;
}
.page-blog-qh99-2024-promotions-guide__reward-modal-title {
  font-size: 28px;
  color: #FFB04D;
  margin-bottom: 15px;
}
.page-blog-qh99-2024-promotions-guide__reward-modal-text {
  font-size: 18px;
  margin-bottom: 25px;
}
.page-blog-qh99-2024-promotions-guide__reward-modal .page-blog-qh99-2024-promotions-guide__btn-primary {
  width: auto;
  padding: 12px 25px;
  font-size: 16px;
}

/* Body overflow control when modal is open */
body.page-blog-qh99-2024-promotions-guide--reward-open {
  overflow: hidden;
}