/* style/luck8apk.css */

:root {
  --page-primary-color: #2563eb;
  --page-secondary-color: #64748b;
  --page-text-color-dark: #333333;
  --page-text-color-light: #ffffff;
  --page-background-light: #f8f8f8;
  --page-background-white: #ffffff;
  --page-border-color: #e0e0e0;
}

.page-luck8apk {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-dark);
  background-color: var(--page-background-light);
  padding-bottom: 80px; /* Space for floating button */
}

.page-luck8apk__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
  text-align: center;
}

.page-luck8apk__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust max-width as needed */
  margin-bottom: 20px;
}

.page-luck8apk__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-luck8apk__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-luck8apk__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--page-text-color-light);
}

.page-luck8apk__subtitle {
  font-size: clamp(1em, 2.5vw, 1.3em);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-luck8apk__section {
  padding: 60px 0;
  background-color: var(--page-background-white);
  margin-bottom: 20px;
}

.page-luck8apk__section:nth-of-type(even) {
  background-color: var(--page-background-light);
}

.page-luck8apk__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-luck8apk__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--page-primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-luck8apk__section-description {
  font-size: clamp(1em, 2.2vw, 1.1em);
  color: var(--page-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-luck8apk__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-luck8apk__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-luck8apk__btn-primary {
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
  border: 2px solid var(--page-primary-color);
}

.page-luck8apk__btn-primary:hover {
  background-color: #1e40af;
  border-color: #1e40af;
  transform: translateY(-2px);
}

.page-luck8apk__btn-secondary {
  background-color: var(--page-background-white);
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-luck8apk__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
  transform: translateY(-2px);
}

.page-luck8apk__text-link {
  color: var(--page-primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.page-luck8apk__text-link:hover {
  color: #1e40af;
}

/* Download Guide */
.page-luck8apk__download-guide .page-luck8apk__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.page-luck8apk__download-guide .page-luck8apk__step-item {
  background-color: var(--page-background-white);
  border: 1px solid var(--page-border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-luck8apk__download-guide .page-luck8apk__step-item:hover {
  transform: translateY(-5px);
}

.page-luck8apk__download-guide .page-luck8apk__step-title {
  font-size: 1.4em;
  color: var(--page-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-luck8apk__download-guide .page-luck8apk__step-item p {
  font-size: 1em;
  color: var(--page-text-color-dark);
}

/* Game Categories */
.page-luck8apk__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-luck8apk__game-card {
  background-color: var(--page-background-white);
  border: 1px solid var(--page-border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-luck8apk__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-luck8apk__game-title {
  font-size: 1.5em;
  color: var(--page-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-luck8apk__game-card p {
  font-size: 0.95em;
  color: var(--page-secondary-color);
}

/* Promotions */
.page-luck8apk__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-luck8apk__promo-item {
  background-color: var(--page-background-white);
  border: 1px solid var(--page-border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-luck8apk__promo-item:hover {
  transform: translateY(-5px);
}

.page-luck8apk__promo-title {
  font-size: 1.4em;
  color: var(--page-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-luck8apk__promo-item p {
  font-size: 1em;
  color: var(--page-text-color-dark);
}

/* App Features */
.page-luck8apk__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-luck8apk__feature-item {
  background-color: var(--page-background-white);
  border: 1px solid var(--page-border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-luck8apk__feature-item:hover {
  transform: translateY(-5px);
}

.page-luck8apk__feature-title {
  font-size: 1.4em;
  color: var(--page-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-luck8apk__feature-item p {
  font-size: 1em;
  color: var(--page-text-color-dark);
}

/* FAQ Section */
.page-luck8apk__faq-list {
  margin-top: 30px;
}

.page-luck8apk__faq-item {
  background-color: var(--page-background-white);
  border: 1px solid var(--page-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-luck8apk__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  background-color: var(--page-background-white);
  color: var(--page-primary-color);
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-luck8apk__faq-question:hover {
  background-color: var(--page-background-light);
}

.page-luck8apk__faq-qtext {
  pointer-events: none; /* Prevent text from blocking click event */
  margin-right: 15px;
}

.page-luck8apk__faq-question h3 {
  font-size: 1em; /* Keep h3 font size within question */
  margin: 0;
  color: inherit;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-luck8apk__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  pointer-events: none; /* Prevent toggle icon from blocking click event */
  transition: transform 0.3s ease;
}

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

.page-luck8apk__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding is 0 */
  opacity: 0;
  color: var(--page-text-color-dark);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
}

.page-luck8apk__faq-item.active .page-luck8apk__faq-answer {
  max-height: 2000px !important; /* Use !important to override */
  padding: 20px 25px !important; /* Final padding when open */
  opacity: 1;
}

.page-luck8apk__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 0.95em;
  color: var(--page-text-color-dark);
}

/* Floating Button */
.page-luck8apk__floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  word-wrap: normal;
}

.page-luck8apk__floating-button:hover {
  background-color: #1e40af;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-luck8apk__hero-section {
    padding-bottom: 40px;
  }

  .page-luck8apk__hero-content {
    padding: 0 15px;
  }

  .page-luck8apk__main-title {
    font-size: clamp(1.8em, 6vw, 3em);
  }

  .page-luck8apk__subtitle {
    font-size: clamp(0.9em, 2.8vw, 1.2em);
  }

  .page-luck8apk__section {
    padding: 40px 0;
  }

  .page-luck8apk__section-title {
    font-size: clamp(1.6em, 5vw, 2.5em);
  }

  .page-luck8apk__section-description {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-luck8apk {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 70px; /* Adjust for smaller floating button */
  }

  .page-luck8apk__hero-section {
    padding: 10px 15px 30px;
  }

  .page-luck8apk__main-title {
    font-size: clamp(1.6em, 8vw, 2.5em);
  }

  .page-luck8apk__subtitle {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

  .page-luck8apk__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-luck8apk__container,
  .page-luck8apk__download-guide .page-luck8apk__step-item,
  .page-luck8apk__game-card,
  .page-luck8apk__promo-item,
  .page-luck8apk__feature-item,
  .page-luck8apk__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-luck8apk__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }

  .page-luck8apk__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-luck8apk__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-luck8apk__game-categories,
  .page-luck8apk__promo-list,
  .page-luck8apk__feature-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-luck8apk__game-card,
  .page-luck8apk__promo-item,
  .page-luck8apk__feature-item,
  .page-luck8apk__download-guide .page-luck8apk__step-item {
    padding: 20px;
  }

  .page-luck8apk__game-title,
  .page-luck8apk__promo-title,
  .page-luck8apk__feature-title,
  .page-luck8apk__download-guide .page-luck8apk__step-title {
    font-size: 1.3em;
  }

  .page-luck8apk__floating-button {
    padding: 12px 20px;
    font-size: 0.9em;
    bottom: 15px;
    right: 15px;
    max-width: calc(100% - 30px) !important; /* Ensure it doesn't overflow */
    width: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-luck8apk__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-luck8apk__faq-answer {
    padding: 0 20px; /* Initial padding for mobile */
  }

  .page-luck8apk__faq-item.active .page-luck8apk__faq-answer {
    padding: 15px 20px !important; /* Final padding for mobile */
  }
}

@media (max-width: 480px) {
  .page-luck8apk__floating-button {
    font-size: 0.85em;
    padding: 10px 18px;
    bottom: 10px;
    right: 10px;
  }
}