.page-blog-lucky-8-code-faq {
  background-color: var(--background-color, #08160F); /* Fallback to custom dark green if --background-color is not defined */
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-blog-lucky-8-code-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog-lucky-8-code-faq__hero-section {
  padding-top: 10px; /* Small top padding as per rules */
  background-color: var(--background-color, #08160F);
  display: flex;
  flex-direction: column; /* Ensure image is above text content */
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog-lucky-8-code-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 20px; /* Space between image and text */
}

.page-blog-lucky-8-code-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-blog-lucky-8-code-faq__hero-content {
  max-width: 800px;
  padding: 0 20px 60px; /* Padding for content below hero image */
  z-index: 1; /* Ensure text is above any potential background elements */
  color: var(--text-main, #F2FFF6);
}

.page-blog-lucky-8-code-faq__hero-title {
  font-size: 2.5em; /* Using em for relative sizing, will be clamped if needed */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E); /* Using gold for title */
}

.page-blog-lucky-8-code-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog-lucky-8-code-faq__hero-cta {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 15px;
}

/* General Section Styles */
.page-blog-lucky-8-code-faq__introduction-section,
.page-blog-lucky-8-code-faq__what-is-section,
.page-blog-lucky-8-code-faq__how-to-get-section,
.page-blog-lucky-8-code-faq__how-to-use-section,
.page-blog-lucky-8-code-faq__pitfalls-section,
.page-blog-lucky-8-code-faq__benefits-section,
.page-blog-lucky-8-code-faq__faq-section,
.page-blog-lucky-8-code-faq__tips-section,
.page-blog-lucky-8-code-faq__conclusion-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-blog-lucky-8-code-faq__section-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog-lucky-8-code-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--glow, #57E38D);
  border-radius: 2px;
}

.page-blog-lucky-8-code-faq__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog-lucky-8-code-faq__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog-lucky-8-code-faq__highlight-text {
  color: var(--glow, #57E38D);
  font-weight: bold;
}

.page-blog-lucky-8-code-faq__text-link {
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
}

.page-blog-lucky-8-code-faq__text-link:hover {
  text-decoration: underline;
}

/* Buttons */
.page-blog-lucky-8-code-faq__btn-primary,
.page-blog-lucky-8-code-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-blog-lucky-8-code-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-blog-lucky-8-code-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog-lucky-8-code-faq__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-blog-lucky-8-code-faq__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C); /* Darker text on hover for contrast */
}

/* Lists */
.page-blog-lucky-8-code-faq__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-blog-lucky-8-code-faq__list--bullet .page-blog-lucky-8-code-faq__list-item::before {
  content: '•';
  color: var(--glow, #57E38D);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.page-blog-lucky-8-code-faq__list--numbered {
  list-style: decimal;
  padding-left: 25px;
}

.page-blog-lucky-8-code-faq__list--ordered {
  list-style: decimal;
  padding-left: 25px;
}

.page-blog-lucky-8-code-faq__list-item {
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog-lucky-8-code-faq__sub-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 5px;
  color: var(--text-secondary, #A7D9B8);
}

/* Content Grid */
.page-blog-lucky-8-code-faq__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.page-blog-lucky-8-code-faq__image-block {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.page-blog-lucky-8-code-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-blog-lucky-8-code-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-lucky-8-code-faq__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-blog-lucky-8-code-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  outline: none;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 8px; /* Apply border-radius to summary */
}

.page-blog-lucky-8-code-faq__faq-item[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-blog-lucky-8-code-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-lucky-8-code-faq__faq-item summary::marker {
  display: none;
}

.page-blog-lucky-8-code-faq__faq-qtext {
  flex-grow: 1;
}

.page-blog-lucky-8-code-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-blog-lucky-8-code-faq__faq-answer {
  padding: 15px 25px 20px;
  background-color: var(--card-bg, #11271B);
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
}

.page-blog-lucky-8-code-faq__faq-answer p {
  margin-bottom: 0;
}

.page-blog-lucky-8-code-faq__cta-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-lucky-8-code-faq__hero-title {
    font-size: 2.2em;
  }
  .page-blog-lucky-8-code-faq__section-title {
    font-size: 1.8em;
  }
  .page-blog-lucky-8-code-faq__sub-title {
    font-size: 1.3em;
  }
  .page-blog-lucky-8-code-faq__content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-blog-lucky-8-code-faq__container {
    padding: 0 15px;
  }

  .page-blog-lucky-8-code-faq__hero-title {
    font-size: clamp(1.8em, 5vw, 2.5em); /* Clamped font size for H1 */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-blog-lucky-8-code-faq__hero-description {
    font-size: 1em;
  }
  .page-blog-lucky-8-code-faq__hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .page-blog-lucky-8-code-faq__btn-primary,
  .page-blog-lucky-8-code-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-lucky-8-code-faq__section-title {
    font-size: 1.6em;
  }
  .page-blog-lucky-8-code-faq__sub-title {
    font-size: 1.2em;
  }
  .page-blog-lucky-8-code-faq__text-block,
  .page-blog-lucky-8-code-faq__list-item,
  .page-blog-lucky-8-code-faq__faq-answer p {
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-blog-lucky-8-code-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-blog-lucky-8-code-faq__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-blog-lucky-8-code-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ items */
  .page-blog-lucky-8-code-faq__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-blog-lucky-8-code-faq__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog-lucky-8-code-faq__hero-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-blog-lucky-8-code-faq__hero-content {
    padding: 0 15px 40px;
  }
  .page-blog-lucky-8-code-faq__section-title {
    font-size: 1.4em;
  }
  .page-blog-lucky-8-code-faq__faq-item summary {
    font-size: 0.9em;
  }
}