/* style/casino-game-rules.css */
/* Base styles for the page content, assuming body has a dark background #0a0a0a */
.page-casino-game-rules {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure content doesn't stick to footer */
}

/* Section styling */
.page-casino-game-rules__section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino-game-rules__section:last-of-type {
  border-bottom: none;
}

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

/* Hero Section */
.page-casino-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Top padding 10px as per rule, bottom 60px */
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Brand color gradient */
  color: #ffffff;
}

.page-casino-game-rules__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-casino-game-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-casino-game-rules__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino-game-rules__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Light grey for body text */
}

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

.page-casino-game-rules__btn-primary,
.page-casino-game-rules__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-casino-game-rules__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-casino-game-rules__btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Section Titles */
.page-casino-game-rules__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 30px;
}

/* Text blocks */
.page-casino-game-rules__text-block {
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for body text */
}

.page-casino-game-rules__highlight {
  color: #26A9E0;
  font-weight: bold;
}

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

.page-casino-game-rules__link:hover {
  color: #1a7bb0;
}

/* Card grid for common rules */
.page-casino-game-rules__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-casino-game-rules__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark theme */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino-game-rules__card:hover {
  transform: translateY(-5px);
}

.page-casino-game-rules__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Game Rules Section */
.page-casino-game-rules__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-casino-game-rules__game-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
}

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

.page-casino-game-rules__game-image {
  width: 100%;
  max-width: 400px; /* Limit image width for consistent display */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure image behaves as a block element */
}

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

.page-casino-game-rules__game-text ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-casino-game-rules__game-text li {
  margin-bottom: 8px;
}

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

.page-casino-game-rules__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.1); /* Subtle brand color background */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default summary marker */
}

.page-casino-game-rules__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-casino-game-rules__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-casino-game-rules__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-casino-game-rules__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-casino-game-rules__conclusion {
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  color: #ffffff;
  text-align: center;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-casino-game-rules__game-content {
    flex-direction: row;
    text-align: left;
  }

  .page-casino-game-rules__game-image {
    margin-right: 25px;
    margin-bottom: 0;
  }

  .page-casino-game-rules__game-content:nth-child(even) .page-casino-game-rules__game-image {
    order: 2;
    margin-left: 25px;
    margin-right: 0;
  }
}

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

  .page-casino-game-rules__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 40px;
  }

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

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

  .page-casino-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino-game-rules__section {
    padding: 30px 0;
  }

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

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

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

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

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

  .page-casino-game-rules__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 20px auto; /* Center image */
    display: block !important;
  }

  .page-casino-game-rules__game-text ul {
    margin-left: 0;
    padding-left: 20px;
    text-align: left;
  }

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

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

  /* General image responsiveness */
  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos */
  .page-casino-game-rules__section,
  .page-casino-game-rules__card,
  .page-casino-game-rules__container,
  .page-casino-game-rules__game-card,
  .page-casino-game-rules__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Video section (if any) responsive rules - applied to hero for consistency */
  .page-casino-game-rules__video-section {
    padding-top: 10px !important;
  }
}