/* style/sic-bo.css */

/* Cấu trúc và định dạng chung cho trang Tài Xỉu */
.page-sic-bo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Màu chữ nhạt cho nền tối */
  background-color: #121212; /* Nền tối đồng bộ với body */
}

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

/* Đảm bảo nội dung không bị che bởi fixed header */
.page-sic-bo__hero-section {
  padding-top: 120px; /* Desktop */
}

/* Tiêu đề các phần */
.page-sic-bo__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFA500; /* Màu cam nổi bật */
  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: #003366; /* Màu xanh đậm */
  border-radius: 2px;
}

.page-sic-bo__subsection-title {
  font-size: 28px;
  font-weight: 600;
  color: #f0f0f0;
  margin-top: 35px;
  margin-bottom: 20px;
  border-left: 5px solid #FFA500;
  padding-left: 15px;
}

/* Khối văn bản */
.page-sic-bo__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Chữ nổi bật */
.page-sic-bo__highlight-text {
  color: #FFA500;
  font-weight: 600;
}

.page-sic-bo__text-link {
  color: #FFA500;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Danh sách */
.page-sic-bo__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-sic-bo__list-item {
  margin-bottom: 10px;
  font-size: 17px;
}

/* Hình ảnh trong nội dung */
.page-sic-bo__image-wrapper {
  text-align: center;
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__image-wrapper--small {
  text-align: center;
  margin: 20px auto;
  max-width: 600px; /* Giới hạn chiều rộng cho ảnh nhỏ */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Nút chính */
.page-sic-bo__btn-primary {
  display: inline-block;
  background-color: #FFA500; /* Màu cam */
  color: #003366; /* Màu chữ xanh đậm */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFA500;
}

.page-sic-bo__btn-primary:hover {
  background-color: #ff8c00; /* Cam đậm hơn */
  transform: translateY(-3px);
  color: #ffffff; /* Chữ trắng khi hover */
}

/* Nút phụ */
.page-sic-bo__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFA500; /* Màu cam */
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #FFA500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-sic-bo__btn-secondary:hover {
  background-color: #FFA500;
  color: #003366;
}

/* Hero Section */
.page-sic-bo__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-sic-bo__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-sic-bo__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Làm tối ảnh nền để chữ nổi bật */
}

.page-sic-bo__hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.page-sic-bo__hero-title {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 800;
}

.page-sic-bo__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sic-bo__hero-btn {
  display: inline-block;
  background-color: #FFA500;
  color: #003366;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFA500;
}

.page-sic-bo__hero-btn:hover {
  background-color: #ff8c00;
  transform: translateY(-5px);
  color: #ffffff;
}

/* Section giới thiệu */
.page-sic-bo__introduction-section {
  padding: 80px 0;
  background-color: #003366; /* Nền xanh đậm */
  color: #ffffff;
}

/* Section ưu điểm */
.page-sic-bo__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Nền xám đậm */
}

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

.page-sic-bo__card {
  background: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

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

.page-sic-bo__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFA500;
  margin-bottom: 15px;
}

.page-sic-bo__card-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-sic-bo__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Section khuyến mãi */
.page-sic-bo__promotions-section {
  padding: 80px 0;
  background-color: #003366;
  color: #ffffff;
}

.page-sic-bo__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

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

.page-sic-bo__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sic-bo__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFA500;
  margin-bottom: 10px;
}

.page-sic-bo__promotion-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-sic-bo__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #f0f0f0;
}

.page-sic-bo__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

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

.page-sic-bo__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFA500;
  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-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: #222222;
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
}

.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-item.active .page-sic-bo__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Thay đổi thành dấu X */
}

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

/* Contact Section */
.page-sic-bo__contact-section {
  padding: 80px 0;
  background-color: #003366;
  color: #ffffff;
  text-align: center;
}

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

.page-sic-bo__contact-item {
  font-size: 18px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-sic-bo__contact-item strong {
  color: #FFA500;
}

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

  .page-sic-bo__hero-description {
    font-size: 20px;
  }

  .page-sic-bo__hero-btn {
    font-size: 20px;
    padding: 15px 30px;
  }

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

  .page-sic-bo__subsection-title {
    font-size: 26px;
  }

  .page-sic-bo__text-block, .page-sic-bo__list-item {
    font-size: 16px;
  }

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

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

  .page-sic-bo__faq-question h3 {
    font-size: 17px;
  }
}

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

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

  .page-sic-bo__hero-overlay {
    width: 90%;
    padding: 15px;
  }

  .page-sic-bo__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-sic-bo__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-sic-bo__hero-btn {
    font-size: 18px;
    padding: 12px 25px;
  }

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

  .page-sic-bo__subsection-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-sic-bo__text-block, .page-sic-bo__list-item, .page-sic-bo__card-text, .page-sic-bo__promotion-description {
    font-size: 15px;
  }

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

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

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

  .page-sic-bo__promotion-title {
    font-size: 18px;
  }

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

  .page-sic-bo__btn-secondary {
    font-size: 15px;
    padding: 8px 18px;
  }

  .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: 26px;
    height: 26px;
    margin-left: 15px;
  }

  .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__contact-item {
    font-size: 16px;
  }

  /* 强制图片响应式适配 */
  .page-sic-bo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sic-bo__hero-section,
  .page-sic-bo__introduction-section,
  .page-sic-bo__how-to-play-section,
  .page-sic-bo__strategy-section,
  .page-sic-bo__advantages-section,
  .page-sic-bo__promotions-section,
  .page-sic-bo__faq-section,
  .page-sic-bo__contact-section,
  .page-sic-bo__container,
  .page-sic-bo__card,
  .page-sic-bo__promotion-card,
  .page-sic-bo__image-wrapper,
  .page-sic-bo__image-wrapper--small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}