.page-lottery {
  --primary-color: #FF0000;
  --secondary-color: #000080;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --border-color: #e0e0e0;
  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;
}

.page-lottery section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery section:nth-child(even) {
  background-color: var(--bg-light);
}

.page-lottery .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-lottery .section-text {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-lottery .highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

.page-lottery .inline-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-lottery .inline-link:hover {
  text-decoration: underline;
}

.page-lottery .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery .cta-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery .cta-button-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery .cta-button-secondary:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 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: 100px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
}

.page-lottery .hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery .hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-lottery .hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  opacity: 0.9;
  color: var(--text-light);
}

/* Lottery Types Grid */
.page-lottery .lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-lottery .lottery-card {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 8px 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;
  align-items: center;
}

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

.page-lottery .card-image {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-lottery .card-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-lottery .card-link:hover {
  text-decoration: underline;
}

.page-lottery .card-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: left;
}

/* Feature List */
.page-lottery .feature-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-lottery .feature-item {
  background: var(--bg-white);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease;
}

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

.page-lottery .feature-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery .feature-description {
  font-size: 16px;
  color: var(--text-dark);
}

/* How-To-Play Steps */
.page-lottery .step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-lottery .step-item {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-lottery .step-icon {
  width: 150px; /* Ensure icons are large enough */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery .step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery .step-description {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

.page-lottery .step-button:hover {
  background: darken(var(--secondary-color), 10%);
}

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

.page-lottery .promo-card {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 8px 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;
  align-items: center;
}

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

.page-lottery .promo-image {
  width: 100%;
  max-width: 350px; /* Ensure images are large enough */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-lottery .promo-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery .promo-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: left;
}

.page-lottery .promo-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.page-lottery .promo-button:hover {
  background: darken(var(--primary-color), 10%);
}

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

.page-lottery .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--bg-white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: var(--secondary-color);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #fdfdfd;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

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

.faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
}

.page-lottery .inline-button {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-lottery .inline-button:hover {
  background: darken(var(--primary-color), 10%);
}

/* Blog Section */
.page-lottery .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.page-lottery .blog-card .card-image {
  width: 100%;
  height: 200px; /* Consistent height for blog images */
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

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

.page-lottery .blog-card .card-description {
  font-size: 15px;
  padding: 0 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-lottery .blog-date {
  font-size: 13px;
  color: #777;
  padding: 0 20px 20px;
  display: block;
  margin-top: auto; /* Push date to bottom */
}

.page-lottery .text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery .hero-title {
    font-size: 38px;
  }
  .page-lottery .hero-description {
    font-size: 18px;
  }
  .page-lottery .section-title {
    font-size: 30px;
  }
  .page-lottery .lottery-grid, .page-lottery .feature-list, .page-lottery .step-list, .page-lottery .promo-grid, .page-lottery .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery section {
    padding: 40px 0;
  }
  .page-lottery .hero-section {
    padding: 80px 15px;
  }
  .page-lottery .hero-title {
    font-size: 32px;
  }
  .page-lottery .hero-description {
    font-size: 16px;
  }
  .page-lottery .section-title {
    font-size: 26px;
  }
  .page-lottery .section-text {
    font-size: 16px;
  }
  .page-lottery .cta-button, .page-lottery .cta-button-secondary {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-lottery .lottery-card, .page-lottery .feature-item, .page-lottery .step-item, .page-lottery .promo-card, .page-lottery .blog-card {
    padding: 20px;
  }
  .page-lottery .card-title, .page-lottery .feature-title, .page-lottery .step-title, .page-lottery .promo-title {
    font-size: 20px;
  }
  .page-lottery .card-description, .page-lottery .feature-description, .page-lottery .step-description, .page-lottery .promo-description {
    font-size: 15px;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
  .page-lottery .blog-card .card-title {
    font-size: 18px;
    padding: 15px 15px 0;
  }
  .page-lottery .blog-card .card-description {
    font-size: 14px;
    padding: 0 15px;
  }
  .page-lottery .blog-date {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-title {
    font-size: 28px;
  }
  .page-lottery .hero-description {
    font-size: 15px;
  }
  .page-lottery .section-title {
    font-size: 22px;
  }
  .page-lottery .lottery-grid, .page-lottery .feature-list, .page-lottery .step-list, .page-lottery .promo-grid, .page-lottery .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .cta-button, .page-lottery .cta-button-secondary {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-lottery .step-icon {
    width: 100px;
    height: 100px;
  }
  .page-lottery .blog-card .card-image {
    height: 180px;
  }
}