.page-lottery {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0A2463;
  --border-color: #e0e0e0;
  color: var(--text-color-light); /* Default text color for the page content, assuming a dark body background */
  padding-top: 120px; /* Spacing for fixed header */
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px; /* Spacing for fixed header on mobile */
  }
}

/* General container and section styling */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .page-lottery__container {
    padding: 20px 15px;
  }
}

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

.page-lottery__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

/* Dark background sections */
.page-lottery__dark-section {
  background: var(--bg-dark);
  color: var(--text-color-light);
}

.page-lottery__dark-section .page-lottery__section-title,
.page-lottery__dark-section .page-lottery__section-description,
.page-lottery__dark-section .page-lottery__highlight-text {
  color: var(--text-color-light);
}

/* Light background sections */
.page-lottery__light-bg {
  background: var(--bg-light);
  color: var(--text-color-dark);
}

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__section-description,
.page-lottery__light-bg .page-lottery__highlight-text {
  color: var(--text-color-dark);
}

/* CTA Button Styling */
.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-lottery__cta-button:hover {
  background: #e0bb00; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.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%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-lottery__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 60px 15px;
  }
  .page-lottery__hero-image {
    margin-bottom: 30px;
    border-radius: 8px;
  }
  .page-lottery__hero-title {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Intro Section */
.page-lottery__intro-section {
    padding: 60px 0;
}

.page-lottery__intro-section .page-lottery__section-title {
    color: var(--primary-color);
}

.page-lottery__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-lottery__content-image {
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-lottery__content-image--left {
    order: -1;
}

.page-lottery__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color-dark);
}

.page-lottery__text-block p {
    margin-bottom: 15px;
}

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

.page-lottery__text-block .page-lottery__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .page-lottery__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-lottery__content-image {
        width: 80%;
        margin-bottom: 20px;
    }
    .page-lottery__content-image--left {
        order: 0;
    }
}

@media (max-width: 768px) {
    .page-lottery__content-image {
        width: 100%;
    }
    .page-lottery__text-block {
        font-size: 15px;
    }
}

/* Game Types Section */
.page-lottery__game-types-section {
    padding: 60px 0;
    background: var(--bg-dark);
}

.page-lottery__game-types-section .page-lottery__section-title,
.page-lottery__game-types-section .page-lottery__section-description {
    color: var(--text-color-light);
}

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

.page-lottery__game-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 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;
    color: var(--text-color-dark);
}

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

.page-lottery__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

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

.page-lottery__game-card-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-lottery__game-card .page-lottery__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .page-lottery__game-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery__game-card-image {
        height: 180px;
    }
    .page-lottery__game-card-title {
        font-size: 20px;
    }
    .page-lottery__game-card-description {
        font-size: 15px;
    }
}

/* Promotions Section */
.page-lottery__promotions-section {
    padding: 60px 0;
}

.page-lottery__promotions-section .page-lottery__section-title {
    color: var(--primary-color);
}

.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(--primary-color);
    color: var(--text-color-light);
    border-radius: 12px;
    box-shadow: 0 6px 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__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-lottery__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

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

.page-lottery__promo-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-lottery__promo-description .page-lottery__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-lottery__promo-description .page-lottery__link:hover {
    color: #e0bb00;
    text-decoration: underline;
}

.page-lottery__promo-card .page-lottery__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    background: var(--secondary-color);
    color: var(--primary-color);
}

.page-lottery__promo-card .page-lottery__cta-button:hover {
    background: #e0bb00;
}

.page-lottery__promotion-reminder {
    font-size: 16px;
    text-align: center;
    margin-top: 40px;
    color: var(--text-color-dark);
}

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

.page-lottery__promotion-reminder .page-lottery__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-lottery__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery__promo-image {
        height: 180px;
    }
    .page-lottery__promo-title {
        font-size: 20px;
    }
    .page-lottery__promo-description {
        font-size: 15px;
    }
}

/* News & Tips Section */
.page-lottery__news-tips-section {
    padding: 60px 0;
}

.page-lottery__news-tips-section .page-lottery__section-title {
    color: var(--primary-color);
}

.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-color-dark);
}

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

.page-lottery__blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.page-lottery__blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.page-lottery__blog-title .page-lottery__blog-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-lottery__blog-excerpt {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__blog-excerpt .page-lottery__highlight-text {
    color: var(--primary-color);
}

.page-lottery__read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

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

.page-lottery__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .page-lottery__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery__blog-image {
        height: 180px;
    }
    .page-lottery__blog-title {
        font-size: 18px;
    }
    .page-lottery__blog-excerpt {
        font-size: 15px;
    }
}

/* FAQ Section */
.page-lottery__faq-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.page-lottery__faq-section .page-lottery__section-title {
    color: var(--primary-color);
}

.page-lottery__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
}

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

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

.page-lottery__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

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

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

.page-lottery__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-dark);
}

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

.page-lottery__faq-answer .page-lottery__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
}