.page-poker {
  color: #ffffff; /* Light text for dark body background */
}

.page-poker__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  text-align: center;
}

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

.page-poker__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.page-poker__hero-title {
  font-size: 3.5em;
  color: #D4AF37;
  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-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

.page-poker__button--primary {
  background-color: #D4AF37;
  color: #1A202C;
  border: 2px solid #D4AF37;
}

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

.page-poker__button--secondary {
  background-color: transparent;
  color: #D4AF37;
  border: 2px solid #D4AF37;
}

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

.page-poker__button--tertiary {
  background-color: #1A202C;
  color: #D4AF37;
  border: 2px solid #1A202C;
}

.page-poker__button--tertiary:hover {
  background-color: #2c3444;
  color: #e1c773;
  transform: translateY(-2px);
}

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

.page-poker__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-poker__section-title {
  font-size: 2.8em;
  color: #D4AF37;
  margin-bottom: 20px;
  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: #D4AF37;
  border-radius: 2px;
}

.page-poker__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

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

.page-poker__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-poker__game-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-poker__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker__game-title {
  font-size: 1.8em;
  color: #D4AF37;
  margin-bottom: 15px;
}

.page-poker__game-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #cccccc;
}

.page-poker__tournaments-section {
  background-color: #111;
}

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

.page-poker__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-poker__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-poker__feature-icon {
  width: 200px; /* Enforce minimum size for icons */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-poker__feature-text {
  font-size: 1em;
  color: #cccccc;
}

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

.page-poker__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-poker__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-poker__advantage-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-poker__advantage-icon {
  width: 200px; /* Enforce minimum size for icons */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-poker__advantage-text {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
}

.page-poker__how-to-start-section {
  background-color: #111;
}

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

.page-poker__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-poker__step-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-poker__step-title {
  font-size: 1.7em;
  color: #D4AF37;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-poker__step-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 25px;
}

.page-poker__guide-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 30px;
}

.page-poker__text-link {
  color: #D4AF37;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-poker__text-link:hover {
  color: #e1c773;
  text-decoration: underline;
}

.page-poker__promotions-section {
  background-color: #1A202C;
}

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

.page-poker__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-poker__promo-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-poker__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-poker__promo-card h3,
.page-poker__promo-card p,
.page-poker__promo-card .page-poker__button {
  padding: 0 20px;
}

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

.page-poker__promo-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-poker__promo-card .page-poker__button {
  margin-bottom: 20px;
}

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

.page-poker__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-poker__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-poker__faq-answer {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  display: none; /* Hidden by default, toggled by JS */
  padding-top: 10px;
}

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

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

.page-poker__app-download-section {
  background-color: #1A202C;
}

.page-poker__content-area--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-poker__app-text-content {
  flex: 1;
  min-width: 300px;
}

.page-poker__app-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-poker__app-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-poker__hero-title {
    font-size: 2.8em;
  }
  .page-poker__section-title {
    font-size: 2.2em;
  }
  .page-poker__hero-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-poker__hero-section {
    min-height: 500px;
  }
  .page-poker__hero-title {
    font-size: 2.2em;
  }
  .page-poker__hero-description {
    font-size: 1em;
  }
  .page-poker__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__button {
    width: 100%;
  }
  .page-poker__content-area {
    padding: 40px 15px;
  }
  .page-poker__section-title {
    font-size: 1.8em;
  }
  .page-poker__section-description {
    font-size: 0.95em;
  }
  .page-poker__game-grid, .page-poker__tournament-features, .page-poker__advantages-grid, .page-poker__steps-grid, .page-poker__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-poker__app-text-content, .page-poker__app-image {
    max-width: 100%;
    text-align: center;
  }
  .page-poker__app-image {
    order: -1; /* Image above text on mobile */
  }
  .page-poker__app-buttons {
    justify-content: center;
  }

  /* Critical: prevent content overflow on mobile */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }
  .page-poker__game-image, .page-poker__promo-image, .page-poker__app-image {
    height: auto; /* Allow image to scale proportionally */
  }
  /* Ensure content area does not cause horizontal scroll */
  .page-poker__content-area {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-poker__hero-title {
    font-size: 1.8em;
  }
  .page-poker__hero-content {
    padding: 20px;
  }
  .page-poker__button {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-poker__section-title {
    font-size: 1.5em;
  }
  .page-poker__step-title {
    font-size: 1.5em;
  }
  .page-poker__game-image, .page-poker__promo-image {
    height: 180px;
  }
}