.page-casino-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-casino-game-rules__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Ensures no double padding if shared.css sets body padding */
}

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

.page-casino-game-rules__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-casino-game-rules__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-casino-game-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

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

.page-casino-game-rules__btn-primary,
.page-casino-game-rules__btn-secondary,
.page-casino-game-rules__btn-link {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-casino-game-rules__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

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

.page-casino-game-rules__btn-link {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino-game-rules__btn-link:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-casino-game-rules__content-area,
.page-casino-game-rules__responsible-gaming-section,
.page-casino-game-rules__conclusion-section {
  background-color: #ffffff; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
}

.page-casino-game-rules__game-rules-section,
.page-casino-game-rules__faq-section {
  background-color: #017439; /* Brand color dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-casino-game-rules__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino-game-rules__section-title--white {
  color: #ffffff;
}

.page-casino-game-rules__sub-title {
  font-size: 2em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino-game-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-casino-game-rules__paragraph--white {
  color: #f0f0f0;
}

.page-casino-game-rules__highlight {
  color: #017439;
  font-weight: bold;
}

.page-casino-game-rules__highlight--yellow {
  color: #FFFF00;
  font-weight: bold;
}

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

.page-casino-game-rules__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-casino-game-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-casino-game-rules__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-casino-game-rules__game-card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00;
  font-weight: bold;
}

.page-casino-game-rules__game-card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino-game-rules__game-card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-casino-game-rules__responsible-gaming-buttons,
.page-casino-game-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-casino-game-rules__faq-container {
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.page-casino-game-rules__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
}

.page-casino-game-rules__faq-item:last-child {
  border-bottom: none;
}

.page-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

.page-casino-game-rules__faq-question:hover {
  color: #FFFF00;
}

.page-casino-game-rules__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: normal;
}

.page-casino-game-rules__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

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

.page-casino-game-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-casino-game-rules__faq-item.active .page-casino-game-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px;
}

/* Desktop specific styles for sub-titles in light sections */
.page-casino-game-rules__content-area .page-casino-game-rules__sub-title,
.page-casino-game-rules__responsible-gaming-section .page-casino-game-rules__sub-title {
  color: #017439;
}

/* Desktop specific styles for paragraphs in light sections */
.page-casino-game-rules__content-area .page-casino-game-rules__paragraph,
.page-casino-game-rules__responsible-gaming-section .page-casino-game-rules__paragraph {
  color: #333333;
}

/* Desktop specific styles for list items in light sections */
.page-casino-game-rules__content-area .page-casino-game-rules__list-item,
.page-casino-game-rules__responsible-gaming-section .page-casino-game-rules__list-item {
  color: #333333;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-casino-game-rules__hero-section {
    height: 400px;
    padding-top: 0; /* Ensures no double padding if shared.css sets body padding */
  }

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

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

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

  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary,
  .page-casino-game-rules__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
  }

  .page-casino-game-rules__responsible-gaming-buttons,
  .page-casino-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino-game-rules__section-wrapper {
    padding: 20px 15px;
  }

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

  .page-casino-game-rules__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-casino-game-rules__paragraph,
  .page-casino-game-rules__list-item,
  .page-casino-game-rules__game-card-text {
    font-size: 0.95em;
  }

  .page-casino-game-rules__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-casino-game-rules__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-casino-game-rules__game-card-image {
    height: 180px;
  }

  .page-casino-game-rules__faq-title {
    font-size: 1.1em;
  }

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

  .page-casino-game-rules__faq-item.active .page-casino-game-rules__faq-answer {
    padding: 10px;
  }

  /* Ensure all content containers are constrained */
  .page-casino-game-rules__content-area,
  .page-casino-game-rules__game-rules-section,
  .page-casino-game-rules__responsible-gaming-section,
  .page-casino-game-rules__faq-section,
  .page-casino-game-rules__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}