/* style/sic-bo.css */
.page-sic-bo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--bg-dark-1);
}

.page-sic-bo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO Banner Section */
.page-sic-bo__hero-banner {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 10px; /* Fixed nav bar spacing */
}

.page-sic-bo__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-sic-bo__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 20px;
  color: #ffffff; /* Ensure text is visible on dark overlay */
}

.page-sic-bo__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sic-bo__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-sic-bo__hero-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-sic-bo__hero-link:hover {
  color: #FFA500;
}

.page-sic-bo__hero-actions {
  display: flex;
  gap: 20px;
}

/* General Section Styling */
.page-sic-bo__introduction-section, 
.page-sic-bo__gameplay-section, 
.page-sic-bo__strategies-section, 
.page-sic-bo__advantages-section, 
.page-sic-bo__registration-call-to-action,
.page-sic-bo__faq-section,
.page-sic-bo__related-games-section {
  padding: 80px 0;
}

.page-sic-bo__section-title {
  font-size: 2.5em;
  color: #FF4500; /* OrangeRed for main titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-sic-bo__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-sic-bo__inline-link {
  color: #008080; /* Teal for internal links */
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__inline-link:hover {
  text-decoration: underline;
  color: #00b3b3;
}

.page-sic-bo__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-sic-bo__list-item {
  margin-bottom: 10px;
  color: #f0f0f0; /* Default for dark sections */
}

.page-sic-bo__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Color Contrast */
.page-sic-bo__dark-bg {
  background: var(--bg-dark-1); /* Assuming --bg-dark-1 is dark */
  color: #f0f0f0;
}

.page-sic-bo__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-sic-bo__dark-section {
  background-color: #1a1a1a; /* Darker background for specific sections */
  color: #f0f0f0;
}

.page-sic-bo__light-bg .page-sic-bo__section-title,
.page-sic-bo__light-bg .page-sic-bo__text-block,
.page-sic-bo__light-bg .page-sic-bo__list-item {
  color: #333333;
}

.page-sic-bo__light-bg .page-sic-bo__inline-link {
  color: #008080;
}

/* Buttons */
.page-sic-bo__btn-primary,
.page-sic-bo__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-sic-bo__btn-primary {
  background-color: #FF4500; /* OrangeRed */
  color: #ffffff;
  border: 2px solid #FF4500;
}

.page-sic-bo__btn-primary:hover {
  background-color: #e03e00;
  border-color: #e03e00;
  transform: translateY(-2px);
}

.page-sic-bo__btn-secondary {
  background-color: transparent;
  color: #FF4500; /* OrangeRed */
  border: 2px solid #FF4500;
}

.page-sic-bo__btn-secondary:hover {
  background-color: #FF4500;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-sic-bo__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Advantages Section */
.page-sic-bo__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sic-bo__advantage-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #f0f0f0; /* Light text for dark card background */
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-sic-bo__advantage-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sic-bo__advantage-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 15px;
}

.page-sic-bo__advantage-description {
  font-size: 1em;
  color: #cccccc;
}

/* Registration CTA */
.page-sic-bo__text-center {
  text-align: center;
}

.page-sic-bo__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

/* FAQ Section */
.page-sic-bo__faq-list {
  margin-top: 40px;
}

.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent for dark bg */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: #f0f0f0;
}

.page-sic-bo__faq-question:hover {
  background: #3a3a3a;
}

.page-sic-bo__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ questions */
  pointer-events: none;
}

.page-sic-bo__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FF4500;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  color: #ffffff;
  transform: rotate(180deg);
}

.page-sic-bo__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

/* Related Games Section */
.page-sic-bo__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sic-bo__game-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-sic-bo__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sic-bo__game-title {
  font-size: 1.3em;
  color: #FFD700; /* Gold for game titles */
  padding: 15px;
  text-align: center;
  margin: 0;
}

.highlight {
  color: #FFD700; /* Gold for highlights */
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__hero-title {
    font-size: 2.8em;
  }
  .page-sic-bo__hero-description {
    font-size: 1.2em;
  }
  .page-sic-bo__section-title {
    font-size: 2em;
  }
  .page-sic-bo__advantage-title {
    font-size: 1.3em;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-sic-bo {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sic-bo__hero-banner {
    height: 500px;
    padding-top: 10px; /* Mobile fixed nav bar spacing */
  }
  .page-sic-bo__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-sic-bo__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-sic-bo__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__btn-primary, .page-sic-bo__btn-secondary {
    width: 80%;
    margin: 0 auto;
  }
  .page-sic-bo__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sic-bo__introduction-section, 
  .page-sic-bo__gameplay-section, 
  .page-sic-bo__strategies-section, 
  .page-sic-bo__advantages-section, 
  .page-sic-bo__registration-call-to-action,
  .page-sic-bo__faq-section,
  .page-sic-bo__related-games-section {
    padding: 50px 0;
  }
  .page-sic-bo__container {
    padding: 0 15px;
  }
  .page-sic-bo__advantages-grid, .page-sic-bo__games-grid {
    gap: 20px;
  }
  .page-sic-bo__advantage-card, .page-sic-bo__game-card {
    padding: 20px;
  }
  .page-sic-bo__advantage-title {
    font-size: 1.2em;
  }
  .page-sic-bo__faq-question {
    padding: 15px 20px;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 1em;
  }
  .page-sic-bo__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    padding: 15px 20px !important;
  }
  .page-sic-bo__game-image {
    height: 150px;
  }
  .page-sic-bo__game-title {
    font-size: 1.1em;
    padding: 10px;
  }

  /* Mobile image adaptation */
  .page-sic-bo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sic-bo__section,
  .page-sic-bo__card,
  .page-sic-bo__container,
  .page-sic-bo__hero-banner,
  .page-sic-bo__introduction-section,
  .page-sic-bo__gameplay-section,
  .page-sic-bo__strategies-section,
  .page-sic-bo__advantages-section,
  .page-sic-bo__registration-call-to-action,
  .page-sic-bo__faq-section,
  .page-sic-bo__related-games-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sic-bo__hero-banner {
    padding-left: 0;
    padding-right: 0;
  }
}