/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-background-dark-alpha: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

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

/* Ensure main content has top padding to clear fixed header */
.page-content {
  padding-top: 10px; /* Default for desktop, adjusted for mobile in media query */
}

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

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

.page-lottery__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
}

.page-lottery__section-title {
  font-size: 38px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-lottery__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__center-button {
  text-align: center;
  margin-top: 40px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-lottery__cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 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;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background-color: var(--background-dark);
}

.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 10px 30px rgba(0, 0, 0, 0.5);
}

.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%;
  color: var(--text-light);
}

.page-lottery__hero-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-lottery__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-lottery__feature-item {
  background: var(--card-background-dark-alpha);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-lottery__feature-icon {
  width: 200px !important;
  height: 200px !important;
  min-width: 200px !important;
  min-height: 200px !important;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery__feature-icon img {
  width: 200px !important;
  height: 200px !important;
  min-width: 200px !important;
  min-height: 200px !important;
  object-fit: contain;
}

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

.page-lottery__feature-description {
  font-size: 16px;
  color: #cccccc;
}

/* Quick Access Section */
.page-lottery__quick-access-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.page-lottery__quick-access-section .page-lottery__section-title {
  color: var(--text-light);
}

.page-lottery__quick-access-section .page-lottery__text-block {
  color: #f0f0f0;
}

.page-lottery__quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-lottery__quick-link-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--text-light);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-lottery__quick-link-button:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-lottery__game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__game-card {
  background: var(--card-background-dark-alpha);
  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;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

.page-lottery__game-card-grid .page-lottery__game-card a {
  text-decoration: none;
}

.page-lottery__game-title {
  font-size: 22px;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

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

.page-lottery__game-title a:hover {
  color: #fff;
}

.page-lottery__game-description {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 20px;
}

.page-lottery__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery__game-button:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Promotions Section */
.page-lottery__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery__promo-item {
  background: var(--card-background-dark-alpha);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery__promo-item .page-lottery__feature-icon {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  min-height: 100px !important;
  margin-right: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.page-lottery__promo-item .page-lottery__feature-icon img {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  min-height: 100px !important;
  object-fit: contain;
}

.page-lottery__promo-content {
  flex-grow: 1;
}

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

.page-lottery__promo-description {
  font-size: 16px;
  color: #cccccc;
}

/* Security & Support Section */
.page-lottery__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__info-card {
  background: var(--card-background-dark-alpha);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-lottery__info-card .page-lottery__feature-icon {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  min-height: 150px !important;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery__info-card .page-lottery__feature-icon img {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  min-height: 150px !important;
  object-fit: contain;
}

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

.page-lottery__info-description {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background-dark-alpha);
  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: rgba(255, 255, 255, 0.15);
}

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

.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: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #cccccc;
  font-size: 16px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

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

.page-lottery__blog-card {
  background: var(--card-background-dark-alpha);
  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;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

.page-lottery__blog-content {
  padding: 20px;
}

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

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

.page-lottery__blog-title a:hover {
  color: #fff;
}

.page-lottery__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

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

.page-lottery__blog-readmore:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 44px;
  }
  .page-lottery__hero-description {
    font-size: 20px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-title {
    font-size: 36px;
  }
  .page-lottery__hero-description {
    font-size: 18px;
  }
  .page-lottery__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-lottery__text-block {
    font-size: 15px;
    padding: 0 10px;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  
  /* Image responsiveness for mobile */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__hero-image {
    border-radius: 8px;
  }
  
  .page-lottery__quick-link-button {
    width: 100%;
    max-width: 280px;
  }

  .page-lottery__feature-icon,
  .page-lottery__feature-icon img {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-lottery__promo-item {
    flex-direction: column;
    text-align: center;
  }

  .page-lottery__promo-item .page-lottery__feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-lottery__promo-item .page-lottery__feature-icon,
  .page-lottery__info-card .page-lottery__feature-icon {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
  }

  .page-lottery__promo-item .page-lottery__feature-icon img,
  .page-lottery__info-card .page-lottery__feature-icon img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
  }

  .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;
  }

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

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 30px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__feature-title, .page-lottery__info-title {
    font-size: 20px;
  }
  .page-lottery__promo-title {
    font-size: 18px;
  }
  .page-lottery__game-title {
    font-size: 18px;
  }
  .page-lottery__blog-title {
    font-size: 17px;
  }
}