/* style/poker-rules.css */
.page-poker-rules {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

.page-poker-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  overflow: hidden;
}

.page-poker-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

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

.page-poker-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-poker-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-poker-rules__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-poker-rules__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-poker-rules__cta-button:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

.page-poker-rules__cta-button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-poker-rules__cta-button--secondary:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-poker-rules__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-poker-rules__introduction-section,
.page-poker-rules__texas-holdem-section,
.page-poker-rules__omaha-section,
.page-poker-rules__hand-rankings-section,
.page-poker-rules__terminology-section,
.page-poker-rules__strategy-tips-section,
.page-poker-rules__why-yy777-section,
.page-poker-rules__cta-final-section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-poker-rules__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-poker-rules__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

.page-poker-rules__sub-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-poker-rules__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-poker-rules__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-poker-rules__list-item {
  background-color: #F8F8F8;
  border-left: 5px solid #FCBC45;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.7;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-poker-rules__list-item strong {
  color: #000000;
}

.page-poker-rules__game-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-poker-rules__glossary {
  margin-top: 30px;
}

.page-poker-rules__term {
  font-weight: bold;
  color: #000000;
  font-size: 1.2em;
  margin-top: 20px;
  margin-bottom: 5px;
}

.page-poker-rules__definition {
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 1.0em;
  line-height: 1.7;
}

.page-poker-rules__cta-final-section {
  background-color: #000000; /* Dark background for final CTA */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-poker-rules__cta-final-section .page-poker-rules__section-title {
  color: #FFFFFF;
}

.page-poker-rules__cta-final-section .page-poker-rules__section-title::after {
  background-color: #FCBC45;
}

.page-poker-rules__cta-final-section .page-poker-rules__text-content {
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-poker-rules__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker-rules__hero-title {
    font-size: 3em;
  }
  .page-poker-rules__section-title {
    font-size: 2em;
  }
  .page-poker-rules__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-poker-rules {
    padding-top: var(--header-offset, 120px);
  }
  .page-poker-rules__hero-section {
    padding: 60px 15px;
  }
  .page-poker-rules__hero-title {
    font-size: 2.5em;
  }
  .page-poker-rules__hero-description {
    font-size: 1.1em;
  }
  .page-poker-rules__section-title {
    font-size: 1.8em;
  }
  .page-poker-rules__sub-title {
    font-size: 1.3em;
  }
  .page-poker-rules__text-content,
  .page-poker-rules__list-item,
  .page-poker-rules__definition {
    font-size: 1em;
  }
  .page-poker-rules__game-image {
    max-width: 100%;
    height: auto;
  }
  .page-poker-rules__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-poker-rules__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker-rules__button-group .page-poker-rules__cta-button {
    width: 100%;
  }
  /* Mobile content area image constraint */
  .page-poker-rules img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-poker-rules__hero-title {
    font-size: 2em;
  }
  .page-poker-rules__section-title {
    font-size: 1.5em;
  }
  .page-poker-rules__sub-title {
    font-size: 1.2em;
  }
  .page-poker-rules__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}