.page-casino-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

.page-casino-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: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f0f0f0; /* Light background for hero section */
}

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

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

.page-casino-game-rules__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-casino-game-rules__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: -80px; /* Overlap with image for visual effect */
  background-color: #ffffff; /* Light background for content block */
}

.page-casino-game-rules__main-title {
  font-size: 3.2em;
  color: #017439; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-casino-game-rules__intro-text {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino-game-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino-game-rules__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino-game-rules__section {
  padding: 60px 20px;
  margin-bottom: 0;
}

.page-casino-game-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Explicitly set for content area */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-casino-game-rules__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-casino-game-rules__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #017439;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-casino-game-rules__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-casino-game-rules p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 1em;
  color: #333333;
}

.page-casino-game-rules__link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino-game-rules__link:hover {
  color: #005f2e;
  text-decoration: underline;
}

.page-casino-game-rules__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

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

.page-casino-game-rules__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-casino-game-rules__ordered-list li {
  margin-bottom: 10px;
}

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

.page-casino-game-rules__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-casino-game-rules__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-casino-game-rules__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-casino-game-rules__game-rules-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-casino-game-rules__game-rules-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-casino-game-rules__game-rules-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-casino-game-rules__dark-section {
  background-color: #017439; /* Brand primary color for dark section */
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
}

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

.page-casino-game-rules__dark-section .page-casino-game-rules__section-title::after {
  background-color: #ffffff;
}

.page-casino-game-rules__dark-section p,
.page-casino-game-rules__dark-section li {
  color: #ffffff;
}

.page-casino-game-rules__dark-section .page-casino-game-rules__link {
  color: #FFFF00; /* Yellow for links on dark background */
}

.page-casino-game-rules__dark-section .page-casino-game-rules__link:hover {
  color: #f0f0f0;
}

.page-casino-game-rules__image-full-width {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section Styles */
.page-casino-game-rules__faq-container {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}