/* style/how-to-play-sic-bo.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
}

/* Base styles for the page content */
.page-how-to-play-sic-bo {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Fallback to light gray if shared.css doesn't define */
}

.page-how-to-play-sic-bo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-how-to-play-sic-bo__section {
  padding: 60px 0;
  text-align: center;
}

.page-how-to-play-sic-bo__section-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
}

.page-how-to-play-sic-bo__subsection-title {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-align: left;
  font-weight: 600;
}

.page-how-to-play-sic-bo__content-area {
  text-align: left;
  font-size: 17px;
  line-height: 1.8;
}

.page-how-to-play-sic-bo__content-area p {
  margin-bottom: 1em;
}

.page-how-to-play-sic-bo__content-area a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-how-to-play-sic-bo__content-area a:hover {
  text-decoration: underline;
}

.page-how-to-play-sic-bo__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.page-how-to-play-sic-bo__list-item {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-how-to-play-sic-bo__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);
}

/* Color contrast classes */
.page-how-to-play-sic-bo__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-how-to-play-sic-bo__dark-bg .page-how-to-play-sic-bo__section-title,
.page-how-to-play-sic-bo__dark-bg .page-how-to-play-sic-bo__subsection-title {
  color: var(--text-light);
}

.page-how-to-play-sic-bo__dark-bg .page-how-to-play-sic-bo__content-area a {
  color: var(--secondary-color);
}

.page-how-to-play-sic-bo__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* HERO Section */
.page-how-to-play-sic-bo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Gradient background with primary color */
  color: var(--text-light);
}

.page-how-to-play-sic-bo__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-how-to-play-sic-bo__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-how-to-play-sic-bo__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-how-to-play-sic-bo__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay for text readability */
  border-radius: 12px;
  margin-top: -80px; /* Overlap with image for better visual flow */
}

.page-how-to-play-sic-bo__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.2;
}

.page-how-to-play-sic-bo__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-how-to-play-sic-bo__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-how-to-play-sic-bo__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-how-to-play-sic-bo__btn-primary {
  background: var(--login-button-color); /* Using login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-how-to-play-sic-bo__btn-primary:hover {
  background: #c26505;
  border-color: #c26505;
  transform: translateY(-3px);
}

.page-how-to-play-sic-bo__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-how-to-play-sic-bo__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Bet Types Cards */
.page-how-to-play-sic-bo__bet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-how-to-play-sic-bo__card {
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-how-to-play-sic-bo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-how-to-play-sic-bo__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-how-to-play-sic-bo__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-how-to-play-sic-bo__card p {
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

/* FAQ Section */
.page-how-to-play-sic-bo__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-how-to-play-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}