/* style/lottery.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: #0d0d0d;
  --border-color: #e0e0e0;
  --card-background: #ffffff;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Assuming body background is dark */
}

/* Desktop padding for fixed header */
.page-lottery__hero-section {
  padding-top: 180px;
}

.page-lottery__section {
  padding: 60px 20px;
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-lottery__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-lottery__sub-heading {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-lottery__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-lottery__list,
.page-lottery__criteria-list,
.page-lottery__tips-list,
.page-lottery__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-lottery__list-item,
.page-lottery__criteria-item,
.page-lottery__tips-item,
.page-lottery__promo-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__list-item .page-lottery__sub-heading,
.page-lottery__criteria-item .page-lottery__sub-heading,
.page-lottery__tips-item .page-lottery__sub-heading,
.page-lottery__promo-item .page-lottery__sub-heading {
  color: var(--secondary-color);
}

.page-lottery__list-item .page-lottery__paragraph,
.page-lottery__criteria-item .page-lottery__paragraph,
.page-lottery__tips-item .page-lottery__paragraph,
.page-lottery__promo-item .page-lottery__paragraph {
  color: var(--text-light);
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-lottery__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-lottery__btn-primary:hover {
  background: #002244;
  border-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--secondary-color);
}

.page-lottery__btn-secondary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__btn-text:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-lottery__hero-section {
  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%, #001a33 100%);
}

.page-lottery__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 30px;
}

.page-lottery__hero-content {
  z-index: 2;
}

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

.page-lottery__hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-top: 30px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Introduction Section */
.page-lottery__introduction .page-lottery__heading,
.page-lottery__introduction .page-lottery__paragraph {
  color: var(--text-dark);
}

.page-lottery__introduction .page-lottery__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Types of Lottery Section */
.page-lottery__types-of-lottery {
  background: var(--primary-color);
}

.page-lottery__types-of-lottery .page-lottery__heading {
  color: var(--text-light);
}

.page-lottery__types-of-lottery .page-lottery__paragraph {
  color: rgba(255, 255, 255, 0.9);
}

/* Why Choose Section */
.page-lottery__why-choose {
  background: var(--background-light);
}

.page-lottery__why-choose .page-lottery__heading,
.page-lottery__why-choose .page-lottery__paragraph {
  color: var(--text-dark);
}

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

.page-lottery__feature-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__feature-icon {
  width: 120px; /* Increased icon size */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__feature-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* How to Choose Section */
.page-lottery__how-to-choose {
  background: var(--primary-color);
}

.page-lottery__how-to-choose .page-lottery__heading {
  color: var(--text-light);
}

.page-lottery__how-to-choose .page-lottery__paragraph {
  color: rgba(255, 255, 255, 0.9);
}

.page-lottery__criteria-list .page-lottery__criteria-item .page-lottery__sub-heading {
  color: var(--secondary-color);
}

/* Featured Platforms Section */
.page-lottery__featured-platforms {
  background: var(--background-light);
}

.page-lottery__featured-platforms .page-lottery__heading,
.page-lottery__featured-platforms .page-lottery__paragraph {
  color: var(--text-dark);
}

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

.page-lottery__platform-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__platform-icon {
  width: 100px; /* Max width for game icons */
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__platform-link {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-lottery__platform-description {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-lottery__platform-description a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-lottery__platform-description a:hover {
  text-decoration: underline;
}

.page-lottery__btn-review {
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery__btn-review:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Betting Tips Section */
.page-lottery__betting-tips {
  background: var(--primary-color);
}

.page-lottery__betting-tips .page-lottery__heading,
.page-lottery__betting-tips .page-lottery__paragraph {
  color: var(--text-light);
}

.page-lottery__tips-list .page-lottery__tips-item .page-lottery__sub-heading {
  color: var(--secondary-color);
}

.page-lottery__betting-tips .page-lottery__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-lottery__promotions {
  background: var(--background-light);
}

.page-lottery__promotions .page-lottery__heading,
.page-lottery__promotions .page-lottery__paragraph {
  color: var(--text-dark);
}

.page-lottery__promotions .page-lottery__promo-list .page-lottery__promo-item {
  background: var(--card-background);
}

.page-lottery__promotions .page-lottery__promo-list .page-lottery__promo-item .page-lottery__sub-heading {
  color: var(--primary-color);
}

.page-lottery__promotions .page-lottery__promo-list .page-lottery__promo-item .page-lottery__paragraph {
  color: var(--text-dark);
}

.page-lottery__promotions .page-lottery__promo-list .page-lottery__promo-item .page-lottery__paragraph a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-lottery__promotions .page-lottery__promo-list .page-lottery__promo-item .page-lottery__paragraph a:hover {
  text-decoration: underline;
}

.page-lottery__promotions .page-lottery__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-lottery__faq-section {
  background: var(--primary-color);
}

.page-lottery__faq-section .page-lottery__heading {
  color: var(--text-light);
}

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

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

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #002244;
  border-radius: 0 0 5px 5px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366;
  border: 1px solid #004488;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: #004488;
  border-color: #0055aa;
}

.page-lottery__faq-question:active {
  background: #0055aa;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

.page-lottery__faq-answer p {
  color: rgba(255, 255, 255, 0.8);
}

/* Latest News Section */
.page-lottery__latest-news {
  background: var(--background-light);
}

.page-lottery__latest-news .page-lottery__heading,
.page-lottery__latest-news .page-lottery__paragraph {
  color: var(--text-dark);
}

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

.page-lottery__news-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-lottery__news-link {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-lottery__news-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__read-more {
  display: inline-block;
  margin: 0 20px 20px 20px;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-lottery__read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 42px;
  }

  .page-lottery__heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

  .page-lottery__hero-container {
    flex-direction: column;
    gap: 20px;
  }

  .page-lottery__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-lottery__hero-image-wrapper {
    margin-top: 20px;
  }

  .page-lottery__section {
    padding: 40px 15px;
  }

  .page-lottery__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-lottery__sub-heading {
    font-size: 20px;
  }

  .page-lottery__paragraph {
    font-size: 16px;
  }

  .page-lottery__list-item,
  .page-lottery__criteria-item,
  .page-lottery__tips-item,
  .page-lottery__promo-item {
    padding: 20px;
  }

  .page-lottery__features-grid,
  .page-lottery__platform-cards,
  .page-lottery__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__feature-icon {
    width: 100px;
  }

  .page-lottery__platform-icon {
    width: 80px;
  }

  .page-lottery__news-image {
    height: 180px;
  }

  /* Mobile image adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-lottery__section,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__hero-container,
  .page-lottery__hero-image-wrapper,
  .page-lottery__features-grid,
  .page-lottery__platform-cards,
  .page-lottery__news-grid,
  .page-lottery__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-lottery__faq-answer {
    padding: 0 15px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
}