/* style/lottery.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header */
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-lottery__hero-section {
  padding: 80px 0 60px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.2)), url('[GALLERY:hero:f8bet8,xoso,background,golden_red]') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

.page-lottery__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  font-weight: bold;
}

.page-lottery__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-lottery__cta-button--primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__cta-button--secondary:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.page-lottery__section-subtitle {
  font-size: 1.1em;
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__introduction-section,
.page-lottery__benefits-section,
.page-lottery__brand-section,
.page-lottery__tips-section {
  padding: 60px 0;
}

.page-lottery__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: var(--text-light);
}

.page-lottery__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-lottery__content-text {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-lottery__content-text p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-lottery__content-image {
  flex: 1;
  text-align: center;
}

.page-lottery__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__game-types-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-lottery__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__game-card {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__card-description {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__card-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__card-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-1px);
}

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

.page-lottery__benefit-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-lottery__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__benefit-item img {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.page-lottery__benefit-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__benefit-item p {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-lottery__guide-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-lottery__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-lottery__step-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__step-item img {
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__step-item p {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__step-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-1px);
}

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

.page-lottery__tip-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  color: var(--text-light);
}

.page-lottery__tip-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__tip-item p {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-lottery__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-lottery__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  background: var(--card-background-dark);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid transparent; /* default */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-lottery__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

.page-lottery__faq-item.active .page-lottery__faq-question {
  border-bottom-color: var(--border-color-dark);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ccc;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-lottery__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 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-answer p {
  margin-bottom: 0;
}

.page-lottery__brand-section {
  padding: 60px 0;
}

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

.page-lottery__brand-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  color: var(--text-light);
}

.page-lottery__item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__brand-item p {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-lottery__blog-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-lottery__blog-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  padding-bottom: 20px;
}

.page-lottery__blog-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-dark);
  margin-bottom: 20px;
}

.page-lottery__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin: 0 20px 10px 20px;
  line-height: 1.4;
  font-weight: bold;
}

.page-lottery__blog-item-excerpt {
  font-size: 0.95em;
  color: #ccc;
  line-height: 1.6;
  margin: 0 20px 15px 20px;
}

.page-lottery__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  margin: 0 20px;
}

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

.page-lottery__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__view-all-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 2.8em;
  }

  .page-lottery__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important; /* Adjust for mobile fixed header */
    font-size: 15px;
  }

  .page-lottery__hero-section {
    padding: 60px 0 40px 0;
  }

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

  .page-lottery__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-lottery__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-lottery__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-lottery__introduction-section,
  .page-lottery__benefits-section,
  .page-lottery__brand-section,
  .page-lottery__tips-section,
  .page-lottery__game-types-section,
  .page-lottery__guide-section,
  .page-lottery__faq-section,
  .page-lottery__blog-section {
    padding: 40px 0;
  }

  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-lottery__game-cards,
  .page-lottery__benefits-grid,
  .page-lottery__guide-steps,
  .page-lottery__tips-list,
  .page-lottery__brand-content,
  .page-lottery__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__game-card,
  .page-lottery__benefit-item,
  .page-lottery__step-item,
  .page-lottery__tip-item,
  .page-lottery__brand-item,
  .page-lottery__blog-item {
    padding: 20px;
  }

  .page-lottery__game-card img,
  .page-lottery__content-image img,
  .page-lottery__benefit-item img,
  .page-lottery__step-item img,
  .page-lottery__blog-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-lottery__card-title,
  .page-lottery__benefit-title,
  .page-lottery__step-title,
  .page-lottery__tip-title,
  .page-lottery__item-title {
    font-size: 1.3em;
  }

  .page-lottery__card-description,
  .page-lottery__benefit-item p,
  .page-lottery__step-item p,
  .page-lottery__tip-item p,
  .page-lottery__brand-item p,
  .page-lottery__blog-item-excerpt {
    font-size: 0.9em;
  }

  .page-lottery__card-button,
  .page-lottery__step-button,
  .page-lottery__view-all-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px;
    font-size: 0.95em;
  }

  .page-lottery__faq-question {
    padding: 15px;
  }

  .page-lottery__faq-question h3 {
    font-size: 1em;
  }

  .page-lottery__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  .page-lottery__blog-item-title {
    font-size: 1.2em;
    margin: 0 15px 10px 15px;
  }

  .page-lottery__blog-item-excerpt,
  .page-lottery__blog-item-date {
    margin: 0 15px 15px 15px;
  }

  .page-lottery__view-all-button-wrapper {
    margin-top: 30px;
  }
}

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

  .page-lottery__section-title {
    font-size: 1.6em;
  }
}