/* style/sic-bo.css */

:root {
  --page-sic-bo-primary-color: #003366;
  --page-sic-bo-secondary-color: #FFCC00;
  --page-sic-bo-text-light: #ffffff;
  --page-sic-bo-text-dark: #333333;
  --page-sic-bo-bg-dark: #0d0d0d;
  --page-sic-bo-border-color: #e0e0e0;
}

.page-sic-bo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-sic-bo-text-light); /* Body background is dark, so use light text */
  background-color: var(--page-sic-bo-bg-dark);
}

/* Fixed header spacing for the first content module */
.page-sic-bo__hero-banner {
  padding-top: 120px; /* Desktop padding */
}

@media (max-width: 768px) {
  .page-sic-bo__hero-banner {
    padding-top: 100px; /* Mobile padding */
  }
}

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

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

.page-sic-bo__section--intro {
  background-color: var(--page-sic-bo-bg-dark);
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__section--rules {
  background-color: #1a1a1a;
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__section--bet-types {
  background-color: var(--page-sic-bo-bg-dark);
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__section--strategies {
  background-color: var(--page-sic-bo-primary-color);
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__section--benefits {
  background-color: #1a1a1a;
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__section--register {
  background-color: var(--page-sic-bo-primary-color);
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__section--faq {
  background-color: var(--page-sic-bo-bg-dark);
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__heading {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--page-sic-bo-secondary-color);
  font-weight: 700;
}

.page-sic-bo__sub-heading {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-sic-bo-secondary-color);
  font-weight: 600;
}

.page-sic-bo__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__paragraph a {
  color: var(--page-sic-bo-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sic-bo__paragraph a:hover {
  color: #fff;
}

.page-sic-bo__hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: left;
}

.page-sic-bo__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.page-sic-bo__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 1;
}

.page-sic-bo__hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: var(--page-sic-bo-text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-sic-bo__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--page-sic-bo-secondary-color);
  line-height: 1.2;
}

.page-sic-bo__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-sic-bo__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-sic-bo__btn--primary {
  background-color: var(--page-sic-bo-secondary-color);
  color: var(--page-sic-bo-primary-color);
}

.page-sic-bo__btn--primary:hover {
  background-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sic-bo__btn--secondary {
  background-color: transparent;
  color: var(--page-sic-bo-secondary-color);
  border: 2px solid var(--page-sic-bo-secondary-color);
}

.page-sic-bo__btn--secondary:hover {
  background-color: var(--page-sic-bo-secondary-color);
  color: var(--page-sic-bo-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sic-bo__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-sic-bo__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-sic-bo__text-content {
  flex: 1;
}

.page-sic-bo__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sic-bo__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-sic-bo__list-item {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-sic-bo-secondary-color);
  font-weight: bold;
  font-size: 20px;
}

.page-sic-bo__list--steps .page-sic-bo__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: var(--page-sic-bo-secondary-color);
  color: var(--page-sic-bo-primary-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  left: -5px;
  top: 0px;
}

.page-sic-bo__list--steps {
  counter-reset: step-counter;
}

.page-sic-bo__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-sic-bo-text-light);
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-sic-bo__card-title {
  font-size: 22px;
  color: var(--page-sic-bo-secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-sic-bo__card-text {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

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

.page-sic-bo__paragraph--cta {
  margin-top: 40px;
  font-weight: bold;
}

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

.page-sic-bo__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-sic-bo__feature-icon {
  width: 120px; /* Increased size for content image, not small icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-sic-bo__feature-title {
  font-size: 20px;
  color: var(--page-sic-bo-secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-sic-bo__feature-text {
  font-size: 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-sic-bo__register-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* FAQ styles */
.page-sic-bo__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  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: var(--page-sic-bo-primary-color);
  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-item.active .page-sic-bo__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.page-sic-bo__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--page-sic-bo-text-light);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-sic-bo__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-sic-bo-secondary-color);
  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-toggle {
  color: #fff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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(0, 51, 102, 0.5); /* Slightly lighter background for answer */
  color: var(--page-sic-bo-text-light);
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-sic-bo__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sic-bo__hero-title {
    font-size: 40px;
  }
  .page-sic-bo__hero-description {
    font-size: 18px;
  }
  .page-sic-bo__heading {
    font-size: 30px;
  }
  .page-sic-bo__paragraph {
    font-size: 17px;
  }
  .page-sic-bo__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-sic-bo__content-wrapper--reversed {
    flex-direction: column;
  }
  .page-sic-bo__image-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-banner {
    min-height: 400px;
  }
  .page-sic-bo__hero-content {
    text-align: center;
    max-width: 100%;
  }
  .page-sic-bo__hero-title {
    font-size: 32px;
  }
  .page-sic-bo__hero-description {
    font-size: 16px;
  }
  .page-sic-bo__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__hero-container {
    justify-content: center;
  }
  .page-sic-bo__section {
    padding: 40px 0;
  }
  .page-sic-bo__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-sic-bo__sub-heading {
    font-size: 20px;
  }
  .page-sic-bo__paragraph {
    font-size: 16px;
  }
  .page-sic-bo__list-item {
    font-size: 16px;
    padding-left: 25px;
  }
  .page-sic-bo__card {
    padding: 20px;
  }
  .page-sic-bo__card-title {
    font-size: 20px;
  }
  .page-sic-bo__card-text {
    font-size: 15px;
  }
  .page-sic-bo__feature-icon {
    width: 100px;
    height: 100px;
  }
  .page-sic-bo__feature-title {
    font-size: 18px;
  }
  .page-sic-bo__feature-text {
    font-size: 15px;
  }
  .page-sic-bo__register-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__faq-question {
    padding: 15px 20px;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 16px;
  }
  .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 responsive 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}