/* style/poker.css */
.page-poker {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding for the main content */
}

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

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

.page-poker__section--dark {
  background-color: #111111; /* Card BG */
}

.page-poker__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color for titles */
}

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

/* Hero Section */
.page-poker__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
}

.page-poker__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-poker__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-poker__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.page-poker__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  line-height: 1.2;
  color: #FFF6D6;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-poker__subtitle {
  font-size: 1.3em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-poker__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-poker__btn-secondary {
  background-color: transparent;
  color: #FFF6D6; /* Text Main */
  border: 2px solid #F2C14E; /* Main color for border */
}

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

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

.page-poker__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: left;
  border: 1px solid #3A2A12; /* Border */
}

.page-poker__feature-icon {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-poker__feature-title {
  font-size: 1.8em;
  color: #FFD36B; /* Auxiliary color for feature titles */
  margin-bottom: 15px;
}

.page-poker__feature-list,
.page-poker__game-types-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-poker__feature-list li,
.page-poker__game-types-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #FFF6D6;
}

.page-poker__feature-list li:before,
.page-poker__game-types-list li:before {
  content: '✓';
  color: #F2C14E;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-poker__step-card {
  padding: 30px;
  text-align: center;
}

.page-poker__step-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

/* Strategy Section */
.page-poker__section--strategy {
  background-color: #0A0A0A;
}

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

.page-poker__strategy-card {
  padding: 30px;
  text-align: left;
}

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

.page-poker__strategy-title {
  font-size: 1.6em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-poker__strategy-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  color: #FFF6D6;
}

.page-poker__strategy-list li {
  margin-bottom: 8px;
}

.page-poker__responsible-gaming-block {
  padding: 40px;
  text-align: center;
}

.page-poker__responsible-gaming-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
}

.page-poker__responsible-gaming-title {
  font-size: 2em;
  color: #F2C14E;
  margin-bottom: 20px;
}

/* Promo Section */
.page-poker__section--promo {
  background-color: #111111;
}

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

.page-poker__promo-card {
  padding: 30px;
  text-align: left;
}

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

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

/* App Section */
.page-poker__section--app {
  background-color: #0A0A0A;
}

.page-poker__app-download-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.page-poker__app-info {
  flex: 1;
  text-align: left;
}

.page-poker__app-title {
  font-size: 2em;
  color: #F2C14E;
  margin-bottom: 20px;
}

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

.page-poker__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-poker__app-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-poker__app-cta-text {
  margin-top: 40px;
  font-size: 1.2em;
  color: #FFF6D6;
}

/* FAQ Section */
.page-poker__section--faq {
  background-color: #111111;
}

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

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

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

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

.page-poker__faq-title {
  margin: 0;
  color: #FFD36B;
}

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

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

.page-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-poker__faq-item.active .page-poker__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

.page-poker__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

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

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

/* CTA Section at bottom */
.page-poker__section--cta {
  padding: 80px 0;
  background-color: #F2C14E; /* Main color */
  color: #0A0A0A;
}

.page-poker__section--cta .page-poker__section-title {
  color: #0A0A0A;
}

.page-poker__section--cta .page-poker__section-description {
  color: #0A0A0A;
}

.page-poker__cta-buttons--bottom .page-poker__btn-primary {
  background: #0A0A0A;
  color: #F2C14E;
  border: 2px solid #0A0A0A;
}

.page-poker__cta-buttons--bottom .page-poker__btn-primary:hover {
  background: #333333;
  color: #FFD36B;
}

.page-poker__cta-buttons--bottom .page-poker__btn-secondary {
  background: transparent;
  color: #0A0A0A;
  border: 2px solid #0A0A0A;
}

.page-poker__cta-buttons--bottom .page-poker__btn-secondary:hover {
  background: #0A0A0A;
  color: #F2C14E;
}

/* Copyright */
.page-poker__copyright {
  background-color: #0A0A0A;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #FFF6D6;
  border-top: 1px solid #3A2A12;
}

/* Card general styling */
.page-poker__card {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-poker img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no image color alteration */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-poker {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 0; /* body handles main padding */
  }

  .page-poker__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

  .page-poker__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-poker__subtitle {
    font-size: 1em;
  }

  .page-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-poker__btn-primary,
  .page-poker__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    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: 2em;
  }

  .page-poker__section-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-poker__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-poker__feature-item,
  .page-poker__step-card,
  .page-poker__strategy-card,
  .page-poker__promo-card,
  .page-poker__responsible-gaming-block {
    padding: 20px;
  }

  .page-poker__app-download-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-poker__app-info {
    text-align: center;
  }

  .page-poker__app-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-poker__app-buttons a {
    width: 100%;
  }

  .page-poker__app-image {
    max-width: 300px;
  }

  .page-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-poker__section,
  .page-poker__card,
  .page-poker__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-poker__cta-buttons--bottom {
    flex-direction: column;
  }
}