/* style/lottery.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-text: #333333;
  --light-text: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #2c3e50;
  --border-color: #e0e0e0;
}

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

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

/* 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: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Adjusted for better contrast */
  color: var(--light-text);
}

.page-lottery .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-lottery .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-lottery .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-lottery .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-lottery .hero-content p {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery .cta-button:hover {
  background: #e6b000; /* Slightly darker secondary color */
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-lottery section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-lottery section:nth-of-type(even) {
  background-color: #ffffff;
}

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

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

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

.page-lottery p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.page-lottery .text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Intro Section */
.page-lottery .intro-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

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

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

.page-lottery .card img {
  width: 100%;
  max-width: 300px; /* Ensure images are large enough */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

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

.page-lottery .card p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

.page-lottery .card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Lottery Types Section */
.page-lottery .lottery-types-section {
  background-color: var(--background-dark);
  color: var(--light-text);
}

.page-lottery .lottery-types-section h2, .page-lottery .lottery-types-section h3 {
  color: var(--light-text);
}

.page-lottery .lottery-types-section h2::after {
  background-color: var(--secondary-color);
}

.page-lottery .lottery-types-section p {
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-lottery .lottery-type-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
  background: #3a506b; /* Slightly lighter dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-lottery .lottery-type-item:last-child {
  margin-bottom: 0;
}

.page-lottery .lottery-type-item img {
  width: 50%;
  min-width: 300px; /* Ensure images are large enough */
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.page-lottery .lottery-type-item .content {
  flex-grow: 1;
}

.page-lottery .lottery-type-item h3 {
  color: var(--secondary-color);
  font-size: 2em;
  margin-top: 0;
}

.page-lottery .lottery-type-item p, .page-lottery .lottery-type-item ul {
  color: #e0e0e0;
}

.page-lottery .lottery-type-item ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-lottery .lottery-type-item ul li {
  margin-bottom: 8px;
}

.page-lottery .lottery-type-item.reverse {
  flex-direction: row-reverse;
}

.page-lottery .button-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border: none;
}

.page-lottery .button-small:hover {
  background: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* How to Play Section */
.page-lottery .how-to-play-section ol {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery .how-to-play-section ol li {
  background: #ffffff;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 30px;
  padding: 25px 30px 25px 70px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.page-lottery .how-to-play-section ol li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
  color: var(--light-text);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery .how-to-play-section ol li h3 {
  color: var(--dark-text);
  margin-top: 0;
}

.page-lottery .how-to-play-section .cta-button {
  margin-top: 50px;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-lottery .promotions-section {
  background-color: var(--background-light);
}

.page-lottery .promotions-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-lottery .promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery .promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-lottery .promo-card img {
  width: 100%;
  max-width: 300px; /* Ensure images are large enough */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.page-lottery .promo-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-lottery .promo-card p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

/* Security & Customer Service Section */
.page-lottery .security-customer-service-section {
  background-color: #f0f8ff; /* Light blue tint */
}

.page-lottery .security-customer-service-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-lottery .feature-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery .feature-item img {
  width: 100%;
  max-width: 250px; /* Ensure images are large enough */
  height: 180px;
  object-fit: contain; /* Use contain for icons/features */
  margin-bottom: 25px;
}

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

.page-lottery .feature-item p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

/* FAQ Section */
.page-lottery .faq-section {
  background-color: #ffffff;
}

.page-lottery .faq-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-lottery .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-lottery .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--dark-text);
}

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

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

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #ffffff;
  color: #555555;
}

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

.page-lottery .faq-answer p {
  margin-bottom: 0;
}

/* CTA Bottom Section */
.page-lottery .cta-bottom-section {
  background: linear-gradient(90deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--light-text);
  text-align: center;
  padding: 80px 20px;
}

.page-lottery .cta-bottom-section h2 {
  color: var(--light-text);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-lottery .cta-bottom-section h2::after {
  background-color: var(--secondary-color);
}

.page-lottery .cta-bottom-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f8ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-content h1 {
    font-size: 2.8em;
  }
  .page-lottery h2 {
    font-size: 2em;
  }
  .page-lottery .lottery-type-item img {
    width: 40%;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-section {
    padding: 40px 15px;
  }
  .page-lottery .hero-content h1 {
    font-size: 2.2em;
  }
  .page-lottery .hero-content p {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-lottery section {
    padding: 60px 0;
  }
  .page-lottery h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery h3 {
    font-size: 1.4em;
  }
  .page-lottery .grid-cards, .page-lottery .promo-grid, .page-lottery .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-lottery .card img, .page-lottery .promo-card img, .page-lottery .feature-item img {
    max-width: 80%;
    height: auto;
  }
  .page-lottery .lottery-type-item, .page-lottery .lottery-type-item.reverse {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  .page-lottery .lottery-type-item img {
    width: 100%;
    margin-bottom: 25px;
    min-width: unset;
  }
  .page-lottery .lottery-type-item .content {
    width: 100%;
  }
  .page-lottery .how-to-play-section ol li {
    padding: 20px 20px 20px 60px;
  }
  .page-lottery .how-to-play-section ol li::before {
    width: 40px;
    height: 40px;
    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: 1.5em;
  }
  .page-lottery .faq-answer {
    padding: 0 20px;
  }
  .page-lottery .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-content h1 {
    font-size: 1.8em;
  }
  .page-lottery h2 {
    font-size: 1.5em;
  }
  .page-lottery .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-lottery .lottery-type-item {
    padding: 20px;
  }
  .page-lottery .lottery-type-item h3 {
    font-size: 1.6em;
  }
  .page-lottery .button-small {
    padding: 8px 20px;
    font-size: 0.85em;
  }
}