/* style/poker.css */
.page-poker {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

/* Fixed Header Spacing */
.page-poker__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, will be overridden by shared.css media query for mobile */
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

/* Hero Section */
.page-poker__hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height for better composition */
}

.page-poker__hero-text-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and text */
}

.page-poker__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFD36B; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-poker__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-poker__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-poker__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button custom color */
  color: #0A0A0A; /* Dark text on light button */
  border: 2px solid transparent;
}

.page-poker__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-poker__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 2px solid #3A2A12; /* Border color */
}

.page-poker__btn-secondary:hover {
  background: #FFD36B; /* Glow color */
  color: #111111; /* Dark text on light button */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* General Section Styling */
.page-poker__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-poker__section:last-of-type {
  border-bottom: none;
}

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

.page-poker__section-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: #FFD36B; /* Glow color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-poker__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
  text-align: justify;
}

.page-poker__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  max-width: 800px; /* Example max width */
}

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

.page-poker__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF6D6; /* Text Main */
}

.page-poker__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-poker__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-poker__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow color */
  padding: 15px 20px 5px;
  margin: 0;
}

.page-poker__card-description {
  font-size: 0.95em;
  padding: 0 20px 15px;
  flex-grow: 1; /* Push button to bottom */
}

.page-poker__card-button {
  margin: 0 20px 20px;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Numbered List (How to Play) */
.page-poker__numbered-list {
  list-style: none;
  counter-reset: how-to-step;
  padding: 0;
  margin-top: 40px;
}

.page-poker__numbered-list li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-poker__numbered-list li::before {
  counter-increment: how-to-step;
  content: counter(how-to-step);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button custom color */
  color: #0A0A0A; /* Dark text */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-poker__list-title {
  font-size: 1.4em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 10px;
}

.page-poker__numbered-list p a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}

.page-poker__numbered-list p a:hover {
  text-decoration: underline;
}

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

.page-poker__strategy-item {
  padding: 30px;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6; /* Text Main */
}

/* Feature List */
.page-poker__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-poker__feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6; /* Text Main */
}

.page-poker__feature-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.page-poker__feature-list li .page-poker__list-title {
  font-size: 1.3em;
  color: #FFD36B; /* Glow color */
  margin-top: 0;
  margin-bottom: 5px;
}

.page-poker__feature-list li p {
  font-size: 0.95em;
  margin-top: 0;
}

.page-poker__feature-list li a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}

.page-poker__feature-list li a:hover {
  text-decoration: underline;
}

/* Responsible Gaming List */
.page-poker__responsible-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-poker__responsible-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-poker__responsible-list li a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}

.page-poker__responsible-list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-poker__faq {
  padding-bottom: 80px;
}

.page-poker__faq-list {
  margin-top: 40px;
}

.page-poker__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
  background-color: #1A1A1A;
}

.page-poker__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Adjust to fit parent font-size */
  color: inherit;
}

.page-poker__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Main color */
}

.page-poker__faq-item.active .page-poker__faq-toggle {
  transform: rotate(45deg);
}

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Adjust padding for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 15px 25px 25px; /* Expanded padding */
}

.page-poker__faq-answer p {
  margin: 0;
}

/* Links within FAQ answer */
.page-poker__faq-answer a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}

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

/* Bottom CTA */
.page-poker__cta-bottom {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(90deg, #0A0A0A 0%, #1A1A1A 50%, #0A0A0A 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-poker__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query */
  }

  .page-poker__hero-image {
    max-height: 400px;
  }

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

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

  .page-poker__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-poker__section {
    padding: 40px 0;
  }

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

  .page-poker__text-block {
    font-size: 1em;
  }

  .page-poker__container {
    padding: 0 15px; /* Add padding to main containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure image containers are also responsive */
  .page-poker__section,
  .page-poker__card,
  .page-poker__container,
  .page-poker__game-grid,
  .page-poker__strategy-grid,
  .page-poker__feature-list,
  .page-poker__faq-list,
  .page-poker__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-poker__game-grid,
  .page-poker__strategy-grid,
  .page-poker__feature-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

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

  .page-poker__numbered-list li {
    padding-left: 50px;
  }

  .page-poker__numbered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .page-poker__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-poker__faq-answer {
    padding: 0 20px;
  }

  .page-poker__faq-item.active .page-poker__faq-answer {
    padding: 10px 20px 20px;
  }
}

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