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

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

.page-poker__section {
  padding: 60px 0;
  text-align: center;
}

.page-poker__section--dark-bg {
  background-color: #000000; /* Main color */
  color: #ffffff; /* Light text on dark background */
}

.page-poker__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: inherit; /* Inherits from section, either #333333 or #ffffff */
  font-weight: bold;
}

.page-poker__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
}

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

.page-poker__hero-container {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.page-poker__hero-content {
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
}

.page-poker__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

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

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

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

.page-poker__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text on bright button */
  border: 2px solid #FCBC45;
}

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

.page-poker__button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Dark text on white button */
  border: 2px solid #FFFFFF;
}

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

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

.page-poker__button--android {
  background-color: #3DDC84; /* Example Android green */
  color: #000000;
  border: 2px solid #3DDC84;
}

.page-poker__button--android:hover {
  background-color: #35c475;
  transform: translateY(-2px);
}

.page-poker__button--ios {
  background-color: #A2AAAD; /* Example iOS grey */
  color: #000000;
  border: 2px solid #A2AAAD;
}

.page-poker__button--ios:hover {
  background-color: #929a9d;
  transform: translateY(-2px);
}

/* Why Choose Us Section */
.page-poker__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-poker__feature-item:hover {
  transform: translateY(-5px);
}

.page-poker__feature-icon {
  width: 100%; /* Ensure images are not smaller than 200px */
  height: auto;
  max-width: 250px; /* Example max-width for feature icons */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-poker__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.page-poker__feature-description {
  font-size: 0.95em;
  color: #555555;
}

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

.page-poker__game-card {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__game-card:hover {
  transform: translateY(-5px);
}

.page-poker__game-image {
  width: 100%; /* Ensure images are not smaller than 200px */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-poker__game-description {
  font-size: 0.95em;
  color: #cccccc;
}

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

/* How to Start Section */
.page-poker__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  padding-top: 60px;
  color: #333333;
}

.page-poker__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FCBC45;
  color: #000000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #000000;
}

.page-poker__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #000000;
}

.page-poker__step-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-poker__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__promo-card {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__promo-card:hover {
  transform: translateY(-5px);
}

.page-poker__promo-image {
  width: 100%; /* Ensure images are not smaller than 200px */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-poker__promo-description {
  font-size: 0.95em;
  color: #cccccc;
}

/* Security & Fair Play Section */
.page-poker__security-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
}

.page-poker__security-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.page-poker__security-description {
  font-size: 0.95em;
  color: #555555;
}

/* Mobile Advantage Section */
.page-poker__mobile-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-poker__mobile-feature-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__mobile-feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FCBC45;
}

.page-poker__mobile-feature-description {
  font-size: 0.95em;
  color: #cccccc;
}

.page-poker__download-buttons {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-poker__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-poker__faq-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-poker__faq-question {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #000000;
  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.5em;
  transition: transform 0.3s ease;
}

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

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

.page-poker__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
}

/* Final CTA Section */
.page-poker__cta-final .page-poker__section-title,
.page-poker__cta-final .page-poker__section-intro {
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .page-poker__hero-section {
    min-height: 500px;
  }
  .page-poker__hero-title {
    font-size: 2.5em;
  }
  .page-poker__hero-description {
    font-size: 1.1em;
  }
  .page-poker__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__button {
    width: 80%;
    max-width: 300px;
  }
  .page-poker__section-title {
    font-size: 1.8em;
  }
  .page-poker__section-intro {
    font-size: 1em;
  }
  .page-poker__features-grid, .page-poker__game-grid, .page-poker__steps-grid, .page-poker__promo-grid, .page-poker__security-content, .page-poker__mobile-features {
    grid-template-columns: 1fr;
  }
  .page-poker__button--small {
    width: auto;
  }
  /* Mobile content area images must be constrained */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }
  .page-poker__container {
    padding: 0 15px;
  }
  .page-poker {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-poker__hero-title {
    font-size: 2em;
  }
  .page-poker__hero-description {
    font-size: 0.95em;
  }
  .page-poker__section {
    padding: 40px 0;
  }
  .page-poker__section-title {
    font-size: 1.5em;
  }
}

/* Ensure content area images are at least 200px wide */
.page-poker__feature-icon, .page-poker__game-image, .page-poker__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific image dimensions for CLS optimization and minimum size */
.page-poker__hero-image {
  width: 100%; /* Will be overridden by object-fit and parent container */
  height: 100%;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

/* For feature icons/cards, ensuring they meet the minimum 200x200px requirement */
.page-poker__feature-item img, 
.page-poker__game-card img, 
.page-poker__promo-card img {
  width: 100%; /* Occupy card width */
  height: auto; /* Maintain aspect ratio */
  max-width: 400px; /* Example, adjust based on actual card layout */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}