.page-casino-live-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, ensuring contrast */
}

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

.page-casino-live-game-rules__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background-color: #017439; /* Brand color for hero */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
}

.page-casino-live-game-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-casino-live-game-rules__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-casino-live-game-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino-live-game-rules__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-casino-live-game-rules__btn-primary,
.page-casino-live-game-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino-live-game-rules__btn-primary {
  background-color: #A00000; /* Adjusted for contrast for register/login type action */
  color: #ffffff; /* Adjusted for contrast */
  border: 2px solid #A00000;
}

.page-casino-live-game-rules__btn-primary:hover {
  background-color: #C30808;
  border-color: #C30808;
}

.page-casino-live-game-rules__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-casino-live-game-rules__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-casino-live-game-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-casino-live-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image */
}

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

.page-casino-live-game-rules__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-casino-live-game-rules__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-casino-live-game-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section */
}

.page-casino-live-game-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
  color: inherit;
}

.page-casino-live-game-rules__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino-live-game-rules__list-item {
  background-color: rgba(255, 255, 255, 0.05); /* Light background for items in dark section */
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-casino-live-game-rules__list-item:hover {
  transform: translateY(-5px);
}

.page-casino-live-game-rules__list-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino-live-game-rules__list-item p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-casino-live-game-rules__game-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  text-align: left;
}

.page-casino-live-game-rules__game-title {
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #017439;
}

.page-casino-live-game-rules__game-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
}

.page-casino-live-game-rules__game-details-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
}

.page-casino-live-game-rules__game-details-list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-casino-live-game-rules__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino-live-game-rules__feature-item.page-casino-live-game-rules__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for cards in dark section */
  color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-casino-live-game-rules__feature-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino-live-game-rules__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-casino-live-game-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-casino-live-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-casino-live-game-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino-live-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino-live-game-rules__faq-item[open] .page-casino-live-game-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-casino-live-game-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-casino-live-game-rules__faq-item[open] summary {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Details element specific styling */
.page-casino-live-game-rules__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino-live-game-rules__faq-item summary {
  list-style: none;
}

.page-casino-live-game-rules__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color for CTA */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino-live-game-rules__cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-casino-live-game-rules__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-casino-live-game-rules__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Dim the background image */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino-live-game-rules__main-title {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .page-casino-live-game-rules__hero-section {
    min-height: 60vh;
    padding: 60px 0;
  }

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

  .page-casino-live-game-rules__hero-description {
    font-size: 1em;
  }

  .page-casino-live-game-rules__section-title {
    font-size: 2em;
  }

  .page-casino-live-game-rules__text-block,
  .page-casino-live-game-rules__list-item p,
  .page-casino-live-game-rules__game-details-list li,
  .page-casino-live-game-rules__feature-item p,
  .page-casino-live-game-rules__faq-answer {
    font-size: 0.95em;
  }

  .page-casino-live-game-rules__btn-primary,
  .page-casino-live-game-rules__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-casino-live-game-rules__features-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-live-game-rules__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-casino-live-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino-live-game-rules__hero-image-wrapper,
  .page-casino-live-game-rules__cta-image-wrapper,
  .page-casino-live-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-casino-live-game-rules__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-casino-live-game-rules__content-section,
  .page-casino-live-game-rules__faq-section,
  .page-casino-live-game-rules__cta-section {
    padding: 40px 0;
  }
  
  /* Ensure all content containers prevent overflow */
  .page-casino-live-game-rules {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-casino-live-game-rules__main-title {
    font-size: 1.8em;
  }

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

  .page-casino-live-game-rules__list-title,
  .page-casino-live-game-rules__game-title,
  .page-casino-live-game-rules__feature-title {
    font-size: 1.3em;
  }

  .page-casino-live-game-rules__btn-primary,
  .page-casino-live-game-rules__btn-secondary {
    font-size: 0.9em;
  }
}