/* style/sic-bo.css */

/* Căn chỉnh nội dung chính để tránh bị che bởi header cố định */
.page-sic-bo {
  padding-top: 100px; /* Giá trị mặc định cho mobile */
  color: #ffffff; /* Text color for dark background */
}

@media (min-width: 769px) {
  .page-sic-bo {
    padding-top: 120px; /* Giá trị cho desktop */
  }
}

/* General styles */
.page-sic-bo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-sic-bo__brand-link {
  color: #FFD700; /* Gold color for brand links */
  text-decoration: none;
  font-weight: bold;
}

.page-sic-bo__brand-link:hover {
  text-decoration: underline;
}

.page-sic-bo__highlight {
  color: #FFD700; /* Gold color for highlights */
  font-weight: bold;
}

.page-sic-bo__link-text {
  color: #FFD700; /* Gold color for links within text */
  text-decoration: none;
}

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

/* Section backgrounds based on body background (var(--dark-bg-1)) */
.page-sic-bo__dark-section {
  background-color: var(--dark-bg-1); /* Use shared dark background */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-sic-bo__light-section {
  background-color: #1a3c42; /* A slightly lighter dark tone for contrast */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

/* Hero Banner Section */
.page-sic-bo__hero-banner {
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -100px; /* Offset the padding-top from main */
}

@media (min-width: 769px) {
  .page-sic-bo__hero-banner {
    margin-top: -120px; /* Offset for desktop */
  }
}

.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;
}

/* Introduction Section */
.page-sic-bo__main-title {
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for main title */
  line-height: 1.2;
}

.page-sic-bo__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  color: #FFD700; /* Gold color for section titles */
  line-height: 1.3;
}

.page-sic-bo__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Content Wrapper with Image and Text */
.page-sic-bo__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-sic-bo__content-wrapper:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-sic-bo__text-block {
  flex: 1;
  min-width: 300px;
}

.page-sic-bo__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

/* Lists */
.page-sic-bo__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
}

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

.page-sic-bo__sub-list {
  list-style: circle inside;
  margin-left: 20px;
  margin-top: 5px;
}

/* Advantages Section */
.page-sic-bo__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-sic-bo__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-sic-bo__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-sic-bo__card-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold color for card titles */
  margin-bottom: 15px;
  flex-grow: 1; /* Allow title to grow */
}

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

/* Call to Action Section */
.page-sic-bo__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #0A2E36, #1a3c42); /* Gradient background */
}

.page-sic-bo__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-sic-bo__cta-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sic-bo__btn-primary,
.page-sic-bo__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 10px;
  cursor: pointer;
}

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

.page-sic-bo__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-sic-bo__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2E36;
  transform: translateY(-3px);
}

/* FAQ Section */
.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 transparent dark for FAQ item */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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 dark for question header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-sic-bo__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-sic-bo__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  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: 32px;
  height: 32px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.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: #f0f0f0; /* Light text for answer */
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03); /* Slightly darker background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__main-title {
    font-size: 2.5em;
  }
  .page-sic-bo__section-title {
    font-size: 2em;
  }
  .page-sic-bo__paragraph {
    font-size: 1em;
  }
  .page-sic-bo__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-sic-bo__card-image {
    height: 180px;
  }
  .page-sic-bo__cta-title {
    font-size: 2.2em;
  }
  .page-sic-bo__cta-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-sic-bo {
    padding-top: 80px; /* Adjust padding for mobile header */
  }
  .page-sic-bo__hero-banner {
    margin-top: -80px; /* Offset the padding-top from main */
  }
  .page-sic-bo__container {
    padding: 0 15px;
  }
  .page-sic-bo__dark-section,
  .page-sic-bo__light-section {
    padding: 40px 0;
  }
  .page-sic-bo__main-title {
    font-size: 2em;
  }
  .page-sic-bo__section-title {
    font-size: 1.8em;
  }
  .page-sic-bo__content-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  .page-sic-bo__text-block,
  .page-sic-bo__image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-sic-bo__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sic-bo__card-image {
    height: 150px;
  }
  .page-sic-bo__btn-primary,
  .page-sic-bo__btn-secondary {
    display: block;
    width: calc(100% - 20px);
    margin: 15px auto;
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-sic-bo__faq-question {
    padding: 15px 20px;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 1.1em;
  }
  .page-sic-bo__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    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;
  }

  /* Responsive images */
  .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-banner,
  .page-sic-bo__hero-container,
  .page-sic-bo__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sic-bo__hero-banner .page-sic-bo__container,
  .page-sic-bo__hero-container .page-sic-bo__container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-sic-bo__main-title {
    font-size: 1.8em;
  }
  .page-sic-bo__section-title {
    font-size: 1.6em;
  }
  .page-sic-bo__cta-title {
    font-size: 1.8em;
  }
}