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

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

.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 0;
  background-color: #000000; /* Dark background for hero content */
  color: #FFFFFF;
}

.page-poker__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

.page-poker__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-poker__intro-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

.page-poker__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-poker__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-poker__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-poker__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-poker__about-section, .page-poker__games-section, .page-poker__tournaments-section, .page-poker__bonuses-section, .page-poker__security-section, .page-poker__mobile-section, .page-poker__strategy-section, .page-poker__community-section, .page-poker__faq-section, .page-poker__cta-section {
  padding: 40px 0;
}

.page-poker__games-section {
  background-color: #f8f8f8;
}

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

.page-poker__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-poker__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-poker__game-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-poker__game-title a {
  color: #000000;
  text-decoration: none;
}

.page-poker__game-title a:hover {
  color: #FCBC45;
}

.page-poker__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-poker__button--play-now {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-poker__button--play-now:hover {
  background-color: #333333;
}

.page-poker__button--view-promo, .page-poker__button--check-bonuses, .page-poker__button--learn-security, .page-poker__button--download-app, .page-poker__button--read-strategies, .page-poker__button--contact-support, .page-poker__button--view-all-faq {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  margin-top: 30px;
  display: inline-block;
  border: none;
}

.page-poker__button--view-promo:hover, .page-poker__button--check-bonuses:hover, .page-poker__button--learn-security:hover, .page-poker__button--download-app:hover, .page-poker__button--read-strategies:hover, .page-poker__button--contact-support:hover, .page-poker__button--view-all-faq:hover {
  background-color: #333333;
}

.page-poker__mobile-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-poker__mobile-image {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-poker__faq-list {
  margin-top: 30px;
}

.page-poker__faq-item {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-poker__faq-question {
  font-size: 1.2em;
  color: #000000;
  margin-bottom: 10px;
}

.page-poker__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-poker__faq-answer a {
  color: #000000;
  text-decoration: underline;
}

.page-poker__faq-answer a:hover {
  color: #FCBC45;
}

.page-poker__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  margin-top: 40px;
}

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

.page-poker__cta-section .page-poker__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-poker__button--cta-register {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 8px;
  border: 2px solid #FCBC45;
}

.page-poker__button--cta-register:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-poker__main-title {
    font-size: 3em;
  }
  .page-poker__intro-description {
    font-size: 1.2em;
  }
  .page-poker__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-poker__main-title {
    font-size: 2.5em;
  }
  .page-poker__intro-description {
    font-size: 1.1em;
  }
  .page-poker__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-poker__section-title {
    font-size: 1.8em;
  }
  .page-poker__text-content {
    font-size: 1em;
  }
  .page-poker__game-grid {
    grid-template-columns: 1fr;
  }
  .page-poker__mobile-images {
    flex-direction: column;
    align-items: center;
  }
  .page-poker__mobile-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-poker__hero-section img, .page-poker__about-section img, .page-poker__games-section img, .page-poker__tournaments-section img, .page-poker__bonuses-section img, .page-poker__security-section img, .page-poker__mobile-section img, .page-poker__strategy-section img, .page-poker__community-section img, .page-poker__faq-section img, .page-poker__cta-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  /* Specific rule for content images to prevent overflow and ensure minimum size */
  .page-poker img:not(.shared-header img):not(.shared-footer img) {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-poker__main-title {
    font-size: 2em;
  }
  .page-poker__intro-description {
    font-size: 0.95em;
  }
  .page-poker__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-poker__section-title {
    font-size: 1.5em;
  }
  .page-poker__cta-section .page-poker__button--cta-register {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}