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

/* Base styles for the page */
.page-casino-live-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-casino-live-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #f0f8ff; /* Light background for hero */
}

.page-casino-live-game-rules__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-casino-live-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-casino-live-game-rules__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

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

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

/* Section Titles */
.page-casino-live-game-rules__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Text Blocks */
.page-casino-live-game-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

/* Buttons */
.page-casino-live-game-rules__btn-primary,
.page-casino-live-game-rules__btn-secondary,
.page-casino-live-game-rules__btn-tertiary,
.page-casino-live-game-rules__btn-contact {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-casino-live-game-rules__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-casino-live-game-rules__btn-tertiary {
  background-color: #f0f0f0;
  color: #26A9E0;
  border: 1px solid #e0e0e0;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-casino-live-game-rules__btn-tertiary:hover {
  background-color: #e0e0e0;
}

.page-casino-live-game-rules__btn-contact {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 1em;
}

.page-casino-live-game-rules__btn-contact:hover {
  background-color: #c96500;
  border-color: #c96500;
}

.page-casino-live-game-rules__btn-lg {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* General Rules Section */
.page-casino-live-game-rules__general-rules {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-casino-live-game-rules__general-rules .page-casino-live-game-rules__section-title {
  color: #ffffff;
}

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

.page-casino-live-game-rules__card {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 250px; /* Ensure cards have minimum height */
}

.page-casino-live-game-rules__card--inverted {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on blue */
  color: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-casino-live-game-rules__card--inverted .page-casino-live-game-rules__card-title {
  color: #ffffff;
}

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

.page-casino-live-game-rules__card-text {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

/* Game Rules Detail Section */
.page-casino-live-game-rules__game-rules-detail {
  padding: 60px 0;
}

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

.page-casino-live-game-rules__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.page-casino-live-game-rules__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-casino-live-game-rules__game-card-title {
  font-size: 1.5em;
  color: #26A9E0;
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-casino-live-game-rules__game-card-content {
  padding: 0 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino-live-game-rules__game-card-subtitle {
  font-size: 1.2em;
  color: #555555;
  margin-top: 15px;
  margin-bottom: 5px;
}

.page-casino-live-game-rules__game-card-content p,
.page-casino-live-game-rules__game-card-content ul {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 10px;
}

.page-casino-live-game-rules__game-card-content ul {
  list-style: disc inside;
  padding-left: 15px;
}

.page-casino-live-game-rules__game-card-content ul li {
  margin-bottom: 5px;
}

.page-casino-live-game-rules__game-card-content .page-casino-live-game-rules__btn-tertiary {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

/* Tips Section */
.page-casino-live-game-rules__tips {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-casino-live-game-rules__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino-live-game-rules__tips-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-casino-live-game-rules__tips-subtitle {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino-live-game-rules__tips-item p {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-casino-live-game-rules__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino-live-game-rules__faq-section .page-casino-live-game-rules__section-title {
  color: #ffffff;
}

.page-casino-live-game-rules__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-casino-live-game-rules__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-casino-live-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino-live-game-rules__faq-item[open] .page-casino-live-game-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-casino-live-game-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-casino-live-game-rules__faq-answer p {
  margin-bottom: 15px;
}

.page-casino-live-game-rules__faq-answer .page-casino-live-game-rules__btn-contact {
  margin-top: 10px;
  align-self: flex-start;
}

/* CTA Bottom Section */
.page-casino-live-game-rules__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: #f0f8ff;
}

.page-casino-live-game-rules__cta-bottom .page-casino-live-game-rules__section-title {
  margin-bottom: 20px;
}

.page-casino-live-game-rules__cta-bottom .page-casino-live-game-rules__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Image and Video responsive styles */
.page-casino-live-game-rules img,
.page-casino-live-game-rules video {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Global minimum for content images */
  min-height: 200px;
}

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

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

  .page-casino-live-game-rules__hero-section {
    padding-bottom: 30px;
  }

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

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

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

  .page-casino-live-game-rules__btn-primary,
  .page-casino-live-game-rules__btn-secondary,
  .page-casino-live-game-rules__btn-tertiary,
  .page-casino-live-game-rules__btn-contact,
  .page-casino-live-game-rules a[class*="button"],
  .page-casino-live-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 !important;
    padding-right: 15px !important;
  }

  .page-casino-live-game-rules__cta-buttons,
  .page-casino-live-game-rules__button-group,
  .page-casino-live-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;
    overflow: hidden !important;
  }

  .page-casino-live-game-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino-live-game-rules__text-block {
    font-size: 1em;
  }

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

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

  .page-casino-live-game-rules__tips-list {
    grid-template-columns: 1fr;
  }

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

  /* Ensure all images and video are responsive */
  .page-casino-live-game-rules img,
  .page-casino-live-game-rules video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size is kept */
    min-height: 200px !important;
  }

  .page-casino-live-game-rules__hero-image-wrapper,
  .page-casino-live-game-rules__game-card-image,
  .page-casino-live-game-rules__video-section,
  .page-casino-live-game-rules__video-container,
  .page-casino-live-game-rules__video-wrapper,
  .page-casino-live-game-rules__section,
  .page-casino-live-game-rules__card,
  .page-casino-live-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino-live-game-rules__video-section {
    padding-top: 10px !important;
  }

  .page-casino-live-game-rules__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino-live-game-rules__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}