/* style/game-rules.css */
/* Custom Colors */
:root {
  --lp88-primary: #11A84E;
  --lp88-secondary: #22C768;
  --lp88-card-bg: #11271B;
  --lp88-bg: #08160F;
  --lp88-text-main: #F2FFF6;
  --lp88-text-secondary: #A7D9B8;
  --lp88-border: #2E7A4E;
  --lp88-glow: #57E38D;
  --lp88-gold: #F2C14E;
  --lp88-divider: #1E3A2A;
  --lp88-deep-green: #0A4B2C;
  --lp88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-game-rules scope */
.page-game-rules {
  font-family: 'Arial', sans-serif;
  color: var(--lp88-text-main); /* Default text color for dark background */
  background-color: var(--lp88-bg); /* Default background color */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-game-rules__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-game-rules__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--lp88-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-game-rules__section-description {
  font-size: 18px;
  color: var(--lp88-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-game-rules__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--lp88-bg);
  position: relative;
  z-index: 1;
}

.page-game-rules__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-game-rules__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-rules__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--lp88-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-game-rules__hero-description {
  font-size: 20px;
  color: var(--lp88-text-secondary);
  margin-bottom: 30px;
}

.page-game-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-game-rules__btn-primary,
.page-game-rules__btn-secondary,
.page-game-rules__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.page-game-rules__btn-primary {
  background: var(--lp88-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-game-rules__btn-secondary {
  background: transparent;
  color: var(--lp88-gold);
  border: 2px solid var(--lp88-gold);
}

.page-game-rules__btn-secondary:hover {
  background: var(--lp88-gold);
  color: var(--lp88-bg);
  transform: translateY(-3px);
}

.page-game-rules__btn-tertiary {
  background: var(--lp88-deep-green);
  color: var(--lp88-text-main);
  border: 1px solid var(--lp88-border);
  font-size: 16px;
  padding: 10px 20px;
}

.page-game-rules__btn-tertiary:hover {
  background: var(--lp88-primary);
  border-color: var(--lp88-primary);
  transform: translateY(-2px);
}

/* General Content Sections */
.page-game-rules__general-rules {
  background-color: var(--lp88-card-bg);
}

.page-game-rules__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-game-rules__text-block {
  flex: 2;
  color: var(--lp88-text-main);
}

.page-game-rules__text-block p {
  margin-bottom: 15px;
  color: var(--lp88-text-secondary);
}

.page-game-rules__text-block h3.page-game-rules__sub-title {
  font-size: 24px;
  color: var(--lp88-gold);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-rules__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Specific Game Rules Section */
.page-game-rules__specific-rules {
  background-color: var(--lp88-bg);
}

.page-game-rules__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-rules__game-card {
  background-color: var(--lp88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--lp88-border);
}

.page-game-rules__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-game-rules__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-rules__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-rules__card-title {
  font-size: 24px;
  color: var(--lp88-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-rules__card-content p {
  color: var(--lp88-text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-rules__list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--lp88-text-secondary);
}

.page-game-rules__list li {
  margin-bottom: 8px;
}

.page-game-rules__inline-link {
  color: var(--lp88-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-rules__inline-link:hover {
  color: var(--lp88-gold);
  text-decoration: underline;
}

/* Security Policy Section (similar to general rules but reversed layout) */
.page-game-rules__security-policy {
  background-color: var(--lp88-card-bg);
}

.page-game-rules__security-policy .page-game-rules__content-wrapper {
  flex-direction: row-reverse; /* Image on right, text on left */
}

/* Dispute Resolution Section */
.page-game-rules__dispute-resolution {
  background-color: var(--lp88-bg);
}

.page-game-rules__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-rules__card-item {
  background-color: var(--lp88-card-bg);
  border: 1px solid var(--lp88-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: var(--lp88-text-secondary);
}

.page-game-rules__card-item .page-game-rules__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--lp88-gold);
}

/* FAQ Section */
.page-game-rules__faq-section {
  background-color: var(--lp88-card-bg);
}

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

.page-game-rules__faq-item {
  background-color: var(--lp88-deep-green);
  border: 1px solid var(--lp88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-game-rules__faq-item:hover {
  background-color: var(--lp88-primary);
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--lp88-text-main);
  cursor: pointer;
  list-style: none;
}

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

.page-game-rules__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--lp88-gold);
}

.page-game-rules__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--lp88-text-secondary);
}

.page-game-rules__faq-answer p {
  margin-top: 10px;
}

/* Conclusion CTA Section */
.page-game-rules__cta-bottom {
  background-color: var(--lp88-bg);
}

.page-game-rules__center-content {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-game-rules__content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-game-rules__text-block,
  .page-game-rules__image-block {
    flex: none;
    width: 100%;
  }

  .page-game-rules__image-block {
    margin-bottom: 30px;
  }

  .page-game-rules__security-policy .page-game-rules__content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-game-rules__section {
    padding: 40px 0;
  }

  .page-game-rules__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-game-rules__hero-section {
    padding-bottom: 40px;
  }

  .page-game-rules__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .page-game-rules__hero-description {
    font-size: 16px;
  }

  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-game-rules__game-type-grid,
  .page-game-rules__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-rules__card-image {
    height: 180px;
  }

  .page-game-rules__card-title {
    font-size: 20px;
  }

  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-rules__hero-image-wrapper,
  .page-game-rules__image-block,
  .page-game-rules__game-card,
  .page-game-rules__card-item,
  .page-game-rules__faq-item,
  .page-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-rules__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-game-rules__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  .page-game-rules__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is just for small visual spacing */
  }

  .page-game-rules__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-game-rules__section-title {
    font-size: 26px;
  }

  .page-game-rules__main-title {
    font-size: 32px;
  }

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-game-rules__text-block h3.page-game-rules__sub-title {
    font-size: 20px;
  }

  .page-game-rules__card-title {
    font-size: 18px;
  }
}