.page-casino-game-rules {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F5F7FA;
}

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

.page-casino-game-rules__hero-section {
  position: relative;
  padding-bottom: 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: 0;
}

.page-casino-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-casino-game-rules__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-casino-game-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.page-casino-game-rules__intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  color: #f0f0f0;
}

.page-casino-game-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-casino-game-rules__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-casino-game-rules__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

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

.page-casino-game-rules__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-casino-game-rules__overview-section,
.page-casino-game-rules__general-rules-section,
.page-casino-game-rules__detailed-rules-section,
.page-casino-game-rules__responsible-gaming-section,
.page-casino-game-rules__faq-section,
.page-casino-game-rules__cta-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-casino-game-rules__sub-title {
  font-size: 1.8rem;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino-game-rules__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

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

.page-casino-game-rules__list-item {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-casino-game-rules__game-card {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino-game-rules__game-title {
  font-size: 2rem;
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-casino-game-rules__game-sub-title {
  font-size: 1.4rem;
  color: #FF5A4F;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-casino-game-rules__game-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-casino-game-rules__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  list-style: none;
  user-select: none;
}

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

.page-casino-game-rules__faq-item summary::marker {
  display: none;
}

.page-casino-game-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #E53935;
  margin-left: 15px;
}

.page-casino-game-rules__faq-item[open] .page-casino-game-rules__faq-toggle {
  content: '−';
}

.page-casino-game-rules__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-casino-game-rules__answer-content {
  opacity: 1;
  max-height: 2000px; /* Large enough to cover content */
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.page-casino-game-rules__faq-item:not([open]) .page-casino-game-rules__faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* General image styling for content areas */
.page-casino-game-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-casino-game-rules__hero-section {
    padding-top: 10px !important; /* Adjust hero padding for mobile */
    padding-bottom: 60px;
  }

  .page-casino-game-rules__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    max-width: 100%;
    margin-top: -100px; /* Pull content up over image a bit for better flow */
    background: rgba(0,0,0,0.4); /* Add a slight overlay for readability */
    border-radius: 0 0 10px 10px;
  }

  .page-casino-game-rules__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-casino-game-rules__intro-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-casino-game-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-casino-game-rules__overview-section,
  .page-casino-game-rules__general-rules-section,
  .page-casino-game-rules__detailed-rules-section,
  .page-casino-game-rules__responsible-gaming-section,
  .page-casino-game-rules__faq-section,
  .page-casino-game-rules__cta-section {
    padding: 40px 0;
  }

  .page-casino-game-rules__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino-game-rules__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-casino-game-rules__sub-title {
    font-size: 1.5rem;
  }

  .page-casino-game-rules__paragraph,
  .page-casino-game-rules__list-item,
  .page-casino-game-rules__faq-question,
  .page-casino-game-rules__faq-answer {
    font-size: 0.95rem;
  }

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

  .page-casino-game-rules__game-title {
    font-size: 1.6rem;
  }

  .page-casino-game-rules__game-sub-title {
    font-size: 1.2rem;
  }

  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-casino-game-rules__game-image {
    max-height: 250px;
  }

  .page-casino-game-rules__faq-question {
    padding: 15px;
  }

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