/* style/sic-bo.css */

/* 🚨 Cố định khoảng cách cho thanh điều hướng cố định */
.page-sic-bo__hero-section-alt {
  padding-top: 120px; /* Khoảng cách cho desktop */
}

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

.page-sic-bo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Màu chữ mặc định cho nền tối */
  background-color: #0a0a0a; /* Nền tối từ shared.css */
}

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

.page-sic-bo__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Vàng kim */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

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

.page-sic-bo__link-text {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Nút chung */
.page-sic-bo__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-sic-bo__btn--primary {
  background-color: #FFD700;
  color: #0a0a0a;
  border: 2px solid #FFD700;
}

.page-sic-bo__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #000000;
}

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

.page-sic-bo__btn--secondary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
}

/* HERO Section Alt (không có hình nền lớn) */
.page-sic-bo__hero-section-alt {
  background: linear-gradient(135deg, #0a0a0a, #8B0000);
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-sic-bo__hero-content {
  max-width: 800px;
  color: #ffffff;
}

.page-sic-bo__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-sic-bo__link-highlight:hover {
  text-decoration: underline;
}

/* Intro Section */
.page-sic-bo__intro-section {
  padding: 80px 0;
}

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

.page-sic-bo__intro-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
  color: #cccccc;
}

.page-sic-bo__intro-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__intro-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* 🚨 Responsive image */
}

/* Features Section */
.page-sic-bo__features-section {
  padding: 80px 0;
}

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

.page-sic-bo__feature-card {
  background-color: #1a1a1a; /* Nền tối hơn cho card */
  padding: 30px;
  border-radius: 10px;
  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: #f0f0f0;
  border: 1px solid #333333;
}

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

.page-sic-bo__feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%; /* 🚨 Responsive image */
}

.page-sic-bo__feature-card h3 {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-sic-bo__feature-card ul {
  text-align: left;
  padding-left: 20px;
  margin-top: 15px;
  color: #cccccc;
}

.page-sic-bo__feature-card ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

/* Why Choose Section */
.page-sic-bo__why-choose-section {
  padding: 80px 0;
}

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

.page-sic-bo__advantage-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #f0f0f0;
  border: 1px solid #333333;
}

.page-sic-bo__advantage-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* 🚨 Responsive image */
}

.page-sic-bo__advantage-item h3 {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-sic-bo__advantage-item p {
  font-size: 15px;
  color: #cccccc;
}

/* CTA Section */
.page-sic-bo__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-sic-bo__cta-content {
  background-color: #8B0000; /* Đỏ sẫm */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-sic-bo__cta-content .page-sic-bo__section-title {
  color: #FFD700;
  margin-bottom: 20px;
}

.page-sic-bo__cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sic-bo__faq-section {
  padding: 80px 0;
}

/* FAQ container style */
.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #333333;
}

/* FAQ default state - answer 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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

/* Question style */
.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid #333333;
  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: #2a2a2a;
  border-color: #444444;
}

.page-sic-bo__faq-question:active {
  background: #3a3a3a;
}

/* Question title style */
.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; /* Prevent h3 from blocking click events */
  color: #FFD700;
}

/* Toggle icon */
.page-sic-bo__faq-toggle {
  font-size: 24px;
  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; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Blog Section */
.page-sic-bo__blog-section {
  padding: 80px 0;
}

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

.page-sic-bo__blog-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

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

.page-sic-bo__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-sic-bo__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  max-width: 100%; /* 🚨 Responsive image */
}

.page-sic-bo__blog-card .page-sic-bo__card-title {
  font-size: 20px;
  color: #FFD700;
  margin: 15px 20px 10px;
  text-align: left;
}

.page-sic-bo__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin: 0 20px 15px;
  text-align: left;
}

.page-sic-bo__blog-date {
  font-size: 13px;
  color: #999999;
  margin: 0 20px 20px;
  display: block;
  text-align: left;
}

.page-sic-bo__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__main-title {
    font-size: 40px;
  }
  .page-sic-bo__hero-description {
    font-size: 18px;
  }
  .page-sic-bo__intro-content {
    flex-direction: column;
  }
  .page-sic-bo__intro-image {
    min-width: unset;
    width: 100%;
  }
  .page-sic-bo__section-title {
    font-size: 32px;
  }
  .page-sic-bo__feature-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-section-alt {
    padding-bottom: 60px;
  }
  .page-sic-bo__main-title {
    font-size: 32px;
  }
  .page-sic-bo__hero-description {
    font-size: 16px;
  }
  .page-sic-bo__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .page-sic-bo__intro-section,
  .page-sic-bo__features-section,
  .page-sic-bo__why-choose-section,
  .page-sic-bo__cta-section,
  .page-sic-bo__faq-section,
  .page-sic-bo__blog-section {
    padding: 60px 0;
  }
  .page-sic-bo__container {
    padding: 0 15px;
  }
  .page-sic-bo__section-title {
    font-size: 28px;
  }
  .page-sic-bo__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-sic-bo__intro-text,
  .page-sic-bo__feature-card p,
  .page-sic-bo__advantage-item p,
  .page-sic-bo__cta-content p,
  .page-sic-bo__blog-excerpt {
    font-size: 15px;
  }
  .page-sic-bo__feature-card h3,
  .page-sic-bo__advantage-item h3 {
    font-size: 20px;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 16px;
  }
  .page-sic-bo__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    padding: 15px !important;
  }
  .page-sic-bo__blog-card .page-sic-bo__card-title {
    font-size: 18px;
  }
  /* 🚨 Mobile image responsive forced styles */
  .page-sic-bo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sic-bo__intro-image,
  .page-sic-bo__feature-card,
  .page-sic-bo__advantage-item,
  .page-sic-bo__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-sic-bo__main-title {
    font-size: 28px;
  }
  .page-sic-bo__section-title {
    font-size: 24px;
  }
  .page-sic-bo__hero-buttons {
    gap: 10px;
  }
  .page-sic-bo__btn {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-sic-bo__feature-grid,
  .page-sic-bo__advantages-grid,
  .page-sic-bo__blog-grid {
    gap: 20px;
  }
  .page-sic-bo__feature-card img {
    height: 180px;
  }
  .page-sic-bo__blog-card img {
    height: 160px;
  }
}

/* Dark background elements */
.page-sic-bo__dark-bg {
  background-color: #0a0a0a;
  color: #f0f0f0;
}

/* Light background elements */
.page-sic-bo__light-bg {
  background-color: #121212;
  color: #f0f0f0;
}

.page-sic-bo__card-title {
  color: #FFD700;
}

.page-sic-bo__feature-card p,
.page-sic-bo__feature-card li,
.page-sic-bo__advantage-item p,
.page-sic-bo__blog-excerpt,
.page-sic-bo__blog-date {
  color: #cccccc;
}