.page-poker {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-poker__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  background-color: #000000; /* Fallback for image loading */
}

.page-poker__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-poker__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 40px 20px;
}

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

.page-poker__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-poker__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-poker__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-poker__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-poker__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-poker__button--login,
.page-poker__button--play-game,
.page-poker__button--learn-more,
.page-poker__button--download-app,
.page-poker__button--view-promo,
.page-poker__button--contact-support,
.page-poker__button--strategy,
.page-poker__button--tournaments,
.page-poker__button--view-all-faq,
.page-poker__button--cta-register {
  background-color: #FCBC45;
  color: #000000;
}

.page-poker__button--login:hover,
.page-poker__button--play-game:hover,
.page-poker__button--learn-more:hover,
.page-poker__button--download-app:hover,
.page-poker__button--view-promo:hover,
.page-poker__button--contact-support:hover,
.page-poker__button--strategy:hover,
.page-poker__button--tournaments:hover,
.page-poker__button--view-all-faq:hover,
.page-poker__button--cta-register:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-poker__about-section,
.page-poker__game-types-section,
.page-poker__strategy-section,
.page-poker__why-choose-section,
.page-poker__tournaments-section,
.page-poker__faq-section,
.page-poker__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-poker__about-section {
  background-color: #f9f9f9;
}

.page-poker__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-poker__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-poker__text-content {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #555555;
}

.page-poker__game-grid,
.page-poker__strategy-grid,
.page-poker__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__game-card,
.page-poker__strategy-card,
.page-poker__feature-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-poker__game-card:hover,
.page-poker__strategy-card:hover,
.page-poker__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-poker__game-card-image,
.page-poker__feature-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

.page-poker__game-card-title,
.page-poker__strategy-card-title,
.page-poker__feature-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-poker__game-card-description,
.page-poker__feature-card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-poker__strategy-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-poker__strategy-list li {
  margin-bottom: 10px;
  color: #555555;
  font-size: 1em;
  position: relative;
  padding-left: 25px;
}

.page-poker__strategy-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FCBC45;
}

.page-poker__why-choose-section {
  background-color: #f0f0f0;
}

.page-poker__faq-section {
  background-color: #f9f9f9;
}

.page-poker__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-poker__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  padding: 25px 30px;
  text-align: left;
}

.page-poker__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-poker__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-poker__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-poker__faq-answer {
  font-size: 1em;
  color: #666666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-poker__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content length */
}

.page-poker__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 100px 0;
}

.page-poker__cta-section .page-poker__section-title {
  color: #FFFFFF;
}

.page-poker__cta-section .page-poker__section-title::after {
  background-color: #FCBC45;
}

.page-poker__cta-section .page-poker__text-content {
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-title {
    font-size: 3em;
  }

  .page-poker__hero-description {
    font-size: 1.2em;
  }

  .page-poker__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-poker__hero-section {
    min-height: 400px;
  }

  .page-poker__hero-title {
    font-size: 2.5em;
  }

  .page-poker__hero-description {
    font-size: 1em;
  }

  .page-poker__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-poker__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-poker__section-title {
    font-size: 2em;
  }

  .page-poker__text-content {
    font-size: 0.95em;
  }

  .page-poker__game-grid,
  .page-poker__strategy-grid,
  .page-poker__features-grid {
    grid-template-columns: 1fr;
  }

  .page-poker__game-card-image,
  .page-poker__feature-card-image {
    height: 200px;
    min-width: 200px; /* Ensure min width */
    min-height: 200px; /* Ensure min height */
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
  }
  
  /* Ensure all images within .page-poker are responsive and don't overflow */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }

  .page-poker__faq-question {
    font-size: 1.2em;
  }

  .page-poker__faq-answer {
    font-size: 0.9em;
  }

  .page-poker__about-section,
  .page-poker__game-types-section,
  .page-poker__strategy-section,
  .page-poker__why-choose-section,
  .page-poker__tournaments-section,
  .page-poker__faq-section,
  .page-poker__cta-section {
    padding: 50px 0;
  }

  .page-poker__container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-poker__hero-title {
    font-size: 2em;
  }

  .page-poker__hero-description {
    font-size: 0.9em;
  }

  .page-poker__section-title {
    font-size: 1.8em;
  }

  .page-poker__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-poker__game-card,
  .page-poker__strategy-card,
  .page-poker__feature-card,
  .page-poker__faq-item {
    padding: 20px;
  }

  .page-poker__game-card-title,
  .page-poker__strategy-card-title,
  .page-poker__feature-card-title {
    font-size: 1.5em;
  }

  .page-poker__faq-question {
    font-size: 1.1em;
  }
}