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

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

.page-lottery__heading {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold for headings */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-lottery__subheading {
  font-size: 28px;
  font-weight: 600;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: left;
}

.page-lottery__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
  text-align: justify;
}

.page-lottery__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Buttons */
.page-lottery__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.page-lottery__btn-primary {
  background: #FFD700;
  color: #000000; /* Dark text on gold button */
  border: 2px solid #FFD700;
}

.page-lottery__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-lottery__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* HERO Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; 
  margin-top: 0;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

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

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

/* Products Showcase Section */
.page-lottery__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0d0d0d;
}

.page-lottery__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-lottery__products-grid {
  display: grid;
  gap: 20px;
}

.page-lottery__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-lottery__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-lottery__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 3px solid #FFD700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

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

.page-lottery__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

/* Introduction Section */
.page-lottery__introduction-section {
  padding: 80px 0;
  background: #0d0d0d; /* Dark background */
  color: #ffffff;
}

/* Quick Access Section */
.page-lottery__quick-access-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-lottery__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border: 2px solid #000080;
  border-radius: 10px;
  padding: 30px 20px;
  text-decoration: none;
  color: #f0f0f0;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-lottery__quick-link-card:hover {
  background: #000080;
  border-color: #FFD700;
  color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-lottery__quick-link-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  display: block;
}

.page-lottery__quick-link-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* Core Games Section */
.page-lottery__core-games-section {
  padding: 80px 0;
  background: #0d0d0d;
}

.page-lottery__game-category {
  background: #1a1a1a;
  border: 1px solid #000080;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.page-lottery__game-category:last-child {
  margin-bottom: 0;
}

.page-lottery__game-category .page-lottery__subheading {
  text-align: center;
  margin-top: 0;
  color: #FFD700;
}

.page-lottery__game-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto 30px auto;
  display: block;
  object-fit: cover;
}

.page-lottery__game-category .page-lottery__btn-primary {
  margin-top: 30px;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-lottery__promotion-card {
  background: #0d0d0d;
  border: 1px solid #000080;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.page-lottery__promotion-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__promotion-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: justify;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__promotion-card .page-lottery__btn-primary {
  margin-top: auto;
  width: 100%;
  font-size: 16px;
  padding: 12px 20px;
}

/* Security & Support Section */
.page-lottery__security-support-section {
  padding: 80px 0;
  background: #000000;
}

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

.page-lottery__feature-item {
  background: #1a1a1a;
  border: 1px solid #000080;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-lottery__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__feature-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: justify;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0d0d0d;
  border: 1px solid #000080;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: #1f1f1f;
  border-color: #FFD700;
}

.page-lottery__faq-question:active {
  background: #2a2a2a;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  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: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #f0f0f0;
  transform: rotate(45deg); /* Change to X for active state */
}

.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: #0d0d0d;
  color: #f0f0f0;
  font-size: 16px;
  text-align: justify;
}

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

.page-lottery__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-lottery__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__faq-answer a:hover {
  text-decoration: underline;
}

/* Blog Section */
.page-lottery__blog-section {
  padding: 80px 0;
  background: #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: #1a1a1a;
  border: 1px solid #000080;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-lottery__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

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

.page-lottery__blog-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-lottery__blog-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__blog-title a:hover {
  text-decoration: underline;
}

.page-lottery__blog-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-lottery__read-more {
  display: inline-block;
  margin-top: auto;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-lottery__read-more:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Dark Background Class */
.page-lottery__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

/* Light Background Class */
.page-lottery__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__heading {
    font-size: 32px;
  }
  .page-lottery__subheading {
    font-size: 24px;
  }
  .page-lottery__paragraph {
    font-size: 16px;
  }
  .page-lottery__products-container {
    grid-template-columns: 1fr;
  }
  .page-lottery__products-grid--small {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-lottery__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-lottery__links-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px;
  }
  .page-lottery__container {
    padding: 30px 15px;
  }
  .page-lottery__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-lottery__subheading {
    font-size: 22px;
  }
  .page-lottery__paragraph {
    font-size: 15px;
  }
  .page-lottery__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-lottery__products-section {
    padding: 40px 15px;
  }
  .page-lottery__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-lottery__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-lottery__products-grid--small .page-lottery__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-lottery__products-grid--small .page-lottery__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-lottery__products-grid--small .page-lottery__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-lottery__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-lottery__products-grid--large .page-lottery__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-lottery__products-grid--large .page-lottery__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-lottery__products-grid--large .page-lottery__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-lottery__quick-link-card {
    padding: 20px 15px;
  }
  .page-lottery__quick-link-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-lottery__quick-link-text {
    font-size: 18px;
  }
  .page-lottery__game-image {
    margin: 15px auto 25px auto;
  }
  .page-lottery__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  .page-lottery__blog-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsive */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__heading {
    font-size: 24px;
  }
  .page-lottery__subheading {
    font-size: 20px;
  }
  .page-lottery__products-grid--small {
    grid-template-columns: 1fr;
  }
  .page-lottery__products-grid--large {
    grid-template-columns: 1fr;
  }
  .page-lottery__quick-link-card {
    padding: 15px 10px;
  }
  .page-lottery__quick-link-card img {
    width: 70px;
    height: 70px;
  }
  .page-lottery__quick-link-text {
    font-size: 16px;
  }
  .page-lottery__promotion-title {
    font-size: 20px;
  }
  .page-lottery__feature-title {
    font-size: 20px;
  }
  .page-lottery__blog-title {
    font-size: 18px;
  }
}