/* style/how-to-play-lottery.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-how-to-play-lottery {
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-how-to-play-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-how-to-play-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-how-to-play-lottery__hero-content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-how-to-play-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-how-to-play-lottery__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* General Section Styles */
.page-how-to-play-lottery__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.page-how-to-play-lottery__content-area {
  background-color: transparent;
  color: #F2FFF6;
}

.page-how-to-play-lottery__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6;
}

.page-how-to-play-lottery__section p {
  margin-bottom: 20px;
  color: #A7D9B8;
}

/* Buttons */
.page-how-to-play-lottery__btn-primary,
.page-how-to-play-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-how-to-play-lottery__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

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

.page-how-to-play-lottery__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-how-to-play-lottery__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
}

/* Steps Section */
.page-how-to-play-lottery__steps-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

.page-how-to-play-lottery__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-how-to-play-lottery__step-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-how-to-play-lottery__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-how-to-play-lottery__step-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-how-to-play-lottery__step-card p {
  color: #A7D9B8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-how-to-play-lottery__step-card .page-how-to-play-lottery__btn-primary {
  width: auto;
  min-width: 180px;
}

/* List Styles */
.page-how-to-play-lottery__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-how-to-play-lottery__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #A7D9B8;
}

.page-how-to-play-lottery__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #2AD16F; /* A brighter green from button gradient */
  font-weight: bold;
}

/* Dark Section */
.page-how-to-play-lottery__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

/* Guide Grid */
.page-how-to-play-lottery__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-how-to-play-lottery__guide-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-how-to-play-lottery__guide-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-how-to-play-lottery__guide-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-how-to-play-lottery__guide-card p {
  color: #A7D9B8;
  flex-grow: 1;
}

.page-how-to-play-lottery__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 30px;
}

/* FAQ Section */
.page-how-to-play-lottery__faq-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

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

.page-how-to-play-lottery__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1E3A2A; /* Divider */
}

.page-how-to-play-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: #F2FFF6;
  list-style: none; /* Remove default marker */
}

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

.page-how-to-play-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E; /* Gold */
}

.page-how-to-play-lottery__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8;
  font-size: 1em;
}

/* CTA Section */
.page-how-to-play-lottery__cta-section {
  background-color: #08160F; /* Background */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

.page-how-to-play-lottery__cta-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-how-to-play-lottery__cta-content .page-how-to-play-lottery__section-title {
  color: #F2FFF6;
}

.page-how-to-play-lottery__cta-content p {
  color: #A7D9B8;
  font-size: 1.1em;
}

.page-how-to-play-lottery__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-how-to-play-lottery__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-how-to-play-lottery__section-title {
    font-size: 2em;
  }
  .page-how-to-play-lottery__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
}

@media (max-width: 768px) {
  .page-how-to-play-lottery__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-how-to-play-lottery__hero-content {
    padding: 20px 15px;
  }
  .page-how-to-play-lottery__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }
  .page-how-to-play-lottery__description {
    font-size: 1em;
  }
  .page-how-to-play-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-how-to-play-lottery__btn-primary,
  .page-how-to-play-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-how-to-play-lottery__section {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-how-to-play-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-how-to-play-lottery__steps-grid,
  .page-how-to-play-lottery__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-how-to-play-lottery__step-card,
  .page-how-to-play-lottery__guide-card {
    padding: 25px;
  }

  .page-how-to-play-lottery__list-item {
    padding-left: 25px;
    font-size: 0.95em;
  }

  .page-how-to-play-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-how-to-play-lottery__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
  }
  
  /* Mobile image responsiveness */
  .page-how-to-play-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-how-to-play-lottery__hero-image-wrapper,
  .page-how-to-play-lottery__step-card,
  .page-how-to-play-lottery__guide-card,
  .page-how-to-play-lottery__cta-image-wrapper,
  .page-how-to-play-lottery__section,
  .page-how-to-play-lottery__content-area,
  .page-how-to-play-lottery__steps-section,
  .page-how-to-play-lottery__dark-section,
  .page-how-to-play-lottery__faq-section,
  .page-how-to-play-lottery__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by section/content-area/cta-buttons etc. */
  }
  
  .page-how-to-play-lottery__cta-section {
    padding: 50px 15px;
  }
  .page-how-to-play-lottery__cta-content {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-how-to-play-lottery__main-title {
    font-size: clamp(1.4em, 7vw, 1.8em);
  }
  .page-how-to-play-lottery__section-title {
    font-size: 1.5em;
  }
  .page-how-to-play-lottery__hero-content {
    padding: 15px;
  }
}