/* Base styles for the game-guides page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

.page-game-guides__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-game-guides__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 20px;
  gap: 20px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__hero-content {
  max-width: 900px;
}

.page-game-guides__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #FFCC66; /* Gold */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 18px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
}

.page-game-guides__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  color: #FFCC66; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-game-guides__section-description {
  font-size: 17px;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-game-guides__card {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__card-title {
  font-size: 22px;
  color: #FFCC66; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-game-guides__game-guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-guides__game-card {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-game-guides__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-guides__game-card-title {
  font-size: 20px;
  color: #FFCC66; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-guides__game-card-title a {
  color: #FFCC66; /* Gold */
  text-decoration: none;
}

.page-game-guides__game-card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__game-card p {
  font-size: 15px;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__text-block {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__text-block-title {
  font-size: 22px;
  color: #FFCC66; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.page-game-guides__text-block p {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary {
  background: #B71C1C; /* Background color for secondary */
  color: #FFCC66; /* Gold for text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #F2B544; /* Border */
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-block;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-secondary:hover {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFD86A; /* Lighter gold for hover */
}

.page-game-guides__cta-section {
  background: #7A0E0E; /* Deep Red */
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border-radius: 10px;
}

.page-game-guides__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 40px 20px;
}

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
}
details.page-game-guides__faq-item summary.page-game-guides__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;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #7A0E0E; /* Deep Red */
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFCC66; /* Gold */
}
.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A; /* Button color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #B71C1C; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main */
}

/* Image and button responsiveness for all screens */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__section,
.page-game-guides__card,
.page-game-guides__container,
.page-game-guides__game-card,
.page-game-guides__text-block,
.page-game-guides__cta-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
/* Homepage Trial Section (forced inclusion as per prompt, even if not directly relevant to this inner page) */
@media (max-width: 1023px) {
  .page-game-guides__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-game-guides__hero-brand,
  .page-game-guides__hero-jackpot {
    display: none !important;
  }
  .page-game-guides__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-game-guides__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-game-guides__game-trial-topbar,
  .page-game-guides__game-trial-bottombar {
    display: none !important;
  }
  .page-game-guides__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-game-guides__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-game-guides__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-game-guides__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-game-guides__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-game-guides__hero-brand,
  .page-game-guides__hero-jackpot,
  .page-game-guides__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-game-guides__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-game-guides__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-game-guides__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-game-guides__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-game-guides__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-game-guides {
    padding-top: 5px; /* Adjust for smaller screens */
  }

  .page-game-guides__hero-section {
    padding: 30px 15px 15px;
  }

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

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

  .page-game-guides__section {
    padding: 30px 15px;
  }

  .page-game-guides__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-game-guides__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-game-guides__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card,
  .page-game-guides__text-block {
    padding: 20px;
  }

  .page-game-guides__card-title,
  .page-game-guides__text-block-title {
    font-size: 20px;
  }

  .page-game-guides__card p,
  .page-game-guides__text-block p {
    font-size: 15px;
  }

  .page-game-guides__game-guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__game-card-image {
    height: 180px;
  }

  .page-game-guides__game-card-title {
    font-size: 18px;
  }

  .page-game-guides__game-card p {
    font-size: 14px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    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-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__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-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__game-card,
  .page-game-guides__text-block,
  .page-game-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  details.page-game-guides__faq-item summary.page-game-guides__faq-question { padding: 15px; }
  .page-game-guides__faq-qtext { font-size: 15px; }
  details.page-game-guides__faq-item .page-game-guides__faq-answer { padding: 0 15px 15px; }

  /* Homepage related sections (forced inclusion as per prompt) */
  .page-game-guides__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(2, 1fr) !important; /* Example for mobile, 2 columns */
    overflow-x: hidden;
  }
  .page-game-guides__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-game-guides__brand-intro { /* Placeholder for homepage brand intro */
    display: block !important;
  }
  .page-game-guides__winner-ticker { /* Placeholder for homepage winner ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body.page-game-guides--reward-open .page-game-guides__winner-ticker {
    display: none !important;
  }
}

/* Common styles for game trial overlay (forced inclusion) */
.page-game-guides__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-game-guides__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-game-guides__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-game-guides__game-trial-shell {
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  overflow: hidden;
}
.page-game-guides__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-game-guides__reward-modal:not([hidden]) {
  display: flex;
}
.page-game-guides__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-game-guides__reward-modal-content {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}
.page-game-guides__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFCC66; /* Gold */
  cursor: pointer;
  transition: color 0.2s ease;
}
.page-game-guides__reward-modal-close:hover {
  color: #FFD86A; /* Button color */
}
.page-game-guides__reward-modal-title {
  color: #FFCC66; /* Gold */
  font-size: 28px;
  margin-bottom: 15px;
}
.page-game-guides__reward-modal-description {
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
  margin-bottom: 25px;
}
.page-game-guides__reward-modal-button {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}
.page-game-guides__dark-section {
  background: #7A0E0E; /* Deep Red */
  color: #ffffff;
}