/* style/sic-bo.css */

/* Base Styles for page-sic-bo */
.page-sic-bo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000; /* Inherited from shared.css, but ensure content area uses this */
}

.page-sic-bo__hero-section-placeholder {
  padding-top: 120px; /* Spacing for fixed header on non-homepage */
  background: linear-gradient(135deg, #0A2463, #000000);
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-sic-bo__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-sic-bo__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
}

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

.page-sic-bo__section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sic-bo__section:last-of-type {
  border-bottom: none;
}

.page-sic-bo__section--intro {
  background-color: #000;
}

.page-sic-bo__section--bet-types,
.page-sic-bo__section--tips {
  background-color: #0A2463; /* Brand primary color for darker sections */
  color: #ffffff;
}

.page-sic-bo__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-sic-bo__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-sic-bo__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-sic-bo__text-block {
  flex: 2;
}

.page-sic-bo__image-block {
  flex: 1;
  min-width: 250px; /* Minimum width to prevent image from becoming too small */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sic-bo__image-block--center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-sic-bo__image-block--center img {
  max-width: 600px;
  height: auto;
}

.page-sic-bo p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-sic-bo__text-link {
  color: #FFD700; /* Gold for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-sic-bo__text-link:hover {
  color: #ffffff;
}

.page-sic-bo__list,
.page-sic-bo__step-list,
.page-sic-bo__advantages-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-sic-bo__list-item,
.page-sic-bo__advantages-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-sic-bo__list-item strong,
.page-sic-bo__advantages-item strong {
  color: #FFD700;
}

.page-sic-bo__step-list {
  counter-reset: step-counter;
}

.page-sic-bo__step-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sic-bo__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFD700;
  color: #0A2463;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-sic-bo__step-title {
  color: #FFD700;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-sic-bo__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-sic-bo__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-sic-bo__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

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

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

.page-sic-bo__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-sic-bo__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #0A2463; /* Dark blue text */
}

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

.page-sic-bo__cta-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
  color: #ffffff;
}

/* FAQ Section */
.page-sic-bo__section--faq {
  background-color: #000;
}

.page-sic-bo__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A2463; /* Dark blue background for questions */
  border: 1px solid #1a3a70;
  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: #1a3a70;
  border-color: #FFD700;
}

.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 text for questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-sic-bo__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #1a3a70;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: #ffffff;
}

.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: #0d0d0d; /* Slightly lighter dark background for answers */
  border: 1px solid #1a3a70;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important; /* Sufficiently large max-height */
  padding: 20px 25px !important;
  opacity: 1;
  color: #f0f0f0;
}

/* 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__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-sic-bo__image-block {
    min-width: unset;
    width: 100%;
  }

  .page-sic-bo__grid-3-cols,
  .page-sic-bo__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-section-placeholder {
    padding-top: 100px; /* Mobile spacing for fixed header */
    padding-bottom: 40px;
  }

  .page-sic-bo__main-title {
    font-size: 2.2em;
  }

  .page-sic-bo__subtitle {
    font-size: 1em;
  }

  .page-sic-bo__section {
    padding: 50px 0;
  }

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

  .page-sic-bo__container {
    padding: 0 15px;
  }

  .page-sic-bo p,
  .page-sic-bo__list-item,
  .page-sic-bo__advantages-item {
    font-size: 0.95em;
  }

  .page-sic-bo__step-item {
    padding-left: 50px;
  }

  .page-sic-bo__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

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

  .page-sic-bo__card {
    padding: 20px;
  }

  .page-sic-bo__card-title {
    font-size: 1.2em;
  }

  .page-sic-bo__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-sic-bo__cta-text {
    font-size: 1.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: 24px;
    width: 28px;
    height: 28px;
  }

  .page-sic-bo__faq-answer {
    padding: 0 20px;
  }

  .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* 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-section-placeholder {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sic-bo__image-block--center img {
    max-width: 100% !important;
  }
}