.page-poker {
  color: #333333; /* Dark text for default light body background */
}

.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  background-color: #2C3E50; /* Dark blue background for hero text area */
}

.page-poker__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not color change */
}

.page-poker__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #FFFFFF; /* White text on dark hero image */
  max-width: 800px;
  padding: 20px;
  background: rgba(44, 62, 80, 0.6); /* Semi-transparent dark blue overlay for text */
  border-radius: 10px;
}

.page-poker__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-poker__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-poker__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #2C3E50; /* Dark blue text on gold */
  border: 2px solid #FFD700;
}

.page-poker__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-poker__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-poker__button--secondary:hover {
  background-color: #FFD700;
  color: #2C3E50;
}

.page-poker__button--text {
  background: none;
  border: none;
  color: #2C3E50; /* Dark blue for text buttons */
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-poker__button--text:hover {
  color: #FFD700; /* Gold on hover */
}

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

.page-poker__button--centered {
  display: block;
  margin: 30px auto 0 auto;
}

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

.page-poker__section-title {
  font-size: 2.5em;
  color: #2C3E50; /* Dark blue for section titles */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-poker__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-poker__section-paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-poker__game-card, .page-poker__strategy-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-poker__game-card-image, .page-poker__strategy-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filter changes original image color */
}

.page-poker__game-card-title, .page-poker__strategy-card-title {
  font-size: 1.6em;
  color: #2C3E50;
  margin: 20px 20px 10px 20px;
  text-align: center;
}

.page-poker__game-card-title a, .page-poker__strategy-card-title a {
  color: #2C3E50;
  text-decoration: none;
}

.page-poker__game-card-title a:hover, .page-poker__strategy-card-title a:hover {
  color: #FFD700;
}

.page-poker__game-card-description, .page-poker__strategy-card-description {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: center;
}

.page-poker__game-card .page-poker__button--small, .page-poker__strategy-card .page-poker__button--text {
  margin: 0 20px 20px 20px;
  align-self: center;
}

.page-poker__cta-section {
  background-color: #2C3E50; /* Dark blue background for CTA */
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-poker__cta-content .page-poker__section-title {
  color: #FFD700; /* Gold title on dark CTA background */
}

.page-poker__cta-content .page-poker__section-title::after {
  background-color: #FFD700;
}

.page-poker__cta-content .page-poker__section-paragraph {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-poker__hero-title {
    font-size: 2.8em;
  }
  .page-poker__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-poker__hero-content {
    position: static;
    transform: none;
    background: rgba(44, 62, 80, 0.9); /* Darker overlay on mobile */
    border-radius: 0;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-poker__hero-image {
    height: 400px; /* Adjust height for mobile hero image */
  }

  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px);
    display: block; /* Stack image and content */
  }

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

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

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

  .page-poker__button {
    width: 100%;
  }

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

  .page-poker__section-paragraph {
    font-size: 1em;
  }

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

  .page-poker__game-card-image, .page-poker__strategy-card-image {
    height: 200px; /* Min height for card images on mobile */
  }

  /* Critical: Ensure all images within .page-poker are responsive and don't overflow */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }

  .page-poker {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

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

/* Ensure no content images are smaller than 200px */
.page-poker__hero-image,
.page-poker__game-card-image,
.page-poker__strategy-card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific rule to prevent small image sizes, overriding any potential smaller defaults */
.page-poker img:not(.page-poker__hero-image) {
  min-width: 200px; /* Enforce minimum width for content images */
  min-height: 200px; /* Enforce minimum height for content images */
  width: auto; /* Allow auto width to respect aspect ratio */
  height: auto; /* Allow auto height to respect aspect ratio */
}