.page-poker-game-rules {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#111) */
  line-height: 1.6;
}

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

.page-poker-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: #ffffff;
}

.page-poker-game-rules__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-poker-game-rules__hero-content {
  position: relative; /* Ensure content is above any potential background layering issues */
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
}

.page-poker-game-rules__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-poker-game-rules__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-poker-game-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-poker-game-rules__btn-primary,
.page-poker-game-rules__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-poker-game-rules__btn-primary {
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  border: 2px solid #C30808;
}

.page-poker-game-rules__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-poker-game-rules__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-poker-game-rules__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-poker-game-rules__intro-section,
.page-poker-game-rules__terminology-section,
.page-poker-game-rules__strategy-section,
.page-poker-game-rules__faq-section {
  padding: 80px 0;
  color: #ffffff; /* Light text for dark body */
}

.page-poker-game-rules__variants-section,
.page-poker-game-rules__rules-section,
.page-poker-game-rules__tips-section,
.page-poker-game-rules__conclusion-section {
  padding: 80px 0;
  color: #ffffff;
}

.page-poker-game-rules__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  color: #ffffff;
}

.page-poker-game-rules__dark-bg {
  background-color: rgba(1, 116, 57, 0.1); /* Subtle brand color tint */
  color: #ffffff;
}

.page-poker-game-rules__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand color for main titles */
}

.page-poker-game-rules__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-poker-game-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-poker-game-rules__image-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.page-poker-game-rules__image-item {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-poker-game-rules__variant-list,
.page-poker-game-rules__term-list,
.page-poker-game-rules__rule-list,
.page-poker-game-rules__hand-rank-list,
.page-poker-game-rules__action-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-poker-game-rules__variant-item,
.page-poker-game-rules__term-item,
.page-poker-game-rules__rule-item,
.page-poker-game-rules__hand-rank-item,
.page-poker-game-rules__action-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #ffffff;
}

.page-poker-game-rules__variant-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #017439;
}

.page-poker-game-rules__variant-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-poker-game-rules__hand-rank-list li strong {
  color: #FFFF00; /* Highlight for poker hands */
}

.page-poker-game-rules__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-poker-game-rules__faq-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-poker-game-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-poker-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-poker-game-rules__faq-question::-webkit-details-marker {
  display: none;
}

.page-poker-game-rules__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 10px;
  color: #017439;
}

.page-poker-game-rules__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-poker-game-rules__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

.page-poker-game-rules__cta-final {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-poker-game-rules__faq-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-poker-game-rules__faq-items {
    order: 2; /* FAQ text on right */
  }
  .page-poker-game-rules__faq-grid .page-poker-game-rules__image-item {
    order: 1; /* Image on left */
  }
}

@media (max-width: 768px) {
  .page-poker-game-rules__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-poker-game-rules__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-poker-game-rules__hero-description {
    font-size: 1em;
  }

  .page-poker-game-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-poker-game-rules__btn-primary,
  .page-poker-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-poker-game-rules__intro-section,
  .page-poker-game-rules__variants-section,
  .page-poker-game-rules__terminology-section,
  .page-poker-game-rules__rules-section,
  .page-poker-game-rules__strategy-section,
  .page-poker-game-rules__tips-section,
  .page-poker-game-rules__faq-section,
  .page-poker-game-rules__conclusion-section {
    padding: 40px 0;
  }

  .page-poker-game-rules__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-poker-game-rules__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-poker-game-rules__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-poker-game-rules__text-block,
  .page-poker-game-rules__variant-description,
  .page-poker-game-rules__term-item,
  .page-poker-game-rules__rule-item,
  .page-poker-game-rules__hand-rank-item,
  .page-poker-game-rules__action-item,
  .page-poker-game-rules__faq-question,
  .page-poker-game-rules__faq-answer {
    font-size: 1em;
  }

  .page-poker-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-poker-game-rules__hero-image-wrapper,
  .page-poker-game-rules__image-grid,
  .page-poker-game-rules__faq-grid,
  .page-poker-game-rules__variant-item,
  .page-poker-game-rules__term-item,
  .page-poker-game-rules__rule-item,
  .page-poker-game-rules__hand-rank-item,
  .page-poker-game-rules__action-item,
  .page-poker-game-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-poker-game-rules__faq-grid .page-poker-game-rules__image-item {
    margin-bottom: 20px;
  }

  .page-poker-game-rules__cta-final {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding: 0 15px;
  }
}