/* style/lottery.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-color: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-lottery {
  color: var(--text-main);
  background-color: var(--bg-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}

.page-lottery__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
}

.page-lottery__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

.page-lottery__highlight {
  color: var(--glow-color);
  font-weight: bold;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-lottery__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-lottery__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--bg-color);
  transform: translateY(-2px);
}

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

.page-lottery__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-lottery__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 20px;
}

.page-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

/* Types Section */
.page-lottery__types-section {
  padding: 80px 0;
}

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

.page-lottery__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-lottery__card-description {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  font-size: 0.95em;
  flex-grow: 1;
}

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

.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__guide-item {
  background-color: var(--deep-green);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-lottery__guide-step-title {
  font-size: 1.6em;
  color: var(--glow-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery__guide-item p {
  color: var(--text-secondary);
  font-size: 1.05em;
}

/* Benefits Section */
.page-lottery__benefits-section {
  padding: 80px 0;
}

.page-lottery__grid--benefits {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-lottery__benefits-section .page-lottery__card-image {
  height: 180px;
}

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

.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__tip-item {
  background-color: var(--deep-green);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-lottery__tip-title {
  font-size: 1.6em;
  color: var(--glow-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery__tip-item p {
  color: var(--text-secondary);
  font-size: 1.05em;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
}

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

.page-lottery__faq-list {
  margin-top: 40px;
}

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

.page-lottery__faq-item[open] {
  background-color: var(--deep-green);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.page-lottery__faq-question::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-question::marker {
  display: none;
}

.page-lottery__faq-qtext {
  flex-grow: 1;
}

.page-lottery__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 20px;
  color: var(--glow-color);
}

.page-lottery__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--text-secondary);
}

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

/* Download App Section */
.page-lottery__download-app-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  text-align: center;
}

.page-lottery__download-app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-lottery__download-app-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__download-text {
  max-width: 700px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__guide-item, .page-lottery__tip-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__benefits-section,
  .page-lottery__tips-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__download-app-section {
    padding: 40px 0;
  }
  .page-lottery__container {
    padding: 0 15px;
  }

  /* Image Responsive */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__hero-image-wrapper,
  .page-lottery__download-app-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-lottery__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-lottery__hero-content {
    margin-top: 15px;
  }

  /* Button Responsive */
  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__cta-buttons,
  .page-lottery__button-group,
  .page-lottery__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px;
  }

  .page-lottery__card-image {
    height: 150px;
  }
  .page-lottery__card-title {
    font-size: 1.3em;
  }
  .page-lottery__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-lottery__faq-toggle {
    font-size: 1.5em;
  }
  .page-lottery__faq-answer {
    padding: 0 20px 15px;
  }
  .page-lottery__download-app-content {
    flex-direction: column;
  }
  .page-lottery__download-app-image {
    max-width: 100%;
  }
}