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

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

.page-poker__section-title {
  font-size: 2.5rem;
  color: #3A1C71;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-poker__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  overflow: hidden;
  /* Background gradient is for visual effect if image is not loaded or for subtle blend, not for main image */
  background: linear-gradient(135deg, #3A1C71 0%, #D72638 100%); 
  padding: 0; /* padding handled by hero-content */
}

.page-poker__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

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

.page-poker__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  width: 90%;
  padding: 40px;
  box-sizing: border-box;
  z-index: 1;
}

.page-poker__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-poker__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-poker__hero-button {
  display: inline-block;
  background-color: #D72638;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker__hero-button:hover {
  background-color: #b81f2f;
  transform: translateY(-3px);
}

.page-poker__hero-button--secondary {
  background-color: #3A1C71;
}

.page-poker__hero-button--secondary:hover {
  background-color: #2b1451;
}

/* Why TG777 Section */
.page-poker__why-tg777-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

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

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

.page-poker__feature-icon {
  width: 250px; /* Min size 200px */
  height: 187px; /* Maintain aspect ratio for 400x300 display */
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.page-poker__feature-title {
  font-size: 1.5rem;
  color: #3A1C71;
  margin-bottom: 15px;
}

.page-poker__feature-description {
  font-size: 1rem;
  color: #666666;
}

/* Game Types Section */
.page-poker__game-types-section {
  padding: 60px 0;
}

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

.page-poker__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-poker__game-image {
  width: 100%;
  height: 225px; /* Maintain aspect ratio for 400x300 display */
  object-fit: cover;
  display: block;
}

.page-poker__game-title {
  font-size: 1.8rem;
  color: #3A1C71;
  padding: 20px 20px 10px 20px;
}

.page-poker__game-description {
  font-size: 1rem;
  color: #666666;
  padding: 0 20px 20px 20px;
}

.page-poker__game-button {
  display: block;
  background-color: #D72638;
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-poker__game-button:hover {
  background-color: #b81f2f;
}

.page-poker__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-poker__cta-button {
  display: inline-block;
  background-color: #3A1C71;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-poker__cta-button:hover {
  background-color: #2b1451;
}

/* Tournaments Section */
.page-poker__tournaments-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-poker__detail-item {
  background-color: #ffffff;
  padding: 25px;
  border-left: 5px solid #D72638;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-poker__detail-title {
  font-size: 1.6rem;
  color: #3A1C71;
  margin-bottom: 10px;
}

.page-poker__detail-description {
  font-size: 1rem;
  color: #666666;
}

.page-poker__tournament-image {
  width: 800px; /* Display width */
  height: 533px; /* Display height for 1200x800 */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Get Started Section */
.page-poker__get-started-section {
  padding: 60px 0;
}

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

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

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

.page-poker__step-icon {
  width: 300px; /* Min size 200px */
  height: 225px; /* Maintain aspect ratio for 600x400 display */
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.page-poker__step-title {
  font-size: 1.6rem;
  color: #3A1C71;
  margin-bottom: 15px;
}

.page-poker__step-description {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 20px;
}

.page-poker__step-button {
  display: inline-block;
  background-color: #D72638;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-poker__step-button:hover {
  background-color: #b81f2f;
}

/* Tips Section */
.page-poker__tips-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-poker__tip-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-poker__tip-image {
  width: 100%;
  height: 250px; /* Display height for 800x500 */
  object-fit: cover;
  display: block;
}

.page-poker__tip-title {
  font-size: 1.5rem;
  color: #3A1C71;
  padding: 20px 20px 10px 20px;
}

.page-poker__tip-description {
  font-size: 1rem;
  color: #666666;
  padding: 0 20px 20px 20px;
}

/* FAQ Section */
.page-poker__faq-section {
  padding: 60px 0;
}

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

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

.page-poker__faq-question {
  display: block;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #3A1C71;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.page-poker__faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-poker__faq-item[open] .page-poker__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-poker__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
}

.page-poker__faq-answer a {
  color: #D72638;
  text-decoration: none;
}

.page-poker__faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA Section */
.page-poker__cta-final-section {
  background: linear-gradient(135deg, #3A1C71 0%, #D72638 100%);
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

.page-poker__cta-final-section .page-poker__section-title,
.page-poker__cta-final-section .page-poker__section-intro {
  color: #ffffff;
}

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

.page-poker__final-button {
  display: inline-block;
  background-color: #ffffff;
  color: #D72638;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-poker__final-button:hover {
  background-color: #f0f0f0;
  color: #b81f2f;
  transform: translateY(-5px);
}

.page-poker__final-button--secondary {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.page-poker__final-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-title {
    font-size: 3rem;
  }
  .page-poker__hero-description {
    font-size: 1.2rem;
  }
  .page-poker__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-poker__hero-title {
    font-size: 2.2rem;
  }
  .page-poker__hero-description {
    font-size: 1rem;
  }
  .page-poker__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-poker__hero-button,
  .page-poker__final-button {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-poker__features-grid,
  .page-poker__game-grid,
  .page-poker__tournament-details,
  .page-poker__steps-grid,
  .page-poker__tips-grid {
    grid-template-columns: 1fr;
  }

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

  .page-poker__hero-image {
    height: 400px;
  }
  
  .page-poker__feature-icon,
  .page-poker__step-icon {
    width: 100%; /* Occupy full card width */
    max-width: 300px; /* Constrain for smaller screens */
    height: auto; /* Maintain aspect ratio */
  }

  .page-poker__tournament-image {
    width: 100%;
    height: auto;
  }

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

@media (max-width: 480px) {
  .page-poker__hero-content {
    padding: 20px;
  }
  .page-poker__hero-title {
    font-size: 1.8rem;
  }
  .page-poker__hero-description {
    font-size: 0.9rem;
  }
  .page-poker__hero-image {
    height: 300px;
  }
  .page-poker__section-title {
    font-size: 1.5rem;
  }
  .page-poker__content-area {
    padding: 20px 15px;
  }
}