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

/* Base styles for the page content */
.page-live-casino-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Section styling */
.page-live-casino-game-rules__content-section {
  padding: 40px 20px;
  text-align: center;
}

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

/* Dark background sections */
.page-live-casino-game-rules__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-live-casino-game-rules__dark-bg .page-live-casino-game-rules__section-title,
.page-live-casino-game-rules__dark-bg .page-live-casino-game-rules__sub-title {
  color: #ffffff;
}

/* Light background sections */
.page-live-casino-game-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

/* Hero Section */
.page-live-casino-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
}

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

.page-live-casino-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-live-casino-game-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 100px; /* Push content down to avoid overlapping the very top of the image */
}

.page-live-casino-game-rules__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-live-casino-game-rules__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* General Text and Titles */
.page-live-casino-game-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-live-casino-game-rules__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-live-casino-game-rules__text-block {
  margin-bottom: 20px;
  text-align: left;
}

/* Images in content */
.page-live-casino-game-rules__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Call to Action Buttons */
.page-live-casino-game-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-live-casino-game-rules__btn-primary,
.page-live-casino-game-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to screen width */
  white-space: normal;
  word-wrap: break-word;
}

.page-live-casino-game-rules__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-live-casino-game-rules__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #26A9E0;
  border-color: #26A9E0;
}

/* FAQ Section */
.page-live-casino-game-rules__faq-list {
  margin-top: 30px;
  text-align: left;
}

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

.page-live-casino-game-rules__faq-item[open] {
  background-color: #ffffff;
}

.page-live-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7ff; /* Light blue background for summary */
  border-bottom: 1px solid #d0eaff;
  list-style: none;
}

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

.page-live-casino-game-rules__faq-qtext {
  flex-grow: 1;
}

.page-live-casino-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-live-casino-game-rules__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  text-align: left;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-live-casino-game-rules__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-live-casino-game-rules__hero-content {
    margin-top: 80px;
    padding: 15px;
  }

  .page-live-casino-game-rules__main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-live-casino-game-rules__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  /* Images responsiveness */
  .page-live-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-live-casino-game-rules__section,
  .page-live-casino-game-rules__card,
  .page-live-casino-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .page-live-casino-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-live-casino-game-rules__btn-primary,
  .page-live-casino-game-rules__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-live-casino-game-rules__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-live-casino-game-rules__faq-answer {
    padding: 10px 20px;
  }
}