/* style/sic-bo.css */
.page-sic-bo {
  color: #ffffff; /* Sẽ được ghi đè bởi các section cụ thể */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0d1117; /* Body background color from shared.css */
}

/* Đảm bảo nội dung không bị che bởi fixed header */
.page-sic-bo__hero-section {
  padding-top: 120px; /* Desktop spacing for fixed header */
  position: relative;
  width: 100%;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(135deg, #003366 0%, #001a33 100%); /* Dark blue gradient */
  color: #ffffff;
  text-align: center;
}

.page-sic-bo__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-sic-bo__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.page-sic-bo__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-sic-bo__hero-link {
  color: #FFD700;
  text-decoration: underline;
}

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

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

.page-sic-bo__btn--primary {
  background: #FFD700; /* Gold background */
  color: #003366; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

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

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

.page-sic-bo__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-sic-bo__btn--center {
  display: block;
  margin: 30px auto;
}

.page-sic-bo__hero-image-wrapper {
  margin-top: 40px;
}

.page-sic-bo__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.page-sic-bo__section {
  padding: 60px 20px;
  background-color: #0d1117;
  color: #ffffff;
}

.page-sic-bo__dark-bg {
  background-color: #003366;
  color: #ffffff;
}

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

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

.page-sic-bo__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-sic-bo__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-sic-bo__link {
  color: #FFD700;
  text-decoration: underline;
}

.page-sic-bo__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  display: block;
}

.page-sic-bo__image--full-width {
  width: 100%;
}

.page-sic-bo__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-sic-bo__ordered-list,
.page-sic-bo__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-sic-bo__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-sic-bo__card-image {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sic-bo__card-description {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
}

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

.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter for contrast */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-sic-bo__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}

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

.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: 32px;
  height: 32px;
}

.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;
  color: #e0e0e0;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

.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-title {
    font-size: 2.8em;
  }
  .page-sic-bo__section-title {
    font-size: 2.2em;
  }
  .page-sic-bo__text-block, .page-sic-bo__list-item, .page-sic-bo__card-description {
    font-size: 1em;
  }
  .page-sic-bo__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-section {
    padding-top: 100px; /* Mobile spacing for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sic-bo__hero-title {
    font-size: 2.2em;
  }
  .page-sic-bo__hero-description {
    font-size: 1em;
  }
  .page-sic-bo__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-sic-bo__btn--large {
    padding: 15px 25px;
    font-size: 1.1em;
  }
  .page-sic-bo__section {
    padding: 40px 15px;
  }
  .page-sic-bo__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sic-bo__text-block, .page-sic-bo__list-item, .page-sic-bo__card-description {
    font-size: 0.95em;
  }
  .page-sic-bo__card-image {
    max-width: 120px;
  }
  .page-sic-bo__card-title {
    font-size: 1.2em;
  }
  .page-sic-bo__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 1.1em;
    width: calc(100% - 40px);
  }
  .page-sic-bo__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .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 responsiveness */
  .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;
  }
}

@media (max-width: 480px) {
  .page-sic-bo__hero-title {
    font-size: 1.8em;
  }
  .page-sic-bo__section-title {
    font-size: 1.6em;
  }
  .page-sic-bo__card-image {
    max-width: 100px;
  }
  .page-sic-bo__card {
    padding: 20px;
  }
}