.page-lottery-types {
  color: #ffffff; /* Body background is dark, so main content text is light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 180px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-lottery-types {
    padding-top: 140px; /* Adjust for fixed header on mobile */
  }
}

/* Hero Banner Section */
.page-lottery-types__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-lottery-types__hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.3;
  animation: rotateGradient 15s linear infinite;
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page-lottery-types__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.page-lottery-types__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
  padding-right: 40px;
}

.page-lottery-types__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-lottery-types__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-lottery-types__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-lottery-types__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-lottery-types__section {
  padding: 60px 0;
}

.page-lottery-types__dark-bg {
  background: #0d0d0d; /* Dark background from shared.css */
  color: #ffffff;
}

.page-lottery-types__light-bg {
  background: #f1f3f5;
  color: #333333;
}

.page-lottery-types__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-lottery-types__dark-bg .page-lottery-types__section-title {
  color: var(--primary-color);
}

.page-lottery-types__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Grid for Lottery Types */
.page-lottery-types__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-types__card {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery-types__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery-types__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-lottery-types__benefit-item {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-lottery-types__benefit-item:hover {
  transform: translateY(-5px);
}

.page-lottery-types__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery-types__benefit-text {
  font-size: 15px;
}

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

.page-lottery-types__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-lottery-types__step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #000000; /* Ensure contrast for number */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-types__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-lottery-types__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-lottery-types__step-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery-types__step-text a:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* Strategy List */
.page-lottery-types__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  color: #333333;
}

.page-lottery-types__strategy-list li {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px 30px;
  font-size: 17px;
  line-height: 1.7;
  border-left: 5px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery-types__strategy-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery-types__strategy-list li strong {
  color: var(--secondary-color);
  font-size: 18px;
}

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

.page-lottery-types__promo-card {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery-types__promo-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery-types__promo-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery-types__view-all-promotions {
  text-align: center;
  margin-top: 50px;
}

/* CTA Buttons */
.page-lottery-types__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-lottery-types__btn-primary {
  background: var(--primary-color);
  color: #000000; /* Ensure contrast for text on primary color */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-types__btn-primary:hover {
  background: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery-types__btn-secondary {
  background: #8B0000; /* Use secondary color as background */
  color: #ffffff;
  border: 2px solid #8B0000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-types__btn-secondary:hover {
  background: #a00000;
  border-color: #a00000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-lottery-types__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery-types__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 15px;
  opacity: 0;
}

.page-lottery-types__faq-item.active .page-lottery-types__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  color: #333333; /* Ensure contrast */
  border-radius: 0 0 5px 5px;
}

.page-lottery-types__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  color: #333333; /* Ensure contrast */
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery-types__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-lottery-types__faq-question:active {
  background: #eeeeee;
}

.page-lottery-types__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-lottery-types__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666; /* Ensure contrast */
  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-types__faq-item.active .page-lottery-types__faq-toggle {
  color: #333; /* Ensure contrast */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery-types__hero-content {
    padding-right: 0;
    text-align: center;
  }
  .page-lottery-types__hero-image-wrapper {
    margin-top: 40px;
  }
  .page-lottery-types__main-title {
    font-size: 38px;
  }
  .page-lottery-types__section-title {
    font-size: 30px;
  }
  .page-lottery-types__grid, .page-lottery-types__benefits-grid, .page-lottery-types__guide-steps, .page-lottery-types__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery-types__container {
    flex-direction: column;
  }
  .page-lottery-types__hero-content {
    padding-right: 0;
  }
  .page-lottery-types__main-title {
    font-size: 32px;
  }
  .page-lottery-types__hero-description {
    font-size: 16px;
  }
  .page-lottery-types__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-lottery-types__section-title {
    font-size: 28px;
  }
  .page-lottery-types__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-lottery-types__card, .page-lottery-types__benefit-item, .page-lottery-types__step-item, .page-lottery-types__promo-card {
    padding: 20px;
  }
  .page-lottery-types__card-title, .page-lottery-types__benefit-title, .page-lottery-types__step-title, .page-lottery-types__promo-title {
    font-size: 20px;
  }
  .page-lottery-types__card-text, .page-lottery-types__benefit-text, .page-lottery-types__step-text, .page-lottery-types__promo-text {
    font-size: 15px;
  }
  .page-lottery-types__strategy-list li {
    padding: 20px;
    font-size: 15px;
  }
  .page-lottery-types__strategy-list li strong {
    font-size: 16px;
  }
  .page-lottery-types__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-lottery-types__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-lottery-types__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-lottery-types__faq-answer {
    padding: 0 15px;
  }
  .page-lottery-types__faq-item.active .page-lottery-types__faq-answer {
    padding: 15px !important;
  }
}