.page-lottery {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a;
  --background-light: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default for body dark background */
}

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

.page-lottery__hero-section {
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 80px;
  text-align: center;
  background: var(--secondary-color);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.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 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
}

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

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

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

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

.page-lottery__center-cta {
  text-align: center;
  margin-top: 40px;
}

.page-lottery__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.page-lottery__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

/* Background color specific styles */
.page-lottery__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

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

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

.page-lottery__types-section {
  padding: 80px 0;
}

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

.page-lottery__card {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  padding: 20px 15px 10px;
  margin: 0;
}

.page-lottery__card-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-lottery__card-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.page-lottery__card-text {
  padding: 0 15px 20px;
  font-size: 0.95em;
  flex-grow: 1;
  color: #555;
}

.page-lottery__card-button {
  margin: 0 15px 20px;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  align-self: center;
  width: calc(100% - 30px);
}

.page-lottery__guide-section {
  padding: 80px 0;
}

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

.page-lottery__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

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

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

.page-lottery__benefits-section {
  padding: 80px 0;
}

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

.page-lottery__feature-item {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-lottery__feature-text {
  font-size: 0.95em;
  color: #555;
}

.page-lottery__tips-section {
  padding: 80px 0;
}

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

.page-lottery__tip-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-lottery__tip-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__tip-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

.page-lottery__faq-section {
  padding: 80px 0;
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
  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: #f0f0f0;
  border-color: #d0d0d0;
}

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

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 30px;
  height: 30px;
}

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

.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: #fcfcfc;
  color: #555;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 1em;
  color: var(--text-dark);
}

.page-lottery__news-section {
  padding: 80px 0;
}

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

.page-lottery__blog-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__blog-link {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: inherit;
}

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

.page-lottery__blog-item-title:hover {
  text-decoration: underline;
}

.page-lottery__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.page-lottery__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.page-lottery__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-lottery__final-cta-section .page-lottery__section-title {
  color: var(--secondary-color);
}

.page-lottery__final-cta-section .page-lottery__section-description {
  color: var(--text-dark);
}

/* General image responsive styles */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 2.8em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__hero-description, .page-lottery__section-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page-lottery__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-lottery__hero-description {
    font-size: 1em;
  }

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

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

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

  .page-lottery__section-description {
    font-size: 0.95em;
  }

  .page-lottery__types-section, .page-lottery__guide-section, .page-lottery__benefits-section, .page-lottery__tips-section, .page-lottery__faq-section, .page-lottery__news-section, .page-lottery__final-cta-section {
    padding: 60px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-lottery__card-grid, .page-lottery__guide-steps, .page-lottery__feature-list, .page-lottery__tip-list, .page-lottery__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card, .page-lottery__step-item, .page-lottery__feature-item, .page-lottery__tip-item, .page-lottery__blog-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

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

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

  .page-lottery__blog-item-title {
    font-size: 1.2em;
  }

  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-lottery__step-icon, .page-lottery__feature-icon {
    width: 70px;
    height: 70px;
  }
}

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

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

  .page-lottery__hero-description, .page-lottery__section-description {
    font-size: 0.9em;
  }

  .page-lottery__cta-button {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}