/* style/lottery.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1E90FF;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

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

/* --- Title Section --- */
.page-lottery__title-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--background-dark) 0%, #0a0a0a 100%);
  text-align: center;
  color: var(--text-color-light);
  overflow: hidden;
}

.page-lottery__title-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-lottery__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-lottery__title-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-dark);
}

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

.page-lottery__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

.page-lottery__btn-secondary:hover {
  background: #1a7fdc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-lottery__faq-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-lottery__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__faq-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  background-color: var(--card-bg-dark);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  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.12);
}

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

.page-lottery__faq-toggle {
  font-size: 24px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

.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;
  color: #cccccc;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* --- Brand Section --- */
.page-lottery__brand-section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: var(--text-color-light);
}

.page-lottery__brand-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-lottery__brand-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-lottery__brand-intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.7;
  color: #e0e0e0;
}

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

.page-lottery__brand-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__brand-item-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery__brand-item p {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.7;
}

/* --- Blog Section --- */
.page-lottery__blog-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-lottery__blog-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-lottery__blog-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

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

.page-lottery__blog-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__blog-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

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

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

.page-lottery__blog-item-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.4;
}

.page-lottery__blog-item-excerpt {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-lottery__blog-item-date {
  font-size: 0.85em;
  color: #888888;
  display: block;
  text-align: right;
}

/* --- General Responsive Styles --- */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-lottery {
    font-size: 15px;
  }

  .page-lottery__title-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__main-title {
    font-size: 2.2em;
  }

  .page-lottery__title-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery__cta-button {
    width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-lottery__faq-section,
  .page-lottery__brand-section,
  .page-lottery__blog-section {
    padding: 40px 15px;
  }

  .page-lottery__faq-title,
  .page-lottery__brand-title,
  .page-lottery__blog-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-lottery__faq-question h3 {
    font-size: 1em;
  }

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

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

  .page-lottery__brand-intro-text {
    font-size: 1em;
  }

  .page-lottery__brand-item-title {
    font-size: 1.3em;
  }

  .page-lottery__blog-list {
    grid-template-columns: 1fr;
  }

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

  .page-lottery__blog-item-title {
    font-size: 1.1em;
  }

  /* Ensure all images are responsive */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure all containers for images/buttons are responsive */
  .page-lottery__title-container,
  .page-lottery__cta-buttons,
  .page-lottery__faq-container,
  .page-lottery__brand-container,
  .page-lottery__brand-content,
  .page-lottery__blog-container,
  .page-lottery__blog-list,
  .page-lottery__blog-item,
  .page-lottery__blog-item-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}