:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #008000; /* Green */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d0d0d; /* Assuming a dark body background from shared.css */
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

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

/* Sections */
.page-lottery__section {
  padding: 60px 20px;
  text-align: center;
}

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

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

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

/* Hero Section */
.page-lottery__hero-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
  color: var(--text-light);
  padding-top: 10px; /* Specific for video/hero section to not be covered by fixed header */
}

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

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__cta-buttons--center {
  margin-top: 30px;
}

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

.page-lottery__btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark); /* Dark text on gold button for better contrast */
}

.page-lottery__btn-primary:hover {
  background: darken(var(--primary-color), 10%); /* This won't work in plain CSS, but as a concept */
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

/* General Section Titles */
.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-lottery__light-bg .page-lottery__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

.page-lottery__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Content Wrapper with Image */
.page-lottery__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-lottery__content-wrapper:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.page-lottery__text-block {
  flex: 1;
}

.page-lottery__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-lottery__light-bg .page-lottery__text-block p {
  color: var(--text-dark);
}

.page-lottery__dark-bg .page-lottery__text-block p {
  color: var(--text-light);
}

.page-lottery__image-block {
  flex: 1;
  min-width: 300px;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

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

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

/* Cards */
.page-lottery__card {
  background: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__dark-bg .page-lottery__card {
  background: var(--card-bg-dark);
  color: var(--text-light);
}

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

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

.page-lottery__card-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-lottery__dark-bg .page-lottery__card-title {
  color: var(--primary-color);
}

.page-lottery__card-text {
  font-size: 1em;
  margin-bottom: 25px;
}

.page-lottery__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--bg-dark); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Feature Items */
.page-lottery__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: var(--card-bg-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
}

.page-lottery__feature-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__feature-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Steps List */
.page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

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

.page-lottery__step-item strong {
  color: var(--primary-color);
}

/* Tips List */
.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-lottery__tips-item {
  background: var(--card-bg-light);
  color: var(--text-dark);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  border-left: 4px solid var(--secondary-color);
}

.page-lottery__tips-item strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 60px 20px;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a; /* Darker background for question */
  border: 1px solid #333;
  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: #2a2a2a;
  border-color: #555;
}

.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: 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-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: #2a2a2a; /* Slightly lighter than question for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
}

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

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

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

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

  .page-lottery__grid-3-cols, .page-lottery__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-lottery__content-wrapper {
    flex-direction: column;
  }
  
  .page-lottery__content-wrapper:nth-of-type(odd) {
    flex-direction: column;
  }
}

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

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

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

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Ensure buttons are within container */
  }

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__section {
    padding: 40px 15px;
  }

  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-lottery__content-wrapper {
    gap: 20px;
  }

  .page-lottery__image {
    border-radius: 6px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-lottery__grid-3-cols, .page-lottery__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-lottery__card-image {
    margin-bottom: 15px;
  }

  .page-lottery__card-title {
    font-size: 1.5em;
  }

  .page-lottery__card-text {
    font-size: 0.95em;
  }

  .page-lottery__feature-icon {
    width: 90px;
    height: 90px;
  }

  .page-lottery__feature-title {
    font-size: 1.4em;
  }

  .page-lottery__step-item, .page-lottery__tips-item {
    padding: 20px;
    font-size: 1em;
  }

  .page-lottery__faq-question {
    padding: 15px 20px;
    border-radius: 6px;
  }

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

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

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

  /* Ensure all image and container elements are responsive */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__container,
  .page-lottery__content-wrapper,
  .page-lottery__image-block,
  .page-lottery__grid-3-cols,
  .page-lottery__grid-2-cols,
  .page-lottery__card,
  .page-lottery__feature-item,
  .page-lottery__steps-list,
  .page-lottery__tips-list,
  .page-lottery__faq-list,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__card-button {
    max-width: 100% !important;
    width: 100% !important;
  }
}