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

.page-casino-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero section */
}

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

.page-casino-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-casino-game-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: 50px;
}

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

.page-casino-game-rules__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

.page-casino-game-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-casino-game-rules__btn-primary:hover {
  box-shadow: 0 0 15px #57E38D;
  transform: translateY(-2px);
}

.page-casino-game-rules__btn-secondary {
  background: none;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold Border */
}

.page-casino-game-rules__btn-secondary:hover {
  background-color: #F2C14E;
  color: #08160F; /* Background color for text on hover */
  box-shadow: 0 0 15px #F2C14E;
  transform: translateY(-2px);
}

.page-casino-game-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Text Main */
}

.page-casino-game-rules__section-intro,
.page-casino-game-rules__game-rules-section,
.page-casino-game-rules__security-section,
.page-casino-game-rules__responsible-gaming-section,
.page-casino-game-rules__cta-section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 10px;
  background-color: #11271B; /* Card BG */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-casino-game-rules__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid #1E3A2A; /* Divider */
  padding-bottom: 15px;
}

.page-casino-game-rules__section-title--cta {
  color: #F2FFF6; /* Text Main for CTA section */
}

.page-casino-game-rules__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
}

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

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

.page-casino-game-rules__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino-game-rules__card-list,
.page-casino-game-rules__list-detailed {
  list-style: none;
  padding-left: 0;
}

.page-casino-game-rules__card-list li,
.page-casino-game-rules__list-detailed li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #A7D9B8; /* Text Secondary */
}

.page-casino-game-rules__card-list li::before,
.page-casino-game-rules__list-detailed li::before {
  content: '✓';
  color: #2AD16F; /* Button top color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino-game-rules__list-highlight {
  color: #F2FFF6; /* Text Main */
}

.page-casino-game-rules__list-sub-highlight {
  color: #A7D9B8; /* Text Secondary */
}

.page-casino-game-rules__game-subtitle {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  border-left: 5px solid #2AD16F;
  padding-left: 15px;
}

.page-casino-game-rules__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-casino-game-rules__read-more-link {
  display: inline-block;
  margin-top: 15px;
  color: #2AD16F; /* Button top color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino-game-rules__read-more-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-casino-game-rules__image-block {
  margin: 40px auto;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  background-color: #11271B;
  padding: 15px;
  box-sizing: border-box;
}

.page-casino-game-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

.page-casino-game-rules__image--small {
  max-width: 800px;
}

.page-casino-game-rules__image-caption {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
  margin-top: 10px;
}

.page-casino-game-rules__list-sports li {
  color: #F2FFF6; /* Text Main */
}

.page-casino-game-rules__list-sports li::before {
  content: '●';
  color: #F2C14E; /* Gold */
}

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

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

.page-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2C14E; /* Gold */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-casino-game-rules__faq-question:hover {
  background-color: #13994A;
}

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

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

.page-casino-game-rules__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
}

.page-casino-game-rules__faq-answer p {
  margin-bottom: 10px;
  color: #A7D9B8;
}

.page-casino-game-rules__faq-link {
  color: #2AD16F; /* Button top color */
  text-decoration: none;
  font-weight: bold;
}

.page-casino-game-rules__faq-link:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow */
}

.page-casino-game-rules__cta-section {
  text-align: center;
  padding: 50px 30px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #57E38D; /* Glow border */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino-game-rules__main-title {
    font-size: clamp(2em, 6vw, 2.5em);
  }
  .page-casino-game-rules__hero-description {
    font-size: 1.1em;
  }
  .page-casino-game-rules__section-title {
    font-size: 2em;
  }
  .page-casino-game-rules__game-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-casino-game-rules__hero-section {
    padding-bottom: 40px;
  }
  .page-casino-game-rules__hero-content {
    margin-top: 30px;
  }
  .page-casino-game-rules__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }
  .page-casino-game-rules__hero-description {
    font-size: 1em;
  }
  .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;
  }
  .page-casino-game-rules__content-area {
    padding: 40px 15px;
  }
  .page-casino-game-rules__section-title {
    font-size: 1.8em;
  }
  .page-casino-game-rules__game-subtitle {
    font-size: 1.4em;
  }
  .page-casino-game-rules__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-casino-game-rules__image-block,
  .page-casino-game-rules__section-intro,
  .page-casino-game-rules__feature-card,
  .page-casino-game-rules__game-rules-section,
  .page-casino-game-rules__security-section,
  .page-casino-game-rules__responsible-gaming-section,
  .page-casino-game-rules__faq-list,
  .page-casino-game-rules__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino-game-rules__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for section's own small spacing */
  }
  .page-casino-game-rules__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-casino-game-rules__faq-answer {
    padding: 12px 20px;
  }
}