.page-how-to-play {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color on dark background */
  background-color: #08160F; /* Overall page background */
}

.page-how-to-play__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-how-to-play__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px; /* Space below content */
  background-color: #08160F;
}

.page-how-to-play__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
}

.page-how-to-play__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  position: relative; /* Ensure content is above image */
  z-index: 1;
}

.page-how-to-play__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #F2C14E; /* Gold for main title */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-how-to-play__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-how-to-play__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-how-to-play__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-how-to-play__btn-primary,
.page-how-to-play__btn-secondary,
.page-how-to-play__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-how-to-play__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-how-to-play__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-how-to-play__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-how-to-play__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
}

.page-how-to-play__btn-tertiary {
  background-color: #0A4B2C;
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-how-to-play__btn-tertiary:hover {
  background-color: #1E3A2A;
  color: #F2C14E;
  transform: translateY(-1px);
}

/* Sections */
.page-how-to-play__intro-section,
.page-how-to-play__register-section,
.page-how-to-play__account-management,
.page-how-to-play__support-section,
.page-how-to-play__conclusion-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-how-to-play__steps-section,
.page-how-to-play__games-section,
.page-how-to-play__promotions-section,
.page-how-to-play__faq-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG color for dark sections */
}

.page-how-to-play__section-title {
  font-size: 2.2rem;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-how-to-play__sub-title {
  font-size: 1.6rem;
  color: #2AD16F;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-how-to-play__text-block {
  font-size: 1.05rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Step Cards */
.page-how-to-play__step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-how-to-play__card {
  background-color: #0A4B2C;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
}

.page-how-to-play__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-how-to-play__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-how-to-play__card-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-how-to-play__card-text {
  font-size: 0.95rem;
  color: #A7D9B8;
}

/* Lists */
.page-how-to-play__list,
.page-how-to-play__ordered-list,
.page-how-to-play__promo-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-how-to-play__list-item,
.page-how-to-play__promo-item {
  color: #A7D9B8;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-how-to-play__list-item::before,
.page-how-to-play__promo-item::before {
  content: '✔';
  color: #2AD16F;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-how-to-play__ordered-list .page-how-to-play__list-item {
  counter-increment: list-counter;
  padding-left: 30px;
}

.page-how-to-play__ordered-list .page-how-to-play__list-item::before {
  content: counter(list-counter) ". ";
  color: #F2C14E;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Game Categories */
.page-how-to-play__games-section .page-how-to-play__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-how-to-play__game-category {
  background-color: #0A4B2C;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #2E7A4E;
  transition: transform 0.3s ease;
}

.page-how-to-play__game-category:hover {
  transform: translateY(-3px);
}

.page-how-to-play__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-how-to-play__game-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-how-to-play__game-description {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-how-to-play__faq-list {
  margin-top: 30px;
}

.page-how-to-play__faq-item {
  background-color: #0A4B2C;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-how-to-play__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #1E3A2A;
  border-bottom: 1px solid #2E7A4E;
}

.page-how-to-play__faq-question:hover {
  background-color: #0A4B2C;
}

.page-how-to-play__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-how-to-play__faq-item[open] .page-how-to-play__faq-toggle {
  transform: rotate(45deg);
}

.page-how-to-play__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  text-align: justify;
}

.page-how-to-play__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-how-to-play__faq-item summary {
  list-style: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-how-to-play__hero-section {
    padding-bottom: 20px;
  }

  .page-how-to-play__hero-content {
    padding: 20px 15px;
  }

  .page-how-to-play__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 10px;
  }

  .page-how-to-play__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-how-to-play__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-how-to-play__btn-primary,
  .page-how-to-play__btn-secondary,
  .page-how-to-play__btn-tertiary {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-how-to-play__container {
    padding: 0 15px !important;
  }

  .page-how-to-play__intro-section,
  .page-how-to-play__steps-section,
  .page-how-to-play__register-section,
  .page-how-to-play__games-section,
  .page-how-to-play__account-management,
  .page-how-to-play__promotions-section,
  .page-how-to-play__support-section,
  .page-how-to-play__faq-section,
  .page-how-to-play__conclusion-section {
    padding: 40px 0;
  }

  .page-how-to-play__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-how-to-play__sub-title {
    font-size: 1.4rem;
  }

  .page-how-to-play__text-block,
  .page-how-to-play__card-text,
  .page-how-to-play__game-description,
  .page-how-to-play__list-item,
  .page-how-to-play__promo-item,
  .page-how-to-play__faq-answer {
    font-size: 0.9rem;
  }

  .page-how-to-play__card {
    padding: 20px;
  }

  .page-how-to-play__card-image,
  .page-how-to-play__game-image,
  .page-how-to-play__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-how-to-play__card-title,
  .page-how-to-play__game-title {
    font-size: 1.2rem;
  }

  .page-how-to-play__game-category {
    padding: 20px;
  }

  .page-how-to-play__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-how-to-play__hero-section,
  .page-how-to-play__intro-section,
  .page-how-to-play__steps-section,
  .page-how-to-play__register-section,
  .page-how-to-play__games-section,
  .page-how-to-play__account-management,
  .page-how-to-play__promotions-section,
  .page-how-to-play__support-section,
  .page-how-to-play__faq-section,
  .page-how-to-play__conclusion-section,
  .page-how-to-play__step-cards,
  .page-how-to-play__game-category,
  .page-how-to-play__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for video section top to avoid double header offset */
  .page-how-to-play__video-section {
    padding-top: 10px !important;
  }
}