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

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency with body background */
}

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

/* Fixed Header Padding */
.page-lottery__hero-section {
  padding-top: 120px; /* Desktop: Adjust to clear fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-title {
  font-size: 4em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-lottery__hero-subtitle {
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  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.2);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

.page-lottery__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn-large {
  padding: 18px 45px;
  font-size: 1.2em;
}

/* General Section Styles */
.page-lottery__intro-section,
.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__advantages-section,
.page-lottery__promotions-section,
.page-lottery__faq-section,
.page-lottery__cta-bottom-section {
  padding: 80px 0;
}

.page-lottery__dark-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery__dark-section .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

.page-lottery__dark-section .page-lottery__text-block {
  color: rgba(255, 255, 255, 0.9);
}

.page-lottery__image-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.page-lottery__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

.page-lottery__image-caption {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 800px;
}

/* Card Grid Styles */
.page-lottery__grid-cards,
.page-lottery__grid-advantages,
.page-lottery__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-lottery__card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  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;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-lottery__card-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery__btn-text:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Step List (Guide Section) */
.page-lottery__step-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-lottery__step-item {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--primary-color);
}

.page-lottery__step-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__step-description {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
}

/* Advantages Section */
.page-lottery__advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery__advantage-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.page-lottery__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-bg-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

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

.page-lottery__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: var(--text-light);
}

.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 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* CTA Bottom Section */
.page-lottery__cta-bottom-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Image and Video Responsive Styles (Global for .page-lottery scope) */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery video,
.page-lottery__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-lottery__video-section,
.page-lottery__video-container,
.page-lottery__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 3.5em;
  }
  .page-lottery__hero-subtitle {
    font-size: 1.3em;
  }
  .page-lottery__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px; /* Mobile: Adjust to clear fixed header */
    padding-bottom: 40px;
  }
  .page-lottery__hero-title {
    font-size: 2.5em;
  }
  .page-lottery__hero-subtitle {
    font-size: 1.1em;
  }
  .page-lottery__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery__btn-text,
  .page-lottery__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__advantages-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__cta-bottom-section {
    padding: 60px 0;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery__text-block {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-lottery__grid-cards,
  .page-lottery__grid-advantages,
  .page-lottery__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__card {
    padding: 25px;
  }
  .page-lottery__card-image {
    height: 180px;
  }
  .page-lottery__card-title {
    font-size: 1.5em;
  }
  .page-lottery__card-description {
    font-size: 0.9em;
  }
  .page-lottery__advantage-icon {
    width: 70px;
    height: 70px;
  }
  .page-lottery__advantage-title {
    font-size: 1.3em;
  }
  .page-lottery__faq-question {
    padding: 18px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }

  /* Force responsive for all images and videos */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 2em;
  }
  .page-lottery__hero-subtitle {
    font-size: 1em;
  }
  .page-lottery__section-title {
    font-size: 1.6em;
  }
  .page-lottery__text-block {
    font-size: 0.95em;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-lottery__card-title {
    font-size: 1.3em;
  }
  .page-lottery__card-description {
    font-size: 0.9em;
  }
  .page-lottery__advantage-title {
    font-size: 1.2em;
  }
  .page-lottery__advantage-description {
    font-size: 0.85em;
  }
  .page-lottery__faq-question h3 {
    font-size: 1em;
  }
  .page-lottery__faq-toggle {
    font-size: 1.5em;
    width: 20px;
    height: 20px;
  }
}