/* style/how-to-play.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-how-to-play {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main on dark background #0A0A0A */
  line-height: 1.6;
  background-color: #0A0A0A; /* Explicitly set to match body if shared.css doesn't set for main */
}

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

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

.page-how-to-play__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Primary color for titles */
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.5); /* Subtle glow */
}

.page-how-to-play__text-block {
  margin-bottom: 20px;
  font-size: 17px;
}

/* HERO Section */
.page-how-to-play__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per instruction */
  overflow: hidden; /* Ensure no overflow */
}

.page-how-to-play__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width */
}

.page-how-to-play__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-how-to-play__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #3A2A12; /* Border color */
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.4); /* Glow effect */
}

.page-how-to-play__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-how-to-play__hero-content h1 {
  color: #FFD36B; /* Auxiliary color for H1 */
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
  max-width: 900px; /* Limit width to prevent overly long lines */
  margin-left: auto;
  margin-right: auto;
}

.page-how-to-play__hero-description {
  font-size: 19px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-how-to-play__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-how-to-play__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-how-to-play__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  background: linear-gradient(180deg, #FFE48B 0%, #E8B43D 100%);
}

.page-how-to-play__btn-primary {
  /* Inherits from .page-how-to-play__cta-button */
}

.page-how-to-play__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E; /* Primary color border */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.3);
}

.page-how-to-play__btn-secondary:hover {
  background: #1A1A1A;
  color: #FFD36B;
  border-color: #FFD36B;
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.5);
}

/* General image styling */
.page-how-to-play__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.3);
  object-fit: cover;
  min-height: 200px; /* Minimum size */
  min-width: 200px;
}

/* Lists (ordered and unordered) */
.page-how-to-play__step-list,
.page-how-to-play__bullet-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-how-to-play__step-item,
.page-how-to-play__method-item,
.page-how-to-play__list-item,
.page-how-to-play__security-features-list li {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-how-to-play__step-item:hover,
.page-how-to-play__method-item:hover,
.page-how-to-play__list-item:hover,
.page-how-to-play__security-features-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-how-to-play__step-title,
.page-how-to-play__method-title,
.page-how-to-play__list-title {
  font-size: 22px;
  color: #F2C14E; /* Primary color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-how-to-play__step-description,
.page-how-to-play__method-description,
.page-how-to-play__list-description {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
}

.page-how-to-play__step-description a,
.page-how-to-play__text-block a,
.page-how-to-play__faq-answer a,
.page-how-to-play__news-card-link {
  color: #FFD36B; /* Auxiliary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-how-to-play__step-description a:hover,
.page-how-to-play__text-block a:hover,
.page-how-to-play__faq-answer a:hover,
.page-how-to-play__news-card-link:hover {
  text-decoration: underline;
  color: #F2C14E;
}

/* FAQ Section */
.page-how-to-play__faq-section {
  background-color: #0A0A0A; /* Body BG */
}

details.page-how-to-play__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

details.page-how-to-play__faq-item summary.page-how-to-play__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Primary color for question text */
  font-weight: bold;
  font-size: 18px;
}

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

details.page-how-to-play__faq-item summary.page-how-to-play__faq-question:hover {
  background: #1A1A1A; /* Slightly lighter card bg on hover */
}

.page-how-to-play__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Primary color */
}

.page-how-to-play__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-how-to-play__faq-item .page-how-to-play__faq-answer {
  padding: 0 25px 25px;
  background: #1A1A1A; /* Slightly lighter card bg for answer */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
}

/* Latest News Section (Blog) */
.page-how-to-play__latest-news-section {
  background-color: #0A0A0A; /* Body BG */
}

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

.page-how-to-play__news-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  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;
}

.page-how-to-play__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-how-to-play__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-height: 200px; /* Minimum size */
  min-width: 200px;
  border-bottom: 1px solid #3A2A12;
}

.page-how-to-play__news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-how-to-play__news-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-how-to-play__news-card-title a {
  color: #F2C14E; /* Primary color for title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-how-to-play__news-card-title a:hover {
  color: #FFD36B; /* Auxiliary color on hover */
  text-decoration: underline;
}

.page-how-to-play__news-card-date {
  font-size: 14px;
  color: rgba(255, 246, 214, 0.7); /* Lighter Text Main */
  margin-bottom: 15px;
}

.page-how-to-play__news-card-excerpt {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1; /* Push link to bottom */
}

.page-how-to-play__news-card-link {
  align-self: flex-start; /* Align link to the start */
  font-size: 16px;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: rgba(242, 193, 78, 0.1);
  border: 1px solid #F2C14E;
}

.page-how-to-play__news-card-link:hover {
  background-color: rgba(242, 193, 78, 0.2);
}

.page-how-to-play__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-how-to-play__section-title {
    font-size: 32px;
  }
  .page-how-to-play__hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-how-to-play__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-how-to-play__section {
    padding: 40px 15px;
  }

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

  .page-how-to-play__hero-image img {
    border-radius: 4px;
  }

  .page-how-to-play__hero-description {
    font-size: 17px;
  }

  .page-how-to-play__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-how-to-play__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Buttons within button-group */
  .page-how-to-play__button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-how-to-play__button-group .page-how-to-play__cta-button {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-how-to-play__image {
    margin: 20px auto;
    border-radius: 4px;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-how-to-play__news-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-how-to-play__news-card-image {
    height: 180px;
  }

  .page-how-to-play__news-card-title {
    font-size: 18px;
  }

  .page-how-to-play__news-card-excerpt {
    font-size: 15px;
  }
  
  details.page-how-to-play__faq-item summary.page-how-to-play__faq-question { padding: 15px; }
  .page-how-to-play__faq-qtext { font-size: 16px; }
  .page-how-to-play__faq-toggle { font-size: 20px; }
  details.page-how-to-play__faq-item .page-how-to-play__faq-answer { padding: 0 15px 15px; }

  /* Ensure all content containers are responsive */
  .page-how-to-play__container,
  .page-how-to-play__introduction-section,
  .page-how-to-play__quick-access-section,
  .page-how-to-play__registration-guide-section,
  .page-how-to-play__deposit-guide-section,
  .page-how-to-play__gameplay-guide-section,
  .page-how-to-play__tips-strategies-section,
  .page-how-to-play__withdrawal-guide-section,
  .page-how-to-play__security-support-section,
  .page-how-to-play__faq-section,
  .page-how-to-play__latest-news-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-how-to-play__step-item,
  .page-how-to-play__method-item,
  .page-how-to-play__list-item,
  .page-how-to-play__security-features-list li {
    padding: 18px;
  }
  .page-how-to-play__step-title,
  .page-how-to-play__method-title,
  .page-how-to-play__list-title {
    font-size: 20px;
  }
  .page-how-to-play__step-description,
  .page-how-to-play__method-description,
  .page-how-to-play__list-description {
    font-size: 15px;
  }
}

/* Ensure images within content areas do not shrink below 200px (desktop) */
.page-how-to-play__image--content {
  min-width: 200px;
  min-height: 200px;
}
.page-how-to-play__news-card-image {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters on images */
.page-how-to-play img {
  filter: none;
}