/* style/sic-bo.css */
.page-sic-bo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Mặc định chữ nhạt trên nền tối */
  background-color: var(--dark-bg-1); /* Sử dụng biến từ shared.css */
}

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

.page-sic-bo__hero-intro-section {
  padding-top: 120px; /* Đảm bảo không bị che bởi fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(26, 26, 26, 0.8));
  text-align: center;
  color: #ffffff;
}

.page-sic-bo__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Màu vàng thương hiệu */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sic-bo__lead-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-sic-bo__lead-text a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__lead-text a:hover {
  text-decoration: underline;
}

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

.page-sic-bo__cta-buttons--center {
  justify-content: center;
}

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

.page-sic-bo__btn--primary {
  background: #FFD700; /* Màu vàng thương hiệu */
  color: #1a1a1a; /* Chữ đen trên nền vàng */
  border-color: #FFD700;
}

.page-sic-bo__btn--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-sic-bo__btn--secondary {
  background: #1a1a1a; /* Màu nền phụ trợ */
  color: #FFD700; /* Chữ vàng trên nền đen */
  border-color: #FFD700;
}

.page-sic-bo__btn--secondary:hover {
  background: #333333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.page-sic-bo__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

.page-sic-bo__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 40px auto;
  color: #f0f0f0;
}

.page-sic-bo__section-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__section-description a:hover {
  text-decoration: underline;
}

.page-sic-bo__dark-section {
  background-color: var(--dark-bg-2); /* Nền tối hơn */
  color: #f0f0f0;
}

.page-sic-bo__about-sicbo-section,
.page-sic-bo__advantages-section,
.page-sic-bo__promotion-section,
.page-sic-bo__guide-section,
.page-sic-bo__tips-section,
.page-sic-bo__faq-section,
.page-sic-bo__contact-section {
  padding: 80px 0;
}

.page-sic-bo__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-sic-bo__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-sic-bo__text-block p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__text-block p a:hover {
  text-decoration: underline;
}

.page-sic-bo__image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.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: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt */
  border: 1px solid rgba(255, 215, 0, 0.2);
  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;
  color: #f0f0f0;
}

.page-sic-bo__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.3);
}

.page-sic-bo__feature-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-sic-bo__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sic-bo__feature-card p {
  font-size: 16px;
  color: #cccccc;
}

.page-sic-bo__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-sic-bo__promo-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sic-bo__promo-list li strong {
  color: #FFD700;
}

.page-sic-bo__promo-list li a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__promo-list li a:hover {
  text-decoration: underline;
}

.page-sic-bo__guide-section {
  background-color: var(--dark-bg-1);
}

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

.page-sic-bo__step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
  position: relative;
  padding-top: 70px; /* Để chứa số bước */
}

.page-sic-bo__step-number {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD700;
  color: #1a1a1a;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-sic-bo__step-card .page-sic-bo__card-title {
  font-size: 20px;
  margin-top: 15px;
  color: #FFD700;
}

.page-sic-bo__step-card p {
  font-size: 16px;
  color: #cccccc;
}

.page-sic-bo__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sic-bo__tips-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sic-bo__tips-list li strong {
  color: #FFD700;
}

.page-sic-bo__tips-list li a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__tips-list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-sic-bo__faq-section {
  background-color: var(--dark-bg-1);
}

.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 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  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: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
}

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

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  transform: rotate(45deg); /* Đổi dấu cộng thành dấu x */
  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: rgba(26, 26, 26, 0.8);
  color: #cccccc;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-top: none;
}

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

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

.page-sic-bo__faq-answer p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__faq-answer p a:hover {
  text-decoration: underline;
}

.page-sic-bo__contact-info {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  color: #f0f0f0;
}

.page-sic-bo__contact-info p {
  margin-bottom: 10px;
}

.page-sic-bo__contact-info a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__contact-info a:hover {
  text-decoration: underline;
}

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

  .page-sic-bo__section-title {
    font-size: 32px;
  }

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

  .page-sic-bo__image-wrapper {
    order: -1; /* Đẩy ảnh lên trên ở mobile */
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-intro-section {
    padding-top: 100px !important; /* Đảm bảo không bị che bởi fixed header trên mobile */
    padding-bottom: 40px;
  }
  
  .page-sic-bo__container {
    padding: 0 15px !important;
  }

  .page-sic-bo__main-title {
    font-size: 32px;
  }

  .page-sic-bo__lead-text {
    font-size: 16px;
  }

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

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

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

  .page-sic-bo__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-sic-bo__about-sicbo-section,
  .page-sic-bo__advantages-section,
  .page-sic-bo__promotion-section,
  .page-sic-bo__guide-section,
  .page-sic-bo__tips-section,
  .page-sic-bo__faq-section,
  .page-sic-bo__contact-section {
    padding: 60px 0;
  }

  .page-sic-bo__text-block p {
    font-size: 15px;
  }

  .page-sic-bo__features-grid,
  .page-sic-bo__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sic-bo__feature-card,
  .page-sic-bo__step-card {
    padding: 25px;
    padding-top: 60px;
  }

  .page-sic-bo__feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-sic-bo__card-title {
    font-size: 20px;
  }

  .page-sic-bo__promo-list li,
  .page-sic-bo__tips-list li {
    font-size: 15px;
    padding: 12px 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: 25px;
    height: 25px;
  }

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

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

  .page-sic-bo__faq-answer p {
    font-size: 15px;
  }

  .page-sic-bo__contact-info {
    font-size: 16px;
  }
}

/* Global image responsive styles to prevent overflow */
.page-sic-bo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure containers of images also adapt on mobile */
@media (max-width: 768px) {
  .page-sic-bo__image-wrapper,
  .page-sic-bo__feature-card img,
  .page-sic-bo__step-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-sic-bo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sic-bo__content-grid .page-sic-bo__image-wrapper {
    margin-left: 0;
    margin-right: 0;
  }
}