/* style/lottery.css */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000000, so use light text */
  background-color: #000000;
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Brand colors */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-lottery__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
}

.page-lottery__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-lottery__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-lottery__hero-actions {
  display: flex;
  gap: 20px;
}

.page-lottery__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.page-lottery__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red for contrast */
  border-color: #FFD700;
}

.page-lottery__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-lottery__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-lottery__btn--secondary:hover {
  background-color: #ffffff;
  color: #8B0000;
}

.page-lottery__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-lottery__section {
  padding: 60px 0;
  background-color: #000000;
  color: #ffffff;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-lottery__text-block {
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-lottery__text-block strong, .page-lottery__text-block em {
  color: #FFD700;
}

/* Game Types Section */
.page-lottery__section--game-types {
  background-color: #1a1a1a;
}

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

.page-lottery__game-type-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light translucent for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__game-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #FFD700;
}

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

.page-lottery__game-type-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__game-type-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-lottery__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Guide Section */
.page-lottery__section--guide {
  background-color: #000000;
}

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

.page-lottery__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__step-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #8B0000;
}

.page-lottery__step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-lottery__step-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.page-lottery__step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Benefits Section */
.page-lottery__section--benefits {
  background-color: #1a1a1a;
}

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

.page-lottery__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__benefit-heading {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__benefit-description {
  font-size: 1em;
  color: #cccccc;
}

.page-lottery__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Strategy Section */
.page-lottery__section--strategy {
  background-color: #000000;
}

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

.page-lottery__strategy-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__strategy-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-lottery__strategy-title {
  font-size: 1.4em;
  color: #8B0000; /* Dark Red */
  margin-bottom: 15px;
}

.page-lottery__strategy-description {
  font-size: 1em;
  color: #cccccc;
}

/* Promotions Section */
.page-lottery__section--promotions {
  background-color: #1a1a1a;
}

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

.page-lottery__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__promotion-title {
  font-size: 1.4em;
  color: #FFD700;
  padding: 15px 20px 0;
}

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

.page-lottery__promotion-card .page-lottery__btn {
  margin: 0 20px 20px;
}

/* Support Section */
.page-lottery__section--support {
  background-color: #000000;
}

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

.page-lottery__support-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__support-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__support-description {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-lottery__section--faq {
  background-color: #1a1a1a;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: #FFD700;
  transform: rotate(45deg); /* Change to minus sign visually */
}

.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;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

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

/* Blog Section */
.page-lottery__section--blog {
  background-color: #000000;
}

.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-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-lottery__blog-title {
  font-size: 1.3em;
  padding: 15px 20px 0;
}

.page-lottery__blog-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__blog-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-lottery__blog-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px;
  margin-top: 10px;
}

.page-lottery__blog-date {
  display: block;
  font-size: 0.85em;
  color: #999999;
  padding: 10px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }

  .page-lottery__section-title {
    font-size: 2em;
  }

  .page-lottery__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-lottery__hero-content {
    text-align: center;
  }

  .page-lottery__hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important;
    padding-bottom: 40px;
  }

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

  .page-lottery__hero-description {
    font-size: 1em;
  }

  .page-lottery__section {
    padding: 40px 0;
  }

  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-lottery__text-block {
    font-size: 0.95em;
  }

  .page-lottery__game-type-grid,
  .page-lottery__guide-steps,
  .page-lottery__benefit-list,
  .page-lottery__strategy-grid,
  .page-lottery__promotion-grid,
  .page-lottery__support-grid,
  .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__game-type-card, 
  .page-lottery__step-item, 
  .page-lottery__benefit-item, 
  .page-lottery__strategy-card, 
  .page-lottery__promotion-card, 
  .page-lottery__support-item, 
  .page-lottery__blog-card {
    padding: 20px;
  }

  .page-lottery__game-type-image, .page-lottery__promotion-image, .page-lottery__blog-image {
    height: 180px;
  }

  .page-lottery__step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-lottery__step-image {
    width: 40px;
    height: 40px;
  }

  .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__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  /* Ensure all images and containers adapt to mobile */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__container,
  .page-lottery__hero-container,
  .page-lottery__hero-content,
  .page-lottery__hero-image-wrapper,
  .page-lottery__game-type-card,
  .page-lottery__step-item,
  .page-lottery__benefit-item,
  .page-lottery__strategy-card,
  .page-lottery__promotion-card,
  .page-lottery__support-item,
  .page-lottery__faq-item,
  .page-lottery__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }
  .page-lottery__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn {
    width: 100%;
  }
  .page-lottery__section-title {
    font-size: 1.5em;
  }
  .page-lottery__game-type-image, .page-lottery__promotion-image, .page-lottery__blog-image {
    height: 150px;
  }
}