/* style/casino-game-rules.css */

/* Base styles for the page */
.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-casino-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  overflow: hidden;
}

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

.page-casino-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-casino-game-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  max-width: 100%;
}

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

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

.page-casino-game-rules__introduction-section,
.page-casino-game-rules__terms-section,
.page-casino-game-rules__security-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333; /* Light background, dark text */
}

.page-casino-game-rules__introduction-section .page-casino-game-rules__section-title,
.page-casino-game-rules__terms-section .page-casino-game-rules__section-title,
.page-casino-game-rules__security-section .page-casino-game-rules__section-title {
  color: #26A9E0;
}

.page-casino-game-rules__games-section,
.page-casino-game-rules__strategy-section,
.page-casino-game-rules__faq-section,
.page-casino-game-rules__cta-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background, light text */
  color: #ffffff;
}

/* Text blocks */
.page-casino-game-rules__text-block {
  margin-bottom: 20px;
  font-size: 1rem;
}

.page-casino-game-rules__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Buttons */
.page-casino-game-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

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

.page-casino-game-rules__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.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: #26A9E0;
}

/* Game cards */
.page-casino-game-rules__game-card-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: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #333333; /* Light card background, dark text */
}

.page-casino-game-rules__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino-game-rules__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino-game-rules__game-description {
  font-size: 0.95rem;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Terms list */
.page-casino-game-rules__terms-list,
.page-casino-game-rules__strategy-list,
.page-casino-game-rules__security-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-casino-game-rules__terms-list li,
.page-casino-game-rules__strategy-list li,
.page-casino-game-rules__security-list li {
  margin-bottom: 10px;
}

/* Strategy image */
.page-casino-game-rules__strategy-image,
.page-casino-game-rules__security-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-casino-game-rules__faq-list {
  margin-top: 40px;
}

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

.page-casino-game-rules__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  color: #26A9E0;
}

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

.page-casino-game-rules__faq-toggle {
  font-size: 1.5rem;
  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: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
}

/* Colors for sections */
.page-casino-game-rules__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-casino-game-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-casino-game-rules__light-bg .page-casino-game-rules__section-title {
  color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino-game-rules__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-casino-game-rules__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-casino-game-rules {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-casino-game-rules__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles header offset */
    min-height: 400px;
  }

  .page-casino-game-rules__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

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

  .page-casino-game-rules__introduction-section,
  .page-casino-game-rules__games-section,
  .page-casino-game-rules__terms-section,
  .page-casino-game-rules__strategy-section,
  .page-casino-game-rules__security-section,
  .page-casino-game-rules__faq-section,
  .page-casino-game-rules__cta-section {
    padding: 40px 0;
  }

  /* Mobile image responsiveness */
  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino-game-rules__hero-image {
    height: 100%; /* maintain object-fit: cover */
  }

  /* Mobile button responsiveness */
  .page-casino-game-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino-game-rules__game-card-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-game-rules__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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

  /* All containers with images/videos/buttons must have these */
  .page-casino-game-rules__section,
  .page-casino-game-rules__card,
  .page-casino-game-rules__container,
  .page-casino-game-rules__cta-buttons,
  .page-casino-game-rules__game-card-grid,
  .page-casino-game-rules__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-casino-game-rules__container */
    /* padding-right: 15px; */ /* Handled by .page-casino-game-rules__container */
    overflow: hidden !important; /* Ensure no overflow */
  }
}