/* style/lottery.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #002244;
  --border-color: #e0e0e0;
}

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

.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%, var(--bg-dark) 100%);
  color: var(--text-light);
}

.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 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-lottery .cta-button:hover {
  background: #e6b800; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.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.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-lottery .section-intro strong {
  color: var(--primary-color);
}

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

.page-lottery .game-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery .game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.page-lottery .game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery .game-card h3 a:hover {
  color: var(--secondary-color);
}

.page-lottery .game-card p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
  text-align: center;
}

.page-lottery .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery .btn-small:hover {
  background: #004488; /* Slightly darker primary */
  transform: translateY(-2px);
}

/* How To Play */
.page-lottery .step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-lottery .step-list li {
  background: var(--text-light);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-left: 90px;
}

.page-lottery .step-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-lottery .step-list li h3 {
  margin-top: 0;
  font-size: 1.5em;
}

.page-lottery .step-list li p {
  margin-bottom: 0;
}

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

/* Benefits Section */
.page-lottery .benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-lottery .benefit-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery .benefit-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

/* Tips Section */
.page-lottery .tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery .tip-list li {
  background: var(--text-light);
  margin-bottom: 20px;
  padding: 25px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  line-height: 1.7;
}

.page-lottery .tip-list li strong {
  color: var(--primary-color);
}

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

.page-lottery .faq-item {
  margin-bottom: 15px;
}

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

.page-lottery .faq-question:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-lottery .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery h1 {
    font-size: 2.8em;
  }
  .page-lottery .hero-content p {
    font-size: 1.2em;
  }
  .page-lottery .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
  .page-lottery h2 {
    font-size: 2.2em;
  }
  .page-lottery .game-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-section {
    padding: 40px 15px;
  }
  .page-lottery h1 {
    font-size: 2.2em;
  }
  .page-lottery .hero-content p {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-lottery section {
    padding: 60px 0;
  }
  .page-lottery h2 {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-lottery h3 {
    font-size: 1.5em;
  }
  .page-lottery p {
    font-size: 1em;
  }
  .page-lottery .game-cards {
    grid-template-columns: 1fr;
  }
  .page-lottery .game-card img {
    height: 200px;
  }
  .page-lottery .step-list li {
    padding: 25px;
    padding-left: 75px;
  }
  .page-lottery .step-list li::before {
    left: 25px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 1.5em;
  }
  .page-lottery .benefit-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery h1 {
    font-size: 1.8em;
  }
  .page-lottery .hero-content p {
    font-size: 0.95em;
  }
  .page-lottery .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-lottery h2 {
    font-size: 1.8em;
  }
  .page-lottery .game-card h3 {
    font-size: 1.4em;
  }
  .page-lottery .btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-lottery .step-list li {
    padding-left: 60px;
  }
  .page-lottery .step-list li::before {
    left: 15px;
    top: 20px;
    font-size: 1.3em;
  }
}