/* style/game-rules.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
}

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

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

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

.page-game-rules__section h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-game-rules__section h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-rules__section p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: left;
}

.page-game-rules__section ul {
  list-style: disc;
  text-align: left;
  margin: 0 0 20px 40px;
  padding: 0;
}

.page-game-rules__section ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

/* HERO Section */
.page-game-rules__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, header offset handled by body in shared.css */
  background: linear-gradient(135deg, #e0f2f7, #ffffff);
  border-bottom: 5px solid var(--primary-color);
}

.page-game-rules__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-game-rules__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-game-rules__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-game-rules__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-game-rules__hero-content h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-game-rules__hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dark);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-game-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-game-rules__cta-button:hover {
  background: darken(var(--login-button-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-rules__general-rules,
.page-game-rules__specific-rules,
.page-game-rules__responsible-gaming-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-game-rules__general-rules h2,
.page-game-rules__specific-rules h2,
.page-game-rules__responsible-gaming-section h2 {
  color: var(--primary-color);
}

.page-game-rules__general-rules h3,
.page-game-rules__specific-rules h3,
.page-game-rules__responsible-gaming-section h3 {
  color: var(--text-dark);
  text-align: left;
  margin-left: 20px;
}

.page-game-rules__image-wrapper {
    width: 100%;
    margin: 30px auto;
    max-width: 900px;
}

.page-game-rules__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* FAQ Section */
.page-game-rules__faq-section {
  padding: 80px 0;
  background-color: #f8fcfd;
}

.page-game-rules__faq-section h2 {
  margin-bottom: 40px;
}

.page-game-rules__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

details.page-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-game-rules__faq-item summary.page-game-rules__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;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dark);
}

details.page-game-rules__faq-item summary.page-game-rules__faq-question::-webkit-details-marker {
  display: none;
}

details.page-game-rules__faq-item summary.page-game-rules__faq-question:hover {
  background: #f0f8ff;
}

.page-game-rules__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-game-rules__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-game-rules__faq-item .page-game-rules__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

/* CTA Section */
.page-game-rules__cta-section {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-game-rules__cta-section h2 {
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-game-rules__cta-section p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 18px;
  line-height: 1.7;
}

.page-game-rules__cta-section .page-game-rules__cta-button {
  background: var(--login-button-color);
  color: var(--text-light);
  font-size: 22px;
  padding: 18px 50px;
}

.page-game-rules__cta-section .page-game-rules__cta-button:hover {
  background: darken(var(--login-button-color), 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-rules__container {
    padding: 15px;
  }
  .page-game-rules__section h2 {
    font-size: 32px;
  }
  .page-game-rules__section h3 {
    font-size: 22px;
  }
  .page-game-rules__hero-content h1 {
    font-size: clamp(26px, 3.5vw, 42px);
  }
  .page-game-rules__hero-content p {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-game-rules__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-rules__hero-image img {
    border-radius: 8px;
  }
  .page-game-rules__hero-content h1 {
    font-size: clamp(24px, 6vw, 38px);
  }
  .page-game-rules__hero-content p {
    font-size: clamp(14px, 3.5vw, 16px);
  }
  .page-game-rules__section {
    padding: 40px 0;
  }
  .page-game-rules__section h2 {
    font-size: 28px;
  }
  .page-game-rules__section h3 {
    font-size: 20px;
    margin-left: 0;
  }
  .page-game-rules__section p,
  .page-game-rules__section ul li {
    font-size: 15px;
    text-align: justify;
  }
  .page-game-rules__section ul {
    margin-left: 20px;
  }
  
  /* Image responsiveness */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container,
  .page-game-rules__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button responsiveness */
  .page-game-rules__cta-button,
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules a[class*="button"],
  .page-game-rules a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-rules__cta-buttons,
  .page-game-rules__button-group,
  .page-game-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-game-rules__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  details.page-game-rules__faq-item summary.page-game-rules__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-game-rules__faq-qtext {
    font-size: 15px;
  }
  .page-game-rules__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-game-rules__faq-item .page-game-rules__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
  .page-game-rules__cta-section p {
    font-size: 16px;
  }
  .page-game-rules__cta-section .page-game-rules__cta-button {
    font-size: 18px;
    padding: 15px 30px;
  }
}