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

.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 */
  padding-top: var(--header-offset, 120px); /* Desktop and mobile header offset */
}

.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: 2;
  text-align: center;
  color: #ffffff; /* White text over hero image */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
  margin: 20px;
}

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

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

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

.page-poker__btn {
  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;
  border: none;
}

.page-poker__btn--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Deep Red text for contrast */
}

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

.page-poker__btn--secondary {
  background-color: #8B0000; /* Deep Red secondary button */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #FFD700;
}

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

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

.page-poker__btn--large {
  padding: 20px 40px;
  font-size: 1.4em;
}

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

.page-poker__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep Red for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

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

.page-poker__about-section, .page-poker__strategy-section, .page-poker__security-section, .page-poker__download-section, .page-poker__call-to-action-section {
  background-color: #f8f8f8;
  padding: 80px 0;
  text-align: center;
}

.page-poker__variants-section, .page-poker__tournaments-section, .page-poker__faq-section {
  background-color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

.page-poker__card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-poker__card:hover {
  transform: translateY(-10px);
}

.page-poker__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-poker__card-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-poker__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-poker__strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.page-poker__strategy-text {
  padding-right: 20px;
}

.page-poker__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-poker__image--center {
  display: block;
  margin: 40px auto;
}

.page-poker__image--full-width {
  width: 100%;
  max-width: 1000px; /* Constrain max width for full width image */
  margin: 40px auto;
  display: block;
}

.page-poker__download-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

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

.page-poker__faq-question {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-poker__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
}

.page-poker__call-to-action-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient background */
  color: #ffffff;
}

.page-poker__call-to-action-section .page-poker__section-title {
  color: #ffffff;
}

.page-poker__call-to-action-section .page-poker__section-title::after {
  background-color: #ffffff;
}

.page-poker__call-to-action-section .page-poker__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 20px auto 40px;
}

@media (max-width: 992px) {
  .page-poker__main-title {
    font-size: 2.5em;
  }

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

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

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

  .page-poker__strategy-text {
    padding-right: 0;
  }
  
  .page-poker__strategy-image {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-poker__hero-section {
    min-height: 400px;
    padding: 40px 15px; /* Adjust padding for mobile */
  }

  .page-poker__hero-content {
    padding: 30px 20px;
  }

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

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

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

  .page-poker__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-poker__btn--large {
    padding: 15px 30px;
    font-size: 1.2em;
  }

  .page-poker__content-wrapper {
    padding: 40px 15px;
  }

  .page-poker__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-poker__cards-grid {
    grid-template-columns: 1fr;
  }

  .page-poker__card-image {
    height: 180px;
  }

  .page-poker__image {
    max-width: 100%;
    height: auto;
  }

  .page-poker__download-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure content images do not cause horizontal scroll */
  .page-poker img {
    max-width: 100%;
    height: auto;
  }
}