/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000000; /* Body background from shared.css */
  --bg-light: #f8f8f8;
  --border-color: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  padding-top: 180px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 140px; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
}

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

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

.page-lottery__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-lottery__subsection-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-light);
  text-align: center;
}

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

/* Background colors */
.page-lottery__dark-bg {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

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

/* 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;
  overflow: hidden;
}

.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;
  z-index: 1;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.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;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.page-lottery__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--primary-color), #FFA500);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: none;
}

.page-lottery__cta-button:hover {
  background: linear-gradient(135deg, #FFA500, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 40px 15px;
  }
  .page-lottery__hero-title {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
  .page-lottery__hero-image {
    margin-bottom: 20px;
  }
}

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

.page-lottery__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-lottery__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-lottery__image-block {
  text-align: center;
}

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

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

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

.page-lottery__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  border: none;
}

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

/* Responsive Intro Section */
@media (max-width: 768px) {
  .page-lottery__intro-section {
    padding: 40px 0;
  }
  .page-lottery__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__text-block p {
    font-size: 15px;
  }
}

/* Game Types Section */
.page-lottery__game-types-section {
  padding: 60px 0;
}

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

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

.page-lottery__game-card:hover {
  transform: translateY(-5px);
}

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

.page-lottery__game-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

.page-lottery__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.page-lottery__benefits-list li {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text-light);
}

.page-lottery__list-icon {
  color: var(--primary-color);
  font-size: 24px;
  margin-right: 10px;
  line-height: 1;
}

.page-lottery__list-text {
  color: var(--text-light);
}

/* Responsive Game Types Section */
@media (max-width: 768px) {
  .page-lottery__game-types-section {
    padding: 40px 0;
  }
  .page-lottery__game-card {
    padding: 20px;
  }
  .page-lottery__game-card-image {
    height: 150px;
  }
  .page-lottery__game-card-title {
    font-size: 20px;
  }
  .page-lottery__game-card-description {
    font-size: 14px;
  }
  .page-lottery__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-lottery__list-text {
    font-size: 15px;
  }
}

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

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

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

.page-lottery__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-lottery__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

/* Responsive Promotions Section */
@media (max-width: 768px) {
  .page-lottery__promotions-section {
    padding: 40px 0;
  }
  .page-lottery__promo-card {
    padding: 20px;
  }
  .page-lottery__promo-card-image {
    height: 150px;
  }
  .page-lottery__promo-card-title {
    font-size: 20px;
  }
  .page-lottery__promo-card-description {
    font-size: 14px;
  }
}

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

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

.page-lottery__news-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-lottery__news-card:hover {
  transform: translateY(-5px);
}

.page-lottery__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-lottery__news-card-content {
  padding: 25px;
  text-align: left;
}

.page-lottery__news-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-lottery__news-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.page-lottery__news-card-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery__news-card-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.page-lottery__news-card-excerpt {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

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

.page-lottery__btn-text-link:hover {
  color: #FFA500;
  text-decoration: underline;
}

/* Responsive News Section */
@media (max-width: 768px) {
  .page-lottery__news-section {
    padding: 40px 0;
  }
  .page-lottery__news-card-image {
    height: 180px;
  }
  .page-lottery__news-card-content {
    padding: 20px;
  }
  .page-lottery__news-card-title {
    font-size: 18px;
  }
  .page-lottery__news-card-excerpt {
    font-size: 14px;
  }
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 60px 0;
}

.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, opacity 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

.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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--primary-color);
  transform: rotate(45deg);
}

.page-lottery__faq-answer p {
  color: var(--text-dark);
  font-size: 15px;
}

/* Responsive FAQ Section */
@media (max-width: 768px) {
  .page-lottery__faq-section {
    padding: 40px 0;
  }
  .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;
  }
}

/* Links within content */
.page-lottery__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__link:hover {
  color: #FFA500;
  text-decoration: underline;
}

/* General text contrast fix for light backgrounds */
.page-lottery__light-bg p,
.page-lottery__light-bg li {
  color: var(--text-dark);
}