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

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

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

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__sub-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-lottery__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-lottery__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:xoso,u888vip,background,vietnam]') no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
  color: var(--text-color-dark-bg);
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-lottery__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-lottery__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

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

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

.page-lottery__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__cta-button--secondary:hover {
  background: #6b0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-lottery__intro-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-lottery__image-text-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__image-text-grid .page-lottery__image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery__image-text-grid .page-lottery__text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-lottery__image-text-grid .page-lottery__paragraph {
  text-align: left;
}

.page-lottery__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 20px;
}

/* Game Types Section */
.page-lottery__game-types-section {
  background-color: var(--background-light);
  padding: 80px 0;
  color: var(--text-color-light-bg);
}

.page-lottery__game-types-section .page-lottery__section-title,
.page-lottery__game-types-section .page-lottery__paragraph {
  color: var(--text-color-light-bg);
}

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

.page-lottery__card {
  background: var(--card-bg-light);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light-bg);
  border: 1px solid #e0e0e0;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-lottery__card-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: var(--text-color-light-bg);
}

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

.page-lottery__card-button:hover {
  background: #e6c200;
}

/* Benefits Section */
.page-lottery__benefits-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-lottery__feature-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__feature-text {
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

/* Guide Section */
.page-lottery__guide-section {
  background-color: var(--background-light);
  padding: 80px 0;
  color: var(--text-color-light-bg);
}

.page-lottery__guide-section .page-lottery__section-title,
.page-lottery__guide-section .page-lottery__paragraph {
  color: var(--text-color-light-bg);
}

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

.page-lottery__step-item {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  color: var(--text-color-light-bg);
}

.page-lottery__step-number {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.page-lottery__step-text {
  font-size: 16px;
  margin-bottom: 25px;
}

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

.page-lottery__step-button:hover {
  background: #e6c200;
}

/* Promotion Section */
.page-lottery__promo-section {
  background-color: var(--background-dark);
  padding: 80px 0;
}

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

.page-lottery__promo-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-lottery__promo-text {
  font-size: 16px;
  margin-bottom: 25px;
}

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

.page-lottery__promo-button:hover {
  background: #6b0000;
}

/* Tips Section */
.page-lottery__tips-section {
  background-color: var(--background-light);
  padding: 80px 0;
  color: var(--text-color-light-bg);
}

.page-lottery__tips-section .page-lottery__section-title,
.page-lottery__tips-section .page-lottery__paragraph {
  color: var(--text-color-light-bg);
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  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.15);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.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;
  padding: 0 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark-bg);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-answer p {
  text-align: left;
  font-size: 16px;
}

.page-lottery__faq-button {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 15px;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__faq-button:hover {
  background: #e6c200;
}

/* Contact CTA Section */
.page-lottery__contact-cta-section {
  background-color: var(--background-dark);
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 42px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 18px;
  }
  .page-lottery__image-text-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-lottery__image-text-grid .page-lottery__text-content {
    text-align: center;
  }
  .page-lottery__image-text-grid .page-lottery__paragraph {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-lottery__hero-section {
    padding: 80px 15px;
  }
  .page-lottery__main-title {
    font-size: 32px;
  }
  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-lottery__sub-title {
    font-size: 24px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  /* Image and Card Responsive */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__image-text-grid .page-lottery__image,
  .page-lottery__card-image,
  .page-lottery__promo-image {
    height: auto !important; /* Ensure height adjusts */
  }
  .page-lottery__card,
  .page-lottery__feature-item,
  .page-lottery__step-item,
  .page-lottery__promo-card {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-lottery__card-title,
  .page-lottery__feature-title,
  .page-lottery__step-title,
  .page-lottery__promo-title {
    font-size: 18px;
  }
  .page-lottery__card-text,
  .page-lottery__feature-text,
  .page-lottery__step-text,
  .page-lottery__promo-text {
    font-size: 15px;
  }
  .page-lottery__card-button,
  .page-lottery__step-button,
  .page-lottery__promo-button {
    padding: 8px 20px !important;
    font-size: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* FAQ Responsive */
  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__faq-answer p {
    font-size: 15px;
  }
  .page-lottery__faq-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__hero-description {
    font-size: 15px;
  }
  .page-lottery__cta-button {
    font-size: 15px !important;
    padding: 10px 20px !important;
  }
  .page-lottery__list {
    margin-left: 10px;
  }
  .page-lottery__paragraph {
    font-size: 15px;
  }
}

/* Contrast Fixes - Ensure text is readable on brand colors */
.page-lottery__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-lottery__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-light-bg);
}

.page-lottery__cta-button--primary {
  color: var(--background-dark); /* Ensure dark text on bright gold */
}

.page-lottery__cta-button--secondary {
  color: var(--text-color-dark-bg); /* Ensure light text on dark red */
}

.page-lottery__card-title {
  color: var(--secondary-color); /* Dark red title on light card */
}

.page-lottery__feature-title {
  color: var(--primary-color); /* Bright gold title on dark card */
}

.page-lottery__step-title {
  color: var(--secondary-color); /* Dark red title on light card */
}

.page-lottery__promo-title {
  color: var(--primary-color); /* Bright gold title on dark card */
}

.page-lottery__faq-question h3,
.page-lottery__faq-toggle {
  color: var(--primary-color); /* Bright gold on dark FAQ question background */
}
.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--secondary-color); /* Dark red when active */
}

.page-lottery__faq-button {
  color: var(--background-dark); /* Dark text on bright gold button */
}