/* style/lottery.css */

/* Custom properties for colors */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --login-button-color: #EA7C07;
  --background-color: #FFFFFF;
  --dark-background-color: #000000;
}

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

.page-lottery__section {
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 0; /* Ensure no extra margin between sections */
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--primary-color);
}

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

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

.page-lottery__text-block a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-lottery__hero-image {
  width: 100%;
  line-height: 0;
}

.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%;
  padding: 60px 20px;
  background: var(--primary-color); /* Use primary color for hero content background */
  color: var(--text-color-light); /* White text for primary color background */
  box-sizing: border-box;
}

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

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Use login button color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Section specific styles */
.page-lottery__introduction {
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

.page-lottery__game-types {
  background-color: var(--primary-color); /* Dark section background */
  color: var(--text-color-light); /* Light text for dark background */
}

.page-lottery__dark-section .page-lottery__section-title {
  color: var(--text-color-light); /* Override for dark background */
}

.page-lottery__dark-section .page-lottery__text-block {
  color: var(--text-color-light); /* Override for dark background */
}

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

.page-lottery__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-lottery__card {
  background: var(--secondary-color); /* White card background */
  color: var(--text-color-dark); /* Dark text for white card background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

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

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

/* How-to-play section */
.page-lottery__how-to-play {
  background-color: #f9f9f9; /* Light grey background */
  color: var(--text-color-dark);
}

.page-lottery__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__step-item {
  background: var(--secondary-color);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-left: 5px solid var(--primary-color);
}

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

.page-lottery__step-item p {
  font-size: 16px;
  color: var(--text-color-dark);
}

.page-lottery__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary:hover {
  background: #1e87b7; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  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;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Promotions section */
.page-lottery__promotions {
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

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

.page-lottery__promotion-item {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__promotion-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

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

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

/* Security and Support section */
.page-lottery__security-support {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

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

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

/* FAQ default state - answer 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 20px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.03);
}