/* style/game-rules-casino-games.css */
.page-game-rules-casino-games {
  background-color: #08160F; /* Nền tối theo yêu cầu */
  color: #F2FFF6; /* Chữ sáng cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-game-rules-casino-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Nhỏ top padding, lớn bottom padding */
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-rules-casino-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-game-rules-casino-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-game-rules-casino-games__hero-content {
  max-width: 900px;
  text-align: center;
  margin-top: 40px;
  padding: 0 15px;
}

.page-game-rules-casino-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-game-rules-casino-games__description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-game-rules-casino-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules-casino-games__cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-game-rules-casino-games__cta-button--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-game-rules-casino-games__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-game-rules-casino-games__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-game-rules-casino-games__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-rules-casino-games__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-game-rules-casino-games__text-block {
  font-size: 1.05em;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-game-rules-casino-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-game-rules-casino-games__link,
.page-game-rules-casino-games__text-link {
  color: #2AD16F;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-game-rules-casino-games__link:hover,
.page-game-rules-casino-games__text-link:hover {
  color: #57E38D;
}

.page-game-rules-casino-games__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  color: #F2FFF6;
}

.page-game-rules-casino-games__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-game-rules-casino-games__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-game-rules-casino-games__faq-section {
  background-color: #0A4B2C; /* Deep Green */
}

.page-game-rules-casino-games__faq-list {
  margin-top: 30px;
}

.page-game-rules-casino-games__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-game-rules-casino-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #F2C14E; /* Gold */
  background-color: #1E3A2A; /* Divider for summary */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-game-rules-casino-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-rules-casino-games__faq-question:hover {
  background-color: #2E7A4E;
}

.page-game-rules-casino-games__faq-qtext {
  flex-grow: 1;
}

.page-game-rules-casino-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-game-rules-casino-games__faq-item[open] .page-game-rules-casino-games__faq-toggle {
  content: '−';
}

.page-game-rules-casino-games__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #F2FFF6;
  background-color: #11271B;
}

.page-game-rules-casino-games__cta-download {
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-game-rules-casino-games__cta-content {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.page-game-rules-casino-games__cta-image-wrapper {
  flex: 0 0 auto;
  width: 400px;
  max-width: 100%;
  text-align: center;
}

.page-game-rules-casino-games__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.highlight {
  color: #57E38D; /* Glow */
  font-weight: bold;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-rules-casino-games__hero-content {
    margin-top: 30px;
  }

  .page-game-rules-casino-games__section {
    padding: 40px 15px;
  }

  .page-game-rules-casino-games__cta-content {
    padding-right: 0;
  }

  .page-game-rules-casino-games__cta-image-wrapper {
    width: 300px;
    margin: 30px auto 0;
  }
}

@media (max-width: 768px) {
  .page-game-rules-casino-games__hero-section {
    padding: 10px 15px 40px 15px;
  }

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

  .page-game-rules-casino-games__description {
    font-size: 1em;
  }

  .page-game-rules-casino-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-game-rules-casino-games__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-game-rules-casino-games__text-block,
  .page-game-rules-casino-games__list-item,
  .page-game-rules-casino-games__faq-answer p {
    font-size: 0.95em;
  }

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

  .page-game-rules-casino-games__card-title {
    font-size: 1.3em;
  }

  .page-game-rules-casino-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-game-rules-casino-games__faq-toggle {
    font-size: 1.3em;
  }

  .page-game-rules-casino-games__faq-answer {
    padding: 15px 20px;
  }

  .page-game-rules-casino-games__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-game-rules-casino-games__cta-content {
    text-align: center;
    padding-right: 0;
  }

  .page-game-rules-casino-games__cta-image-wrapper {
    width: 100%;
    margin-top: 30px;
  }

  /* Force responsive for all images */
  .page-game-rules-casino-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* All containers with images/content */
  .page-game-rules-casino-games__section,
  .page-game-rules-casino-games__card,
  .page-game-rules-casino-games__container,
  .page-game-rules-casino-games__hero-image-wrapper,
  .page-game-rules-casino-games__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-game-rules-casino-games__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-game-rules-casino-games__section-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }
}