/* style/lottery.css */

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

/* Base styles for the page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--page-lottery-text-main); /* Light text for dark body background */
  background-color: var(--page-lottery-background);
}

.page-lottery h1, .page-lottery h2, .page-lottery h3, .page-lottery h4, .page-lottery h5, .page-lottery h6 {
  color: var(--page-lottery-text-main);
  font-weight: 700;
  line-height: 1.2;
}

.page-lottery a {
  color: var(--page-lottery-secondary-color);
  text-decoration: none;
}

.page-lottery a:hover {
  text-decoration: underline;
}

/* Sections */
.page-lottery__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-lottery__dark-bg {
  background-color: var(--page-lottery-background);
  color: var(--page-lottery-text-main);
}

.page-lottery__light-bg {
  background-color: #f0f0f0; /* A light background for contrast sections */
  color: #333333; /* Dark text for light background */
}

.page-lottery__text-contrast-fix {
  color: #333333 !important; /* Ensure dark text on light background */
}

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

.page-lottery__section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 30px;
  text-align: center;
}

.page-lottery__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Hero Section */
.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

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

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-lottery__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-lottery__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-lottery-text-secondary);
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-lottery__btn-primary {
  background: var(--page-lottery-button-gradient);
  color: #ffffff;
  border: none;
}

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

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

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

.page-lottery__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-lottery__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Game Types Grid */
.page-lottery__game-grid,
.page-lottery__promo-grid,
.page-lottery__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__card {
  background-color: var(--page-lottery-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  color: var(--page-lottery-text-main);
  border: 1px solid var(--page-lottery-border);
}

.page-lottery__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__card-title {
  font-size: 24px;
  margin-bottom: 15px;
  padding: 0 15px;
  color: var(--page-lottery-text-main);
}

.page-lottery__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-lottery-text-secondary);
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__card .page-lottery__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

/* How To Play Steps */
.page-lottery__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__list-item {
  background-color: var(--page-lottery-card-bg);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-lottery-border);
}

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

.page-lottery__step-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-lottery-text-secondary);
}

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

/* Tips & Strategies */
.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-lottery__tip-title {
  font-size: 20px;
  color: var(--page-lottery-secondary-color);
  margin-bottom: 10px;
}

.page-lottery__tip-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-lottery-text-secondary);
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  background-color: var(--page-lottery-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--page-lottery-border);
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-lottery-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  list-style: none; /* For <summary> */
}

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

.page-lottery__faq-question:hover {
  background-color: var(--page-lottery-deep-green);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-lottery-secondary-color);
}

.page-lottery__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-lottery-text-secondary);
}

/* Ensure images are not filtered */
.page-lottery img {
  filter: none; /* No CSS filter to change image colors */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-lottery__section {
    padding: 40px 0;
  }

  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-lottery__main-title {
    font-size: 30px;
  }

  .page-lottery__hero-description {
    font-size: 16px;
  }

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__game-grid,
  .page-lottery__promo-grid,
  .page-lottery__feature-grid,
  .page-lottery__tips-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-lottery__card-title {
    font-size: 20px;
  }

  .page-lottery__card-description {
    font-size: 15px;
  }

  .page-lottery__list-item {
    padding: 20px;
  }

  .page-lottery__step-title {
    font-size: 20px;
  }

  .page-lottery__tip-title {
    font-size: 18px;
  }

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

  .page-lottery__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__hero-section,
  .page-lottery__introduction,
  .page-lottery__game-types,
  .page-lottery__how-to-play,
  .page-lottery__promotions,
  .page-lottery__tips-strategies,
  .page-lottery__security-support,
  .page-lottery__faq-section,
  .page-lottery__conclusion,
  .page-lottery__container,
  .page-lottery__game-grid,
  .page-lottery__promo-grid,
  .page-lottery__feature-grid,
  .page-lottery__tips-list,
  .page-lottery__faq-list,
  .page-lottery__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are already handled by .page-lottery__container */
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-lottery__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
}

/* Ensure all content area images are at least 200px wide */
.page-lottery img:not(.page-lottery__hero-image) {
  min-width: 200px;
  min-height: 200px;
}