/* style/sic-bo.css */

/* Base styles for the sic-bo page content */
.page-sic-bo {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  background-color: var(--primary-color); /* Dark background */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Responsive padding-top for fixed header on mobile */
@media (max-width: 768px) {
  .page-sic-bo {
    padding-top: 100px; /* Mobile: Adjust for fixed header */
  }
}

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

.page-sic-bo__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--secondary-color); /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-sic-bo__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent section */
}

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

.page-sic-bo a:hover {
  color: #fff;
  text-decoration: underline;
}

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

.page-sic-bo__btn--primary {
  background-color: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark text */
  border: 2px solid var(--secondary-color);
}

.page-sic-bo__btn--primary:hover {
  background-color: #e0b800;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.page-sic-bo__btn--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Dark text */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

/* Hero Banner Section */
.page-sic-bo__hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
}

.page-sic-bo__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for banner, adjust as needed */
}

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

.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;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-sic-bo__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Section Backgrounds */
.page-sic-bo__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

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

/* Features Grid Section */
.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-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-sic-bo__feature-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
}

.page-sic-bo__feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-sic-bo__feature-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sic-bo__feature-card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 15px;
}

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

.page-sic-bo__advantage-item {
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-sic-bo__advantage-item:hover {
  transform: translateY(-5px);
}

.page-sic-bo__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sic-bo__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-sic-bo__advantage-description {
  font-size: 16px;
  color: #555555;
}

/* Lists */
.page-sic-bo__ordered-list,
.page-sic-bo__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  color: inherit;
}

.page-sic-bo__ordered-list li,
.page-sic-bo__unordered-list li {
  margin-bottom: 10px;
}

.page-sic-bo__nested-list {
  list-style-type: disc;
  margin-left: 30px;
  margin-top: 5px;
  margin-bottom: 5px;
}

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

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

.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 15px;
  opacity: 0;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: #ffffff;
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2A313F; /* Slightly lighter dark background */
  border: 1px solid rgba(255, 215, 0, 0.3); /* Gold border */
  border-radius: 5px;
  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: #3A414F;
  border-color: var(--secondary-color);
}

.page-sic-bo__faq-question:active {
  background: #4A515F;
}

.page-sic-bo__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

.page-sic-bo__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--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 events */
  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: #ffffff;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__hero-image-wrapper {
    height: 400px;
  }
  .page-sic-bo__hero-title {
    font-size: 40px;
  }
  .page-sic-bo__hero-subtitle {
    font-size: 18px;
  }
  .page-sic-bo__section-title {
    font-size: 32px;
  }
  .page-sic-bo__sub-title {
    font-size: 24px;
  }
  .page-sic-bo__text-block {
    font-size: 17px;
  }
  .page-sic-bo__features-grid,
  .page-sic-bo__advantages-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-sic-bo__container {
    padding: 30px 15px;
  }
  .page-sic-bo__hero-image-wrapper {
    height: 300px;
  }
  .page-sic-bo__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-sic-bo__hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-sic-bo__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-sic-bo__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-sic-bo__sub-title {
    font-size: 20px;
  }
  .page-sic-bo__text-block {
    font-size: 16px;
  }
  .page-sic-bo__feature-card-title,
  .page-sic-bo__advantage-title {
    font-size: 20px;
  }
  .page-sic-bo__feature-card-description,
  .page-sic-bo__advantage-description {
    font-size: 15px;
  }
  .page-sic-bo__ordered-list,
  .page-sic-bo__unordered-list {
    font-size: 16px;
    margin-left: 15px;
  }
  .page-sic-bo__faq-question {
    padding: 15px;
  }
  .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-item.active .page-sic-bo__faq-answer {
    padding: 15px !important;
  }
}

/* Mobile image responsive adaptation */
@media (max-width: 768px) {
  .page-sic-bo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sic-bo__container,
  .page-sic-bo__hero-banner,
  .page-sic-bo__hero-image-wrapper,
  .page-sic-bo__hero-overlay,
  .page-sic-bo__introduction-section,
  .page-sic-bo__features-section,
  .page-sic-bo__content-section,
  .page-sic-bo__strategy-section,
  .page-sic-bo__advantages-section,
  .page-sic-bo__promotions-section,
  .page-sic-bo__how-to-play-section,
  .page-sic-bo__faq-section,
  .page-sic-bo__conclusion-section,
  .page-sic-bo__feature-card,
  .page-sic-bo__advantage-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sic-bo__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}