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

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

.page-sic-bo__highlight {
  color: #FFD700; /* Gold for highlight */
}

.page-sic-bo__link {
  color: #FF4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sic-bo__link:hover {
  color: #FF6347;
  text-decoration: underline;
}

/* Buttons */
.page-sic-bo__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

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

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

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

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

.page-sic-bo__btn--small {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 6px;
}

/* Sections */
.page-sic-bo__hero-intro-section {
  padding-top: 10px; /* To clear fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--dark-bg-1) 0%, #1A202C 100%);
}

.page-sic-bo__hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.page-sic-bo__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-sic-bo__subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-sic-bo__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-sic-bo__hero-image-wrapper {
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sic-bo__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-sic-bo__section-title--centered {
  text-align: center;
}

.page-sic-bo__text-block {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 25px;
  text-align: justify;
}

.page-sic-bo__text-block--centered {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sic-bo__about-sicbo-section, 
.page-sic-bo__gacam67-advantage-section, 
.page-sic-bo__betting-options-section, 
.page-sic-bo__strategy-section, 
.page-sic-bo__promotions-section, 
.page-sic-bo__faq-section, 
.page-sic-bo__cta-final-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

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

.page-sic-bo__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sic-bo__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__feature-icon {
  width: 250px; /* Minimum size 200x200 */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sic-bo__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

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

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

.page-sic-bo__advantage-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sic-bo__advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__advantage-icon {
  width: 250px; /* Minimum size 200x200 */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sic-bo__advantage-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

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

/* Betting Options List */
.page-sic-bo__betting-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-sic-bo__betting-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #FF4500;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.page-sic-bo__betting-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-sic-bo__betting-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
}

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

/* Strategy Section */
.page-sic-bo__strategy-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-sic-bo__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sic-bo__strategy-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid #FF4500;
  color: #f0f0f0;
  font-size: 1.05em;
}

.page-sic-bo__strategy-item strong {
  color: #FFD700;
}

.page-sic-bo__strategy-image-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-sic-bo__strategy-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-sic-bo__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sic-bo__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__promo-image {
  width: 250px; /* Minimum size 200x200 */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-sic-bo__promo-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sic-bo__promo-description {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 25px;
}

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

.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-sic-bo__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FF4500;
}

.page-sic-bo__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

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

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  color: #FF4500;
}

.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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #cccccc;
  font-size: 1em;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* Final CTA Section */
.page-sic-bo__cta-final-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-sic-bo__cta-buttons--centered {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__main-title {
    font-size: 2.8em;
  }

  .page-sic-bo__section-title {
    font-size: 2em;
  }

  .page-sic-bo__strategy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-sic-bo__container {
    padding: 0 15px;
  }

  .page-sic-bo__hero-intro-section {
    padding-top: 10px; /* Ensure mobile top spacing */
    padding-bottom: 40px;
  }

  .page-sic-bo__hero-content {
    padding-bottom: 20px;
  }

  .page-sic-bo__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-sic-bo__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-sic-bo__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sic-bo__btn {
    width: 100%;
    box-sizing: border-box;
  }

  .page-sic-bo__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-sic-bo__text-block {
    font-size: 0.95em;
  }

  .page-sic-bo__about-sicbo-section,
  .page-sic-bo__gacam67-advantage-section,
  .page-sic-bo__betting-options-section,
  .page-sic-bo__strategy-section,
  .page-sic-bo__promotions-section,
  .page-sic-bo__faq-section,
  .page-sic-bo__cta-final-section {
    padding: 40px 0;
  }

  .page-sic-bo__feature-grid, .page-sic-bo__advantage-grid, .page-sic-bo__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-sic-bo__feature-item, .page-sic-bo__advantage-card, .page-sic-bo__promo-card {
    padding: 20px;
  }

  .page-sic-bo__feature-icon, .page-sic-bo__advantage-icon, .page-sic-bo__promo-image {
    width: 200px !important; /* Enforce min size */
    height: auto !important;
  }

  .page-sic-bo__feature-title, .page-sic-bo__advantage-title, .page-sic-bo__promo-title {
    font-size: 1.4em;
  }

  .page-sic-bo__betting-list {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .page-sic-bo__betting-item {
    padding: 20px;
  }

  .page-sic-bo__betting-title {
    font-size: 1.3em;
  }

  .page-sic-bo__strategy-list {
    margin-top: 15px;
  }

  .page-sic-bo__strategy-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 1em;
  }

  .page-sic-bo__faq-question {
    padding: 15px 20px;
  }

  .page-sic-bo__faq-question h3 {
    font-size: 1.1em;
  }

  .page-sic-bo__faq-toggle {
    font-size: 1.8em;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    padding: 15px 20px !important;
  }

  /* General image responsiveness for mobile */
  .page-sic-bo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sic-bo__hero-image-wrapper,
  .page-sic-bo__strategy-image-wrapper,
  .page-sic-bo__feature-item,
  .page-sic-bo__advantage-card,
  .page-sic-bo__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-sic-bo__main-title {
    font-size: 1.8em;
  }
  .page-sic-bo__section-title {
    font-size: 1.6em;
  }
  .page-sic-bo__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}