:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f4f4f4;
  --border-color: #e0e0e0;
}

.page-resources-casino-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--bg-light); /* Inherit from body or set explicitly */
}

/* Fixed Header Spacing */
.page-resources-casino-game-rules__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-resources-casino-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding as needed */
  overflow: hidden; /* Ensure no overflow from images */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Example gradient */
}

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

.page-resources-casino-game-rules__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-casino-game-rules__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-casino-game-rules__hero-image img:hover {
  transform: scale(1.03);
}

.page-resources-casino-game-rules__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 90%; /* Adjust width for content */
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent light background for text */
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50px); /* Lift content over the image slightly */
  margin-bottom: -50px; /* Compensate for the lift */
}

.page-resources-casino-game-rules__hero-content h1 {
  font-size: 2.8em;
  color: var(--secondary-color); /* Dark red for heading for contrast */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-resources-casino-game-rules__intro-text {
  font-size: 1.2em;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-casino-game-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-casino-game-rules__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources-casino-game-rules__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-resources-casino-game-rules__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.page-resources-casino-game-rules__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-casino-game-rules__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-casino-game-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.page-resources-casino-game-rules__sub-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 35px;
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

.page-resources-casino-game-rules__mini-title {
  font-size: 1.3em;
  color: var(--text-color-dark);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources-casino-game-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-dark);
  text-align: justify;
}

.page-resources-casino-game-rules__list,
.page-resources-casino-game-rules__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--text-color-dark);
}

.page-resources-casino-game-rules__ordered-list {
  list-style-type: decimal;
}

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

.page-resources-casino-game-rules__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-casino-game-rules__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Buttons */
.page-resources-casino-game-rules__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  margin-right: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-casino-game-rules__btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-casino-game-rules__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--text-color-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-casino-game-rules__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-casino-game-rules__cta-group {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section Styles */
.page-resources-casino-game-rules__faq-section {
  background-color: #fcfcfc; /* Slightly different background for FAQ */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-resources-casino-game-rules__faq-container {
  max-width: 900px;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

.page-resources-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-casino-game-rules__faq-question:hover {
  background: #f8f8f8;
  border-color: #d5d5d5;
}

.page-resources-casino-game-rules__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none;
}

.page-resources-casino-game-rules__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources-casino-game-rules__faq-item.active .page-resources-casino-game-rules__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Plus to X for active state */
}

.page-resources-casino-game-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #ffffff;
  border-top: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}