/* style/lottery.css */
:root {
  --primary-color: #C0392B;
  --secondary-color: #F39C12;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #2c3e50;
  --border-color: #e0e0e0;
}

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

.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;
  padding-top: 20px;
  position: relative;
}

.page-lottery .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-lottery p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* 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(--secondary-color) 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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

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

.page-lottery .hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

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

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

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

.page-lottery .feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery .feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 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: 10px;
}

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

/* Section Game Types */
.page-lottery .section-game-types {
  padding: 60px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

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

.page-lottery .game-card {
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.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;
  object-fit: cover;
}

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

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

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

.page-lottery .game-card-description {
  padding: 0 20px 15px;
  font-size: 1em;
  flex-grow: 1;
}

.page-lottery .game-card ul {
  list-style: disc;
  margin-left: 40px;
  padding-bottom: 15px;
  font-size: 0.95em;
}

.page-lottery .game-card li {
  margin-bottom: 5px;
}

.page-lottery .btn-play {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-lottery .btn-play:hover {
  background: var(--secondary-color);
}

/* Section Guide */
.page-lottery .section-guide {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-lottery .section-guide .section-title {
  color: var(--secondary-color);
}

.page-lottery .section-guide p {
  color: #cccccc;
}

.page-lottery .guide-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery .guide-steps li {
  background: #3c4f63;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-lottery .guide-steps li:hover {
  transform: translateY(-5px);
  background-color: #4a5d70;
}

.page-lottery .guide-steps h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(243, 156, 18, 0.5);
  padding-bottom: 10px;
}

.page-lottery .guide-steps p {
  font-size: 1.05em;
  color: #e0e0e0;
}

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

.page-lottery .btn-guide:hover {
  background: var(--secondary-color);
}

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

.page-lottery .tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery .tips-list li {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-lottery .tips-list p {
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-lottery .tips-conclusion {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  font-size: 1.1em;
  color: #666;
}

/* Section Promotions */
.page-lottery .section-promotions {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-lottery .section-promotions .section-title {
  color: var(--secondary-color);
}

.page-lottery .section-promotions p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.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: #2c3e50;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-lottery .promo-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-lottery .promo-card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-lottery .promo-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery .promo-card-title a:hover {
  color: var(--text-light);
}

.page-lottery .promo-card-description {
  padding: 0 20px 15px;
  font-size: 1em;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-lottery .btn-promo {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-lottery .btn-promo:hover {
  background: #e68a00;
}

.page-lottery .promo-note {
  margin-top: 30px;
  font-style: italic;
  color: #f0f0f0;
}

/* Section FAQ */
.page-lottery .section-faq {
  padding: 60px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.page-lottery .faq-list {
  margin-top: 40px;
}

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

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

.page-lottery .faq-question:hover {
  background: var(--bg-light);
}

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

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

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

.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: #fcfcfc;
  color: var(--text-dark);
}

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

.page-lottery .faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-lottery .faq-answer .btn-faq {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  font-size: 0.9em;
}

.page-lottery .faq-answer .btn-faq:hover {
  background: var(--secondary-color);
}

/* Section Contact CTA */
.page-lottery .section-contact-cta {
  padding: 80px 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
}

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

.page-lottery .section-contact-cta .section-title::after {
  background-color: var(--text-light);
}

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

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

.page-lottery .cta-buttons .cta-button.primary {
  background: var(--text-light);
  color: var(--primary-color);
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-lottery .cta-buttons .cta-button.primary:hover {
  background: #e0e0e0;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery .cta-buttons .cta-button.secondary {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-lottery .cta-buttons .cta-button.secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-title {
    font-size: 3em;
  }

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

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

  .page-lottery .game-card-title {
    font-size: 1.6em;
  }

  .page-lottery .guide-steps h3 {
    font-size: 1.6em;
  }

  .page-lottery .tips-list h3 {
    font-size: 1.6em;
  }

  .page-lottery .promo-card-title {
    font-size: 1.4em;
  }

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

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

  .page-lottery .hero-title {
    font-size: 2.5em;
  }

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

  .page-lottery .cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }

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

  .page-lottery .section-intro, .page-lottery .section-game-types, .page-lottery .section-guide, .page-lottery .section-tips, .page-lottery .section-promotions, .page-lottery .section-faq, .page-lottery .section-contact-cta {
    padding: 40px 0;
  }

  .page-lottery .intro-features, .page-lottery .game-type-grid, .page-lottery .promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery .feature-item, .page-lottery .game-card, .page-lottery .guide-steps li, .page-lottery .tips-list li, .page-lottery .promo-card {
    padding: 20px;
  }

  .page-lottery .feature-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .page-lottery .faq-toggle {
    font-size: 20px;
  }

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

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

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

  .page-lottery .cta-buttons .cta-button.primary, .page-lottery .cta-buttons .cta-button.secondary {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1.1em;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-title {
    font-size: 2em;
  }

  .page-lottery .hero-description {
    font-size: 0.9em;
  }

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

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

  .page-lottery .feature-item h3, .page-lottery .game-card-title, .page-lottery .guide-steps h3, .page-lottery .tips-list h3, .page-lottery .promo-card-title {
    font-size: 1.4em;
  }

  .page-lottery p {
    font-size: 0.95em;
  }

  .page-lottery .game-card-img {
    height: 180px;
  }
}