.page-casino-game-rules {
  font-family: Arial, sans-serif;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-casino-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F;
}

.page-casino-game-rules__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino-game-rules__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  z-index: 10;
  border: 1px solid #2E7A4E;
}

.page-casino-game-rules__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-casino-game-rules__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-casino-game-rules__section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-casino-game-rules__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-casino-game-rules__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-casino-game-rules__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #2AD16F; /* Button top color */
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino-game-rules__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-casino-game-rules__list-item {
  background-color: #11271B; /* Card BG */
  border-left: 5px solid #2AD16F;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.5;
}

.page-casino-game-rules__list-item strong {
  color: #F2C14E; /* Gold */
}

.page-casino-game-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-casino-game-rules__game-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-casino-game-rules__game-title {
  font-size: clamp(1.6em, 2.8vw, 2.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  text-align: center;
}

.page-casino-game-rules__game-sub-title {
  font-size: clamp(1.2em, 2vw, 1.8em);
  color: #22C768; /* Auxiliary color */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-casino-game-rules__faq-section {
  background-color: #0A4B2C; /* Deep Green */
}

.page-casino-game-rules__faq-list {
  margin-top: 40px;
}

.page-casino-game-rules__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  color: #F2FFF6; /* Text Main */
}

.page-casino-game-rules__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6;
}

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

.page-casino-game-rules__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6;
}

.page-casino-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-casino-game-rules__faq-item[open] .page-casino-game-rules__faq-toggle {
  content: '−';
}

.page-casino-game-rules__faq-answer {
  padding: 0 20px 20px;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
}

.page-casino-game-rules__cta-section {
  background: linear-gradient(180deg, #08160F 0%, #0A4B2C 100%);
  padding: 80px 0;
  text-align: center;
}

.page-casino-game-rules__cta-content {
  max-width: 800px;
}

.page-casino-game-rules__cta-content .page-casino-game-rules__section-title {
  color: #F2C14E; /* Gold */
  margin-bottom: 30px;
}

.page-casino-game-rules__cta-content p {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-casino-game-rules__btn-primary,
.page-casino-game-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-casino-game-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main for contrast */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-casino-game-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px #57E38D;
}

.page-casino-game-rules__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Button top color */
  border: 2px solid #2AD16F;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-game-rules__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #2E7A4E; /* Border color for hover */
  color: #F2FFF6; /* Text Main */
  border-color: #F2C14E; /* Gold */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino-game-rules__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-casino-game-rules__section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-casino-game-rules__hero-image-wrapper {
    max-height: 400px;
  }
  .page-casino-game-rules__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-casino-game-rules__main-title {
    font-size: 2.2em;
  }

  .page-casino-game-rules__intro-text {
    font-size: 1em;
  }

  .page-casino-game-rules__section {
    padding: 30px 0;
  }

  .page-casino-game-rules__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-casino-game-rules__sub-title {
    font-size: 1.5em;
  }

  .page-casino-game-rules__game-card {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-casino-game-rules__game-title {
    font-size: 1.8em;
  }

  .page-casino-game-rules__game-sub-title {
    font-size: 1.3em;
  }

  .page-casino-game-rules__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-casino-game-rules__faq-answer {
    padding: 0 15px 15px;
  }

  .page-casino-game-rules__cta-section {
    padding: 60px 0;
  }

  .page-casino-game-rules__cta-content p {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile specific overrides for images, videos, and containers */
  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino-game-rules video,
  .page-casino-game-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino-game-rules__section,
  .page-casino-game-rules__card,
  .page-casino-game-rules__container,
  .page-casino-game-rules__video-section,
  .page-casino-game-rules__video-container,
  .page-casino-game-rules__video-wrapper,
  .page-casino-game-rules__cta-buttons,
  .page-casino-game-rules__button-group,
  .page-casino-game-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-casino-game-rules__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}