/* style/resources-lucky88-faq.css */

:root {
  --primary-color: #000000;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f8f8;
  --bg-dark: var(--dark-bg-1, #0d0d0d); /* Fallback if shared.css not loaded */
}

.page-resources-lucky88-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default for dark body background */
  background-color: var(--bg-dark);
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

.page-resources-lucky88-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-lucky88-faq__hero-section {
  display: flex;
  align-items: center;
  padding: 80px 0;
  text-align: left;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-lucky88-faq__hero-section .page-resources-lucky88-faq__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-resources-lucky88-faq__hero-content {
  flex: 1;
  min-width: 300px;
}

.page-resources-lucky88-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-resources-lucky88-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-lucky88-faq__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-resources-lucky88-faq__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-lucky88-faq__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-resources-lucky88-faq__btn-primary,
.page-resources-lucky88-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-lucky88-faq__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources-lucky88-faq__btn-primary:hover {
  background-color: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
}

.page-resources-lucky88-faq__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources-lucky88-faq__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources-lucky88-faq__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources-lucky88-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources-lucky88-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-dark);
}

.page-resources-lucky88-faq__faq-category {
  margin-bottom: 40px;
}

.page-resources-lucky88-faq__category-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.page-resources-lucky88-faq__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-resources-lucky88-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-resources-lucky88-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-lucky88-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.page-resources-lucky88-faq__faq-item.active .page-resources-lucky88-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-lucky88-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
  background-color: #fdfdfd;
}

.page-resources-lucky88-faq__faq-item.active .page-resources-lucky88-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
}

.page-resources-lucky88-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-resources-lucky88-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-resources-lucky88-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-lucky88-faq__call-to-action {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  margin-top: 50px;
}

.page-resources-lucky88-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources-lucky88-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-lucky88-faq__hero-title {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .page-resources-lucky88-faq {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content clears fixed header */
  }

  .page-resources-lucky88-faq__hero-section .page-resources-lucky88-faq__container {
    flex-direction: column;
    text-align: center;
  }

  .page-resources-lucky88-faq__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources-lucky88-faq__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources-lucky88-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-resources-lucky88-faq__btn-primary,
  .page-resources-lucky88-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-lucky88-faq__faq-section {
    padding: 50px 0;
  }

  .page-resources-lucky88-faq__section-title {
    font-size: 2em;
  }

  .page-resources-lucky88-faq__category-title {
    font-size: 1.6em;
  }

  .page-resources-lucky88-faq__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-lucky88-faq__faq-answer {
    padding: 15px;
  }

  .page-resources-lucky88-faq__call-to-action {
    padding: 40px 15px;
    margin-top: 30px;
  }

  .page-resources-lucky88-faq__cta-title {
    font-size: 1.8em;
  }

  .page-resources-lucky88-faq__cta-description {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-resources-lucky88-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-lucky88-faq__section,
  .page-resources-lucky88-faq__card,
  .page-resources-lucky88-faq__container,
  .page-resources-lucky88-faq__hero-image-wrapper,
  .page-resources-lucky88-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources-lucky88-faq__hero-section .page-resources-lucky88-faq__container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-resources-lucky88-faq__hero-content {
    padding: 0 15px;
  }

  .page-resources-lucky88-faq__faq-image {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 480px) {
  .page-resources-lucky88-faq__hero-title {
    font-size: 1.8em;
  }

  .page-resources-lucky88-faq__section-title {
    font-size: 1.8em;
  }

  .page-resources-lucky88-faq__category-title {
    font-size: 1.4em;
  }

  .page-resources-lucky88-faq__faq-question {
    font-size: 1em;
  }

  .page-resources-lucky88-faq__cta-title {
    font-size: 1.6em;
  }
}