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

/* Base Styles */
.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;
}

/* Color Contrast Fixes for specific backgrounds */
.page-casino-game-rules__dark-bg {
  background-color: #000080; /* Dark blue auxiliary color */
  color: #ffffff; /* White text for contrast */
}

.page-casino-game-rules__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for contrast */
}

.page-casino-game-rules__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino-game-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-casino-game-rules ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-casino-game-rules li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Hero Section */
.page-casino-game-rules__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000080; /* Auxiliary color as background */
}

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

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

.page-casino-game-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-casino-game-rules__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-casino-game-rules__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino-game-rules__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #000080; /* Dark blue text for contrast */
  border: 2px solid #FFD700;
}

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

.page-casino-game-rules__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-casino-game-rules__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

/* Intro Section */
.page-casino-game-rules__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* General Rules Section */
.page-casino-game-rules__general-rules-section {
  padding: 80px 0;
}

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

.page-casino-game-rules__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* White text for card content */
}

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

.page-casino-game-rules__card p {
  color: #f0f0f0;
}

/* Detailed Rules Section */
.page-casino-game-rules__detailed-rules-section {
  padding: 80px 0;
  background-color: #111;
}

.page-casino-game-rules__game-rule-item {
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-casino-game-rules__game-title {
  font-size: 2em;
  color: #FFD700; /* Gold for game titles */
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-casino-game-rules__game-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.page-casino-game-rules__game-image {
  flex: 0 0 400px; /* Fixed width for desktop, will be responsive on mobile */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-casino-game-rules__game-text {
  flex: 1;
}

.page-casino-game-rules__game-subtitle {
  font-size: 1.3em;
  color: #FFD700;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Betting and Payment Section */
.page-casino-game-rules__betting-payment-section {
  padding: 80px 0;
}

/* Dispute Section */
.page-casino-game-rules__dispute-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-casino-game-rules__cta-contact {
  text-align: center;
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-casino-game-rules__responsible-gaming-section {
  padding: 80px 0;
}

/* FAQ Section */
.page-casino-game-rules__faq-section {
  padding: 80px 0;
  background-color: #111;
}

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

.page-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #000080; /* Dark blue for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-casino-game-rules__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-casino-game-rules__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFD700; /* Gold for toggle icon */
}

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

.page-casino-game-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-casino-game-rules__faq-item.active .page-casino-game-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino-game-rules__hero-title {
    font-size: 2.8em;
  }

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

  .page-casino-game-rules__game-content {
    flex-direction: column;
    align-items: center;
  }

  .page-casino-game-rules__game-image {
    flex: none;
    width: 100%;
    max-width: 600px; /* Constrain image on smaller desktops */
  }
}

@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 {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-casino-game-rules__hero-content {
    padding: 20px;
  }

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

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

  .page-casino-game-rules__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary,
  .page-casino-game-rules a[class*="button"],
  .page-casino-game-rules a[class*="btn"] {
    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__cta-buttons,
  .page-casino-game-rules__button-group,
  .page-casino-game-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }

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

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

  .page-casino-game-rules__card {
    padding: 20px;
  }

  .page-casino-game-rules__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-casino-game-rules__section,
  .page-casino-game-rules__card,
  .page-casino-game-rules__container,
  .page-casino-game-rules__hero-section,
  .page-casino-game-rules__intro-section,
  .page-casino-game-rules__general-rules-section,
  .page-casino-game-rules__detailed-rules-section,
  .page-casino-game-rules__betting-payment-section,
  .page-casino-game-rules__dispute-section,
  .page-casino-game-rules__responsible-gaming-section,
  .page-casino-game-rules__faq-section,
  .page-casino-game-rules__game-rule-item,
  .page-casino-game-rules__game-content,
  .page-casino-game-rules__game-text,
  .page-casino-game-rules__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
}