/* style/sic-bo.css */

/* Căn chỉnh khoảng cách cho nội dung đầu tiên do header cố định */
.page-sic-bo__hero-section {
  padding-top: 120px; /* Khoảng cách cho desktop */
  background: #0a0a0a; /* Đảm bảo nền khớp với body */
  color: #ffffff; /* Chữ màu trắng trên nền tối */
}

@media (max-width: 768px) {
  .page-sic-bo__hero-section {
    padding-top: 100px; /* Khoảng cách cho mobile */
  }
}

.page-sic-bo {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Màu chữ mặc định cho trang trên nền tối */
  background-color: #0a0a0a;
}

.page-sic-bo__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-sic-bo__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sic-bo__hero-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-sic-bo__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.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;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-sic-bo__btn--primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border-color: #FFD700;
}

.page-sic-bo__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

.page-sic-bo__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-sic-bo__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

.page-sic-bo__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

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

.page-sic-bo__hero-image-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-sic-bo__section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-sic-bo__section:nth-of-type(odd) {
  background-color: #0d0d0d;
}

.page-sic-bo__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-sic-bo__section-title {
  font-size: 38px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__section-subtitle {
  font-size: 18px;
  text-align: center;
  color: #cccccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-sic-bo__text-block p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-sic-bo__text-block strong {
  color: #FFD700;
}

.page-sic-bo__image-block {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.page-sic-bo__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-sic-bo__list-item {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: #e0e0e0;
}

.page-sic-bo__grid {
  display: grid;
  gap: 30px;
}

.page-sic-bo__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-sic-bo__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-sic-bo__card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sic-bo__card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-sic-bo__card p {
  font-size: 15px;
  line-height: 1.6;
  color: #cccccc;
}

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

.page-sic-bo__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sic-bo__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-sic-bo__step-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sic-bo__strategy-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FFD700;
}

.page-sic-bo__strategy-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-sic-bo__strategy-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-sic-bo__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  border: 1px solid #FFD700;
}

.page-sic-bo__cta-block p {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: bold;
}

/* FAQ Section */
.page-sic-bo__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #cccccc;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  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-color: rgba(255, 255, 255, 0.15);
  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;
  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-item.active .page-sic-bo__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__hero-title {
    font-size: 40px;
  }
  .page-sic-bo__section-title {
    font-size: 32px;
  }
  .page-sic-bo__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-sic-bo__image-block {
    order: -1; /* Đẩy ảnh lên trên trong mobile */
  }
  .page-sic-bo__grid--3-cols, .page-sic-bo__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-section {
    padding: 30px 15px;
  }
  .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__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-sic-bo__section {
    padding: 40px 15px;
  }
  .page-sic-bo__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-sic-bo__section-subtitle,
  .page-sic-bo__text-block p,
  .page-sic-bo__list-item,
  .page-sic-bo__card p,
  .page-sic-bo__strategy-card p {
    font-size: 15px;
  }
  .page-sic-bo__card, .page-sic-bo__step-card, .page-sic-bo__strategy-card {
    padding: 20px;
  }
  .page-sic-bo__card-title, .page-sic-bo__step-title, .page-sic-bo__strategy-title {
    font-size: 20px;
  }
  .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;
  }
  .page-sic-bo__cta-block p {
    font-size: 18px;
  }
}

/* Mobile image adaptation - MUST be present */
.page-sic-bo img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .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,
  .page-sic-bo__hero-image-wrapper,
  .page-sic-bo__image-block,
  .page-sic-bo__step-card,
  .page-sic-bo__strategy-card,
  .page-sic-bo__faq-list,
  .page-sic-bo__faq-item,
  .page-sic-bo__faq-question {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left và padding-right đã được xử lý bởi các section/container chính */
  }
}