/* style/how-to-play-tongits.css */
/* Page specific styles for Tongits How-to-Play Guide */

/* Base styles for the page content */
.page-how-to-play-tongits {
  color: #FFF6D6; /* Text Main color, contrasts with dark body background */
  background-color: #0A0A0A; /* Background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section */
}

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

.page-how-to-play-tongits__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.page-how-to-play-tongits__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #F2C14E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-how-to-play-tongits__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #FFD36B; /* Secondary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #3A2A12; /* Border color */
  padding-bottom: 10px;
}

.page-how-to-play-tongits__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-how-to-play-tongits__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-how-to-play-tongits__list-item {
  margin-bottom: 10px;
  font-size: 18px;
}

.page-how-to-play-tongits__keyword {
  font-weight: bold;
  color: #FFD36B;
}

/* Hero Section */
.page-how-to-play-tongits__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-how-to-play-tongits__hero-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-how-to-play-tongits__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-how-to-play-tongits__hero-content-wrapper {
  position: relative;
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, #0A0A0A 100%);
  margin-top: -100px; /* Overlap slightly with image for visual effect */
  z-index: 2;
}

.page-how-to-play-tongits__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: #F2C14E; /* Primary color */
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-how-to-play-tongits__intro-text {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #FFF6D6; /* Text Main color */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-how-to-play-tongits__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-how-to-play-tongits__btn-primary,
.page-how-to-play-tongits__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-how-to-play-tongits__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 211, 107, 0.4);
}

.page-how-to-play-tongits__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E;
}

.page-how-to-play-tongits__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-how-to-play-tongits__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 250px;
}

.page-how-to-play-tongits__cta-buttons--centered {
  margin-top: 50px;
}

/* Images */
.page-how-to-play-tongits__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-how-to-play-tongits__image-center {
  display: block;
  margin: 30px auto;
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Card-like sections / Dark background sections */
.page-how-to-play-tongits__dark-section {
  background-color: #111111; /* Card BG color */
  padding: 80px 0;
  text-align: center;
}

.page-how-to-play-tongits__section-title--light {
  color: #FFD36B;
}

.page-how-to-play-tongits__paragraph--light {
  color: #FFF6D6;
}

/* FAQ Section */
.page-how-to-play-tongits__faq-list {
  margin-top: 40px;
}

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

.page-how-to-play-tongits__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #111111;
  color: #FFF6D6;
  font-size: 20px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-how-to-play-tongits__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-how-to-play-tongits__faq-question h3 {
  margin: 0;
  color: #FFF6D6;
  font-size: 20px;
}

.page-how-to-play-tongits__faq-toggle {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

.page-how-to-play-tongits__faq-item.active .page-how-to-play-tongits__faq-toggle {
  transform: rotate(45deg);
}

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

.page-how-to-play-tongits__faq-item.active .page-how-to-play-tongits__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to ensure content is visible */
  padding: 20px;
}

.page-how-to-play-tongits__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-how-to-play-tongits {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-how-to-play-tongits__container {
    padding: 0 15px;
  }

  .page-how-to-play-tongits__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
  }

  .page-how-to-play-tongits__hero-image {
    max-height: 300px;
  }

  .page-how-to-play-tongits__hero-content-wrapper {
    margin-top: -60px;
    padding: 20px 0;
  }

  .page-how-to-play-tongits__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-how-to-play-tongits__intro-text {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 20px;
  }

  .page-how-to-play-tongits__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-how-to-play-tongits__btn-primary--large {
    padding: 15px 25px;
    font-size: 18px;
  }

  .page-how-to-play-tongits__section {
    padding: 40px 0;
  }

  .page-how-to-play-tongits__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-how-to-play-tongits__sub-title {
    font-size: clamp(18px, 5vw, 26px);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-how-to-play-tongits__paragraph,
  .page-how-to-play-tongits__list-item,
  .page-how-to-play-tongits__faq-answer p {
    font-size: 16px;
  }

  .page-how-to-play-tongits img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: auto !important; /* Override min-width for mobile */
    min-height: auto !important; /* Override min-height for mobile */
  }

  .page-how-to-play-tongits__section,
  .page-how-to-play-tongits__card,
  .page-how-to-play-tongits__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-how-to-play-tongits__faq-question h3 {
    font-size: 18px;
  }

  .page-how-to-play-tongits__dark-section {
    padding: 60px 0;
  }
}