/* style/game-rules.css */
:root {
  --primary-color: #0A246A;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #0A246A;
  --accent-red: #DC3545;
}

.page-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--bg-light);
}

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

.page-game-rules .hero-section {
  background: linear-gradient(135deg, var(--primary-color), #2C528B);
  color: var(--text-color-light);
  padding: 80px 0;
  text-align: center;
}

.page-game-rules .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-color-light);
  line-height: 1.2;
}

.page-game-rules .hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-game-rules .highlight {
  color: var(--secondary-color);
}

.page-game-rules .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules .cta-button:hover {
  background-color: #FFC107;
  transform: translateY(-3px);
}

.page-game-rules .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin: 60px 0 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-rules .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-game-rules .section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark);
}

.page-game-rules .rule-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-rules .rule-subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-game-rules .content-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-game-rules .rule-item p {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
  color: var(--text-color-dark);
}

.page-game-rules .button-small {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-game-rules .button-small:hover {
  background-color: #2C528B;
  transform: translateY(-2px);
}

.page-game-rules .section-general-rules, .page-game-rules .section-game-rules, .page-game-rules .section-promotions, .page-game-rules .section-responsible-gaming, .page-game-rules .section-disputes {
  padding: 40px 0;
}

.page-game-rules .section-faq {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.page-game-rules .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-rules .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-game-rules .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-game-rules .faq-question:hover {
  background: #f5f5f5;
}

.page-game-rules .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-game-rules .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-game-rules .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-color-dark);
}

.page-game-rules .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
}

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

.page-game-rules .faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

.page-game-rules .section-conclusion {
  background: linear-gradient(135deg, #2C528B, var(--primary-color));
  color: var(--text-color-light);
  padding: 80px 0;
  text-align: center;
}

.page-game-rules .section-conclusion .section-title {
  color: var(--text-color-light);
}

.page-game-rules .section-conclusion .section-title::after {
  background-color: var(--secondary-color);
}

.page-game-rules .section-conclusion .section-intro {
  color: var(--text-color-light);
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-rules .hero-title {
    font-size: 2.5em;
  }
  .page-game-rules .section-title {
    font-size: 2em;
  }
  .page-game-rules .rule-subtitle {
    font-size: 1.5em;
  }
  .page-game-rules .content-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-game-rules .hero-section {
    padding: 60px 0;
  }
  .page-game-rules .hero-title {
    font-size: 2em;
  }
  .page-game-rules .hero-description {
    font-size: 1em;
  }
  .page-game-rules .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-game-rules .section-title {
    font-size: 1.8em;
    margin: 40px 0 25px;
  }
  .page-game-rules .section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-game-rules .rule-item {
    padding: 20px;
    margin-bottom: 30px;
  }
  .page-game-rules .rule-subtitle {
    font-size: 1.3em;
  }
  .page-game-rules .rule-item p {
    font-size: 0.95em;
  }
  .page-game-rules .faq-question {
    padding: 15px 20px;
  }
  .page-game-rules .faq-question h3 {
    font-size: 1em;
  }
  .page-game-rules .faq-toggle {
    font-size: 1.5em;
  }
  .page-game-rules .faq-answer {
    padding: 0 20px;
  }
  .page-game-rules .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-rules .hero-title {
    font-size: 1.8em;
  }
  .page-game-rules .section-title {
    font-size: 1.5em;
  }
  .page-game-rules .rule-subtitle {
    font-size: 1.2em;
  }
  .page-game-rules .cta-button {
    width: 90%;
    max-width: 300px;
  }
  .page-game-rules .button-small {
    width: 80%;
    max-width: 250px;
  }
  .page-game-rules .faq-question {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-game-rules .faq-toggle {
    align-self: flex-end;
    margin-top: -30px;
    margin-right: 5px;
  }
}