/* style/lottery.css */
:root {
  --primary-color: #1A2B3C; /* Deep Blue/Dark Gray */
  --secondary-color: #FFD700; /* Gold/Bright Yellow */
  --text-dark: #333333;
  --text-light: #f0f0f0;
  --background-light: #ffffff;
  --background-dark: #1A2B3C;
  --border-color: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f5f7fa;
}

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

.page-lottery .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Hero Section */
.page-lottery .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a4a5b 100%);
  color: var(--text-light);
  overflow: hidden;
}

.page-lottery .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  z-index: 1;
}

.page-lottery .hero-content {
  flex: 1;
  text-align: left;
}

.page-lottery .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-lottery .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-lottery .hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-lottery .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-lottery .hero-image img:hover {
  transform: scale(1.02);
}

.page-lottery .cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery .cta-button:hover {
  background: #ffc400;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-lottery .intro-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-lottery .intro-section p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

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

.page-lottery .feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 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(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-lottery .feature-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .feature-item p {
  font-size: 1em;
  color: var(--text-dark);
  text-align: center;
}

/* Lottery Types Section */
.page-lottery .lottery-types-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

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

.page-lottery .lottery-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-lottery .lottery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery .lottery-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-lottery .lottery-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-lottery .lottery-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery .lottery-card .card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-lottery .lottery-card .card-button:hover {
  background: #2a3d4f;
}

/* How To Play Section */
.page-lottery .how-to-play-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-lottery .how-to-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page-lottery .how-to-steps li {
  background: #ffffff;
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-left: 90px;
}

.page-lottery .how-to-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-lottery .how-to-steps li h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-lottery .how-to-steps li p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-lottery .how-to-steps .step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-lottery .how-to-steps .step-button:hover {
  background: #2a3d4f;
}

/* Promotions Section */
.page-lottery .promotions-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-lottery .promotion-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery .promotion-list li {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery .promotion-list li:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-lottery .promotion-list h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .promotion-list p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery .promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-lottery .promo-button:hover {
  background: #ffc400;
  transform: translateY(-2px);
}

/* Tips Section */
.page-lottery .tips-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-lottery .tip-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery .tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery .tip-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .tip-card p {
  font-size: 1em;
  color: var(--text-dark);
}

/* FAQ Section */
.page-lottery .faq-section {
  padding: 60px 0;
  background-color: #f0f2f5;
}

.page-lottery .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-lottery .faq-question:hover {
  background: #f9f9f9;
}

.page-lottery .faq-question h3 {
  font-size: 1.15em;
  color: var(--primary-color);
  margin: 0;
  flex-grow: 1;
}

.page-lottery .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #fcfcfc;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px;
}

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

/* Call To Action Section */
.page-lottery .call-to-action-section {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--primary-color) 0%, #3a4a5b 100%);
  color: var(--text-light);
  text-align: center;
}

.page-lottery .call-to-action-section h2 {
  color: var(--secondary-color);
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-lottery .call-to-action-section p {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-lottery .call-to-action-section .large-cta {
  padding: 18px 45px;
  font-size: 1.3em;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery .call-to-action-section .large-cta:hover {
  background: #ffc400;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery .call-to-action-section .small-text {
  margin-top: 20px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-lottery .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }

  .page-lottery .hero-content h1 {
    font-size: 2.8em;
  }

  .page-lottery .hero-content p {
    font-size: 1.1em;
  }

  .page-lottery .hero-image {
    order: -1; /* Image appears above content on smaller screens */
    margin-bottom: 30px;
  }

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

  .page-lottery .how-to-steps li {
    padding: 25px;
    padding-left: 75px;
  }

  .page-lottery .how-to-steps li::before {
    left: 25px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-section {
    padding: 60px 15px;
  }

  .page-lottery .hero-content h1 {
    font-size: 2.2em;
  }

  .page-lottery .hero-content p {
    font-size: 1em;
  }

  .page-lottery .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-lottery .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-lottery .intro-features, .page-lottery .lottery-grid, .page-lottery .promotion-list, .page-lottery .tips-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery .feature-item, .page-lottery .lottery-card, .page-lottery .promotion-list li, .page-lottery .tip-card {
    padding: 25px;
  }

  .page-lottery .how-to-steps li {
    padding: 20px;
    padding-left: 65px;
  }

  .page-lottery .how-to-steps li::before {
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }

  .page-lottery .how-to-steps li h3 {
    font-size: 1.4em;
  }

  .page-lottery .faq-question {
    padding: 15px;
  }

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

  .page-lottery .faq-toggle {
    font-size: 1.5em;
  }

  .page-lottery .faq-answer {
    padding: 15px;
  }

  .page-lottery .call-to-action-section h2 {
    font-size: 2em;
  }

  .page-lottery .call-to-action-section p {
    font-size: 1em;
  }

  .page-lottery .call-to-action-section .large-cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}