/* style/lottery.css */
.page-lottery {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is a dark color */
}

/* Fixed Header Spacing */
.page-lottery__fixed-header-spacing {
  padding-top: 120px; /* Adjust based on shared header height */
}

@media (max-width: 768px) {
  .page-lottery__fixed-header-spacing {
    padding-top: 100px; /* Adjust for mobile header height */
  }
}

/* Hero Banner Section */
.page-lottery__hero-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 40px;
  background: linear-gradient(90deg, #8B0000 0%, #FFD700 100%); /* Brand colors for hero background */
  color: #ffffff;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-content {
  max-width: 600px;
  z-index: 1;
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.page-lottery__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-lottery__hero-image-wrapper {
  flex-shrink: 0;
  width: 500px; /* Fixed width for desktop */
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

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

/* General Section Styles */
.page-lottery__section {
  padding: 60px 20px;
  margin: 0 auto;
}

.page-lottery__section--intro {
  background-color: var(--dark-bg-2); /* Slightly different dark background */
}

.page-lottery__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-lottery__text-block--note {
  font-style: italic;
  text-align: center;
  margin-top: 30px;
  color: #cccccc;
}

.page-lottery__text-block--centered {
  text-align: center;
  margin-top: 40px;
  font-size: 1.15em;
  font-weight: 500;
}

/* Buttons */
.page-lottery__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-lottery__btn--primary {
  background-color: #FFD700; /* Gold background */
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #FFD700;
}

.page-lottery__btn--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-lottery__btn--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 30px;
}

.page-lottery__btn--text {
  background: none;
  border: none;
  color: #FFD700;
  padding: 0;
  font-weight: 600;
  font-size: 1em;
  text-decoration: underline;
}

.page-lottery__btn--text:hover {
  color: #e6c200;
  text-decoration: none;
}

/* Grid Layouts */
.page-lottery__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

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

.page-lottery__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styles */
.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__card-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

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

.page-lottery__step-item {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.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;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-lottery__step-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: invert(100%); /* Invert color for icon on gold background */
}

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

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

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

.page-lottery__feature-item {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-lottery__feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-lottery__feature-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__feature-description {
  font-size: 0.95em;
  color: #cccccc;
}

/* Promotion Cards */
.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align content to start */
  text-align: left;
}

.page-lottery__promo-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-lottery__promo-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security & Support Info Blocks */
.page-lottery__info-block {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-lottery__info-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__info-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-lottery__info-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

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

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

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

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 30px;
  height: 30px;
}

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

.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: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
}

/* News Cards */
.page-lottery__news-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-lottery__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-lottery__news-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

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

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

.page-lottery__news-date {
  font-size: 0.85em;
  color: #aaaaaa;
  margin-bottom: 10px;
}

.page-lottery__news-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-lottery__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 15px;
  border: 1px solid #FFD700;
}

.page-lottery__cta-text {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-lottery__hero-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .page-lottery__hero-content {
    max-width: 100%;
  }
  .page-lottery__hero-title {
    font-size: 3em;
  }
  .page-lottery__hero-description {
    font-size: 1.1em;
  }
  .page-lottery__hero-image-wrapper {
    width: 80%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__promo-card,
  .page-lottery__info-block,
  .page-lottery__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-banner {
    padding: 60px 15px;
    gap: 20px;
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__hero-image-wrapper {
    width: 95%;
    height: 250px;
  }
  .page-lottery__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__text-block {
    font-size: 1em;
  }
  .page-lottery__grid--2-cols, .page-lottery__grid--3-cols {
    grid-template-columns: 1fr;
  }
  .page-lottery__card,
  .page-lottery__step-item,
  .page-lottery__feature-item,
  .page-lottery__promo-card,
  .page-lottery__info-block,
  .page-lottery__news-card {
    padding: 20px;
  }
  .page-lottery__card-image, .page-lottery__promo-image, .page-lottery__news-image {
    height: 180px;
  }
  .page-lottery__card-title, .page-lottery__promo-title, .page-lottery__step-title, .page-lottery__feature-title, .page-lottery__info-title, .page-lottery__news-title {
    font-size: 1.2em;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-question h3 {
    font-size: 1em;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__btn {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-lottery__promo-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__hero-image-wrapper {
    height: 200px;
  }
  .page-lottery__card-image, .page-lottery__promo-image, .page-lottery__news-image {
    height: 150px;
  }
  .page-lottery__btn {
    font-size: 0.8em;
    padding: 10px 20px;
  }
}